UNPKG

@okta/okta-auth-js

Version:
2 lines 114 kB
/*! For license information please see okta-auth-js.polyfill.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.OktaAuthPolyfill=e():t.OktaAuthPolyfill=e()}(self,(function(){return function(){var t={8806:function(t,e,r){!function(t){"use strict";function e(t){for(var e=0,r=Math.min(65536,t.length+1),n=new Uint16Array(r),o=[],i=0;;){var s=e<t.length;if(!s||i>=r-1){var u=n.subarray(0,i);if(o.push(String.fromCharCode.apply(null,u)),!s)return o.join("");t=t.subarray(e),e=0,i=0}var a=t[e++];if(0==(128&a))n[i++]=a;else if(192==(224&a)){var c=63&t[e++];n[i++]=(31&a)<<6|c}else if(224==(240&a)){c=63&t[e++];var f=63&t[e++];n[i++]=(31&a)<<12|c<<6|f}else if(240==(248&a)){var p=(7&a)<<18|(c=63&t[e++])<<12|(f=63&t[e++])<<6|63&t[e++];p>65535&&(p-=65536,n[i++]=p>>>10&1023|55296,p=56320|1023&p),n[i++]=p}}}var r="Failed to ",n=function(t,e,n){if(t)throw new Error("".concat(r).concat(e,": the '").concat(n,"' option is unsupported."))},o="function"==typeof Buffer&&Buffer.from,i=o?function(t){return Buffer.from(t)}:function(t){for(var e=0,r=t.length,n=0,o=Math.max(32,r+(r>>>1)+7),i=new Uint8Array(o>>>3<<3);e<r;){var s=t.charCodeAt(e++);if(s>=55296&&s<=56319){if(e<r){var u=t.charCodeAt(e);56320==(64512&u)&&(++e,s=((1023&s)<<10)+(1023&u)+65536)}if(s>=55296&&s<=56319)continue}if(n+4>i.length){o+=8,o=(o*=1+e/t.length*2)>>>3<<3;var a=new Uint8Array(o);a.set(i),i=a}if(0!=(4294967168&s)){if(0==(4294965248&s))i[n++]=s>>>6&31|192;else if(0==(4294901760&s))i[n++]=s>>>12&15|224,i[n++]=s>>>6&63|128;else{if(0!=(4292870144&s))continue;i[n++]=s>>>18&7|240,i[n++]=s>>>12&63|128,i[n++]=s>>>6&63|128}i[n++]=63&s|128}else i[n++]=s}return i.slice?i.slice(0,n):i.subarray(0,n)};function s(){this.encoding="utf-8"}s.prototype.encode=function(t,e){return n(e&&e.stream,"encode","stream"),i(t)};var u=!o&&"function"==typeof Blob&&"function"==typeof URL&&"function"==typeof URL.createObjectURL,a=["utf-8","utf8","unicode-1-1-utf-8"],c=e;o?c=function(t,e){return(t instanceof Buffer?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)).toString(e)}:u&&(c=function(t){try{return function(t){var e;try{var r=new Blob([t],{type:"text/plain;charset=UTF-8"});e=URL.createObjectURL(r);var n=new XMLHttpRequest;return n.open("GET",e,!1),n.send(),n.responseText}finally{e&&URL.revokeObjectURL(e)}}(t)}catch(r){return e(t)}});var f="construct 'TextDecoder'",p="".concat(r," ").concat(f,": the ");function l(t,e){if(n(e&&e.fatal,f,"fatal"),t=t||"utf-8",!(o?Buffer.isEncoding(t):-1!==a.indexOf(t.toLowerCase())))throw new RangeError("".concat(p," encoding label provided ('").concat(t,"') is invalid."));this.encoding=t,this.fatal=!1,this.ignoreBOM=!1}l.prototype.decode=function(t,e){var r;return n(e&&e.stream,"decode","stream"),r=t instanceof Uint8Array?t:t.buffer instanceof ArrayBuffer?new Uint8Array(t.buffer):new Uint8Array(t),c(r,this.encoding)},t.TextEncoder=t.TextEncoder||s,t.TextDecoder=t.TextDecoder||l}("undefined"!=typeof window?window:void 0!==r.g?r.g:this)},708:function(t,e){var r,n;n="undefined"!=typeof self?self:this,r=function(){return function(t){"use strict";if("function"!=typeof Promise)throw"Promise support required";var e=t.crypto||t.msCrypto;if(e){var r=e.subtle||e.webkitSubtle;if(r){var n=t.Crypto||e.constructor||Object,o=t.SubtleCrypto||r.constructor||Object,i=(t.CryptoKey||t.Key,t.navigator.userAgent.indexOf("Edge/")>-1),s=!!t.msCrypto&&!i,u=!e.subtle&&!!e.webkitSubtle;if(s||u){var a={KoZIhvcNAQEB:"1.2.840.113549.1.1.1"},c={"1.2.840.113549.1.1.1":"KoZIhvcNAQEB"};if(["generateKey","importKey","unwrapKey"].forEach((function(t){var n=r[t];r[t]=function(o,i,a){var c,f,w,S,E,O=[].slice.call(arguments);switch(t){case"generateKey":c=y(o),f=i,w=a;break;case"importKey":c=y(a),f=O[3],w=O[4],"jwk"===o&&((i=g(i)).alg||(i.alg=d(c)),i.key_ops||(i.key_ops="oct"!==i.kty?"d"in i?w.filter(A):w.filter(x):w.slice()),O[1]=(E=g(i),s&&(E.extractable=E.ext,delete E.ext),h(unescape(encodeURIComponent(JSON.stringify(E)))).buffer));break;case"unwrapKey":c=O[4],f=O[5],w=O[6],O[2]=a._key}if("generateKey"===t&&"HMAC"===c.name&&c.hash)return c.length=c.length||{"SHA-1":512,"SHA-256":512,"SHA-384":1024,"SHA-512":1024}[c.hash.name],r.importKey("raw",e.getRandomValues(new Uint8Array(c.length+7>>3)),c,f,w);if(u&&"generateKey"===t&&"RSASSA-PKCS1-v1_5"===c.name&&(!c.modulusLength||c.modulusLength>=2048))return(o=y(o)).name="RSAES-PKCS1-v1_5",delete o.hash,r.generateKey(o,!0,["encrypt","decrypt"]).then((function(t){return Promise.all([r.exportKey("jwk",t.publicKey),r.exportKey("jwk",t.privateKey)])})).then((function(t){return t[0].alg=t[1].alg=d(c),t[0].key_ops=w.filter(x),t[1].key_ops=w.filter(A),Promise.all([r.importKey("jwk",t[0],c,!0,t[0].key_ops),r.importKey("jwk",t[1],c,f,t[1].key_ops)])})).then((function(t){return{publicKey:t[0],privateKey:t[1]}}));if((u||s&&"SHA-1"===(c.hash||{}).name)&&"importKey"===t&&"jwk"===o&&"HMAC"===c.name&&"oct"===i.kty)return r.importKey("raw",h(l(i.k)),a,O[3],O[4]);if(u&&"importKey"===t&&("spki"===o||"pkcs8"===o))return r.importKey("jwk",function(t){var e=m(t),r=!1;e.length>2&&(r=!0,e.shift());var n={ext:!0};if("1.2.840.113549.1.1.1"!==e[0][0])throw new TypeError("Unsupported key type");var o=["n","e","d","p","q","dp","dq","qi"],i=m(e[1]);r&&i.shift();for(var s=0;s<i.length;s++)i[s][0]||(i[s]=i[s].subarray(1)),n[o[s]]=p(v(i[s]));return n.kty="RSA",n}(i),a,O[3],O[4]);if(s&&"unwrapKey"===t)return r.decrypt(O[3],a,i).then((function(t){return r.importKey(o,t,O[4],O[5],O[6])}));try{S=n.apply(r,O)}catch(t){return Promise.reject(t)}return s&&(S=new Promise((function(t,e){S.onabort=S.onerror=function(t){e(t)},S.oncomplete=function(e){t(e.target.result)}}))),S=S.then((function(t){return"HMAC"===c.name&&(c.length||(c.length=8*t.algorithm.length)),0==c.name.search("RSA")&&(c.modulusLength||(c.modulusLength=(t.publicKey||t).algorithm.modulusLength),c.publicExponent||(c.publicExponent=(t.publicKey||t).algorithm.publicExponent)),t.publicKey&&t.privateKey?{publicKey:new b(t.publicKey,c,f,w.filter(x)),privateKey:new b(t.privateKey,c,f,w.filter(A))}:new b(t,c,f,w)}))}})),["exportKey","wrapKey"].forEach((function(t){var e=r[t];r[t]=function(n,o,i){var a,c=[].slice.call(arguments);switch(t){case"exportKey":c[1]=o._key;break;case"wrapKey":c[1]=o._key,c[2]=i._key}if((u||s&&"SHA-1"===(o.algorithm.hash||{}).name)&&"exportKey"===t&&"jwk"===n&&"HMAC"===o.algorithm.name&&(c[0]="raw"),!u||"exportKey"!==t||"spki"!==n&&"pkcs8"!==n||(c[0]="jwk"),s&&"wrapKey"===t)return r.exportKey(n,o).then((function(t){return"jwk"===n&&(t=h(unescape(encodeURIComponent(JSON.stringify(g(t)))))),r.encrypt(c[3],i,t)}));try{a=e.apply(r,c)}catch(t){return Promise.reject(t)}return s&&(a=new Promise((function(t,e){a.onabort=a.onerror=function(t){e(t)},a.oncomplete=function(e){t(e.target.result)}}))),"exportKey"===t&&"jwk"===n&&(a=a.then((function(t){return(u||s&&"SHA-1"===(o.algorithm.hash||{}).name)&&"HMAC"===o.algorithm.name?{kty:"oct",alg:d(o.algorithm),key_ops:o.usages.slice(),ext:!0,k:p(v(t))}:((t=g(t)).alg||(t.alg=d(o.algorithm)),t.key_ops||(t.key_ops="public"===o.type?o.usages.filter(x):"private"===o.type?o.usages.filter(A):o.usages.slice()),t)}))),!u||"exportKey"!==t||"spki"!==n&&"pkcs8"!==n||(a=a.then((function(t){return function(t){var e,r=[["",null]],n=!1;if("RSA"!==t.kty)throw new TypeError("Unsupported key type");for(var o=["n","e","d","p","q","dp","dq","qi"],i=[],s=0;s<o.length&&o[s]in t;s++){var u=i[s]=h(l(t[o[s]]));128&u[0]&&(i[s]=new Uint8Array(u.length+1),i[s].set(u,1))}return i.length>2&&(n=!0,i.unshift(new Uint8Array([0]))),r[0][0]="1.2.840.113549.1.1.1",e=i,r.push(new Uint8Array(w(e)).buffer),n?r.unshift(new Uint8Array([0])):r[1]={tag:3,value:r[1]},new Uint8Array(w(r)).buffer}(g(t))}))),a}})),["encrypt","decrypt","sign","verify"].forEach((function(t){var e=r[t];r[t]=function(n,o,i,u){if(s&&(!i.byteLength||u&&!u.byteLength))throw new Error("Empty input is not allowed");var a,c=[].slice.call(arguments),f=y(n);if(!s||"sign"!==t&&"verify"!==t||"RSASSA-PKCS1-v1_5"!==n&&"HMAC"!==n||(c[0]={name:n}),s&&o.algorithm.hash&&(c[0].hash=c[0].hash||o.algorithm.hash),s&&"decrypt"===t&&"AES-GCM"===f.name){var p=n.tagLength>>3;c[2]=(i.buffer||i).slice(0,i.byteLength-p),n.tag=(i.buffer||i).slice(i.byteLength-p)}s&&"AES-GCM"===f.name&&void 0===c[0].tagLength&&(c[0].tagLength=128),c[1]=o._key;try{a=e.apply(r,c)}catch(t){return Promise.reject(t)}return s&&(a=new Promise((function(e,r){a.onabort=a.onerror=function(t){r(t)},a.oncomplete=function(r){if(r=r.target.result,"encrypt"===t&&r instanceof AesGcmEncryptResult){var n=r.ciphertext,o=r.tag;(r=new Uint8Array(n.byteLength+o.byteLength)).set(new Uint8Array(n),0),r.set(new Uint8Array(o),n.byteLength),r=r.buffer}e(r)}}))),a}})),s){var f=r.digest;r.digest=function(t,e){if(!e.byteLength)throw new Error("Empty input is not allowed");var n;try{n=f.call(r,t,e)}catch(t){return Promise.reject(t)}return n=new Promise((function(t,e){n.onabort=n.onerror=function(t){e(t)},n.oncomplete=function(e){t(e.target.result)}}))},t.crypto=Object.create(e,{getRandomValues:{value:function(t){return e.getRandomValues(t)}},subtle:{value:r}}),t.CryptoKey=b}u&&(e.subtle=r,t.Crypto=n,t.SubtleCrypto=o,t.CryptoKey=b)}}}function p(t){return btoa(t).replace(/\=+$/,"").replace(/\+/g,"-").replace(/\//g,"_")}function l(t){return t=(t+="===").slice(0,-t.length%4),atob(t.replace(/-/g,"+").replace(/_/g,"/"))}function h(t){for(var e=new Uint8Array(t.length),r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}function v(t){return t instanceof ArrayBuffer&&(t=new Uint8Array(t)),String.fromCharCode.apply(String,t)}function y(t){var e={name:(t.name||t||"").toUpperCase().replace("V","v")};switch(e.name){case"SHA-1":case"SHA-256":case"SHA-384":case"SHA-512":break;case"AES-CBC":case"AES-GCM":case"AES-KW":t.length&&(e.length=t.length);break;case"HMAC":t.hash&&(e.hash=y(t.hash)),t.length&&(e.length=t.length);break;case"RSAES-PKCS1-v1_5":t.publicExponent&&(e.publicExponent=new Uint8Array(t.publicExponent)),t.modulusLength&&(e.modulusLength=t.modulusLength);break;case"RSASSA-PKCS1-v1_5":case"RSA-OAEP":t.hash&&(e.hash=y(t.hash)),t.publicExponent&&(e.publicExponent=new Uint8Array(t.publicExponent)),t.modulusLength&&(e.modulusLength=t.modulusLength);break;default:throw new SyntaxError("Bad algorithm name")}return e}function d(t){return{HMAC:{"SHA-1":"HS1","SHA-256":"HS256","SHA-384":"HS384","SHA-512":"HS512"},"RSASSA-PKCS1-v1_5":{"SHA-1":"RS1","SHA-256":"RS256","SHA-384":"RS384","SHA-512":"RS512"},"RSAES-PKCS1-v1_5":{"":"RSA1_5"},"RSA-OAEP":{"SHA-1":"RSA-OAEP","SHA-256":"RSA-OAEP-256"},"AES-KW":{128:"A128KW",192:"A192KW",256:"A256KW"},"AES-GCM":{128:"A128GCM",192:"A192GCM",256:"A256GCM"},"AES-CBC":{128:"A128CBC",192:"A192CBC",256:"A256CBC"}}[t.name][(t.hash||{}).name||t.length||""]}function g(t){(t instanceof ArrayBuffer||t instanceof Uint8Array)&&(t=JSON.parse(decodeURIComponent(escape(v(t)))));var e={kty:t.kty,alg:t.alg,ext:t.ext||t.extractable};switch(e.kty){case"oct":e.k=t.k;case"RSA":["n","e","d","p","q","dp","dq","qi","oth"].forEach((function(r){r in t&&(e[r]=t[r])}));break;default:throw new TypeError("Unsupported key type")}return e}function m(t,e){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),e||(e={pos:0,end:t.length}),e.end-e.pos<2||e.end>t.length)throw new RangeError("Malformed DER");var r,n=t[e.pos++],o=t[e.pos++];if(o>=128){if(o&=127,e.end-e.pos<o)throw new RangeError("Malformed DER");for(var i=0;o--;)i<<=8,i|=t[e.pos++];o=i}if(e.end-e.pos<o)throw new RangeError("Malformed DER");switch(n){case 2:r=t.subarray(e.pos,e.pos+=o);break;case 3:if(t[e.pos++])throw new Error("Unsupported bit string");o--;case 4:r=new Uint8Array(t.subarray(e.pos,e.pos+=o)).buffer;break;case 5:r=null;break;case 6:var s=btoa(v(t.subarray(e.pos,e.pos+=o)));if(!(s in a))throw new Error("Unsupported OBJECT ID "+s);r=a[s];break;case 48:r=[];for(var u=e.pos+o;e.pos<u;)r.push(m(t,e));break;default:throw new Error("Unsupported DER tag 0x"+n.toString(16))}return r}function w(t,e){e||(e=[]);var r=0,n=0,o=e.length+2;if(e.push(0,0),t instanceof Uint8Array){r=2,n=t.length;for(var i=0;i<n;i++)e.push(t[i])}else if(t instanceof ArrayBuffer)for(r=4,n=t.byteLength,t=new Uint8Array(t),i=0;i<n;i++)e.push(t[i]);else if(null===t)r=5,n=0;else if("string"==typeof t&&t in c){var s=h(atob(c[t]));for(r=6,n=s.length,i=0;i<n;i++)e.push(s[i])}else if(t instanceof Array){for(i=0;i<t.length;i++)w(t[i],e);r=48,n=e.length-o}else{if(!("object"==typeof t&&3===t.tag&&t.value instanceof ArrayBuffer))throw new Error("Unsupported DER value "+t);for(r=3,n=(t=new Uint8Array(t.value)).byteLength,e.push(0),i=0;i<n;i++)e.push(t[i]);n++}if(n>=128){var u=n;for(n=4,e.splice(o,0,u>>24&255,u>>16&255,u>>8&255,255&u);n>1&&!(u>>24);)u<<=8,n--;n<4&&e.splice(o,4-n),n|=128}return e.splice(o-2,2,r,n),e}function b(t,e,r,n){Object.defineProperties(this,{_key:{value:t},type:{value:t.type,enumerable:!0},extractable:{value:void 0===r?t.extractable:r,enumerable:!0},algorithm:{value:void 0===e?t.algorithm:e,enumerable:!0},usages:{value:void 0===n?t.usages:n,enumerable:!0}})}function x(t){return"verify"===t||"encrypt"===t||"wrapKey"===t}function A(t){return"sign"===t||"decrypt"===t||"unwrapKey"===t}}(n)}.apply(e,[]),void 0===r||(t.exports=r)},9073:function(t,e,r){"use strict";var n=r(2976);t.exports=n},5701:function(t,e,r){"use strict";var n=r(7668);t.exports=n},6100:function(t,e,r){"use strict";var n=r(3593);t.exports=n},844:function(t,e,r){"use strict";var n=r(163);t.exports=n},4671:function(t,e,r){"use strict";var n=r(2820);t.exports=n},3082:function(t,e,r){"use strict";var n=r(5361);t.exports=n},8204:function(t,e,r){"use strict";var n=r(9884);t.exports=n},3305:function(t,e,r){"use strict";var n=r(1992);t.exports=n},5766:function(t,e,r){"use strict";r(5728);var n=r(8749);t.exports=n("Array","find")},4356:function(t,e,r){"use strict";r(1694),r(7049);var n=r(496);t.exports=n.Array.from},4966:function(t,e,r){"use strict";r(6801);var n=r(8749);t.exports=n("Array","includes")},3069:function(t,e,r){"use strict";r(429);var n=r(496);t.exports=n.Object.assign},202:function(t,e,r){"use strict";r(6585);var n=r(496);t.exports=n.Object.entries},3809:function(t,e,r){"use strict";r(752),r(5415);var n=r(496);t.exports=n.Object.fromEntries},1663:function(t,e,r){"use strict";r(9358);var n=r(496);t.exports=n.Object.keys},7015:function(t,e,r){"use strict";r(6466);var n=r(496);t.exports=n.Object.values},4279:function(t,e,r){"use strict";r(5879),r(752),r(228),r(3964),r(1195),r(7609),r(183),r(3505),r(6409),r(1694);var n=r(496);t.exports=n.Promise},4626:function(t,e,r){"use strict";r(2918);var n=r(8749);t.exports=n("String","endsWith")},8275:function(t,e,r){"use strict";r(3843);var n=r(8749);t.exports=n("String","includes")},5310:function(t,e,r){"use strict";r(268);var n=r(8749);t.exports=n("String","startsWith")},6220:function(t,e,r){"use strict";r(752),r(228),r(1694),r(4254);var n=r(6145);t.exports=n.f("iterator")},5323:function(t,e,r){"use strict";r(228),r(1694),r(9495),r(9038),r(5194),r(6664),r(5980),r(9943),r(6089),r(8539),r(8690),r(522),r(82),r(5385),r(5552),r(1803),r(7987),r(2916),r(677),r(8118),r(1165),r(1522),r(1638),r(4797),r(7300),r(3356),r(2533),r(9724),r(9901),r(4224),r(1121),r(7133),r(1565)},8542:function(t,e,r){"use strict";r(9365),r(9211),r(8607),r(5323);var n=r(1087);t.exports=n.Uint8Array},5440:function(t,e,r){"use strict";t.exports=r(22)},848:function(t,e,r){"use strict";t.exports=r(9932)},4581:function(t,e,r){"use strict";t.exports=r(1699)},9220:function(t,e,r){"use strict";t.exports=r(100)},4203:function(t,e,r){"use strict";t.exports=r(585)},3035:function(t,e,r){"use strict";t.exports=r(450)},9850:function(t,e,r){"use strict";t.exports=r(1040)},5775:function(t,e,r){"use strict";t.exports=r(5826)},8408:function(t,e,r){"use strict";t.exports=r(5396)},5939:function(t,e,r){"use strict";t.exports=r(8793)},6679:function(t,e,r){"use strict";t.exports=r(1983)},22:function(t,e,r){"use strict";var n=r(9073);t.exports=n},9932:function(t,e,r){"use strict";var n=r(5701);t.exports=n},1699:function(t,e,r){"use strict";var n=r(6100);t.exports=n},100:function(t,e,r){"use strict";var n=r(844);t.exports=n},585:function(t,e,r){"use strict";var n=r(4671);t.exports=n},450:function(t,e,r){"use strict";r(1927);var n=r(496);t.exports=n.Object.iterateEntries},1040:function(t,e,r){"use strict";r(7131);var n=r(496);t.exports=n.Object.iterateKeys},5826:function(t,e,r){"use strict";r(5174);var n=r(496);t.exports=n.Object.iterateValues},5396:function(t,e,r){"use strict";var n=r(3082);t.exports=n},8793:function(t,e,r){"use strict";var n=r(8204);t.exports=n},1983:function(t,e,r){"use strict";var n=r(3305);t.exports=n},509:function(t,e,r){"use strict";var n=r(9985),o=r(3691),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},2655:function(t,e,r){"use strict";var n=r(9429),o=r(3691),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a constructor")}},3550:function(t,e,r){"use strict";var n=r(598),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},7370:function(t,e,r){"use strict";var n=r(4201),o=r(5391),i=r(2560).f,s=n("unscopables"),u=Array.prototype;void 0===u[s]&&i(u,s,{configurable:!0,value:o(null)}),t.exports=function(t){u[s][t]=!0}},767:function(t,e,r){"use strict";var n=r(3622),o=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new o("Incorrect invocation")}},5027:function(t,e,r){"use strict";var n=r(8999),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},7075:function(t){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},1655:function(t,e,r){"use strict";var n=r(3689);t.exports=n((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},4872:function(t,e,r){"use strict";var n,o,i,s=r(7075),u=r(7697),a=r(1087),c=r(9985),f=r(8999),p=r(6812),l=r(926),h=r(3691),v=r(5773),y=r(1880),d=r(2148),g=r(3622),m=r(1868),w=r(9385),b=r(4201),x=r(4630),A=r(618),S=A.enforce,E=A.get,O=a.Int8Array,T=O&&O.prototype,R=a.Uint8ClampedArray,k=R&&R.prototype,P=O&&m(O),j=T&&m(T),L=Object.prototype,U=a.TypeError,C=b("toStringTag"),M=x("TYPED_ARRAY_TAG"),I="TypedArrayConstructor",B=s&&!!w&&"Opera"!==l(a.opera),_=!1,K={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},N={BigInt64Array:8,BigUint64Array:8},H=function(t){var e=m(t);if(f(e)){var r=E(e);return r&&p(r,I)?r[I]:H(e)}},F=function(t){if(!f(t))return!1;var e=l(t);return p(K,e)||p(N,e)};for(n in K)(i=(o=a[n])&&o.prototype)?S(i)[I]=o:B=!1;for(n in N)(i=(o=a[n])&&o.prototype)&&(S(i)[I]=o);if((!B||!c(P)||P===Function.prototype)&&(P=function(){throw new U("Incorrect invocation")},B))for(n in K)a[n]&&w(a[n],P);if((!B||!j||j===L)&&(j=P.prototype,B))for(n in K)a[n]&&w(a[n].prototype,j);if(B&&m(k)!==j&&w(k,j),u&&!p(j,C))for(n in _=!0,d(j,C,{configurable:!0,get:function(){return f(this)?this[M]:void 0}}),K)a[n]&&v(a[n],M,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:B,TYPED_ARRAY_TAG:_&&M,aTypedArray:function(t){if(F(t))return t;throw new U("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!w||g(P,t)))return t;throw new U(h(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,r,n){if(u){if(r)for(var o in K){var i=a[o];if(i&&p(i.prototype,t))try{delete i.prototype[t]}catch(r){try{i.prototype[t]=e}catch(t){}}}j[t]&&!r||y(j,t,r?e:B&&T[t]||e,n)}},exportTypedArrayStaticMethod:function(t,e,r){var n,o;if(u){if(w){if(r)for(n in K)if((o=a[n])&&p(o,t))try{delete o[t]}catch(t){}if(P[t]&&!r)return;try{return y(P,t,r?e:B&&P[t]||e)}catch(t){}}for(n in K)!(o=a[n])||o[t]&&!r||y(o,t,e)}},getTypedArrayConstructor:H,isView:function(t){if(!f(t))return!1;var e=l(t);return"DataView"===e||p(K,e)||p(N,e)},isTypedArray:F,TypedArray:P,TypedArrayPrototype:j}},3999:function(t,e,r){"use strict";var n=r(1087),o=r(8844),i=r(7697),s=r(7075),u=r(1236),a=r(5773),c=r(2148),f=r(6045),p=r(3689),l=r(767),h=r(8700),v=r(3126),y=r(9842),d=r(7788),g=r(5477),m=r(1868),w=r(9385),b=r(2872),x=r(6004),A=r(3457),S=r(8758),E=r(5997),O=r(618),T=u.PROPER,R=u.CONFIGURABLE,k="ArrayBuffer",P="DataView",j="prototype",L="Wrong index",U=O.getterFor(k),C=O.getterFor(P),M=O.set,I=n[k],B=I,_=B&&B[j],K=n[P],N=K&&K[j],H=Object.prototype,F=n.Array,D=n.RangeError,q=o(b),W=o([].reverse),z=g.pack,G=g.unpack,V=function(t){return[255&t]},Y=function(t){return[255&t,t>>8&255]},J=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},$=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},Q=function(t){return z(d(t),23,4)},X=function(t){return z(t,52,8)},Z=function(t,e,r){c(t[j],e,{configurable:!0,get:function(){return r(this)[e]}})},tt=function(t,e,r,n){var o=C(t),i=y(r),s=!!n;if(i+e>o.byteLength)throw new D(L);var u=o.bytes,a=i+o.byteOffset,c=x(u,a,a+e);return s?c:W(c)},et=function(t,e,r,n,o,i){var s=C(t),u=y(r),a=n(+o),c=!!i;if(u+e>s.byteLength)throw new D(L);for(var f=s.bytes,p=u+s.byteOffset,l=0;l<e;l++)f[p+l]=a[c?l:e-l-1]};if(s){var rt=T&&I.name!==k;p((function(){I(1)}))&&p((function(){new I(-1)}))&&!p((function(){return new I,new I(1.5),new I(NaN),1!==I.length||rt&&!R}))?rt&&R&&a(I,"name",k):((B=function(t){return l(this,_),A(new I(y(t)),this,B)})[j]=_,_.constructor=B,S(B,I)),w&&m(N)!==H&&w(N,H);var nt=new K(new B(2)),ot=o(N.setInt8);nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),!nt.getInt8(0)&&nt.getInt8(1)||f(N,{setInt8:function(t,e){ot(this,t,e<<24>>24)},setUint8:function(t,e){ot(this,t,e<<24>>24)}},{unsafe:!0})}else _=(B=function(t){l(this,_);var e=y(t);M(this,{type:k,bytes:q(F(e),0),byteLength:e}),i||(this.byteLength=e,this.detached=!1)})[j],N=(K=function(t,e,r){l(this,N),l(t,_);var n=U(t),o=n.byteLength,s=h(e);if(s<0||s>o)throw new D("Wrong offset");if(s+(r=void 0===r?o-s:v(r))>o)throw new D("Wrong length");M(this,{type:P,buffer:t,byteLength:r,byteOffset:s,bytes:n.bytes}),i||(this.buffer=t,this.byteLength=r,this.byteOffset=s)})[j],i&&(Z(B,"byteLength",U),Z(K,"buffer",C),Z(K,"byteLength",C),Z(K,"byteOffset",C)),f(N,{getInt8:function(t){return tt(this,1,t)[0]<<24>>24},getUint8:function(t){return tt(this,1,t)[0]},getInt16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return $(tt(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return $(tt(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return G(tt(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return G(tt(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,e){et(this,1,t,V,e)},setUint8:function(t,e){et(this,1,t,V,e)},setInt16:function(t,e){et(this,2,t,Y,e,arguments.length>2&&arguments[2])},setUint16:function(t,e){et(this,2,t,Y,e,arguments.length>2&&arguments[2])},setInt32:function(t,e){et(this,4,t,J,e,arguments.length>2&&arguments[2])},setUint32:function(t,e){et(this,4,t,J,e,arguments.length>2&&arguments[2])},setFloat32:function(t,e){et(this,4,t,Q,e,arguments.length>2&&arguments[2])},setFloat64:function(t,e){et(this,8,t,X,e,arguments.length>2&&arguments[2])}});E(B,k),E(K,P),t.exports={ArrayBuffer:B,DataView:K}},357:function(t,e,r){"use strict";var n=r(690),o=r(7578),i=r(6310),s=r(8494),u=Math.min;t.exports=[].copyWithin||function(t,e){var r=n(this),a=i(r),c=o(t,a),f=o(e,a),p=arguments.length>2?arguments[2]:void 0,l=u((void 0===p?a:o(p,a))-f,a-c),h=1;for(f<c&&c<f+l&&(h=-1,f+=l-1,c+=l-1);l-- >0;)f in r?r[c]=r[f]:s(r,c),c+=h,f+=h;return r}},2872:function(t,e,r){"use strict";var n=r(690),o=r(7578),i=r(6310);t.exports=function(t){for(var e=n(this),r=i(e),s=arguments.length,u=o(s>1?arguments[1]:void 0,r),a=s>2?arguments[2]:void 0,c=void 0===a?r:o(a,r);c>u;)e[u++]=t;return e}},9436:function(t,e,r){"use strict";var n=r(6310);t.exports=function(t,e,r){for(var o=0,i=arguments.length>2?r:n(e),s=new t(i);i>o;)s[o]=e[o++];return s}},1055:function(t,e,r){"use strict";var n=r(4071),o=r(2615),i=r(690),s=r(1228),u=r(3292),a=r(9429),c=r(6310),f=r(6522),p=r(5185),l=r(1664),h=Array;t.exports=function(t){var e=i(t),r=a(this),v=arguments.length,y=v>1?arguments[1]:void 0,d=void 0!==y;d&&(y=n(y,v>2?arguments[2]:void 0));var g,m,w,b,x,A,S=l(e),E=0;if(!S||this===h&&u(S))for(g=c(e),m=r?new this(g):h(g);g>E;E++)A=d?y(e[E],E):e[E],f(m,E,A);else for(m=r?new this:[],x=(b=p(e,S)).next;!(w=o(x,b)).done;E++)A=d?s(b,y,[w.value,E],!0):w.value,f(m,E,A);return m.length=E,m}},4328:function(t,e,r){"use strict";var n=r(5290),o=r(7578),i=r(6310),s=function(t){return function(e,r,s){var u=n(e),a=i(u);if(0===a)return!t&&-1;var c,f=o(s,a);if(t&&r!=r){for(;a>f;)if((c=u[f++])!=c)return!0}else for(;a>f;f++)if((t||f in u)&&u[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},1969:function(t,e,r){"use strict";var n=r(4071),o=r(4413),i=r(690),s=r(6310),u=function(t){var e=1===t;return function(r,u,a){for(var c,f=i(r),p=o(f),l=s(p),h=n(u,a);l-- >0;)if(h(c=p[l],l,f))switch(t){case 0:return c;case 1:return l}return e?-1:void 0}};t.exports={findLast:u(0),findLastIndex:u(1)}},2960:function(t,e,r){"use strict";var n=r(4071),o=r(8844),i=r(4413),s=r(690),u=r(6310),a=r(7120),c=o([].push),f=function(t){var e=1===t,r=2===t,o=3===t,f=4===t,p=6===t,l=7===t,h=5===t||p;return function(v,y,d,g){for(var m,w,b=s(v),x=i(b),A=u(x),S=n(y,d),E=0,O=g||a,T=e?O(v,A):r||l?O(v,0):void 0;A>E;E++)if((h||E in x)&&(w=S(m=x[E],E,b),t))if(e)T[E]=w;else if(w)switch(t){case 3:return!0;case 5:return m;case 6:return E;case 2:c(T,m)}else switch(t){case 4:return!1;case 7:c(T,m)}return p?-1:o||f?f:T}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},953:function(t,e,r){"use strict";var n=r(1735),o=r(5290),i=r(8700),s=r(6310),u=r(6834),a=Math.min,c=[].lastIndexOf,f=!!c&&1/[1].lastIndexOf(1,-0)<0,p=u("lastIndexOf"),l=f||!p;t.exports=l?function(t){if(f)return n(c,this,arguments)||0;var e=o(this),r=s(e);if(0===r)return-1;var u=r-1;for(arguments.length>1&&(u=a(u,i(arguments[1]))),u<0&&(u=r+u);u>=0;u--)if(u in e&&e[u]===t)return u||0;return-1}:c},6834:function(t,e,r){"use strict";var n=r(3689);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){return 1},1)}))}},8820:function(t,e,r){"use strict";var n=r(509),o=r(690),i=r(4413),s=r(6310),u=TypeError,a="Reduce of empty array with no initial value",c=function(t){return function(e,r,c,f){var p=o(e),l=i(p),h=s(p);if(n(r),0===h&&c<2)throw new u(a);var v=t?h-1:0,y=t?-1:1;if(c<2)for(;;){if(v in l){f=l[v],v+=y;break}if(v+=y,t?v<0:h<=v)throw new u(a)}for(;t?v>=0:h>v;v+=y)v in l&&(f=r(f,l[v],v,p));return f}};t.exports={left:c(!1),right:c(!0)}},6004:function(t,e,r){"use strict";var n=r(8844);t.exports=n([].slice)},382:function(t,e,r){"use strict";var n=r(6004),o=Math.floor,i=function(t,e){var r=t.length;if(r<8)for(var s,u,a=1;a<r;){for(u=a,s=t[a];u&&e(t[u-1],s)>0;)t[u]=t[--u];u!==a++&&(t[u]=s)}else for(var c=o(r/2),f=i(n(t,0,c),e),p=i(n(t,c),e),l=f.length,h=p.length,v=0,y=0;v<l||y<h;)t[v+y]=v<l&&y<h?e(f[v],p[y])<=0?f[v++]:p[y++]:v<l?f[v++]:p[y++];return t};t.exports=i},5271:function(t,e,r){"use strict";var n=r(2297),o=r(9429),i=r(8999),s=r(4201)("species"),u=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(o(e)&&(e===u||n(e.prototype))||i(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?u:e}},7120:function(t,e,r){"use strict";var n=r(5271);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},6166:function(t,e,r){"use strict";var n=r(6310);t.exports=function(t,e){for(var r=n(t),o=new e(r),i=0;i<r;i++)o[i]=t[r-i-1];return o}},6134:function(t,e,r){"use strict";var n=r(6310),o=r(8700),i=RangeError;t.exports=function(t,e,r,s){var u=n(t),a=o(r),c=a<0?u+a:a;if(c>=u||c<0)throw new i("Incorrect index");for(var f=new e(u),p=0;p<u;p++)f[p]=p===c?s:t[p];return f}},1228:function(t,e,r){"use strict";var n=r(5027),o=r(2125);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){o(t,"throw",e)}}},6431:function(t,e,r){"use strict";var n=r(4201)("iterator"),o=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){o=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(t){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(t){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},6648:function(t,e,r){"use strict";var n=r(8844),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},926:function(t,e,r){"use strict";var n=r(3043),o=r(9985),i=r(6648),s=r(4201)("toStringTag"),u=Object,a="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=u(t),s))?r:a?i(e):"Object"===(n=i(e))&&o(e.callee)?"Arguments":n}},800:function(t,e,r){"use strict";var n=r(5391),o=r(2148),i=r(6045),s=r(4071),u=r(767),a=r(981),c=r(8734),f=r(1934),p=r(7807),l=r(4241),h=r(7697),v=r(5375).fastKey,y=r(618),d=y.set,g=y.getterFor;t.exports={getConstructor:function(t,e,r,f){var p=t((function(t,o){u(t,l),d(t,{type:e,index:n(null),first:null,last:null,size:0}),h||(t.size=0),a(o)||c(o,t[f],{that:t,AS_ENTRIES:r})})),l=p.prototype,y=g(e),m=function(t,e,r){var n,o,i=y(t),s=w(t,e);return s?s.value=r:(i.last=s={index:o=v(e,!0),key:e,value:r,previous:n=i.last,next:null,removed:!1},i.first||(i.first=s),n&&(n.next=s),h?i.size++:t.size++,"F"!==o&&(i.index[o]=s)),t},w=function(t,e){var r,n=y(t),o=v(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return i(l,{clear:function(){for(var t=y(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=n(null),h?t.size=0:this.size=0},delete:function(t){var e=this,r=y(e),n=w(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),h?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=y(this),n=s(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!w(this,t)}}),i(l,r?{get:function(t){var e=w(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),h&&o(l,"size",{configurable:!0,get:function(){return y(this).size}}),p},setStrong:function(t,e,r){var n=e+" Iterator",o=g(e),i=g(n);f(t,e,(function(t,e){d(this,{type:n,target:t,state:o(t),kind:e,last:null})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?p("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=null,p(void 0,!0))}),r?"entries":"values",!r,!0),l(e)}}},319:function(t,e,r){"use strict";var n=r(9989),o=r(1087),i=r(8844),s=r(5266),u=r(1880),a=r(5375),c=r(8734),f=r(767),p=r(9985),l=r(981),h=r(8999),v=r(3689),y=r(6431),d=r(5997),g=r(3457);t.exports=function(t,e,r){var m=-1!==t.indexOf("Map"),w=-1!==t.indexOf("Weak"),b=m?"set":"add",x=o[t],A=x&&x.prototype,S=x,E={},O=function(t){var e=i(A[t]);u(A,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(w&&!h(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return w&&!h(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(w&&!h(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(s(t,!p(x)||!(w||A.forEach&&!v((function(){(new x).entries().next()})))))S=r.getConstructor(e,t,m,b),a.enable();else if(s(t,!0)){var T=new S,R=T[b](w?{}:-0,1)!==T,k=v((function(){T.has(1)})),P=y((function(t){new x(t)})),j=!w&&v((function(){for(var t=new x,e=5;e--;)t[b](e,e);return!t.has(-0)}));P||((S=e((function(t,e){f(t,A);var r=g(new x,t,S);return l(e)||c(e,r[b],{that:r,AS_ENTRIES:m}),r}))).prototype=A,A.constructor=S),(k||j)&&(O("delete"),O("has"),m&&O("get")),(j||R)&&O(b),w&&A.clear&&delete A.clear}return E[t]=S,n({global:!0,constructor:!0,forced:S!==x},E),d(S,t),w||r.setStrong(S,t,m),S}},8758:function(t,e,r){"use strict";var n=r(6812),o=r(9152),i=r(2474),s=r(2560);t.exports=function(t,e,r){for(var u=o(e),a=s.f,c=i.f,f=0;f<u.length;f++){var p=u[f];n(t,p)||r&&n(r,p)||a(t,p,c(e,p))}}},7413:function(t,e,r){"use strict";var n=r(4201)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},1748:function(t,e,r){"use strict";var n=r(3689);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},7807:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},5773:function(t,e,r){"use strict";var n=r(7697),o=r(2560),i=r(5684);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},5684:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6522:function(t,e,r){"use strict";var n=r(7697),o=r(2560),i=r(5684);t.exports=function(t,e,r){n?o.f(t,e,i(0,r)):t[e]=r}},2148:function(t,e,r){"use strict";var n=r(8702),o=r(2560);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),o.f(t,e,r)}},1880:function(t,e,r){"use strict";var n=r(9985),o=r(2560),i=r(8702),s=r(5014);t.exports=function(t,e,r,u){u||(u={});var a=u.enumerable,c=void 0!==u.name?u.name:e;if(n(r)&&i(r,c,u),u.global)a?t[e]=r:s(e,r);else{try{u.unsafe?t[e]&&(a=!0):delete t[e]}catch(t){}a?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},6045:function(t,e,r){"use strict";var n=r(1880);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},5014:function(t,e,r){"use strict";var n=r(1087),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},8494:function(t,e,r){"use strict";var n=r(3691),o=TypeError;t.exports=function(t,e){if(!delete t[e])throw new o("Cannot delete property "+n(e)+" of "+n(t))}},7697:function(t,e,r){"use strict";var n=r(3689);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6420:function(t,e,r){"use strict";var n=r(1087),o=r(8999),i=n.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},6338:function(t){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},3265:function(t,e,r){"use strict";var n=r(6420)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},8749:function(t,e,r){"use strict";var n=r(1087),o=r(8844);t.exports=function(t,e){return o(n[t].prototype[e])}},2739:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6164:function(t,e,r){"use strict";var n=r(8017).match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]},4014:function(t,e,r){"use strict";var n=r(8017);t.exports=/MSIE|Trident/.test(n)},7636:function(t,e,r){"use strict";var n=r(8017);t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},1631:function(t,e,r){"use strict";var n=r(8017);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},240:function(t,e,r){"use strict";var n=r(9791);t.exports="NODE"===n},9976:function(t,e,r){"use strict";var n=r(8017);t.exports=/web0s(?!.*chrome)/i.test(n)},8017:function(t,e,r){"use strict";var n=r(1087).navigator,o=n&&n.userAgent;t.exports=o?String(o):""},1352:function(t,e,r){"use strict";var n,o,i=r(1087),s=r(8017),u=i.process,a=i.Deno,c=u&&u.versions||a&&a.version,f=c&&c.v8;f&&(o=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},3826:function(t,e,r){"use strict";var n=r(8017).match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]},9791:function(t,e,r){"use strict";var n=r(1087),o=r(8017),i=r(6648),s=function(t){return o.slice(0,t.length)===t};t.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},6610:function(t,e,r){"use strict";var n=r(8844),o=Error,i=n("".replace),s=String(new o("zxcasd").stack),u=/\n\s*at [^:]*:[^\n]*/,a=u.test(s);t.exports=function(t,e){if(a&&"string"==typeof t&&!o.prepareStackTrace)for(;e--;)t=i(t,u,"");return t}},5411:function(t,e,r){"use strict";var n=r(5773),o=r(6610),i=r(9599),s=Error.captureStackTrace;t.exports=function(t,e,r,u){i&&(s?s(t,e):n(t,"stack",o(r,u)))}},9599:function(t,e,r){"use strict";var n=r(3689),o=r(5684);t.exports=!n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},9989:function(t,e,r){"use strict";var n=r(1087),o=r(2474).f,i=r(5773),s=r(1880),u=r(5014),a=r(8758),c=r(5266);t.exports=function(t,e){var r,f,p,l,h,v=t.target,y=t.global,d=t.stat;if(r=y?n:d?n[v]||u(v,{}):n[v]&&n[v].prototype)for(f in e){if(l=e[f],p=t.dontCallGetSet?(h=o(r,f))&&h.value:r[f],!c(y?f:v+(d?".":"#")+f,t.forced)&&void 0!==p){if(typeof l==typeof p)continue;a(l,p)}(t.sham||p&&p.sham)&&i(l,"sham",!0),s(r,f,l,t)}}},3689:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},1594:function(t,e,r){"use strict";var n=r(3689);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},1735:function(t,e,r){"use strict";var n=r(7215),o=Function.prototype,i=o.apply,s=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(i):function(){return s.apply(i,arguments)})},4071:function(t,e,r){"use strict";var n=r(6576),o=r(509),i=r(7215),s=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?s(t,e):function(){return t.apply(e,arguments)}}},7215:function(t,e,r){"use strict";var n=r(3689);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},2615:function(t,e,r){"use strict";var n=r(7215),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},1236:function(t,e,r){"use strict";var n=r(7697),o=r(6812),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,u=o(i,"name"),a=u&&"something"===function(){}.name,c=u&&(!n||n&&s(i,"name").configurable);t.exports={EXISTS:u,PROPER:a,CONFIGURABLE:c}},2743:function(t,e,r){"use strict";var n=r(8844),o=r(509);t.exports=function(t,e,r){try{return n(o(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},6576:function(t,e,r){"use strict";var n=r(6648),o=r(8844);t.exports=function(t){if("Function"===n(t))return o(t)}},8844:function(t,e,r){"use strict";var n=r(7215),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);t.exports=n?s:function(t){return function(){return i.apply(t,arguments)}}},6058:function(t,e,r){"use strict";var n=r(1087),o=r(9985);t.exports=function(t,e){return arguments.length<2?(r=n[t],o(r)?r:void 0):n[t]&&n[t][e];var r}},1664:function(t,e,r){"use strict";var n=r(926),o=r(4849),i=r(981),s=r(9478),u=r(4201)("iterator");t.exports=function(t){if(!i(t))return o(t,u)||o(t,"@@iterator")||s[n(t)]}},5185:function(t,e,r){"use strict";var n=r(2615),o=r(509),i=r(5027),s=r(3691),u=r(1664),a=TypeError;t.exports=function(t,e){var r=arguments.length<2?u(t):e;if(o(r))return i(n(r,t));throw new a(s(t)+" is not iterable")}},4849:function(t,e,r){"use strict";var n=r(509),o=r(981);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},1087:function(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},6812:function(t,e,r){"use strict";var n=r(8844),o=r(690),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},7248:function(t){"use strict";t.exports={}},920:function(t){"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},2688:function(t,e,r){"use strict";var n=r(6058);t.exports=n("document","documentElement")},8506:function(t,e,r){"use strict";var n=r(7697),o=r(3689),i=r(6420);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},5477:function(t){"use strict";var e=Array,r=Math.abs,n=Math.pow,o=Math.floor,i=Math.log,s=Math.LN2;t.exports={pack:function(t,u,a){var c,f,p,l=e(a),h=8*a-u-1,v=(1<<h)-1,y=v>>1,d=23===u?n(2,-24)-n(2,-77):0,g=t<0||0===t&&1/t<0?1:0,m=0;for((t=r(t))!=t||t===1/0?(f=t!=t?1:0,c=v):(c=o(i(t)/s),t*(p=n(2,-c))<1&&(c--,p*=2),(t+=c+y>=1?d/p:d*n(2,1-y))*p>=2&&(c++,p/=2),c+y>=v?(f=0,c=v):c+y>=1?(f=(t*p-1)*n(2,u),c+=y):(f=t*n(2,y-1)*n(2,u),c=0));u>=8;)l[m++]=255&f,f/=256,u-=8;for(c=c<<u|f,h+=u;h>0;)l[m++]=255&c,c/=256,h-=8;return l[m-1]|=128*g,l},unpack:function(t,e){var r,o=t.length,i=8*o-e-1,s=(1<<i)-1,u=s>>1,a=i-7,c=o-1,f=t[c--],p=127&f;for(f>>=7;a>0;)p=256*p+t[c--],a-=8;for(r=p&(1<<-a)-1,p>>=-a,a+=e;a>0;)r=256*r+t[c--],a-=8;if(0===p)p=1-u;else{if(p===s)return r?NaN:f?-1/0:1/0;r+=n(2,e),p-=u}return(f?-1:1)*r*n(2,p-e)}}},4413:function(t,e,r){"use strict";var n=r(8844),o=r(3689),i=r(6648),s=Object,u=n("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?u(t,""):s(t)}:s},3457:function(t,e,r){"use strict";var n=r(9985),o=r(8999),i=r(9385);t.exports=function(t,e,r){var s,u;return i&&n(s=e.constructor)&&s!==r&&o(u=s.prototype)&&u!==r.prototype&&i(t,u),t}},6738:function(t,e,r){"use strict";var n=r(8844),o=r(9985),i=r(4091),s=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return s(t)}),t.exports=i.inspectSource},2570:function(t,e,r){"use strict";var n=r(8999),o=r(5773);t.exports=function(t,e){n(e)&&"cause"in e&&o(t,"cause",e.cause)}},5375:function(t,e,r){"use strict";var n=r(9989),o=r(8844),i=r(7248),s=r(8999),u=r(6812),a=r(2560).f,c=r(2741),f=r(6062),p=r(1129),l=r(4630),h=r(1594),v=!1,y=l("meta"),d=0,g=function(t){a(t,y,{value:{objectID:"O"+d++,weakData:{}}})},m=t.exports={enable:function(){m.enable=function(){},v=!0;var t=c.f,e=o([].splice),r={};r[y]=1,t(r).length&&(c.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===y){e(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,e){if(!s(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!u(t,y)){if(!p(t))return"F";if(!e)return"E";g(t)}return t[y].objectID},getWeakData:function(t,e){if(!u(t,y)){if(!p(t))return!0;if(!e)return!1;g(t)}return t[y].weakData},onFreeze:function(t){return h&&v&&p(t)&&!u(t,y)&&g(t),t}};i[y]=!0},618:function(t,e,r){"use strict";var n,o,i,s=r(9834),u=r(1087),a=r(8999),c=r(5773),f=r(6812),p=r(4091),l=r(2713),h=r(7248),v="Object already initialized",y=u.TypeError,d=u.WeakMap;if(s||p.state){var g=p.state||(p.state=new d);g.get=g.get,g.has=g.has,g.set=g.set,n=function(t,e){if(g.has(t))throw new y(v);return e.facade=t,g.set(t,e),e},o=function(t){return g.get(t)||{}},i=function(t){return g.has(t)}}else{var m=l("state");h[m]=!0,n=function(t,e){if(f(t,m))throw new y(v);return e.facade=t,c(t,m,e),e},o=function(t){return f(t,m)?t[m]:{}},i=function(t){return f(t,m)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!a(e)||(r=o(e)).type!==t)throw new y("Incompatible receiver, "+t+" required");return r}}}},3292:function(t,e,r){"use strict";var n=r(4201),o=r(9478),i=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||s[i]===t)}},2297:function(t,e,r){"use strict";var n=r(6648);t.exports=Array.isArray||function(t){return"Array"===n(t)}},9401:function(t,e,r){"use strict";var n=r(926);t.exports=function(t){var e=n(t);return"BigInt64Array"===e||"BigUint64Array"===e}},9985:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},9429:function(t,e,r){"use strict";var n=r(8844),o=r(3689),i=r(9985),s=r(926),u=r(6058),a=r(6738),c=function(){},f=u("Reflect","construct"),p=/^\s*(?:class|function)\b/,l=n(p.exec),h=!p.test(c),v=function(t){if(!i(t))return!1;try{return f(c,[],t),!0}catch(t){return!1}},y=function(t){if(!i(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!l(p,a(t))}catch(t){return!0}};y.sham=!0,t.exports=!f||o((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?y:v},5266:function(t,e,r){"use strict";var n=r(3689),o=r(9985),i=/#|\.prototype\./,s=function(t,e){var r=a[u(t)];return r===f||r!==c&&(o(e)?n(e):!!e)},u=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=s.data={},c=s.NATIVE="N",f=s.POLYFILL="P";t.exports=s},1973:function(t,e,r){"use strict";var n=r(8999),o=Math.floor;t.exports=Number.isInteger||function(t){return!n(t)&&isFinite(t)&&o(t)===t}},981:function(t){"use strict";t.exports=function(t){return null==t}},8999:function(t,e,r){"use strict";var n=r(9985);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},598:function(t,e,r){"use strict";var n=r(8999);t.exports=function(t){return n(t)||null===t}},3931:function(t){"use strict";t.exports=!1},1245:function(t,e,r){"use strict";var n=r(8999),o=r(6648),i=r(4201)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[i])?!!e:"RegExp"===o(t))}},734:function(t,e,r){"use strict";var n=r(6058),o=r(9985),i=r(3622),s=r(9525),u=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,u(t))}},8734:function(t,e,r){"use strict";var n=r(4071),o=r(2615),i=r(5027),s=r(3691),u=r(3292),a=r(6310),c=r(3622),f=r(5185),p=r(1664),l=r(2125),h=TypeError,v=function(t,e){this.stopped=t,this.result=e},y=v.prototype;t.exports=function(t,e,r){var d,g,m,w,b,x,A,S=r&&r.that,E=!(!r||!r.AS_ENTRIES),O=!(!r||!r.IS_RECORD),T=!(!r||!r.IS_ITERATOR),R=!(!r||!r.INTERRUPTED),k=n(e,S),P=function(t){return d&&l(d,"normal",t),new v(!0,t)},j=function(t){return E?(i(t),R?k(t[0],t[1],P):k(t[0],t[1])):R?k(t,P):k(t)};if(O)d=t.iterator;else if(T)d=t;else{if(!(g=p(t)))throw new h(s(t)+" is not iterable");if(u(g)){for(m=0,w=a(t);w>m;m++)if((b=j(t[m]))&&c(y,b))return b;return new v(!1)}d=f(t,g)}for(x=O?t.next:d.next;!(A=o(x,d)).done;){try{b=j(A.value)}catch(t){l(d,"throw",t)}if("object"==typeof b&&b&&c(y,b))return b}return new v(!1)}},2125:function(t,e,r){"use strict";var n=r(2615),o=r(5027),i=r(4849);t.exports=function(t,e,r){var s,u;o(t);try{if(!(s=i(t,"return"))){if("throw"===e)throw r;return r}s=n(s,t)}catch(t){u=!0,s=t}if("throw"===e)throw r;if(u)throw s;return o(s),r}},974:function(t,e,r){"use strict";var n=r(2013).IteratorPrototype,o=r(5391),i=r(5684),s=r(5997),u=r(9478),a=function(){return this};t.exports=function(t,e,r,c){var f=e+" Iterator";return t.prototype=o(n,{next:i(+!c,r)}),s(t,f,!1,!0),u[f]=a,t}},1934:function(t,e,r){"use strict";var n=r(9989),o=r(2615),i=r(3931),s=r(1236),u=r(9985),a=r(974),c=r(1868),f=r(9385),p=r(5997),l=r(5773),h=r(1880),v=r(4201),y=r(9478),d=r(2013),g=s.PROPER,m=s.CONFIGURABLE,w=d.IteratorPrototype,b=d.BUGGY_SAFARI_ITERATORS,x=v("iterator"),A="keys",S="values",E="entries",O=function(){return this};t.exports=function(t,e,r,s,v,d,T){a(r,e,s);var R,k,P,j=function(t){if(t===v&&I)return I;if(!b&&t&&t in C)return C[t];switch(t){case A:case S:case E:return function(){return new r(this,t)}}return function(){return new r(this)}},L=e+" Iterator",U=!1,C=t.prototype,M=C[x]||C["@@iterator"]||v&&C[v],I=!b&&M||j(v),B="Array"===e&&C.entries||M;if(B&&(R=c(B.call(new t)))!==Object.prototype&&R.next&&(i||c(R)===w||(f?f(R,w):u(R[x])||h(R,x,O)),p(R,L,!0,!0),i&&(y[L]=O)),g&&v===S&&M&&M.name!==S&&(!i&&m?l(C,"name",S):(U=!0,I=function(){return o(M,this)})),v)if(k={values:j(S),keys:d?I:j(A),entries:j(E)},T)for(P in k)(b||U||!(P in C))&&h(C,P,k[P]);else n({target:e,proto:!0,forced:b||U},k);return i&&!T||C[x]===I||h(C,x,I,{name:v}),y[e]=I,k}},2013:function(t,e,r){"use strict";var n,o,i,s=r(3689),u=r(9985),a=r(8999),c=r(5391),f=r(1868),p=r(1880),l=r(4201),h=r(3931),v=l("iterator"),y=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(n=o):y=!0),!a(n)||s((function(){var t={};return n[v].call(t)!==t}))?n={}:h&&(n=c(n)),u(n[v])||p(n,v,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:y}},9478:function(t){"use strict";t.exports={}},6310:function(t,e,r){"use strict";var n=r(3126);t.exports=function(t){return n(t.length)}},8702:function(t,e,r){"use strict";var n=r(8844),o=r(3689),i=r(9985),s=r(6812),u=r(7697),a=r(1236).CONFIGURABLE,c=r(6738),f=r(618),p=f.enforce,l=f.get,h=String,v=Object.defineProperty,y=n("".slice),d=n("".replace),g=n([].join),m=u&&!o((function(){return 8!==v((function(){}),"length",{value:8}).length})),w=String(String).split("String"),b=t.exports=function(t,e,r){"Symbol("===y(h(e),0,7)&&(e="["+d(h(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!s(t,"name")||a&&t.name!==e)&&(u?v(t,"name",{value:e,configurable:!0}):t.name=e),m&&r&&s(r,"arity")&&t.length!==r.arity&&v(t,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?u&&v(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}