UNPKG

axe-core

Version:

Accessibility engine for automated Web UI testing

12 lines 416 kB
/*! axe v4.2.4 * Copyright (c) 2021 Deque Systems, Inc. * * Your use of this Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This entire copyright notice must appear in every copy of this file you * distribute or in any file that contains substantial portions of this source * code. */ !function e(window){var Bu=window,document=window.document;function Lu(e){return(Lu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var axe=axe||{};function qu(e){this.name="SupportError",this.cause=e.cause,this.message="`".concat(e.cause,"` - feature unsupported in your environment."),e.ruleId&&(this.ruleId=e.ruleId,this.message+=" Skipping ".concat(this.ruleId," rule.")),this.stack=(new Error).stack}axe.version="4.2.4","function"==typeof define&&define.amd&&define("axe-core",[],function(){return axe}),"object"===("undefined"==typeof module?"undefined":Lu(module))&&module.exports&&"function"==typeof e.toString&&(axe.source="("+e.toString()+')(typeof window === "object" ? window : this);',module.exports=axe),"function"==typeof window.getComputedStyle&&(window.axe=axe),(qu.prototype=Object.create(Error.prototype)).constructor=qu;var Mu=["variant"],ju=["matches"],Uu=["chromium"],Vu=["noImplicit"],Hu=["noPresentational"];function zu(e,t){if(null==e)return{};var r,a=function(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a<o.length;a++)r=o[a],0<=t.indexOf(r)||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(e),o=0;o<n.length;o++)r=n[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r]);return a}function $u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wu(r){var a=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(e){return!1}}();return function(){var e,t=n(r);return e=a?(e=n(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),t=this,!(e=e)||"object"!==Lu(e)&&"function"!=typeof e?Gu(t):e}}function Gu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yu(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){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 Ku(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,o=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw n}}return o}}(e,t)||l(e,t)||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 Xu(){return(Xu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,a=arguments[t];for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}function Ju(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Qu(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}function Zu(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=l(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var a=0,t=function(){};return{s:t,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t}}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 n,o=!0,i=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){i=!0,n=e},f:function(){try{o||null==r.return||r.return()}finally{if(i)throw n}}}}function l(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function Lu(e){return(Lu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){function i(e){return l(e,"__esModule",{value:!0})}function t(t,r,a){if(i(t),"object"===Lu(r)||"function"==typeof r){var n,o=Zu(e(r));try{for(o.s();!(n=o.n()).done;)!function(){var e=n.value;s.call(t,e)||"default"===e||l(t,e,{get:function(){return r[e]},enumerable:!(a=u(r,e))||a.enumerable})}()}catch(e){o.e(e)}finally{o.f()}}return t}var r=Object.create,l=Object.defineProperty,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,e=Object.getOwnPropertyNames,u=Object.getOwnPropertyDescriptor,n=function(e,t){return function(){return t||e((t={exports:{}}).exports,t),t.exports}},o=function(e,t){for(var r in i(e),t)l(e,r,{get:t[r],enumerable:!0})},c=function(e){return e&&e.__esModule?e:t(l(r(a(e)),"default",{value:e,enumerable:!0}),e)},d=n(function(i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isIdentStart=function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"-"===e||"_"===e},i.isIdent=function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"0"<=e&&e<="9"||"-"===e||"_"===e},i.isHex=function(e){return"a"<=e&&e<="f"||"A"<=e&&e<="F"||"0"<=e&&e<="9"},i.escapeIdentifier=function(e){for(var t=e.length,r="",a=0;a<t;){var n=e.charAt(a);if(i.identSpecialChars[n])r+="\\"+n;else if("_"===n||"-"===n||"A"<=n&&n<="Z"||"a"<=n&&n<="z"||0!==a&&"0"<=n&&n<="9")r+=n;else{var o=n.charCodeAt(0);if(55296==(63488&o)){n=e.charCodeAt(a++);if(55296!=(64512&o)||56320!=(64512&n))throw Error("UCS-2(decode): illegal sequence");o=((1023&o)<<10)+(1023&n)+65536}r+="\\"+o.toString(16)+" "}a++}return r},i.escapeStr=function(e){for(var t,r=e.length,a="",n=0;n<r;){var o=e.charAt(n);'"'===o?o='\\"':"\\"===o?o="\\\\":void 0!==(t=i.strReplacementsRev[o])&&(o=t),a+=o,n++}return'"'+a+'"'},i.identSpecialChars={"!":!0,'"':!0,"#":!0,$:!0,"%":!0,"&":!0,"'":!0,"(":!0,")":!0,"*":!0,"+":!0,",":!0,".":!0,"/":!0,";":!0,"<":!0,"=":!0,">":!0,"?":!0,"@":!0,"[":!0,"\\":!0,"]":!0,"^":!0,"`":!0,"{":!0,"|":!0,"}":!0,"~":!0},i.strReplacementsRev={"\n":"\\n","\r":"\\r","\t":"\\t","\f":"\\f","\v":"\\v"},i.singleQuoteEscapeChars={n:"\n",r:"\r",t:"\t",f:"\f","\\":"\\","'":"'"},i.doubleQuotesEscapeChars={n:"\n",r:"\r",t:"\t",f:"\f","\\":"\\",'"':'"'}}),p=n(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var b=d();e.parseCssSelector=function(o,i,l,s,n,u){var c=o.length,d="";function p(e,t){var r="";for(i++,d=o.charAt(i);i<c;){if(d===e)return i++,r;if("\\"===d){i++;var a;if((d=o.charAt(i))===e)r+=e;else if(void 0!==(a=t[d]))r+=a;else{if(b.isHex(d)){var n=d;for(i++,d=o.charAt(i);b.isHex(d);)n+=d,i++,d=o.charAt(i);" "===d&&(i++,d=o.charAt(i)),r+=String.fromCharCode(parseInt(n,16));continue}r+=d}}else r+=d;i++,d=o.charAt(i)}return r}function f(){var e="";for(d=o.charAt(i);i<c;){if(b.isIdent(d))e+=d;else{if("\\"!==d)return e;if(c<=++i)throw Error("Expected symbol but end of file reached.");if(d=o.charAt(i),b.identSpecialChars[d])e+=d;else{if(b.isHex(d)){var t=d;for(i++,d=o.charAt(i);b.isHex(d);)t+=d,i++,d=o.charAt(i);" "===d&&(i++,d=o.charAt(i)),e+=String.fromCharCode(parseInt(t,16));continue}e+=d}}i++,d=o.charAt(i)}return e}function m(){d=o.charAt(i);for(var e=!1;" "===d||"\t"===d||"\n"===d||"\r"===d||"\f"===d;)e=!0,i++,d=o.charAt(i);return e}function h(){var e=r();if(!e)return null;var t=e;for(d=o.charAt(i);","===d;){if(i++,m(),"selectors"!==t.type&&(t={type:"selectors",selectors:[e]}),!(e=r()))throw Error('Rule expected after ",".');t.selectors.push(e)}return t}function r(){m();var e={type:"ruleSet"},t=g();if(!t)return null;for(var r=e;t&&(t.type="rule",r.rule=t,r=t,m(),d=o.charAt(i),!(c<=i||","===d||")"===d));)if(n[d]){var a=d;if(i++,m(),!(t=g()))throw Error('Rule expected after "'+a+'".');t.nestingOperator=a}else(t=g())&&(t.nestingOperator=null);return e}function g(){for(var e=null;i<c;)if("*"===(d=o.charAt(i)))i++,(e=e||{}).tagName="*";else if(b.isIdentStart(d)||"\\"===d)(e=e||{}).tagName=f();else if("."===d)i++,((e=e||{}).classNames=e.classNames||[]).push(f());else if("#"===d)i++,(e=e||{}).id=f();else if("["===d){i++,m();var t={name:f()};if(m(),"]"===d)i++;else{var r="";if(s[d]&&(r=d,i++,d=o.charAt(i)),c<=i)throw Error('Expected "=" but end of file reached.');if("="!==d)throw Error('Expected "=" but "'+d+'" found.');t.operator=r+"=",i++,m();var a="";if(t.valueType="string",'"'===d)a=p('"',b.doubleQuotesEscapeChars);else if("'"===d)a=p("'",b.singleQuoteEscapeChars);else if(u&&"$"===d)i++,a=f(),t.valueType="substitute";else{for(;i<c&&"]"!==d;)a+=d,i++,d=o.charAt(i);a=a.trim()}if(m(),c<=i)throw Error('Expected "]" but end of file reached.');if("]"!==d)throw Error('Expected "]" but "'+d+'" found.');i++,t.value=a}((e=e||{}).attrs=e.attrs||[]).push(t)}else{if(":"!==d)break;i++;r=f(),t={name:r};if("("===d){i++;var n="";if(m(),"selector"===l[r])t.valueType="selector",n=h();else{if(t.valueType=l[r]||"string",'"'===d)n=p('"',b.doubleQuotesEscapeChars);else if("'"===d)n=p("'",b.singleQuoteEscapeChars);else if(u&&"$"===d)i++,n=f(),t.valueType="substitute";else{for(;i<c&&")"!==d;)n+=d,i++,d=o.charAt(i);n=n.trim()}m()}if(c<=i)throw Error('Expected ")" but end of file reached.');if(")"!==d)throw Error('Expected ")" but "'+d+'" found.');i++,t.value=n}((e=e||{}).pseudos=e.pseudos||[]).push(t)}return e}return function(){var e=h();if(i<c)throw Error('Rule expected but "'+o.charAt(i)+'" found.');return e}()}}),f=n(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=d();e.renderEntity=function t(e){var r="";switch(e.type){case"ruleSet":for(var a=e.rule,n=[];a;)a.nestingOperator&&n.push(a.nestingOperator),n.push(t(a)),a=a.rule;r=n.join(" ");break;case"selectors":r=e.selectors.map(t).join(", ");break;case"rule":e.tagName&&(r="*"===e.tagName?"*":o.escapeIdentifier(e.tagName)),e.id&&(r+="#"+o.escapeIdentifier(e.id)),e.classNames&&(r+=e.classNames.map(function(e){return"."+o.escapeIdentifier(e)}).join("")),e.attrs&&(r+=e.attrs.map(function(e){return"operator"in e?"substitute"===e.valueType?"["+o.escapeIdentifier(e.name)+e.operator+"$"+e.value+"]":"["+o.escapeIdentifier(e.name)+e.operator+o.escapeStr(e.value)+"]":"["+o.escapeIdentifier(e.name)+"]"}).join("")),e.pseudos&&(r+=e.pseudos.map(function(e){return e.valueType?"selector"===e.valueType?":"+o.escapeIdentifier(e.name)+"("+t(e.value)+")":"substitute"===e.valueType?":"+o.escapeIdentifier(e.name)+"($"+e.value+")":"numeric"===e.valueType?":"+o.escapeIdentifier(e.name)+"("+e.value+")":":"+o.escapeIdentifier(e.name)+"("+o.escapeIdentifier(e.value)+")":":"+o.escapeIdentifier(e.name)}).join(""));break;default:throw Error('Unknown entity type: "'+e.type+'".')}return r}}),m=n(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=p(),r=f(),a=(n.prototype.registerSelectorPseudos=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,a=e;r<a.length;r++){var n=a[r];this.pseudos[n]="selector"}return this},n.prototype.unregisterSelectorPseudos=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,a=e;r<a.length;r++){var n=a[r];delete this.pseudos[n]}return this},n.prototype.registerNumericPseudos=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,a=e;r<a.length;r++){var n=a[r];this.pseudos[n]="numeric"}return this},n.prototype.unregisterNumericPseudos=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,a=e;r<a.length;r++){var n=a[r];delete this.pseudos[n]}return this},n.prototype.registerNestingOperators=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,a=e;r<a.length;r++){var n=a[r];this.ruleNestingOperators[n]=!0}return this},n.prototype.unregisterNestingOperators=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,a=e;r<a.length;r++){var n=a[r];delete this.ruleNestingOperators[n]}return this},n.prototype.registerAttrEqualityMods=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,a=e;r<a.length;r++){var n=a[r];this.attrEqualityMods[n]=!0}return this},n.prototype.unregisterAttrEqualityMods=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,a=e;r<a.length;r++){var n=a[r];delete this.attrEqualityMods[n]}return this},n.prototype.enableSubstitutes=function(){return this.substitutesEnabled=!0,this},n.prototype.disableSubstitutes=function(){return this.substitutesEnabled=!1,this},n.prototype.parse=function(e){return t.parseCssSelector(e,0,this.pseudos,this.attrEqualityMods,this.ruleNestingOperators,this.substitutesEnabled)},n.prototype.render=function(e){return r.renderEntity(e).trim()},n);function n(){this.pseudos={},this.attrEqualityMods={},this.ruleNestingOperators={},this.substitutesEnabled=!1}e.CssSelectorParser=a}),h=n(function(e,t){"use strict";t.exports=function(){}}),C=n(function(e,t){"use strict";var r=h()();t.exports=function(e){return e!==r&&null!==e}}),g=n(function(e,t){"use strict";var r=C(),a=Array.prototype.forEach,n=Object.create;t.exports=function(e){var t=n(null);return a.call(arguments,function(e){r(e)&&function(e,t){for(var r in e)t[r]=e[r]}(Object(e),t)}),t}}),b=n(function(e,t){"use strict";t.exports=function(){var e=Math.sign;return"function"==typeof e&&(1===e(10)&&-1===e(-20))}}),y=n(function(e,t){"use strict";t.exports=function(e){return e=Number(e),isNaN(e)||0===e?e:0<e?1:-1}}),v=n(function(e,t){"use strict";t.exports=b()()?Math.sign:y()}),D=n(function(e,t){"use strict";var r=v(),a=Math.abs,n=Math.floor;t.exports=function(e){return isNaN(e)?0:0!==(e=Number(e))&&isFinite(e)?r(e)*n(a(e)):e}}),F=n(function(e,t){"use strict";var r=D(),a=Math.max;t.exports=function(e){return a(0,r(e))}}),w=n(function(e,t){"use strict";var a=F();t.exports=function(e,t,r){return isNaN(e)?0<=t?r&&t?t-1:t:1:!1!==e&&a(e)}}),k=n(function(e,t){"use strict";t.exports=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}}),R=n(function(e,t){"use strict";var r=C();t.exports=function(e){if(!r(e))throw new TypeError("Cannot use null or undefined");return e}}),x=n(function(e,t){"use strict";var l=k(),s=R(),u=Function.prototype.bind,c=Function.prototype.call,d=Object.keys,p=Object.prototype.propertyIsEnumerable;t.exports=function(o,i){return function(r,a){var e,n=arguments[2],t=arguments[3];return r=Object(s(r)),l(a),e=d(r),t&&e.sort("function"==typeof t?u.call(t,r):void 0),"function"!=typeof o&&(o=e[o]),c.call(o,e,function(e,t){return p.call(r,e)?c.call(a,n,r[e],e,r,t):i})}}}),E=n(function(e,t){"use strict";t.exports=x()("forEach")}),A=n(function(){}),T=n(function(e,t){"use strict";t.exports=function(){var e=Object.assign;return"function"==typeof e&&(e(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}}),N=n(function(e,t){"use strict";t.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}}),_=n(function(e,t){"use strict";var r=C(),a=Object.keys;t.exports=function(e){return a(r(e)?Object(e):e)}}),O=n(function(e,t){"use strict";t.exports=N()()?Object.keys:_()}),S=n(function(e,t){"use strict";var i=O(),l=R(),s=Math.max;t.exports=function(t,r){var a,e,n,o=s(arguments.length,2);for(t=Object(l(t)),n=function(e){try{t[e]=r[e]}catch(e){a=a||e}},e=1;e<o;++e)i(r=arguments[e]).forEach(n);if(void 0!==a)throw a;return t}}),P=n(function(e,t){"use strict";t.exports=T()()?Object.assign:S()}),I=n(function(e,t){"use strict";var r=C(),a={function:!0,object:!0};t.exports=function(e){return r(e)&&a[Lu(e)]||!1}}),B=n(function(e,a){"use strict";var n=P(),o=I(),i=C(),l=Error.captureStackTrace;a.exports=function(e){var t=new Error(e),r=arguments[1],e=arguments[2];return i(e)||o(r)&&(e=r,r=null),i(e)&&n(t,e),i(r)&&(t.code=r),l&&l(t,a.exports),t}}),L=n(function(e,t){"use strict";var n=R(),o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols;t.exports=function(t,r){var a,e=Object(n(r));if(t=Object(n(t)),l(e).forEach(function(e){try{o(t,e,i(r,e))}catch(e){a=e}}),"function"==typeof s&&s(e).forEach(function(e){try{o(t,e,i(r,e))}catch(e){a=e}}),void 0!==a)throw a;return t}}),q=n(function(e,t){"use strict";function r(e,t){return t}var a,n,o,i,l,s=F();try{Object.defineProperty(r,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch(e){}1===r.length?(a={configurable:!0,writable:!1,enumerable:!1},n=Object.defineProperty,t.exports=function(e,t){return t=s(t),e.length===t?e:(a.value=t,n(e,"length",a))}):(i=L(),l=[],o=function(e){var t,r=0;if(l[e])return l[e];for(t=[];e--;)t.push("a"+(++r).toString(36));return new Function("fn","return function ("+t.join(", ")+") { return fn.apply(this, arguments); };")},t.exports=function(e,t){if(t=s(t),e.length===t)return e;t=o(t)(e);try{i(t,e)}catch(e){}return t})}),M=n(function(e,t){"use strict";t.exports=function(e){return null!=e}}),j=n(function(e,t){"use strict";var r=M(),a={object:!0,function:!0,undefined:!0};t.exports=function(e){return!!r(e)&&hasOwnProperty.call(a,Lu(e))}}),U=n(function(e,t){"use strict";var r=j();t.exports=function(e){if(!r(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(e){return!1}}}),V=n(function(e,t){"use strict";var r=U();t.exports=function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!r(e)}}),H=n(function(e,t){"use strict";var r=V(),a=/^\s*class[\s{/}]/,n=Function.prototype.toString;t.exports=function(e){return!!r(e)&&!a.test(n.call(e))}}),z=n(function(e,t){"use strict";var r="razdwatrzy";t.exports=function(){return"function"==typeof r.contains&&(!0===r.contains("dwa")&&!1===r.contains("foo"))}}),$=n(function(e,t){"use strict";var r=String.prototype.indexOf;t.exports=function(e){return-1<r.call(this,e,arguments[1])}}),W=n(function(e,t){"use strict";t.exports=z()()?String.prototype.contains:$()}),G=n(function(e,t){"use strict";var i=M(),o=H(),l=P(),s=g(),u=W();(t.exports=function(e,t){var r,a,n,o;return arguments.length<2||"string"!=typeof e?(n=t,t=e,e=null):n=arguments[2],i(e)?(r=u.call(e,"c"),a=u.call(e,"e"),o=u.call(e,"w")):a=!(r=o=!0),o={value:t,configurable:r,enumerable:a,writable:o},n?l(s(n),o):o}).gs=function(e,t,r){var a,n;return"string"!=typeof e?(n=r,r=t,t=e,e=null):n=arguments[3],i(t)?o(t)?i(r)?o(r)||(n=r,r=void 0):r=void 0:(n=t,t=r=void 0):t=void 0,e=i(e)?(a=u.call(e,"c"),u.call(e,"e")):!(a=!0),e={get:t,set:r,configurable:a,enumerable:e},n?l(s(n),e):e}}),Y=n(function(e,t){"use strict";var r=G(),i=k(),l=Function.prototype.apply,s=Function.prototype.call,a=Object.create,n=Object.defineProperty,o=Object.defineProperties,u=Object.prototype.hasOwnProperty,c={configurable:!0,enumerable:!1,writable:!0},d=function(e,t){var r;return i(t),u.call(this,"__ee__")?r=this.__ee__:(r=c.value=a(null),n(this,"__ee__",c),c.value=null),r[e]?"object"===Lu(r[e])?r[e].push(t):r[e]=[r[e],t]:r[e]=t,this},p=function(e,t){var r,a;return i(t),d.call(a=this,e,r=function(){f.call(a,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},f=function(e,t){var r,a,n,o;if(i(t),!u.call(this,"__ee__"))return this;if(!(r=this.__ee__)[e])return this;if(a=r[e],"object"===Lu(a))for(o=0;n=a[o];++o)n!==t&&n.__eeOnceListener__!==t||(2===a.length?r[e]=a[o?0:1]:a.splice(o,1));else a!==t&&a.__eeOnceListener__!==t||delete r[e];return this},m=function(e){var t,r,a,n,o;if(u.call(this,"__ee__")&&(n=this.__ee__[e]))if("object"===Lu(n)){for(r=arguments.length,o=new Array(r-1),t=1;t<r;++t)o[t-1]=arguments[t];for(n=n.slice(),t=0;a=n[t];++t)l.call(a,this,o)}else switch(arguments.length){case 1:s.call(n,this);break;case 2:s.call(n,this,arguments[1]);break;case 3:s.call(n,this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),t=1;t<r;++t)o[t-1]=arguments[t];l.call(n,this,o)}},h={on:d,once:p,off:f,emit:m},g={on:r(d),once:r(p),off:r(f),emit:r(m)},b=o({},g);t.exports=e=function(e){return null==e?a(b):o(Object(e),g)},e.methods=h}),K=n(function(e,t){"use strict";t.exports=function(){var e,t=Array.from;return"function"==typeof t&&(t=t(e=["raz","dwa"]),Boolean(t&&t!==e&&"dwa"===t[1]))}}),X=n(function(e,t){"use strict";t.exports=function(){return"object"===("undefined"==typeof globalThis?"undefined":Lu(globalThis))&&(!!globalThis&&globalThis.Array===Array)}}),J=n(function(e,t){function r(){if("object"===("undefined"==typeof self?"undefined":Lu(self))&&self)return self;if("object"===(void 0===window?"undefined":Lu(window))&&window)return window;throw new Error("Unable to resolve global `this`")}t.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return r()}try{return __global__?__global__:r()}finally{delete Object.prototype.__global__}}()}),Q=n(function(e,t){"use strict";t.exports=X()()?globalThis:J()}),Z=n(function(e,t){"use strict";var r=Q(),a={object:!0,symbol:!0};t.exports=function(){var e,t=r.Symbol;if("function"!=typeof t)return!1;e=t("test symbol");try{String(e)}catch(e){return!1}return!!a[Lu(t.iterator)]&&(!!a[Lu(t.toPrimitive)]&&!!a[Lu(t.toStringTag)])}}),ee=n(function(e,t){"use strict";t.exports=function(e){return!!e&&("symbol"===Lu(e)||!!e.constructor&&("Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag]))}}),te=n(function(e,t){"use strict";var r=ee();t.exports=function(e){if(!r(e))throw new TypeError(e+" is not a symbol");return e}}),re=n(function(e,t){"use strict";var n=G(),r=Object.create,o=Object.defineProperty,i=Object.prototype,l=r(null);t.exports=function(e){for(var t,r,a=0;l[e+(a||"")];)++a;return l[e+=a||""]=!0,o(i,t="@@"+e,n.gs(null,function(e){r||(r=!0,o(this,t,n(e)),r=!1)})),t}}),ae=n(function(e,t){"use strict";var r=G(),a=Q().Symbol;t.exports=function(e){return Object.defineProperties(e,{hasInstance:r("",a&&a.hasInstance||e("hasInstance")),isConcatSpreadable:r("",a&&a.isConcatSpreadable||e("isConcatSpreadable")),iterator:r("",a&&a.iterator||e("iterator")),match:r("",a&&a.match||e("match")),replace:r("",a&&a.replace||e("replace")),search:r("",a&&a.search||e("search")),species:r("",a&&a.species||e("species")),split:r("",a&&a.split||e("split")),toPrimitive:r("",a&&a.toPrimitive||e("toPrimitive")),toStringTag:r("",a&&a.toStringTag||e("toStringTag")),unscopables:r("",a&&a.unscopables||e("unscopables"))})}}),ne=n(function(e,t){"use strict";var r=G(),a=te(),n=Object.create(null);t.exports=function(t){return Object.defineProperties(t,{for:r(function(e){return n[e]||(n[e]=t(String(e)))}),keyFor:r(function(e){for(var t in a(e),n)if(n[t]===e)return t})})}}),oe=n(function(e,t){"use strict";var r,a,n,o=G(),i=te(),l=Q().Symbol,s=re(),u=ae(),c=ne(),d=Object.create,p=Object.defineProperties,f=Object.defineProperty;if("function"==typeof l)try{String(l()),n=!0}catch(e){}else l=null;a=function(e){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return r(e)},t.exports=r=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return n?l(t):(r=d(a.prototype),t=void 0===t?"":String(t),p(r,{__description__:o("",t),__name__:o("",s(t))}))},u(r),c(r),p(a.prototype,{constructor:o(r),toString:o("",function(){return this.__name__})}),p(r.prototype,{toString:o(function(){return"Symbol ("+i(this).__description__+")"}),valueOf:o(function(){return i(this)})}),f(r.prototype,r.toPrimitive,o("",function(){var e=i(this);return"symbol"===Lu(e)?e:e.toString()})),f(r.prototype,r.toStringTag,o("c","Symbol")),f(a.prototype,r.toStringTag,o("c",r.prototype[r.toStringTag])),f(a.prototype,r.toPrimitive,o("c",r.prototype[r.toPrimitive]))}),ie=n(function(e,t){"use strict";t.exports=Z()()?Q().Symbol:oe()}),le=n(function(e,t){"use strict";var r=Object.prototype.toString,a=r.call(function(){return arguments}());t.exports=function(e){return r.call(e)===a}}),se=n(function(e,t){"use strict";var r=Object.prototype.toString,a=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);t.exports=function(e){return"function"==typeof e&&a(r.call(e))}}),ue=n(function(e,t){"use strict";var r=Object.prototype.toString,a=r.call("");t.exports=function(e){return"string"==typeof e||e&&"object"===Lu(e)&&(e instanceof String||r.call(e)===a)||!1}}),ce=n(function(e,t){"use strict";var f=ie().iterator,m=le(),h=se(),g=F(),b=k(),y=R(),v=C(),D=ue(),w=Array.isArray,x=Function.prototype.call,E={configurable:!0,enumerable:!0,writable:!0,value:null},A=Object.defineProperty;t.exports=function(e){var t,r,a,n,o,i,l,s,u,c,d=arguments[1],p=arguments[2];if(e=Object(y(e)),v(d)&&b(d),this&&this!==Array&&h(this))t=this;else{if(!d){if(m(e))return 1!==(o=e.length)?Array.apply(null,e):((n=new Array(1))[0]=e[0],n);if(w(e)){for(n=new Array(o=e.length),r=0;r<o;++r)n[r]=e[r];return n}}n=[]}if(!w(e))if(void 0!==(u=e[f])){for(l=b(u).call(e),t&&(n=new t),s=l.next(),r=0;!s.done;)c=d?x.call(d,p,s.value,r):s.value,t?(E.value=c,A(n,r,E)):n[r]=c,s=l.next(),++r;o=r}else if(D(e)){for(o=e.length,t&&(n=new t),a=r=0;r<o;++r)c=e[r],r+1<o&&55296<=(i=c.charCodeAt(0))&&i<=56319&&(c+=e[++r]),c=d?x.call(d,p,c,a):c,t?(E.value=c,A(n,a,E)):n[a]=c,++a;o=a}if(void 0===o)for(o=g(e.length),t&&(n=new t(o)),r=0;r<o;++r)c=d?x.call(d,p,e[r],r):e[r],t?(E.value=c,A(n,r,E)):n[r]=c;return t&&(E.value=null,n.length=o),n}}),de=n(function(e,t){"use strict";t.exports=K()()?Array.from:ce()}),pe=n(function(e,t){"use strict";var r=de(),a=Array.isArray;t.exports=function(e){return a(e)?e:r(e)}}),fe=n(function(e,t){"use strict";var r=pe(),a=C(),n=k(),o=Array.prototype.slice,i=function(r){return this.map(function(e,t){return e?e(r[t]):r[t]}).concat(o.call(r,this.length))};t.exports=function(e){return(e=r(e)).forEach(function(e){a(e)&&n(e)}),i.bind(e)}}),me=n(function(e,t){"use strict";var r=k();t.exports=function(e){var t;return"function"==typeof e?{set:e,get:e}:(t={get:r(e.get)},void 0!==e.set?(t.set=r(e.set),e.delete&&(t.delete=r(e.delete)),e.clear&&(t.clear=r(e.clear))):t.set=t.get,t)}}),he=n(function(e,t){"use strict";var g=B(),b=q(),y=G(),r=Y().methods,v=fe(),D=me(),w=Function.prototype.apply,x=Function.prototype.call,E=Object.create,A=Object.defineProperties,C=r.on,F=r.emit;t.exports=function(n,t,e){var o,i,l,r,a,s,u,c,d,p,f,m=E(null),h=!1!==t?t:isNaN(n.length)?1:n.length;return e.normalizer&&(s=D(e.normalizer),i=s.get,l=s.set,r=s.delete,a=s.clear),null!=e.resolvers&&(f=v(e.resolvers)),p=i?b(function(e){var t,r,a=arguments;if(f&&(a=f(a)),null!==(t=i(a))&&hasOwnProperty.call(m,t))return u&&o.emit("get",t,a,this),m[t];if(r=1===a.length?x.call(n,this,a[0]):w.call(n,this,a),null===t){if(null!==(t=i(a)))throw g("Circular invocation","CIRCULAR_INVOCATION");t=l(a)}else if(hasOwnProperty.call(m,t))throw g("Circular invocation","CIRCULAR_INVOCATION");return m[t]=r,c&&o.emit("set",t,null,r),r},h):0===t?function(){var e;if(hasOwnProperty.call(m,"data"))return u&&o.emit("get","data",arguments,this),m.data;if(e=arguments.length?w.call(n,this,arguments):x.call(n,this),hasOwnProperty.call(m,"data"))throw g("Circular invocation","CIRCULAR_INVOCATION");return m.data=e,c&&o.emit("set","data",null,e),e}:function(e){var t,r=arguments;if(f&&(r=f(arguments)),t=String(r[0]),hasOwnProperty.call(m,t))return u&&o.emit("get",t,r,this),m[t];if(r=1===r.length?x.call(n,this,r[0]):w.call(n,this,r),hasOwnProperty.call(m,t))throw g("Circular invocation","CIRCULAR_INVOCATION");return m[t]=r,c&&o.emit("set",t,null,r),r},o={original:n,memoized:p,profileName:e.profileName,get:function(e){return f&&(e=f(e)),i?i(e):String(e[0])},has:function(e){return hasOwnProperty.call(m,e)},delete:function(e){var t;hasOwnProperty.call(m,e)&&(r&&r(e),t=m[e],delete m[e],d&&o.emit("delete",e,t))},clear:function(){var e=m;a&&a(),m=E(null),o.emit("clear",e)},on:function(e,t){return"get"===e?u=!0:"set"===e?c=!0:"delete"===e&&(d=!0),C.call(this,e,t)},emit:F,updateEnv:function(){n=o.original}},s=i?b(function(e){var t=arguments;f&&(t=f(t)),null!==(t=i(t))&&o.delete(t)},h):0===t?function(){return o.delete("data")}:function(e){return f&&(e=f(arguments)[0]),o.delete(e)},e=b(function(){var e=arguments;return 0===t?m.data:(f&&(e=f(e)),e=i?i(e):String(e[0]),m[e])}),h=b(function(){var e=arguments;return 0===t?o.has("data"):(f&&(e=f(e)),null!==(e=i?i(e):String(e[0]))&&o.has(e))}),A(p,{__memoized__:y(!0),delete:y(s),clear:y(o.clear),_get:y(e),_has:y(h)}),o}}),ge=n(function(e,t){"use strict";var o=k(),i=E(),l=A(),s=he(),u=w();t.exports=function e(t){var r,a,n;if(o(t),(r=Object(arguments[1])).async&&r.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(t,"__memoized__")&&!r.force?t:(a=u(r.length,t.length,r.async&&l.async),n=s(t,a,r),i(l,function(e,t){r[t]&&e(r[t],n,r)}),e.__profiler__&&e.__profiler__(n),n.updateEnv(),n.memoized)}}),be=n(function(e,t){"use strict";t.exports=function(e){var t,r,a=e.length;if(!a)return"";for(t=String(e[r=0]);--a;)t+=""+e[++r];return t}}),ye=n(function(e,t){"use strict";t.exports=function(n){return n?function(e){for(var t=String(e[0]),r=0,a=n;--a;)t+=""+e[++r];return t}:function(){return""}}}),ve=n(function(e,t){"use strict";t.exports=function(){var e=Number.isNaN;return"function"==typeof e&&(!e({})&&e(NaN)&&!e(34))}}),De=n(function(e,t){"use strict";t.exports=function(e){return e!=e}}),we=n(function(e,t){"use strict";t.exports=ve()()?Number.isNaN:De()}),xe=n(function(e,t){"use strict";var n=we(),o=F(),i=R(),l=Array.prototype.indexOf,s=Object.prototype.hasOwnProperty,u=Math.abs,c=Math.floor;t.exports=function(e){var t,r,a;if(!n(e))return l.apply(this,arguments);for(r=o(i(this).length),e=arguments[1],t=e=isNaN(e)?0:0<=e?c(e):o(this.length)-c(u(e));t<r;++t)if(s.call(this,t)&&(a=this[t],n(a)))return t;return-1}}),Ee=n(function(e,t){"use strict";var u=xe(),r=Object.create;t.exports=function(){var o=0,l=[],s=r(null);return{get:function(e){var t,r=0,a=l,n=e.length;if(0===n)return a[n]||null;if(a=a[n]){for(;r<n-1;){if(-1===(t=u.call(a[0],e[r])))return null;a=a[1][t],++r}return-1===(t=u.call(a[0],e[r]))?null:a[1][t]||null}return null},set:function(e){var t,r=0,a=l,n=e.length;if(0===n)a[n]=++o;else{for(a[n]||(a[n]=[[],[]]),a=a[n];r<n-1;)-1===(t=u.call(a[0],e[r]))&&(t=a[0].push(e[r])-1,a[1].push([[],[]])),a=a[1][t],++r;-1===(t=u.call(a[0],e[r]))&&(t=a[0].push(e[r])-1),a[1][t]=++o}return s[o]=e,o},delete:function(e){var t,r=0,a=l,n=s[e],o=n.length,i=[];if(0===o)delete a[o];else if(a=a[o]){for(;r<o-1;){if(-1===(t=u.call(a[0],n[r])))return;i.push(a,t),a=a[1][t],++r}if(-1===(t=u.call(a[0],n[r])))return;for(e=a[1][t],a[0].splice(t,1),a[1].splice(t,1);!a[0].length&&i.length;)t=i.pop(),(a=i.pop())[0].splice(t,1),a[1].splice(t,1)}delete s[e]},clear:function(){l=[],s=r(null)}}}}),Ae=n(function(e,t){"use strict";var n=xe();t.exports=function(){var t=0,r=[],a=[];return{get:function(e){e=n.call(r,e[0]);return-1===e?null:a[e]},set:function(e){return r.push(e[0]),a.push(++t),t},delete:function(e){e=n.call(a,e);-1!==e&&(r.splice(e,1),a.splice(e,1))},clear:function(){r=[],a=[]}}}}),Ce=n(function(e,t){"use strict";var u=xe(),r=Object.create;t.exports=function(i){var n=0,l=[[],[]],s=r(null);return{get:function(e){for(var t,r=0,a=l;r<i-1;){if(-1===(t=u.call(a[0],e[r])))return null;a=a[1][t],++r}return-1!==(t=u.call(a[0],e[r]))&&a[1][t]||null},set:function(e){for(var t,r=0,a=l;r<i-1;)-1===(t=u.call(a[0],e[r]))&&(t=a[0].push(e[r])-1,a[1].push([[],[]])),a=a[1][t],++r;return-1===(t=u.call(a[0],e[r]))&&(t=a[0].push(e[r])-1),a[1][t]=++n,s[n]=e,n},delete:function(e){for(var t,r=0,a=l,n=[],o=s[e];r<i-1;){if(-1===(t=u.call(a[0],o[r])))return;n.push(a,t),a=a[1][t],++r}if(-1!==(t=u.call(a[0],o[r]))){for(e=a[1][t],a[0].splice(t,1),a[1].splice(t,1);!a[0].length&&n.length;)t=n.pop(),(a=n.pop())[0].splice(t,1),a[1].splice(t,1);delete s[e]}},clear:function(){l=[[],[]],s=r(null)}}}}),Fe=n(function(e,t){"use strict";var r=k(),a=E(),l=Function.prototype.call;t.exports=function(e,n){var o={},i=arguments[2];return r(n),a(e,function(e,t,r,a){o[t]=l.call(n,i,e,t,r,a)}),o}}),ke=n(function(e,t){"use strict";function o(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}function r(e){var t,r,a=document.createTextNode(""),n=0;return new e(function(){var e;if(t)r&&(t=r.concat(t));else{if(!r)return;t=r}if(r=t,t=null,"function"==typeof r)return e=r,r=null,void e();for(a.data=n=++n%2;r;)e=r.shift(),r.length||(r=null),e()}).observe(a,{characterData:!0}),function(e){o(e),t?"function"==typeof t?t=[t,e]:t.push(e):(t=e,a.data=n=++n%2)}}t.exports=function(){if("object"===("undefined"==typeof process?"undefined":Lu(process))&&process&&"function"==typeof process.nextTick)return process.nextTick;if("function"==typeof queueMicrotask)return function(e){queueMicrotask(o(e))};if("object"===(void 0===document?"undefined":Lu(document))&&document){if("function"==typeof MutationObserver)return r(MutationObserver);if("function"==typeof WebKitMutationObserver)return r(WebKitMutationObserver)}return"function"==typeof setImmediate?function(e){setImmediate(o(e))}:"function"==typeof setTimeout||"object"===("undefined"==typeof setTimeout?"undefined":Lu(setTimeout))?function(e){setTimeout(o(e),0)}:null}()}),Re=n(function(){"use strict";var p=de(),t=Fe(),r=L(),n=q(),f=ke(),m=Array.prototype.slice,h=Function.prototype.apply,g=Object.create;A().async=function(e,i){var l,s,u,c=g(null),d=g(null),o=i.memoized,a=i.original;i.memoized=n(function(e){var t=arguments,r=t[t.length-1];return"function"==typeof r&&(l=r,t=m.call(t,0,-1)),o.apply(s=this,u=t)},o);try{r(i.memoized,o)}catch(e){}i.on("get",function(t){var r,a,n;if(l){if(c[t])return"function"==typeof c[t]?c[t]=[c[t],l]:c[t].push(l),void(l=null);r=l,a=s,n=u,l=s=u=null,f(function(){var e;hasOwnProperty.call(d,t)?(e=d[t],i.emit("getasync",t,n,a),h.call(r,e.context,e.args)):(l=r,s=a,u=n,o.apply(a,n))})}}),i.original=function(){var e,t,r,o;return l?(e=p(arguments),t=function e(t){var r,a,n=e.id;if(null!=n){if(delete e.id,r=c[n],delete c[n],r)return a=p(arguments),i.has(n)&&(t?i.delete(n):(d[n]={context:this,args:a},i.emit("setasync",n,"function"==typeof r?1:r.length))),"function"==typeof r?o=h.call(r,this,a):r.forEach(function(e){o=h.call(e,this,a)},this),o}else f(h.bind(e,this,arguments))},r=l,l=s=u=null,e.push(t),o=h.call(a,this,e),t.cb=r,l=t,o):h.call(a,this,arguments)},i.on("set",function(e){l?(c[e]?"function"==typeof c[e]?c[e]=[c[e],l.cb]:c[e].push(l.cb):c[e]=l.cb,delete l.cb,l.id=e,l=null):i.delete(e)}),i.on("delete",function(e){var t;hasOwnProperty.call(c,e)||d[e]&&(t=d[e],delete d[e],i.emit("deleteasync",e,m.call(t.args,1)))}),i.on("clear",function(){var e=d;d=g(null),i.emit("clearasync",t(e,function(e){return m.call(e.args,1)}))})}}),Te=n(function(e,t){"use strict";var r=Array.prototype.forEach,a=Object.create;t.exports=function(e){var t=a(null);return r.call(arguments,function(e){t[e]=!0}),t}}),Ne=n(function(e,t){"use strict";t.exports=function(e){return"function"==typeof e}}),_e=n(function(e,t){"use strict";var r=Ne();t.exports=function(e){try{return e&&r(e.toString)?e.toString():String(e)}catch(e){throw new TypeError("Passed argument cannot be stringifed")}}}),Oe=n(function(e,t){"use strict";var r=R(),a=_e();t.exports=function(e){return a(r(e))}}),Se=n(function(e,t){"use strict";var r=Ne();t.exports=function(e){try{return e&&r(e.toString)?e.toString():String(e)}catch(e){return"<Non-coercible to string value>"}}}),Pe=n(function(e,t){"use strict";var r=Se(),a=/[\n\r\u2028\u2029]/g;t.exports=function(e){e=r(e);return e=(e=100<e.length?e.slice(0,99)+"…":e).replace(a,function(e){return JSON.stringify(e).slice(1,-1)})}}),Ie=n(function(e,t){function r(e){return!!e&&("object"===Lu(e)||"function"==typeof e)&&"function"==typeof e.then}t.exports=r,t.exports.default=r}),Be=n(function(){"use strict";var t=Fe(),e=Te(),r=Oe(),a=Pe(),f=Ie(),m=ke(),n=Object.create,o=e("then","then:finally","done","done:finally");A().promise=function(s,u){var c=n(null),d=n(null),p=n(null);if(!0===s)s=null;else if(s=r(s),!o[s])throw new TypeError("'"+a(s)+"' is not valid promise mode");u.on("set",function(r,e,t){var a=!1;if(!f(t))return d[r]=t,void u.emit("setasync",r,1);c[r]=1,p[r]=t;function n(e){var t=c[r];if(a)throw new Error("Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)\nConsider to rely on 'then' or 'done' mode instead.");t&&(delete c[r],d[r]=e,u.emit("setasync",r,t))}function o(){a=!0,c[r]&&(delete c[r],delete p[r],u.delete(r))}var i=s;if("then"===(i=i||"then")){var l=function(){m(o)};"function"==typeof(t=t.then(function(e){m(n.bind(this,e))},l)).finally&&t.finally(l)}else if("done"===i){if("function"!=typeof t.done)throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");t.done(n,o)}else if("done:finally"===i){if("function"!=typeof t.done)throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if("function"!=typeof t.finally)throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");t.done(n),t.finally(o)}}),u.on("get",function(e,t,r){var a,n;c[e]?++c[e]:(a=p[e],n=function(){u.emit("getasync",e,t,r)},f(a)?"function"==typeof a.done?a.done(n):a.then(function(){m(n)}):n())}),u.on("delete",function(e){var t;delete p[e],c[e]?delete c[e]:hasOwnProperty.call(d,e)&&(t=d[e],delete d[e],u.emit("deleteasync",e,[t]))}),u.on("clear",function(){var e=d;d=n(null),c=n(null),p=n(null),u.emit("clearasync",t(e,function(e){return[e]}))})}}),Le=n(function(){"use strict";var n=k(),o=E(),i=A(),l=Function.prototype.apply;i.dispose=function(r,e,t){var a;if(n(r),t.async&&i.async||t.promise&&i.promise)return e.on("deleteasync",a=function(e,t){l.call(r,null,t)}),void e.on("clearasync",function(e){o(e,function(e,t){a(t,e)})});e.on("delete",a=function(e,t){r(t)}),e.on("clear",function(e){o(e,function(e,t){a(t,e)})})}}),qe=n(function(e,t){"use strict";t.exports=2147483647}),Me=n(function(e,t){"use strict";var r=F(),a=qe();t.exports=function(e){if(e=r(e),a<e)throw new TypeError(e+" exceeds maximum possible timeout");return e}}),je=n(function(){"use strict";var l=de(),s=E(),u=ke(),c=Ie(),d=Me(),p=A(),f=Function.prototype,m=Math.max,h=Math.min,g=Object.create;p.maxAge=function(t,n,o){var r,e,a,i;(t=d(t))&&(r=g(null),e=o.async&&p.async||o.promise&&p.promise?"async":"",n.on("set"+e,function(e){r[e]=setTimeout(function(){n.delete(e)},t),"function"==typeof r[e].unref&&r[e].unref(),i&&(i[e]&&"nextTick"!==i[e]&&clearTimeout(i[e]),i[e]=setTimeout(function(){delete i[e]},a),"function"==typeof i[e].unref&&i[e].unref())}),n.on("delete"+e,function(e){clearTimeout(r[e]),delete r[e],i&&("nextTick"!==i[e]&&clearTimeout(i[e]),delete i[e])}),o.preFetch&&(a=!0===o.preFetch||isNaN(o.preFetch)?.333:m(h(Number(o.preFetch),1),0))&&(i={},a=(1-a)*t,n.on("get"+e,function(t,r,a){i[t]||(i[t]="nextTick",u(function(){var e;"nextTick"===i[t]&&(delete i[t],n.delete(t),o.async&&(r=l(r)).push(f),e=n.memoized.apply(a,r),o.promise&&c(e)&&("function"==typeof e.done?e.done(f,f):e.then(f,f)))}))})),n.on("clear"+e,function(){s(r,function(e){clearTimeout(e)}),r={},i&&(s(i,function(e){"nextTick"!==e&&clearTimeout(e)}),i={})}))}}),Ue=n(function(e,t){"use strict";var r=F(),c=Object.create,d=Object.prototype.hasOwnProperty;t.exports=function(a){var n,o=0,i=1,l=c(null),s=c(null),u=0;return a=r(a),{hit:function(e){var t=s[e],r=++u;if(l[r]=e,s[e]=r,!t)return++o<=a?void 0:(e=l[i],n(e),e);if(delete l[t],i===t)for(;!d.call(l,++i););},delete:n=function(e){var t=s[e];if(t&&(delete l[t],delete s[e],--o,i===t)){if(!o)return u=0,void(i=1);for(;!d.call(l,++i););}},clear:function(){o=0,i=1,l=c(null),s=c(null),u=0}}}}),Ve=n(function(){"use strict";var n=F(),o=Ue(),i=A();i.max=function(e,t,r){var a;(e=n(e))&&(a=o(e),e=r.async&&i.async||r.promise&&i.promise?"async":"",t.on("set"+e,r=function(e){void 0!==(e=a.hit(e))&&t.delete(e)}),t.on("get"+e,r),t.on("delete"+e,a.delete),t.on("clear"+e,a.clear))}}),He=n(function(){"use strict";var n=G(),o=A(),i=Object.create,l=Object.defineProperties;o.refCounter=function(e,t,r){var a=i(null),r=r.async&&o.async||r.promise&&o.promise?"async":"";t.on("set"+r,function(e,t){a[e]=t||1}),t.on("get"+r,function(e){++a[e]}),t.on("delete"+r,function(e){delete a[e]}),t.on("clear"+r,function(){a={}}),l(t.memoized,{deleteRef:n(function(){var e=t.get(arguments);return null!==e&&a[e]?!--a[e]&&(t.delete(e),!0):null}),getRefCount:n(function(){var e=t.get(arguments);return null!==e&&a[e]||0})})}}),ze=n(function(e,t){"use strict";var a=g(),n=w(),o=ge();t.exports=function(e){var t,r=a(arguments[1]);return r.normalizer||0!==(t=r.length=n(r.length,e.length,r.async))&&(r.primitive?!1===t?r.normalizer=be():1<t&&(r.normalizer=ye()(t)):r.normalizer=!1===t?Ee()():1===t?Ae()():Ce()(t)),r.async&&Re(),r.promise&&Be(),r.dispose&&Le(),r.maxAge&&je(),r.max&&Ve(),r.refCounter&&He(),o(e,r)}}),$e=n(function(e,t){"use strict";t.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2