PageSourceSearch

https://xota.ai/_next/static/chunks/b75e687f-42a1b8682b6a4571.js

js xota.ai collected 2026-10-05 15:59:30 UTC 1,609,881 bytes, 6 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8497],{84416:function(e,t,n){!function(e){"use strict";let t,r,i,o,a;var s=void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function c(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var d={exports:{}};ec=d.exports,ed="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==l&&l,eh=ef=function(){function e(){this.fetch=!1,this.DOMException=ed.DOMException}return e.prototype=ed,new e}(),function(e){var t=void 0!==eh&&eh||"undefined"!=typeof self&&self||void 0!==t&&t,n="URLSearchParams"in t,r="Symbol"in t&&"iterator"in Symbol,i="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in t,a="ArrayBuffer"in t;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function h(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function m(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(m)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=p(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(A)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=u(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[u(e)]},f.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},f.prototype.set=function(e,t){this.map[u(e)]=c(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),d(e)},f.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),d(e)},f.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),d(e)},r&&(f.prototype[Symbol.iterator]=f.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(e,t){if(!(this instanceof y))throw TypeError('Please use the "new" operator, this DOM object c
1onstructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof y){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),b.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function A(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function w(e,t){if(!(this instanceof w))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},v.call(y.prototype),v.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var _=[301,302,303,307,308];w.redirect=function(e,t){if(-1===_.indexOf(t))throw RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function E(n,r){return new Promise(function(o,s){var l=new y(n,r);if(l.signal&&l.signal.aborted)return s(new e.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function d(){u.abort()}u.onload=function(){var e,t,n={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t)};n.url="responseURL"in u?u.responseURL:n.headers.get("X-Request-URL");var r="response"in u?u.response:u.responseText;setTimeout(function(){o(new w(r,n))},0)},u.onerror=function(){setTimeout(function(){s(TypeError("Network request failed"))},0)},u.ontimeout=function(){setTimeout(function(){s(TypeError("Network request failed"))},0)},u.onabort=function(){setTimeout(function(){s(new e.DOMException("Aborted","AbortError"))},0)},u.open(l.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(l.url),!0),"include"===l.credentials?u.withCredentials=!0:"omit"===l.credentials&&(u.withCredentials=!1),"responseType"in u&&(i?u.responseType="blob":a&&l.headers.get("Content-Type")&&-1!==l.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!r||"object"!=typeof r.headers||r.headers instanceof f?l.headers.forEach(function(e,t){u.setRequestHeader(t,e)}):Object.getOwnPropertyNames(r.headers).forEach(function(e){u.setRequestHeader(e,c(r.headers[e]))}),l.signal&&(l.signal.addEventListener("abort",d),u.onreadystatechange=function(){4===u.readyState&&l.signal.removeEventListener("abort",d)}),u.send(void 0===l._bodyInit?null:l._bodyInit)})}E.polyfill=!0,t.fetch||(t.fetch=E,t.Headers=f,t.Request=y,t.Response=w),e.Headers=f,e.Request=y,e.Response=w,e.fetch=E}({}),ef.fetch.ponyfill=!0,delete ef.fetch.polyfill,(ec=(ep=ed.fetch?ed:ef).fetch).default=ep.fetch,ec.fetch=ep.fetch,ec.Headers=ep.Headers,ec.Request=ep.Request,ec.Response=ep.Response,d.exports=ec;
1var f=u(d.exports),h=[],p=[],m="undefined"!=typeof Uint8Array?Uint8Array:Array,g=!1;function v(){g=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)h[t]=e[t],p[e.charCodeAt(t)]=t;p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63}function b(e){var t;g||v();for(var n=e.length,r=n%3,i="",o=[],a=0,s=n-r;a<s;a+=16383)o.push(function(e,t,n){for(var r,i=[],o=t;o<n;o+=3)i.push(h[(r=(e[o]<<16)+(e[o+1]<<8)+e[o+2])>>18&63]+h[r>>12&63]+h[r>>6&63]+h[63&r]);return i.join("")}(e,a,a+16383>s?s:a+16383));return 1===r?i+=h[(t=e[n-1])>>2]+h[t<<4&63]+"==":2===r&&(i+=h[(t=(e[n-2]<<8)+e[n-1])>>10]+h[t>>4&63]+h[t<<2&63]+"="),o.push(i),o.join("")}function y(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)}function A(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,d=c>>1,f=23===i?5960464477539062e-23:0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*m}var w={}.toString,_=Array.isArray||function(e){return"[object Array]"==w.call(e)};M.TYPED_ARRAY_SUPPORT=void 0===s.TYPED_ARRAY_SUPPORT||s.TYPED_ARRAY_SUPPORT;var E=S();function S(){return M.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function k(e,t){if(S()<t)throw RangeError("Invalid typed array length");return M.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=M.prototype:(null===e&&(e=new M(t)),e.length=t),e}function M(e,t,n){if(!(M.TYPED_ARRAY_SUPPORT||this instanceof M))return new M(e,t,n);if("number"==typeof e){if("string"==typeof t)throw Error("If encoding is specified then the first argument must be a string");return R(this,e)}return C(this,e,t,n)}function C(e,t,n,r){if("number"==typeof t)throw TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),M.TYPED_ARRAY_SUPPORT?(e=t).__proto__=M.prototype:e=I(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!M.isEncoding(n))throw TypeError('"encoding" must be a valid string encoding');var r=0|P(t,n),i=(e=k(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(O(t)){var n,r=0|T(t.length);return 0===(e=k(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?k(e,0):I(e,t);if("Buffer"===t.type&&_(t.data))return I(e,t.data)}throw TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function x(e){if("number"!=typeof e)throw TypeError('"size" argument must be a number');if(e<0)throw RangeError('"size" argument must not be negative')}function R(e,t){if(x(t),e=k(e,t<0?0:0|T(t)),!M.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function I(e,t){var n=t.length<0?0:0|T(t.length);e=k(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function T(e){if(e>=S())throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+S().toString(16)+" bytes");return 0|e}function O(e){return!(null==e||!e._isBuffer)}function P(e,t){if(O(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(r)return Y(e).length;t=(""+t).toLowerCase(),r=!0}}function L(e,t,n){var r,i,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r,i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var o="",a=t;a<n;++a)o+=(r=e[a])<16?"0"+r.toString(16):r.toString(16);return o}(this,t,n);case"utf8":case"utf-8":return j(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return r=t,i=n,0===r&&i===this.length?b(this):b(this.slice(r,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(this,t,n);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function N(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function D(e,t,n,r,i){if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),isNaN(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=M.from(t,r)),O(t))return 0===t.length?-1:B(e,t,n,r,i);if("number"==typeof t)return t&=255,M.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):B(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function B(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;
vendor: 13,063 bytes, line 1
1a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else -1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){d=!1;break}if(d)return o}return -1}function j(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=F)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=F));return n}(r)}M.poolSize=8192,M._augment=function(e){return e.__proto__=M.prototype,e},M.from=function(e,t,n){return C(null,e,t,n)},M.TYPED_ARRAY_SUPPORT&&(M.prototype.__proto__=Uint8Array.prototype,M.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&M[Symbol.species]),M.alloc=function(e,t,n){return x(e),e<=0?k(null,e):void 0!==t?"string"==typeof n?k(null,e).fill(t,n):k(null,e).fill(t):k(null,e)},M.allocUnsafe=function(e){return R(null,e)},M.allocUnsafeSlow=function(e){return R(null,e)},M.isBuffer=Z,M.compare=function(e,t){if(!O(e)||!O(t))throw TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},M.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},M.concat=function(e,t){if(!_(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return M.alloc(0);if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var n,r=M.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!O(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},M.byteLength=P,M.prototype._isBuffer=!0,M.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)N(this,t,t+1);return this},M.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)N(this,t,t+3),N(this,t+1,t+2);return this},M.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)N(this,t,t+7),N(this,t+1,t+6),N(this,t+2,t+5),N(this,t+3,t+4);return this},M.prototype.toString=function(){var e=0|this.length;return 0===e?"":0==arguments.length?j(this,0,e):L.apply(this,arguments)},M.prototype.equals=function(e){if(!O(e))throw TypeError("Argument must be a Buffer");return this===e||0===M.compare(this,e)},M.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},M.prototype.compare=function(e,t,n,r,i){if(!O(e))throw TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),u=e.slice(t,n),c=0;c<s;++c)if(l[c]!==u[c]){o=l[c],a=u[c];break}return o<a?-1:a<o?1:0},M.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},M.prototype.indexOf=function(e,t,n){return D(this,e,t,n,!0)},M.prototype.lastIndexOf=function(e,t,n){return D(this,e,t,n,!1)},M.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i,o,a,s,l,u,c,d,f,h,p=this.length-t;if((void 0===n||n>p)&&(n=p),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var m=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))break;e[n+a]=s}return a}(this,e,t,n);case"utf8":case"utf-8":return l=t,u=n,Q(Y(e,this.length-l),this,l,u);case"ascii":case"latin1":case"binary":return i=this,o=e,a=t,s=n,Q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(o),i,a,s);case"base64":return c=t,d=n,Q(G(e),this,c,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f=t,h=n,Q(function(e,t){for(var n,r,i=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i.push(n%256),i.push(r);return i}(e,this.length-f),this,f,h);default:if(m)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),m=!0}},M.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var F=4096;function z(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function U(e,t,n,r,i,o){if(!O(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function q(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function K(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function H(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function V(e,t,n,r,i){return i||H(e,0,n,4),A(e,t,n,r,23,4),n+4}function $(e,t,n,r,i){return i||H(e,0,n,8),A(e,t,n,r,52,8),n+8}M.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),M.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=M.prototype;else{var i=t-e;n=new M(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},M.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},M.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},M.prototype.readUInt8=function(e,t){return t||z(e,1,this.length),this[e]},M.prototype.readUInt16LE=function(e,t){return t||z(e,2,this.length),this[e]|this[e+1]<<8},M.prototype.readUInt16BE=function(e,t){return t||z(e,2,this.length),this[e]<<8|this[e+1]},M.prototype.readUInt32LE=function(e,t){return t||z(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},M.prototype.readUInt32BE=function(e,t){return t||z(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},M.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},M.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},M.prototype.readInt8=function(e,t){return t||z(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},M.prototype.readInt16LE=function(e,t){t||z(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},M.prototype.readInt16BE=function(e,t){t||z(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},M.prototype.readInt32LE=function(e,t){return t||z(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},M.prototype.readInt32BE=function(e,t){return t||z(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},M.prototype.readFloatLE=function(e,t){return t||z(e,4,this.length),y(this,e,!0,23,4)},M.prototype.readFloatBE=function(e,t){return t||z(e,4,this.length),y(this,e,!1,23,4)},M.prototype.readDoubleLE=function(e,t){return t||z(e,8,this.length),y(this,e,!0,52,8)},M.prototype.readDoubleBE=function(e,t){return t||z(e,8,this.length),y(this,e,!1,52,8)},M.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||U(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},M.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||U(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},M.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,1,255,0),M.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},M.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,2,65535,0),M.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},M.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,2,65535,0),M.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},M.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,4,4294967295,0),M.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):K(this,e,t,!0),t+4},M.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,4,4294967295,0),M.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):K(this,e,t,!1),t+4},M.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);U(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},M.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);U(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},M.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,1,127,-128),M.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},M.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,2,32767,-32768),M.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},M.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,2,32767,-32768),M.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},M.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,4,2147483647,-2147483648),M.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):K(this,e,t,!0),t+4},M.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||U(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),M.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):K(this,e,t,!1),t+4},M.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},M.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)},M.prototype.writeDoubleLE=function(e,t,n){return $(this,e,t,!0,n)},M.prototype.writeDoubleBE=function(e,t,n){return $(this,e,t,!1,n)},M.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("sourceStart out of bounds");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!M.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},M.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i,o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!M.isEncoding(r))throw TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=O(e)?e:Y(new M(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function Y(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>
1-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function G(e){return function(e){g||v();var t,n,r,i,o,a,s=e.length;if(s%4>0)throw Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new m(3*s/4-o),r=o>0?s-4:s;var l=0;for(t=0,n=0;t<r;t+=4,n+=3)i=p[e.charCodeAt(t)]<<18|p[e.charCodeAt(t+1)]<<12|p[e.charCodeAt(t+2)]<<6|p[e.charCodeAt(t+3)],a[l++]=i>>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=p[e.charCodeAt(t)]<<2|p[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=p[e.charCodeAt(t)]<<10|p[e.charCodeAt(t+1)]<<4|p[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a}(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Q(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Z(e){return null!=e&&(!!e._isBuffer||J(e)||"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&J(e.slice(0,0)))}function J(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var X=Object.freeze({__proto__:null,Buffer:M,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),M.alloc(+e)},isBuffer:Z,kMaxLength:E}),ee={},et={},en={},er=c(X),ei={};function eo(){throw Error("setTimeout has not been defined")}function ea(){throw Error("clearTimeout has not been defined")}var es=eo,el=ea;function eu(e){if(es===setTimeout)return setTimeout(e,0);if((es===eo||!es)&&setTimeout)return es=setTimeout,setTimeout(e,0);try{return es(e,0)}catch(t){try{return es.call(null,e,0)}catch(t){return es.call(this,e,0)}}}"function"==typeof s.setTimeout&&(es=setTimeout),"function"==typeof s.clearTimeout&&(el=clearTimeout);var ec,ed,ef,eh,ep,em,eg=[],ev=!1,eb=-1;function ey(){ev&&em&&(ev=!1,em.length?eg=em.concat(eg):eb=-1,eg.length&&eA())}function eA(){if(!ev){var e=eu(ey);ev=!0;for(var t=eg.length;t;){for(em=eg,eg=[];++eb<t;)em&&em[eb].run();eb=-1,t=eg.length}em=null,ev=!1,function(e){if(el===clearTimeout)return clearTimeout(e);if((el===ea||!el)&&clearTimeout)return el=clearTimeout,clearTimeout(e);try{el(e)}catch(t){try{return el.call(null,e)}catch(t){return el.call(this,e)}}}(e)}}function ew(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];eg.push(new e_(e,t)),1!==eg.length||ev||eu(eA)}function e_(e,t){this.fun=e,this.array=t}function eE(){}e_.prototype.run=function(){this.fun.apply(null,this.array)};var eS,ek=s.performance||{},eM=ek.now||ek.mozNow||ek.msNow||ek.oNow||ek.webkitNow||function(){return(new Date).getTime()},eC=new Date,ex={nextTick:ew,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:eE,addListener:eE,once:eE,off:eE,removeListener:eE,removeAllListeners:eE,emit:eE,binding:function(e){throw Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*eM.call(ek),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-eC)/1e3}},eR={exports:{}},eI={exports:{}};function eT(){return eS||(eS=1,function(e,t){var n=er.Buffer;function r(e,t){for(var n in e)t[n]=e[n]}function i(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=er:(r(er,t),t.Buffer=i),i.prototype=Object.create(n.prototype),r(n,i),i.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return n(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},i.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return er.SlowBuffer(e)}}
1(eI,eI.exports)),eI.exports}var eO=eT().Buffer,eP=l.crypto||l.msCrypto;eP&&eP.getRandomValues?eR.exports=function(e,t){if(e>4294967295)throw RangeError("requested too many random bytes");var n=eO.allocUnsafe(e);if(e>0){if(e>65536)for(var r=0;r<e;r+=65536)eP.getRandomValues(n.slice(r,r+65536));else eP.getRandomValues(n)}return"function"==typeof t?ew(function(){t(null,n)}):n}:eR.exports=function(){throw Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")};var eL=eR.exports,eN={exports:{}};"function"==typeof Object.create?eN.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:eN.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}};var eD=eN.exports,eB={exports:{}};function ej(){}function eF(){eF.init.call(this)}function ez(e){return void 0===e._maxListeners?eF.defaultMaxListeners:e._maxListeners}function eU(e,t,n,r){var i,o,a;if("function"!=typeof n)throw TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]):(o=e._events=new ej,e._eventsCount=0),a){if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(i=ez(e))&&i>0&&a.length>i){a.warned=!0;var s=Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=o[t]=n,++e._eventsCount;return e}function eq(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function eK(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function eH(e,t){for(var n=Array(t);t--;)n[t]=e[t];return n}ej.prototype=Object.create(null),eF.EventEmitter=eF,eF.usingDomains=!1,eF.prototype.domain=void 0,eF.prototype._events=void 0,eF.prototype._maxListeners=void 0,eF.defaultMaxListeners=10,eF.init=function(){this.domain=null,eF.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new ej,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},eF.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},eF.prototype.getMaxListeners=function(){return ez(this)},eF.prototype.emit=function(e){var t,n,r,i,o,a,s,l="error"===e;if(a=this._events)l=l&&null==a.error;else if(!l)return!1;if(s=this.domain,l){if(t=arguments[1],!s){if(t instanceof Error)throw t;var u=Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}return t||(t=Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var c="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=eH(e,r),o=0;o<r;++o)i[o].call(n)}(n,c,this);break;case 2:!function(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,o=eH(e,i),a=0;a<i;++a)o[a].call(n,r)}(n,c,this,arguments[1]);break;case 3:!function(e,t,n,r,i){if(t)e.call(n,r,i);else for(var o=e.length,a=eH(e,o),s=0;s<o;++s)a[s].call(n,r,i)}(n,c,this,arguments[1],arguments[2]);break;case 4:!function(e,t,n,r,i,o){if(t)e.call(n,r,i,o);else for(var a=e.length,s=eH(e,a),l=0;l<a;++l)s[l].call(n,r,i,o)}(n,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];!function(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,o=eH(e,i),a=0;a<i;++a)o[a].apply(n,r)}(n,c,this,i)}return!0},eF.prototype.addListener=function(e,t){return eU(this,e,t,!1)},eF.prototype.on=eF.prototype.addListener,eF.prototype.prependListener=function(e,t){return eU(this,e,t,!0)},eF.prototype.once=function(e,t){if("function"!=typeof t)throw TypeError('"listener" argument must be a function');return this.on(e,eq(this,e,t)),this},eF.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw TypeError('"listener" argument must be a function');return this.prependListener(e,eq(this,e,t)),this},eF.prototype.removeListener=function(e,t){var n,r,i,o,a;if("function"!=typeof t)throw TypeError('"listener" argument must be a function');if(!(r=this._events)||!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)0==--this._eventsCount?this._events=new ej:(delete r[e],r.removeListener&&this.emit
1("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new ej,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}(n,i);r.removeListener&&this.emit("removeListener",e,a||t)}return this},eF.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0==arguments.length?(this._events=new ej,this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=new ej:delete n[e]),this;if(0==arguments.length){for(var r,i=Object.keys(n),o=0;o<i.length;++o)"removeListener"!==(r=i[o])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new ej,this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)do this.removeListener(e,t[t.length-1]);while(t[0]);return this},eF.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(t):[]},eF.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):eK.call(e,t)},eF.prototype.listenerCount=eK,eF.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var eV=c(Object.freeze({__proto__:null,EventEmitter:eF,default:eF})),e$=eV.EventEmitter,eW="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},eY=/%[sdj%]/g;function eG(e){if(!tt(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(e0(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,o=String(e).replace(eY,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),a=r[n];n<i;a=r[++n])e7(a)||!to(a)?o+=" "+a:o+=" "+e0(a);return o}function eQ(e,t){if(tr(s.process))return function(){return eQ(e,t).apply(this,arguments)};if(!0===ex.noDeprecation)return e;var n=!1;return function(){if(!n){if(ex.throwDeprecation)throw Error(t);ex.traceDeprecation?console.trace(t):console.error(t),n=!0}return e.apply(this,arguments)}}var eZ,eJ={};function eX(e){return tr(eZ)&&(eZ=ex.env.NODE_DEBUG||""),eJ[e=e.toUpperCase()]||(RegExp("\\b"+e+"\\b","i").test(eZ)?eJ[e]=function(){var t=eG.apply(null,arguments);console.error("%s %d: %s",e,0,t)}:eJ[e]=function(){}),eJ[e]}function e0(e,t){var n={seen:[],stylize:e2};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),e5(t)?n.showHidden=t:t&&tm(n,t),tr(n.showHidden)&&(n.showHidden=!1),tr(n.depth)&&(n.depth=2),tr(n.colors)&&(n.colors=!1),tr(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=e1),e3(n,e,n.depth)}function e1(e,t){var n=e0.styles[t];return n?"\x1b["+e0.colors[n][0]+"m"+e+"\x1b["+e0.colors[n][1]+"m":e}function e2(e,t){return e}function e3(e,t,n){if(e.customInspect&&t&&tl(t.inspect)&&t.inspect!==e0&&(!t.constructor||t.constructor.prototype!==t)){var r,i,o=t.inspect(n,e);return tt(o)||(o=e3(e,o,n)),o}var a=function(e,t){if(tr(t))return e.stylize("undefined","undefined");if(tt(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}
1return te(t)?e.stylize(""+t,"number"):e5(t)?e.stylize(""+t,"boolean"):e7(t)?e.stylize("null","null"):void 0}(e,t);if(a)return a;var s=Object.keys(t),l=(c={},s.forEach(function(e,t){c[e]=!0}),c);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),ts(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return e6(t);if(0===s.length){if(tl(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(ti(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(ta(t))return e.stylize(Date.prototype.toString.call(t),"date");if(ts(t))return e6(t)}var c,d,f="",h=!1,p=["{","}"];return e8(t)&&(h=!0,p=["[","]"]),tl(t)&&(f=" [Function"+(t.name?": "+t.name:"")+"]"),ti(t)&&(f=" "+RegExp.prototype.toString.call(t)),ta(t)&&(f=" "+Date.prototype.toUTCString.call(t)),ts(t)&&(f=" "+e6(t)),0!==s.length||h&&0!=t.length?n<0?ti(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),d=h?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)tg(t,String(a))?o.push(e4(e,t,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(e4(e,t,n,r,i,!0))}),o}(e,t,n,l,s):s.map(function(r){return e4(e,t,n,l,r,h)}),e.seen.pop(),r=f,i=p,d.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?i[0]+(""===r?"":r+"\n ")+" "+d.join(",\n  ")+" "+i[1]:i[0]+r+" "+d.join(", ")+" "+i[1]):p[0]+f+p[1]}function e6(e){return"["+Error.prototype.toString.call(e)+"]"}function e4(e,t,n,r,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),tg(r,i)||(a="["+i+"]"),s||(0>e.seen.indexOf(l.value)?(s=e7(n)?e3(e,l.value,null):e3(e,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return"   "+e}).join("\n")):s=e.stylize("[Circular]","special")),tr(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function e8(e){return Array.isArray(e)}function e5(e){return"boolean"==typeof e}function e7(e){return null===e}function e9(e){return null==e}function te(e){return"number"==typeof e}function tt(e){return"string"==typeof e}function tn(e){return"symbol"==typeof e}function tr(e){return void 0===e}function ti(e){return to(e)&&"[object RegExp]"===td(e)}function to(e){return"object"==typeof e&&null!==e}function ta(e){return to(e)&&"[object Date]"===td(e)}function ts(e){return to(e)&&("[object Error]"===td(e)||e instanceof Error)}function tl(e){return"function"==typeof e}function tu(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function tc(e){return Z(e)}function td(e){return Object.prototype.toString.call(e)}function tf(e){return e<10?"0"+e.toString(10):e.toString(10)}e0.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},e0.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var th=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function tp(){var e,t;console.log("%s - %s",(t=[tf((e=new Date).getHours()),tf(e.getMinutes()),tf(e.getSeconds())].join(":"),[e.getDate(),th[e.getMonth()],t].join(" ")),eG.apply(null,arguments))}function tm(e,t){if(!t||!to(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function tg(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var tv,tb,ty=c(Object.freeze({__proto__:null,_extend:tm,debuglog:eX,default:{inherits:eW,_extend:tm,log:tp,isBuffer:tc,isPrimitive:tu,isFunction:tl,isError:ts,isDate:ta,isObject:to,isRegExp:ti,isUndefined:tr,isSymbol:tn,isString:tt,isNumber:te,isNullOrUndefined:e9,isNull:e7,isBoolean:e5,isArray:e8,inspect:e0,deprecate:eQ,format:eG,debuglog:eX},deprecate:eQ,format:eG,inherits:eW,inspect:e0,isArray:e8,isBoolean:e5,isBuffer:tc,isDate:ta,isError:ts,isFunction:tl,isNull:e7,isNullOrUndefined:e9,isNumber:te,isObject:to,isPrimitive:tu,isRegExp:ti,isString:tt,isSymbol:tn,isUndefined:tr,log:tp}));function tA(e,t){t_(e,t),tw(e)}function tw(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function t_(e,t){e.emit("error",t)}var tE={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ew(t_,this,e)):ew(t_,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?ew(tw,n):(n._writableState.errorEmitted=!0,ew(tA,n,e)):e
1w(tA,n,e):t?(ew(tw,n),t(e)):ew(tw,n)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}},tS={},tk={};function tM(e,t,n){n||(n=Error);var r=function(e){function n(n,r,i){return e.call(this,"string"==typeof t?t:t(n,r,i))||this}return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e,n}(n);r.prototype.name=n.name,r.prototype.code=e,tk[e]=r}function tC(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}tM("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),tM("ERR_INVALID_ARG_TYPE",function(e,t,n){if("string"==typeof t&&(i="not ",t.substr(!o||o<0?0:+o,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",s=" argument",(void 0===l||l>e.length)&&(l=e.length),e.substring(l-s.length,l)===s)a="The ".concat(e," ").concat(r," ").concat(tC(t,"type"));else{var r,i,o,a,s,l,u,c=("number"!=typeof u&&(u=0),u+1>e.length||-1===e.indexOf(".",u))?"argument":"property";a='The "'.concat(e,'" ').concat(c," ").concat(r," ").concat(tC(t,"type"))}return a+". Received type ".concat(typeof n)},TypeError),tM("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),tM("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),tM("ERR_STREAM_PREMATURE_CLOSE","Premature close"),tM("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),tM("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),tM("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),tM("ERR_STREAM_WRITE_AFTER_END","write after end"),tM("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),tM("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),tM("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),tS.codes=tk;var tx,tR,tI,tT,tO=tS.codes.ERR_INVALID_OPT_VALUE,tP={getHighWaterMark:function(e,t,n,r){var i=null!=t.highWaterMark?t.highWaterMark:r?t[n]:null;if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new tO(r?n:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}},tL=function(e,t){if(tN("noDeprecation"))return e;var n=!1;return function(){if(!n){if(tN("throwDeprecation"))throw Error(t);tN("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}};function tN(e){try{if(!l.localStorage)return!1}catch(e){return!1}var t=l.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}function tD(){if(tR)return tx;function e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(void 0),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}tR=1,tx=A,A.WritableState=y;var t,n,r={deprecate:tL},i=er.Buffer,o=(void 0!==l?l:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},a=tP.getHighWaterMark,s=tS.codes,u=s.ERR_INVALID_ARG_TYPE,c=s.ERR_METHOD_NOT_IMPLEMENTED,d=s.ERR_MULTIPLE_CALLBACK,f=s.ERR_STREAM_CANNOT_PIPE,h=s.ERR_STREAM_DESTROYED,p=s.ERR_STREAM_NULL_VALUES,m=s.ERR_STREAM_WRITE_AFTER_END,g=s.ERR_UNKNOWN_ENCODING,v=tE.errorOrDestroy;function b(){}function y(n,r,i){t=t||tB(),n=n||{},"boolean"!=typeof i&&(i=r instanceof t),this.objectMode=!!n.objectMode,i&&(this.objectMode=this.objectMode||!!n.writableObjectMode),this.highWaterMark=a(this,n,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===n.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if("function"!=typeof i)throw new d;if(n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,t)--n.pendingcb,r?(ew(i,t),ew(M,e,n),e._writableState.errorEmitted=!0,v(e,t)):(i(t),e._writableState.errorEmitted=!0,v(e,t),M(e,n));else{var o=S(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||E(e,n),r?ew(_,e,n,o,i):_(e,n,o,i)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==n.emitClose,this.autoDestroy=!!n.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function A(e){var r=this instanceof(t=t||tB());if(!r&&!n.call(A,this))return new A(e);this._writableState=new y(e,this,r),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),e$.call(this)}function w(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new h("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function _(e,t,n,r){n||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,r(),M(e,t)}function E(t,n){n.bufferProcessing=!0;var r=n.bufferedRequest;if(t._writev&&r&&r.next){var i=Array(n.bufferedRequestCount),o=n.corkedRequestsFree;o.entry=r;for(var a=0,s=!0;r;)i[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;
1i.allBuffers=s,w(t,n,!0,n.length,i,"",o.finish),n.pendingcb++,n.lastBufferedRequest=null,o.next?(n.corkedRequestsFree=o.next,o.next=null):n.corkedRequestsFree=new e(n),n.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,c=r.callback;if(w(t,n,!1,n.objectMode?1:l.length,l,u,c),r=r.next,n.bufferedRequestCount--,n.writing)break}null===r&&(n.lastBufferedRequest=null)}n.bufferedRequest=r,n.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final(function(n){t.pendingcb--,n&&v(e,n),t.prefinished=!0,e.emit("prefinish"),M(e,t)})}function M(e,t){var n=S(t);if(n&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,ew(k,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}return eD(A,e$),y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(y.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(e){return!!n.call(this,e)||this===A&&e&&e._writableState instanceof y}})):n=function(e){return e instanceof this},A.prototype.pipe=function(){v(this,new f)},A.prototype.write=function(e,t,n){var r,a,s,l,c,d,f,h=this._writableState,g=!1,y=!h.objectMode&&(f=e,i.isBuffer(f)||f instanceof o);return y&&!i.isBuffer(e)&&(r=e,e=i.from(r)),"function"==typeof t&&(n=t,t=null),y?t="buffer":t||(t=h.defaultEncoding),"function"!=typeof n&&(n=b),h.ending?(a=n,v(this,s=new m),ew(a,s)):!y&&(l=e,c=n,null===l?d=new p:"string"==typeof l||h.objectMode||(d=new u("chunk",["string","Buffer"],l)),d&&(v(this,d),ew(c,d),1))||(h.pendingcb++,g=function(e,t,n,r,o,a){if(!n){var s,l,u=(s=r,l=o,t.objectMode||!1===t.decodeStrings||"string"!=typeof s||(s=i.from(s,l)),s);r!==u&&(n=!0,o="buffer",r=u)}var c=t.objectMode?1:r.length;t.length+=c;var d=t.length<t.highWaterMark;if(d||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:a,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else w(e,t,!1,c,r,o,a);return d}(this,h,y,e,t,n)),g},A.prototype.cork=function(){this._writableState.corked++},A.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||E(this,e))},A.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new g(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(e,t,n){n(new c("_write()"))},A.prototype._writev=null,A.prototype.end=function(e,t,n){var r,i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||(r=n,i.ending=!0,M(this,i),r&&(i.finished?ew(r):this.once("finish",r)),i.ended=!0,this.writable=!1),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),A.prototype.destroy=tE.destroy,A.prototype._undestroy=tE.undestroy,A.prototype._destroy=function(e,t){t(e)},tx}function tB(){if(tT)return tI;tT=1;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};tI=a;var t=tQ(),n=tD();eD(a,t);for(var r=e(n.prototype),i=0;i<r.length;i++){var o=r[i];a.prototype[o]||(a.prototype[o]=n.prototype[o])}function a(e){if(!(this instanceof a))return new a(e);t.call(this,e),n.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",s)))}function s(){this._writableState.ended||ew(l,this)}function l(e){e.end()}return Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),tI}var tj,tF={};function tz(){if(tj)return tF;tj=1;var e=eT().Buffer,t=e.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(n){var r;switch(this.encoding=function(n){var r=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
1case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(n);if("string"!=typeof r&&(e.isEncoding===t||!t(n)))throw Error("Unknown encoding: "+n);return r||n}(n),this.encoding){case"utf16le":this.text=o,this.end=a,r=4;break;case"utf8":this.fillLast=i,r=4;break;case"base64":this.text=s,this.end=l,r=3;break;default:return this.write=u,void(this.end=c)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(r)}function r(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function i(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function o(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function a(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function s(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function c(e){return e&&e.length?this.write(e):""}return tF.StringDecoder=n,n.prototype.write=function(e){var t,n;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},n.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},n.prototype.text=function(e,t){var n=function(e,t,n){var i=t.length-1;if(i<n)return 0;var o=r(t[i]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--i<n||-2===o?0:(o=r(t[i]))>=0?(o>0&&(e.lastNeed=o-2),o):--i<n||-2===o?0:(o=r(t[i]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},tF}var tU=tS.codes.ERR_STREAM_PREMATURE_CLOSE;function tq(){}var tK,tH,tV,t$,tW,tY,tG=function e(t,n,r){if("function"==typeof n)return e(t,null,n);n||(n={}),i=r||tq,o=!1,r=function(){if(!o){o=!0;for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];i.apply(this,t)}};var i,o,a=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,l=function(){t.writable||c()},u=t._writableState&&t._writableState.finished,c=function(){s=!1,u=!0,a||r.call(t)},d=t._readableState&&t._readableState.endEmitted,f=function(){a=!1,d=!0,s||r.call(t)},h=function(e){r.call(t,e)},p=function(){var e;return a&&!d?(t._readableState&&t._readableState.ended||(e=new tU),r.call(t,e)):s&&!u?(t._writableState&&t._writableState.ended||(e=new tU),r.call(t,e)):void 0},m=function(){t.req.on("finish",c)};return t.setHeader&&"function"==typeof t.abort?(t.on("complete",c),t.on("abort",p),t.req?m():t.on("request",m)):s&&!t._writableState&&(t.on("end",l),t.on("close",l)),t.on("end",f),t.on("finish",c),!1!==n.error&&t.on("error",h),t.on("close",p),function(){t.removeListener("complete",c),t.removeListener("abort",p),t.removeListener("request",m),t.req&&t.req.removeListener("finish",c),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",c),t.removeListener("end",f),t.removeListener("error",h),t.removeListener("close",p)}};function tQ(){if(tY)return tW;tY=1,tW=y,y.ReadableState=b,eV.EventEmitter;var e=function(e,t){return e.listeners(t).length},t=er.Buffer,n=(void 0!==l?l:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};i=ty&&ty.debuglog?ty.debuglog("stream"):function(){};var r,i,o,a,s,u=function(){if(tb)return tv;function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};
1n%2?e(Object(i),!0).forEach(function(e){var n,o;n=e,o=i[e],(n=r(n))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}function r(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}tb=1;var i=er.Buffer,o=ty.inspect,a=o&&o.custom||"inspect";return tv=function(){var e,r;function s(){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,s),this.head=null,this.tail=null,this.length=0}return e=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return i.alloc(0);for(var t,n,r=i.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,n=a,i.prototype.copy.call(t,r,n),a+=o.data.length,o=o.next;return r}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=i.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),0==(e-=a)){a===o.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++r}return this.length-=r,t}},{key:a,value:function(e,n){return o(this,t(t({},n),{},{depth:0,customInspect:!1}))}}],n(s.prototype,e),r&&n(s,r),Object.defineProperty(s,"prototype",{writable:!1}),s}()}(),c=tP.getHighWaterMark,d=tS.codes,f=d.ERR_INVALID_ARG_TYPE,h=d.ERR_STREAM_PUSH_AFTER_EOF,p=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;eD(y,e$);var g=tE.errorOrDestroy,v=["error","close","destroy","pause","resume"];function b(e,t,n){r=r||tB(),e=e||{},"boolean"!=typeof n&&(n=t instanceof r),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=c(this,e,"readableHighWaterMark",n),this.buffer=new u,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o||(o=tz().StringDecoder),this.decoder=new o(e.encoding),this.encoding=e.encoding)}function y(e){if(r=r||tB(),!(this instanceof y))return new y(e);var t=this instanceof r;this._readableState=new b(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),e$.call(this)}function A(e,r,o,a,s){i("readableAddChunk",r);var l,u,c,d,p=e._readableState;if(null===r)p.reading=!1,function(e,t){if(i("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?E(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,S(e)))}}(e,p);else if(s||(l=r,t.isBuffer(l)||l instanceof n||"string"==typeof l||void 0===l||p.objectMode||(u=new f("chunk",["string","Buffer","Uint8Array"],l)),d=u),d)g(e,d);else if(p.objectMode||r&&r.length>0){if("string"==typeof r||p.objectMode||Object.getPrototypeOf(r)===t.prototype||(c=r,r=t.from(c)),a)p.endEmitted?g(e,new m):w(e,p,r,!0);else if(p.ended)g(e,new h);else{if(p.destroyed)return!1;p.reading=!1,p.decoder&&!o?(r=p.decoder.write(r),p.objectMode||0!==r.length?w(e,p,r,!1):k(e,p)):w(e,p,r,!1)}}else a||(p.reading=!1,k(e,p));return!p.ended&&(p.length<p.highWaterMark||0===p.length)}function w(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&E(e)),k(e,t)}function _(e,t){var n;return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=((n=e)>=1073741824?n=1073741824:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function E(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,ew(S,e))}function S(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,I(e)}function k(e,t){t.readingMore||(t.readingMore=!0,ew(M,e,t))}function M(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(i("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function C(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function x(e){i("readable nexttick read 0"),e.read(0)}function R(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),I(e),t.flowing&&!t.reading&&e.read(0)}function I(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function T(e,t){var n;return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n)}function O(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,ew(P,t,e))}function P(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function L(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return -1}return Object.defineProperty(y.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),y.prototype.destroy=tE.destroy,y.prototype._undestroy=tE.undestroy,y.prototype._destroy=function(e,t){t(e)},y.prototype.push=function(e,n){var r,i=this._readableState;return i.objectMode?r=!0:"string"==typeof e&&((n=n||i.defaultEncoding)!==i.encoding&&(e=t.from(e,n),n=""),r=!0),A(this,e,n,!1,r)},y.prototype.unshift=function(e){return A(this,e,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(e){o||(o=tz().StringDecoder);var t=new o(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;
vendor: 2,607 bytes, line 1
1for(var n=this._readableState.buffer.head,r="";null!==n;)r+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this},y.prototype.read=function(e){i("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return i("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?O(this):E(this),null;if(0===(e=_(e,t))&&t.ended)return 0===t.length&&O(this),null;var r,o=t.needReadable;return i("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&i("length less than watermark",o=!0),t.ended||t.reading?i("reading or ended",o=!1):o&&(i("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=_(n,t))),null===(r=e>0?T(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&O(this)),null!==r&&this.emit("data",r),r},y.prototype._read=function(e){g(this,new p("_read()"))},y.prototype.pipe=function(t,n){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,i("pipe count=%d opts=%j",o.pipesCount,n);var a=n&&!1===n.end||t===ex.stdout||t===ex.stderr?p:s;function s(){i("onend"),t.end()}o.endEmitted?ew(a):r.once("end",a),t.on("unpipe",function e(n,a){i("onunpipe"),n===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,i("cleanup"),t.removeListener("close",f),t.removeListener("finish",h),t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",e),r.removeListener("end",s),r.removeListener("end",p),r.removeListener("data",c),u=!0,o.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l())});var l=function(){var t=r._readableState;i("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e(r,"data")&&(t.flowing=!0,I(r))};t.on("drain",l);var u=!1;function c(e){i("ondata");var n=t.write(e);i("dest.write",n),!1===n&&((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==L(o.pipes,t))&&!u&&(i("false write response, pause",o.awaitDrain),o.awaitDrain++),r.pause())}function d(n){i("onerror",n),p(),t.removeListener("error",d),0===e(t,"error")&&g(t,n)}function f(){t.removeListener("finish",h),p()}function h(){i("onfinish"),t.removeListener("close",f),p()}function p(){i("unpipe"),r.unpipe(t)}return r.on("data",c),function(e,t,n){if("function"==typeof e.prependListener)return e.prepe
1ndListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(t,"error",d),t.once("close",f),t.once("finish",h),t.emit("pipe",r),o.flowing||(i("pipe resume"),r.resume()),t},y.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=L(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},y.prototype.on=function(e,t){var n=e$.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,i("on readable",r.length,r.reading),r.length?E(this):r.reading||ew(x,this))),n},y.prototype.addListener=y.prototype.on,y.prototype.removeListener=function(e,t){var n=e$.prototype.removeListener.call(this,e,t);return"readable"===e&&ew(C,this),n},y.prototype.removeAllListeners=function(e){var t=e$.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||ew(C,this),t},y.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,ew(R,this,e))),e.paused=!1,this},y.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},y.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var o in e.on("end",function(){if(i("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){i("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o||(n.objectMode||o&&o.length)&&(t.push(o)||(r=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a<v.length;a++)e.on(v[a],this.emit.bind(this,v[a]));return this._read=function(t){i("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(y.prototype[Symbol.asyncIterator]=function(){return void 0===a&&(a=function(){if(tH)return tK;function e(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}tH=1;var t,n=Symbol("lastResolve"),r=Symbol("lastReject"),i=Symbol("error"),o=Symbol("ended"),a=Symbol("lastPromise"),s=Symbol("handlePromise"),l=Symbol("stream");function u(e,t){return{value:e,done:t}}function c(e){var t=e[n];if(null!==t){var i=e[l].read();null!==i&&(e[a]=null,e[n]=null,e[r]=null,t(u(i,!1)))}}function d(e){ew(c,e)}var f=Object.getPrototypeOf(function(){}),h=Object.setPrototypeOf((e(t={get stream(){return this[l]},next:function(){var e,t=this,n=this[i];if(null!==n)return Promise.reject(n);if(this[o])return Promise.resolve(u(void 0,!0));if(this[l].destroyed)return new Promise(function(e,n){ew(function(){t[i]?n(t[i]):e(u(void 0,!0))})});var r,c=this[a];if(c)r=new Promise((e=this,function(t,n){c.then(function(){e[o]?t(u(void 0,!0)):e[s](t,n)},n)}));else{var d=this[l].read();if(null!==d)return Promise.resolve(u(d,!1));r=new Promise(this[s])}return this[a]=r,r}},Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var e=this;return new Promise(function(t,n){e[l].destroy(null,function(e){e?n(e):t(u(void 0,!0))})})}),t),f);return tK=function(t){var c,f=Object.create(h,(e(c={},l,{value:t,writable:!0}),e(c,n,{value:null,writable:!0}),e(c,r,{value:null,writable:!0}),e(c,i,{value:null,writable:!0}),e(c,o,{value:t._readableState.endEmitted,writable:!0}),e(c,s,{value:function(e,t){var i=f[l].read();i?(f[a]=null,f[n]=null,f[r]=null,e(u(i,!1))):(f[n]=e,f[r]=t)},writable:!0}),c));return f[a]=null,tG(t,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=f[r];return null!==t&&(f[a]=null,f[n]=null,f[r]=null,t(e)),void(f[i]=e)}var s=f[n];null!==s&&(f[a]=null,f[n]=null,f[r]=null,s(u(void 0,!0))),f[o]=!0}),t.on("readable",d.bind(null,f)),f}}()),a(this)}),Object.defineProperty(y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(y.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(y.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),y._fromList=T,Object.defineProperty(y.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(y.from=function(e,t){return void 0===s&&(s=t$?tV:(t$=1,tV=function(){throw Error("Readable.from is not available in the browser")})),s(y,e,t)}),tW}
1var tZ=tS.codes,tJ=tZ.ERR_METHOD_NOT_IMPLEMENTED,tX=tZ.ERR_MULTIPLE_CALLBACK,t0=tZ.ERR_TRANSFORM_ALREADY_TRANSFORMING,t1=tZ.ERR_TRANSFORM_WITH_LENGTH_0,t2=tB();function t3(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new tX);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function t6(e){if(!(this instanceof t6))return new t6(e);t2.call(this,e),this._transformState={afterTransform:t3.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",t4)}function t4(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?t8(this,null,null):this._flush(function(t,n){t8(e,t,n)})}function t8(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new t1;if(e._transformState.transforming)throw new t0;return e.push(null)}function t5(e){if(!(this instanceof t5))return new t5(e);t6.call(this,e)}eD(t6,t2),t6.prototype.push=function(e,t){return this._transformState.needTransform=!1,t2.prototype.push.call(this,e,t)},t6.prototype._transform=function(e,t,n){n(new tJ("_transform()"))},t6.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},t6.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},t6.prototype._destroy=function(e,t){t2.prototype._destroy.call(this,e,function(e){t(e)})},eD(t5,t6),t5.prototype._transform=function(e,t,n){n(null,e)};var t7=tS.codes,t9=t7.ERR_MISSING_ARGS,ne=t7.ERR_STREAM_DESTROYED;function nt(e){if(e)throw e}function nn(e){e()}function nr(e,t){return e.pipe(t)}rQ=eB.exports,(rQ=eB.exports=tQ()).Stream=rQ,rQ.Readable=rQ,rQ.Writable=tD(),rQ.Duplex=tB(),rQ.Transform=t6,rQ.PassThrough=t5,rQ.finished=tG,rQ.pipeline=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i,o=(r=t).length?"function"!=typeof r[r.length-1]?nt:r.pop():nt;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new t9("streams");var a=t.map(function(e,n){var r,s,l,u,c,d,f=n<t.length-1;return r=n>0,l=s=function(e){i||(i=e),e&&a.forEach(nn),f||(a.forEach(nn),o(i))},u=!1,s=function(){u||(u=!0,l.apply(void 0,arguments))},c=!1,e.on("close",function(){c=!0}),void 0===rG&&(rG=tG),rG(e,{readable:f,writable:r},function(e){if(e)return s(e);c=!0,s()}),d=!1,function(t){if(!c&&!d)return d=!0,e.setHeader&&"function"==typeof e.abort?e.abort():"function"==typeof e.destroy?e.destroy():void s(t||new ne("pipe"))}});return t.reduce(nr)};var ni=eB.exports,no=eT().Buffer,na=ni.Transform;function ns(e){na.call(this),this._block=no.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}eD(ns,na),ns.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},ns.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},ns.prototype.update=function(e,t){if(function(e,t){if(!no.isBuffer(e)&&"string"!=typeof e)throw TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw Error("Digest already called");no.isBuffer(e)||(e=no.from(e,t));for(var n=this._block,r=0;this._blockOffset+e.length-r>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)n[i++]=e[r++];this._update(),this._blockOffset=0}for(;r<e.length;)n[this._blockOffset++]=e[r++];for(var o=0,a=8*e.length;a>0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},ns.prototype._update=function(){throw Error("_update is not implemented")},ns.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},ns.prototype._digest=function(){throw Error("_digest is not implemented")};var nl=eT().Buffer,nu=Array(16);function nc(){ns.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}
vendor: 4,474 bytes, line 1
1function nd(e,t){return e<<t|e>>>32-t}function nf(e,t,n,r,i,o,a){return nd(e+(t&n|~t&r)+i+o|0,a)+t|0}function nh(e,t,n,r,i,o,a){return nd(e+(t&r|n&~r)+i+o|0,a)+t|0}function np(e,t,n,r,i,o,a){return nd(e+(t^n^r)+i+o|0,a)+t|0}function nm(e,t,n,r,i,o,a){return nd(e+(n^(t|~r))+i+o|0,a)+t|0}eD(nc,ns),nc.prototype._update=function(){for(var e=0;e<16;++e)nu[e]=this._block.readInt32LE(4*e);var t=this._a,n=this._b,r=this._c,i=this._d;t=nf(t,n,r,i,nu[0],3614090360,7),i=nf(i,t,n,r,nu[1],3905402710,12),r=nf(r,i,t,n,nu[2],606105819,17),n=nf(n,r,i,t,nu[3],3250441966,22),t=nf(t,n,r,i,nu[4],4118548399,7),i=nf(i,t,n,r,nu[5],1200080426,12),r=nf(r,i,t,n,nu[6],2821735955,17),n=nf(n,r,i,t,nu[7],4249261313,22),t=nf(t,n,r,i,nu[8],1770035416,7),i=nf(i,t,n,r,nu[9],2336552879,12),r=nf(r,i,t,n,nu[10],4294925233,17),n=nf(n,r,i,t,nu[11],2304563134,22),t=nf(t,n,r,i,nu[12],1804603682,7),i=nf(i,t,n,r,nu[13],4254626195,12),r=nf(r,i,t,n,nu[14],2792965006,17),t=nh(t,n=nf(n,r,i,t,nu[15],1236535329,22),r,i,nu[1],4129170786,5),i=nh(i,t,n,r,nu[6],3225465664,9),r=nh(r,i,t,n,nu[11],643717713,14),n=nh(n,r,i,t,nu[0],3921069994,20),t=nh(t,n,r,i,nu[5],3593408605,5),i=nh(i,t,n,r,nu[10],38016083,9),r=nh(r,i,t,n,nu[15],3634488961,14),n=nh(n,r,i,t,nu[4],3889429448,20),t=nh(t,n,r,i,nu[9],568446438,5),i=nh(i,t,n,r,nu[14],3275163606,9),r=nh(r,i,t,n,nu[3],4107603335,14),n=nh(n,r,i,t,nu[8],1163531501,20),t=nh(t,n,r,i,nu[13],2850285829,5),i=nh(i,t,n,r,nu[2],4243563512,9),r=nh(r,i,t,n,nu[7],1735328473,14),t=np(t,n=nh(n,r,i,t,nu[12],2368359562,20),r,i,nu[5],4294588738,4),i=np(i,t,n,r,nu[8],2272392833,11),r=np(r,i,t,n,nu[11],1839030562,16),n=np(n,r,i,t,nu[14],4259657740,23),t=np(t,n,r,i,nu[1],2763975236,4),i=np(i,t,n,r,nu[4],1272893353,11),r=np(r,i,t,n,nu[7],4139469664,16),n=np(n,r,i,t,nu[10],3200236656,23),t=np(t,n,r,i,nu[13],681279174,4),i=np(i,t,n,r,nu[0],3936430074,11),r=np(r,i,t,n,nu[3],3572445317,16),n=np(n,r,i,t,nu[6],76029189,23),t=np(t,n,r,i,nu[9],3654602809,4),i=np(i,t,n,r,nu[12],3873151461,11),r=np(r,i,t,n,nu[15],530742520,16),t=nm(t,n=np(n,r,i,t,nu[2],3299628645,23),r,i,nu[0],4096336452,6),i=nm(i,t,n,r,nu[7],1126891415,10),r=nm(r,i,t,n,nu[14],2878612391,15),n=nm(n,r,i,t,nu[5],4237533241,21),t=nm(t,n,r,i,nu[12],1700485571,6),i=nm(i,t,n,r,nu[3],2399980690,10),r=nm(r,i,t,n,nu[10],4293915773,15),n=nm(n,r,i,t,nu[1],2240044497,21),t=nm(t,n,r,i,nu[8],1873313359,6),i=nm(i,t,n,r,nu[15],4264355552,10),r=nm(r,i,t,n,nu[6],2734768916,15),n=nm(n,r,i,t,nu[13],1309151649,21),t=nm(t,n,r,i,nu[4],4149444226,6),i=nm(i,t,n,r,nu[11],3174756917,10),r=nm(r,i,t,n,nu[2],718787259,15),n=nm(n,r,i,t,nu[9],3951481745,21),this._a=this._a+t|0,this._b=this._b+n|0,this._c=this._c+r|0,this._d=this._d+i|0},nc.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=nl.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};var ng=er.Buffer,nv=Array(16),nb=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],ny=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],nA=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],nw=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];function n_(){ns.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function nE(e,t){return e<<t|e>>>32-t}eD(n_,ns),n_.prototype._update=function(){for(var e,t,n,r,i,o,a,s,l,u,c,d,f,h,p,m,g,v,b,y,A,w,_,E,S,k,M,C,x,R,I,T,O,P,L,N,D,B,j,F,z,U,q,K,H,V,$,W,Y,G,Q,Z,J=0;J<16;++J)nv[J]=this._block.readInt32LE(4*J);for(var X=0|this._a,ee=0|this._b,et=0|this._c,en=0|this._d,er=0|this._e,ei=0|this._a,eo=0|this._b,ea=0|this._c,es=0|this._d,el=0|this._e,eu=0;eu<80;
1eu+=1)eu<16?(e=X,t=ee,n=et,r=en,i=er,Q=nE(e+(t^n^r)+nv[nb[eu]]+0|0,nA[eu])+i|0,o=ei,a=eo,s=ea,l=es,u=el,Z=nE(o+(a^(s|~l))+nv[ny[eu]]+1352829926|0,nw[eu])+u|0):eu<32?(c=X,d=ee,f=et,h=en,p=er,Q=nE(c+(d&f|~d&h)+nv[nb[eu]]+1518500249|0,nA[eu])+p|0,m=ei,g=eo,v=ea,b=es,y=el,Z=nE(m+(g&b|v&~b)+nv[ny[eu]]+1548603684|0,nw[eu])+y|0):eu<48?(A=X,w=ee,_=et,E=en,S=er,Q=nE(A+((w|~_)^E)+nv[nb[eu]]+1859775393|0,nA[eu])+S|0,k=ei,M=eo,C=ea,x=es,R=el,Z=nE(k+((M|~C)^x)+nv[ny[eu]]+1836072691|0,nw[eu])+R|0):eu<64?(I=X,T=ee,O=et,P=en,L=er,Q=nE(I+(T&P|O&~P)+nv[nb[eu]]+2400959708|0,nA[eu])+L|0,N=ei,D=eo,B=ea,j=es,F=el,Z=nE(N+(D&B|~D&j)+nv[ny[eu]]+2053994217|0,nw[eu])+F|0):(z=X,U=ee,q=et,K=en,H=er,Q=nE(z+(U^(q|~K))+nv[nb[eu]]+2840853838|0,nA[eu])+H|0,V=ei,$=eo,W=ea,Y=es,G=el,Z=nE(V+($^W^Y)+nv[ny[eu]]+0|0,nw[eu])+G|0),X=er,er=en,en=nE(et,10),et=ee,ee=Q,ei=el,el=es,es=nE(ea,10),ea=eo,eo=Z;var ec=this._b+et+es|0;this._b=this._c+en+el|0,this._c=this._d+er+ei|0,this._d=this._e+X+eo|0,this._e=this._a+ee+ea|0,this._a=ec},n_.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=ng.alloc?ng.alloc(20):new ng(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};var nS={exports:{}},nk=eT().Buffer;function nM(e,t){this._block=nk.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}nM.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=nk.from(e,t));for(var n=this._block,r=this._blockSize,i=e.length,o=this._len,a=0;a<i;){for(var s=o%r,l=Math.min(i-a,r-s),u=0;u<l;u++)n[s+u]=e[a+u];a+=l,(o+=l)%r==0&&this._update(n)}return this._len+=i,this},nM.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0;this._block.writeUInt32BE((n-r)/4294967296,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},nM.prototype._update=function(){throw Error("_update must be implemented by subclass")};var nC=eT().Buffer,nx=[1518500249,1859775393,-1894007588,-899497514],nR=Array(80);function nI(){this.init(),this._w=nR,nM.call(this,64,56)}eD(nI,nM),nI.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},nI.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,s=0|this._e,l=0;l<16;++l)n[l]=e.readInt32BE(4*l);for(;l<80;++l)n[l]=n[l-3]^n[l-8]^n[l-14]^n[l-16];for(var u=0;u<80;++u){var c,d,f,h,p=~~(u/20),m=0|((t=r)<<5|t>>>27)+(c=i,d=o,f=a,0===p?c&d|~c&f:2===p?c&d|c&f|d&f:c^d^f)+s+n[u]+nx[p];s=a,a=o,o=(h=i)<<30|h>>>2,i=r,r=m}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},nI.prototype._hash=function(){var e=nC.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e};var nT=eT().Buffer,nO=[1518500249,1859775393,-1894007588,-899497514],nP=Array(80);function nL(){this.init(),this._w=nP,nM.call(this,64,56)}eD(nL,nM),nL.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},nL.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,s=0|this._e,l=0;l<16;++l)n[l]=e.readInt32BE(4*l);for(;l<80;++l)n[l]=(t=n[l-3]^n[l-8]^n[l-14]^n[l-16])<<1|t>>>31;for(var u=0;u<80;++u){var c,d,f,h,p,m=~~(u/20),g=((c=r)<<5|c>>>27)+(d=i,f=o,h=a,0===m?d&f|~d&h:2===m?d&f|d&h|f&h:d^f^h)+s+n[u]+nO[m]|0;s=a,a=o,o=(p=i)<<30|p>>>2,i=r,r=g}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},nL.prototype._hash=function(){var e=nT.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e};var nN=eT().Buffer,nD=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
1734187,3204031479,3329325298],nB=Array(64);function nj(){this.init(),this._w=nB,nM.call(this,64,56)}eD(nj,nM),nj.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},nj.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,s=0|this._f,l=0|this._g,u=0|this._h,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<64;++c)t[c]=(((f=t[c-2])>>>17|f<<15)^(f>>>19|f<<13)^f>>>10)+t[c-7]+(((h=t[c-15])>>>7|h<<25)^(h>>>18|h<<14)^h>>>3)+t[c-16]|0;for(var d=0;d<64;++d){var f,h,p,m,g,v,b,y,A,w=u+(((p=a)>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(m=a,g=s,(v=l)^m&(g^v))+nD[d]+t[d]|0,_=(((b=n)>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+((y=n)&(A=r)|i&(y|A))|0;u=l,l=s,s=a,a=o+w|0,o=i,i=r,r=n,n=w+_|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0,this._f=s+this._f|0,this._g=l+this._g|0,this._h=u+this._h|0},nj.prototype._hash=function(){var e=nN.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var nF=eT().Buffer,nz=Array(64);function nU(){this.init(),this._w=nz,nM.call(this,64,56)}eD(nU,nj),nU.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},nU.prototype._hash=function(){var e=nF.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var nq=eT().Buffer,nK=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
11126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],nH=Array(160);function nV(){this.init(),this._w=nH,nM.call(this,128,112)}function n$(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function nW(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function nY(e,t){return e>>>0<t>>>0?1:0}eD(nV,nM),nV.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},nV.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,a=0|this._eh,s=0|this._fh,l=0|this._gh,u=0|this._hh,c=0|this._al,d=0|this._bl,f=0|this._cl,h=0|this._dl,p=0|this._el,m=0|this._fl,g=0|this._gl,v=0|this._hl,b=0;b<32;b+=2)t[b]=e.readInt32BE(4*b),t[b+1]=e.readInt32BE(4*b+4);for(;b<160;b+=2){var y,A,w,_,E,S,k,M,C=t[b-30],x=t[b-30+1],R=((y=C)>>>1|(A=x)<<31)^(y>>>8|A<<24)^y>>>7,I=((w=x)>>>1|(_=C)<<31)^(w>>>8|_<<24)^(w>>>7|_<<25),T=((E=C=t[b-4])>>>19|(S=x=t[b-4+1])<<13)^(S>>>29|E<<3)^E>>>6,O=((k=x)>>>19|(M=C)<<13)^(M>>>29|k<<3)^(k>>>6|M<<26),P=t[b-14],L=t[b-14+1],N=t[b-32],D=t[b-32+1],B=I+L|0,j=R+P+nY(B,I)|0;j=(j=j+T+nY(B=B+O|0,O)|0)+N+nY(B=B+D|0,D)|0,t[b]=j,t[b+1]=B}for(var F=0;F<160;F+=2){j=t[F],B=t[F+1];var z,U,q,K,H,V,$,W,Y,G,Q=(z=n)&(U=r)|i&(z|U),Z=(q=c)&(K=d)|f&(q|K),J=n$(n,c),X=n$(c,n),ee=nW(a,p),et=nW(p,a),en=nK[F],er=nK[F+1],ei=(H=a,V=s,($=l)^H&(V^$)),eo=(W=p,Y=m,(G=g)^W&(Y^G)),ea=v+et|0,es=u+ee+nY(ea,v)|0;es=(es=(es=es+ei+nY(ea=ea+eo|0,eo)|0)+en+nY(ea=ea+er|0,er)|0)+j+nY(ea=ea+B|0,B)|0;var el=X+Z|0,eu=J+Q+nY(el,X)|0;u=l,v=g,l=s,g=m,s=a,m=p,a=o+es+nY(p=h+ea|0,h)|0,o=i,h=f,i=r,f=d,r=n,d=c,n=es+eu+nY(c=ea+el|0,ea)|0}this._al=this._al+c|0,this._bl=this._bl+d|0,this._cl=this._cl+f|0,this._dl=this._dl+h|0,this._el=this._el+p|0,this._fl=this._fl+m|0,this._gl=this._gl+g|0,this._hl=this._hl+v|0,this._ah=this._ah+n+nY(this._al,c)|0,this._bh=this._bh+r+nY(this._bl,d)|0,this._ch=this._ch+i+nY(this._cl,f)|0,this._dh=this._dh+o+nY(this._dl,h)|0,this._eh=this._eh+a+nY(this._el,p)|0,this._fh=this._fh+s+nY(this._fl,m)|0,this._gh=this._gh+l+nY(this._gl,g)|0,this._hh=this._hh+u+nY(this._hl,v)|0},nV.prototype._hash=function(){var e=nq.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var nG=eT().Buffer,nQ=Array(160);function nZ(){this.init(),this._w=nQ,nM.call(this,128,112)}eD(nZ,nV),nZ.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},nZ.prototype._hash=function(){var e=nG.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var nJ=nS.exports=function(e){var t=nJ[e=e.toLowerCase()];if(!t)throw Error(e+" is not supported (we accept pull requests)");return new t};nJ.sha=nI,nJ.sha1=nL,nJ.sha224=nU,nJ.sha256=nj,nJ.sha384=nZ,nJ.sha512=nV;var nX=nS.exports;function n0(){this.head=null,this.tail=null,this.length=0}n0.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},n0.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},n0.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},n0.prototype.clear=function(){this.head=this.tail=null,this.length=0},n0.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},n0.prototype.concat=function(e){if(0===this.length)return M.alloc(0);if(1===this.length)return this.head.data;for(var t=M.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var n1=M.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n2(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!n1(e))throw Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=n6;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=n4;break;default:return void(this.write=n3)}this.charBuffer=new M(6),this.charReceived=0,this.charLength=0}function n3(e){return e.toString(this.encoding)}function n6(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function n4(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}n2.prototype.write=function(e){for(var t,n="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((t=(n=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCo
vendor: 8,879 bytes, line 1
1deAt(n.length-1))>=55296&&t<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return n;break}this.charLength+=this.surrogateSize,n=""}this.detectIncompleteChar(e);var i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(n+=e.toString(this.encoding,0,i)).length-1,(t=n.charCodeAt(i))>=55296&&t<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),n.substring(0,i)}return n},n2.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},n2.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t};var n8=Object.freeze({__proto__:null,StringDecoder:n2});n9.ReadableState=n7;var n5=eX("stream");function n7(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof rM&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new n0,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new n2(e.encoding),this.encoding=e.encoding)}function n9(e){if(!(this instanceof n9))return new n9(e);this._readableState=new n7(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),eF.call(this)}function re(e,t,n,r,i){var o,a,s,l=(a=null,Z(o=n)||"string"==typeof o||null==o||t.objectMode||(a=TypeError("Invalid non-string/buffer chunk")),a);if(l)e.emit("error",l);else if(null===n)t.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,rn(e)}}(e,t);else if(t.objectMode||n&&n.length>0){if(t.ended&&!i){var u=Error("stream.push() after EOF");e.emit("error",u)}else if(t.endEmitted&&i){var c=Error("stream.unshift() after end event");e.emit("error",c)}else!t.decoder||i||r||(n=t.decoder.write(n),s=!t.objectMode&&0===n.length),i||(t.reading=!1),s||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&rn(e))),t.readingMore||(t.readingMore=!0,ew(ri,e,t))}else i||(t.reading=!1);return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}function rt(e,t){var n;return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=((n=e)>=8388608?n=8388608:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function rn(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(n5("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?ew(rr,e):rr(e))}function rr(e){n5("emit readable"),e.emit("readable"),rs(e)}function ri(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(n5("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function ro(e){n5("readable nexttick read 0"),e.read(0)}function ra(e,t){t.reading||(n5("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),rs(e),t.flowing&&!t.reading&&e.read(0)}function rs(e){var t=e._readableState;for(n5("flow",t.flowing);t.flowing&&null!==e.read(););}function rl(e,t){var n,r,i,o;return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):(r=t.buffer,i=t.decoder,e<r.head.data.length?(o=r.head.data.slice(0,e),r.head.data=r.head.data.slice(e)):o=e===r.head.data.length?r.shift():i?function(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0==(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,r):function(e,t){var n=M.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0==(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,r),n=o),n)}function ru(e){var t=e._readableState;if(t.length>0)throw Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,ew(rc,t,e))}function rc(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function rd(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return -1}function rf(){}function rh(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function rp(e,t){Object.defineProperty(this,"buffer",{get:eQ(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof rM&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,t)--n.pendingcb,r?ew(i,t):i(t),e._writableState.errorEmitted=!0,e.emit("error",t);else{var o=ry(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||rb(e,n),r?ew(rv,e,n,o,i):rv(e,n,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new r_(this)}function rm(e){if(!(this instanceof rm||this instanceof rM))return new rm(e);this._writableState=new rp(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),eF.call(this)}function rg(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function rv(e,t,n,r){n||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,r(),rw(e,t)}function rb(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=n;for(var o=0;n;)r[o]=n,n=n.next,o+=1;rg(e,t,!0,t.length,r,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new r_(t)}else{for(;n;){var a=n.chunk,s=n.encoding,l=n.callback;if(rg(e,t,!1,t.objectMode?1:a.length,a,s,l),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function ry(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function rA(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function rw(e,t){var n=ry(t);return n&&(0===t.pendingcb?(rA(e,t),t.finished=!0,e.emit("finish")):rA(e,t)),n}function r_(e){var t=this;this.next=null,this.entry=null,this.finish=function(n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}eW(n9,eF),n9.prototype.push=function(e,t){var n=this._readableState;return n.objectMode||"string"!=typeof e||(t=t||n.defaultEncoding)!==n.encoding&&(e=M.from(e,t),t=""),re(this,n,e,t,!1)},n9.prototype.unshift=function(e){return re(this,this._readableState,e,"",!0)},n9.prototype.isPaused=function(){return!1===this._readableState.flowing},n9.prototype.setEncoding=function(e){return this._readableState.decoder=new n2(e),this._readableState.encoding=e,this},n9.prototype.read=function(e){n5("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return n5("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?ru(this):rn(this),null;if(0===(e=rt(e,t))&&t.ended)return 0===t.length&&ru(this),null;var r,i=t.needReadable;
1return n5("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&n5("length less than watermark",i=!0),t.ended||t.reading?n5("reading or ended",i=!1):i&&(n5("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=rt(n,t))),null===(r=e>0?rl(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&ru(this)),null!==r&&this.emit("data",r),r},n9.prototype._read=function(e){this.emit("error",Error("not implemented"))},n9.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,n5("pipe count=%d opts=%j",r.pipesCount,t);var i=t&&!1===t.end?u:a;function o(e){n5("onunpipe"),e===n&&u()}function a(){n5("onend"),e.end()}r.endEmitted?ew(i):n.once("end",i),e.on("unpipe",o);var s=function(){var e=n._readableState;n5("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&n.listeners("data").length&&(e.flowing=!0,rs(n))};e.on("drain",s);var l=!1;function u(){n5("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",f),e.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",u),n.removeListener("data",d),l=!0,r.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&s()}var c=!1;function d(t){n5("ondata"),c=!1,!1!==e.write(t)||c||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==rd(r.pipes,e))&&!l&&(n5("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,c=!0),n.pause())}function f(t){var n;n5("onerror",t),m(),e.removeListener("error",f),0===(n="error",e.listeners(n).length)&&e.emit("error",t)}function h(){e.removeListener("finish",p),m()}function p(){n5("onfinish"),e.removeListener("close",h),m()}function m(){n5("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prepe
1ndListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",h),e.once("finish",p),e.emit("pipe",n),r.flowing||(n5("pipe resume"),n.resume()),e},n9.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}var o=rd(t.pipes,e);return -1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},n9.prototype.on=function(e,t){var n=eF.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&rn(this):ew(ro,this))}return n},n9.prototype.addListener=n9.prototype.on,n9.prototype.resume=function(){var e=this._readableState;return e.flowing||(n5("resume"),e.flowing=!0,e.resumeScheduled||(e.resumeScheduled=!0,ew(ra,this,e))),this},n9.prototype.pause=function(){return n5("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(n5("pause"),this._readableState.flowing=!1,this.emit("pause")),this},n9.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(n5("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){n5("wrapped data"),t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}(["error","close","destroy","pause","resume"],function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){n5("wrapped _read",t),n&&(n=!1,e.resume())},r},n9._fromList=rl,rm.WritableState=rp,eW(rm,eF),rp.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},rm.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))},rm.prototype.write=function(e,t,n){var r,i,o,a,s,l=this._writableState,u=!1;return"function"==typeof t&&(n=t,t=null),M.isBuffer(e)?t="buffer":t||(t=l.defaultEncoding),"function"!=typeof n&&(n=rf),l.ended?(r=n,i=Error("write after end"),this.emit("error",i),ew(r,i)):(o=n,a=!0,s=!1,null===e?s=TypeError("May not write null values to stream"):M.isBuffer(e)||"string"==typeof e||void 0===e||l.objectMode||(s=TypeError("Invalid non-string/buffer chunk")),s&&(this.emit("error",s),ew(o,s),a=!1),a&&(l.pendingcb++,u=function(e,t,n,r,i){o=n,a=r,t.objectMode||!1===t.decodeStrings||"string"!=typeof o||(o=M.from(o,a)),n=o,M.isBuffer(n)&&(r="buffer");var o,a,s=t.objectMode?1:n.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest=new rh(n,r,i),u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else rg(e,t,!1,s,n,r,i);return l}(this,l,e,t,n))),u},rm.prototype.cork=function(){this._writableState.corked++},rm.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||rb(this,e))},rm.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},rm.prototype._write=function(e,t,n){n(Error("not implemented"))},rm.prototype._writev=null,rm.prototype.end=function(e,t,n){var r,i=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||(r=n,i.ending=!0,rw(this,i),r&&(i.finished?ew(r):this.once("finish",r)),i.ended=!0,this.writable=!1)},eW(rM,n9);for(var rE=Object.keys(rm.prototype),rS=0;rS<rE.length;rS++){var rk=rE[rS];rM.prototype[rk]||(rM.prototype[rk]=rm.prototype[rk])}function rM(e){if(!(this instanceof rM))return new rM(e);n9.call(this,e),rm.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",rC)}function rC(){this.allowHalfOpen||this._writableState.ended||ew(rx,this)}function rx(e){e.end()}function rR(e){this.afterTransform=function(t,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n),i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}
vendor: 2,219 bytes, line 1
1(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function rI(e){if(!(this instanceof rI))return new rI(e);rM.call(this,e),this._transformState=new rR(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e){rT(t,e)}):rT(t)})}function rT(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=e._transformState;if(n.length)throw Error("Calling transform done when ws.length != 0");if(r.transforming)throw Error("Calling transform done when still transforming");return e.push(null)}function rO(e){if(!(this instanceof rO))return new rO(e);rI.call(this,e)}function rP(){eF.call(this)}eW(rI,rM),rI.prototype.push=function(e,t){return this._transformState.needTransform=!1,rM.prototype.push.call(this,e,t)},rI.prototype._transform=function(e,t,n){throw Error("Not implemented")},rI.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},rI.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},eW(rO,rI),rO.prototype._transform=function(e,t,n){n(null,e)},eW(rP,eF),rP.Readable=n9,rP.Writable=rm,rP.Duplex=rM,rP.Transform=rI,rP.PassThrough=rO,rP.Stream=rP,rP.prototype.pipe=function(e,t){var n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",a),n.on("close",s));var o=!1;function a(){o||(o=!0,e.end())}function s(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(u(),0===eF.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",r),e.removeListener("drain",i),n.removeListener("end",a),n.removeListener("close",s
1),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",l),e.on("error",l),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e};var rL=c(Object.freeze({__proto__:null,Duplex:rM,PassThrough:rO,Readable:n9,Stream:rP,Transform:rI,Writable:rm,default:rP})),rN=c(n8),rD=eT().Buffer,rB=rL.Transform,rj=rN.StringDecoder;function rF(e){rB.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}function rz(e){rF.call(this,"digest"),this._hash=e}eD(rF,rB),rF.prototype.update=function(e,t,n){"string"==typeof e&&(e=rD.from(e,t));var r=this._update(e);return this.hashMode?this:(n&&(r=this._toString(r,n)),r)},rF.prototype.setAutoPadding=function(){},rF.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},rF.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},rF.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},rF.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},rF.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},rF.prototype._finalOrDigest=function(e){var t=this.__final()||rD.alloc(0);return e&&(t=this._toString(t,e,!0)),t},rF.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new rj(t),this._encoding=t),this._encoding!==t)throw Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},eD(rz,rF),rz.prototype._update=function(e){this._hash.update(e)},rz.prototype._final=function(){return this._hash.digest()};var rU=function(e){return"md5"===(e=e.toLowerCase())?new nc:"rmd160"===e||"ripemd160"===e?new n_:new rz(nX(e))},rq=eT().Buffer,rK=rq.alloc(128);function rH(e,t){rF.call(this,"digest"),"string"==typeof t&&(t=rq.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=rq.concat([t,rK],64));for(var n=this._ipad=rq.allocUnsafe(64),r=this._opad=rq.allocUnsafe(64),i=0;i<64;i++)n[i]=54^t[i],r[i]=92^t[i];this._hash=[n]}eD(rH,rF),rH.prototype._update=function(e){this._hash.push(e)},rH.prototype._final=function(){var e=this._alg(rq.concat(this._hash));return this._alg(rq.concat([this._opad,e]))};var rV=function(e){return(new nc).update(e).digest()},r$=eT().Buffer,rW=r$.alloc(128);function rY(e,t){rF.call(this,"digest"),"string"==typeof t&&(t=r$.from(t));var n="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>n)?t=("rmd160"===e?new n_:nX(e)).update(t).digest():t.length<n&&(t=r$.concat([t,rW],n));for(var r=this._ipad=r$.allocUnsafe(n),i=this._opad=r$.allocUnsafe(n),o=0;o<n;o++)r[o]=54^t[o],i[o]=92^t[o];this._hash="rmd160"===e?new n_:nX(e),this._hash.update(r)}eD(rY,rF),rY.prototype._update=function(e){this._hash.update(e)},rY.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new n_:nX(this._alg)).update(this._opad).update(e).digest()};var rG,rQ,rZ=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new rY("rmd160",t):"md5"===e?new rH(rV,t):new rY(e,t)},rJ={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""}
1,DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}},rX={},r0=function(e,t){if("number"!=typeof e)throw TypeError("Iterations not a number");if(e<0)throw TypeError("Bad iterations");if("number"!=typeof t)throw TypeError("Key length not a number");if(t<0||t>1073741823||t!=t)throw TypeError("Bad key length")},r1=l.process&&l.process.browser?"utf-8":l.process&&l.process.version?parseInt(ex.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",r2=eT().Buffer,r3=function(e,t,n){if(r2.isBuffer(e))return e;if("string"==typeof e)return r2.from(e,t);if(ArrayBuffer.isView(e))return r2.from(e.buffer);throw TypeError(n+" must be a string, a Buffer, a typed array or a DataView")},r6=eT().Buffer,r4=r6.alloc(128),r8={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function r5(e,t,n){var r="rmd160"===e||"ripemd160"===e?function(e){return(new n_).update(e).digest()}:"md5"===e?rV:function(t){return nX(e).update(t).digest()},i="sha512"===e||"sha384"===e?128:64;t.length>i?t=r(t):t.length<i&&(t=r6.concat([t,r4],i));for(var o=r6.allocUnsafe(i+r8[e]),a=r6.allocUnsafe(i+r8[e]),s=0;s<i;s++)o[s]=54^t[s],a[s]=92^t[s];var l=r6.allocUnsafe(i+n+4);o.copy(l,0,0,i),this.ipad1=l,this.ipad2=o,this.opad=a,this.alg=e,this.blocksize=i,this.hash=r,this.size=r8[e]}r5.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)};var r7,r9,ie=function(e,t,n,r,i){r0(n,r);var o=new r5(i=i||"sha1",e=r3(e,r1,"Password"),(t=r3(t,r1,"Salt")).length),a=r6.allocUnsafe(r),s=r6.allocUnsafe(t.length+4);t.copy(s,0,0,t.length);for(var l=0,u=r8[i],c=Math.ceil(r/u),d=1;d<=c;d++){s.writeUInt32BE(d,t.length);for(var f=o.run(s,o.ipad1),h=f,p=1;p<n;p++){h=o.run(h,o.ipad2);for(var m=0;m<u;m++)f[m]^=h[m]}f.copy(a,l),l+=u}return a},it=eT().Buffer,ir=l.crypto&&l.crypto.subtle,ii={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},io=[];function ia(){return r9||(r9=l.process&&l.process.nextTick?l.process.nextTick:l.queueMicrotask?l.queueMicrotask:l.setImmediate?l.setImmediate:l.setTimeout)}function is(e,t,n,r,i){return ir.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return ir.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:i}},e,r<<3)}).then(function(e){return it.from(e)})}rX.pbkdf2=function(e,t,n,r,i,o){"function"==typeof i&&(o=i,i=void 0);var a=ii[(i=i||"sha1").toLowerCase()];if(a&&"function"==typeof l.Promise){if(r0(n,r),e=r3(e,r1,"Password"),t=r3(t,r1,"Salt"),"function"!=typeof o)throw Error("No callback provided to pbkdf2");!function(e,t){e.then(function(e){ia()(function(){t(null,e)})},function(e){ia()(function(){t(e)})})}((function(e){if(l.process&&!l.process.browser||!ir||!ir.importKey||!ir.deriveBits)return Promise.resolve(!1);if(void 0!==io[e])return io[e];var t=is(r7=r7||it.alloc(8),r7,10,128,e).then(function(){return!0}).catch(function(){return!1});return io[e]=t,t})(a).then(function(o){return o?is(e,t,n,r,a):ie(e,t,n,r,i)}),o)}else ia()(function(){var a;try{a=ie(e,t,n,r,i)}catch(e){return o(e)}o(null,a)})},rX.pbkdf2Sync=ie;var il={},iu={},ic={readUInt32BE:function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},writeUInt32BE:function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},ip:function(e,t,n,r){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}n[r+0]=i>>>0,n[r+1]=o>>>0},rip:function(e,t,n,r){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},pc1:function(e,t,n,r){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},r28shl:function(e,t){return e<<t&268435455|e>>>28-t}},id=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];ic.pc2=function(e,t,n,r){for(var i=0,o=0,a=id.length>>>1,s=0;s<a;s++)i<<=1,i|=e>>>id[s]&1;for(s=a;s<id.length;s++)o<<=1,o|=t>>>id[s]&1;n[r+0]=i>>>0,n[r+1]=o>>>0},ic.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)r<<=6,r|=e>>>o&63;for(o=11;o>
1=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var ih=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];ic.substitute=function(e,t){for(var n=0,r=0;r<4;r++)n<<=4,n|=ih[64*r+(e>>>18-6*r&63)];for(r=0;r<4;r++)n<<=4,n|=ih[256+64*r+(t>>>18-6*r&63)];return n>>>0};var ip=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];function im(e,t){if(!e)throw Error(t||"Assertion failed")}function ig(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=Array(this.blockSize),this.bufferOff=0,this.padding=!1!==e.padding}function iv(){this.tmp=[,,],this.keys=null}function ib(e){ig.call(this,e);var t=new iv;this._desState=t,this.deriveKeys(t,e.key)}ic.permute=function(e){for(var t=0,n=0;n<ip.length;n++)t<<=1,t|=e>>>ip[n]&1;return t>>>0},ic.padSplit=function(e,t,n){for(var r=e.toString(2);r.length<t;)r="0"+r;for(var i=[],o=0;o<t;o+=n)i.push(r.slice(o,o+n));return i.join(" ")},im.equal=function(e,t,n){if(e!=t)throw Error(n||"Assertion failed: "+e+" != "+t)},ig.prototype._init=function(){},ig.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},ig.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r<n;r++)this.buffer[this.bufferOff+r]=e[t+r];return this.bufferOff+=n,n},ig.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},ig.prototype._updateEncrypt=function(e){var t=0,n=0,r=Array(((this.bufferOff+e.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(r,n)));for(var i=e.length-(e.length-t)%this.blockSize;t<i;t+=this.blockSize)this._update(e,t,r,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return r},ig.prototype._updateDecrypt=function(e){for(var t=0,n=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},ig.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},ig.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},ig.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=Array(this.blockSize);return this._update(this.buffer,0,e,0),e},ig.prototype._unpad=function(e){return e},ig.prototype._finalDecrypt=function(){im.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)},eD(ib,ig),ib.create=function(e){return new ib(e)};var iy=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];ib.prototype.deriveKeys=function(e,t){e.keys=Array(32),im.equal(t.length,this.blockSize,"Invalid key length");var n=ic.readUInt32BE(t,0),r=ic.readUInt32BE(t,4);ic.pc1(n,r,e.tmp,0),n=e.tmp[0],r=e.tmp[1];for(var i=0;i<e.keys.length;i+=2){var o=iy[i>>>1];n=ic.r28shl(n,o),r=ic.r28shl(r,o),ic.pc2(n,r,e.keys,i)}},ib.prototype._update=function(e,t,n,r){var i=this._desState,o=ic.readUInt32BE(e,t),a=ic.readUInt32BE(e,t+4);ic.ip(o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],"encrypt"===this.type?this._encrypt
1(i,o,a,i.tmp,0):this._decrypt(i,o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],ic.writeUInt32BE(n,o,r),ic.writeUInt32BE(n,a,r+4)},ib.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var n=e.length-t,r=t;r<e.length;r++)e[r]=n;return!0},ib.prototype._unpad=function(e){if(!1===this.padding)return e;for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)im.equal(e[n],t);return e.slice(0,e.length-t)},ib.prototype._encrypt=function(e,t,n,r,i){for(var o=t,a=n,s=0;s<e.keys.length;s+=2){var l=e.keys[s],u=e.keys[s+1];ic.expand(a,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var c=ic.substitute(l,u),d=a;a=(o^ic.permute(c))>>>0,o=d}ic.rip(a,o,r,i)},ib.prototype._decrypt=function(e,t,n,r,i){for(var o=n,a=t,s=e.keys.length-2;s>=0;s-=2){var l=e.keys[s],u=e.keys[s+1];ic.expand(o,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var c=ic.substitute(l,u),d=o;o=(a^ic.permute(c))>>>0,a=d}ic.rip(o,a,r,i)};var iA={},iw={};function i_(e){im.equal(e.length,8,"Invalid IV length"),this.iv=Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}function iE(e,t){im.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),r=t.slice(8,16),i=t.slice(16,24);this.ciphers="encrypt"===e?[ib.create({type:"encrypt",key:n}),ib.create({type:"decrypt",key:r}),ib.create({type:"encrypt",key:i})]:[ib.create({type:"decrypt",key:i}),ib.create({type:"encrypt",key:r}),ib.create({type:"decrypt",key:n})]}function iS(e){ig.call(this,e);var t=new iE(this.type,this.options.key);this._edeState=t}iA.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}eD(t,e);for(var n=Object.keys(iw),r=0;r<n.length;r++){var i=n[r];t.prototype[i]=iw[i]}return t.create=function(e){return new t(e)},t},iw._cbcInit=function(){var e=new i_(this.options.iv);this._cbcState=e},iw._update=function(e,t,n,r){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=e[t+s];for(o._update.call(this,a,0,n,r),s=0;s<this.blockSize;s++)a[s]=n[r+s]}else{for(o._update.call(this,e,t,n,r),s=0;s<this.blockSize;s++)n[r+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=e[t+s]}},eD(iS,ig),iS.create=function(e){return new iS(e)},iS.prototype._update=function(e,t,n,r){var i=this._edeState;i.ciphers[0]._update(e,t,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},iS.prototype._pad=ib.prototype._pad,iS.prototype._unpad=ib.prototype._unpad,iu.utils=ic,iu.Cipher=ig,iu.DES=ib,iu.CBC=iA,iu.EDE=iS;var ik=eT().Buffer,iM={"des-ede3-cbc":iu.CBC.instantiate(iu.EDE),"des-ede3":iu.EDE,"des-ede-cbc":iu.CBC.instantiate(iu.EDE),"des-ede":iu.EDE,"des-cbc":iu.CBC.instantiate(iu.DES),"des-ecb":iu.DES};function iC(e){rF.call(this);var t,n=e.mode.toLowerCase(),r=iM[n];t=e.decrypt?"decrypt":"encrypt";var i=e.key;ik.isBuffer(i)||(i=ik.from(i)),"des-ede"!==n&&"des-ede-cbc"!==n||(i=ik.concat([i,i.slice(0,8)]));var o=e.iv;ik.isBuffer(o)||(o=ik.from(o)),this._des=r.create({key:i,iv:o,type:t})}iM.des=iM["des-cbc"],iM.des3=iM["des-ede3-cbc"],eD(iC,rF),iC.prototype._update=function(e){return ik.from(this._des.update(e))},iC.prototype._final=function(){return ik.from(this._des.final())};var ix={},iR={},iI={},iT=function(e,t){for(var n=Math.min(e.length,t.length),r=new M(n),i=0;i<n;++i)r[i]=e[i]^t[i];return r};iI.encrypt=function(e,t){var n=iT(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},iI.decrypt=function(e,t){var n=e._prev;return e._prev=t,iT(e._cipher.decryptBlock(t),n)};var iO={},iP=eT().Buffer;function iL(e,t,n){var r=t.length,i=iT(t,e._cache);return e._cache=e._cache.slice(r),e._prev=iP.concat([e._prev,n?t:i]),i}iO.encrypt=function(e,t,n){for(var r,i=iP.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=iP.allocUnsafe(0)),!(e._cache.length<=t.length)){i=iP.concat([i,iL(e,t,n)]);break}r=e._cache.length,i=iP.concat([i,iL(e,t.slice(0,r),n)]),t=t.slice(r)}return i};var iN={},iD=eT().Buffer;iN.encrypt=function(e,t,n){for(var r=t.length,i=iD.allocUnsafe(r),o=-1;++o<r;)i[o]=function(e,t,n){var r=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=iD.concat([e._prev.slice(1),iD.from([n?t:r])]),r}(e,t[o],n);return i};var iB={},ij=eT().Buffer;iB.encrypt=function(e,t,n){for(var r=t.length,i=ij.allocUnsafe(r),o=-1;++o<r;)i[o]=function(e,t,n){for(var r,i,o=-1,a=0;++o<8;)r=t&1<<7-o?128:0,a+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^r))>>o%8,e._prev=function(e,t){var n=e.length,r=-1,i=ij.allocUnsafe(e.length);for(e=ij.concat([e,ij.from([t])]);++r<n;)i[r]=e[r]<<1|e[r+1]>>7;return i}(e._prev,n?r:i);return a}(e,t[o],n);return i};var iF={};iF.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=M.concat([e._cache,(e._prev=e._cipher.encryptBlock(e._prev),e._prev)]);var n=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),iT(t,n)};var iz={},iU=function(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}},iq=eT().Buffer;iz.encrypt=function(e,t){var n=Math.ceil(t.length/16),r=e._cache.length;e._cache=iq.concat([e._cache,iq.allocUnsafe(16*n)]);for(var i=0;i<n;i++){var o=function(e){var t=e._cipher.encryptBlockRaw(e._prev);return iU(e._prev),t}(e),a=r+16*i;e._cache.writeUInt32BE(o[0],a+0),e._cache.writeUInt32BE(o[1],a+4),e._cache.writeUInt32BE(o[2],a+8),e._cache.writeUInt32BE(o[3],a+12)}var s=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),iT(t,s)};var iK={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},iH={ECB:{encrypt:function(e,t){return e._cipher.encryptBlock(t)},decrypt:function(e,t){return e._cipher.decryptBlock(t)}},CBC:iI,CFB:iO,CFB8:iN,CFB1:iB,OFB:iF,CTR:iz,GCM:iz};for(var iV in iK)iK[iV].module=iH[iK[iV].mode];var i$={},iW=eT().Buffer;function iY(e){iW.isBuffer(e)||(e=iW.from(e));for(var t=e.length/4|0,n=Array(t),r=0;r<t;r++)n[r]=e.readUInt32BE(4*r);return n}function iG(e){for(;0<e.length;e++)e[0]=0}function iQ(e,t,n,r,i){for(var o,a,s,l,u=n[0],c=n[1],d=n[2],f=n[3],h=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],g=e[3]^t[3],v=4,b=1;b<i;b++)o=u[h>>>24]^c[p>>>16&255]^d[m>>>8&255]^f[255&g]^t[v++],a=u[p>>>24]^c[m>>>16&255]^d[g>>>8&255]^f[255&h]^t[v++],s=u[m>>>24]^c[g>>>16&255]^d[h>>>8&255]^f[255&p]^t[v++],l=u[g>>>24]^c[h>>>16&255]^d[p>>>8&255]^f[255&m]^t[v++],h=o,p=a,m=s,g=l;return o=(r[h>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&g])^t[v++],[o>>>=0,a=((r[p>>>24]<<24|r[m>>>16&255]<<16|r[g>>>8&255]<<8|r[255&h])^t[v++])>>>0,s=((r[m>>>24]<<24|r[g>>>16&255]<<16|r[h>>>8&255]<<8|r[255&p])^t[v++])>>>0,l=((r[g>>>24]<<24|r[h>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^t[v++])>>>0]}var iZ=[0,1,2,4,8,16,32,64,128,27,54],iJ=function(){for(var e=Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,l=0;l<256;++l){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,n[a]=u,r[u]=a;var c=e[a],d=e[c],f=e[d],h=257*e[u]^16843008*u;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>
vendor: 9,176 bytes, line 1
124,i[3][a]=h,h=16843009*f^65537*d^257*c^16843008*a,o[0][u]=h<<24|h>>>8,o[1][u]=h<<16|h>>>16,o[2][u]=h<<8|h>>>24,o[3][u]=h,0===a?a=s=1:(a=c^e[e[e[f^c]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:o}}();function iX(e){this._key=iY(e),this._reset()}iX.blockSize=16,iX.keySize=32,iX.prototype.blockSize=iX.blockSize,iX.prototype.keySize=iX.keySize,iX.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<r;o++){var a=i[o-1];o%t==0?(a=a<<8|a>>>24,a=(iJ.SBOX[a>>>24]<<24|iJ.SBOX[a>>>16&255]<<16|iJ.SBOX[a>>>8&255]<<8|iJ.SBOX[255&a])^iZ[o/t|0]<<24):t>6&&o%t==4&&(a=iJ.SBOX[a>>>24]<<24|iJ.SBOX[a>>>16&255]<<16|iJ.SBOX[a>>>8&255]<<8|iJ.SBOX[255&a]),i[o]=i[o-t]^a}for(var s=[],l=0;l<r;l++){var u=r-l,c=i[u-(l%4?0:4)];s[l]=l<4||u<=4?c:iJ.INV_SUB_MIX[0][iJ.SBOX[c>>>24]]^iJ.INV_SUB_MIX[1][iJ.SBOX[c>>>16&255]]^iJ.INV_SUB_MIX[2][iJ.SBOX[c>>>8&255]]^iJ.INV_SUB_MIX[3][iJ.SBOX[255&c]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=s},iX.prototype.encryptBlockRaw=function(e){return iQ(e=iY(e),this._keySchedule,iJ.SUB_MIX,iJ.SBOX,this._nRounds)},iX.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=iW.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},iX.prototype.decryptBlock=function(e){var t=(e=iY(e))[1];e[1]=e[3],e[3]=t;var n=iQ(e,this._invKeySchedule,iJ.INV_SUB_MIX,iJ.INV_SBOX,this._nRounds),r=iW.allocUnsafe(16);return r.writeUInt32BE(n[0],0),r.writeUInt32BE(n[3],4),r.writeUInt32BE(n[2],8),r.writeUInt32BE(n[1],12),r},iX.prototype.scrub=function(){iG(this._keySchedule),iG(this._invKeySchedule),iG(this._key)},i$.AES=iX;var i0=eT().Buffer,i1=i0.alloc(16,0);function i2(e){var t=i0.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function i3(e){this.h=e,this.state=i0.alloc(16,0),this.cache=i0.allocUnsafe(0)}i3.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},i3.prototype._multiply=function(){for(var e,t,n,r=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],o=-1;++o<128;){for(0!=(this.state[~~(o/8)]&1<<7-o%8)&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),n=0!=(1&r[3]),t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=-520093696^r[0])}this.state=i2(i)},i3.prototype.update=function(e){var t;for(this.cache=i0.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},i3.prototype.final=function(e,t){return this.cache.length&&this.ghash(i0.concat([this.cache,i1],16)),this.ghash(i2([0,e,0,t])),this.state};var i6=eT().Buffer;function i4(e,t,n,r){rF.call(this);var i=i6.alloc(4,0);this._cipher=new i$.AES(t);var o=this._cipher.encryptBlock(i);this._ghash=new i3(o),n=function(e,t,n){if(12===t.length)return e._finID=i6.concat([t,i6.from([0,0,0,1])]),i6.concat([t,i6.from([0,0,0,2])]);var r=new i3(n),i=t.length,o=i%16;r.update(t),o&&(o=16-o,r.update(i6.alloc(o,0))),r.update(i6.alloc(8,0));var a=i6.alloc(8);a.writeUIntBE(8*i,0,8),r.update(a),e._finID=r.state;var s=i6.from(e._finID);return iU(s),s}(this,n,o),this._prev=i6.from(n),this._cache=i6.allocUnsafe(0),this._secCache=i6.allocUnsafe(0),this._decrypt=r,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}eD(i4,rF),i4.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i6.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},i4.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var e=iT(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i<r;++i)n+=e[i]^t[i];return n}(e,this._authTag))throw Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},i4.prototype.getAuthTag=function(){if(this._decrypt||!i6.isBuffer(this._authTag))throw Error("Attempting to get auth tag in unsupported state");return this._authTag},i4.prototype.setAuthTag=function(e){if(!this._decrypt)throw Error("Attempting to set auth tag in unsupported state");this._authTag=e},i4.prototype.setAAD=function(e){if(this._called)throw Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length};var i8=eT().Buffer;function i5(e,t,n,r){rF.call(this),this._cipher=new i$.AES(t),this._prev=i8.from(n),this._cache=i8.allocUnsafe(0),this._secCache=i8.allocUnsafe(0),this._decrypt=r,this._mode=e}eD(i5,rF),i5.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},i5.prototype._final=function(){this._cipher.scrub()};var i7=eT().Buffer,i9=function(e,t,n,r){if(i7.isBuffer(e)||(e=i7.from(e,"binary")),t&&(i7.isBuffer(t)||(t=i7.from(t,"binary")),8!==t.length))throw RangeError("salt should be Buffer with 8 byte length");for(var i=n/8,o=i7.alloc(i),a=i7.alloc(r||0),s=i7.alloc(0);i>0||r>0;){var l=new nc;l.update(s),l.update(e),t&&l.update(t),s=l.digest();var u=0;if(i>0){var c=o.length-i;u=Math.min(i,s.length),s.copy(o,c,0,u),i-=u}if(u<s.length&&r>0){var d=a.length-r,f=Math.min(r,s.length-u);s.copy(a,d,u,u+f),r-=f}}return s.fill(0),{key:o,iv:a}},oe=eT().Buffer;function ot(e,t,n){rF.call(this),this._cache=new or,this._cipher=new i$.AES(t),this._prev=oe.from(n),this._mode=e,this._autopadding=!0}eD(ot,rF),ot.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return oe.concat(r)};var on=oe.alloc(16,16);function or(){this.cache=oe.allocUnsafe(0)}function oi(e,t,n){var r=iK[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");if("string"==typeof t&&(t=oe.from(t)),t.length!==r.key/8)throw TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=oe.from(n)),"GCM"!==r.mode&&n.length!==r.iv)throw TypeError("invalid iv length "+n.length);return"stream"===r.type?new i5(r.module,t,n):"auth"===r.type?new i4(r.module,t,n):new ot(r.module,t,n)}ot.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(on))throw this._cipher.scrub(),Error("data not multiple of block length")},ot.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},or.prototype.add=function(e){this.cache=oe.concat([this.cache,e])},or.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},or.prototype.flush=function(){for(var e=16-this.cache.length,t=oe.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return oe.concat([this.cache,t])},iR.createCipheriv=oi,iR.createCipher=function(e,t){var n=iK[e.toLowerCase()];if(!n)throw TypeError("invalid suite type");var r=i9(t,!1,n.key,n.iv);return oi(e,r.key,r.iv)};var oo={},oa=eT().Buffer;function os(e,t,n){rF.call(this),this._cache=new ol,this._last=void 0,this._cipher=new i$.AES(t),this._prev=oa.from(n),this._mode=e,this._autopadding=!0}function ol(){this.cache=oa.allocUnsafe(0)}function ou(e,t,n){var r=iK[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");if("string"==typeof n&&(n=oa.from(n)),"GCM"!==r.mode&&n.length!==r.iv)throw TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=oa.from(t)),t.length!==r.key/8)throw TypeError("invalid key length "+t.length);return"stream"===r.type?new i5(r.module,t,n,!0):"auth"===r.type?new i4(r.module,t,n,!0):new os(r.module,t,n)}eD(os,rF),os.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return oa.concat(r)},os.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw Error("unable to decrypt data");for(var n=-1;++n<t;)if(e[n+(16-t)]!==t)throw Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw Error("data not multiple of block length")},os.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},ol.prototype.add=function(e){this.cache=oa.concat([this.cache,e])},ol.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},ol.prototype.flush=function(){if(this.cache.length)return this.cache},oo.createDecipher=function(e,t){var n=iK[e.toLowerCase()];if(!n)throw TypeError("invalid suite type");var r=i9(t,!1,n.key,n.iv);return ou(e,r.key,r.iv)},oo.createDecipheriv=ou,ix.createCipher=ix.Cipher=iR.createCipher,ix.createCipheriv=ix.Cipheriv=iR.createCipheriv,ix.createDecipher=ix.Decipher=oo.createDecipher,ix.createDecipheriv=ix.Decipheriv=oo.createDecipheriv,ix.listCiphers=ix.getCiphers=function(){return Object.keys(iK)};var oc={};
1function od(e,t,n){if(iK[e=e.toLowerCase()])return ix.createCipheriv(e,t,n);if(oc[e])return new iC({key:t,iv:n,mode:e});throw TypeError("invalid suite type")}function of(e,t,n){if(iK[e=e.toLowerCase()])return ix.createDecipheriv(e,t,n);if(oc[e])return new iC({key:t,iv:n,mode:e,decrypt:!0});throw TypeError("invalid suite type")}oc["des-ecb"]={key:8,iv:0},oc["des-cbc"]=oc.des={key:8,iv:8},oc["des-ede3-cbc"]=oc.des3={key:24,iv:8},oc["des-ede3"]={key:24,iv:0},oc["des-ede-cbc"]={key:16,iv:8},oc["des-ede"]={key:16,iv:0},il.createCipher=il.Cipher=function(e,t){if(iK[e=e.toLowerCase()])n=iK[e].key,r=iK[e].iv;else{if(!oc[e])throw TypeError("invalid suite type");n=8*oc[e].key,r=oc[e].iv}var n,r,i=i9(t,!1,n,r);return od(e,i.key,i.iv)},il.createCipheriv=il.Cipheriv=od,il.createDecipher=il.Decipher=function(e,t){if(iK[e=e.toLowerCase()])n=iK[e].key,r=iK[e].iv;else{if(!oc[e])throw TypeError("invalid suite type");n=8*oc[e].key,r=oc[e].iv}var n,r,i=i9(t,!1,n,r);return of(e,i.key,i.iv)},il.createDecipheriv=il.Decipheriv=of,il.listCiphers=il.getCiphers=function(){return Object.keys(oc).concat(ix.getCiphers())};var oh={},op={exports:{}};!function(e,t){function n(e,t){if(!e)throw Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}
vendor: 4,170 bytes, line 1
1"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{l="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:er.Buffer}catch(e){}function o(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function a(e,t,n){var r=o(e,n);return n-1>=t&&(r|=o(e,n-1)<<4),r}function s(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return 0>e.cmp(t)?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},i.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},i.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,s=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=a(e,t,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=a(e,t,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,l=Math.min(o,o-a)+n,u=0,c=n;c<l;c+=r)u=s(e,c,c+r,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=s(e,c,e.length,t),c=0;c<a;c++)d*=t;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},i.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l,u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,143489
vendor: 5,521 bytes, line 1
107,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var u=1;u<r;u++){for(var c=l>>>26,d=67108863&l,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++){var p=u-h|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}n.words[u]=0|d,l=0|c}return 0!==l?n.words[u]=0|l:n.length--,n.strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);r=0!=(o=s>>>24-i&16777215)||a!==this.length-1?u[6-l.length]+l+r:l+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var f=c[e],h=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[f-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return n(void 0!==l),this.toArrayLike(l,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,l=new e(o),u=this.clone();if("le"===t){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),l[s]=a;for(;s<o;s++)l[s]=0}else{for(s=0;s<o-i;s++)l[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),l[o-s-1]=a}return l},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},i.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},i.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},i.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},i.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>
vendor: 7,185 bytes, line 1
1>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(t=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<n.length;a++)o=(t=(0|n.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var h=function(e,t,n){var r,i,o,a=e.words,s=t.words,l=n.words,u=0,c=0|a[0],d=8191&c,f=c>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,b=g>>>13,y=0|a[3],A=8191&y,w=y>>>13,_=0|a[4],E=8191&_,S=_>>>13,k=0|a[5],M=8191&k,C=k>>>13,x=0|a[6],R=8191&x,I=x>>>13,T=0|a[7],O=8191&T,P=T>>>13,L=0|a[8],N=8191&L,D=L>>>13,B=0|a[9],j=8191&B,F=B>>>13,z=0|s[0],U=8191&z,q=z>>>13,K=0|s[1],H=8191&K,V=K>>>13,$=0|s[2],W=8191&$,Y=$>>>13,G=0|s[3],Q=8191&G,Z=G>>>13,J=0|s[4],X=8191&J,ee=J>>>13,et=0|s[5],en=8191&et,er=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],el=8191&es,eu=es>>>13,ec=0|s[8],ed=8191&ec,ef=ec>>>13,eh=0|s[9],ep=8191&eh,em=eh>>>13;n.negative=e.negative^t.negative,n.length=19;var eg=(u+(r=Math.imul(d,U))|0)+((8191&(i=(i=Math.imul(d,q))+Math.imul(f,U)|0))<<13)|0;u=((o=Math.imul(f,q))+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,r=Math.imul(p,U),i=(i=Math.imul(p,q))+Math.imul(m,U)|0,o=Math.imul(m,q);var ev=(u+(r=r+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(f,H)|0))<<13)|0;u=((o=o+Math.imul(f,V)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,r=Math.imul(v,U),i=(i=Math.imul(v,q))+Math.imul(b,U)|0,o=Math.imul(b,q),r=r+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,V)|0;var eb=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,W)|0))<<13)|0;u=((o=o+Math.imul(f,Y)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,r=Math.imul(A,U),i=(i=Math.imul(A,q))+Math.imul(w,U)|0,o=Math.imul(w,q),r=r+Math.imul(v,H)|0,i=(i=i+Math.imul(v,V)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,V)|0,r=r+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,Y)|0;var ey=(u+(r=r+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,Q)|0))<<13)|0;u=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,r=Math.imul(E,U),i=(i=Math.imul(E,q))+Math.imul(S,U)|0,o=Math.imul(S,q),r=r+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(w,H)|0,o=o+Math.imul(w,V)|0,r=r+Math.imul(v,W)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,Y)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Z)|0;var eA=(u+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,X)|0))<<13)|0;u=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,r=Math.imul(M,U),i=(i=Math.imul(M,q))+Math.imul(C,U)|0,o=Math.imul(C,q),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,Y)|0,r=r+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,Z)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var ew=(u+(r=r+Math.imul(d,en)|0)|0)+((8191&(i=(i=i+Math.imul(d,er)|0)+Math.imul(f,en)|0))<<13)|0;u=((o=o+Math.imul(f,er)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,r=Math.imul(R,U),i=(i=Math.imul(R,q))+Math.imul(I,U)|0,o=Math.imul(I,q),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,V)|0)+Math.imul(C,H)|0,o=o+Math.imul(C,V)|0,r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,r=r+Math.imul(p,en)|0,i=(i=i+Math.imul(p,er)|0)+Math.imul(m,en)|0,o=o+Math.imul(m,er)|0;var e_=(u+(r=r+Math.imul(d,eo)|0)|0)+((8191&(i=(i=i+Math.imul(d,ea)|0)+Math.imul(f,eo)|0))<<13)|0;u=((o=o+Math.imul(f,ea)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,r=Math.imul(O,U),i=(i=Math.imul(O,q))+Math.imul(P,U)|0,o=Math.imul(P,q),r=r+Math.imul(R,H)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,V)|0,r=r+Math.imul(M,W)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,Y)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,ee)|0,r=r+Math.imul(v,en)|0,i=(i=i+Math.imul(v,er)|0)+Math.imul(b,en)|0,o=o+Math.imul(b,er)|0,r=r+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,ea)|0;var eE=(u+(r=r+Math.imul(d,el)|0)|0)+((8191&(i=(i=i+Math.imul(d,eu)|0)+Math.imul(f,el)|0))<<13)|0;u=((o=o+Math.imul(f,eu)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,r=Math.imul(N,U),i=(i=Math.imul(N,q))+Math.imul(D,U)|0,o=Math.imul(D,q),r=r+Math.imul(O,H)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(P,H)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(A,en)|0,i=(i=i+Math.imul(A,er)|0)+Math.imul(w,en)|0,o=o+Math.imul(w,er)|0,r=r+Math.imul(v,eo)|0,i=(i=i+Math.imul(v,ea)|0)+Math.imul(b,eo)|0,o=o+Math.imul(b,ea)|0,r=r+Math.imul(p,el)|0,i=(i=i+Math.imul(p,eu)|0)+Math.imul(m,el)|0,o=o+Math.imul(m,eu)|0;var eS=(u+(r=r+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(f,ed)|0))<<13)|0;u=((o=o+Math.imul(f,ef)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,r=Math.imul(j,U),i=(i=Math.imul(j,q))+Math.imul(F,U)|0,o=Math.imul(F,q),r=r+Math.imul(N,H)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(D,H)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,Y)|0,r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,Z)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,r=r+Math.imul(E,en)|0,i=(i=i+Math.imul(E,er)|0)+Math.imul(S,en)|0,o=o+Math.imul(S,er)|0,r=r+Math.imul(A,eo)|0,i=(i=i+Math.imul(A,ea)|0)+Math.imul(w,eo)|0,o=o+Math.imul(w,ea)|0,r=r+Math.imul(v,el)|0,i=(i=i+Math.imul(v,eu)|0)+Math.imul(b,el)|0,o=o+Math.imul(b,eu)|0,r=r+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ed)|0,o=o+Math.imul(m,ef)|0;var ek=(u+(r=r+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(f,ep)|0))<<13)|0;u=((o=o+Math.imul(f,em)|0)+(i>>>13)|0)+(ek>>>
vendor: 2,339 bytes, line 1
126)|0,ek&=67108863,r=Math.imul(j,H),i=(i=Math.imul(j,V))+Math.imul(F,H)|0,o=Math.imul(F,V),r=r+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(D,W)|0,o=o+Math.imul(D,Y)|0,r=r+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,Z)|0,r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(M,en)|0,i=(i=i+Math.imul(M,er)|0)+Math.imul(C,en)|0,o=o+Math.imul(C,er)|0,r=r+Math.imul(E,eo)|0,i=(i=i+Math.imul(E,ea)|0)+Math.imul(S,eo)|0,o=o+Math.imul(S,ea)|0,r=r+Math.imul(A,el)|0,i=(i=i+Math.imul(A,eu)|0)+Math.imul(w,el)|0,o=o+Math.imul(w,eu)|0,r=r+Math.imul(v,ed)|0,i=(i=i+Math.imul(v,ef)|0)+Math.imul(b,ed)|0,o=o+Math.imul(b,ef)|0;var eM=(u+(r=r+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;u=((o=o+Math.imul(m,em)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,r=Math.imul(j,W),i=(i=Math.imul(j,Y))+Math.imul(F,W)|0,o=Math.imul(F,Y),r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,Z)|0,r=r+Math.imul(O,X)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,r=r+Math.imul(R,en)|0,i=(i=i+Math.imul(R,er)|0)+Math.imul(I,en)|0,o=o+Math.imul(I,er)|0,r=r+Math.imul(M,eo)|0,i=(i=i+Math.imul(M,ea)|0)+Math.imul(C,eo)|0,o=o+Math.imul(C,ea)|0,r=r+Math.imul(E,el)|0,i=(i=i+Math.imul(E,eu)|0)+Math.imul(S,el)|0,o=o+Math.imul(S,eu)|0,r=r+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(w,ed)|0,o=o+Math.imul(w,ef)|0;var eC=(u+(r=r+Math.imul(v,ep)|0)|0)+((8191&(i=(i=i+Math.imul(v,em)|0)+Math.imul(b,ep)|0))<<13)|0;u=((o=o+Math.imul(b,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,r=Math.imul(j,Q),i=(i=Math.imul(j,Z))+Math.imul(F,Q)|0,o=Math.imul(F,Z),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(O,en)|0,i=(i=i+Math.imul(O,er)|0)+Math.imul(P,en)|0,o=o+Math.imul(P,er)|0,r=r+Math.imul(R,eo)|0,i=(i=i+Math.imul(R,ea)|0)+Math.imul(I,eo)|0,o=o+Math.imul(I,ea)|0,r=r+Math.imul(M,el)|0,i=(i=i+Math.imul(M,eu)|0)+Math.imul(C,el)|0,o=o+Math.imul(C,eu)|0,r=r+Math.imul(E,ed)|0,i=(i=i+Math.imul(E,ef)|0)+Math.imul(S,ed)|0,o=o+Math.imul(S,ef)|0;var ex=(u+(r=r+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(w,ep)|0))<<13)|0;u=((o=o+Math.imul(w,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,r=Math.imul(j,X),i=(i=Math.imul(j,ee))+Math.imul(F,X
vendor: 9,285 bytes, line 1
1)|0,o=Math.imul(F,ee),r=r+Math.imul(N,en)|0,i=(i=i+Math.imul(N,er)|0)+Math.imul(D,en)|0,o=o+Math.imul(D,er)|0,r=r+Math.imul(O,eo)|0,i=(i=i+Math.imul(O,ea)|0)+Math.imul(P,eo)|0,o=o+Math.imul(P,ea)|0,r=r+Math.imul(R,el)|0,i=(i=i+Math.imul(R,eu)|0)+Math.imul(I,el)|0,o=o+Math.imul(I,eu)|0,r=r+Math.imul(M,ed)|0,i=(i=i+Math.imul(M,ef)|0)+Math.imul(C,ed)|0,o=o+Math.imul(C,ef)|0;var eR=(u+(r=r+Math.imul(E,ep)|0)|0)+((8191&(i=(i=i+Math.imul(E,em)|0)+Math.imul(S,ep)|0))<<13)|0;u=((o=o+Math.imul(S,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,r=Math.imul(j,en),i=(i=Math.imul(j,er))+Math.imul(F,en)|0,o=Math.imul(F,er),r=r+Math.imul(N,eo)|0,i=(i=i+Math.imul(N,ea)|0)+Math.imul(D,eo)|0,o=o+Math.imul(D,ea)|0,r=r+Math.imul(O,el)|0,i=(i=i+Math.imul(O,eu)|0)+Math.imul(P,el)|0,o=o+Math.imul(P,eu)|0,r=r+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ed)|0,o=o+Math.imul(I,ef)|0;var eI=(u+(r=r+Math.imul(M,ep)|0)|0)+((8191&(i=(i=i+Math.imul(M,em)|0)+Math.imul(C,ep)|0))<<13)|0;u=((o=o+Math.imul(C,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,r=Math.imul(j,eo),i=(i=Math.imul(j,ea))+Math.imul(F,eo)|0,o=Math.imul(F,ea),r=r+Math.imul(N,el)|0,i=(i=i+Math.imul(N,eu)|0)+Math.imul(D,el)|0,o=o+Math.imul(D,eu)|0,r=r+Math.imul(O,ed)|0,i=(i=i+Math.imul(O,ef)|0)+Math.imul(P,ed)|0,o=o+Math.imul(P,ef)|0;var eT=(u+(r=r+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;u=((o=o+Math.imul(I,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,r=Math.imul(j,el),i=(i=Math.imul(j,eu))+Math.imul(F,el)|0,o=Math.imul(F,eu),r=r+Math.imul(N,ed)|0,i=(i=i+Math.imul(N,ef)|0)+Math.imul(D,ed)|0,o=o+Math.imul(D,ef)|0;var eO=(u+(r=r+Math.imul(O,ep)|0)|0)+((8191&(i=(i=i+Math.imul(O,em)|0)+Math.imul(P,ep)|0))<<13)|0;u=((o=o+Math.imul(P,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863,r=Math.imul(j,ed),i=(i=Math.imul(j,ef))+Math.imul(F,ed)|0,o=Math.imul(F,ef);var eP=(u+(r=r+Math.imul(N,ep)|0)|0)+((8191&(i=(i=i+Math.imul(N,em)|0)+Math.imul(D,ep)|0))<<13)|0;u=((o=o+Math.imul(D,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863;var eL=(u+(r=Math.imul(j,ep))|0)+((8191&(i=(i=Math.imul(j,em))+Math.imul(F,ep)|0))<<13)|0;return u=((o=Math.imul(F,em))+(i>>>13)|0)+(eL>>>26)|0,eL&=67108863,l[0]=eg,l[1]=ev,l[2]=eb,l[3]=ey,l[4]=eA,l[5]=ew,l[6]=e_,l[7]=eE,l[8]=eS,l[9]=ek,l[10]=eM,l[11]=eC,l[12]=ex,l[13]=eR,l[14]=eI,l[15]=eT,l[16]=eO,l[17]=eP,l[18]=eL,0!==u&&(l[19]=u,n.length++),n};function p(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=f),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?h(this,e,t):n<63?f(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,l=Math.min(o,t.length-1),u=Math.max(0,o-e.length+1);u<=l;u++){var c=o-u,d=(0|e.words[c])*(0|t.words[u]),f=67108863&d;s=67108863&(f=f+s|0),i+=(a=(a=a+(d/67108864|0)|0)+(f>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):p(this,e,t)},m.prototype.makeRBT=function(e){for(var t=Array(e),n=i.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},m.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},m.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a<o;a++)r[a]=t[e[a]],i[a]=n[e[a]]},m.prototype.transform=function(e,t,n,r,i,o){this.permute(o,e,t,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var d=l,f=u,h=0;h<a;h++){var p=n[c+h],m=r[c+h],g=n[c+h+a],v=r[c+h+a],b=d*g-f*v;v=d*v+f*g,g=b,n[c+h]=p+g,r[c+h]=m+v,n[c+h+a]=p-g,r[c+h+a]=m-v,h!==s&&(b=l*d-u*f,f=l*f+u*d,d=b)}},m.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},m.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},m.prototype.stub=function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=0;return t},m.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),o=this.stub(r),a=Array(r),s=Array(r),l=Array(r),u=Array(r),c=Array(r),d=Array(r),f=n.words;f.length=r,this.convert13b(e.words,e.length,a,r),this.convert13b(t.words,t.length,u,r),this.transform(a,o,s,l,r,i),this.transform(u,o,c,d,r,i);for(var h=0;h<r;h++){var p=s[h]*c[h]-l[h]*d[h];l[h]=s[h]*d[h]+l[h]*c[h],s[h]=p}return this.conjugate(s,l,r),this.transform(s,l,f,o,r,i),this.conjugate(f,o,r),this.normalize13b(f,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=Array(this.length+e.length),p(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=(i/67108864|0)+(o>>>26),this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var o=n.sqr();r<t.length;r++,o=o.sqr())0!==t[r]&&(n=n.mul(o));return n},i.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<r;this.words[t]=l|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},i.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var i,o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o;if(i-=a,i=Math.max(0,i),r){for(var l=0;l<a;l++)r.words[l]=this.words[l];r.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var c=0|this.words[l];this.words[l]=u<<26-o|c>>>o,u=c&s}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<<t)},i.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<<t),this.strip())},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var l=(0|e.words[i])*t;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>
vendor: 4,727 bytes, line 1
126,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,l=r.length-o.length;if("mod"!==t){(s=new i(null)).length=l+1,s.words=Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var c=r.clone()._ishlnsubmul(o,1,l);0===c.negative&&(r=c,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var f=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(f=Math.min(f/a|0,67108863),r._ishlnsubmul(o,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){var o,a,s;return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},i.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),l=new i(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(l)):(r.isub(t),s.isub(o),l.isub(a))}return{a:s,b:l,gcd:r.iushln(u)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),l=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0==(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,f=1;0==(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return 0>(o=0===t.cmpn(1)?a:s).cmpn(0)&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;
vendor: 5,663 bytes, line 1
1if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return -1===this.cmpn(e)},i.prototype.lt=function(e){return -1===this.cmp(e)},i.prototype.lten=function(e){return 0>=this.cmpn(e)},i.prototype.lte=function(e){return 0>=this.cmp(e)},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength();while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},r(b,v),b.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(y,v),r(A,v),r(w,v),w.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){var t;if(g[e])return g[e];
1if("k256"===e)t=new b;else if("p224"===e)t=new y;else if("p192"===e)t=new A;else{if("p25519"!==e)throw Error("Unknown prime "+e);t=new w}return g[e]=t,t},_.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return 0>n.cmpn(0)&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return 0>n.cmpn(0)&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var d=this.pow(c,o),f=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<p);var v=this.pow(d,new i(1).iushln(p-g-1));f=f.redMul(v),d=v.redSqr(),h=h.redMul(d),p=g}return f},_.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},_.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=Array(16);n[0]=new i(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var o=n[0],a=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),r=t.length-1;r>=0;r--){for(var u=t.words[r],c=l-1;c>=0;c--){var d=u>>c&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===r&&0===c)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}l=26}return o},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new E(e)},r(E,_),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):0>o.cmpn(0)&&(a=o.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(op,l);var om,og,ov,ob,oy,oA=op.exports,ow={exports:{}};function o_(){if(om)return ow.exports;function e(e){this.rand=e}if(om=1,ow.exports=function(n){return t||(t=new e(null)),t.generate(n)},ow.exports.Rand=e,e.prototype.generate=function(e){return this._rand(e)},e.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?e.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?e.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(e.prototype._rand=function(){throw Error("Not implemented yet")});else try{var t,n=lq();if("function"!=typeof n.randomBytes)throw Error("Not supported");e.prototype._rand=function(e){return n.randomBytes(e)}}catch(e){}return ow.exports}function oE(){if(ov)return og;ov=1;var e=o_();function t(t){this.rand=t||new e.Rand}return og=t,t.create=function(e){return new t(e)},t.prototype._randbelow=function(e){var t=Math.ceil(e.bitLength()/8);do var n=new oA(this.rand.generate(t));while(n.cmp(e)>=0);return n},t.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},t.prototype.test=function(e,t,n){var r=e.bitLength(),i=oA.mont(e),o=new oA(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var l=e.shrn(s),u=a.toRed(i);t>0;t--){var c=this._randrange(new oA(2),a);n&&n(c);var d=c.toRed(i).redPow(l);if(0!==d.cmp(o)&&0!==d.cmp(u)){for(var f=1;f<s;f++){if(0===(d=d.redSqr()).cmp(o))return!1;if(0===d.cmp(u))break}if(f===s)return!1}}return!0},t.prototype.getDivisor=function(e,t){var n=e.bitLength(),r=oA.mont(e),i=new oA(1).toRed(r);t||(t=Math.max(1,n/48|0));for(var o=e.subn(1),a=0;!o.testn(a);a++);for(var s=e.shrn(a),l=o.toRed(r);t>0;t--){var u=this._randrange(new oA(2),o),c=e.gcd(u);if(0!==c.cmpn(1))return c;var d=u.toRed(r).redPow(s);if(0!==d.cmp(i)&&0!==d.cmp(l)){for(var f=1;f<a;f++){if(0===(d=d.redSqr()).cmp(i))return d.fromRed().subn(1).gcd(e);if(0===d.cmp(l))break}if(f===a)return(d=d.redSqr()).fromRed().subn(1).gcd(e)}}return!1},og}function oS(){if(oy)return ob;oy=1,ob=f,f.simpleSieve=c,f.fermatTest=d;var e=new oA(24),t=new(oE()),n=new oA(1),r=new oA(2),i=new oA(5);new oA(16),new oA(8);var o=new oA(10),a=new oA(3);new oA(7);var s=new oA(11),l=new oA(4);new oA(12);var u=null;function c(e){for(var t=function(){if(null!==u)return u;var e=[];e[0]=2;
1for(var t=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),i=0;i<t&&e[i]<=r&&n%e[i]!=0;i++);t!==i&&e[i]<=r||(e[t++]=n)}return u=e,e}(),n=0;n<t.length;n++)if(0===e.modn(t[n]))return 0===e.cmpn(t[n]);return!0}function d(e){var t=oA.mont(e);return 0===r.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function f(u,f){var h,p;if(u<16)return new oA(2===f||5===f?[140,123]:[140,39]);for(f=new oA(f);;){for(h=new oA(eL(Math.ceil(u/8)));h.bitLength()>u;)h.ishrn(1);if(h.isEven()&&h.iadd(n),h.testn(1)||h.iadd(r),f.cmp(r)){if(!f.cmp(i))for(;h.mod(o).cmp(a);)h.iadd(l)}else for(;h.mod(e).cmp(s);)h.iadd(l);if(c(p=h.shrn(1))&&c(h)&&d(p)&&d(h)&&t.test(p)&&t.test(h))return h}}return ob}var ok,oM,oC,ox={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd4
107b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}},oR={exports:{}},oI={exports:{}};!function(e,t){function n(e,t){if(!e)throw Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}
vendor: 4,453 bytes, line 1
1"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{c="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:er.Buffer}catch(e){}function o(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function a(e,t,n){var r=o(e,n);return n-1>=t&&(r|=o(e,n-1)<<4),r}function s(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),l=t;l<s;l++){var u=e.charCodeAt(l)-48;o*=i,a=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&a<i,"Invalid character"),o+=a}return o}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return 0>e.cmp(t)?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},i.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},i.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,s=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=a(e,t,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=a(e,t,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,l=Math.min(o,o-a)+n,u=0,c=n;c<l;c+=r)u=s(e,c,c+r,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=s(e,c,e.length,t),c=0;c<a;c++)d*=t;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},i.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype._move=function(e){l(e,this)},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){i.prototype.inspect=u}else i.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var c,d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 13,248 bytes, line 1
1777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var u=1;u<r;u++){for(var c=l>>>26,d=67108863&l,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++){var p=u-h|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}n.words[u]=0|d,l=0|c}return 0!==l?n.words[u]=0|l:n.length--,n._strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?d[6-l.length]+l+r:l+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],c=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(c).toString(e);r=(p=p.idivn(c)).isZero()?m+r:d[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},c&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(c,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=e.allocUnsafe?e.allocUnsafe(o):new e(o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;e[n++]=255&a,n<e.length&&(e[n++]=a>>8&255),n<e.length&&(e[n++]=a>>16&255),6===o?(n<e.length&&(e[n++]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},i.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;e[n--]=255&a,n>=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},i.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this._strip()},i.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this._strip()},i.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},i.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(t=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<n.length;a++)o=(t=(0|n.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,n){var r,i,o,a=e.words,s=t.words,l=n.words,u=0,c=0|a[0],d=8191&c,f=c>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,b=g>>>13,y=0|a[3],A=8191&y,w=y>>>13,_=0|a[4],E=8191&_,S=_>>>13,k=0|a[5],M=8191&k,C=k>>>13,x=0|a[6],R=8191&x,I=x>>>13,T=0|a[7],O=8191&T,P=T>>>13,L=0|a[8],N=8191&L,D=L>>>13,B=0|a[9],j=8191&B,F=B>>>13,z=0|s[0],U=8191&z,q=z>>>13,K=0|s[1],H=8191&K,V=K>>>13,$=0|s[2],W=8191&$,Y=$>>>13,G=0|s[3],Q=8191&G,Z=G>>>13,J=0|s[4],X=8191&J,ee=J>>>13,et=0|s[5],en=8191&et,er=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],el=8191&es,eu=es>>>13,ec=0|s[8],ed=8191&ec,ef=ec>>>13,eh=0|s[9],ep=8191&eh,em=eh>>>13;n.negative=e.negative^t.negative,n.length=19;var eg=(u+(r=Math.imul(d,U))|0)+((8191&(i=(i=Math.imul(d,q))+Math.imul(f,U)|0))<<13)|0;u=((o=Math.imul(f,q))+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,r=Math.imul(p,U),i=(i=Math.imul(p,q))+Math.imul(m,U)|0,o=Math.imul(m,q);var ev=(u+(r=r+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(f,H)|0))<<13)|0;u=((o=o+Math.imul(f,V)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,r=Math.imul(v,U),i=(i=Math.imul(v,q))+Math.imul(b,U)|0,o=Math.imul(b,q),r=r+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,V)|0;var eb=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,W)|0))<<13)|0;u=((o=o+Math.imul(f,Y)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,r=Math.imul(A,U),i=(i=Math.imul(A,q))+Math.imul(w,U)|0,o=Math.imul(w,q),r=r+Math.imul(v,H)|0,i=(i=i+Math.imul(v,V)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,V)|0,r=r+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,Y)|0;var ey=(u+(r=r+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,Q)|0))<<13)|0;u=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,r=Math.imul(E,U),i=(i=Math.imul(E,q))+Math.imul(S,U)|0,o=Math.imul(S,q),r=r+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(w,H)|0,o=o+Math.imul(w,V)|0,r=r+Math.imul(v,W)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,Y)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Z)|0;var eA=(u+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,X)|0))<<13)|0;u=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,r=Math.imul(M,U),i=(i=Math.imul(M,q))+Math.imul(C,U)|0,o=Math.imul(C,q),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,Y)|0,r=r+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,Z)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var ew=(u+(r=r+Math.imul(d,en)|0)|0)+((8191&(i=(i=i+Math.imul(d,er)|0)+Math.imul(f,en)|0))<<13)|0;u=((o=o+Math.imul(f,er)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,r=Math.imul(R,U),i=(i=Math.imul(R,q))+Math.imul(I,U)|0,o=Math.imul(I,q),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,V)|0)+Math.imul(C,H)|0,o=o+Math.imul(C,V)|0,r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,r=r+Math.imul(p,en)|0,i=(i=i+Math.imul(p,er)|0)+Math.imul(m,en)|0,o=o+Math.imul(m,er)|0;var e_=(u+(r=r+Math.imul(d,eo)|0)|0)+((8191&(i=(i=i+Math.imul(d,ea)|0)+Math.imul(f,eo)|0))<<13)|0;u=((o=o+Math.imul(f,ea)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,r=Math.imul(O,U),i=(i=Math.imul(O,q))+Math.imul(P,U)|0,o=Math.imul(P,q),r=r+Math.imul(R,H)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,V)|0,r=r+Math.imul(M,W)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,Y)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,ee)|0,r=r+Math.imul(v,en)|0,i=(i=i+Math.imul(v,er)|0)+Math.imul(b,en)|0,o=o+Math.imul(b,er)|0,r=r+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,ea)|0;var eE=(u+(r=r+Math.imul(d,el)|0)|0)+((8191&(i=(i=i+Math.imul(d,eu)|0)+Math.imul(f,el)|0))<<13)|0;u=((o=o+Math.imul(f,eu)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,r=Math.imul(N,U),i=(i=Math.imul(N,q))+Math.imul(D,U)|0,o=Math.imul(D,q),r=r+Math.imul(O,H)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(P,H)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(A,en)|0,i=(i=i+Math.imul(A,er)|0)+Math.imul(w,en)|0,o=o+Math.imul(w,er)|0,r=r+Math.imul(v,eo)|0,i=(i=i+Math.imul(v,ea)|0)+Math.imul(b,eo)|0,o=o+Math.imul(b,ea)|0,r=r+Math.imul(p,el)|0,i=(i=i+Math.imul(p,eu)|0)+Math.imul(m,el)|0,o=o+Math.imul(m,eu)|0;var eS=(u+(r=r+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(f,ed)|0))<<13)|0;u=((o=o+Math.imul(f,ef)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,r=Math.imul(j,U),i=(i=Math.imul(j,q))+Math.imul(F,U)|0,o=Math.imul(F,q),r=r+Math.imul(N,H)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(D,H)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,Y)|0,r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,Z)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,r=r+Math.imul(E,en)|0,i=(i=i+Math.imul(E,er)|0)+Math.imul(S,en)|0,o=o+Math.imul(S,er)|0,r=r+Math.imul(A,eo)|0,i=(i=i+Math.imul(A,ea)|0)+Math.imul(w,eo)|0,o=o+Math.imul(w,ea)|0,r=r+Math.imul(v,el)|0,i=(i=i+Math.imul(v,eu)|0)+Math.imul(b,el)|0,o=o+Math.imul(b,eu)|0,r=r+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ed)|0,o=o+Math.imul(m,ef)|0;var ek=(u+(r=r+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(f,ep)|0))<<13)|0;u=((o=o+Math.imul(f,em)|0)+(i>>>13)|0)+(ek>>>
vendor: 2,339 bytes, line 1
126)|0,ek&=67108863,r=Math.imul(j,H),i=(i=Math.imul(j,V))+Math.imul(F,H)|0,o=Math.imul(F,V),r=r+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(D,W)|0,o=o+Math.imul(D,Y)|0,r=r+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,Z)|0,r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(M,en)|0,i=(i=i+Math.imul(M,er)|0)+Math.imul(C,en)|0,o=o+Math.imul(C,er)|0,r=r+Math.imul(E,eo)|0,i=(i=i+Math.imul(E,ea)|0)+Math.imul(S,eo)|0,o=o+Math.imul(S,ea)|0,r=r+Math.imul(A,el)|0,i=(i=i+Math.imul(A,eu)|0)+Math.imul(w,el)|0,o=o+Math.imul(w,eu)|0,r=r+Math.imul(v,ed)|0,i=(i=i+Math.imul(v,ef)|0)+Math.imul(b,ed)|0,o=o+Math.imul(b,ef)|0;var eM=(u+(r=r+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;u=((o=o+Math.imul(m,em)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,r=Math.imul(j,W),i=(i=Math.imul(j,Y))+Math.imul(F,W)|0,o=Math.imul(F,Y),r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,Z)|0,r=r+Math.imul(O,X)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,r=r+Math.imul(R,en)|0,i=(i=i+Math.imul(R,er)|0)+Math.imul(I,en)|0,o=o+Math.imul(I,er)|0,r=r+Math.imul(M,eo)|0,i=(i=i+Math.imul(M,ea)|0)+Math.imul(C,eo)|0,o=o+Math.imul(C,ea)|0,r=r+Math.imul(E,el)|0,i=(i=i+Math.imul(E,eu)|0)+Math.imul(S,el)|0,o=o+Math.imul(S,eu)|0,r=r+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(w,ed)|0,o=o+Math.imul(w,ef)|0;var eC=(u+(r=r+Math.imul(v,ep)|0)|0)+((8191&(i=(i=i+Math.imul(v,em)|0)+Math.imul(b,ep)|0))<<13)|0;u=((o=o+Math.imul(b,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,r=Math.imul(j,Q),i=(i=Math.imul(j,Z))+Math.imul(F,Q)|0,o=Math.imul(F,Z),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(O,en)|0,i=(i=i+Math.imul(O,er)|0)+Math.imul(P,en)|0,o=o+Math.imul(P,er)|0,r=r+Math.imul(R,eo)|0,i=(i=i+Math.imul(R,ea)|0)+Math.imul(I,eo)|0,o=o+Math.imul(I,ea)|0,r=r+Math.imul(M,el)|0,i=(i=i+Math.imul(M,eu)|0)+Math.imul(C,el)|0,o=o+Math.imul(C,eu)|0,r=r+Math.imul(E,ed)|0,i=(i=i+Math.imul(E,ef)|0)+Math.imul(S,ed)|0,o=o+Math.imul(S,ef)|0;var ex=(u+(r=r+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(w,ep)|0))<<13)|0;u=((o=o+Math.imul(w,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,r=Math.imul(j,X),i=(i=Math.imul(j,ee))+Math.imul(F,X
vendor: 6,031 bytes, line 1
1)|0,o=Math.imul(F,ee),r=r+Math.imul(N,en)|0,i=(i=i+Math.imul(N,er)|0)+Math.imul(D,en)|0,o=o+Math.imul(D,er)|0,r=r+Math.imul(O,eo)|0,i=(i=i+Math.imul(O,ea)|0)+Math.imul(P,eo)|0,o=o+Math.imul(P,ea)|0,r=r+Math.imul(R,el)|0,i=(i=i+Math.imul(R,eu)|0)+Math.imul(I,el)|0,o=o+Math.imul(I,eu)|0,r=r+Math.imul(M,ed)|0,i=(i=i+Math.imul(M,ef)|0)+Math.imul(C,ed)|0,o=o+Math.imul(C,ef)|0;var eR=(u+(r=r+Math.imul(E,ep)|0)|0)+((8191&(i=(i=i+Math.imul(E,em)|0)+Math.imul(S,ep)|0))<<13)|0;u=((o=o+Math.imul(S,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,r=Math.imul(j,en),i=(i=Math.imul(j,er))+Math.imul(F,en)|0,o=Math.imul(F,er),r=r+Math.imul(N,eo)|0,i=(i=i+Math.imul(N,ea)|0)+Math.imul(D,eo)|0,o=o+Math.imul(D,ea)|0,r=r+Math.imul(O,el)|0,i=(i=i+Math.imul(O,eu)|0)+Math.imul(P,el)|0,o=o+Math.imul(P,eu)|0,r=r+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ed)|0,o=o+Math.imul(I,ef)|0;var eI=(u+(r=r+Math.imul(M,ep)|0)|0)+((8191&(i=(i=i+Math.imul(M,em)|0)+Math.imul(C,ep)|0))<<13)|0;u=((o=o+Math.imul(C,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,r=Math.imul(j,eo),i=(i=Math.imul(j,ea))+Math.imul(F,eo)|0,o=Math.imul(F,ea),r=r+Math.imul(N,el)|0,i=(i=i+Math.imul(N,eu)|0)+Math.imul(D,el)|0,o=o+Math.imul(D,eu)|0,r=r+Math.imul(O,ed)|0,i=(i=i+Math.imul(O,ef)|0)+Math.imul(P,ed)|0,o=o+Math.imul(P,ef)|0;var eT=(u+(r=r+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;u=((o=o+Math.imul(I,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,r=Math.imul(j,el),i=(i=Math.imul(j,eu))+Math.imul(F,el)|0,o=Math.imul(F,eu),r=r+Math.imul(N,ed)|0,i=(i=i+Math.imul(N,ef)|0)+Math.imul(D,ed)|0,o=o+Math.imul(D,ef)|0;var eO=(u+(r=r+Math.imul(O,ep)|0)|0)+((8191&(i=(i=i+Math.imul(O,em)|0)+Math.imul(P,ep)|0))<<13)|0;u=((o=o+Math.imul(P,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863,r=Math.imul(j,ed),i=(i=Math.imul(j,ef))+Math.imul(F,ed)|0,o=Math.imul(F,ef);var eP=(u+(r=r+Math.imul(N,ep)|0)|0)+((8191&(i=(i=i+Math.imul(N,em)|0)+Math.imul(D,ep)|0))<<13)|0;u=((o=o+Math.imul(D,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863;var eL=(u+(r=Math.imul(j,ep))|0)+((8191&(i=(i=Math.imul(j,em))+Math.imul(F,ep)|0))<<13)|0;return u=((o=Math.imul(F,em))+(i>>>13)|0)+(eL>>>26)|0,eL&=67108863,l[0]=eg,l[1]=ev,l[2]=eb,l[3]=ey,l[4]=eA,l[5]=ew,l[6]=e_,l[7]=eE,l[8]=eS,l[9]=ek,l[10]=eM,l[11]=eC,l[12]=ex,l[13]=eR,l[14]=eI,l[15]=eT,l[16]=eO,l[17]=eP,l[18]=eL,0!==u&&(l[19]=u,n.length++),n};function g(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,l=Math.min(o,t.length-1),u=Math.max(0,o-e.length+1);u<=l;u++){var c=o-u,d=(0|e.words[c])*(0|t.words[u]),f=67108863&d;s=67108863&(f=f+s|0),i+=(a=(a=a+(d/67108864|0)|0)+(f>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}Math.imul||(m=p),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?p(this,e,t):g(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=Array(this.length+e.length),g(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(67108863&o)+(67108863&r);r>>=26,r+=(o/67108864|0)+(a>>>26),this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var o=n.sqr();r<t.length;r++,o=o.sqr())0!==t[r]&&(n=n.mul(o));return n},i.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<r;this.words[t]=l|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},i.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var i,o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o;if(i-=a,i=Math.max(0,i),r){for(var l=0;l<a;l++)r.words[l]=this.words[l];r.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var c=0|this.words[l];this.words[l]=u<<26-o|c>>>o,u=c&s}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<<t)},i.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<<t),this._strip())},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?
vendor: 21,420 bytes, line 1
1(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var l=(0|e.words[i])*t;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,l=r.length-o.length;if("mod"!==t){(s=new i(null)).length=l+1,s.words=Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var c=r.clone()._ishlnsubmul(o,1,l);0===c.negative&&(r=c,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var f=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(f=Math.min(f/a|0,67108863),r._ishlnsubmul(o,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){var o,a,s;return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=67108864%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),l=new i(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(l)):(r.isub(t),s.isub(o),l.isub(a))}return{a:s,b:l,gcd:r.iushln(u)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),l=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0==(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,f=1;0==(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return 0>(o=0===t.cmpn(1)?a:s).cmpn(0)&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return -1===this.cmpn(e)},i.prototype.lt=function(e){return -1===this.cmp(e)},i.prototype.lten=function(e){return 0>=this.cmpn(e)},i.prototype.lte=function(e){return 0>=this.cmp(e)},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new E(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new i(null);return e.words=Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength();while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(y,b),y.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(A,b),r(w,b),r(_,b),_.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){var t;if(v[e])return v[e];if("k256"===e)t=new y;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw Error("Unknown prime "+e);t=new _}return v[e]=t,t},E.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return 0>n.cmpn(0)&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return 0>n.cmpn(0)&&n.iadd(this.m),n},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var d=this.pow(c,o),f=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<p);var v=this.pow(d,new i(1).iushln(p-g-1));f=f.redMul(v),d=v.redSqr(),h=h.redMul(d),p=g}return f},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=Array(16);n[0]=new i(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var o=n[0],a=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),r=t.length-1;r>=0;r--){for(var u=t.words[r],c=l-1;c>=0;c--){var d=u>>c&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===r&&0===c)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}l=26}return o},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new S(e)},r(S,E),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):0>o.cmpn(0)&&(a=o.iadd(this.m)),a._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(oI,l);var oT=oI.exports;function oO(e){var t,n=e.modulus.byteLength();do t=new oT(eL(n));while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function oP(e,t){var n,r={blinder:(n=oO(t)).toRed(oT.mont(t.modulus)).redPow(new oT(t.publicExponent)).fromRed(),unblinder:n.invm(t.modulus)},i=t.modulus.byteLength(),o=new oT(e).mul(r.blinder).umod(t.modulus),a=o.toRed(oT.mont(t.prime1)),s=o.toRed(oT.mont(t.prime2)),l=t.coefficient,u=t.prime1,c=t.prime2,d=a.redPow(t.exponent1).fromRed(),f=s.redPow(t.exponent2).fromRed(),h=d.isub(f).imul(l).umod(u).imul(c);return f.iadd(h).imul(r.unblinder).umod(t.modulus).toArrayLike(M,"be",i)}oP.getr=oO;var oL={},oN={version:"6.5.4"},oD={},oB={};(function(e){function t(e){return 1===e.length?"0"+e:e}function n(e){for(var n="",r=0;r<e.length;r++)n+=t(e[r].toString(16));return n}e.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16));else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),o=i>>8,a=255&i;o?n.push(o,a):n.push(a)}return n},e.zero2=t,e.toHex=n,e.encode=function(e,t){return"hex"===t?n(e):e}})(oB),oD.assert=im,oD.toArray=oB.toArray,oD.zero2=oB.zero2,oD.toHex=oB.toHex,oD.encode=oB.encode,oD.getNAF=function(e,t,n){var r=Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<r.length;a++){var s,l=o.andln(i-1);o.isOdd()?(s=l>(i>>1)-1?(i>>1)-l:l,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},oD.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,l=e.andln(3)+i&3,u=t.andln(3)+o&3;3===l&&(l=-1),3===u&&(u=-1),a=0==(1&l)?0:3!=(r=e.andln(7)+i&7)&&5!==r||2!==u?l:-l,n[0].push(a),s=0==(1&u)?0:3!=(r=t.andln(7)+o&7)&&5!==r||2!==l?u:-u,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},oD.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},oD.parseBytes=function(e){return"string"==typeof e?oD.toArray(e,"hex"):e},oD.intFromLE=function(e){return new oA(e,"hex","le")};var oj={},oF=oD.getNAF,oz=oD.getJSF,oU=oD.assert;function oq(e,t){this.type=e,this.p=new oA(t.p,16),this.red=t.prime?oA.red(t.prime):oA.mont(this.p),this.zero=new oA(0).toRed(this.red),this.one=new oA(1).toRed(this.red),this.two=new oA(2).toRed(this.red),this.n=t.n&&new oA(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function oK(e,t){this.curve=e,this.type=t,this.precomputed=null}oq.prototype.point=function(){throw Error("Not implemented")},oq.prototype.validate=function(){throw Error("Not implemented")},oq.prototype._fixedNafMul=function(e,t){oU(e.precomputed);var n=e._getDoubles(),r=oF(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;var o,a,s=[];for(o=0;o<r.length;o+=n.step){a=0;for(var l=o+n.step-1;l>=o;l--)a=(a<<1)+r[l];s.push(a)}for(var u=this.jpoint(null,null,null),c=this.jpoint(null,null,null),d=i;d>0;d--){for(o=0;o<s.length;o++)(a=s[o])===d?c=c.mixedAdd(n.points[o]):a===-d&&(c=c.mixedAdd(n.points[o].neg()));u=u.add(c)}return u.toP()},oq.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,o=oF(t,n,this._bitLength),a=this.jpoint(null,null,null),s=o.length-1;s>=0;s--){for(var l=0;s>=0&&0===o[s];s--)l++;if(s>=0&&l++,a=a.dblp(l),s<0)break;var u=o[s];oU(0!==u),a="affine"===e.type?u>0?a.mixedAdd(i[u-1>>1]):a.mixedAdd(i[-u-1>>1].neg()):u>0?a.add(i[u-1>>1]):a.add(i[-u-1>>1].neg())}return"affine"===e.type?a.toP():a},oq.prototype._wnafMulAdd=function(e,t,n,r,i){var o,a,s,l=this._wnafT1,u=this._wnafT2,c=this._wnafT3,d=0;for(o=0;o<r;o++){var f=(s=t[o])._getNAFPoints(e);l[o]=f.wnd,u[o]=f.points}for(o=r-1;o>=1;o-=2){var h=o-1,p=o;if(1===l[h]&&1===l[p]){var m=[t[h],null,null,t[p]];0===t[h].y.cmp(t[p].y)?(m[1]=t[h].add(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg())):0===t[h].y.cmp(t[p].y.redNeg())?(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].add(t[p].neg())):(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],v=oz(n[h],n[p]);for(d=Math.max(v[0].length,d),c[h]=Array(d),c[p]=Array(d),a=0;a<d;a++){var b=0|v[0][a],y=0|v[1][a];c[h][a]=g[3*(b+1)+(y+1)],c[p][a]=0,u[h]=m}}else c[h]=oF(n[h],l[h],this._bitLength),c[p]=oF(n[p],l[p],this._bitLength),d=Math.max(c[h].length,d),d=Math.max(c[p].length,d)}var A=this.jpoint(null,null,null),w=this._wnafT4;for(o=d;o>=0;o--){for(var _=0;o>=0;){var E=!0;for(a=0;a<r;a++)w[a]=0|c[a][o],0!==w[a]&&(E=!1);if(!E)break;_++,o--}if(o>=0&&_++,A=A.dblp(_),o<0)break;for(a=0;a<r;a++){var S=w[a];0!==S&&(S>0?s=u[a][S-1>>1]:S<0&&(s=u[a][-S-1>>1].neg()),A="affine"===s.type?A.mixedAdd(s):A.add(s))}}for(o=0;o<r;o++)u[o]=null;return i?A:A.toP()},oq.BasePoint=oK,oK.prototype.eq=function(){throw Error("Not implemented")},oK.prototype.validate=function(){return this.curve.validate(this)},oq.prototype.decodePoint=function(e,t){e=oD.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?oU(e[e.length-1]%2==0):7===e[0]&&oU(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw Error("Unknown point format")},oK.prototype.encodeCompressed=function(e){return this.encode(e,!0)},oK.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},oK.prototype.encode=function(e,t){return oD.encode(this._encode(t),e)}
vendor: 5,185 bytes, line 1
1,oK.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},oK.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},oK.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)r=r.dbl();n.push(r)}return{step:e,points:n}},oK.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},oK.prototype._getBeta=function(){return null},oK.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t};var oH=oD.assert;function oV(e){oq.call(this,"short",e),this.a=new oA(e.a,16).toRed(this.red),this.b=new oA(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function o$(e,t,n,r){oq.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new oA(t,16),this.y=new oA(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function oW(e,t,n,r){oq.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new oA(0)):(this.x=new oA(t,16),this.y=new oA(n,16),this.z=new oA(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}function oY(e){oq.call(this,"mont",e),this.a=new oA(e.a,16).toRed(this.red),this.b=new oA(e.b,16).toRed(this.red),this.i4=new oA(4).toRed(this.red).redInvm(),this.two=new oA(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function oG(e,t,n){oq.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new oA(t,16),this.z=new oA(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}eD(oV,oq),oV.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new oA(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=0>r[0].cmp(r[1])?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new oA(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?n=i[0]:(n=i[1],oH(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map(function(e){return{a:new oA(e.a,16),b:new oA(e.b,16)}}):this._getEndoBasis(n)}}},oV.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:oA.mont(e),n=new oA(2).toRed(t).redInvm(),r=n.redNeg(),i=new oA(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(i).fromRed(),r.redSub(i).fromRed()]},oV.prototype._getEndoBasis=function(e){for(var t,n,r,i,o,a,s,l,u,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,f=this.n.clone(),h=new oA(1),p=new oA(0),m=new oA(0),g=new oA(1),v=0;0!==d.cmpn(0);){var b=f.div(d);l=f.sub(b.mul(d)),u=m.sub(b.mul(h));var y=g.sub(b.mul(p));if(!r&&0>l.cmp(c))t=s.neg(),n=h,r=l.neg(),i=u;else if(r&&2==++v)break;s=l,f=d,d=l,m=h,h=u,g=p,p=y}o=l.neg(),a=u;var A=r.sqr().add(i.sqr());return o.sqr().add(a.sqr()).cmp(A)>=0&&(o=t,a=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:r,b:i},{a:o,b:a}]},oV.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),l=i.mul(n.b),u=o.mul(r.b);return{k1:e.sub(a).sub(s),k2:l.add(u).neg()}},oV.prototype.pointFromX=function(e,t){(e=new oA(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw Error("invalid point");var i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},oV.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},oV.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],l=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),l=l.neg(!0)),r[2*o]=s,r[2*o+1]=l,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var u=this._wnafMulAdd(1,r,i,2*o,n),c=0;c<2*o;c++)r[c]=null,i[c]=null;return u},eD(o$,oq.BasePoint),oV.prototype.point=function(e,t,n){return new o$(this,e,t,n)},oV.prototype.pointFromJSON=function(e,t){return o$.fromJSON(this,e,t)},o$.prototype._getBeta=function(){if(this.curve.endo){var e=this.prec
vendor: 17,968 bytes, line 1
1omputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},o$.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},o$.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var o=t[2];return r.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[r].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[r].concat(o.naf.points.map(i))}},r},o$.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},o$.prototype.isInfinity=function(){return this.inf},o$.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},o$.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},o$.prototype.getX=function(){return this.x.fromRed()},o$.prototype.getY=function(){return this.y.fromRed()},o$.prototype.mul=function(e){return e=new oA(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},o$.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},o$.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},o$.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},o$.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},o$.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},eD(oW,oq.BasePoint),oV.prototype.jpoint=function(e,t,n){return new oW(this,e,t,n)},oW.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},oW.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},oW.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),l=o.redSub(a);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),d=r.redMul(u),f=l.redSqr().redIAdd(c).redISub(d).redISub(d),h=l.redMul(d.redISub(f)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,h,p)},oW.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),u=l.redMul(a),c=n.redMul(l),d=s.redSqr().redIAdd(u).redISub(c).redISub(c),f=s.redMul(c.redISub(d)).redISub(i.redMul(u)),h=this.z.redMul(a);return this.curve.jpoint(d,f,h)},oW.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,n=this;for(t=0;t<e;t++)n=n.dbl();return n}var r=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,l=s.redSqr().redSqr(),u=a.redAdd(a);for(t=0;t<e;t++){var c=o.redSqr(),d=u.redSqr(),f=d.redSqr(),h=c.redAdd(c).redIAdd(c).redIAdd(r.redMul(l)),p=o.redMul(d),m=h.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),v=h.redMul(g);v=v.redIAdd(v).redISub(f);var b=u.redMul(s);t+1<e&&(l=l.redMul(f)),o=m,s=b,u=v}return this.curve.jpoint(o,u.redMul(i),s)},oW.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},oW.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r),l=s.redSqr().redISub(a).redISub(a),u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),e=l,t=s.redMul(a.redISub(l)).redISub(u),n=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),d=this.y.redSqr(),f=d.redSqr(),h=this.x.redAdd(d).redSqr().redISub(c).redISub(f);h=h.redIAdd(h);var p=c.redAdd(c).redIAdd(c),m=p.redSqr(),g=f.redIAdd(f);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(g),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},oW.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),l=s.redSqr().redISub(a).redISub(a);e=l;var u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),t=s.redMul(a.redISub(l)).redISub(u),n=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),d=this.y.redSqr(),f=this.x.redMul(d),h=this.x.redSub(c).redMul(this.x.redAdd(c));h=h.redAdd(h).redIAdd(h);var p=f.redIAdd(f),m=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(d).redISub(c);var g=d.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=h.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,n)},oW.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),o=t.redSqr(),a=n.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),l=t.redAdd(t),u=(l=l.redIAdd(l)).redMul(a),c=s.redSqr().redISub(u.redAdd(u)),d=u.redISub(c),f=a.redSqr();f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var h=s.redMul(d).redISub(f),p=n.redAdd(n).redMul(r);return this.curve.jpoint(c,h,p)},oW.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),l=r.redIAdd(r);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var u=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(l),c=t.redMul(u);c=(c=c.redIAdd(c)).redIAdd(c);var d=this.x.redMul(s).redISub(c);d=(d=d.redIAdd(d)).redIAdd(d);var f=this.y.redMul(u.redMul(l.redISub(u)).redISub(a.redMul(s)));f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var h=this.z.redAdd(a).redSqr().redISub(n).redISub(s);return this.curve.jpoint(d,f,h)},oW.prototype.mul=function(e,t){return e=new oA(e,t),this.curve._wnafMul(this,e)},oW.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},oW.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},oW.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},oW.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},eD(oY,oq),oY.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},eD(oG,oq.BasePoint),oY.prototype.decodePoint=function(e,t){return this.point(oD.toArray(e,t),1)},oY.prototype.point=function(e,t){return new oG(this,e,t)},oY.prototype.pointFromJSON=function(e){return oG.fromJSON(this,e)},oG.prototype.precompute=function(){},oG.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},oG.fromJSON=function(e,t){return new oG(e,t[0],t[1]||e.one)},oG.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},oG.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},oG.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},oG.prototype.add=function(){throw Error("Not supported on Montgomery curve")},oG.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(n),a=i.redMul(r),s=t.z.redMul(o.redAdd(a).redSqr()),l=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,l)},oG.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},oG.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},oG.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},oG.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},oG.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},oG.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var oQ=oD.assert;function oZ(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,oq.call(this,"edwards",e),this.a=new oA(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new oA(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new oA(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),oQ(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function oJ(e,t,n,r,i){oq.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new oA(t,16),this.y=new oA(n,16),this.z=r?new oA(r,16):this.curve.one,this.t=i&&new oA(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}eD(oZ,oq),oZ.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},oZ.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},oZ.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},oZ.prototype.pointFromX=function(e,t){(e=new oA(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=r.redMul(i.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw Error("invalid point");var s=a.fromRed().isOdd();return(t&&!s||!t&&s)&&(a=a.redNeg()),this.point(e,a)},oZ.prototype.pointFromY=function(e,t){(e=new oA(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=r.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(t)throw Error("invalid point");return this.point(this.zero,e)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw Error("invalid point");return a.fromRed().isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},oZ.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},eD(oJ,oq.BasePoint),oZ.prototype.pointFromJSON=function(e){return oJ.fromJSON(this,e)},oZ.prototype.point=function(e,t,n,r){return new oJ(this,e,t,n,r)},oJ.fromJSON=function(e,t){return new oJ(e,t[0],t[1],t[2])},oJ.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},oJ.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},oJ.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=r.redAdd(t),a=o.redSub(n),s=r.redSub(t),l=i.redMul(a),u=o.redMul(s),c=i.redMul(s),d=a.redMul(o);return this.curve.point(l,u,d,c)},oJ.prototype._projDbl=function(){var e,t,n,r,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),l=this.y.redSqr();if(this.curve.twisted){var u=(r=this.curve._mulA(s)).redAdd(l);this.zOne?(e=a.redSub(s).redSub(l).redMul(u.redSub(this.curve.two)),t=u.redMul(r.redSub(l)),n=u.redSqr().redSub(u).redSub(u)):(i=this.z.redSqr(),o=u.redSub(i).redISub(i),e=a.redSub(s).redISub(l).redMul(o),t=u.redMul(r.redSub(l)),n=u.redMul(o))}else r=s.redAdd(l),i=this.curve._mulC(this.z).redSqr(),o=r.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(r)).redMul(o),t=this.curve._mulC(r).redMul(s.redISub(l)),n=r.redMul(o);return this.curve.point(e,t,n)},oJ.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},oJ.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=n.redSub(t),a=i.redSub(r),s=i.redAdd(r),l=n.redAdd(t),u=o.redMul(a),c=s.redMul(l),d=o.redMul(l),f=a.redMul(s);return this.curve.point(u,c,f,d)},oJ.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),l=i.redSub(s),u=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=r.redMul(l).redMul(c);return this.curve.twisted?(t=r.redMul(u).redMul(a.redSub(this.curve._mulA(o))),n=l.redMul(u)):(t=r.redMul(u).redMul(a.redSub(o)),n=this.curve._mulC(l).redMul(u)),this.curve.point(d,t,n)},oJ.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},oJ.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},oJ.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},oJ.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},oJ.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},oJ.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},oJ.prototype.getX=function(){return this.normalize(),this.x.fromRed()},oJ.prototype.getY=function(){return this.normalize(),this.y.fromRed()},oJ.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},oJ.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},oJ.prototype.toP=oJ.prototype.normalize,oJ.prototype.mixedAdd=oJ.prototype.add,oj.base=oq,oj.short=oV,oj.mont=oY,oj.edwards=oZ;var oX={},o0={},o1={};function o2(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function o3(e){return 1===e.length?"0"+e:e}function o6(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}o1.inherits=eD,o1.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e){if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var o,a,s=e.charCodeAt(i);s<128?n[r++]=s:(s<2048?n[r++]=s>>6|192:((o=e,a=i,55296!=(64512&o.charCodeAt(a))||a<0||a+1>=o.length||56320!=(64512&o.charCodeAt(a+1)))?n[r++]=s>>12|224:(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128),n[r++]=s>>6&63|128),n[r++]=63&s|128)}}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},o1.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=o3(e[n].toString(16));return t}
1,o1.htonl=o2,o1.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=o2(i)),n+=o6(i.toString(16))}return n},o1.zero2=o3,o1.zero8=o6,o1.join32=function(e,t,n,r){var i,o=n-t;im(o%4==0);for(var a=Array(o/4),s=0,l=t;s<a.length;s++,l+=4)i="big"===r?e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]:e[l+3]<<24|e[l+2]<<16|e[l+1]<<8|e[l],a[s]=i>>>0;return a},o1.split32=function(e,t){for(var n=Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},o1.rotr32=function(e,t){return e>>>t|e<<32-t},o1.rotl32=function(e,t){return e<<t|e>>>32-t},o1.sum32=function(e,t){return e+t>>>0},o1.sum32_3=function(e,t,n){return e+t+n>>>0},o1.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},o1.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},o1.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0;e[t]=(o<r?1:0)+n+i>>>0,e[t+1]=o},o1.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},o1.sum64_lo=function(e,t,n,r){return t+r>>>0},o1.sum64_4_hi=function(e,t,n,r,i,o,a,s){var l=t;return e+n+i+a+(0+(((l=l+r>>>0)<t?1:0)+((l=l+o>>>0)<o?1:0)+((l=l+s>>>0)<s?1:0)))>>>0},o1.sum64_4_lo=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0},o1.sum64_5_hi=function(e,t,n,r,i,o,a,s,l,u){var c=t;return e+n+i+a+l+(0+(((c=c+r>>>0)<t?1:0)+((c=c+o>>>0)<o?1:0)+((c=c+s>>>0)<s?1:0)+((c=c+u>>>0)<u?1:0)))>>>0},o1.sum64_5_lo=function(e,t,n,r,i,o,a,s,l,u){return t+r+o+s+u>>>0},o1.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},o1.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},o1.shr64_hi=function(e,t,n){return e>>>n},o1.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0};var o4={};function o8(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}o4.BlockHash=o8,o8.prototype.update=function(e,t){if(e=o1.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=o1.join32(e,0,e.length-n,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},o8.prototype.digest=function(e){return this.update(this._pad()),im(null===this.pending),this._digest(e)},o8.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r};var o5={},o7={},o9=o1.rotr32;function ae(e,t,n){return e&t^e&n^t&n}o7.ft_1=function(e,t,n,r){return 0===e?t&n^~t&r:1===e||3===e?t^n^r:2===e?ae(t,n,r):void 0},o7.ch32=function(e,t,n){return e&t^~e&n},o7.maj32=ae,o7.p32=function(e,t,n){return e^t^n},o7.s0_256=function(e){return o9(e,2)^o9(e,13)^o9(e,22)},o7.s1_256=function(e){return o9(e,6)^o9(e,11)^o9(e,25)},o7.g0_256=function(e){return o9(e,7)^o9(e,18)^e>>>3},o7.g1_256=function(e){return o9(e,17)^o9(e,19)^e>>>10};var at=o1.rotl32,an=o1.sum32,ar=o1.sum32_5,ai=o7.ft_1,ao=o4.BlockHash,aa=[1518500249,1859775393,2400959708,3395469782];function as(){if(!(this instanceof as))return new as;ao.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}o1.inherits(as,ao),as.blockSize=512,as.outSize=160,as.hmacStrength=80,as.padLength=64,as.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=at(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],a=this.h[2],s=this.h[3],l=this.h[4];for(r=0;r<n.length;r++){var u=~~(r/20),c=ar(at(i,5),ai(u,o,a,s),l,n[r],aa[u]);l=s,s=a,a=at(o,30),o=i,i=c}this.h[0]=an(this.h[0],i),this.h[1]=an(this.h[1],o),this.h[2]=an(this.h[2],a),this.h[3]=an(this.h[3],s),this.h[4]=an(this.h[4],l)},as.prototype._digest=function(e){return"hex"===e?o1.toHex32(this.h,"big"):o1.split32(this.h,"big")};var al=o1.sum32,au=o1.sum32_4,ac=o1.sum32_5,ad=o7.ch32,af=o7.maj32,ah=o7.s0_256,ap=o7.s1_256,am=o7.g0_256,ag=o7.g1_256,av=o4.BlockH
vendor: 3,869 bytes, line 1
1ash,ab=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function ay(){if(!(this instanceof ay))return new ay;av.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=ab,this.W=Array(64)}function aA(){if(!(this instanceof aA))return new aA;ay.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}o1.inherits(ay,av),ay.blockSize=512,ay.outSize=256,ay.hmacStrength=192,ay.padLength=64,ay.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=au(ag(n[r-2]),n[r-7],am(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],a=this.h[2],s=this.h[3],l=this.h[4],u=this.h[5],c=this.h[6],d=this.h[7];for(im(this.k.length===n.length),r=0;r<n.length;r++){var f=ac(d,ap(l),ad(l,u,c),this.k[r],n[r]),h=al(ah(i),af(i,o,a));d=c,c=u,u=l,l=al(s,f),s=a,a=o,o=i,i=al(f,h)}this.h[0]=al(this.h[0],i),this.h[1]=al(this.h[1],o),this.h[2]=al(this.h[2],a),this.h[3]=al(this.h[3],s),this.h[4]=al(this.h[4],l),this.h[5]=al(this.h[5],u),this.h[6]=al(this.h[6],c),this.h[7]=al(this.h[7],d)},ay.prototype._digest=function(e){return"hex"===e?o1.toHex32(this.h,"big"):o1.split32(this.h,"big")},o1.inherits(aA,ay),aA.blockSize=512,aA.outSize=224,aA.hmacStrength=192,aA.padLength=64,aA.prototype._digest=function(e){return"hex"===e?o1.toHex32(this.h.slice(0,7),"big"):o1.split32(this.h.slice(0,7),"big")};var aw=o1.rotr64_hi,a_=o1.rotr64_lo,aE=o1.shr64_hi,aS=o1.shr64_lo,ak=o1.sum64,aM=o1.sum64_hi,aC=o1.sum64_lo,ax=o1.sum64_4_hi,aR=o1.sum64_4_lo,aI=o1.sum64_5_hi,aT=o1.sum64_5_lo,aO=o4.BlockHash,aP=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
11126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function aL(){if(!(this instanceof aL))return new aL;aO.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=aP,this.W=Array(160)}function aN(){if(!(this instanceof aN))return new aN;aL.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}o1.inherits(aL,aO),aL.blockSize=1024,aL.outSize=512,aL.hmacStrength=192,aL.padLength=128,aL.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=function(e,t){var n=aw(e,t,19)^aw(t,e,29)^aE(e,t,6);return n<0&&(n+=4294967296),n}(n[r-4],n[r-3]),o=function(e,t){var n=a_(e,t,19)^a_(t,e,29)^aS(e,t,6);return n<0&&(n+=4294967296),n}(n[r-4],n[r-3]),a=n[r-14],s=n[r-13],l=function(e,t){var n=aw(e,t,1)^aw(e,t,8)^aE(e,t,7);return n<0&&(n+=4294967296),n}(n[r-30],n[r-29]),u=function(e,t){var n=a_(e,t,1)^a_(e,t,8)^aS(e,t,7);return n<0&&(n+=4294967296),n}(n[r-30],n[r-29]),c=n[r-32],d=n[r-31];n[r]=ax(i,o,a,s,l,u,c,d),n[r+1]=aR(i,o,a,s,l,u,c,d)}},aL.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],o=this.h[2],a=this.h[3],s=this.h[4],l=this.h[5],u=this.h[6],c=this.h[7],d=this.h[8],f=this.h[9],h=this.h[10],p=this.h[11],m=this.h[12],g=this.h[13],v=this.h[14],b=this.h[15];im(this.k.length===n.length);for(var y=0;y<n.length;y+=2){var A=v,w=b,_=function(e,t){var n=aw(e,t,14)^aw(e,t,18)^aw(t,e,9);return n<0&&(n+=4294967296),n}(d,f),E=function(e,t){var n=a_(e,t,14)^a_(e,t,18)^a_(t,e,9);return n<0&&(n+=4294967296),n}(d,f),S=function(e,t,n,r,i){var o=e&n^~e&i;return o<0&&(o+=4294967296),o}(d,0,h,0,m),k=function(e,t,n,r,i,o){var a=t&r^~t&o;return a<0&&(a+=4294967296),a}(0,f,0,p,0,g),M=this.k[y],C=this.k[y+1],x=n[y],R=n[y+1],I=aI(A,w,_,E,S,k,M,C,x,R),T=aT(A,w,_,E,S,k,M,C,x,R);A=function(e,t){var n=aw(e,t,28)^aw(t,e,2)^aw(t,e,7);return n<0&&(n+=4294967296),n}(r,i);var O=aM(A,w=function(e,t){var n=a_(e,t,28)^a_(t,e,2)^a_(t,e,7);return n<0&&(n+=4294967296),n}(r,i),_=function(e,t,n,r,i){var o=e&n^e&i^n&i;return o<0&&(o+=4294967296),o}(r,0,o,0,s),E=function(e,t,n,r,i,o){var a=t&r^t&o^r&o;return a<0&&(a+=4294967296),a}(0,i,0,a,0,l)),P=aC(A,w,_,E);v=m,b=g,m=h,g=p,h=d,p=f,d=aM(u,c,I,T),f=aC(c,c,I,T),u=s,c=l,s=o,l=a,o=r,a=i,r=aM(I,T,O,P),i=aC(I,T,O,P)}ak(this.h,0,r,i),ak(this.h,2,o,a),ak(this.h,4,s,l),ak(this.h,6,u,c),ak(this.h,8,d,f),ak(this.h,10,h,p),ak(this.h,12,m,g),ak(this.h,14,v,b)},aL.prototype._digest=function(e){return"hex"===e?o1.toHex32(this.h,"big"):o1.split32(this.h,"big")},o1.inherits(aN,aL),aN.blockSize=1024,aN.outSize=384,aN.hmacStrength=192,aN.padLength=128,aN.prototype._digest=function(e){return"hex"===e?o1.toHex32(this.h.slice(0,12),"big"):o1.split32(this.h.slice(0,12),"big")},o5.sha1=as,o5.sha224=aA,o5.sha256=ay,o5.sha384=aN,o5.sha512=aL;var aD={},aB=o1.rotl32,aj=o1.sum32,aF=o1.sum32_3,az=o1.sum32_4,aU=o4.BlockHash;function aq(){if(!(this instanceof aq))return new aq;aU.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function aK(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}o1.inherits(aq,aU),aD.ripemd160=aq,aq.blockSize=512,aq.outSize=160,aq.hmacStrength=192,aq.padLength=64,aq.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],o=this.h[3],a=this.h[4],s=n,l=r,u=i,c=o,d=a,f=0;f<80;f++){var h,p,m=aj(aB(az(n,aK(f,r,i,o),e[aH[f]+t],(h=f)<=15?0:h<=31?1518500249:h<=47?1859775393:h<=63?2400959708:2840853838),a$[f]),a);n=a,a=o,o=aB(i,10),i=r,r=m,m=aj(aB(az(s,aK(79-f,l,u,c),e[aV[f]+t],(p=f)<=15?1352829926:p<=31?1548603684:p<=47?1836072691:p<=63?2053994217:0),aW[f]),d),s=d,d=c,c=aB(u,10),u=l,l=m}m=aF(this.h[1],i,c),this.h[1]=aF(this.h[2],o,d),this.h[2]=aF(this.h[3],a,s),this.h[3]=aF(this.h[4],n,l),this.h[4]=aF(this.h[0],r,u),this.h[0]=m},aq.prototype._digest=function(e){return"hex"===e?o1.toHex32(this.h,"little"):o1.split32(this.h,"little")};var aH=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],aV=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],a$=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],aW=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];function aY(e,t,n){if(!(this instanceof aY))return new aY(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(o1.toArray(t,n))}function aG(e){if(!(this instanceof aG))return new aG(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;
vendor: 5,251 bytes, line 1
1var t=oB.toArray(e.entropy,e.entropyEnc||"hex"),n=oB.toArray(e.nonce,e.nonceEnc||"hex"),r=oB.toArray(e.pers,e.persEnc||"hex");im(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}aY.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),im(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},aY.prototype.update=function(e,t){return this.inner.update(e,t),this},aY.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)},o0.utils=o1,o0.common=o4,o0.sha=o5,o0.ripemd=aD,o0.hmac=aY,o0.sha1=o0.sha.sha1,o0.sha256=o0.sha.sha256,o0.sha224=o0.sha.sha224,o0.sha384=o0.sha.sha384,o0.sha512=o0.sha.sha512,o0.ripemd160=o0.ripemd.ripemd160,function(e){var t,n=oD.assert;function r(e){"short"===e.type?this.curve=new oj.short(e):"edwards"===e.type?this.curve=new oj.edwards(e):this.curve=new oj.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function i(t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var i=new r(n);return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:i}),i}})}e.PresetCurve=r,i("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o0.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),i("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o0.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),i("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o0.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),i("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o0.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),i("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o0.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),i("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o0.sha256,gRed:!1,g:["9"]}),i("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o0.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{t=sl?ss:(sl=1,s
vendor: 26,128 bytes, line 1
1s={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}
1)}catch(e){t=void 0}i("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o0.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",t]})}(oX),aG.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},aG.prototype._hmac=function(){return new o0.hmac(this.hash,this.K)},aG.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([
vendor: 6,572 bytes, line 1
11]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},aG.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=oB.toArray(e,t),n=oB.toArray(n,r),im(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},aG.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=oB.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,e);return this._update(n),this._reseed++,oB.encode(o,t)};var aQ=oD.assert;function aZ(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}aZ.fromPublic=function(e,t,n){return t instanceof aZ?t:new aZ(e,{pub:t,pubEnc:n})},aZ.fromPrivate=function(e,t,n){return t instanceof aZ?t:new aZ(e,{priv:t,privEnc:n})},aZ.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},aZ.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},aZ.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},aZ.prototype._importPrivate=function(e,t){this.priv=new oA(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},aZ.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?aQ(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||aQ(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},aZ.prototype.derive=function(e){return e.validate()||aQ(e.validate(),"public point not validated"),e.mul(this.priv).getX()},aZ.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},aZ.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},aZ.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var aJ=oD.assert;function aX(e,t){if(e instanceof aX)return e;this._importDER(e,t)||(aJ(e.r&&e.s,"Signature without r or s"),this.r=new oA(e.r,16),this.s=new oA(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function a0(){this.place=0}function a1(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=t.place;o<r;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function a2(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function a3(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}aX.prototype._importDER=function(e,t){e=oD.toArray(e,t);var n=new a0;if(48!==e[n.place++])return!1;var r=a1(e,n);if(!1===r||r+n.place!==e.length||2!==e[n.place++])return!1;var i=a1(e,n);if(!1===i)return!1;var o=e.slice(n.place,i+n.place);if(n.place+=i,2!==e[n.place++])return!1;var a=a1(e,n);if(!1===a||e.length!==a+n.place)return!1;var s=e.slice(n.place,a+n.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new oA(o),this.s=new oA(s),this.recoveryParam=null,!0},aX.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=a2(t),n=a2(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];a3(r,t.length),(r=r.concat(t)).push(2),a3(r,n.length);var i=r.concat(n),o=[48];return a3(o,i.length),o=o.concat(i),oD.encode(o,e)};var a6=oD.assert,a4=oD.parseBytes,a8=oD.cachedProperty;function a5(e,t){this.eddsa=e,this._secret=a4(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a4(t.pub)}a5.fromPublic=function(e,t){return t instanceof a5?t:new a5(e,{pub:t})},a5.fromSecret=function(e,t){return t instanceof a5?t:new a5(e,{secret:t})},a5.prototype.secret=function(){return this._secret},a8(a5,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a8(a5,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a8(a5,"privBytes",function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r}),a8(a5,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a8(a5,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a8(a5,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a5.prototype.sign=function(e){return a6(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},a5.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},a5.prototype.getSecret=function(e){return a6(this._secret,"KeyPair is public only"),oD.encode(this.secret(),e)},a5.prototype.getPublic=function(e){return oD.encode(this.pubBytes(),e)};var a7=oD.assert,a9=oD.cachedProperty,se=oD.parseBytes;function st(e,t){this.eddsa=e,"object"!=typeof t&&(t=se(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a7(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof oA&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a9(st,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a9(st,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a9(st,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a9(st,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),st.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},st.prototype.toHex=function(){return oD.encode(this.toBytes(),"hex").toUpperCase()};var sn=oD.assert,sr=oD.parseBytes;function si(e){if(sn("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof si))return new si(e);e=oX[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=o0.sha512}function so(){return sd||(sd=1,oL.version=oN.version,oL.utils=oD,oL.rand=o_(),oL.curve=oj,oL.curves=oX,oL.ec=function(){if(sc)return su;sc=1;var e=o_(),t=oD.assert;function n(e){if(!(this instanceof n))return new n(e);
1"string"==typeof e&&(t(Object.prototype.hasOwnProperty.call(oX,e),"Unknown curve "+e),e=oX[e]),e instanceof oX.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}return su=n,n.prototype.keyPair=function(e){return new aZ(this,e)},n.prototype.keyFromPrivate=function(e,t){return aZ.fromPrivate(this,e,t)},n.prototype.keyFromPublic=function(e,t){return aZ.fromPublic(this,e,t)},n.prototype.genKeyPair=function(t){t||(t={});for(var n=new aG({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||e(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new oA(2));;){var o=new oA(n.generate(r));if(!(o.cmp(i)>0))return o.iaddn(1),this.keyFromPrivate(o)}},n.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},n.prototype.sign=function(e,t,n,r){"object"==typeof n&&(r=n,n=null),r||(r={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new oA(e,16));for(var i=this.n.byteLength(),o=t.getPrivate().toArray("be",i),a=e.toArray("be",i),s=new aG({hash:this.hash,entropy:o,nonce:a,pers:r.pers,persEnc:r.persEnc||"utf8"}),l=this.n.sub(new oA(1)),u=0;;u++){var c=r.k?r.k(u):new oA(s.generate(this.n.byteLength()));if(!(0>=(c=this._truncateToN(c,!0)).cmpn(1)||c.cmp(l)>=0)){var d=this.g.mul(c);if(!d.isInfinity()){var f=d.getX(),h=f.umod(this.n);if(0!==h.cmpn(0)){var p=c.invm(this.n).mul(h.mul(t.getPrivate()).iadd(e));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(d.getY().isOdd()?1:0)|(0!==f.cmp(h)?2:0);return r.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new aX({r:h,s:p,recoveryParam:m})}}}}}},n.prototype.verify=function(e,t,n,r){e=this._truncateToN(new oA(e,16)),n=this.keyFromPublic(n,r);var i=(t=new aX(t,"hex")).r,o=t.s;if(0>i.cmpn(1)||i.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var a,s=o.invm(this.n),l=s.mul(e).umod(this.n),u=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(l,n.getPublic(),u)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(l,n.getPublic(),u)).isInfinity()&&0===a.getX().umod(this.n).cmp(i)},n.prototype.recoverPubKey=function(e,n,r,i){t((3&r)===r,"The recovery param is more than two bits"),n=new aX(n,i);var o=this.n,a=new oA(e),s=n.r,l=n.s,u=1&r,c=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw Error("Unable to find sencond key candinate");s=c?this.curve.pointFromX(s.add(this.curve.n),u):this.curve.pointFromX(s,u);var d=n.r.invm(o),f=o.sub(a).mul(d).umod(o),h=l.mul(d).umod(o);return this.g.mulAdd(f,s,h)},n.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new aX(t,r)).recoveryParam)return t.recoveryParam;for(var i,o=0;o<4;o++){try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(n))return o}throw Error("Unable to find valid recovery factor")},su}(),oL.eddsa=si),oL}si.prototype.sign=function(e,t){e=sr(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),o=this.encodePoint(i),a=this.hashInt(o,n.pubBytes(),e).mul(n.priv()),s=r.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},si.prototype.verify=function(e,t,n){e=sr(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(o)},si.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return oD.intFromLE(e.digest()).umod(this.curve.n)},si.prototype.keyFromPublic=function(e){return a5.fromPublic(this,e)},si.prototype.keyFromSecret=function(e){return a5.fromSecret(this,e)},si.prototype.makeSignature=function(e){return e instanceof st?e:new st(this,e)},si.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},si.prototype.decodePoint=function(e){var t=(e=oD.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),i=oD.intFromLE(n);return this.curve.pointFromY(i,r)},si.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},si.prototype.decodeInt=function(e){return oD.intFromLE(e)},si.prototype.isPoint=function(e){return e instanceof this.pointClass};var sa={exports:{}};!function(e,t){function n(e,t){if(!e)throw Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}
vendor: 4,453 bytes, line 1
1"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{c="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:er.Buffer}catch(e){}function o(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function a(e,t,n){var r=o(e,n);return n-1>=t&&(r|=o(e,n-1)<<4),r}function s(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),l=t;l<s;l++){var u=e.charCodeAt(l)-48;o*=i,a=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&a<i,"Invalid character"),o+=a}return o}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return 0>e.cmp(t)?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},i.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},i.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,s=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=a(e,t,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=a(e,t,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,l=Math.min(o,o-a)+n,u=0,c=n;c<l;c+=r)u=s(e,c,c+r,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=s(e,c,e.length,t),c=0;c<a;c++)d*=t;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},i.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype._move=function(e){l(e,this)},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){i.prototype.inspect=u}else i.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var c,d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 13,248 bytes, line 1
1777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var u=1;u<r;u++){for(var c=l>>>26,d=67108863&l,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++){var p=u-h|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}n.words[u]=0|d,l=0|c}return 0!==l?n.words[u]=0|l:n.length--,n._strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?d[6-l.length]+l+r:l+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],c=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(c).toString(e);r=(p=p.idivn(c)).isZero()?m+r:d[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},c&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(c,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=e.allocUnsafe?e.allocUnsafe(o):new e(o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;e[n++]=255&a,n<e.length&&(e[n++]=a>>8&255),n<e.length&&(e[n++]=a>>16&255),6===o?(n<e.length&&(e[n++]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},i.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;e[n--]=255&a,n>=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},i.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this._strip()},i.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this._strip()},i.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},i.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(t=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<n.length;a++)o=(t=(0|n.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,n){var r,i,o,a=e.words,s=t.words,l=n.words,u=0,c=0|a[0],d=8191&c,f=c>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,b=g>>>13,y=0|a[3],A=8191&y,w=y>>>13,_=0|a[4],E=8191&_,S=_>>>13,k=0|a[5],M=8191&k,C=k>>>13,x=0|a[6],R=8191&x,I=x>>>13,T=0|a[7],O=8191&T,P=T>>>13,L=0|a[8],N=8191&L,D=L>>>13,B=0|a[9],j=8191&B,F=B>>>13,z=0|s[0],U=8191&z,q=z>>>13,K=0|s[1],H=8191&K,V=K>>>13,$=0|s[2],W=8191&$,Y=$>>>13,G=0|s[3],Q=8191&G,Z=G>>>13,J=0|s[4],X=8191&J,ee=J>>>13,et=0|s[5],en=8191&et,er=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],el=8191&es,eu=es>>>13,ec=0|s[8],ed=8191&ec,ef=ec>>>13,eh=0|s[9],ep=8191&eh,em=eh>>>13;n.negative=e.negative^t.negative,n.length=19;var eg=(u+(r=Math.imul(d,U))|0)+((8191&(i=(i=Math.imul(d,q))+Math.imul(f,U)|0))<<13)|0;u=((o=Math.imul(f,q))+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,r=Math.imul(p,U),i=(i=Math.imul(p,q))+Math.imul(m,U)|0,o=Math.imul(m,q);var ev=(u+(r=r+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(f,H)|0))<<13)|0;u=((o=o+Math.imul(f,V)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,r=Math.imul(v,U),i=(i=Math.imul(v,q))+Math.imul(b,U)|0,o=Math.imul(b,q),r=r+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,V)|0;var eb=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,W)|0))<<13)|0;u=((o=o+Math.imul(f,Y)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,r=Math.imul(A,U),i=(i=Math.imul(A,q))+Math.imul(w,U)|0,o=Math.imul(w,q),r=r+Math.imul(v,H)|0,i=(i=i+Math.imul(v,V)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,V)|0,r=r+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,Y)|0;var ey=(u+(r=r+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,Q)|0))<<13)|0;u=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,r=Math.imul(E,U),i=(i=Math.imul(E,q))+Math.imul(S,U)|0,o=Math.imul(S,q),r=r+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(w,H)|0,o=o+Math.imul(w,V)|0,r=r+Math.imul(v,W)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,Y)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Z)|0;var eA=(u+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,X)|0))<<13)|0;u=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,r=Math.imul(M,U),i=(i=Math.imul(M,q))+Math.imul(C,U)|0,o=Math.imul(C,q),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,Y)|0,r=r+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,Z)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var ew=(u+(r=r+Math.imul(d,en)|0)|0)+((8191&(i=(i=i+Math.imul(d,er)|0)+Math.imul(f,en)|0))<<13)|0;u=((o=o+Math.imul(f,er)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,r=Math.imul(R,U),i=(i=Math.imul(R,q))+Math.imul(I,U)|0,o=Math.imul(I,q),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,V)|0)+Math.imul(C,H)|0,o=o+Math.imul(C,V)|0,r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,r=r+Math.imul(p,en)|0,i=(i=i+Math.imul(p,er)|0)+Math.imul(m,en)|0,o=o+Math.imul(m,er)|0;var e_=(u+(r=r+Math.imul(d,eo)|0)|0)+((8191&(i=(i=i+Math.imul(d,ea)|0)+Math.imul(f,eo)|0))<<13)|0;u=((o=o+Math.imul(f,ea)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,r=Math.imul(O,U),i=(i=Math.imul(O,q))+Math.imul(P,U)|0,o=Math.imul(P,q),r=r+Math.imul(R,H)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,V)|0,r=r+Math.imul(M,W)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,Y)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,ee)|0,r=r+Math.imul(v,en)|0,i=(i=i+Math.imul(v,er)|0)+Math.imul(b,en)|0,o=o+Math.imul(b,er)|0,r=r+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,ea)|0;var eE=(u+(r=r+Math.imul(d,el)|0)|0)+((8191&(i=(i=i+Math.imul(d,eu)|0)+Math.imul(f,el)|0))<<13)|0;u=((o=o+Math.imul(f,eu)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,r=Math.imul(N,U),i=(i=Math.imul(N,q))+Math.imul(D,U)|0,o=Math.imul(D,q),r=r+Math.imul(O,H)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(P,H)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(A,en)|0,i=(i=i+Math.imul(A,er)|0)+Math.imul(w,en)|0,o=o+Math.imul(w,er)|0,r=r+Math.imul(v,eo)|0,i=(i=i+Math.imul(v,ea)|0)+Math.imul(b,eo)|0,o=o+Math.imul(b,ea)|0,r=r+Math.imul(p,el)|0,i=(i=i+Math.imul(p,eu)|0)+Math.imul(m,el)|0,o=o+Math.imul(m,eu)|0;var eS=(u+(r=r+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(f,ed)|0))<<13)|0;u=((o=o+Math.imul(f,ef)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,r=Math.imul(j,U),i=(i=Math.imul(j,q))+Math.imul(F,U)|0,o=Math.imul(F,q),r=r+Math.imul(N,H)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(D,H)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,Y)|0,r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,Z)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,r=r+Math.imul(E,en)|0,i=(i=i+Math.imul(E,er)|0)+Math.imul(S,en)|0,o=o+Math.imul(S,er)|0,r=r+Math.imul(A,eo)|0,i=(i=i+Math.imul(A,ea)|0)+Math.imul(w,eo)|0,o=o+Math.imul(w,ea)|0,r=r+Math.imul(v,el)|0,i=(i=i+Math.imul(v,eu)|0)+Math.imul(b,el)|0,o=o+Math.imul(b,eu)|0,r=r+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ed)|0,o=o+Math.imul(m,ef)|0;var ek=(u+(r=r+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(f,ep)|0))<<13)|0;u=((o=o+Math.imul(f,em)|0)+(i>>>13)|0)+(ek>>>
vendor: 2,339 bytes, line 1
126)|0,ek&=67108863,r=Math.imul(j,H),i=(i=Math.imul(j,V))+Math.imul(F,H)|0,o=Math.imul(F,V),r=r+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(D,W)|0,o=o+Math.imul(D,Y)|0,r=r+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,Z)|0,r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(M,en)|0,i=(i=i+Math.imul(M,er)|0)+Math.imul(C,en)|0,o=o+Math.imul(C,er)|0,r=r+Math.imul(E,eo)|0,i=(i=i+Math.imul(E,ea)|0)+Math.imul(S,eo)|0,o=o+Math.imul(S,ea)|0,r=r+Math.imul(A,el)|0,i=(i=i+Math.imul(A,eu)|0)+Math.imul(w,el)|0,o=o+Math.imul(w,eu)|0,r=r+Math.imul(v,ed)|0,i=(i=i+Math.imul(v,ef)|0)+Math.imul(b,ed)|0,o=o+Math.imul(b,ef)|0;var eM=(u+(r=r+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;u=((o=o+Math.imul(m,em)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,r=Math.imul(j,W),i=(i=Math.imul(j,Y))+Math.imul(F,W)|0,o=Math.imul(F,Y),r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,Z)|0,r=r+Math.imul(O,X)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,r=r+Math.imul(R,en)|0,i=(i=i+Math.imul(R,er)|0)+Math.imul(I,en)|0,o=o+Math.imul(I,er)|0,r=r+Math.imul(M,eo)|0,i=(i=i+Math.imul(M,ea)|0)+Math.imul(C,eo)|0,o=o+Math.imul(C,ea)|0,r=r+Math.imul(E,el)|0,i=(i=i+Math.imul(E,eu)|0)+Math.imul(S,el)|0,o=o+Math.imul(S,eu)|0,r=r+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(w,ed)|0,o=o+Math.imul(w,ef)|0;var eC=(u+(r=r+Math.imul(v,ep)|0)|0)+((8191&(i=(i=i+Math.imul(v,em)|0)+Math.imul(b,ep)|0))<<13)|0;u=((o=o+Math.imul(b,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,r=Math.imul(j,Q),i=(i=Math.imul(j,Z))+Math.imul(F,Q)|0,o=Math.imul(F,Z),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(O,en)|0,i=(i=i+Math.imul(O,er)|0)+Math.imul(P,en)|0,o=o+Math.imul(P,er)|0,r=r+Math.imul(R,eo)|0,i=(i=i+Math.imul(R,ea)|0)+Math.imul(I,eo)|0,o=o+Math.imul(I,ea)|0,r=r+Math.imul(M,el)|0,i=(i=i+Math.imul(M,eu)|0)+Math.imul(C,el)|0,o=o+Math.imul(C,eu)|0,r=r+Math.imul(E,ed)|0,i=(i=i+Math.imul(E,ef)|0)+Math.imul(S,ed)|0,o=o+Math.imul(S,ef)|0;var ex=(u+(r=r+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(w,ep)|0))<<13)|0;u=((o=o+Math.imul(w,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,r=Math.imul(j,X),i=(i=Math.imul(j,ee))+Math.imul(F,X
vendor: 6,031 bytes, line 1
1)|0,o=Math.imul(F,ee),r=r+Math.imul(N,en)|0,i=(i=i+Math.imul(N,er)|0)+Math.imul(D,en)|0,o=o+Math.imul(D,er)|0,r=r+Math.imul(O,eo)|0,i=(i=i+Math.imul(O,ea)|0)+Math.imul(P,eo)|0,o=o+Math.imul(P,ea)|0,r=r+Math.imul(R,el)|0,i=(i=i+Math.imul(R,eu)|0)+Math.imul(I,el)|0,o=o+Math.imul(I,eu)|0,r=r+Math.imul(M,ed)|0,i=(i=i+Math.imul(M,ef)|0)+Math.imul(C,ed)|0,o=o+Math.imul(C,ef)|0;var eR=(u+(r=r+Math.imul(E,ep)|0)|0)+((8191&(i=(i=i+Math.imul(E,em)|0)+Math.imul(S,ep)|0))<<13)|0;u=((o=o+Math.imul(S,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,r=Math.imul(j,en),i=(i=Math.imul(j,er))+Math.imul(F,en)|0,o=Math.imul(F,er),r=r+Math.imul(N,eo)|0,i=(i=i+Math.imul(N,ea)|0)+Math.imul(D,eo)|0,o=o+Math.imul(D,ea)|0,r=r+Math.imul(O,el)|0,i=(i=i+Math.imul(O,eu)|0)+Math.imul(P,el)|0,o=o+Math.imul(P,eu)|0,r=r+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ed)|0,o=o+Math.imul(I,ef)|0;var eI=(u+(r=r+Math.imul(M,ep)|0)|0)+((8191&(i=(i=i+Math.imul(M,em)|0)+Math.imul(C,ep)|0))<<13)|0;u=((o=o+Math.imul(C,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,r=Math.imul(j,eo),i=(i=Math.imul(j,ea))+Math.imul(F,eo)|0,o=Math.imul(F,ea),r=r+Math.imul(N,el)|0,i=(i=i+Math.imul(N,eu)|0)+Math.imul(D,el)|0,o=o+Math.imul(D,eu)|0,r=r+Math.imul(O,ed)|0,i=(i=i+Math.imul(O,ef)|0)+Math.imul(P,ed)|0,o=o+Math.imul(P,ef)|0;var eT=(u+(r=r+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;u=((o=o+Math.imul(I,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,r=Math.imul(j,el),i=(i=Math.imul(j,eu))+Math.imul(F,el)|0,o=Math.imul(F,eu),r=r+Math.imul(N,ed)|0,i=(i=i+Math.imul(N,ef)|0)+Math.imul(D,ed)|0,o=o+Math.imul(D,ef)|0;var eO=(u+(r=r+Math.imul(O,ep)|0)|0)+((8191&(i=(i=i+Math.imul(O,em)|0)+Math.imul(P,ep)|0))<<13)|0;u=((o=o+Math.imul(P,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863,r=Math.imul(j,ed),i=(i=Math.imul(j,ef))+Math.imul(F,ed)|0,o=Math.imul(F,ef);var eP=(u+(r=r+Math.imul(N,ep)|0)|0)+((8191&(i=(i=i+Math.imul(N,em)|0)+Math.imul(D,ep)|0))<<13)|0;u=((o=o+Math.imul(D,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863;var eL=(u+(r=Math.imul(j,ep))|0)+((8191&(i=(i=Math.imul(j,em))+Math.imul(F,ep)|0))<<13)|0;return u=((o=Math.imul(F,em))+(i>>>13)|0)+(eL>>>26)|0,eL&=67108863,l[0]=eg,l[1]=ev,l[2]=eb,l[3]=ey,l[4]=eA,l[5]=ew,l[6]=e_,l[7]=eE,l[8]=eS,l[9]=ek,l[10]=eM,l[11]=eC,l[12]=ex,l[13]=eR,l[14]=eI,l[15]=eT,l[16]=eO,l[17]=eP,l[18]=eL,0!==u&&(l[19]=u,n.length++),n};function g(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,l=Math.min(o,t.length-1),u=Math.max(0,o-e.length+1);u<=l;u++){var c=o-u,d=(0|e.words[c])*(0|t.words[u]),f=67108863&d;s=67108863&(f=f+s|0),i+=(a=(a=a+(d/67108864|0)|0)+(f>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}Math.imul||(m=p),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?p(this,e,t):g(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=Array(this.length+e.length),g(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(67108863&o)+(67108863&r);r>>=26,r+=(o/67108864|0)+(a>>>26),this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var o=n.sqr();r<t.length;r++,o=o.sqr())0!==t[r]&&(n=n.mul(o));return n},i.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<r;this.words[t]=l|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},i.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var i,o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o;if(i-=a,i=Math.max(0,i),r){for(var l=0;l<a;l++)r.words[l]=this.words[l];r.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var c=0|this.words[l];this.words[l]=u<<26-o|c>>>o,u=c&s}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<<t)},i.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<<t),this._strip())},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?
vendor: 6,100 bytes, line 1
1(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var l=(0|e.words[i])*t;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,l=r.length-o.length;if("mod"!==t){(s=new i(null)).length=l+1,s.words=Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var c=r.clone()._ishlnsubmul(o,1,l);0===c.negative&&(r=c,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var f=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(f=Math.min(f/a|0,67108863),r._ishlnsubmul(o,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){var o,a,s;return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=67108864%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),l=new i(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(l)):(r.isub(t),s.isub(o),l.isub(a))}return{a:s,b:l,gcd:r.iushln(u)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),l=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0==(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,f=1;0==(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return 0>(o=0===t.cmpn(1)?a:s).cmpn(0)&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;
vendor: 10,235 bytes, line 1
1if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return -1===this.cmpn(e)},i.prototype.lt=function(e){return -1===this.cmp(e)},i.prototype.lten=function(e){return 0>=this.cmpn(e)},i.prototype.lte=function(e){return 0>=this.cmp(e)},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new E(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new i(null);return e.words=Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength();while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(y,b),y.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(A,b),r(w,b),r(_,b),_.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){var t;if(v[e])return v[e];if("k256"===e)t=new y;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw Error("Unknown prime "+e);t=new _}return v[e]=t,t},E.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return 0>n.cmpn(0)&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return 0>n.cmpn(0)&&n.iadd(this.m),n},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var d=this.pow(c,o),f=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<p);var v=this.pow(d,new i(1).iushln(p-g-1));f=f.redMul(v),d=v.redSqr(),h=h.redMul(d),p=g}return f},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=Array(16);n[0]=new i(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var o=n[0],a=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),r=t.length-1;r>=0;r--){for(var u=t.words[r],c=l-1;c>=0;c--){var d=u>>c&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===r&&0===c)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}l=26}return o},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new S(e)},r(S,E),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):0>o.cmpn(0)&&(a=o.iadd(this.m)),a._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(sa,l);var ss,sl,su,sc,sd,sf,sh=sa.exports,sp={},sm={},sg={},sv={},sb=er.Buffer,sy={};for(sf in er)er.hasOwnProperty(sf)&&"SlowBuffer"!==sf&&"Buffer"!==sf&&(sy[sf]=er[sf]);var sA=sy.Buffer={};for(sf in sb)sb.hasOwnProperty(sf)&&"allocUnsafe"!==sf&&"allocUnsafeSlow"!==sf&&(sA[sf]=sb[sf]);if(sy.Buffer.prototype=sb.prototype,sA.from&&sA.from!==Uint8Array.from||(sA.from=function(e,t,n){if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return sb(e,t,n)}),sA.alloc||(sA.alloc=function(e,t,n){if("number"!=typeof e)throw TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>
1=2*1073741824)throw RangeError('The value "'+e+'" is invalid for option "size"');var r=sb(e);return t&&0!==t.length?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r}),!sy.kStringMaxLength)try{sy.kStringMaxLength=ex.binding("buffer").kStringMaxLength}catch(e){}sy.constants||(sy.constants={MAX_LENGTH:sy.kMaxLength},sy.kStringMaxLength&&(sy.constants.MAX_STRING_LENGTH=sy.kStringMaxLength));var sw={};function s_(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function sE(e,t){this.path=e,this.rethrow(t)}sw.Reporter=s_,s_.prototype.isError=function(e){return e instanceof sE},s_.prototype.save=function(){let e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},s_.prototype.restore=function(e){let t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},s_.prototype.enterKey=function(e){return this._reporterState.path.push(e)},s_.prototype.exitKey=function(e){let t=this._reporterState;t.path=t.path.slice(0,e-1)},s_.prototype.leaveKey=function(e,t,n){let r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},s_.prototype.path=function(){return this._reporterState.path.join("/")},s_.prototype.enterObject=function(){let e=this._reporterState,t=e.obj;return e.obj={},t},s_.prototype.leaveObject=function(e){let t=this._reporterState,n=t.obj;return t.obj=e,n},s_.prototype.error=function(e){let t;let n=this._reporterState,r=e instanceof sE;if(t=r?e:new sE(n.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},s_.prototype.wrapResult=function(e){let t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},eD(sE,Error),sE.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,sE),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this};var sS={};let sk=sw.Reporter,sM=sy.Buffer;function sC(e,t){sk.call(this,t),sM.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function sx(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return sx.isEncoderBuffer(e)||(e=new sx(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=sM.byteLength(e);else{if(!sM.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}eD(sC,sk),sS.DecoderBuffer=sC,sC.isDecoderBuffer=function(e){return e instanceof sC||"object"==typeof e&&sM.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},sC.prototype.save=function(){return{offset:this.offset,reporter:sk.prototype.save.call(this)}},sC.prototype.restore=function(e){let t=new sC(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,sk.prototype.restore.call(this,e.reporter),t},sC.prototype.isEmpty=function(){return this.offset===this.length},sC.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},sC.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");let n=new sC(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},sC.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},sS.EncoderBuffer=sx,sx.isEncoderBuffer=function(e){return e instanceof sx||"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},sx.prototype.join=function(e,t){return e||(e=sM.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,t),t+=n.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):sM.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e};let sR=sw.Reporter,sI=sS.EncoderBuffer,sT=sS.DecoderBuffer,sO=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],sP=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(sO);function sL(e,t,n){let r={};this._baseState=r,r.name=n,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}let sN=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];sL.prototype.clone=function(){let e=this._baseState,t={};sN.forEach(function(n){t[n]=e[n]});let n=new this.constructor(t.parent);return n._baseState=t,n},sL.prototype._wrap=function(){let e=this._baseState;sP.forEach(function(t){this[t]=function(){let n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}},this)},sL.prototype._init=function(e){let t=this._baseState;im(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),im.equal(t.children.length,1,"Root node can have only one child")},sL.prototype._useArgs=function(e){let t=this._baseState,n=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==n.length&&(im(null===t.children),t.children=n,n.forEac
1h(function(e){e._baseState.parent=this},this)),0!==e.length&&(im(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;let t={};return Object.keys(e).forEach(function(n){n==(0|n)&&(n|=0),t[e[n]]=n}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){sL.prototype[e]=function(){throw Error(e+" not implemented for encoding: "+this._baseState.enc)}}),sO.forEach(function(e){sL.prototype[e]=function(){let t=this._baseState,n=Array.prototype.slice.call(arguments);return im(null===t.tag),t.tag=e,this._useArgs(n),this}}),sL.prototype.use=function(e){im(e);let t=this._baseState;return im(null===t.use),t.use=e,this},sL.prototype.optional=function(){return this._baseState.optional=!0,this},sL.prototype.def=function(e){let t=this._baseState;return im(null===t.default),t.default=e,t.optional=!0,this},sL.prototype.explicit=function(e){let t=this._baseState;return im(null===t.explicit&&null===t.implicit),t.explicit=e,this},sL.prototype.implicit=function(e){let t=this._baseState;return im(null===t.explicit&&null===t.implicit),t.implicit=e,this},sL.prototype.obj=function(){let e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},sL.prototype.key=function(e){let t=this._baseState;return im(null===t.key),t.key=e,this},sL.prototype.any=function(){return this._baseState.any=!0,this},sL.prototype.choice=function(e){let t=this._baseState;return im(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},sL.prototype.contains=function(e){let t=this._baseState;return im(null===t.use),t.contains=e,this},sL.prototype._decode=function(e,t){let n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));let r,i=n.default,o=!0,a=null;if(null!==n.key&&(a=e.enterKey(n.key)),n.optional){let r=null;if(null!==n.explicit?r=n.explicit:null!==n.implicit?r=n.implicit:null!==n.tag&&(r=n.tag),null!==r||n.any){if(o=this._peekTag(e,r,n.any),e.isError(o))return o}else{let r=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),o=!0}
1catch(e){o=!1}e.restore(r)}}if(n.obj&&o&&(r=e.enterObject()),o){if(null!==n.explicit){let t=this._decodeTag(e,n.explicit);if(e.isError(t))return t;e=t}let r=e.offset;if(null===n.use&&null===n.choice){let t;n.any&&(t=e.save());let r=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(r))return r;n.any?i=e.raw(t):e=r}if(t&&t.track&&null!==n.tag&&t.track(e.path(),r,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(n){n._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){let r=new sT(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(r,t)}}return n.obj&&o&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==o?null!==a&&e.exitKey(a):e.leaveKey(a,n.key,i),i},sL.prototype._decodeGeneric=function(e,t,n){let r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},sL.prototype._getUse=function(e,t){let n=this._baseState;return n.useDecoder=this._use(e,t),im(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},sL.prototype._decodeChoice=function(e,t){let n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some(function(o){let a=e.save(),s=n.choice[o];try{let n=s._decode(e,t);if(e.isError(n))return!1;r={type:o,value:n},i=!0}catch(t){return e.restore(a),!1}return!0},this),i?r:e.error("Choice not matched")},sL.prototype._createEncoderBuffer=function(e){return new sI(e,this.reporter)},sL.prototype._encode=function(e,t,n){let r=this._baseState;if(null!==r.default&&r.default===e)return;let i=this._encodeValue(e,t,n);return void 0===i||this._skipDefault(i,t,n)?void 0:i},sL.prototype._encodeValue=function(e,t,n){let r=this._baseState;if(null===r.parent)return r.children[0]._encode(e,t||new sR);let i=null;if(this.reporter=t,r.optional&&void 0===e){if(null===r.default)return;e=r.default}let o=null,a=!1;if(r.any)i=this._createEncoderBuffer(e);else if(r.choice)i=this._encodeChoice(e,t);else if(r.contains)o=this._getUse(r.contains,n)._encode(e,t),a=!0;else if(r.children)o=r.children.map(function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");let r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");let i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i},this).filter(function(e){return e}),o=this._createEncoderBuffer(o);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return t.error("Too many args for : "+r.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");let n=this.clone();n._baseState.implicit=null,o=this._createEncoderBuffer(e.map(function(n){let r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)},n))}else null!==r.use?i=this._getUse(r.use,n)._encode(e,t):(o=this._encodePrimitive(r.tag,e),a=!0);if(!r.any&&null===r.choice){let e=null!==r.implicit?r.implicit:r.tag,n=null===r.implicit?"universal":"context";null===e?null===r.use&&t.error("Tag could be omitted only for .use()"):null===r.use&&(i=this._encodeComposite(e,a,n,o))}return null!==r.explicit&&(i=this._encodeComposite(r.explicit,!1,"context",i)),i},sL.prototype._encodeChoice=function(e,t){let n=this._baseState,r=n.choice[e.type];return r||im(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},sL.prototype._encodePrimitive=function(e,t){let n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw Error("Unsupported tag: "+e)},sL.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},sL.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)};var sD={};!function(e){function t(e){let t={};return Object.keys(e).forEach(function(n){(0|n)==n&&(n|=0),t[e[n]]=n}),t}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=t(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=t(e.tag)}(sD);let sB=sy.Buffer;function sj(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new sF,this.tree._init(e.body)}function sF(e){sL.call(this,"der",e)}function sz(e){return e<10?"0"+e:e}function sU(e){sj.call(this,e),this.enc="pem"}sj.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},eD(sF,sL),sF.prototype._encodeComposite=function(e,t,n,r){let i=function(e,t,n,r){let i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),sD.tagByName.hasOwnProperty(e))i=sD.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);i=e}return i>=31?r.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|sD.tagClassByName[n||"universal"]<<6)}(e,t,n,this.reporter);if(r.length<128){let e=sB.alloc(2);return e[0]=i,e[1]=r.length,this._createEncoderBuffer([e,r])}let o=1;for(let e=r.length;e>=256;e>>=8)o++;let a=sB.alloc(2+o);a[0]=i,a[1]=128|o;for(let e=1+o,t=r.length;t>0;e--,t>>=8)a[e]=255&t;return this._createEncoderBuffer([a,r])},sF.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){let t=sB.alloc(2*e.length);for(let n=0;n<e.length;n++)t.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(t)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},sF.prototype._encodeObjid=function(e,t,n){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s.]+/g);for(let t=0;t<e.length;t++)e[t]|=0}else if(Array.isArray(e)){e=e.slice();for(let t=0;t<e.length;t++)e[t]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));
1if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let r=0;for(let t=0;t<e.length;t++){let n=e[t];for(r++;n>=128;n>>=7)r++}let i=sB.alloc(r),o=i.length-1;for(let t=e.length-1;t>=0;t--){let n=e[t];for(i[o--]=127&n;(n>>=7)>0;)i[o--]=128|127&n}return this._createEncoderBuffer(i)},sF.prototype._encodeTime=function(e,t){let n;let r=new Date(e);return"gentime"===t?n=[sz(r.getUTCFullYear()),sz(r.getUTCMonth()+1),sz(r.getUTCDate()),sz(r.getUTCHours()),sz(r.getUTCMinutes()),sz(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[sz(r.getUTCFullYear()%100),sz(r.getUTCMonth()+1),sz(r.getUTCDate()),sz(r.getUTCHours()),sz(r.getUTCMinutes()),sz(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},sF.prototype._encodeNull=function(){return this._createEncoderBuffer("")},sF.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!sB.isBuffer(e)){let t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=sB.from(t)}if(sB.isBuffer(e)){let t=e.length;0===e.length&&t++;let n=sB.alloc(t);return e.copy(n),0===e.length&&(n[0]=0),this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let t=e;t>=256;t>>=8)n++;let r=Array(n);for(let t=r.length-1;t>=0;t--)r[t]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(sB.from(r))},sF.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},sF.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},sF.prototype._skipDefault=function(e,t,n){let r;let i=this._baseState;if(null===i.default)return!1;let o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,n).join()),o.length!==i.defaultBuffer.length)return!1;for(r=0;r<o.length;r++)if(o[r]!==i.defaultBuffer[r])return!1;return!0},eD(sU,sj),sU.prototype.encode=function(e,t){let n=sj.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"];for(let e=0;e<n.length;e+=64)r.push(n.slice(e,e+64));return r.push("-----END "+t.label+"-----"),r.join("\n")},sv.der=sj,sv.pem=sU;var sq={};let sK=sS.DecoderBuffer;function sH(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new sV,this.tree._init(e.body)}function sV(e){sL.call(this,"der",e)}function s$(e,t){let n=e.readUInt8(t);if(e.isError(n))return n;let r=sD.tagClass[n>>6],i=0==(32&n);if(31==(31&n)){let r=n;for(n=0;128==(128&r);){if(r=e.readUInt8(t),e.isError(r))return r;n<<=7,n|=127&r}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:sD.tag[n]}}function sW(e,t,n){let r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;let i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(let t=0;t<i;t++){r<<=8;let t=e.readUInt8(n);if(e.isError(t))return t;r|=t}return r}sH.prototype.decode=function(e,t){return sK.isDecoderBuffer(e)||(e=new sK(e,t)),this.tree._decode(e,t)},eD(sV,sL),sV.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;let r=e.save(),i=s$(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(r),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)},sV.prototype._decodeTag=function(e,t,n){let r=s$(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;let i=sW(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');let o=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},sV.prototype._skipUntilEnd=function(e,t){for(;;){let n;let r=s$(e,t);if(e.isError(r))return r;let i=sW(e,r.primitive,t);if(e.isError(i))return i;if(n=r.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(n))return n;if("end"===r.tagStr)break}},sV.prototype._decodeList=function(e,t,n,r){let i=[];for(;!e.isEmpty();){let t=this._peekTag(e,"end");if(e.isError(t))return t;let o=n.decode(e,"der",r);if(e.isError(o)&&t)break;i.push(o)}return i},sV.prototype._decodeStr=function(e,t){if("bitstr"===t){let t=e.readUInt8();return e.isError(t)?t:{unused:t,data:e.raw()}}if("bmpstr"===t){let t=e.raw();if(t.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");let n="";for(let e=0;e<t.length/2;e++)n+=String.fromCharCode(t.readUInt16BE(2*e));return n}if("numstr"===t){let t=e.raw().toString("ascii");return this._isNumstr(t)?t:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t||"objDesc"===t)return e.raw();if("printstr"===t){let t=e.raw().toString("ascii");return this._isPrintstr(t)?t:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},sV.prototype._decodeObjid=function(e,t,n){let r;let i=[],o=0,a=0;for(;!e.isEmpty();)a=e.readUInt8(),o<<=7,o|=127&a,0==(128&a)&&(i.push(o),o=0);128&a&&i.push(o);let s=i[0]/40|0,l=i[0]%40;if(r=n?i:[s,l].concat(i.slice(1)),t){let e=t[r.join(" ")];void 0===e&&(e=t[r.join(".")]),void 0!==e&&(r=e)}return r},sV.prototype._decodeTime=function(e,t){let n,r,i,o,a,s;let l=e.raw().toString();if("gentime"===t)n=0|l.slice(0,4),r=0|l.slice(4,6),i=0|l.slice(6,8),o=0|l.slice(8,10),a=0|l.slice(10,12),s=0|l.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|l.slice(0,2),r=0|l.slice(2,4),i=0|l.slice(4,6),o=0|l.slice(6,8),a=0|l.slice(8,10),s=0|l.slice(10,12),n=n<70?2e3+n:1900+n}return Date.UTC(n,r-1,i,o,a,s,0)},sV.prototype._decodeNull=function(){return null},sV.prototype._decodeBool=function(e){let t=e.readUInt8();return e.isError(t)?t:0!==t},sV.prototype._decodeInt=function(e,t){let n=new oA(e.raw());return t&&(n=t[n.toString(10)]||n),n},sV.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree};let sY=sy.Buffer;function sG(e){sH.call(this,e),this.enc="pem"}eD(sG,sH),sG.prototype.decode=function(e,t){let n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),i=/^-----(BEGIN|END) ([^-]+)-----$/,o=-1,a=-1;for(let e=0;e<n.length;e++){let t=n[e].match(i);if(null!==t&&t[2]===r){if(-1!==o){if("END"!==t[1])break;a=e;break}if("BEGIN"!==t[1])break;o=e}}if(-1===o||-1===a)throw Error("PEM section not found for: "+r);let s=n.slice(o+1,a).join("");s.replace(/[^a-z0-9+/=]+/gi,"");let l=sY.from(s,"base64");return sH.prototype.decode.call(this,l,t)},sq.der=sH,sq.pem=sG,function(e){function t(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}e.define=function(e,n){return new t(e,n)},t.prototype._createNamed=function(e){let t=this.name;function n(e){this._initNamed(e,t)}return eD(n,e),n.prototype._initNamed=function(t,n){e.call(this,t,n)},new n(this)},t.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(sq[e])),this.decoders[e]},t.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},t.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(sv[e])),this.encoders[e]},t.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}}(sg);var sQ={};sQ.Reporter=sw.Reporter,sQ.DecoderBuffer=sS.DecoderBuffer,sQ.EncoderBuffer=sS.EncoderBuffer,sQ.Node=sL;var sZ={};sZ._reverse=function(e){let t={};return Object.keys(e).forEach(function(n){(0|n)==n&&(n|=0),t[e[n]]=n}),t}
1,sZ.der=sD,sm.bignum=oA,sm.define=sg.define,sm.base=sQ,sm.constants=sZ,sm.decoders=sq,sm.encoders=sv;var sJ=sm.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),sX=sm.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),s0=sm.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s1=sm.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s0),this.key("subjectPublicKey").bitstr())}),s2=sm.define("RelativeDistinguishedName",function(){this.setof(sX)}),s3=sm.define("RDNSequence",function(){this.seqof(s2)}),s6=sm.define("Name",function(){this.choice({rdnSequence:this.use(s3)})}),s4=sm.define("Validity",function(){this.seq().obj(this.key("notBefore").use(sJ),this.key("notAfter").use(sJ))}),s8=sm.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),s5=sm.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(s0),this.key("issuer").use(s6),this.key("validity").use(s4),this.key("subject").use(s6),this.key("subjectPublicKeyInfo").use(s1),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(s8).optional())}),s7=sm.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(s5),this.key("signatureAlgorithm").use(s0),this.key("signatureValue").bitstr())});sp.certificate=s7;var s9=sm.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});sp.RSAPrivateKey=s9;var le=sm.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});sp.RSAPublicKey=le;var lt=sm.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(ln),this.key("subjectPublicKey").bitstr())});sp.PublicKey=lt;var ln=sm.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),lr=sm.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(ln),this.key("subjectPrivateKey").octstr())});sp.PrivateKey=lr;var li=sm.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});sp.EncryptedPrivateKey=li;var lo=sm.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});sp.DSAPrivateKey=lo,sp.DSAparam=sm.define("DSAparam",function(){this.int()});var la=sm.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(ls),this.key("publicKey").optional().explicit(1).bitstr())});sp.ECPrivateKey=la;var ls=sm.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});sp.signature=sm.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())});var ll=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,lu=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,lc=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,ld=eT().Buffer,lf={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"},lh=function(e,t){var n,r=e.toString(),i=r.match(ll);if(i){var o="aes"+i[1],a=ld.from(i[2],"hex"),s=ld.from(i[3].replace(/[\r\n]/g,""),"base64"),l=i9(t,a.slice(0,8),parseInt(i[1],10)).key,u=[],c=ix.createDecipheriv(o,l,a);u.push(c.update(s)),u.push(c.final()),n=ld.concat(u)}else{var d=r.match(lc);n=ld.from(d[2].replace(/[\r\n]/g,""),"base64")}return{tag:r.match(lu)[1],data:n}},lp=eT().Buffer;function lm(e){"object"!=typeof e||lp.isBuffer(e)||(f=e.passphrase,e=e.key),"string"==typeof e&&(e=lp.from(e));var t,n,r,i,o,a,s,l,u,c,d,f,h,p,m=lh(e,f),g=m.tag,v=m.data;switch(g){case"CERTIFICATE":p=sp.certificate.decode(v,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(p||(p=sp.PublicKey.decode(v,"der")),h=p.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return sp.RSAPublicKey.decode(p.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return p.subjectPrivateKey=p.subjectPublicKey,{type:"ec",data:p};case"1.2.840.10040.4.1":return p.algorithm.params.pub_key=sp.DSAparam.decode(p.subjectPublicKey.data,"der"),{type:"dsa",data:p.algorithm.params};default:throw Error("unknown key id "+h)}case"ENCRYPTED PRIVATE KEY":t=v=sp.EncryptedPrivateKey.decode(v,"der"),n=f,r=t.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=lf[t.algorithm.decrypt.cipher.algo.join(".")],a=t.algorithm.decrypt.cipher.iv,s=t.subjectPrivateKey,l=parseInt(o.split("-")[1],10)/8,u=rX.pbkdf2Sync(n,r,i,l,"sha1"),c=ix.createDecipheriv(o,u,a),(d=[]).push(c.update(s)),d.push(c.final()),v=lp.concat(d);case"PRIVATE KEY":switch(h=(p=sp.PrivateKey.decode(v,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return sp.RSAPrivateKey.decode(p.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:p.algorithm.curve,privateKey:sp.ECPrivateKey.decode(p.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return p.algorithm.params.priv_key=sp.DSAparam.decode(p.subjectPrivateKey,"der"),{type:"dsa",params:p.algorithm.params};default:throw Error("unknown key id "+h)}case"RSA PUBLIC KEY":return sp.RSAPublicKey.decode(v,"der");case"RSA PRIVATE KEY":return sp.RSAPrivateKey.decode(v,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:sp.DSAPrivateKey.decode(v,"der")};case"EC PRIVATE KEY":return{curve:(v=sp.ECPrivateKey.decode(v,"der")).parameters.value,privateKey:v.privateKey};default:throw Error("unknown key type "+g)}}lm.signature=sp.signature;var lg,lv,lb,ly,lA,lw,l_,lE={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"},lS={},lk=eT().Buffer,lM=function(e,t){for(var n,r=lk.alloc(0),i=0;r.length<t;)n=function(e){var t=lk.allocUnsafe(4);return t.writeUInt32BE(e,0),t}(i++),r=lk.concat([r,rU("sha1").update(e).update(n).digest()]);return r.slice(0,t)},lC=function(e,t){for(var n=e.length,r=-1;++r<n;)e[r]^=t[r];return e},lx=eT().Buffer,lR=function(e,t){return lx.from(e.toRed(oA.mont(t.modulus)).redPow(new oA(t.publicExponent)).fromRed().toArray())},lI=eT().Buffer,lT=eT().Buffer;lS.publicEncrypt=function(e,t,n){r=e.padding?e.padding:n?1:4;var r,i,o=lm(e);
1if(4===r)i=function(e,t){var n=e.modulus.byteLength(),r=t.length,i=rU("sha1").update(lI.alloc(0)).digest(),o=i.length,a=2*o;if(r>n-a-2)throw Error("message too long");var s=lI.alloc(n-r-a-2),l=n-o-1,u=eL(o),c=lC(lI.concat([i,s,lI.alloc(1,1),t],l),lM(u,l)),d=lC(u,lM(c,o));return new oA(lI.concat([lI.alloc(1),d,c],n))}(o,t);else if(1===r)i=function(e,t,n){var r,i=t.length,o=e.modulus.byteLength();if(i>o-11)throw Error("message too long");return r=n?lI.alloc(o-i-3,255):function(e){for(var t,n=lI.allocUnsafe(e),r=0,i=eL(2*e),o=0;r<e;)o===i.length&&(i=eL(2*e),o=0),(t=i[o++])&&(n[r++]=t);return n}(o-i-3),new oA(lI.concat([lI.from([0,n?1:2]),r,lI.alloc(1),t],o))}(o,t,n);else{if(3!==r)throw Error("unknown padding");if((i=new oA(t)).cmp(o.modulus)>=0)throw Error("data too long for modulus")}return n?oP(i,o):lR(i,o)},lS.privateDecrypt=function(e,t,n){r=e.padding?e.padding:n?1:4;var r,i,o=lm(e),a=o.modulus.byteLength();if(t.length>a||new oA(t).cmp(o.modulus)>=0)throw Error("decryption error");i=n?lR(new oA(t),o):oP(t,o);var s=lT.alloc(a-i.length);if(i=lT.concat([s,i],a),4===r)return function(e,t){var n=e.modulus.byteLength(),r=rU("sha1").update(lT.alloc(0)).digest(),i=r.length;if(0!==t[0])throw Error("decryption error");var o=t.slice(1,i+1),a=t.slice(i+1),s=lC(o,lM(a,i)),l=lC(a,lM(s,n-i-1));if(function(e,t){e=lT.from(e),t=lT.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));for(var i=-1;++i<r;)n+=e[i]^t[i];return n}(r,l.slice(0,i)))throw Error("decryption error");for(var u=i;0===l[u];)u++;if(1!==l[u++])throw Error("decryption error");return l.slice(u)}(o,i);if(1===r)return function(e,t,n){for(var r=t.slice(0,2),i=2,o=0;0!==t[i++];)if(i>=t.length){o++;break}var a=t.slice(2,i-1);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++,a.length<8&&o++,o)throw Error("decryption error");return t.slice(i)}(0,i,n);if(3===r)return i;throw Error("unknown padding")},lS.privateEncrypt=function(e,t){return lS.publicEncrypt(e,t,!0)},lS.publicDecrypt=function(e,t){return lS.privateDecrypt(e,t,!0)};var lO={};function lP(){throw Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var lL,lN=eT(),lD=lN.Buffer,lB=lN.kMaxLength,lj=l.crypto||l.msCrypto;function lF(e,t){if("number"!=typeof e||e!=e)throw TypeError("offset must be a number");if(e>4294967295||e<0)throw TypeError("offset must be a uint32");if(e>lB||e>t)throw RangeError("offset out of range")}function lz(e,t,n){if("number"!=typeof e||e!=e)throw TypeError("size must be a number");if(e>4294967295||e<0)throw TypeError("size must be a uint32");if(e+t>n||e>lB)throw RangeError("buffer too small")}function lU(e,t,n,r){var i=new Uint8Array(e.buffer,t,n);return lj.getRandomValues(i),r?void ew(function(){r(null,e)}):e}function lq(){if(lL)return ei;lL=1,ei.randomBytes=ei.rng=ei.pseudoRandomBytes=ei.prng=eL,ei.createHash=ei.Hash=rU,ei.createHmac=ei.Hmac=rZ;var e=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Object.keys(rJ));ei.getHashes=function(){return e},ei.pbkdf2=rX.pbkdf2,ei.pbkdf2Sync=rX.pbkdf2Sync,ei.Cipher=il.Cipher,ei.createCipher=il.createCipher,ei.Cipheriv=il.Cipheriv,ei.createCipheriv=il.createCipheriv,ei.Decipher=il.Decipher,ei.createDecipher=il.createDecipher,ei.Decipheriv=il.Decipheriv,ei.createDecipheriv=il.createDecipheriv,ei.getCiphers=il.getCiphers,ei.listCiphers=il.listCiphers;var t=function(){if(oC)return oh;oC=1;var e=oS(),t=function(){if(oM)return ok;oM=1;var e=new(oE()),t=new oA(24),n=new oA(11),r=new oA(10),i=new oA(3),o=new oA(7),a=oS();function s(e,t){return t=t||"utf8",Z(e)||(e=new M(e,t)),this._pub=new oA(e),this}function l(e,t){return t=t||"utf8",Z(e)||(e=new M(e,t)),this._priv=new oA(e),this}ok=c;var u={};function c(e,t,n){this.setGenerator(t),this.__prime=new oA(e),this._prime=oA.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=s,this.setPrivateKey=l):this._primeCode=8}function d(e,t){var n=new M(e.toArray());return t?n.toString(t):n}return Object.defineProperty(c.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(s,l){var c=l.toString("hex"),d=[c,s.toString(16)].join("_");if(d in u)return u[d];var f,h=0;if(s.isEven()||!a.simpleSieve||!a.fermatTest(s)||!e.test(s))return h+=1+("02"===c||"05"===c?8:4),u[d]=h,h;switch(e.test(s.shrn(1))||(h+=2),c){case"02":s.mod(t).cmp(n)&&(h+=8);break;case"05":(f=s.mod(r)).cmp(i)&&f.cmp(o)&&(h+=8);break;default:h+=4}return u[d]=h,h}(this.__prime,this.__gen)),this._primeCode}}),c.prototype.generateKeys=function(){return this._priv||(this._priv=new oA(eL(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},c.prototype.computeSecret=function(e){var t=new M((e=(e=new oA(e)).toRed(this._prime)).redPow(this._priv).fromRed().toArray()),n=this.getPrime();if(t.length<n.length){var r=new M(n.length-t.length);r.fill(0),t=M.concat([r,t])}return t},c.prototype.getPublicKey=function(e){return d(this._pub,e)},c.prototype.getPrivateKey=function(e){return d(this._priv,e)},c.prototype.getPrime=function(e){return d(this.__prime,e)},c.prototype.getGenerator=function(e){return d(this._gen,e)},c.prototype.setGenerator=function(e,t){return t=t||"utf8",Z(e)||(e=new M(e,t)),this.__gen=e,this._gen=new oA(e),this},ok}(),n={binary:!0,hex:!0,base64:!0};return oh.DiffieHellmanGroup=oh.createDiffieHellmanGroup=oh.getDiffieHellman=function(e){return new t(new M(ox[e].prime,"hex"),new M(ox[e].gen,"hex"))},oh.createDiffieHellman=oh.DiffieHellman=function r(i,o,a,s){return Z(o)||void 0===n[o]?r(i,"binary",o,a):(o=o||"binary",s=s||"binary",Z(a=a||new M([2]))||(a=new M(a,s)),"number"==typeof i?new t(e(i,a),a,!0):(Z(i)||(i=new M(i,o)),new t(i,a,!0)))},oh}();ei.DiffieHellmanGroup=t.DiffieHellmanGroup,ei.createDiffieHellmanGroup=t.createDiffieHellmanGroup,ei.getDiffieHellman=t.getDiffieHellman,ei.createDiffieHellman=t.createDiffieHellman,ei.DiffieHellman=t.DiffieHellman;var n=function(){if(lA)return ly;lA=1;var e=eT().Buffer,t=function(){if(lg)return oR.exports;lg=1;var e=eT().Buffer,t=so().ec;function n(t,n,i,o){if((t=e.from(t.toArray())).length<n.byteLength()){var a=e.alloc(n.byteLength()-t.length);t=e.concat([a,t])}var s=i.length,l=function(t,n){t=(t=r(t,n)).mod(n);var i=e.from(t.toArray());if(i.length<n.byteLength()){var o=e.alloc(n.byteLength()-i.length);i=e.concat([o,i])}return i}(i,n),u=e.alloc(s);u.fill(1);var c=e.alloc(s);return c=rZ(o,c).update(u).update(e.from([0])).update(t).update(l).digest(),u=rZ(o,c).update(u).digest(),{k:c=rZ(o,c).update(u).update(e.from([1])).update(t).update(l).digest(),v:u=rZ(o,c).update(u).digest()}}function r(e,t){var n=new sh(e),r=(e.length<<3)-t.bitLength();return r>0&&n.ishrn(r),n}function i(t,n,i){var o,a;do{for(o=e.alloc(0);8*o.length<t.bitLength();)n.v=rZ(i,n.k).update(n.v).digest(),o=e.concat([o,n.v]);a=r(o,t),n.k=rZ(i,n.k).update(n.v).update(e.from([0])).digest(),n.v=rZ(i,n.k).update(n.v).digest()}while(-1!==a.cmp(t));return a}return oR.exports=function(o,a,s,l,u){var c=lm(a);if(c.curve){if("ecdsa"!==l&&"ecdsa/rsa"!==l)throw Error("wrong private key type");return function(n,r){var i=lE[r.curve.join(".")];if(!i)throw Error("unknown curve "+r.curve.join("."));var o=new t(i).keyFromPrivate(r.privateKey).sign(n);return e.from(o.toDER())}(o,c)}if("dsa"===c.type){if("dsa"!==l)throw Error("wrong private key type");return function(t,o,a){for(var s,l,u,c,d,f=o.params.priv_key,h=o.params.p,p=o.params.q,m=o.params.g,g=new sh(0),v=r(t,p).mod(p),b=!1,y=n(f,p,t,a);!1===b;)s=d=i(p,y,a),g=m.toRed(sh.mont(h)).redPow(s).fromRed().mod(p),0===(b=d.invm(p).imul(v.add(f.mul(g))).mod(p)).cmpn(0)&&(b=!1,g=new sh(0));
1return l=g,u=b,l=l.toArray(),u=u.toArray(),128&l[0]&&(l=[0].concat(l)),128&u[0]&&(u=[0].concat(u)),c=(c=[48,l.length+u.length+4,2,l.length]).concat(l,[2,u.length],u),e.from(c)}(o,c,s)}if("rsa"!==l&&"ecdsa/rsa"!==l)throw Error("wrong private key type");o=e.concat([u,o]);for(var d=c.modulus.byteLength(),f=[0,1];o.length+f.length+1<d;)f.push(255);f.push(0);for(var h=-1;++h<o.length;)f.push(o[h]);return oP(f,c)},oR.exports.getKey=n,oR.exports.makeKey=i,oR.exports}(),n=function(){if(lb)return lv;lb=1;var e=eT().Buffer,t=so().ec;function n(e,t){if(0>=e.cmpn(0)||e.cmp(t)>=t)throw Error("invalid sig")}return lv=function(r,i,o,a,s){var l,u,c,d,f,h,p,m,g,v,b,y=lm(o);if("ec"===y.type){if("ecdsa"!==a&&"ecdsa/rsa"!==a)throw Error("wrong public key type");return function(e,n,r){var i=lE[r.data.algorithm.curve.join(".")];if(!i)throw Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new t(i),a=r.data.subjectPrivateKey.data;return o.verify(n,e,a)}(r,i,y)}if("dsa"===y.type){if("dsa"!==a)throw Error("wrong public key type");return l=r,u=i,c=y.data.p,d=y.data.q,f=y.data.g,h=y.data.pub_key,m=(p=lm.signature.decode(l,"der")).s,g=p.r,n(m,d),n(g,d),v=sh.mont(c),b=m.invm(d),0===f.toRed(v).redPow(new sh(u).mul(b).mod(d)).fromRed().mul(h.toRed(v).redPow(g.mul(b).mod(d)).fromRed()).mod(c).mod(d).cmp(g)}if("rsa"!==a&&"ecdsa/rsa"!==a)throw Error("wrong public key type");i=e.concat([s,i]);for(var A=y.modulus.byteLength(),w=[1],_=0;i.length+w.length+2<A;)w.push(255),_++;w.push(0);for(var E=-1;++E<i.length;)w.push(i[E]);w=e.from(w);var S=sh.mont(y.modulus);r=(r=new sh(r).toRed(S)).redPow(new sh(y.publicExponent));var k=_<8?1:0;for(A=Math.min((r=e.from(r.fromRed().toArray())).length,w.length),r.length!==w.length&&(k=1),E=-1;++E<A;)k|=r[E]^w[E];return 0===k}}();function r(e){ni.Writable.call(this);var t=rJ[e];if(!t)throw Error("Unknown message digest");
1this._hashType=t.hash,this._hash=rU(t.hash),this._tag=t.id,this._signType=t.sign}function i(e){ni.Writable.call(this);var t=rJ[e];if(!t)throw Error("Unknown message digest");this._hash=rU(t.hash),this._tag=t.id,this._signType=t.sign}function o(e){return new r(e)}function a(e){return new i(e)}return Object.keys(rJ).forEach(function(t){rJ[t].id=e.from(rJ[t].id,"hex"),rJ[t.toLowerCase()]=rJ[t]}),eD(r,ni.Writable),r.prototype._write=function(e,t,n){this._hash.update(e),n()},r.prototype.update=function(t,n){return"string"==typeof t&&(t=e.from(t,n)),this._hash.update(t),this},r.prototype.sign=function(e,n){this.end();var r=t(this._hash.digest(),e,this._hashType,this._signType,this._tag);return n?r.toString(n):r},eD(i,ni.Writable),i.prototype._write=function(e,t,n){this._hash.update(e),n()},i.prototype.update=function(t,n){return"string"==typeof t&&(t=e.from(t,n)),this._hash.update(t),this},i.prototype.verify=function(t,r,i){return"string"==typeof r&&(r=e.from(r,i)),this.end(),n(r,this._hash.digest(),t,this._signType,this._tag)},ly={Sign:o,Verify:a,createSign:o,createVerify:a}}();return ei.createSign=n.createSign,ei.Sign=n.Sign,ei.createVerify=n.createVerify,ei.Verify=n.Verify,ei.createECDH=function(){if(l_)return lw;l_=1;var e=so();lw=function(e){return new n(e)};var t={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function n(n){this.curveType=t[n],this.curveType||(this.curveType={name:n}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}function r(e,t,n){Array.isArray(e)||(e=e.toArray());var r=new M(e);if(n&&r.length<n){var i=new M(n-r.length);i.fill(0),r=M.concat([i,r])}return t?r.toString(t):r}return t.p224=t.secp224r1,t.p256=t.secp256r1=t.prime256v1,t.p192=t.secp192r1=t.prime192v1,t.p384=t.secp384r1,t.p521=t.secp521r1,n.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},n.prototype.computeSecret=function(e,t,n){return t=t||"utf8",Z(e)||(e=new M(e,t)),r(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},n.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[n.length-1]%2?n[0]=7:n[0]=6),r(n,e)},n.prototype.getPrivateKey=function(e){return r(this.keys.getPrivate(),e)},n.prototype.setPublicKey=function(e,t){return t=t||"utf8",Z(e)||(e=new M(e,t)),this.keys._importPublic(e),this},n.prototype.setPrivateKey=function(e,t){t=t||"utf8",Z(e)||(e=new M(e,t));var n=new oA(e);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this},lw}(),ei.publicEncrypt=lS.publicEncrypt,ei.privateEncrypt=lS.privateEncrypt,ei.publicDecrypt=lS.publicDecrypt,ei.privateDecrypt=lS.privateDecrypt,ei.randomFill=lO.randomFill,ei.randomFillSync=lO.randomFillSync,ei.createCredentials=function(){throw Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/crypto-browserify/crypto-browserify")},ei.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},ei}lj&&lj.getRandomValues?(lO.randomFill=function(e,t,n,r){if(!(lD.isBuffer(e)||e instanceof l.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)r=t,t=0,n=e.length;else if("function"==typeof n)r=n,n=e.length-t;else if("function"!=typeof r)throw TypeError('"cb" argument must be a function');return lF(t,e.length),lz(n,t,e.length),lU(e,t,n,r)},lO.randomFillSync=function(e,t,n){if(void 0===t&&(t=0),!(lD.isBuffer(e)||e instanceof l.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return lF(t,e.length),void 0===n&&(n=e.length-t),lz(n,t,e.length),lU(e,t,n
1)}):(lO.randomFill=lP,lO.randomFillSync=lP);let{Buffer:lK}=er,{createHash:lH,createHmac:lV}=lq(),l$={},lW=e=>{switch(e){case"sha256":case"sha3-256":case"blake2s256":return 32;case"sha512":case"sha3-512":case"blake2b512":return 64;case"sha224":case"sha3-224":return 28;case"sha384":case"sha3-384":return 48;case"sha1":return 20;case"md5":return 16;default:{let t=l$[e];return void 0===t&&(t=lH(e).digest().length,l$[e]=t),t}}},lY=(e,t,n,r)=>{let i=lK.isBuffer(n)?n:lK.from(n);return lV(e,r&&r.length?lK.from(r):lK.alloc(t,0)).update(i).digest()},lG=(e,t,n,r,i)=>{let o=lK.isBuffer(i)?i:lK.from(i||""),a=o.length,s=Math.ceil(r/t);if(s>255)throw Error(`OKM length ${r} is too long for ${e} hash`);let l=lK.alloc(t*s+a+1);for(let r=1,i=0,u=0;r<=s;++r)o.copy(l,u),l[u+a]=r,lV(e,n).update(l.slice(i,u+a+1)).digest().copy(l,u),i=u,u+=t;return l.slice(0,r)};function lQ(e,t,{salt:n="",info:r="",hash:i="SHA-256"}={}){let o=lW(i=i.toLowerCase().replace("-","")),a=lY(i,o,e,n);return lG(i,o,a,t,r)}Object.defineProperties(lQ,{hash_length:{configurable:!1,enumerable:!1,writable:!1,value:lW},extract:{configurable:!1,enumerable:!1,writable:!1,value:lY},expand:{configurable:!1,enumerable:!1,writable:!1,value:lG}});let lZ="Impossible case. Please create issue.",lJ="The tweak was out of range or the resulted private key is invalid",lX="The tweak was out of range or equal to zero",l0="Public Key could not be parsed",l1="Public Key serialization error",l2="Signature could not be parsed";function l3(e,t){if(!e)throw Error(t)}function l6(e,t,n){if(l3(t instanceof Uint8Array,`Expected ${e} to be an Uint8Array`),void 0!==n){if(Array.isArray(n)){let r=`Expected ${e} to be an Uint8Array with length [${n.join(", ")}]`;l3(n.includes(t.length),r)}else{let r=`Expected ${e} to be an Uint8Array with length ${n}`;l3(t.length===n,r)}}}function l4(e){l3("Boolean"===l5(e),"Expected compressed to be a Boolean")}function l8(e=e=>new Uint8Array(e),t){return"function"==typeof e&&(e=e(t)),l6("output",e,t),e}function l5(e){return Object.prototype.toString.call(e).slice(8,-1)}var l7={},l9={},ue={exports:{}};!function(e,t){function n(e,t){if(!e)throw Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}
vendor: 4,170 bytes, line 1
1"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{l="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:er.Buffer}catch(e){}function o(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function a(e,t,n){var r=o(e,n);return n-1>=t&&(r|=o(e,n-1)<<4),r}function s(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return 0>e.cmp(t)?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},i.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},i.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,s=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=a(e,t,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=a(e,t,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,l=Math.min(o,o-a)+n,u=0,c=n;c<l;c+=r)u=s(e,c,c+r,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=s(e,c,e.length,t),c=0;c<a;c++)d*=t;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},i.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l,u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,143489
vendor: 5,521 bytes, line 1
107,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var u=1;u<r;u++){for(var c=l>>>26,d=67108863&l,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++){var p=u-h|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}n.words[u]=0|d,l=0|c}return 0!==l?n.words[u]=0|l:n.length--,n.strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<i|o)).toString(16);r=0!=(o=s>>>24-i&16777215)||a!==this.length-1?u[6-l.length]+l+r:l+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var f=c[e],h=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[f-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return n(void 0!==l),this.toArrayLike(l,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,l=new e(o),u=this.clone();if("le"===t){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),l[s]=a;for(;s<o;s++)l[s]=0}else{for(s=0;s<o-i;s++)l[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),l[o-s-1]=a}return l},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},i.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},i.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},i.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},i.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>
vendor: 7,185 bytes, line 1
1>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(t=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<n.length;a++)o=(t=(0|n.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var h=function(e,t,n){var r,i,o,a=e.words,s=t.words,l=n.words,u=0,c=0|a[0],d=8191&c,f=c>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,b=g>>>13,y=0|a[3],A=8191&y,w=y>>>13,_=0|a[4],E=8191&_,S=_>>>13,k=0|a[5],M=8191&k,C=k>>>13,x=0|a[6],R=8191&x,I=x>>>13,T=0|a[7],O=8191&T,P=T>>>13,L=0|a[8],N=8191&L,D=L>>>13,B=0|a[9],j=8191&B,F=B>>>13,z=0|s[0],U=8191&z,q=z>>>13,K=0|s[1],H=8191&K,V=K>>>13,$=0|s[2],W=8191&$,Y=$>>>13,G=0|s[3],Q=8191&G,Z=G>>>13,J=0|s[4],X=8191&J,ee=J>>>13,et=0|s[5],en=8191&et,er=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],el=8191&es,eu=es>>>13,ec=0|s[8],ed=8191&ec,ef=ec>>>13,eh=0|s[9],ep=8191&eh,em=eh>>>13;n.negative=e.negative^t.negative,n.length=19;var eg=(u+(r=Math.imul(d,U))|0)+((8191&(i=(i=Math.imul(d,q))+Math.imul(f,U)|0))<<13)|0;u=((o=Math.imul(f,q))+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,r=Math.imul(p,U),i=(i=Math.imul(p,q))+Math.imul(m,U)|0,o=Math.imul(m,q);var ev=(u+(r=r+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(f,H)|0))<<13)|0;u=((o=o+Math.imul(f,V)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,r=Math.imul(v,U),i=(i=Math.imul(v,q))+Math.imul(b,U)|0,o=Math.imul(b,q),r=r+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,V)|0;var eb=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,W)|0))<<13)|0;u=((o=o+Math.imul(f,Y)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,r=Math.imul(A,U),i=(i=Math.imul(A,q))+Math.imul(w,U)|0,o=Math.imul(w,q),r=r+Math.imul(v,H)|0,i=(i=i+Math.imul(v,V)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,V)|0,r=r+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,Y)|0;var ey=(u+(r=r+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,Q)|0))<<13)|0;u=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,r=Math.imul(E,U),i=(i=Math.imul(E,q))+Math.imul(S,U)|0,o=Math.imul(S,q),r=r+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(w,H)|0,o=o+Math.imul(w,V)|0,r=r+Math.imul(v,W)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,Y)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Z)|0;var eA=(u+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,X)|0))<<13)|0;u=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,r=Math.imul(M,U),i=(i=Math.imul(M,q))+Math.imul(C,U)|0,o=Math.imul(C,q),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,Y)|0,r=r+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,Z)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var ew=(u+(r=r+Math.imul(d,en)|0)|0)+((8191&(i=(i=i+Math.imul(d,er)|0)+Math.imul(f,en)|0))<<13)|0;u=((o=o+Math.imul(f,er)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,r=Math.imul(R,U),i=(i=Math.imul(R,q))+Math.imul(I,U)|0,o=Math.imul(I,q),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,V)|0)+Math.imul(C,H)|0,o=o+Math.imul(C,V)|0,r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,r=r+Math.imul(p,en)|0,i=(i=i+Math.imul(p,er)|0)+Math.imul(m,en)|0,o=o+Math.imul(m,er)|0;var e_=(u+(r=r+Math.imul(d,eo)|0)|0)+((8191&(i=(i=i+Math.imul(d,ea)|0)+Math.imul(f,eo)|0))<<13)|0;u=((o=o+Math.imul(f,ea)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,r=Math.imul(O,U),i=(i=Math.imul(O,q))+Math.imul(P,U)|0,o=Math.imul(P,q),r=r+Math.imul(R,H)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,V)|0,r=r+Math.imul(M,W)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,Y)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,ee)|0,r=r+Math.imul(v,en)|0,i=(i=i+Math.imul(v,er)|0)+Math.imul(b,en)|0,o=o+Math.imul(b,er)|0,r=r+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,ea)|0;var eE=(u+(r=r+Math.imul(d,el)|0)|0)+((8191&(i=(i=i+Math.imul(d,eu)|0)+Math.imul(f,el)|0))<<13)|0;u=((o=o+Math.imul(f,eu)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,r=Math.imul(N,U),i=(i=Math.imul(N,q))+Math.imul(D,U)|0,o=Math.imul(D,q),r=r+Math.imul(O,H)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(P,H)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(A,en)|0,i=(i=i+Math.imul(A,er)|0)+Math.imul(w,en)|0,o=o+Math.imul(w,er)|0,r=r+Math.imul(v,eo)|0,i=(i=i+Math.imul(v,ea)|0)+Math.imul(b,eo)|0,o=o+Math.imul(b,ea)|0,r=r+Math.imul(p,el)|0,i=(i=i+Math.imul(p,eu)|0)+Math.imul(m,el)|0,o=o+Math.imul(m,eu)|0;var eS=(u+(r=r+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(f,ed)|0))<<13)|0;u=((o=o+Math.imul(f,ef)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,r=Math.imul(j,U),i=(i=Math.imul(j,q))+Math.imul(F,U)|0,o=Math.imul(F,q),r=r+Math.imul(N,H)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(D,H)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,Y)|0,r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,Z)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,r=r+Math.imul(E,en)|0,i=(i=i+Math.imul(E,er)|0)+Math.imul(S,en)|0,o=o+Math.imul(S,er)|0,r=r+Math.imul(A,eo)|0,i=(i=i+Math.imul(A,ea)|0)+Math.imul(w,eo)|0,o=o+Math.imul(w,ea)|0,r=r+Math.imul(v,el)|0,i=(i=i+Math.imul(v,eu)|0)+Math.imul(b,el)|0,o=o+Math.imul(b,eu)|0,r=r+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ed)|0,o=o+Math.imul(m,ef)|0;var ek=(u+(r=r+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(f,ep)|0))<<13)|0;u=((o=o+Math.imul(f,em)|0)+(i>>>13)|0)+(ek>>>
vendor: 2,339 bytes, line 1
126)|0,ek&=67108863,r=Math.imul(j,H),i=(i=Math.imul(j,V))+Math.imul(F,H)|0,o=Math.imul(F,V),r=r+Math.imul(N,W)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(D,W)|0,o=o+Math.imul(D,Y)|0,r=r+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,Z)|0,r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(M,en)|0,i=(i=i+Math.imul(M,er)|0)+Math.imul(C,en)|0,o=o+Math.imul(C,er)|0,r=r+Math.imul(E,eo)|0,i=(i=i+Math.imul(E,ea)|0)+Math.imul(S,eo)|0,o=o+Math.imul(S,ea)|0,r=r+Math.imul(A,el)|0,i=(i=i+Math.imul(A,eu)|0)+Math.imul(w,el)|0,o=o+Math.imul(w,eu)|0,r=r+Math.imul(v,ed)|0,i=(i=i+Math.imul(v,ef)|0)+Math.imul(b,ed)|0,o=o+Math.imul(b,ef)|0;var eM=(u+(r=r+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;u=((o=o+Math.imul(m,em)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,r=Math.imul(j,W),i=(i=Math.imul(j,Y))+Math.imul(F,W)|0,o=Math.imul(F,Y),r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,Z)|0,r=r+Math.imul(O,X)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,r=r+Math.imul(R,en)|0,i=(i=i+Math.imul(R,er)|0)+Math.imul(I,en)|0,o=o+Math.imul(I,er)|0,r=r+Math.imul(M,eo)|0,i=(i=i+Math.imul(M,ea)|0)+Math.imul(C,eo)|0,o=o+Math.imul(C,ea)|0,r=r+Math.imul(E,el)|0,i=(i=i+Math.imul(E,eu)|0)+Math.imul(S,el)|0,o=o+Math.imul(S,eu)|0,r=r+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(w,ed)|0,o=o+Math.imul(w,ef)|0;var eC=(u+(r=r+Math.imul(v,ep)|0)|0)+((8191&(i=(i=i+Math.imul(v,em)|0)+Math.imul(b,ep)|0))<<13)|0;u=((o=o+Math.imul(b,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,r=Math.imul(j,Q),i=(i=Math.imul(j,Z))+Math.imul(F,Q)|0,o=Math.imul(F,Z),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(O,en)|0,i=(i=i+Math.imul(O,er)|0)+Math.imul(P,en)|0,o=o+Math.imul(P,er)|0,r=r+Math.imul(R,eo)|0,i=(i=i+Math.imul(R,ea)|0)+Math.imul(I,eo)|0,o=o+Math.imul(I,ea)|0,r=r+Math.imul(M,el)|0,i=(i=i+Math.imul(M,eu)|0)+Math.imul(C,el)|0,o=o+Math.imul(C,eu)|0,r=r+Math.imul(E,ed)|0,i=(i=i+Math.imul(E,ef)|0)+Math.imul(S,ed)|0,o=o+Math.imul(S,ef)|0;var ex=(u+(r=r+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(w,ep)|0))<<13)|0;u=((o=o+Math.imul(w,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,r=Math.imul(j,X),i=(i=Math.imul(j,ee))+Math.imul(F,X
vendor: 9,285 bytes, line 1
1)|0,o=Math.imul(F,ee),r=r+Math.imul(N,en)|0,i=(i=i+Math.imul(N,er)|0)+Math.imul(D,en)|0,o=o+Math.imul(D,er)|0,r=r+Math.imul(O,eo)|0,i=(i=i+Math.imul(O,ea)|0)+Math.imul(P,eo)|0,o=o+Math.imul(P,ea)|0,r=r+Math.imul(R,el)|0,i=(i=i+Math.imul(R,eu)|0)+Math.imul(I,el)|0,o=o+Math.imul(I,eu)|0,r=r+Math.imul(M,ed)|0,i=(i=i+Math.imul(M,ef)|0)+Math.imul(C,ed)|0,o=o+Math.imul(C,ef)|0;var eR=(u+(r=r+Math.imul(E,ep)|0)|0)+((8191&(i=(i=i+Math.imul(E,em)|0)+Math.imul(S,ep)|0))<<13)|0;u=((o=o+Math.imul(S,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,r=Math.imul(j,en),i=(i=Math.imul(j,er))+Math.imul(F,en)|0,o=Math.imul(F,er),r=r+Math.imul(N,eo)|0,i=(i=i+Math.imul(N,ea)|0)+Math.imul(D,eo)|0,o=o+Math.imul(D,ea)|0,r=r+Math.imul(O,el)|0,i=(i=i+Math.imul(O,eu)|0)+Math.imul(P,el)|0,o=o+Math.imul(P,eu)|0,r=r+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ed)|0,o=o+Math.imul(I,ef)|0;var eI=(u+(r=r+Math.imul(M,ep)|0)|0)+((8191&(i=(i=i+Math.imul(M,em)|0)+Math.imul(C,ep)|0))<<13)|0;u=((o=o+Math.imul(C,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,r=Math.imul(j,eo),i=(i=Math.imul(j,ea))+Math.imul(F,eo)|0,o=Math.imul(F,ea),r=r+Math.imul(N,el)|0,i=(i=i+Math.imul(N,eu)|0)+Math.imul(D,el)|0,o=o+Math.imul(D,eu)|0,r=r+Math.imul(O,ed)|0,i=(i=i+Math.imul(O,ef)|0)+Math.imul(P,ed)|0,o=o+Math.imul(P,ef)|0;var eT=(u+(r=r+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;u=((o=o+Math.imul(I,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,r=Math.imul(j,el),i=(i=Math.imul(j,eu))+Math.imul(F,el)|0,o=Math.imul(F,eu),r=r+Math.imul(N,ed)|0,i=(i=i+Math.imul(N,ef)|0)+Math.imul(D,ed)|0,o=o+Math.imul(D,ef)|0;var eO=(u+(r=r+Math.imul(O,ep)|0)|0)+((8191&(i=(i=i+Math.imul(O,em)|0)+Math.imul(P,ep)|0))<<13)|0;u=((o=o+Math.imul(P,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863,r=Math.imul(j,ed),i=(i=Math.imul(j,ef))+Math.imul(F,ed)|0,o=Math.imul(F,ef);var eP=(u+(r=r+Math.imul(N,ep)|0)|0)+((8191&(i=(i=i+Math.imul(N,em)|0)+Math.imul(D,ep)|0))<<13)|0;u=((o=o+Math.imul(D,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863;var eL=(u+(r=Math.imul(j,ep))|0)+((8191&(i=(i=Math.imul(j,em))+Math.imul(F,ep)|0))<<13)|0;return u=((o=Math.imul(F,em))+(i>>>13)|0)+(eL>>>26)|0,eL&=67108863,l[0]=eg,l[1]=ev,l[2]=eb,l[3]=ey,l[4]=eA,l[5]=ew,l[6]=e_,l[7]=eE,l[8]=eS,l[9]=ek,l[10]=eM,l[11]=eC,l[12]=ex,l[13]=eR,l[14]=eI,l[15]=eT,l[16]=eO,l[17]=eP,l[18]=eL,0!==u&&(l[19]=u,n.length++),n};function p(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=f),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?h(this,e,t):n<63?f(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,l=Math.min(o,t.length-1),u=Math.max(0,o-e.length+1);u<=l;u++){var c=o-u,d=(0|e.words[c])*(0|t.words[u]),f=67108863&d;s=67108863&(f=f+s|0),i+=(a=(a=a+(d/67108864|0)|0)+(f>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):p(this,e,t)},m.prototype.makeRBT=function(e){for(var t=Array(e),n=i.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},m.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},m.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a<o;a++)r[a]=t[e[a]],i[a]=n[e[a]]},m.prototype.transform=function(e,t,n,r,i,o){this.permute(o,e,t,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var d=l,f=u,h=0;h<a;h++){var p=n[c+h],m=r[c+h],g=n[c+h+a],v=r[c+h+a],b=d*g-f*v;v=d*v+f*g,g=b,n[c+h]=p+g,r[c+h]=m+v,n[c+h+a]=p-g,r[c+h+a]=m-v,h!==s&&(b=l*d-u*f,f=l*f+u*d,d=b)}},m.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},m.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},m.prototype.stub=function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=0;return t},m.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),o=this.stub(r),a=Array(r),s=Array(r),l=Array(r),u=Array(r),c=Array(r),d=Array(r),f=n.words;f.length=r,this.convert13b(e.words,e.length,a,r),this.convert13b(t.words,t.length,u,r),this.transform(a,o,s,l,r,i),this.transform(u,o,c,d,r,i);for(var h=0;h<r;h++){var p=s[h]*c[h]-l[h]*d[h];l[h]=s[h]*d[h]+l[h]*c[h],s[h]=p}return this.conjugate(s,l,r),this.transform(s,l,f,o,r,i),this.conjugate(f,o,r),this.normalize13b(f,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=Array(this.length+e.length),p(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=(i/67108864|0)+(o>>>26),this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var o=n.sqr();r<t.length;r++,o=o.sqr())0!==t[r]&&(n=n.mul(o));return n},i.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<r;this.words[t]=l|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},i.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var i,o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o;if(i-=a,i=Math.max(0,i),r){for(var l=0;l<a;l++)r.words[l]=this.words[l];r.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var c=0|this.words[l];this.words[l]=u<<26-o|c>>>o,u=c&s}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<<t)},i.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<<t),this.strip())},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var l=(0|e.words[i])*t;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>
vendor: 4,727 bytes, line 1
126,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,l=r.length-o.length;if("mod"!==t){(s=new i(null)).length=l+1,s.words=Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var c=r.clone()._ishlnsubmul(o,1,l);0===c.negative&&(r=c,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var f=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(f=Math.min(f/a|0,67108863),r._ishlnsubmul(o,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){var o,a,s;return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},i.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),l=new i(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(l)):(r.isub(t),s.isub(o),l.isub(a))}return{a:s,b:l,gcd:r.iushln(u)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),l=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,c=1;0==(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,f=1;0==(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return 0>(o=0===t.cmpn(1)?a:s).cmpn(0)&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;
vendor: 5,663 bytes, line 1
1if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return -1===this.cmpn(e)},i.prototype.lt=function(e){return -1===this.cmp(e)},i.prototype.lten=function(e){return 0>=this.cmpn(e)},i.prototype.lte=function(e){return 0>=this.cmp(e)},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength();while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},r(b,v),b.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(y,v),r(A,v),r(w,v),w.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){var t;if(g[e])return g[e];
vendor: 8,495 bytes, line 1
1if("k256"===e)t=new b;else if("p224"===e)t=new y;else if("p192"===e)t=new A;else{if("p25519"!==e)throw Error("Unknown prime "+e);t=new w}return g[e]=t,t},_.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return 0>n.cmpn(0)&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return 0>n.cmpn(0)&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var d=this.pow(c,o),f=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<p);var v=this.pow(d,new i(1).iushln(p-g-1));f=f.redMul(v),d=v.redSqr(),h=h.redMul(d),p=g}return f},_.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},_.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=Array(16);n[0]=new i(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var o=n[0],a=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),r=t.length-1;r>=0;r--){for(var u=t.words[r],c=l-1;c>=0;c--){var d=u>>c&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===r&&0===c)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}l=26}return o},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new E(e)},r(E,_),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):0>o.cmpn(0)&&(a=o.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(ue,l);var ut=ue.exports;function un(e,t){if(!e)throw Error(t||"Assertion failed")}un.equal=function(e,t,n){if(e!=t)throw Error(n||"Assertion failed: "+e+" != "+t)};var ur={};(function(e){function t(e){return 1===e.length?"0"+e:e}function n(e){for(var n="",r=0;r<e.length;r++)n+=t(e[r].toString(16));return n}e.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16));else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),o=i>>8,a=255&i;o?n.push(o,a):n.push(a)}return n},e.zero2=t,e.toHex=n,e.encode=function(e,t){return"hex"===t?n(e):e}})(ur),l9.assert=un,l9.toArray=ur.toArray,l9.zero2=ur.zero2,l9.toHex=ur.toHex,l9.encode=ur.encode,l9.getNAF=function(e,t,n){var r=Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<r.length;a++){var s,l=o.andln(i-1);o.isOdd()?(s=l>(i>>1)-1?(i>>1)-l:l,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},l9.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,l=e.andln(3)+i&3,u=t.andln(3)+o&3;3===l&&(l=-1),3===u&&(u=-1),a=0==(1&l)?0:3!=(r=e.andln(7)+i&7)&&5!==r||2!==u?l:-l,n[0].push(a),s=0==(1&u)?0:3!=(r=t.andln(7)+o&7)&&5!==r||2!==l?u:-u,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},l9.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},l9.parseBytes=function(e){return"string"==typeof e?l9.toArray(e,"hex"):e},l9.intFromLE=function(e){return new ut(e,"hex","le")};var ui,uo={exports:{}};function ua(e){this.rand=e}if(uo.exports=function(e){return ui||(ui=new ua(null)),ui.generate(e)},uo.exports.Rand=ua,ua.prototype.generate=function(e){return this._rand(e)},ua.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?ua.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?ua.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(ua.prototype._rand=function(){throw Error("Not implemented yet")});else try{var us=lq();if("function"!=typeof us.randomBytes)throw Error("Not supported");ua.prototype._rand=function(e){return us.randomBytes(e)}}catch(e){}var ul=uo.exports,uu={},uc=l9.getNAF,ud=l9.getJSF,uf=l9.assert;function uh(e,t){this.type=e,this.p=new ut(t.p,16),this.red=t.prime?ut.red(t.prime):ut.mont(this.p),this.zero=new ut(0).toRed(this.red),this.one=new ut(1).toRed(this.red),this.two=new ut(2).toRed(this.red),this.n=t.n&&new ut(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function up(e,t){this.curve=e,this.type=t,this.precomputed=null}uh.prototype.point=function(){throw Error("Not implemented")},uh.prototype.validate=function(){throw Error("Not implemented")},uh.prototype._fixedNafMul=function(e,t){uf(e.precomputed);var n=e._getDoubles(),r=uc(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;var o,a,s=[];for(o=0;o<r.length;o+=n.step){a=0;for(var l=o+n.step-1;l>=o;l--)a=(a<<1)+r[l];s.push(a)}for(var u=this.jpoint(null,null,null),c=this.jpoint(null,null,null),d=i;d>0;d--){for(o=0;o<s.length;o++)(a=s[o])===d?c=c.mixedAdd(n.points[o]):a===-d&&(c=c.mixedAdd(n.points[o].neg()));u=u.add(c)}return u.toP()},uh.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,o=uc(t,n,this._bitLength),a=this.jpoint(null,null,null),s=o.length-1;s>=0;s--){for(var l=0;s>=0&&0===o[s];s--)l++;if(s>=0&&l++,a=a.dblp(l),s<0)break;var u=o[s];uf(0!==u),a="affine"===e.type?u>0?a.mixedAdd(i[u-1>>1]):a.mixedAdd(i[-u-1>>1].neg()):u>0?a.add(i[u-1>>1]):a.add(i[-u-1>>1].neg())}return"affine"===e.type?a.toP():a},uh.prototype._wnafMulAdd=function(e,t,n,r,i){var o,a,s,l=this._wnafT1,u=this._wnafT2,c=this._wnafT3,d=0;for(o=0;o<r;o++){var f=(s=t[o])._getNAFPoints(e);l[o]=f.wnd,u[o]=f.points}for(o=r-1;o>=1;o-=2){var h=o-1,p=o;if(1===l[h]&&1===l[p]){var m=[t[h],null,null,t[p]];0===t[h].y.cmp(t[p].y)?(m[1]=t[h].add(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg())):0===t[h].y.cmp(t[p].y.redNeg())?(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].add(t[p].neg())):(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].toJ().mi
vendor: 5,544 bytes, line 1
1xedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],v=ud(n[h],n[p]);for(d=Math.max(v[0].length,d),c[h]=Array(d),c[p]=Array(d),a=0;a<d;a++){var b=0|v[0][a],y=0|v[1][a];c[h][a]=g[3*(b+1)+(y+1)],c[p][a]=0,u[h]=m}}else c[h]=uc(n[h],l[h],this._bitLength),c[p]=uc(n[p],l[p],this._bitLength),d=Math.max(c[h].length,d),d=Math.max(c[p].length,d)}var A=this.jpoint(null,null,null),w=this._wnafT4;for(o=d;o>=0;o--){for(var _=0;o>=0;){var E=!0;for(a=0;a<r;a++)w[a]=0|c[a][o],0!==w[a]&&(E=!1);if(!E)break;_++,o--}if(o>=0&&_++,A=A.dblp(_),o<0)break;for(a=0;a<r;a++){var S=w[a];0!==S&&(S>0?s=u[a][S-1>>1]:S<0&&(s=u[a][-S-1>>1].neg()),A="affine"===s.type?A.mixedAdd(s):A.add(s))}}for(o=0;o<r;o++)u[o]=null;return i?A:A.toP()},uh.BasePoint=up,up.prototype.eq=function(){throw Error("Not implemented")},up.prototype.validate=function(){return this.curve.validate(this)},uh.prototype.decodePoint=function(e,t){e=l9.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?uf(e[e.length-1]%2==0):7===e[0]&&uf(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw Error("Unknown point format")},up.prototype.encodeCompressed=function(e){return this.encode(e,!0)},up.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},up.prototype.encode=function(e,t){return l9.encode(this._encode(t),e)},up.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},up.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},up.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)r=r.dbl();n.push(r)}return{step:e,points:n}},up.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},up.prototype._getBeta=function(){return null},up.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t};var um={exports:{}};"function"==typeof Object.create?um.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:um.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}};var ug=um.exports,uv=l9.assert;function ub(e){uh.call(this,"short",e),this.a=new ut(e.a,16).toRed(this.red),this.b=new ut(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function uy(e,t,n,r){uh.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new ut(t,16),this.y=new ut(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function uA(e,t,n,r){uh.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new ut(0)):(this.x=new ut(t,16),this.y=new ut(n,16),this.z=new ut(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}function uw(e){uh.call(this,"mont",e),this.a=new ut(e.a,16).toRed(this.red),this.b=new ut(e.b,16).toRed(this.red),this.i4=new ut(4).toRed(this.red).redInvm(),this.two=new ut(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u_(e,t,n){uh.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new ut(t,16),this.z=new ut(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}ug(ub,uh),ub.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new ut(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=0>r[0].cmp(r[1])?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new ut(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?n=i[0]:(n=i[1],uv(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map(function(e){return{a:new ut(e.a,16),b:new ut(e.b,16)}}):this._getEndoBasis(n)}}},ub.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:ut.mont(e),n=new ut(2).toRed(t).redInvm(),r=n.redNeg(),i=new ut(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(i).fromRed(),r.redSub(i).fromRed()]},ub.prototype._getEndoBasis=function(e){for(var t,n,r,i,o,a,s,l,u,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,f=this.n.clone(),h=new ut(1),p=new ut(0),m=new ut(0),g=new ut(1),v=0;0!==d.cmpn(0);){var b=f.div(d);l=f.sub(b.mul(d)),u=m.sub(b.mul(h));var y=g.sub(b.mul(p));if(!r&&0>l.cmp(c))t=s.neg(),n=h,r=l.neg(),i=u;else if(r&&2==++v)break;
vendor: 13,379 bytes, line 1
1s=l,f=d,d=l,m=h,h=u,g=p,p=y}o=l.neg(),a=u;var A=r.sqr().add(i.sqr());return o.sqr().add(a.sqr()).cmp(A)>=0&&(o=t,a=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:r,b:i},{a:o,b:a}]},ub.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),l=i.mul(n.b),u=o.mul(r.b);return{k1:e.sub(a).sub(s),k2:l.add(u).neg()}},ub.prototype.pointFromX=function(e,t){(e=new ut(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw Error("invalid point");var i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},ub.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},ub.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],l=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),l=l.neg(!0)),r[2*o]=s,r[2*o+1]=l,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var u=this._wnafMulAdd(1,r,i,2*o,n),c=0;c<2*o;c++)r[c]=null,i[c]=null;return u},ug(uy,uh.BasePoint),ub.prototype.point=function(e,t,n){return new uy(this,e,t,n)},ub.prototype.pointFromJSON=function(e,t){return uy.fromJSON(this,e,t)},uy.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},uy.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},uy.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var o=t[2];return r.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[r].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[r].concat(o.naf.points.map(i))}},r},uy.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},uy.prototype.isInfinity=function(){return this.inf},uy.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},uy.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},uy.prototype.getX=function(){return this.x.fromRed()},uy.prototype.getY=function(){return this.y.fromRed()},uy.prototype.mul=function(e){return e=new ut(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},uy.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},uy.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},uy.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},uy.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},uy.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},ug(uA,uh.BasePoint),ub.prototype.jpoint=function(e,t,n){return new uA(this,e,t,n)},uA.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},uA.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},uA.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),l=o.redSub(a);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),d=r.redMul(u),f=l.redSqr().redIAdd(c).redISub(d).redISub(d),h=l.redMul(d.redISub(f)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,h,p)},uA.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),u=l.redMul(a),c=n.redMul(l),d=s.redSqr().redIAdd(u).redISub(c).redISub(c),f=s.redMul(c.redISub(d)).redISub(i.redMul(u)),h=this.z.redMul(a);return this.curve.jpoint(d,f,h)},uA.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,n=this;for(t=0;t<e;t++)n=n.dbl();return n}var r=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,l=s.redSqr().redSqr(),u=a.redAdd(a);for(t=0;t<e;t++){var c=o.redSqr(),d=u.redSqr(),f=d.redSqr(),h=c.redAdd(c).redIAdd(c).redIAdd(r.redMul(l)),p=o.redMul(d),m=h.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),v=h.redMul(g);v=v.redIAdd(v).redISub(f);var b=u.redMul(s);t+1<e&&(l=l.redMul(f)),o=m,s=b,u=v}return this.curve.jpoint(o,u.redMul(i),s)},uA.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},uA.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r),l=s.redSqr().redISub(a).redISub(a),u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),e=l,t=s.redMul(a.redISub(l)).redISub(u),n=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),d=this.y.redSqr(),f=d.redSqr(),h=this.x.redAdd(d).redSqr().redISub(c).redISub(f);h=h.redIAdd(h);var p=c.redAdd(c).redIAdd(c),m=p.redSqr(),g=f.redIAdd(f);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(g),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},uA.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),l=s.redSqr().redISub(a).redISub(a);e=l;var u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),t=s.redMul(a.redISub(l)).redISub(u),n=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),d=this.y.redSqr(),f=this.x.redMul(d),h=this.x.redSub(c).redMul(this.x.redAdd(c));h=h.redAdd(h).redIAdd(h);var p=f.redIAdd(f),m=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(d).redISub(c);var g=d.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=h.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,n)},uA.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),o=t.redSqr(),a=n.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),l=t.redAdd(t),u=(l=l.redIAdd(l)).redMul(a),c=s.redSqr().redISub(u.redAdd(u)),d=u.redISub(c),f=a.redSqr();f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var h=s.redMul(d).redISub(f),p=n.redAdd(n).redMul(r);return this.curve.jpoint(c,h,p)},uA.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),l=r.redIAdd(r);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var u=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(l),c=t.redMul(u);c=(c=c.redIAdd(c)).redIAdd(c);var d=this.x.redMul(s).redISub(c);d=(d=d.redIAdd(d)).redIAdd(d);var f=this.y.redMul(u.redMul(l.redISub(u)).redISub(a.redMul(s)));f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var h=this.z.redAdd(a).redSqr().redISub(n).redISub(s);return this.curve.jpoint(d,f,h)},uA.prototype.mul=function(e,t){return e=new ut(e,t),this.curve._wnafMul(this,e)},uA.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},uA.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},uA.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},uA.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},ug(uw,uh),uw.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},ug(u_,uh.BasePoint),uw.prototype.decodePoint=function(e,t){return this.point(l9.toArray(e,t),1)},uw.prototype.point=function(e,t){return new u_(this,e,t)},uw.prototype.pointFromJSON=function(e){return u_.fromJSON(this,e)},u_.prototype.precompute=function(){},u_.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u_.fromJSON=function(e,t){return new u_(e,t[0],t[1]||e.one)},u_.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u_.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u_.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},u_.prototype.add=function(){throw Error("Not supported on Montgomery curve")},u_.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(n),a=i.redMul(r),s=t.z.redMul(o.redAdd(a).redSqr()),l=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,l)},u_.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},u_.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},u_.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},u_.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u_.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u_.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var uE=l9.assert;function uS(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,uh.call(this,"edwards",e),this.a=new ut(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new ut(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new ut(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),uE(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function uk(e,t,n,r,i){uh.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new ut(t,16),this.y=new ut(n,16),this.z=r?new ut(r,16):this.curve.one,this.t=i&&new ut(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}
1ug(uS,uh),uS.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},uS.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},uS.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},uS.prototype.pointFromX=function(e,t){(e=new ut(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=r.redMul(i.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw Error("invalid point");var s=a.fromRed().isOdd();return(t&&!s||!t&&s)&&(a=a.redNeg()),this.point(e,a)},uS.prototype.pointFromY=function(e,t){(e=new ut(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=r.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(t)throw Error("invalid point");return this.point(this.zero,e)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw Error("invalid point");return a.fromRed().isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},uS.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},ug(uk,uh.BasePoint),uS.prototype.pointFromJSON=function(e){return uk.fromJSON(this,e)},uS.prototype.point=function(e,t,n,r){return new uk(this,e,t,n,r)},uk.fromJSON=function(e,t){return new uk(e,t[0],t[1],t[2])},uk.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},uk.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},uk.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=r.redAdd(t),a=o.redSub(n),s=r.redSub(t),l=i.redMul(a),u=o.redMul(s),c=i.redMul(s),d=a.redMul(o);return this.curve.point(l,u,d,c)},uk.prototype._projDbl=function(){var e,t,n,r,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),l=this.y.redSqr();if(this.curve.twisted){var u=(r=this.curve._mulA(s)).redAdd(l);this.zOne?(e=a.redSub(s).redSub(l).redMul(u.redSub(this.curve.two)),t=u.redMul(r.redSub(l)),n=u.redSqr().redSub(u).redSub(u)):(i=this.z.redSqr(),o=u.redSub(i).redISub(i),e=a.redSub(s).redISub(l).redMul(o),t=u.redMul(r.redSub(l)),n=u.redMul(o))}else r=s.redAdd(l),i=this.curve._mulC(this.z).redSqr(),o=r.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(r)).redMul(o),t=this.curve._mulC(r).redMul(s.redISub(l)),n=r.redMul(o);return this.curve.point(e,t,n)},uk.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},uk.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=n.redSub(t),a=i.redSub(r),s=i.redAdd(r),l=n.redAdd(t),u=o.redMul(a),c=s.redMul(l),d=o.redMul(l),f=a.redMul(s);return this.curve.point(u,c,f,d)},uk.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),l=i.redSub(s),u=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=r.redMul(l).redMul(c);return this.curve.twisted?(t=r.redMul(u).redMul(a.redSub(this.curve._mulA(o))),n=l.redMul(u)):(t=r.redMul(u).redMul(a.redSub(o)),n=this.curve._mulC(l).redMul(u)),this.curve.point(d,t,n)},uk.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},uk.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},uk.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},uk.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},uk.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},uk.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},uk.prototype.getX=function(){return this.normalize(),this.x.fromRed()},uk.prototype.getY=function(){return this.normalize(),this.y.fromRed()},uk.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},uk.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},uk.prototype.toP=uk.prototype.normalize,uk.prototype.mixedAdd=uk.prototype.add,uu.base=uh,uu.short=ub,uu.mont=uw,uu.edwards=uS;var uM={},uC={},ux={};function uR(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function uI(e){return 1===e.length?"0"+e:e}function uT(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}ux.inherits=ug,ux.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e){if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var o,a,s=e.charCodeAt(i);s<128?n[r++]=s:(s<2048?n[r++]=s>>6|192:((o=e,a=i,55296!=(64512&o.charCodeAt(a))||a<0||a+1>=o.length||56320!=(64512&o.charCodeAt(a+1)))?n[r++]=s>>12|224:(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128),n[r++]=s>>6&63|128),n[r++]=63&s|128)}}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},ux.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=uI(e[n].toString(16));return t},ux.htonl=uR,ux.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=uR(i)),n+=uT(i.toString(16))}return n},ux.zero2=uI,ux.zero8=uT,ux.join32=function(e,t,n,r){var i,o=n-t;un(o%4==0);for(var a=Array(o/4),s=0,l=t;s<a.length;s++,l+=4)i="big"===r?e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]:e[l+3]<<24|e[l+2]<<16|e[l+1]<<8|e[l],a[s]=i>>>0;return a},ux.split32=function(e,t){for(var n=Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},ux.rotr32=function(e,t){return e>>>t|e<<32-t},ux.rotl32=function(e,t){return e<<t|e>>>32-t},ux.sum32=function(e,t){return e+t>>>0},ux.sum32_3=function(e,t,n){return e+t+n>>>0},ux.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},ux.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},ux.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0;e[t]=(o<r?1:0)+n+i>>>
10,e[t+1]=o},ux.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},ux.sum64_lo=function(e,t,n,r){return t+r>>>0},ux.sum64_4_hi=function(e,t,n,r,i,o,a,s){var l=t;return e+n+i+a+(0+(((l=l+r>>>0)<t?1:0)+((l=l+o>>>0)<o?1:0)+((l=l+s>>>0)<s?1:0)))>>>0},ux.sum64_4_lo=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0},ux.sum64_5_hi=function(e,t,n,r,i,o,a,s,l,u){var c=t;return e+n+i+a+l+(0+(((c=c+r>>>0)<t?1:0)+((c=c+o>>>0)<o?1:0)+((c=c+s>>>0)<s?1:0)+((c=c+u>>>0)<u?1:0)))>>>0},ux.sum64_5_lo=function(e,t,n,r,i,o,a,s,l,u){return t+r+o+s+u>>>0},ux.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},ux.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},ux.shr64_hi=function(e,t,n){return e>>>n},ux.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0};var uO={};function uP(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}uO.BlockHash=uP,uP.prototype.update=function(e,t){if(e=ux.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=ux.join32(e,0,e.length-n,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},uP.prototype.digest=function(e){return this.update(this._pad()),un(null===this.pending),this._digest(e)},uP.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r};var uL={},uN={},uD=ux.rotr32;function uB(e,t,n){return e&t^e&n^t&n}uN.ft_1=function(e,t,n,r){return 0===e?t&n^~t&r:1===e||3===e?t^n^r:2===e?uB(t,n,r):void 0},uN.ch32=function(e,t,n){return e&t^~e&n},uN.maj32=uB,uN.p32=function(e,t,n){return e^t^n},uN.s0_256=function(e){return uD(e,2)^uD(e,13)^uD(e,22)},uN.s1_256=function(e){return uD(e,6)^uD(e,11)^uD(e,25)},uN.g0_256=function(e){return uD(e,7)^uD(e,18)^e>>>3},uN.g1_256=function(e){return uD(e,17)^uD(e,19)^e>>>10};var uj=ux.rotl32,uF=ux.sum32,uz=ux.sum32_5,uU=uN.ft_1,uq=uO.BlockHash,uK=[1518500249,1859775393,2400959708,3395469782];function uH(){if(!(this instanceof uH))return new uH;uq.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}ux.inherits(uH,uq),uH.blockSize=512,uH.outSize=160,uH.hmacStrength=80,uH.padLength=64,uH.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=uj(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],a=this.h[2],s=this.h[3],l=this.h[4];for(r=0;r<n.length;r++){var u=~~(r/20),c=uz(uj(i,5),uU(u,o,a,s),l,n[r],uK[u]);l=s,s=a,a=uj(o,30),o=i,i=c}this.h[0]=uF(this.h[0],i),this.h[1]=uF(this.h[1],o),this.h[2]=uF(this.h[2],a),this.h[3]=uF(this.h[3],s),this.h[4]=uF(this.h[4],l)},uH.prototype._digest=function(e){return"hex"===e?ux.toHex32(this.h,"big"):ux.split32(this.h,"big")};var uV=ux.sum32,u$=ux.sum32_4,uW=ux.sum32_5,uY=uN.ch32,uG=uN.maj32,uQ=uN.s0_256,uZ=uN.s1_256,uJ=uN.g0_256,uX=uN.g1_256,u0=uO.BlockHash,u1=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
vendor: 3,202 bytes, line 1
1734187,3204031479,3329325298];function u2(){if(!(this instanceof u2))return new u2;u0.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=u1,this.W=Array(64)}function u3(){if(!(this instanceof u3))return new u3;u2.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}ux.inherits(u2,u0),u2.blockSize=512,u2.outSize=256,u2.hmacStrength=192,u2.padLength=64,u2.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=u$(uX(n[r-2]),n[r-7],uJ(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],a=this.h[2],s=this.h[3],l=this.h[4],u=this.h[5],c=this.h[6],d=this.h[7];for(un(this.k.length===n.length),r=0;r<n.length;r++){var f=uW(d,uZ(l),uY(l,u,c),this.k[r],n[r]),h=uV(uQ(i),uG(i,o,a));d=c,c=u,u=l,l=uV(s,f),s=a,a=o,o=i,i=uV(f,h)}this.h[0]=uV(this.h[0],i),this.h[1]=uV(this.h[1],o),this.h[2]=uV(this.h[2],a),this.h[3]=uV(this.h[3],s),this.h[4]=uV(this.h[4],l),this.h[5]=uV(this.h[5],u),this.h[6]=uV(this.h[6],c),this.h[7]=uV(this.h[7],d)},u2.prototype._digest=function(e){return"hex"===e?ux.toHex32(this.h,"big"):ux.split32(this.h,"big")},ux.inherits(u3,u2),u3.blockSize=512,u3.outSize=224,u3.hmacStrength=192,u3.padLength=64,u3.prototype._digest=function(e){return"hex"===e?ux.toHex32(this.h.slice(0,7),"big"):ux.split32(this.h.slice(0,7),"big")};var u6=ux.rotr64_hi,u4=ux.rotr64_lo,u8=ux.shr64_hi,u5=ux.shr64_lo,u7=ux.sum64,u9=ux.sum64_hi,ce=ux.sum64_lo,ct=ux.sum64_4_hi,cn=ux.sum64_4_lo,cr=ux.sum64_5_hi,ci=ux.sum64_5_lo,co=uO.BlockHash,ca=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
11126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function cs(){if(!(this instanceof cs))return new cs;co.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=ca,this.W=Array(160)}function cl(){if(!(this instanceof cl))return new cl;cs.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}ux.inherits(cs,co),cs.blockSize=1024,cs.outSize=512,cs.hmacStrength=192,cs.padLength=128,cs.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=function(e,t){var n=u6(e,t,19)^u6(t,e,29)^u8(e,t,6);return n<0&&(n+=4294967296),n}(n[r-4],n[r-3]),o=function(e,t){var n=u4(e,t,19)^u4(t,e,29)^u5(e,t,6);return n<0&&(n+=4294967296),n}(n[r-4],n[r-3]),a=n[r-14],s=n[r-13],l=function(e,t){var n=u6(e,t,1)^u6(e,t,8)^u8(e,t,7);return n<0&&(n+=4294967296),n}(n[r-30],n[r-29]),u=function(e,t){var n=u4(e,t,1)^u4(e,t,8)^u5(e,t,7);return n<0&&(n+=4294967296),n}(n[r-30],n[r-29]),c=n[r-32],d=n[r-31];n[r]=ct(i,o,a,s,l,u,c,d),n[r+1]=cn(i,o,a,s,l,u,c,d)}},cs.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],o=this.h[2],a=this.h[3],s=this.h[4],l=this.h[5],u=this.h[6],c=this.h[7],d=this.h[8],f=this.h[9],h=this.h[10],p=this.h[11],m=this.h[12],g=this.h[13],v=this.h[14],b=this.h[15];un(this.k.length===n.length);for(var y=0;y<n.length;y+=2){var A=v,w=b,_=function(e,t){var n=u6(e,t,14)^u6(e,t,18)^u6(t,e,9);return n<0&&(n+=4294967296),n}(d,f),E=function(e,t){var n=u4(e,t,14)^u4(e,t,18)^u4(t,e,9);return n<0&&(n+=4294967296),n}(d,f),S=function(e,t,n,r,i){var o=e&n^~e&i;return o<0&&(o+=4294967296),o}(d,0,h,0,m),k=function(e,t,n,r,i,o){var a=t&r^~t&o;return a<0&&(a+=4294967296),a}(0,f,0,p,0,g),M=this.k[y],C=this.k[y+1],x=n[y],R=n[y+1],I=cr(A,w,_,E,S,k,M,C,x,R),T=ci(A,w,_,E,S,k,M,C,x,R);A=function(e,t){var n=u6(e,t,28)^u6(t,e,2)^u6(t,e,7);return n<0&&(n+=4294967296),n}(r,i);var O=u9(A,w=function(e,t){var n=u4(e,t,28)^u4(t,e,2)^u4(t,e,7);return n<0&&(n+=4294967296),n}(r,i),_=function(e,t,n,r,i){var o=e&n^e&i^n&i;return o<0&&(o+=4294967296),o}(r,0,o,0,s),E=function(e,t,n,r,i,o){var a=t&r^t&o^r&o;return a<0&&(a+=4294967296),a}(0,i,0,a,0,l)),P=ce(A,w,_,E);v=m,b=g,m=h,g=p,h=d,p=f,d=u9(u,c,I,T),f=ce(c,c,I,T),u=s,c=l,s=o,l=a,o=r,a=i,r=u9(I,T,O,P),i=ce(I,T,O,P)}u7(this.h,0,r,i),u7(this.h,2,o,a),u7(this.h,4,s,l),u7(this.h,6,u,c),u7(this.h,8,d,f),u7(this.h,10,h,p),u7(this.h,12,m,g),u7(this.h,14,v,b)},cs.prototype._digest=function(e){return"hex"===e?ux.toHex32(this.h,"big"):ux.split32(this.h,"big")},ux.inherits(cl,cs),cl.blockSize=1024,cl.outSize=384,cl.hmacStrength=192,cl.padLength=128,cl.prototype._digest=function(e){return"hex"===e?ux.toHex32(this.h.slice(0,12),"big"):ux.split32(this.h.slice(0,12),"big")},uL.sha1=uH,uL.sha224=u3,uL.sha256=u2,uL.sha384=cl,uL.sha512=cs;var cu={},cc=ux.rotl32,cd=ux.sum32,cf=ux.sum32_3,ch=ux.sum32_4,cp=uO.BlockHash;function cm(){if(!(this instanceof cm))return new cm;cp.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function cg(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}ux.inherits(cm,cp),cu.ripemd160=cm,cm.blockSize=512,cm.outSize=160,cm.hmacStrength=192,cm.padLength=64,cm.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],o=this.h[3],a=this.h[4],s=n,l=r,u=i,c=o,d=a,f=0;f<80;f++){var h,p,m=cd(cc(ch(n,cg(f,r,i,o),e[cv[f]+t],(h=f)<=15?0:h<=31?1518500249:h<=47?1859775393:h<=63?2400959708:2840853838),cy[f]),a);n=a,a=o,o=cc(i,10),i=r,r=m,m=cd(cc(ch(s,cg(79-f,l,u,c),e[cb[f]+t],(p=f)<=15?1352829926:p<=31?1548603684:p<=47?1836072691:p<=63?2053994217:0),cA[f]),d),s=d,d=c,c=cc(u,10),u=l,l=m}m=cf(this.h[1],i,c),this.h[1]=cf(this.h[2],o,d),this.h[2]=cf(this.h[3],a,s),this.h[3]=cf(this.h[4],n,l),this.h[4]=cf(this.h[0],r,u),this.h[0]=m},cm.prototype._digest=function(e){return"hex"===e?ux.toHex32(this.h,"little"):ux.split32(this.h,"little")};var cv=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],cb=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],cy=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],cA=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];function cw(e,t,n){if(!(this instanceof cw))return new cw(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(ux.toArray(t,n))}function c_(e){if(!(this instanceof c_))return new c_(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;
vendor: 5,252 bytes, line 1
1var t=ur.toArray(e.entropy,e.entropyEnc||"hex"),n=ur.toArray(e.nonce,e.nonceEnc||"hex"),r=ur.toArray(e.pers,e.persEnc||"hex");un(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}cw.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),un(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},cw.prototype.update=function(e,t){return this.inner.update(e,t),this},cw.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)},uC.utils=ux,uC.common=uO,uC.sha=uL,uC.ripemd=cu,uC.hmac=cw,uC.sha1=uC.sha.sha1,uC.sha256=uC.sha.sha256,uC.sha224=uC.sha.sha224,uC.sha384=uC.sha.sha384,uC.sha512=uC.sha.sha512,uC.ripemd160=uC.ripemd.ripemd160,function(e){var t,n=l9.assert;function r(e){"short"===e.type?this.curve=new uu.short(e):"edwards"===e.type?this.curve=new uu.edwards(e):this.curve=new uu.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function i(t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var i=new r(n);return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:i}),i}})}e.PresetCurve=r,i("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:uC.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),i("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:uC.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),i("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:uC.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),i("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:uC.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),i("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:uC.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),i("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:uC.sha256,gRed:!1,g:["9"]}),i("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:uC.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{t=di?dr:(di=1,dr
vendor: 26,127 bytes, line 1
1={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}
1)}catch(e){t=void 0}i("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:uC.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",t]})}(uM),c_.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},c_.prototype._hmac=function(){return new uC.hmac(this.hash,this.K)},c_.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([
vendor: 4,603 bytes, line 1
11]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},c_.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=ur.toArray(e,t),n=ur.toArray(n,r),un(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},c_.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=ur.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,e);return this._update(n),this._reseed++,ur.encode(o,t)};var cE=l9.assert;function cS(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}cS.fromPublic=function(e,t,n){return t instanceof cS?t:new cS(e,{pub:t,pubEnc:n})},cS.fromPrivate=function(e,t,n){return t instanceof cS?t:new cS(e,{priv:t,privEnc:n})},cS.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},cS.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},cS.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},cS.prototype._importPrivate=function(e,t){this.priv=new ut(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},cS.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?cE(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||cE(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},cS.prototype.derive=function(e){return e.validate()||cE(e.validate(),"public point not validated"),e.mul(this.priv).getX()},cS.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},cS.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},cS.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var ck=l9.assert;function cM(e,t){if(e instanceof cM)return e;this._importDER(e,t)||(ck(e.r&&e.s,"Signature without r or s"),this.r=new ut(e.r,16),this.s=new ut(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function cC(){this.place=0}function cx(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=t.place;o<r;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function cR(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function cI(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}cM.prototype._importDER=function(e,t){e=l9.toArray(e,t);var n=new cC;if(48!==e[n.place++])return!1;var r=cx(e,n);if(!1===r||r+n.place!==e.length||2!==e[n.place++])return!1;var i=cx(e,n);if(!1===i)return!1;var o=e.slice(n.place,i+n.place);if(n.place+=i,2!==e[n.place++])return!1;var a=cx(e,n);if(!1===a||e.length!==a+n.place)return!1;var s=e.slice(n.place,a+n.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new ut(o),this.s=new ut(s),this.recoveryParam=null,!0},cM.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=cR(t),n=cR(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];cI(r,t.length),(r=r.concat(t)).push(2),cI(r,n.length);var i=r.concat(n),o=[48];return cI(o,i.length),o=o.concat(i),l9.encode(o,e)};var cT=l9.assert;function cO(e){if(!(this instanceof cO))return new cO(e);"string"==typeof e&&(cT(Object.prototype.hasOwnProperty.call(uM,e),"Unknown curve "+e),e=uM[e]),e instanceof uM.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}cO.prototype.keyPair=function(e){return new cS(this,e)},cO.prototype.keyFromPrivate=function(e,t){return cS.fromPrivate(this,e,t)},cO.prototype.keyFromPublic=function(e,t){return cS.fromPublic(this,e,t)},cO.prototype.genKeyPair=function(e){e||(e={});for(var t=new c_({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entro
1py:e.entropy||ul(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new ut(2));;){var i=new ut(t.generate(n));if(!(i.cmp(r)>0))return i.iaddn(1),this.keyFromPrivate(i)}},cO.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},cO.prototype.sign=function(e,t,n,r){"object"==typeof n&&(r=n,n=null),r||(r={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new ut(e,16));for(var i=this.n.byteLength(),o=t.getPrivate().toArray("be",i),a=e.toArray("be",i),s=new c_({hash:this.hash,entropy:o,nonce:a,pers:r.pers,persEnc:r.persEnc||"utf8"}),l=this.n.sub(new ut(1)),u=0;;u++){var c=r.k?r.k(u):new ut(s.generate(this.n.byteLength()));if(!(0>=(c=this._truncateToN(c,!0)).cmpn(1)||c.cmp(l)>=0)){var d=this.g.mul(c);if(!d.isInfinity()){var f=d.getX(),h=f.umod(this.n);if(0!==h.cmpn(0)){var p=c.invm(this.n).mul(h.mul(t.getPrivate()).iadd(e));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(d.getY().isOdd()?1:0)|(0!==f.cmp(h)?2:0);return r.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new cM({r:h,s:p,recoveryParam:m})}}}}}},cO.prototype.verify=function(e,t,n,r){e=this._truncateToN(new ut(e,16)),n=this.keyFromPublic(n,r);var i=(t=new cM(t,"hex")).r,o=t.s;if(0>i.cmpn(1)||i.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var a,s=o.invm(this.n),l=s.mul(e).umod(this.n),u=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(l,n.getPublic(),u)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(l,n.getPublic(),u)).isInfinity()&&0===a.getX().umod(this.n).cmp(i)},cO.prototype.recoverPubKey=function(e,t,n,r){cT((3&n)===n,"The recovery param is more than two bits"),t=new cM(t,r);var i=this.n,o=new ut(e),a=t.r,s=t.s,l=1&n,u=n>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw Error("Unable to find sencond key candinate");a=u?this.curve.pointFromX(a.add(this.curve.n),l):this.curve.pointFromX(a,l);var c=t.r.invm(i),d=i.sub(o).mul(c).umod(i),f=s.mul(c).umod(i);return this.g.mulAdd(d,a,f)},cO.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new cM(t,r)).recoveryParam)return t.recoveryParam;for(var i,o=0;o<4;o++){try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(n))return o}throw Error("Unable to find valid recovery factor")};var cP=l9.assert,cL=l9.parseBytes,cN=l9.cachedProperty;function cD(e,t){this.eddsa=e,this._secret=cL(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=cL(t.pub)}cD.fromPublic=function(e,t){return t instanceof cD?t:new cD(e,{pub:t})},cD.fromSecret=function(e,t){return t instanceof cD?t:new cD(e,{secret:t})},cD.prototype.secret=function(){return this._secret},cN(cD,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),cN(cD,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),cN(cD,"privBytes",function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r}),cN(cD,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),cN(cD,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),cN(cD,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),cD.prototype.sign=function(e){return cP(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},cD.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},cD.prototype.getSecret=function(e){return cP(this._secret,"KeyPair is public only"),l9.encode(this.secret(),e)},cD.prototype.getPublic=function(e){return l9.encode(this.pubBytes(),e)};var cB=l9.assert,cj=l9.cachedProperty,cF=l9.parseBytes;function cz(e,t){this.eddsa=e,"object"!=typeof t&&(t=cF(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),cB(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof ut&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}cj(cz,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),cj(cz,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),cj(cz,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),cj(cz,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),cz.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},cz.prototype.toHex=function(){return l9.encode(this.toBytes(),"hex").toUpperCase()};var cU=l9.assert,cq=l9.parseBytes;function cK(e){if(cU("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof cK))return new cK(e);e=uM[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=uC.sha512}cK.prototype.sign=function(e,t){e=cq(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),o=this.encodePoint(i),a=this.hashInt(o,n.pubBytes(),e).mul(n.priv()),s=r.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},cK.prototype.verify=function(e,t,n){e=cq(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(o)},cK.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return l9.intFromLE(e.digest()).umod(this.curve.n)},cK.prototype.keyFromPublic=function(e){return cD.fromPublic(this,e)},cK.prototype.keyFromSecret=function(e){return cD.fromSecret(this,e)},cK.prototype.makeSignature=function(e){return e instanceof cz?e:new cz(this,e)},cK.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},cK.prototype.decodePoint=function(e){var t=(e=l9.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),i=l9.intFromLE(n);return this.curve.pointFromY(i,r)},cK.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},cK.prototype.decodeInt=function(e){return l9.intFromLE(e)},cK.prototype.isPoint=function(e){return e instanceof this.pointClass},l7.version="6.5.4",l7.utils=l9,l7.rand=ul,l7.curve=uu,l7.curves=uM,l7.ec=cO,l7.eddsa=cK;let cH=new l7.ec("secp256k1"),cV=cH.curve,c$=cV.n.constructor;function cW(e){let t=e[0];switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){let n=new c$(t);if(n.cmp(cV.p)>=0)return null;let r=(n=n.toRed(cV.red)).redSqr().redIMul(n).redIAdd(cV.b).redSqrt();return 3===e!==r.isOdd()&&(r=r.redNeg()),cH.keyPair({pub:{x:n,y:r}})}(t,e.subarray(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,n){let r=new c$(t),i=new c$(n);if(r.cmp(cV.p)>=0||i.cmp(cV.p)>=0||(r=r.toRed(cV.red),i=i.toRed(cV.red),(6===e||7===e)&&i.isOdd()!==(7===e)))return null;let o=r.redSqr().redIMul(r);return i.redSqr().redISub(o.redIAdd(cV.b)).isZero()?cH.keyPair({pub:{x:r,y:i}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function cY(e,t){let n=t.encode(null,33===e.length);for(let t=0;t<e.length;++t)e[t]=n[t]}var cG=(i={contextRandomize:()=>0,privateKeyVerify(e){let t=new c$(e);return 0>t.cmp(cV.n)&&!t.isZero()?0:1},privateKeyNegate(e){let t=new c$(e),n=cV.n.sub(t).umod(cV.n).toArrayLike(Uint8Array,"be",32);return e.set(n),0},privateKeyTweakAdd(e,t){let n=new c$(t);if(n.cmp(cV.n)>=0||(n.iadd(new c$(e)),n.cmp(cV.n)>=0&&n.isub(cV.n),n.isZero()))return 1;let r=n.toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakMul(e,t){let n=new c$(t);if(n.cmp(cV.n)>=0||n.isZero())return 1;n.imul(new c$(e)),n.cmp(cV.n)>=0&&(n=n.umod(cV.n));let r=n.toArrayLike(Uint8Array,"be",32);return e.set(r),0},publicKeyVerify:e=>null===cW(e)?1:0,publicKeyCreate(e,t){let n=new c$(t);return n.cmp(cV.n)>=0||n.isZero()?1:(cY(e,cH.keyFromPrivate(t).getPublic()),0)},publicKeyConvert(e,t){let n=cW(t);return null===n?1:(cY(e,n.getPublic()),0)},publicKeyNegate(e,t){let n=cW(t);if(null===n)return 1;let r=n.getPublic();return r.y=r.y.redNeg(),cY(e,r),0},publicKeyCombine(e,t){let n=Array(t.length);for(let e=0;e<t.length;++e)if(n[e]=cW(t[e]),null===n[e])return 1;let r=n[0].getPublic();for(let e=1;e<n.length;++e)r=r.add(n[e].pub);return r.isInfinity()?2:(cY(e,r),0)}
1,publicKeyTweakAdd(e,t,n){let r=cW(t);if(null===r)return 1;if((n=new c$(n)).cmp(cV.n)>=0)return 2;let i=r.getPublic().add(cV.g.mul(n));return i.isInfinity()?2:(cY(e,i),0)},publicKeyTweakMul(e,t,n){let r=cW(t);return null===r?1:(n=new c$(n)).cmp(cV.n)>=0||n.isZero()?2:(cY(e,r.getPublic().mul(n)),0)},signatureNormalize(e){let t=new c$(e.subarray(0,32)),n=new c$(e.subarray(32,64));return t.cmp(cV.n)>=0||n.cmp(cV.n)>=0?1:(1===n.cmp(cH.nh)&&e.set(cV.n.sub(n).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,t){let n=t.subarray(0,32),r=t.subarray(32,64);if(new c$(n).cmp(cV.n)>=0||new c$(r).cmp(cV.n)>=0)return 1;let{output:i}=e,o=i.subarray(4,37);o[0]=0,o.set(n,1);let a=33,s=0;for(;a>1&&0===o[s]&&!(128&o[s+1]);--a,++s);if(128&(o=o.subarray(s))[0]||a>1&&0===o[0]&&!(128&o[1]))return 1;let l=i.subarray(39,72);l[0]=0,l.set(r,1);let u=33,c=0;for(;u>1&&0===l[c]&&!(128&l[c+1]);--u,++c);return 128&(l=l.subarray(c))[0]||u>1&&0===l[0]&&!(128&l[1])?1:(e.outputlen=6+a+u,i[0]=48,i[1]=e.outputlen-2,i[2]=2,i[3]=o.length,i.set(o,4),i[4+a]=2,i[5+a]=l.length,i.set(l,6+a),0)},signatureImport(e,t){if(t.length<8||t.length>72||48!==t[0]||t[1]!==t.length-2||2!==t[2])return 1;let n=t[3];if(0===n||5+n>=t.length||2!==t[4+n])return 1;let r=t[5+n];if(0===r||6+n+r!==t.length||128&t[4]||n>1&&0===t[4]&&!(128&t[5])||128&t[n+6]||r>1&&0===t[n+6]&&!(128&t[n+7]))return 1;let i=t.subarray(4,4+n);if(33===i.length&&0===i[0]&&(i=i.subarray(1)),i.length>32)return 1;let o=t.subarray(6+n);if(33===o.length&&0===o[0]&&(o=o.slice(1)),o.length>32)throw Error("S length is too long");let a=new c$(i);a.cmp(cV.n)>=0&&(a=new c$(0));let s=new c$(t.subarray(6+n));return s.cmp(cV.n)>=0&&(s=new c$(0)),e.set(a.toArrayLike(Uint8Array,"be",32),0),e.set(s.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,t,n,r,i){let o;if(i){let e=i;i=i=>{let o=e(t,n,null,r,i);if(!(o instanceof Uint8Array&&32===o.length))throw Error("This is the way");return new c$(o)}}let a=new c$(n);if(a.cmp(cV.n)>=0||a.isZero())return 1;try{o=cH.sign(t,n,{canonical:!0,k:i,pers:r})}catch(e){return 1}return e.signature.set(o.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(o.s.toArrayLike(Uint8Array,"be",32),32),e.recid=o.recoveryParam,0},ecdsaVerify(e,t,n){let r={r:e.subarray(0,32),s:e.subarray(32,64)},i=new c$(r.r),o=new c$(r.s);if(i.cmp(cV.n)>=0||o.cmp(cV.n)>=0)return 1;if(1===o.cmp(cH.nh)||i.isZero()||o.isZero())return 3;let a=cW(n);if(null===a)return 2;let s=a.getPublic();return cH.verify(t,r,s)?0:3},ecdsaRecover(e,t,n,r){let i;let o={r:t.slice(0,32),s:t.slice(32,64)},a=new c$(o.r),s=new c$(o.s);if(a.cmp(cV.n)>=0||s.cmp(cV.n)>=0)return 1;if(a.isZero()||s.isZero())return 2;try{i=cH.recoverPubKey(r,o,n)}catch(e){return 2}return cY(e,i),0},ecdh(e,t,n,r,i,o,a){let s=cW(t);if(null===s)return 1;let l=new c$(n);if(l.cmp(cV.n)>=0||l.isZero())return 2;let u=s.getPublic().mul(l);if(void 0===i){let t=u.encode(null,!0),n=cH.hash().update(t).digest();for(let t=0;t<32;++t)e[t]=n[t]}else{o||(o=new Uint8Array(32));let t=u.getX().toArray("be",32);for(let e=0;e<32;++e)o[e]=t[e];a||(a=new Uint8Array(32));let n=u.getY().toArray("be",32);for(let e=0;e<32;++e)a[e]=n[e];let s=i(o,a,r);if(!(s instanceof Uint8Array&&s.length===e.length))return 2;e.set(s)}return 0}},{contextRandomize(e){if(l3(null===e||e instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==e&&l6("seed",e,32),1===i.contextRandomize(e))throw Error("Unknow error on context randomization")},privateKeyVerify:e=>(l6("private key",e,32),0===i.privateKeyVerify(e)),privateKeyNegate(e){switch(l6("private key",e,32),i.privateKeyNegate(e)){case 0:return e;case 1:throw Error(lZ)}},privateKeyTweakAdd(e,t){switch(l6("private key",e,32),l6("tweak",t,32),i.privateKeyTweakAdd(e,t)){case 0:return e;case 1:throw Error(lJ)}},privateKeyTweakMul(e,t){switch(l6("private key",e,32),l6("tweak",t,32),i.privateKeyTweakMul(e,t)){case 0:return e;case 1:throw Error(lX)}},publicKeyVerify:e=>(l6("public key",e,[33,65]),0===i.publicKeyVerify(e)),publicKeyCreate(e,t=!0,n){switch(l6("private key",e,32),l4(t),n=l8(n,t?33:65),i.publicKeyCreate(n,e)){case 0:return n;
1case 1:throw Error("Private Key is invalid");case 2:throw Error(l1)}},publicKeyConvert(e,t=!0,n){switch(l6("public key",e,[33,65]),l4(t),n=l8(n,t?33:65),i.publicKeyConvert(n,e)){case 0:return n;case 1:throw Error(l0);case 2:throw Error(l1)}},publicKeyNegate(e,t=!0,n){switch(l6("public key",e,[33,65]),l4(t),n=l8(n,t?33:65),i.publicKeyNegate(n,e)){case 0:return n;case 1:throw Error(l0);case 2:throw Error(lZ);case 3:throw Error(l1)}},publicKeyCombine(e,t=!0,n){for(let t of(l3(Array.isArray(e),"Expected public keys to be an Array"),l3(e.length>0,"Expected public keys array will have more than zero items"),e))l6("public key",t,[33,65]);switch(l4(t),n=l8(n,t?33:65),i.publicKeyCombine(n,e)){case 0:return n;case 1:throw Error(l0);case 2:throw Error("The sum of the public keys is not valid");case 3:throw Error(l1)}},publicKeyTweakAdd(e,t,n=!0,r){switch(l6("public key",e,[33,65]),l6("tweak",t,32),l4(n),r=l8(r,n?33:65),i.publicKeyTweakAdd(r,e,t)){case 0:return r;case 1:throw Error(l0);case 2:throw Error(lJ)}},publicKeyTweakMul(e,t,n=!0,r){switch(l6("public key",e,[33,65]),l6("tweak",t,32),l4(n),r=l8(r,n?33:65),i.publicKeyTweakMul(r,e,t)){case 0:return r;case 1:throw Error(l0);case 2:throw Error(lX)}},signatureNormalize(e){switch(l6("signature",e,64),i.signatureNormalize(e)){case 0:return e;case 1:throw Error(l2)}},signatureExport(e,t){l6("signature",e,64);let n={output:t=l8(t,72),outputlen:72};switch(i.signatureExport(n,e)){case 0:return t.slice(0,n.outputlen);case 1:throw Error(l2);case 2:throw Error(lZ)}},signatureImport(e,t){switch(l6("signature",e),t=l8(t,64),i.signatureImport(t,e)){case 0:return t;case 1:throw Error(l2);case 2:throw Error(lZ)}},ecdsaSign(e,t,n={},r){l6("message",e,32),l6("private key",t,32),l3("Object"===l5(n),"Expected options to be an Object"),void 0!==n.data&&l6("options.data",n.data),void 0!==n.noncefn&&l3("Function"===l5(n.noncefn),"Expected options.noncefn to be a Function");let o={signature:r=l8(r,64),recid:null};switch(i.ecdsaSign(o,e,t,n.data,n.noncefn)){case 0:return o;case 1:throw Error("The nonce generation function failed, or the private key was invalid");case 2:throw Error(lZ)}},ecdsaVerify(e,t,n){switch(l6("signature",e,64),l6("message",t,32),l6("public key",n,[33,65]),i.ecdsaVerify(e,t,n)){case 0:return!0;case 3:return!1;case 1:throw Error(l2);case 2:throw Error(l0)}},ecdsaRecover(e,t,n,r=!0,o){switch(l6("signature",e,64),l3("Number"===l5(t)&&t>=0&&t<=3,"Expected recovery id to be a Number within interval [0, 3]"),l6("message",n,32),l4(r),o=l8(o,r?33:65),i.ecdsaRecover(o,e,t,n)){case 0:return o;case 1:throw Error(l2);case 2:throw Error("Public key could not be recover");case 3:throw Error(lZ)}},ecdh(e,t,n={},r){switch(l6("public key",e,[33,65]),l6("private key",t,32),l3("Object"===l5(n),"Expected options to be an Object"),void 0!==n.data&&l6("options.data",n.data),void 0!==n.hashfn?(l3("Function"===l5(n.hashfn),"Expected options.hashfn to be a Function"),void 0!==n.xbuf&&l6("options.xbuf",n.xbuf,32),void 0!==n.ybuf&&l6("options.ybuf",n.ybuf,32),l6("output",r)):r=l8(r,32),i.ecdh(r,e,t,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return r;case 1:throw Error(l0);
1case 2:throw Error("Scalar was invalid (zero or overflow)")}}}),cQ={},cZ={};Object.defineProperty(cZ,"__esModule",{value:!0}),cZ.SECRET_KEY_LENGTH=cZ.AES_IV_PLUS_TAG_LENGTH=cZ.AES_TAG_LENGTH=cZ.AES_IV_LENGTH=cZ.UNCOMPRESSED_PUBLIC_KEY_SIZE=void 0,cZ.UNCOMPRESSED_PUBLIC_KEY_SIZE=65,cZ.AES_IV_LENGTH=16,cZ.AES_TAG_LENGTH=16,cZ.AES_IV_PLUS_TAG_LENGTH=cZ.AES_IV_LENGTH+cZ.AES_TAG_LENGTH,cZ.SECRET_KEY_LENGTH=32;var cJ=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cQ,"__esModule",{value:!0}),cQ.aesDecrypt=cQ.aesEncrypt=cQ.getValidSecret=cQ.decodeHex=cQ.remove0x=void 0;var cX=lq(),c0=cJ(cG);function c1(e){return e.startsWith("0x")||e.startsWith("0X")?e.slice(2):e}cQ.remove0x=c1,cQ.decodeHex=function(e){return M.from(c1(e),"hex")},cQ.getValidSecret=function(){var e;do e=(0,cX.randomBytes)(cZ.SECRET_KEY_LENGTH);while(!c0.default.privateKeyVerify(e));return e},cQ.aesEncrypt=function(e,t){var n=(0,cX.randomBytes)(cZ.AES_IV_LENGTH),r=(0,cX.createCipheriv)("aes-256-gcm",e,n),i=M.concat([r.update(t),r.final()]),o=r.getAuthTag();return M.concat([n,o,i])},cQ.aesDecrypt=function(e,t){var n=t.slice(0,cZ.AES_IV_LENGTH),r=t.slice(cZ.AES_IV_LENGTH,cZ.AES_IV_PLUS_TAG_LENGTH),i=t.slice(cZ.AES_IV_PLUS_TAG_LENGTH),o=(0,cX.createDecipheriv)("aes-256-gcm",e,n);return o.setAuthTag(r),M.concat([o.update(i),o.final()])};var c2={},c3=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(c2,"__esModule",{value:!0});var c6=c3(lQ),c4=c3(cG),c8=function(){function e(e){this.uncompressed=M.from(c4.default.publicKeyConvert(e,!1)),this.compressed=M.from(c4.default.publicKeyConvert(e,!0))}return e.fromHex=function(t){var n=(0,cQ.decodeHex)(t);if(n.length===cZ.UNCOMPRESSED_PUBLIC_KEY_SIZE-1){var r=M.from([4]);return new e(M.concat([r,n]))}return new e(n)},e.prototype.toHex=function(e){return void 0===e&&(e=!0),e?this.compressed.toString("hex"):this.uncompressed.toString("hex")},e.prototype.decapsulate=function(e){var t=M.concat([this.uncompressed,e.multiply(this)]);return(0,c6.default)(t,32,{hash:"SHA-256"})},e.prototype.equals=function(e){return this.uncompressed.equals(e.uncompressed)},e}();c2.default=c8;var c5=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(en,"__esModule",{value:!0});var c7=c5(lQ),c9=c5(cG),de=c5(c2),dt=function(){function e(e){if(this.secret=e||(0,cQ.getValidSecret)(),!c9.default.privateKeyVerify(this.secret))throw Error("Invalid private key");this.publicKey=new de.default(M.from(c9.default.publicKeyCreate(this.secret)))}return e.fromHex=function(t){return new e((0,cQ.decodeHex)(t))},e.prototype.toHex=function(){return"0x".concat(this.secret.toString("hex"))},e.prototype.encapsulate=function(e){var t=M.concat([this.publicKey.uncompressed,this.multiply(e)]);return(0,c7.default)(t,32,{hash:"SHA-256"})},e.prototype.multiply=function(e){return M.from(c9.default.publicKeyTweakMul(e.compressed,this.secret,!1))},e.prototype.equals=function(e){return this.secret.equals(e.secret)},e}();en.default=dt,da=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Object.defineProperty(et,"__esModule",{value:!0}),et.PublicKey=et.PrivateKey=void 0,Object.defineProperty(et,"PrivateKey",{enumerable:!0,get:function(){return da(en).default}}),Object.defineProperty(et,"PublicKey",{enumerable:!0,get:function(){return da(c2).default}}
1),Object.defineProperty(ee,"__esModule",{value:!0}),ee.utils=ee.PublicKey=ee.PrivateKey=ee.decrypt=ee.encrypt=void 0,ee.encrypt=function(e,t){var n=new et.PrivateKey,r=e instanceof M?new et.PublicKey(e):et.PublicKey.fromHex(e),i=n.encapsulate(r),o=(0,cQ.aesEncrypt)(i,t);return M.concat([n.publicKey.uncompressed,o])},ee.decrypt=function(e,t){var n=e instanceof M?new et.PrivateKey(e):et.PrivateKey.fromHex(e),r=new et.PublicKey(t.slice(0,cZ.UNCOMPRESSED_PUBLIC_KEY_SIZE)),i=t.slice(cZ.UNCOMPRESSED_PUBLIC_KEY_SIZE),o=r.decapsulate(n);return(0,cQ.aesDecrypt)(o,i)},Object.defineProperty(ee,"PrivateKey",{enumerable:!0,get:function(){return et.PrivateKey}}),Object.defineProperty(ee,"PublicKey",{enumerable:!0,get:function(){return et.PublicKey}}),ee.utils={aesDecrypt:cQ.aesDecrypt,aesEncrypt:cQ.aesEncrypt,decodeHex:cQ.decodeHex,getValidSecret:cQ.getValidSecret,remove0x:cQ.remove0x};var dn={exports:{}};!function(e){var t=Object.hasOwnProperty,n=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},r="object"==typeof ex,i="function"==typeof Symbol,o="object"==typeof Reflect,a="function"==typeof setImmediate?setImmediate:setTimeout,s=i?o&&"function"==typeof Reflect.ownKeys?Reflect.ownKeys:function(e){var t=Object.getOwnPropertyNames(e);return t.push.apply(t,Object.getOwnPropertySymbols(e)),t}:Object.keys;function l(){this._events={},this._conf&&u.call(this,this._conf)}function u(t){t&&(this._conf=t,t.delimiter&&(this.delimiter=t.delimiter),t.maxListeners!==e&&(this._maxListeners=t.maxListeners),t.wildcard&&(this.wildcard=t.wildcard),t.newListener&&(this._newListener=t.newListener),t.removeListener&&(this._removeListener=t.removeListener),t.verboseMemoryLeak&&(this.verboseMemoryLeak=t.verboseMemoryLeak),t.ignoreErrors&&(this.ignoreErrors=t.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function c(e,t){var n="(node) warning: possible EventEmitter memory leak detected. "+e+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(n+=" Event name: "+t+"."),void 0!==ex&&ex.emitWarning){var r=Error(n);r.name="MaxListenersExceededWarning",r.emitter=this,r.count=e,ex.emitWarning(r)}else console.error(n),console.trace&&console.trace()}var d=function(e,t,n){var r=arguments.length;switch(r){case 0:return[];case 1:return[e];case 2:return[e,t];case 3:return[e,t,n];default:for(var i=Array(r);r--;)i[r]=arguments[r];return i}};function f(t,n){for(var r={},i=t.length,o=n?n.length:0,a=0;a<i;a++)r[t[a]]=a<o?n[a]:e;return r}function h(e,t,n){if(this._emitter=e,this._target=t,this._listeners={},this._listenersCount=0,(n.on||n.off)&&(r=n.on,i=n.off),t.addEventListener?(r=t.addEventListener,i=t.removeEventListener):t.addListener?(r=t.addListener,i=t.removeListener):t.on&&(r=t.on,i=t.off),!r&&!i)throw Error("target does not implement any known event API");if("function"!=typeof r)throw TypeError("on method must be a function");if("function"!=typeof i)throw TypeError("off method must be a function");this._on=r,this._off=i;var r,i,o=e._observers;o?o.push(this):e._observers=[this]}function p(n,r,i,o){var a=Object.assign({},r);if(!n)return a;if("object"!=typeof n)throw TypeError("options must be an object");var s,l,u,c=Object.keys(n),d=c.length;function f(e){throw Error('Invalid "'+s+'" option value'+(e?". Reason: "+e:""))}for(var h=0;h<d;h++){if(s=c[h],!o&&!t.call(r,s))throw Error('Unknown "'+s+'" option');(l=n[s])!==e&&(u=i[s],a[s]=u?u(l,f):l)}return a}function m(e,t){return"function"==typeof e&&e.hasOwnProperty("prototype")||t("value must be a constructor"),e}function g(e){var t="value must be type of "+e.join("|"),n=e.length,r=e[0],i=e[1];return 1===n?function(e,n){if(typeof e===r)return e;n(t)}:2===n?function(e,n){var o=typeof e;if(o===r||o===i)return e;n(t)}:function(r,i){for(var o=typeof r,a=n;a-- >0;)if(o===e[a])return r;i(t)}}Object.assign(h.prototype,{subscribe:function(e,t,n){var r=this,i=this._target,o=this._emitter,a=this._listeners,s=function(){var r=d.apply(null,arguments),a={data:r,name:t,original:e};n?!1!==n.call(i,a)&&o.emit.apply(o,[a.name].concat(r)):o.emit.apply(o,[t].concat(r))};if(a[e])throw Error("Event '"+e+"' is already listening");this._listenersCount++,o._newListener&&o._removeListener&&!r._onNewListener?(this._onNewListener=function(n){n===t&&null===a[e]&&(a[e]=s,r._on.call(i,e,s))},o.on("newListener",this._onNewListener),this._onRemoveListener=function(n){n===t&&!o.hasListeners(n)&&a[e]&&(a[e]=null,r._off.call(i,e,s))},a[e]=null,o.on("removeListener",this._onRemoveListener)):(a[e]=s,r._on.call(i,e,s))},unsubscribe:function(e){var t,n,r,i=this,o=this._listeners,a=this._emitter,l=this._off,u=this._target;if(e&&"string"!=typeof e)throw TypeError("event must be a string");function c(){i._onNewListener&&(a.off("newListener",i._onNewListener),a.off("removeListener",i._onRemoveListener),i._onNewListener=null,i._onRemoveListener=null);var e=A.call(a,i);a._observers.splice(e,1)}if(e){if(!(t=o[e]))return;l.call(u,e,t),delete o[e],--this._listenersCount||c()}else{for(r=(n=s(o)).length;r-- >0;)e=n[r],l.call(u,e,o[e]);this._listeners={},this._listenersCount=0,c()}}});var v=g(["function"]),b=g(["object","function"]);function y(e,t,n){var r,i,o,a=0,s=new e(function(l,u,c){function d(){i&&(i=null),a&&(clearTimeout(a),a=0)}r=!(n=p(n,{timeout:0,overload:!1},{timeout:function(e,t){return("number"!=typeof(e*=1)||e<0||!Number.isFinite(e))&&t("timeout must be a positive number"),e}})).overload&&"function"==typeof e.prototype.cancel&&"function"==typeof c;var f=function(e){d(),l(e)},h=function(e){d(),u(e)};r?t(f,h,c):(i=[function(e){h(e||Error("canceled"))}],t(f,h,function(e){if(o)throw Error("Unable to subscribe on cancel event asynchronously");if("function"!=typeof e)throw TypeError("onCancel callback must be a function");i.push(e)}),o=!0),n.timeout>0&&(a=setTimeout(function(){var e=Error("timeout");e.code="ETIMEDOUT",a=0,s.cancel(e),u(e)},n.timeout))});return r||(s.cancel=function(e){if(i){for(var t=i.length,n=1;n<t;n++)i[n](e);i[0](e),i=null}}),s}function A(e){var t=this._observers;if(!t)return -1;for(var n=t.length,r=0;r<n;r++)if(t[r]._target===e)return r;return -1}function w(e,t,n,r,i){if(!n)return null;if(0===r){var o=typeof t;if("string"===o){var a,l,u=0,c=0,d=this.delimiter,f=d.length;if(-1!==(l=t.indexOf(d))){a=[,,,,,];do a[u++]=t.slice(c,l),c=l+f;while(-1!==(l=t.indexOf(d,c)));a[u++]=t.slice(c),t=a,i=u}else t=[t],i=1}else"object"===o?i=t.length:(t=[t],i=1)}var h,p,m,g,v,b,y,A=null,_=t[r],E=t[r+1];if(r===i)n._listeners&&("function"==typeof n._listeners?e&&e.push(n._listeners):e&&e.push.apply(e,n._listeners),A=[n]);else{if("*"===_){for(l=(b=s(n)).length;l-- >0;)"_listeners"!==(h=b[l])&&(y=w(e,t,n[h],r+1,i))&&(A?A.push.apply(A,y):A=y);return A}if("**"===_){for((v=r+1===i||r+2===i&&"*"===E)&&n._listeners&&(A=w(e,t,n,i,i)),l=(b=s(n)).length;l-- >0;)"_listeners"!==(h=b[l])&&("*"===h||"**"===h?(n[h]._listeners&&!v&&(y=w(e,t,n[h],i,i))&&(A?A.push.apply(A,y):A=y),y=w(e,t,n[h],r,i)):y=w(e,t,n[h],h===E?r+2:r,i),y&&(A?A.push.apply(A,y):A=y));return A}n[_]&&(A=w(e,t,n[_],r+1,i))}if((p=n["*"])&&w(e,t,p,r+1,i),m=n["**"]){if(r<i)for(m._listeners&&w(e,t,m,i,i),l=(b=s(m)).length;l-- >0;)"_listeners"!==(h=b[l])&&(h===E?w(e,t,m[h],r+2,i):h===_?w(e,t,m[h],r+1,i):((g={})[h]=m[h],w(e,t,{"**":g},r+1,i)));else m._listeners?w(e,t,m,i,i):m["*"]&&m["*"]._listeners&&w(e,t,m["*"],i,i)}return A}function _(e,t,n){var r,i,o=0,a=0,s=this.delimiter,l=s.length;if("string"==typeof e){if(-1!==(r=e.indexOf(s))){i=[,,,,,];do i[o++]=e.slice(a,r),a=r+l;while(-1!==(r=e.indexOf(s,a)));i[o++]=e.slice(a)}else i=[e],o=1}else i=e,o=e.length;if(o>1){for(r=0;r+1<o;r++)if("**"===i[r]&&"**"===i[r+1])return}var u,d=this.listenerTree;for(r=0;r<o;r++)if(d=d[u=i[r]]||(d[u]={}),r===o-1)return d._listeners?("function"==typeof d._listeners&&(d._listeners=[d._listeners]),n?d._listeners.unshift(t):d._listeners.push(t),!d._listeners.warned&&this._maxListeners>0&&d._listeners.length>this._maxListeners&&(d._listeners.warned=!0,c.call(this,d._listeners.length,u))):d._listeners=t,!0;return!0}function E(e,t,n,r){for(var i,o,a,l,u=s(e),c=u.length,d=e._listeners;c-- >0;)i=e[o=u[c]],a="_listeners"===o?n:n?n.concat(o):[o],l=r||"symbol"==typeof o,d&&t.push(l?a:a.join(this.delimiter)),"object"==typeof i&&E.call(this,i,t,a,l);return t}function S(e){for(var t,n,r,i=s(e),o=i.length;o-- >0;)(t=e[n=i[o]])&&(r=!0,"_listeners"===n||S(t)||delete e[n]);return r}
1function k(e,t,n){this.emitter=e,this.event=t,this.listener=n}function M(t,n,i){if(!0===i)s=!0;else if(!1===i)o=!0;else{if(!i||"object"!=typeof i)throw TypeError("options should be an object or true");var o=i.async,s=i.promisify,l=i.nextTick,u=i.objectify}if(o||l||s){var c=n,d=n._origin||n;if(l&&!r)throw Error("process.nextTick is not supported");s===e&&(s="AsyncFunction"===n.constructor.name),(n=function(){var e=arguments,t=this,n=this.event;return s?l?Promise.resolve():new Promise(function(e){a(e)}).then(function(){return t.event=n,c.apply(t,e)}):(l?ew:a)(function(){t.event=n,c.apply(t,e)})})._async=!0,n._origin=d}return[n,u?new k(this,t,n):this]}function C(e){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,u.call(this,e)}k.prototype.off=function(){return this.emitter.off(this.event,this.listener),this},C.EventEmitter2=C,C.prototype.listenTo=function(t,r,i){if("object"!=typeof t)throw TypeError("target musts be an object");var o=this;return i=p(i,{on:e,off:e,reducers:e},{on:v,off:v,reducers:b}),function(e){if("object"!=typeof e)throw TypeError("events must be an object");var n,r=i.reducers,a=A.call(o,t);n=-1===a?new h(o,t,i):o._observers[a];for(var l,u=s(e),c=u.length,d="function"==typeof r,f=0;f<c;f++)l=u[f],n.subscribe(l,e[l]||l,d?r:r&&r[l])}(n(r)?f(r):"string"==typeof r?f(r.split(/\s+/)):r),this},C.prototype.stopListeningTo=function(e,t){var n=this._observers;if(!n)return!1;var r,i=n.length,o=!1;if(e&&"object"!=typeof e)throw TypeError("target should be an object");for(;i-- >0;)r=n[i],e&&r._target!==e||(r.unsubscribe(t),o=!0);return o},C.prototype.delimiter=".",C.prototype.setMaxListeners=function(t){t!==e&&(this._maxListeners=t,this._conf||(this._conf={}),this._conf.maxListeners=t)},C.prototype.getMaxListeners=function(){return this._maxListeners},C.prototype.event="",C.prototype.once=function(e,t,n){return this._once(e,t,!1,n)},C.prototype.prependOnceListener=function(e,t,n){return this._once(e,t,!0,n)},C.prototype._once=function(e,t,n,r){return this._many(e,1,t,n,r)},C.prototype.many=function(e,t,n,r){return this._many(e,t,n,!1,r)},C.prototype.prependMany=function(e,t,n,r){return this._many(e,t,n,!0,r)},C.prototype._many=function(e,t,n,r,i){var o=this;if("function"!=typeof n)throw Error("many only accepts instances of Function");function a(){return 0==--t&&o.off(e,a),n.apply(this,arguments)}return a._origin=n,this._on(e,a,r,i)},C.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||l.call(this);var e,t,n,r,o,a,s=arguments[0],u=this.wildcard;if("newListener"===s&&!this._newListener&&!this._events.newListener)return!1;if(u&&(e=s,"newListener"!==s&&"removeListener"!==s&&"object"==typeof s)){if(n=s.length,i){for(r=0;r<n;r++)if("symbol"==typeof s[r]){a=!0;break}}a||(s=s.join(this.delimiter))}var c,d=arguments.length;if(this._all&&this._all.length)for(r=0,n=(c=this._all.slice()).length;r<n;r++)switch(this.event=s,d){case 1:c[r].call(this,s);break;case 2:c[r].call(this,s,arguments[1]);break;case 3:c[r].call(this,s,arguments[1],arguments[2]);break;default:c[r].apply(this,arguments)}if(u)c=[],w.call(this,c,e,this.listenerTree,0,n);else{if("function"==typeof(c=this._events[s])){switch(this.event=s,d){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:for(t=Array(d-1),o=1;o<d;o++)t[o-1]=arguments[o];c.apply(this,t)}return!0}c&&(c=c.slice())}if(c&&c.length){if(d>3)for(t=Array(d-1),o=1;o<d;o++)t[o-1]=arguments[o];for(r=0,n=c.length;r<n;r++)switch(this.event=s,d){case 1:c[r].call(this);break;case 2:c[r].call(this,arguments[1]);break;case 3:c[r].call(this,arguments[1],arguments[2]);break;default:c[r].apply(this,t)}return!0}if(!this.ignoreErrors&&!this._all&&"error"===s)throw arguments[1]instanceof Error?arguments[1]:Error("Uncaught, unspecified 'error' event.");return!!this._all},C.prototype.emitAsync=function(){if(!this._events&&!this._all)return!1;this._events||l.call(this);var e,t,n,r,o,a,s=arguments[0],u=this.wildcard;if("newListener"===s&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);if(u&&(e=s,"newListener"!==s&&"removeListener"!==s&&"object"==typeof s)){if(r=s.length,i){for(o=0;o<r;o++)if("symbol"==typeof s[o]){t=!0;break}}t||(s=s.join(this.delimiter))}var c,d=[],f=arguments.length;if(this._all)for(o=0,r=this._all.length;o<r;o++)switch(this.event=s,f){case 1:d.push(this._all[o].call(this,s));break;case 2:d.push(this._all[o].call(this,s,arguments[1]));break;case 3:d.push(this._all[o].call(this,s,arguments[1],arguments[2]));break;default:d.push(this._all[o].apply(this,arguments))}if(u?(c=[],w.call(this,c,e,this.listenerTree,0)):c=this._events[s],"function"==typeof c)switch(this.event=s,f){case 1:d.push(c.call(this));break;case 2:d.push(c.call(this,arguments[1]));break;case 3:d.push(c.call(this,arguments[1],arguments[2]));break;default:for(n=Array(f-1),a=1;a<f;a++)n[a-1]=arguments[a];d.push(c.apply(this,n))}else if(c&&c.length){if(c=c.slice(),f>3)for(n=Array(f-1),a=1;a<f;a++)n[a-1]=arguments[a];for(o=0,r=c.length;o<r;o++)switch(this.event=s,f){case 1:d.push(c[o].call(this));break;case 2:d.push(c[o].call(this,arguments[1]));break;case 3:d.push(c[o].call(this,arguments[1],arguments[2]));break;default:d.push(c[o].apply(this,n))}}else if(!this.ignoreErrors&&!this._all&&"error"===s)return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(d)},C.prototype.on=function(e,t,n){return this._on(e,t,!1,n)},C.prototype.prependListener=function(e,t,n){return this._on(e,t,!0,n)},C.prototype.onAny=function(e){return this._onAny(e,!1)},C.prototype.prependAny=function(e){return this._onAny(e,!0)},C.prototype.addListener=C.prototype.on,C.prototype._onAny=function(e,t){if("function"!=typeof e)throw Error("onAny only accepts instances of Function");return this._all||(this._all=[]),t?this._all.unshift(e):this._all.push(e),this},C.prototype._on=function(t,n,r,i){if("function"==typeof t)return this._onAny(t,n),this;if("function"!=typeof n)throw Error("on only accepts instances of Function");this._events||l.call(this);var o,a=this;
1return i!==e&&(n=(o=M.call(this,t,n,i))[0],a=o[1]),this._newListener&&this.emit("newListener",t,n),this.wildcard?_.call(this,t,n,r):this._events[t]?("function"==typeof this._events[t]&&(this._events[t]=[this._events[t]]),r?this._events[t].unshift(n):this._events[t].push(n),!this._events[t].warned&&this._maxListeners>0&&this._events[t].length>this._maxListeners&&(this._events[t].warned=!0,c.call(this,this._events[t].length,t))):this._events[t]=n,a},C.prototype.off=function(e,t){if("function"!=typeof t)throw Error("removeListener only takes instances of Function");var r,i=[];if(this.wildcard){var o="string"==typeof e?e.split(this.delimiter):e.slice();if(!(i=w.call(this,null,o,this.listenerTree,0)))return this}else{if(!this._events[e])return this;r=this._events[e],i.push({_listeners:r})}for(var a=0;a<i.length;a++){var s=i[a];if(n(r=s._listeners)){for(var l=-1,u=0,c=r.length;u<c;u++)if(r[u]===t||r[u].listener&&r[u].listener===t||r[u]._origin&&r[u]._origin===t){l=u;break}if(l<0)continue;return this.wildcard?s._listeners.splice(l,1):this._events[e].splice(l,1),0===r.length&&(this.wildcard?delete s._listeners:delete this._events[e]),this._removeListener&&this.emit("removeListener",e,t),this}(r===t||r.listener&&r.listener===t||r._origin&&r._origin===t)&&(this.wildcard?delete s._listeners:delete this._events[e],this._removeListener&&this.emit("removeListener",e,t))}return this.listenerTree&&S(this.listenerTree),this},C.prototype.offAny=function(e){var t,n=0,r=0;if(e&&this._all&&this._all.length>0){for(n=0,r=(t=this._all).length;n<r;n++)if(e===t[n])return t.splice(n,1),this._removeListener&&this.emit("removeListenerAny",e),this}else{if(t=this._all,this._removeListener)for(n=0,r=t.length;n<r;n++)this.emit("removeListenerAny",t[n]);this._all=[]}return this},C.prototype.removeListener=C.prototype.off,C.prototype.removeAllListeners=function(t){if(t===e)return this._events&&l.call(this),this;if(this.wildcard){var n,r=w.call(this,null,t,this.listenerTree,0);if(!r)return this;for(n=0;n<r.length;n++)r[n]._listeners=null;this.listenerTree&&S(this.listenerTree)}else this._events&&(this._events[t]=null);return this},C.prototype.listeners=function(t){var n,r,i,o,a,l=this._events;if(t===e){if(this.wildcard)throw Error("event name required for wildcard emitter");if(!l)return[];for(o=(n=s(l)).length,i=[];o-- >0;)"function"==typeof(r=l[n[o]])?i.push(r):i.push.apply(i,r);return i}if(this.wildcard){if(!(a=this.listenerTree))return[];var u=[],c="string"==typeof t?t.split(this.delimiter):t.slice();return w.call(this,u,c,a,0),u}return l&&(r=l[t])?"function"==typeof r?[r]:r:[]},C.prototype.eventNames=function(e){var t=this._events;return this.wildcard?E.call(this,this.listenerTree,[],null,e):t?s(t):[]},C.prototype.listenerCount=function(e){return this.listeners(e).length},C.prototype.hasListeners=function(t){if(this.wildcard){var n=[],r="string"==typeof t?t.split(this.delimiter):t.slice();return w.call(this,n,r,this.listenerTree,0),n.length>0}var i=this._events,o=this._all;return!!(o&&o.length||i&&(t===e?s(i).length:i[t]))},C.prototype.listenersAny=function(){return this._all?this._all:[]},C.prototype.waitFor=function(t,n){var r=this,i=typeof n;return"number"===i?n={timeout:n}:"function"===i&&(n={filter:n}),y((n=p(n,{timeout:0,filter:e,handleError:!1,Promise:Promise,overload:!1},{filter:v,Promise:m})).Promise,function(e,i,o){function a(){var o=n.filter;if(!o||o.apply(r,arguments)){if(r.off(t,a),n.handleError){var s=arguments[0];s?i(s):e(d.apply(null,arguments).slice(1))}else e(d.apply(null,arguments))}}o(function(){r.off(t,a)}),r._on(t,a,!1)},{timeout:n.timeout,overload:n.overload})};var x=C.prototype;Object.defineProperties(C,{defaultMaxListeners:{get:function(){return x._maxListeners},set:function(e){if("number"!=typeof e||e<0||Number.isNaN(e))throw TypeError("n must be a non-negative number");x._maxListeners=e},enumerable:!0},once:{value:function(e,t,n){return y((n=p(n,{Promise:Promise,timeout:0,overload:!1},{Promise:m})).Promise,function(n,r,i){if("function"==typeof e.addEventListener)return o=function(){n(d.apply(null,arguments))},i(function(){e.removeEventListener(t,o)}),void e.addEventListener(t,o,{once:!0});var o,a,s=function(){a&&e.removeListener("error",a),n(d.apply(null,arguments))};
1"error"!==t&&(a=function(n){e.removeListener(t,s),r(n)},e.once("error",a)),i(function(){a&&e.removeListener("error",a),e.removeListener(t,s)}),e.once(t,s)},{timeout:n.timeout,overload:n.overload})},writable:!0,configurable:!0}}),Object.defineProperties(x,{_maxListeners:{value:10,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),"function"==typeof e&&e.amd?e(function(){return C}):dn.exports=C}();var dr,di,da,ds,dl=dn.exports,du=new Uint8Array(16),dc=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function dd(e){return"string"==typeof e&&dc.test(e)}for(var df=[],dh=0;dh<256;++dh)df.push((dh+256).toString(16).substr(1));function dp(e,t,n){var r=(e=e||{}).random||(e.rng||function(){if(!ds&&!(ds="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ds(du)})();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(df[e[t+0]]+df[e[t+1]]+df[e[t+2]]+df[e[t+3]]+"-"+df[e[t+4]]+df[e[t+5]]+"-"+df[e[t+6]]+df[e[t+7]]+"-"+df[e[t+8]]+df[e[t+9]]+"-"+df[e[t+10]]+df[e[t+11]]+df[e[t+12]]+df[e[t+13]]+df[e[t+14]]+df[e[t+15]]).toLowerCase();if(!dd(n))throw TypeError("Stringified UUID is invalid");return n}(r)}let dm=Object.create(null);dm.open="0",dm.close="1",dm.ping="2",dm.pong="3",dm.message="4",dm.upgrade="5",dm.noop="6";let dg=Object.create(null);Object.keys(dm).forEach(e=>{dg[dm[e]]=e});let dv={type:"error",data:"parser error"},db="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),dy="function"==typeof ArrayBuffer,dA=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,dw=({type:e,data:t},n,r)=>db&&t instanceof Blob?n?r(t):d_(t,r):dy&&(t instanceof ArrayBuffer||dA(t))?n?r(t):d_(new Blob([t]),r):r(dm[e]+(t||"")),d_=(e,t)=>{let n=new FileReader;return n.onload=function(){t("b"+(n.result.split(",")[1]||""))},n.readAsDataURL(e)};function dE(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let dS="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)dS["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(e)]=e;let dk="function"==typeof ArrayBuffer,dM=(e,t)=>{if("string"!=typeof e)return{type:"message",data:dx(e,t)};let n=e.charAt(0);return"b"===n?{type:"message",data:dC(e.substring(1),t)}:dg[n]?e.length>1?{type:dg[n],data:e.substring(1)}:{type:dg[n]}:dv},dC=(e,t)=>dk?dx((e=>{let t,n,r,i,o,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);let u=new ArrayBuffer(a),c=new Uint8Array(u);for(t=0;t<s;t+=4)n=dS[e.charCodeAt(t)],r=dS[e.charCodeAt(t+1)],i=dS[e.charCodeAt(t+2)],o=dS[e.charCodeAt(t+3)],c[l++]=n<<2|r>>4,c[l++]=(15&r)<<4|i>>2,c[l++]=(3&i)<<6|63&o;return u})(e),t):{base64:!0,data:e},dx=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer;function dR(e){if(e)return function(e){for(var t in dR.prototype)e[t]=dR.prototype[t];return e}(e)}dR.prototype.on=dR.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},dR.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},dR.prototype.off=dR.prototype.removeListener=dR.prototype.removeAllListeners=dR.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},dR.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},dR.prototype.emitReserved=dR.prototype.emit,dR.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},dR.prototype.hasListeners=function(e){return!!this.listeners(e).length};let dI="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function dT(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}let dO=dI.setTimeout,dP=dI.clearTimeout;function dL(e,t){t.useNativeTimers?(e.setTimeoutFn=dO.bind(dI),e.clearTimeoutFn=dP.bind(dI)):(e.setTimeoutFn=dI.setTimeout.bind(d
1I),e.clearTimeoutFn=dI.clearTimeout.bind(dI))}class dN extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class dD extends dR{constructor(e){super(),this.writable=!1,dL(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new dN(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=dM(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}let dB="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),dj={},dF,dz=0,dU=0;function dq(e){let t="";do t=dB[e%64]+t,e=Math.floor(e/64);while(e>0);return t}function dK(){let e=dq(+new Date);return e!==dF?(dz=0,dF=e):e+"."+dq(dz++)}for(;dU<64;dU++)dj[dB[dU]]=dU;let dH=!1;try{dH="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let dV=dH;function d$(e){let t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||dV))return new XMLHttpRequest}catch(e){}if(!t)try{return new dI[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}function dW(){}let dY=null!=new d$({xdomain:!1}).responseType;class dG extends dR{constructor(e,t){super(),dL(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;let t=dT(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;let n=this.xhr=new d$(t);try{n.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders)for(let e in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this.opts.extraHeaders[e])}catch(e){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(n)),4===n.readyState&&(200===n.status||1223===n.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof n.status?n.status:0)},0))},n.send(this.data)}catch(e){return void this.setTimeoutFn(()=>{this.onError(e)},0)}"undefined"!=typeof document&&(this.index=dG.requestsCount++,dG.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=dW,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete dG.requests[this.index],this.xhr=null}}onLoad(){let e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}function dQ(){for(let e in dG.requests)dG.requests.hasOwnProperty(e)&&dG.requests[e].abort()}dG.requestsCount=0,dG.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",dQ):"function"==typeof addEventListener&&addEventListener("onpagehide"in dI?"pagehide":"unload",dQ,!1));let dZ="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),dJ=dI.WebSocket||dI.MozWebSocket,dX="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),d0={websocket:class extends dD{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}
1doOpen(){if(!this.check())return;let e=this.uri(),t=this.opts.protocols,n=dX?{}:dT(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=dX?new dJ(e,t,n):t?new dJ(e,t):new dJ(e)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||"arraybuffer",this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;dw(n,this.supportsBinary,e=>{try{this.ws.send(e)}catch(e){}r&&dZ(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=dK()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!dJ}},webtransport:class extends dD{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{let t;let n=e.readable.getReader();this.writer=e.writable.getWriter();let i=()=>{n.read().then(({done:e,value:n})=>{var o,a;e||(t||1!==n.byteLength||54!==n[0]?(this.onPacket((o=t,a="arraybuffer",r||(r=new TextDecoder),dM(o||n[0]<48||n[0]>54?n:r.decode(n),a))),t=!1):t=!0,i())}).catch(e=>{})};i();let o=this.query.sid?`0{"sid":"${this.query.sid}"}`:"0";this.writer.write((new TextEncoder).encode(o)).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let n=0;n<e.length;n++){let r=e[n],i=n===e.length-1;!function(e,n){db&&e.data instanceof Blob?e.data.arrayBuffer().then(dE).then(n):dy&&(e.data instanceof ArrayBuffer||dA(e.data))?n(dE(e.data)):dw(e,!1,e=>{t||(t=new TextEncoder),n(t.encode(e))})}(r,e=>{"message"===r.type&&"string"!=typeof r.data&&e[0]>=48&&e[0]<=54&&this.writer.write(Uint8Array.of(54)),this.writer.write(e).then(()=>{i&&dZ(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})})}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends dD{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){let t="https:"===location.protocol,n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}let t=e&&e.forceBase64;this.supportsBinary=dY&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{let n=e.split("\x1e"),r=[];for(let e=0;e<n.length;e++){let i=dM(n[e],t);if(r.push(i),"error"===i.type)break}return r})(e,this.socket.binaryType).forEach(e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{let n=e.length,r=Array(n),i=0;e.forEach((e,o)=>{dw(e,!1,e=>{r[o]=e,++i===n&&t(r.join("\x1e"))})})})(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=dK()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new dG(this.uri(),e)}doWrite(e,t){let n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}},d1=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,d2=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function d3(e){let t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=d1.exec(e||""),o={},a=14;for(;a--;)o[d2[a]]=i[a]||"";return -1!=n&&-1!=r&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){let n=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.slice(0,1)&&0!==t.length||n.splice(0,1),"/"==t.slice(-1)&&n.splice(n.length-1,1),n}(0,o.path),o.queryKey=function(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}(0,o.query),o}let d6=class e extends dR{constructor(e,t={}){super(),this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=d3(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=d3(t.host).host),dL(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let e=0,r=n.length;e<r;e++){let r=n[e].split("=");
1t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new d0[e](n)}open(){let t;if(this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(e){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",e=>this.onClose("transport close",e))}probe(t){let n=this.createTransport(t),r=!1;e.priorWebsocketSuccess=!1;let i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",t=>{if(!r){if("pong"===t.type&&"probe"===t.data)this.upgrading=!0,this.emitReserved("upgrading",n),n&&(e.priorWebsocketSuccess="websocket"===n.name,this.transport.pause(()=>{r||"closed"!==this.readyState&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())}));else{let e=Error("probe error");e.transport=n.name,this.emitReserved("upgradeError",e)}}}))};function o(){r||(r=!0,c(),n.close(),n=null)}let a=e=>{let t=Error("probe error: "+e);t.transport=n.name,o(),this.emitReserved("upgradeError",t)};function s(){a("transport closed")}function l(){a("socket closed")}function u(e){n&&e.name!==n.name&&o()}let c=()=>{n.removeListener("open",i),n.removeListener("error",a),n.removeListener("close",s
1),this.off("close",l),this.off("upgrading",u)};n.once("open",i),n.once("error",a),n.once("close",s),this.once("close",l),this.once("upgrading",u),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",e.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0,t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":let t=Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let n=this.writeBuffer[t].data;if(n&&(e+="string"==typeof n?function(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)(t=e.charCodeAt(r))<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(n):Math.ceil(1.33*(n.byteLength||n.size))),t>0&&e>this.maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;let i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){let e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}onError(t){e.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){let t=[],n=0,r=e.length;for(;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}};d6.protocol=4;let d4="function"==typeof ArrayBuffer,d8=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,d5=Object.prototype.toString,d7="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===d5.call(Blob),d9="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===d5.call(File);function fe(e){return d4&&(e instanceof ArrayBuffer||d8(e))||d7&&e instanceof Blob||d9&&e instanceof File}let ft=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];function fn(e){return"[object Object]"===Object.prototype.toString.call(e)}(fy=fA||(fA={}))[fy.CONNECT=0]="CONNECT",fy[fy.DISCONNECT=1]="DISCONNECT",fy[fy.EVENT=2]="EVENT",fy[fy.ACK=3]="ACK",fy[fy.CONNECT_ERROR=4]="CONNECT_ERROR",fy[fy.BINARY_EVENT=5]="BINARY_EVENT",fy[fy.BINARY_ACK=6]="BINARY_ACK";class fr extends dR{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let n=(t=this.decodeString(e)).type===fA.BINARY_EVENT;n||t.type===fA.BINARY_ACK?(t.type=n?fA.EVENT:fA.ACK,this.reconstructor=new fi(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!fe(e)&&!e.base64)throw Error("Unknown type: "+e);if(!this.reconstructor)throw Error("got binary data when not reconstructing a packet");(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0,n={type:Number(e.charAt(0))};if(void 0===fA[n.type])throw Error("unknown packet type "+n.type);if(n.type===fA.BINARY_EVENT||n.type===fA.BINARY_ACK){let r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let i=e.substring(r,t);if(i!=Number(i)||"-"!==e.charAt(t))throw Error("Illegal attachments");n.attachments=Number(i)}if("/"===e.charAt(t+1)){let r=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);
1n.nsp=e.substring(r,t)}else n.nsp="/";let r=e.charAt(t+1);if(""!==r&&Number(r)==r){let r=t+1;for(;++t;){let n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){let r=this.tryParse(e.substr(t));if(!fr.isPayloadValid(n.type,r))throw Error("invalid payload");n.data=r}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case fA.CONNECT:return fn(t);case fA.DISCONNECT:return void 0===t;case fA.CONNECT_ERROR:return"string"==typeof t||fn(t);case fA.EVENT:case fA.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===ft.indexOf(t[0]));case fA.ACK:case fA.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class fi{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t,n;let e=(t=this.reconPack,n=this.buffers,t.data=function e(t,n){if(!t)return t;if(t&&!0===t._placeholder){if("number"==typeof t.num&&t.num>=0&&t.num<n.length)return n[t.num];throw Error("illegal attachments")}if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=e(t[r],n);else if("object"==typeof t)for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=e(t[r],n));return t}(t.data,n),delete t.attachments,t);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}var fo=Object.freeze({__proto__:null,Decoder:fr,Encoder:class{constructor(e){this.replacer=e}encode(e){return(e.type===fA.EVENT||e.type===fA.ACK)&&function e(t,n){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(e(t[n]))return!0;return!1}if(fe(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1==arguments.length)return e(t.toJSON(),!0);for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return!0;return!1}(e)?this.encodeAsBinary({type:e.type===fA.EVENT?fA.BINARY_EVENT:fA.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return e.type!==fA.BINARY_EVENT&&e.type!==fA.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=function(e){let t=[],n=e.data;return e.data=function e(t,n){if(!t)return t;if(fe(t)){let e={_placeholder:!0,num:n.length};return n.push(t),e}if(Array.isArray(t)){let r=Array(t.length);for(let i=0;i<t.length;i++)r[i]=e(t[i],n);return r}if("object"==typeof t&&!(t instanceof Date)){let r={};for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=e(t[i],n));return r}return t}(n,t),e.attachments=t.length,{packet:e,buffers:t}}(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}},get PacketType(){return fA},protocol:5});function fa(e,t,n){return e.on(t,n),function(){e.off(t,n)}}let fs=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class fl extends dR{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[fa(e,"open",this.onopen.bind(this)),fa(e,"packet",this.onpacket.bind(this)),fa(e,"error",this.onerror.bind(this)),fa(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(fs.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let n={type:fA.EVENT,data:t,options:{}};if(n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}let r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return(!this.flags.volatile||r&&this.connected)&&(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){var n;let r=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===r)return void(this.acks[e]=t);let i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},r);this.acks[e]=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,[null,...e])}}emitWithAck(e,...t){let n=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise((r,i)=>{t.push((e,t)=>
1n?e?i(e):r(t):r(e)),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>{if(n===this._queue[0])return null!==e?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),n.pending=!1,this._drainQueue()}),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:fA.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case fA.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case fA.EVENT:case fA.BINARY_EVENT:this.onevent(e);break;case fA.ACK:case fA.BINARY_ACK:this.onack(e);break;case fA.DISCONNECT:this.ondisconnect();break;case fA.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length)for(let t of this._anyListeners.slice())t.apply(this,e);super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,n=!1;return function(...r){n||(n=!0,t.packet({type:fA.ACK,id:e,data:r}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:fA.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let t of this._anyOutgoingListeners.slice())t.apply(this,e.data)}}function fu(e){e=e||{}
1,this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}fu.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},fu.prototype.reset=function(){this.attempts=0},fu.prototype.setMin=function(e){this.ms=e},fu.prototype.setMax=function(e){this.max=e},fu.prototype.setJitter=function(e){this.jitter=e};class fc extends dR{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,dL(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new fu({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;let r=t.parser||fo;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new d6(this.uri,this.opts);let t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let r=fa(t,"open",function(){n.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=fa(t,"error",i);if(!1!==this._timeout){let e=this._timeout,n=this.setTimeoutFn(()=>{r(),i(Error("timeout")),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(fa(e,"ping",this.onping.bind(this)),fa(e,"data",this.ondata.bind(this)),fa(e,"error",this.onerror.bind(this)),fa(e,"close",this.onclose.bind(this)),fa(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){dZ(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new fl(this,e,t),this.nsps[e]=n),n}_destroy(e){for(let e of Object.keys(this.nsps))if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let fd={};function ff(e,t){let n;"object"==typeof e&&(t=e,e=void 0);let r=function(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),r=d3(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";
1let i=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),i=r.source,o=r.id,a=r.path,s=fd[o]&&a in fd[o].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?n=new fc(i,t):(fd[o]||(fd[o]=new fc(i,t)),n=fd[o]),r.query&&!t.query&&(t.query=r.queryKey),n.socket(r.path,t)}function fh(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}Object.assign(ff,{Manager:fc,Socket:fl,io:ff,connect:ff}),"function"==typeof SuppressedError&&SuppressedError;var fp=void 0!==s?s:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function fm(){throw Error("setTimeout has not been defined")}function fg(){throw Error("clearTimeout has not been defined")}var fv=fm,fb=fg;"function"==typeof fp.setTimeout&&(fv=setTimeout),"function"==typeof fp.clearTimeout&&(fb=clearTimeout);var fy,fA,fw,f_=[],fE=!1,fS=-1;function fk(){fE&&fw&&(fE=!1,fw.length?f_=fw.concat(f_):fS=-1,f_.length&&function(){if(!fE){var e=function(e){if(fv===setTimeout)return setTimeout(e,0);if((fv===fm||!fv)&&setTimeout)return fv=setTimeout,setTimeout(e,0);try{return fv(e,0)}catch(t){try{return fv.call(null,e,0)}catch(t){return fv.call(this,e,0)}}}(fk);fE=!0;for(var t=f_.length;t;){for(fw=f_,f_=[];++fS<t;)fw&&fw[fS].run();fS=-1,t=f_.length}fw=null,fE=!1,function(e){if(fb===clearTimeout)return clearTimeout(e);if((fb===fg||!fb)&&clearTimeout)return fb=clearTimeout,clearTimeout(e);try{fb(e)}catch(t){try{return fb.call(null,e)}catch(t){return fb.call(this,e)}}}(e)}}())}(function(e,t){this.fun=e,this.array=t}).prototype.run=function(){this.fun.apply(null,this.array)};var fM,fC,fx=fp.performance||{},fR=(fx.now||fx.mozNow||fx.msNow||fx.oNow||fx.webkitNow,{env:{}}),fI={exports:{}},fT=function(e){function t(e){let r,i,o,a=null;function s(...e){if(!s.enabled)return;let n=Number(new Date),i=n-(r||n);s.diff=i,s.prev=r,s.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,r)=>{if("%%"===n)return"%";o++;let i=t.formatters[r];if("function"==typeof i){let t=e[o];n=i.call(s,t),e.splice(o,1),o--}return n}),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){let r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names.map(r),...t.skips.map(r).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];let r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(RegExp("^"+e.slice(1)+"$")):t.names.push(RegExp("^"+e+"$")))},t.enabled=function(e){let n,r;if("*"===e[e.length-1])return!0;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=function(){if(fC)return fM;function e(e,t,n,r){return Math.round(e/n)+" "+r+(t>=1.5*n?"s":"")}return fC=1,fM=function(t,n){n=n||{};var r,i,o=typeof t;if("string"===o&&t.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return 864e5*n;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*n;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*n;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(t);if("number"===o&&isFinite(t))return n.long?(r=Math.abs(t))>=864e5?e(t,r,864e5,"day"):r>=36e5?e(t,r,36e5,"hour"):r>=6e4?e(t,r,6e4,"minute"):r>=1e3?e(t,r,1e3,"second"):t+" ms":(i=Math.abs(t))>=864e5?Math.round(t/864e5)+"d":i>=36e5?Math.round(t/36e5)+"h":i>=6e4?Math.round(t/6e4)+"m":i>=1e3?Math.round(t/1e3)+"s":t+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}}(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t)|0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t};!function(e,t){let n;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==fR&&"env"in fR&&(e=fR.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&
1("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(n=!1,()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=fT(t);let{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(fI,fI.exports);
1var fO=(vt=fI.exports)&&vt.__esModule&&Object.prototype.hasOwnProperty.call(vt,"default")?vt.default:vt;let fP=fO("KeyExchange:Layer"),fL=fO("SocketService:Layer"),fN=fO("Ecies:Layer"),fD=fO("RemoteCommunication:Layer");fP.color="##95c44e",fL.color="#f638d7",fN.color="#465b9c",fD.color="#47a2be";let fB={KeyExchange:fP,SocketService:fL,Ecies:fN,RemoteCommunication:fD},fj,fF=[],fz=[],fU=(e,t)=>fh(void 0,void 0,void 0,function*(){fj=t,fz.push(e),(function(e){return fh(this,void 0,void 0,function*(){if(!fj||!e)return;!function(){let e=fz;fz=fF,fF=e}();let t=fj.endsWith("/")?`${fj}debug`:`${fj}/debug`,n=Object.assign({},e);if(delete n.params,e.params)for(let[t,r]of Object.entries(e.params))n[t]=r;let r=JSON.stringify(n);fB.RemoteCommunication(`[sendBufferedEvents] Sending ${fF.length} analytics events to ${t}`);try{let e=yield f(t,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:r}),n=yield e.text();fB.RemoteCommunication(`[sendBufferedEvents] Response: ${n}`),fF.length=0}catch(e){console.warn("Error sending analytics",e)}})})(e).catch(()=>{})});var fq=[],fK=[],fH="undefined"!=typeof Uint8Array?Uint8Array:Array,fV=!1;function f$(){fV=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)fq[t]=e[t],fK[e.charCodeAt(t)]=t;fK["-".charCodeAt(0)]=62,fK["_".charCodeAt(0)]=63}function fW(e){var t;fV||f$();for(var n=e.length,r=n%3,i="",o=[],a=0,s=n-r;a<s;a+=16383)o.push(function(e,t,n){for(var r,i=[],o=t;o<n;o+=3)i.push(fq[(r=(e[o]<<16)+(e[o+1]<<8)+e[o+2])>>18&63]+fq[r>>12&63]+fq[r>>6&63]+fq[63&r]);return i.join("")}(e,a,a+16383>s?s:a+16383));return 1===r?i+=fq[(t=e[n-1])>>2]+fq[t<<4&63]+"==":2===r&&(i+=fq[(t=(e[n-2]<<8)+e[n-1])>>10]+fq[t>>4&63]+fq[t<<2&63]+"="),o.push(i),o.join("")}function fY(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)}function fG(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,d=c>>1,f=23===i?5960464477539062e-23:0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*m}var fQ={}.toString,fZ=Array.isArray||function(e){return"[object Array]"==fQ.call(e)};function fJ(){return f0.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function fX(e,t){if(fJ()<t)throw RangeError("Invalid typed array length");return f0.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=f0.prototype:(null===e&&(e=new f0(t)),e.length=t),e}function f0(e,t,n){if(!(f0.TYPED_ARRAY_SUPPORT||this instanceof f0))return new f0(e,t,n);if("number"==typeof e){if("string"==typeof t)throw Error("If encoding is specified then the first argument must be a string");return f3(this,e)}return f1(this,e,t,n)}function f1(e,t,n,r){if("number"==typeof t)throw TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),f0.TYPED_ARRAY_SUPPORT?(e=t).__proto__=f0.prototype:e=f6(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!f0.isEncoding(n))throw TypeError('"encoding" must be a valid string encoding');var r=0|f5(t,n),i=(e=fX(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(f8(t)){var n,r=0|f4(t.length);return 0===(e=fX(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?fX(e,0):f6(e,t);if("Buffer"===t.type&&fZ(t.data))return f6(e,t.data)}throw TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function f2(e){if("number"!=typeof e)throw TypeError('"size" argument must be a number');if(e<0)throw RangeError('"size" argument must not be negative')}function f3(e,t){if(f2(t),e=fX(e,t<0?0:0|f4(t)),!f0.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f6(e,t){var n=t.length<0?0:0|f4(t.length);e=fX(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f4(e){if(e>
1=fJ())throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+fJ().toString(16)+" bytes");return 0|e}function f8(e){return!(null==e||!e._isBuffer)}function f5(e,t){if(f8(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return hf(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return hh(e).length;default:if(r)return hf(e).length;t=(""+t).toLowerCase(),r=!0}}function f7(e,t,n){var r,i,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r,i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var o="",a=t;a<n;++a)o+=(r=e[a])<16?"0"+r.toString(16):r.toString(16);return o}(this,t,n);case"utf8":case"utf-8":return hn(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return r=t,i=n,0===r&&i===this.length?fW(this):fW(this.slice(r,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(this,t,n);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function f9(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function he(e,t,n,r,i){if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),isNaN(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=f0.from(t,r)),f8(t))return 0===t.length?-1:ht(e,t,n,r,i);if("number"==typeof t)return t&=255,f0.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):ht(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function ht(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else -1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){d=!1;break}if(d)return o}return -1}function hn(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=hr)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=hr));return n}(r)}f0.TYPED_ARRAY_SUPPORT=void 0===fp.TYPED_ARRAY_SUPPORT||fp.TYPED_ARRAY_SUPPORT,fJ(),f0.poolSize=8192,f0._augment=function(e){return e.__proto__=f0.prototype,e},f0.from=function(e,t,n){return f1(null,e,t,n)},f0.TYPED_ARRAY_SUPPORT&&(f0.prototype.__proto__=Uint8Array.prototype,f0.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f0[Symbol.species]),f0.alloc=function(e,t,n){return f2(e),e<=0?fX(null,e):void 0!==t?"string"==typeof n?fX(null,e).fill(t,n):fX(null,e).fill(t):fX(null,e)},f0.allocUnsafe=function(e){return f3(null,e)},f0.allocUnsafeSlow=function(e){return f3(null,e)},f0.isBuffer=function(e){return null!=e&&(!!e._isBuffer||hm(e)||"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&hm(e.slice(0,0)))},f0.compare=function(e,t){if(!f8(e)||!f8(t))throw TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},f0.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f0.concat=function(e,t){if(!fZ(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f0.alloc(0);if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var n,r=f0.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!f8(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},f0.byteLength=f5,f0.prototype._isBuffer=!0,f0.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f9(this,t,t+1);return this},f0.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f9(this,t,t+3),f9(this,t+1,t+2);return this},f0.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;
vendor: 10,295 bytes, line 1
1t+=8)f9(this,t,t+7),f9(this,t+1,t+6),f9(this,t+2,t+5),f9(this,t+3,t+4);return this},f0.prototype.toString=function(){var e=0|this.length;return 0===e?"":0==arguments.length?hn(this,0,e):f7.apply(this,arguments)},f0.prototype.equals=function(e){if(!f8(e))throw TypeError("Argument must be a Buffer");return this===e||0===f0.compare(this,e)},f0.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},f0.prototype.compare=function(e,t,n,r,i){if(!f8(e))throw TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),u=e.slice(t,n),c=0;c<s;++c)if(l[c]!==u[c]){o=l[c],a=u[c];break}return o<a?-1:a<o?1:0},f0.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},f0.prototype.indexOf=function(e,t,n){return he(this,e,t,n,!0)},f0.prototype.lastIndexOf=function(e,t,n){return he(this,e,t,n,!1)},f0.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i,o,a,s,l,u,c,d,f,h,p=this.length-t;if((void 0===n||n>p)&&(n=p),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var m=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))break;e[n+a]=s}return a}(this,e,t,n);case"utf8":case"utf-8":return l=t,u=n,hp(hf(e,this.length-l),this,l,u);case"ascii":case"latin1":case"binary":return i=this,o=e,a=t,s=n,hp(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(o),i,a,s);case"base64":return c=t,d=n,hp(hh(e),this,c,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f=t,h=n,hp(function(e,t){for(var n,r,i=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i.push(n%256),i.push(r);return i}(e,this.length-f),this,f,h);default:if(m)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),m=!0}},f0.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var hr=4096;function hi(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function ho(e,t,n,r,i,o){if(!f8(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function ha(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function hs(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function hl(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function hu(e,t,n,r,i){return i||hl(e,0,n,4),fG(e,t,n,r,23,4),n+4}function hc(e,t,n,r,i){return i||hl(e,0,n,8),fG(e,t,n,r,52,8),n+8}f0.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),f0.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=f0.prototype;else{var i=t-e;n=new f0(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},f0.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||hi(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},f0.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||hi(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},f0.prototype.readUInt8=function(e,t){return t||hi(e,1,this.length),this[e]},f0.prototype.readUInt16LE=function(e,t){return t||hi(e,2,this.length),this[e]|this[e+1]<<8},f0.prototype.readUInt16BE=function(e,t){return t||hi(e,2,this.length),this[e]<<8|this[e+1]},f0.prototype.readUInt32LE=function(e,t){return t||hi(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f0.prototype.readUInt32BE=function(e,t){return t||hi(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f0.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||hi(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},f0.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||hi(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},f0.prototype.readInt8=function(e,t){return t||hi(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f0.prototype.readInt16LE=function(e,t){t||hi(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},f0.prototype.readInt16BE=function(e,t){t||hi(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},f0.prototype.readInt32LE=function(e,t){return t||hi(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f0.prototype.readInt32BE=function(e,t){return t||hi(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f0.prototype.readFloatLE=function(e,t){return t||hi(e,4,this.length),fY(this,e,!0,23,4)},f0.prototype.readFloatBE=function(e,t){return t||hi(e,4,this.length),fY(this,e,!1,23,4)},f0.prototype.readDoubleLE=function(e,t){return t||hi(e,8,this.length),fY(this,e,!0,52,8)},f0.prototype.readDoubleBE=function(e,t){return t||hi(e,8,this.length),fY(this,e,!1,52,8)},f0.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||ho(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},f0.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||ho(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},f0.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||ho(this,e,t,1,255,0),f0.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},f0.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||ho(this,e,t,2,65535,0),f0.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ha(this,e,t,!0),t+2},f0.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||ho(this,e,t,2,65535,0),f0.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ha(this,e,t,!1),t+2},f0.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||ho(this,e,t,4,4294967295,0),f0.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):hs(this,e,t,!0),t+4},f0.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||ho(this,e,t,4,4294967295,0),f0.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):hs(this,e,t,!1),t+4},f0.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);ho(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},f0.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);ho(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},f0.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||ho(this,e,t,1,127,-128),f0.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},f0.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||ho(this,e,t,2,32767,-32768),f0.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ha(this,e,t,!0),t+2},f0.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||ho(this,e,t,2,32767,-32768),f0.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ha(this,e,t,!1),t+2},f0.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||ho(this,e,t,4,2147483647,-2147483648),f0.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):hs(this,e,t,!0),t+4},f0.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||ho(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),f0.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):hs(this,e,t,!1),t+4},f0.prototype.writeFloatLE=function(e,t,n){return hu(this,e,t,!0,n)},f0.prototype.writeFloatBE=function(e,t,n){return hu(this,e,t,!1,n)},f0.prototype.writeDoubleLE=function(e,t,n){return hc(this,e,t,!0,n)},f0.prototype.writeDoubleBE=function(e,t,n){return hc(this,e,t,!1,n)},f0.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("sourceStart out of bounds");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!f0.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},f0.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i,o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!f0.isEncoding(r))throw TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=f8(e)?e:hf(new f0(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var hd=/[^+\/0-9A-Za-z-_]/g;function hf(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>
1-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function hh(e){return function(e){fV||f$();var t,n,r,i,o,a,s=e.length;if(s%4>0)throw Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new fH(3*s/4-o),r=o>0?s-4:s;var l=0;for(t=0,n=0;t<r;t+=4,n+=3)i=fK[e.charCodeAt(t)]<<18|fK[e.charCodeAt(t+1)]<<12|fK[e.charCodeAt(t+2)]<<6|fK[e.charCodeAt(t+3)],a[l++]=i>>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=fK[e.charCodeAt(t)]<<2|fK[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=fK[e.charCodeAt(t)]<<10|fK[e.charCodeAt(t+1)]<<4|fK[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a}(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(hd,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function hp(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function hm(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}class hg{constructor(e){this.enabled=!0,(null==e?void 0:e.debug)&&fO.enable("Ecies:Layer"),(null==e?void 0:e.privateKey)?this.ecies=ee.PrivateKey.fromHex(e.privateKey):this.ecies=new ee.PrivateKey,fB.Ecies("[ECIES constructor()] initialized secret: ",this.ecies.toHex()),fB.Ecies("[ECIES constructor()] initialized public: ",this.ecies.publicKey.toHex()),fB.Ecies("[ECIES constructor()] init with",this)}generateECIES(){this.ecies=new ee.PrivateKey}getPublicKey(){return this.ecies.publicKey.toHex()}encrypt(e,t){let n=e;if(this.enabled)try{fB.Ecies("[ECIES: encrypt()] using otherPublicKey",t);let r=f0.from(e),i=ee.encrypt(t,r);n=f0.from(i).toString("base64")}catch(n){throw fB.Ecies("[ECIES: encrypt()] error encrypt:",n),fB.Ecies("[ECIES: encrypt()] private: ",this.ecies.toHex()),fB.Ecies("[ECIES: encrypt()] data: ",e),fB.Ecies("[ECIES: encrypt()] otherkey: ",t),n}return n}decrypt(e){let t=e;if(this.enabled)try{fB.Ecies("[ECIES: decrypt()] using privateKey",this.ecies.toHex());let n=f0.from(e.toString(),"base64");t=ee.decrypt(this.ecies.toHex(),n).toString()}catch(t){throw fB.Ecies("[ECIES: decrypt()] error decrypt",t),fB.Ecies("[ECIES: decrypt()] private: ",this.ecies.toHex()),fB.Ecies("[ECIES: decrypt()] encryptedData: ",e),t}return t}getKeyInfo(){return{private:this.ecies.toHex(),public:this.ecies.publicKey.toHex()}}toString(){fB.Ecies("[ECIES: toString()]",this.getKeyInfo())}}var hv="0.20.5";let hb="https://metamask-sdk.api.cx.metamask.io/",hy=["websocket"],hA={ETH_REQUESTACCOUNTS:"eth_requestAccounts"};function hw(e){let{context:t}=e;fB.RemoteCommunication(`[RemoteCommunication: clean()] context=${t}`),e.channelConfig=void 0,e.ready=!1,e.originatorConnectStarted=!1}e.ConnectionStatus=void 0,e.EventType=void 0,e.MessageType=void 0,(vn=e.ConnectionStatus||(e.ConnectionStatus={})).DISCONNECTED="disconnected",vn.WAITING="waiting",vn.TIMEOUT="timeout",vn.LINKED="linked",vn.PAUSED="paused",vn.TERMINATED="terminated",(vr=e.EventType||(e.EventType={})).KEY_INFO="key_info",vr.SERVICE_STATUS="service_status",vr.PROVIDER_UPDATE="provider_update",vr.RPC_UPDATE="rpc_update",vr.KEYS_EXCHANGED="keys_exchanged",vr.JOIN_CHANNEL="join_channel",vr.CHANNEL_CREATED="channel_created",vr.CLIENTS_CONNECTED="clients_connected",vr.CLIENTS_DISCONNECTED="clients_disconnected",vr.CLIENTS_WAITING="clients_w
1aiting",vr.CLIENTS_READY="clients_ready",vr.CHANNEL_PERSISTENCE="channel_persistence",vr.MESSAGE_ACK="ack",vr.SOCKET_DISCONNECTED="socket_disconnected",vr.SOCKET_RECONNECT="socket_reconnect",vr.OTP="otp",vr.SDK_RPC_CALL="sdk_rpc_call",vr.AUTHORIZED="authorized",vr.CONNECTION_STATUS="connection_status",vr.MESSAGE="message",vr.TERMINATE="terminate",(vc||(vc={})).KEY_EXCHANGE="key_exchange",(vi=vd||(vd={})).KEY_HANDSHAKE_START="key_handshake_start",vi.KEY_HANDSHAKE_CHECK="key_handshake_check",vi.KEY_HANDSHAKE_SYN="key_handshake_SYN",vi.KEY_HANDSHAKE_SYNACK="key_handshake_SYNACK",vi.KEY_HANDSHAKE_ACK="key_handshake_ACK",vi.KEY_HANDSHAKE_NONE="none";class h_ extends dl.EventEmitter2{constructor({communicationLayer:e,otherPublicKey:t,context:n,ecies:r,logging:i}){super(),this.keysExchanged=!1,this.step=vd.KEY_HANDSHAKE_NONE,this.debug=!1,this.context=n,this.communicationLayer=e,(null==r?void 0:r.privateKey)&&t&&(fB.KeyExchange(`[KeyExchange: constructor()] otherPubKey=${t} set keysExchanged to true!`,r),this.keysExchanged=!0),this.myECIES=new hg(Object.assign(Object.assign({},r),{debug:null==i?void 0:i.eciesLayer})),this.myPublicKey=this.myECIES.getPublicKey(),this.debug=!0===(null==i?void 0:i.keyExchangeLayer),t&&this.setOtherPublicKey(t),this.communicationLayer.on(vc.KEY_EXCHANGE,this.onKeyExchangeMessage.bind(this))}onKeyExchangeMessage(t){let{relayPersistence:n}=this.communicationLayer.remote.state;if(fB.KeyExchange(`[KeyExchange: onKeyExchangeMessage()] context=${this.context} keysExchanged=${this.keysExchanged} relayPersistence=${n}`,t),n)return void fB.KeyExchange("[KeyExchange: onKeyExchangeMessage()] Ignoring key exchange message because relay persistence is activated");let{message:r}=t;this.keysExchanged&&fB.KeyExchange(`[KeyExchange: onKeyExchangeMessage()] context=${this.context} received handshake while already exchanged. step=${this.step} otherPubKey=${this.otherPublicKey}`),this.emit(e.EventType.KEY_INFO,r.type),r.type===vd.KEY_HANDSHAKE_SYN?(this.checkStep([vd.KEY_HANDSHAKE_NONE,vd.KEY_HANDSHAKE_ACK]),fB.KeyExchange("[KeyExchange: onKeyExchangeMessage()] KEY_HANDSHAKE_SYN",r),r.pubkey&&this.setOtherPublicKey(r.pubkey),this.communicationLayer.sendMessage({type:vd.KEY_HANDSHAKE_SYNACK,pubkey:this.myPublicKey}),this.setStep(vd.KEY_HANDSHAKE_ACK)):r.type===vd.KEY_HANDSHAKE_SYNACK?(this.checkStep([vd.KEY_HANDSHAKE_SYNACK,vd.KEY_HANDSHAKE_ACK,vd.KEY_HANDSHAKE_NONE]),fB.KeyExchange("[KeyExchange: onKeyExchangeMessage()] KEY_HANDSHAKE_SYNACK"),r.pubkey&&this.setOtherPublicKey(r.pubkey),this.communicationLayer.sendMessage({type:vd.KEY_HANDSHAKE_ACK}),this.keysExchanged=!0,this.setStep(vd.KEY_HANDSHAKE_ACK),this.emit(e.EventType.KEYS_EXCHANGED)):r.type===vd.KEY_HANDSHAKE_ACK&&(fB.KeyExchange("[KeyExchange: onKeyExchangeMessage()] KEY_HANDSHAKE_ACK set keysExchanged to true!"),this.checkStep([vd.KEY_HANDSHAKE_ACK,vd.KEY_HANDSHAKE_NONE]),this.keysExchanged=!0,this.setStep(vd.KEY_HANDSHAKE_ACK),this.emit(e.EventType.KEYS_EXCHANGED))}resetKeys(e){this.clean(),this.myECIES=new hg(e)}clean(){fB.KeyExchange(`[KeyExchange: clean()] context=${this.context} reset handshake state`),this.setStep(vd.KEY_HANDSHAKE_NONE),this.emit(e.EventType.KEY_INFO,this.step),this.keysExchanged=!1}start({isOriginator:e,force:t}){let{relayPersistence:n,protocolVersion:r}=this.communicationLayer.remote.state;if(n)return fB.KeyExchange("[KeyExchange: start()] Ignoring key exchange message because relay persistence is activated"),void console.log(`[KeyExchange: start()] relayPersistence=${n}`);fB.KeyExchange(`[KeyExchange: start()] context=${this.context} protocolVersion=${r} isOriginator=${e} step=${this.step} force=${t} relayPersistence=${n} keysExchanged=${this.keysExchanged}`),e?!(this.keysExchanged||this.step!==vd.KEY_HANDSHAKE_NONE&&this.step!==vd.KEY_HANDSHAKE_SYNACK)||t?(fB.KeyExchange(`[KeyExchange: start()] context=${this.context} -- start key exchange (force=${t}) -- step=${this.step}`,this.step),this.clean(),this.setStep(vd.KEY_HANDSHAKE_SYNACK),this.communicationLayer.sendMessage({type:vd.KEY_HANDSHAKE_SYN,pubkey:this.myPublicKey,v:2})):fB.KeyExchange(`[KeyExchange: start()] context=${this.context} -- key exchange already ${this.keysExchanged?"done":"in progress"} -- aborted.`,this.step):this.keysExchanged&&!0!==t?fB.KeyExchange("[KeyExchange: start()] don't send KEY_HANDSHAKE_START -- exchange already done."):r>=2?this.communicationLayer.sendMessage({type:vd.KEY_HANDSHAKE_SYNACK,pubkey:this.myPublicKey,v:2}):(this.communicationLayer.sendMessage({type:vd.KEY_HANDSHAKE_START}),this.clean())}
1setStep(t){this.step=t,this.emit(e.EventType.KEY_INFO,t)}checkStep(e){e.length>0&&-1===e.indexOf(this.step.toString())&&console.warn(`[KeyExchange: checkStep()]  Wrong Step "${this.step}" not within ${e}`)}setRelayPersistence({localKey:e,otherKey:t}){this.otherPublicKey=t,this.myECIES=new hg({privateKey:e,debug:this.debug}),this.keysExchanged=!0}setKeysExchanged(e){this.keysExchanged=e}areKeysExchanged(){return this.keysExchanged}getMyPublicKey(){return this.myPublicKey}getOtherPublicKey(){return this.otherPublicKey}setOtherPublicKey(e){fB.KeyExchange("[KeyExchange: setOtherPubKey()]",e),this.otherPublicKey=e}encryptMessage(e){if(!this.otherPublicKey)throw Error("encryptMessage: Keys not exchanged - missing otherPubKey");return this.myECIES.encrypt(e,this.otherPublicKey)}decryptMessage(e){if(!this.otherPublicKey)throw Error("decryptMessage: Keys not exchanged - missing otherPubKey");return this.myECIES.decrypt(e)}getKeyInfo(){return{ecies:Object.assign(Object.assign({},this.myECIES.getKeyInfo()),{otherPubKey:this.otherPublicKey}),step:this.step,keysExchanged:this.areKeysExchanged()}}toString(){return JSON.stringify({keyInfo:this.getKeyInfo(),keysExchanged:this.keysExchanged,step:this.step})}}(vo=e.MessageType||(e.MessageType={})).TERMINATE="terminate",vo.ANSWER="answer",vo.OFFER="offer",vo.CANDIDATE="candidate",vo.JSONRPC="jsonrpc",vo.WALLET_INFO="wallet_info",vo.ORIGINATOR_INFO="originator_info",vo.PAUSE="pause",vo.OTP="otp",vo.AUTHORIZED="authorized",vo.PING="ping",vo.READY="ready";let hE=e=>new Promise(t=>{setTimeout(t,e)}),hS=(e,t,n=200)=>fh(void 0,void 0,void 0,function*(){let r;let i=Date.now(),o=!1;for(;!o;){if(o=Date.now()-i>3e5,void 0!==(r=t[e]).elapsedTime)return r;yield hE(n)}throw Error(`RPC ${e} timed out`)}),hk=t=>fh(void 0,void 0,void 0,function*(){var n,r,i,o,a;return t.remote.state.terminated?(fB.SocketService(`[SocketService: reconnectSocket()] instance.remote.state.terminated=${t.remote.state.terminated} socket already terminated`,t),!1):(fB.SocketService(`[SocketService: reconnectSocket()] instance.state.socket?.connected=${null===(n=t.state.socket)||void 0===n?void 0:n.connected} trying to reconnect after socketio disconnection`,t),yield hE(200),(null===(r=t.state.socket)||void 0===r?void 0:r.connected)||(t.state.resumed=!0,null===(i=t.state.socket)||void 0===i||i.connect(),t.emit(e.EventType.SOCKET_RECONNECT),null===(o=t.state.socket)||void 0===o||o.emit(e.EventType.JOIN_CHANNEL,{channelId:t.state.channelId,context:`${t.state.context}connect_again`,clientType:t.state.isOriginator?"dapp":"wallet"})),yield hE(100),null===(a=t.state.socket)||void 0===a?void 0:a.connected)});(va=vf||(vf={})).REQUEST="sdk_connect_request_started",va.REQUEST_MOBILE="sdk_connect_request_started_mobile",va.RECONNECT="sdk_reconnect_request_started",va.CONNECTED="sdk_connection_established",va.CONNECTED_MOBILE="sdk_connection_established_mobile",va.AUTHORIZED="sdk_connection_authorized",va.REJECTED="sdk_connection_rejected",va.TERMINATED="sdk_connection_terminated",va.DISCONNECTED="sdk_disconnected",va.SDK_USE_EXTENSION="sdk_use_extension",va.SDK_RPC_REQUEST="sdk_rpc_request",va.SDK_RPC_REQUEST_RECEIVED="sdk_rpc_request_received",va.SDK_RPC_REQUEST_DONE="sdk_rpc_request_done",va.SDK_EXTENSION_UTILIZED="sdk_extension_utilized",va.SDK_USE_INAPP_BROWSER="sdk_use_inapp_browser",(vs=vh||(vh={})).RPC_CHECK="rpcCheck",vs.SKIPPED_RPC="skippedRpc";let hM=["eth_sendTransaction","eth_signTypedData","eth_signTransaction","personal_sign","wallet_requestPermissions","wallet_switchEthereumChain","eth_signTypedData_v3","eth_signTypedData_v4","metamask_connectSign","metamask_connectWith","metamask_batch"].map(e=>e.toLowerCase()),hC=[{event:"clients_connected",handler:function(t,n){return r=>fh(this,void 0,void 0,function*(){var r,i,o,a,s,l,u,c,d,f,h;let p=null!==(i=null===(r=t.remote.state.channelConfig)||void 0===r?void 0:r.relayPersistence)&&void 0!==i&&i;if(fB.SocketService(`[SocketService: handleClientsConnected()] context=${t.state.context} on 'clients_connected-${n}' relayPersistence=${p} resumed=${t.state.resumed}  clientsPaused=${t.state.clientsPaused} keysExchanged=${null===(o=t.state.keyExchange)||void 0===o?void 0:o.areKeysExchanged()} isOriginator=${t.state.isOriginator}`),t.emit(e.EventType.CLIENTS_CONNECTED,{isOriginator:t.state.isOriginator,keysExchanged:null===(a=t.state.keyExchange)||void 0===a?void 0:a.areKeysExchanged(),context:t.state.context}),t.state.resumed)t.state.isOriginator||(fB.SocketService(`[SocketService: handleClientsConnected()] context=${t.state.context} 'clients_connected' / keysExchanged=${null===(s=t.state.keyExchange)||void 0===s?void 0:s.areKeysExchanged()} -- backward compatibility`),null===(l=t.state.keyExchange)||void 0===l||l.start({isOriginator:null!==(u=t.state.isOriginator)&&void 0!==u&&u})),t.state.resumed=!1;else if(t.state.clientsPaused)fB.SocketService("[SocketService: handleClientsConnected()] 'clients_connected' skip sending originatorInfo on pause");else if(!t.state.isOriginator){let e=!p;console.log(`[SocketService: handleClientsConnected()] context=${t.state.context} on 'clients_connected' / keysExchanged=${null===(c=t.state.keyExchange)||void 0===c?void 0:c.areKeysExchanged()} -- force=${e} -- backward compatibility`),fB.SocketService(`[SocketService: handleClientsConnected()] context=${t.state.context} on 'clients_connected' / keysExchanged=${null===(d=t.state.keyExchange)||void 0===d?void 0:d.areKeysExchanged()} -- force=${e} -- backward compatibility`),null===(f=t.state.keyExchange)||void 0===f||f.start({isOriginator:null!==(h=t.state.isOriginator)&&void 0!==h&&h,force:e})}t.state.clientsConnected=!0,t.state.clientsPaused=!1})}},{event:"channel_created",handler:function(t,n){return r=>{fB.SocketService(`[SocketService: handleChannelCreated()] context=${t.state.context} on 'channel_created-${n}'`,r),t.emit(e.EventType.CHANNEL_CREATED,r)}}},{event:"clients_disconnected",handler:function(t,n){return()=>{var r;t.state.clientsConnected=!1,fB.SocketService(`[SocketService: handlesClientsDisconnected()] context=${t.state.context} on 'clients_disconnected-${n}'`),t.remote.state.relayPersistence?fB.SocketService(`[SocketService: handlesClientsDisconnected()] context=${t.state.context} on 'clients_disconnected-${n}' - relayPersistence enabled, skipping key exchange cleanup.`):(t.state.isOriginator&&!t.state.clientsPaused&&(null===(r=t.state.keyExchange)||void 0===r||r.clean()),t.emit(e.EventType.CLIENTS_DISCONNECTED,n))}}},{event:"config",handler:function(t,n){return r=>fh(this,void 0,void 0,function*(){var i,o;fB.SocketService(`[SocketService: handleChannelConfig()] update relayPersistence on 'config-${n}'`,r),t.remote.state.relayPersistence=!0,t.remote.emit(e.EventType.CHANNEL_PERSISTENCE),null===(i=t.state.keyExchange)||void 0===i||i.setKeysExchanged(!0),t.state.isOriginator&&t.remote.state.channelConfig&&!t.remote.state.channelConfig.relayPersistence&&(t.remote.state.channelConfig.relayPersistence=!0,null===(o=t.remote.state.storageManager)||void 0===o||o.persist
1ChannelConfig(t.remote.state.channelConfig))})}},{event:"message",handler:function(t,n){return r=>{var i,o,a,s,l,u,c,d,f,h,p,m,g,v,b,y,A,w;let{id:_,ackId:E,message:S,error:k}=r,M=null!==(i=t.remote.state.relayPersistence)&&void 0!==i&&i;if(fB.SocketService(`[SocketService handleMessage()]  relayPersistence=${M}  context=${t.state.context} on 'message' ${n} keysExchanged=${null===(o=t.state.keyExchange)||void 0===o?void 0:o.areKeysExchanged()}`,r),k)throw fB.SocketService(`
2      [SocketService handleMessage()] context=${t.state.context}::on 'message' error=${k}`),Error(k);try{!function(e,t){if(t!==e.channelId)throw e.debug&&console.error(`Wrong id ${t} - should be ${e.channelId}`),Error("Wrong id")}(t.state,_)}catch(e){return void console.error("ignore message --- wrong id ",S)}let C="string"==typeof S;if(!C&&(null==S?void 0:S.type)===vd.KEY_HANDSHAKE_START)return M?void console.warn("[SocketService handleMessage()] Ignoring key exchange message because relay persistence is activated",S):(fB.SocketService(`[SocketService handleMessage()] context=${t.state.context}::on 'message' received HANDSHAKE_START isOriginator=${t.state.isOriginator}`,S),void(null===(a=t.state.keyExchange)||void 0===a||a.start({isOriginator:null!==(s=t.state.isOriginator)&&void 0!==s&&s,force:!0})));if(!C&&(null===(l=null==S?void 0:S.type)||void 0===l?void 0:l.startsWith("key_handshake")))return M?void console.warn("[SocketService handleMessage()] Ignoring key exchange message because relay persistence is activated",S):(fB.SocketService(`[SocketService handleMessage()] context=${t.state.context}::on 'message' emit KEY_EXCHANGE`,S),void t.emit(vc.KEY_EXCHANGE,{message:S,context:t.state.context}));if(!C||(null===(u=t.state.keyExchange)||void 0===u?void 0:u.areKeysExchanged())){if(!C&&(null==S?void 0:S.type))return console.warn("[SocketService handleMessage() ::on 'message' received non encrypted unkwown message"),void t.emit(e.EventType.MESSAGE,S)}else{let e=!1;try{fB.SocketService(`[SocketService handleMessage()] context=${t.state.context}::on 'message' trying to decrypt message`),null===(c=t.state.keyExchange)||void 0===c||c.decryptMessage(S),e=!0}catch(e){fB.SocketService(`[SocketService handleMessage()] context=${t.state.context}::on 'message' error`,e)}if(!e)return t.state.isOriginator?null===(f=t.state.keyExchange)||void 0===f||f.start({isOriginator:null!==(h=t.state.isOriginator)&&void 0!==h&&h}):t.sendMessage({type:vd.KEY_HANDSHAKE_START}),void fB.SocketService(`Message ignored because invalid key exchange status. step=${null===(p=t.state.keyExchange)||void 0===p?void 0:p.getKeyInfo().step}`,null===(m=t.state.keyExchange)||void 0===m?void 0:m.getKeyInfo(),S);fB.SocketService("Invalid key exchange status detected --- updating it."),null===(d=t.state.keyExchange)||void 0===d||d.setKeysExchanged(!0)}if(!C)return console.warn("[SocketService handleMessage() ::on 'message' received unkwown message",S),void t.emit(e.EventType.MESSAGE,S);let x=null===(g=t.state.keyExchange)||void 0===g?void 0:g.decryptMessage(S),R=JSON.parse(null!=x?x:"{}");if(E&&(null==E?void 0:E.length)>0&&(fB.SocketService(`[SocketService handleMessage()] context=${t.state.context}::on 'message' ackid=${E} channelId=${_}`),null===(v=t.state.socket)||void 0===v||v.emit(e.EventType.MESSAGE_ACK,{ackId:E,channelId:_,clientType:t.state.isOriginator?"dapp":"wallet"})),(null==R?void 0:R.type)===e.MessageType.PAUSE?t.state.clientsPaused=!0:t.state.clientsPaused=!1,t.state.isOriginator&&R.data){let n=R.data,r=t.state.rpcMethodTracker[n.id];if(r){let i=Date.now()-r.timestamp;fB.SocketService(`[SocketService handleMessage()] context=${t.state.context}::on 'message' received answer for id=${n.id} method=${r.method} responseTime=${i}`,R),t.remote.state.analytics&&hM.includes(r.method.toLowerCase())&&fU({id:null!==(b=t.remote.state.channelId)&&void 0!==b?b:"",event:vf.SDK_RPC_REQUEST_DONE,sdkVersion:t.remote.state.sdkVersion,commLayerVersion:hv,walletVersion:null===(y=t.remote.state.walletInfo)||void 0===y?void 0:y.version,params:{method:r.method,from:"mobile"}},t.remote.state.communicationServerUrl).catch(e=>{console.error("Cannot send analytics",e)});let o=Object.assign(Object.assign({},r),{result:n.result,error:n.error?{code:null===(A=n.error)||void 0===A?void 0:A.code,message:null===(w=n.error)||void 0===w?void 0:w.message}:void 0,elapsedTime:i});t.state.rpcMethodTracker[n.id]=o,t.emit(e.EventType.RPC_UPDATE,o)}}t.emit(e.EventType.MESSAGE,{message:R})}}}
2,{event:"clients_waiting_to_join",handler:function(t,n){return r=>{fB.SocketService(`[SocketService: handleClientsWaitingToJoin()] context=${t.state.context} on 'clients_waiting_to_join-${n}'`,r),t.emit(e.EventType.CLIENTS_WAITING,r)}}}],hx=[{event:e.EventType.KEY_INFO,handler:function(t){return n=>{fB.SocketService("[SocketService: handleKeyInfo()] on 'KEY_INFO'",n),t.emit(e.EventType.KEY_INFO,n)}}},{event:e.EventType.KEYS_EXCHANGED,handler:function(t){return()=>{var n,r,i;fB.SocketService(`[SocketService: handleKeysExchanged()] on 'keys_exchanged' keyschanged=${null===(n=t.state.keyExchange)||void 0===n?void 0:n.areKeysExchanged()}`);let{channelConfig:o}=t.remote.state;if(o){let e=t.getKeyExchange().getKeyInfo().ecies;o.localKey=e.private,o.otherKey=e.otherPubKey,t.remote.state.channelConfig=o,null===(r=t.remote.state.storageManager)||void 0===r||r.persistChannelConfig(o).catch(e=>{console.error("Error persisting channel config",e)})}t.emit(e.EventType.KEYS_EXCHANGED,{keysExchanged:null===(i=t.state.keyExchange)||void 0===i?void 0:i.areKeysExchanged(),isOriginator:t.state.isOriginator});let a={keyInfo:t.getKeyInfo()};t.emit(e.EventType.SERVICE_STATUS,a)}}}];function hR(t,n){fB.SocketService(`[SocketService: setupChannelListener()] context=${t.state.context} setting socket listeners for channel ${n}...`);let{socket:r}=t.state,{keyExchange:i}=t.state;t.state.setupChannelListeners&&console.warn(`[SocketService: setupChannelListener()] context=${t.state.context} socket listeners already set up for channel ${n}`),r&&t.state.isOriginator&&(t.state.debug&&(null==r||r.io.on("error",e=>{fB.SocketService(`[SocketService: setupChannelListener()] context=${t.state.context} socket event=error`,e)}),null==r||r.io.on("reconnect",e=>{fB.SocketService(`[SocketService: setupChannelListener()] context=${t.state.context} socket event=reconnect`,e)}),null==r||r.io.on("reconnect_error",e=>{fB.SocketService(`[SocketService: setupChannelListener()] context=${t.state.context} socket event=reconnect_error`,e)}),null==r||r.io.on("reconnect_failed",()=>{fB.SocketService(`[SocketService: setupChannelListener()] context=${t.state.context} socket event=reconnect_failed`)}),null==r||r.io.on("ping",()=>{fB.SocketService(`[SocketService: setupChannelListener()] context=${t.state.context} socket`)})),null==r||r.on("disconnect",n=>{var r;return fB.SocketService(`[SocketService: setupChannelListener()] on 'disconnect' -- MetaMaskSDK socket disconnected '${n}' begin recovery...`),r=n,void(fB.SocketService(`[SocketService: handleDisconnect()] on 'disconnect' manualDisconnect=${t.state.manualDisconnect}`,r),t.state.manualDisconnect||(t.emit(e.EventType.SOCKET_DISCONNECTED),"undefined"!=typeof window&&"undefined"!=typeof document&&(fB.SocketService(`[SocketService: checkFocusAndReconnect()] hasFocus=${document.hasFocus()}`,t),document.hasFocus()?hk(t).then(e=>{fB.SocketService(`SocketService::checkFocus reconnectSocket success=${e}`,t)}).catch(e=>{console.error("SocketService::checkFocus Error reconnecting socket",e)}):window.addEventListener("focus",()=>{hk(t).catch(e=>{console.error("SocketService::checkFocus Error reconnecting socket",e)})},{once:!0}))))})),hC.forEach(({event:e,handler:i})=>{let o=`${e}-${n}`;null==r||r.on(o,i(t,n))}),hx.forEach(({event:e,handler:n})=>{null==i||i.on(e,n(t))}),t.state.setupChannelListeners=!0}class hI extends dl.EventEmitter2{constructor({otherPublicKey:e,reconnect:t,communicationLayerPreference:n,transports:r,communicationServerUrl:i,context:o,ecies:a,remote:s,logging:l}){super(),this.state={clientsConnected:!1,clientsPaused:!1,manualDisconnect:!1,lastRpcId:void 0,rpcMethodTracker:{},hasPlaintext:!1,communicationServerUrl:""},this.state.resumed=t,this.state.context=o,this.state.isOriginator=s.state.isOriginator,this.state.communicationLayerPreference=n,this.state.debug=!0===(null==l?void 0:l.serviceLayer),this.remote=s,!0===(null==l?void 0:l.serviceLayer)&&fO.enable("SocketService:Layer"),this.state.communicationServerUrl=i,this.state.hasPlaintext=this.state.communicationServerUrl!==hb&&!0===(null==l?void 0:l.plaintext);let u={autoConnect:!1,transports:hy,withCredentials:!0};r&&(u.transports=r),fB.SocketService(`[SocketService: constructor()] Socket IO url: ${this.state.communicationServerUrl}`),this.state.socket=ff(i,u);let c={communicationLayer:this,otherPublicKey:e,sendPublicKey:!1,context:this.state.context,ecies:a,logging:l};this.state.keyExchange=new h_(c)}resetKeys(){var e;return fB.SocketService("[SocketService: resetKeys()] Resetting keys."),void(null===(e=this.state.keyExchange)||void 0===e||e.resetKeys())}createChannel(){return function(t){var n,r,i,o;if(fB.SocketService(`[SocketService: createChannel()] context=${t.state.context}`),null===(n=t.state.socket)||void 0===n?void 0:n.connected)throw console.error("[SocketService: createChannel()] socket already connected"),Error("socket already connected");console.log("create channel",t.state.socket),null===(r=t.state.socket)||void 0===r||r.connect(),t.state.manualDisconnect=!1,t.state.isOriginator=!0;let a=dp();return t.state.channelId=a,hR(t,a),null===(i=t.state.socket)||void 0===i||i.emit(e.EventType.JOIN_CHANNEL,{channelId:a,context:`${t.state.context}createChannel`,clientType:"dapp"}),{channelId:a,pubKey:(null===(o=t.state.keyExchange)||void 0===o?void 0:o.getMyPublicKey())||""}}(this)}
2connectToChannel({channelId:t,withKeyExchange:n=!1}){return function({options:t,instance:n}){var r,i,o,a,s,l,u,c;let{channelId:d,withKeyExchange:f}=t,h=null!==(r=n.state.isOriginator)&&void 0!==r&&r;if(fB.SocketService(`[SocketService: connectToChannel()] context=${n.state.context} channelId=${d} isOriginator=${h}`,null===(i=n.state.keyExchange)||void 0===i?void 0:i.toString()),null===(o=n.state.socket)||void 0===o?void 0:o.connected)throw console.error("[SocketService: connectToChannel()] socket already connected"),Error("socket already connected");let{channelConfig:p}=n.remote.state;h&&(null==p?void 0:p.relayPersistence)&&(p.localKey&&(null===(a=null==p?void 0:p.localKey)||void 0===a?void 0:a.length)>0&&p.otherKey&&(null===(s=null==p?void 0:p.otherKey)||void 0===s?void 0:s.length)>0?null===(l=n.state.keyExchange)||void 0===l||l.setRelayPersistence({localKey:p.localKey,otherKey:p.otherKey}):console.warn("Missing keys in relay persistence",p)),n.state.manualDisconnect=!1,null===(u=n.state.socket)||void 0===u||u.connect(),n.state.withKeyExchange=f,n.state.isOriginator=h,n.state.channelId=d,hR(n,d),null===(c=n.state.socket)||void 0===c||c.emit(e.EventType.JOIN_CHANNEL,{channelId:d,context:`${n.state.context}_connectToChannel`,clientType:h?"dapp":"wallet"},(t,r)=>{"error_terminated"===t?n.emit(e.EventType.TERMINATE):"object"==typeof r&&r.persistence&&n.emit(e.EventType.CHANNEL_PERSISTENCE)})}({options:{channelId:t,withKeyExchange:n},instance:this})}getKeyInfo(){return this.state.keyExchange.getKeyInfo()}keyCheck(){var t;null===(t=this.state.socket)||void 0===t||t.emit(e.EventType.MESSAGE,{id:this.state.channelId,context:this.state.context,message:{type:vd.KEY_HANDSHAKE_CHECK,pubkey:this.getKeyInfo().ecies.otherPubKey}})}getKeyExchange(){return this.state.keyExchange}sendMessage(t){return function(t,n){var r,i,o,a,s;if(!t.state.channelId)throw Error("Create a channel first");fB.SocketService(`[SocketService: handleSendMessage()] context=${t.state.context} areKeysExchanged=${null===(r=t.state.keyExchange)||void 0===r?void 0:r.areKeysExchanged()}`,n),(null===(i=null==n?void 0:n.type)||void 0===i?void 0:i.startsWith("key_handshake"))?(fB.SocketService(`[SocketService: handleKeyHandshake()] context=${t.state.context}`,n),null===(s=t.state.socket)||void 0===s||s.emit(e.EventType.MESSAGE,{id:t.state.channelId,context:t.state.context,clientType:t.state.isOriginator?"dapp":"wallet",message:n})):(function(e,t){var n;if(!(null===(n=e.state.keyExchange)||void 0===n?void 0:n.areKeysExchanged())&&!e.remote.state.relayPersistence)throw fB.SocketService(`[SocketService: validateKeyExchange()] context=${e.state.context} ERROR keys not exchanged`,t),console.error("[SocketService: validateKeyExchange()] ERROR keys not exchanged",t),Error("Keys not exchanged BBB")}(t,n),function(t,n){var r;let i=null!==(r=null==n?void 0:n.method)&&void 0!==r?r:"",o=null==n?void 0:n.id;t.state.isOriginator&&o&&(t.state.rpcMethodTracker[o]={id:o,timestamp:Date.now(),method:i},t.emit(e.EventType.RPC_UPDATE,t.state.rpcMethodTracker[o]))}(t,n),function(t,n){var r,i;let o=null===(r=t.state.keyExchange)||void 0===r?void 0:r.encryptMessage(JSON.stringify(n)),a={id:t.state.channelId,context:t.state.context,clientType:t.state.isOriginator?"dapp":"wallet",message:o,plaintext:t.state.hasPlaintext?JSON.stringify(n):void 0};fB.SocketService(`[SocketService: encryptAndSendMessage()] context=${t.state.context}`,a),n.type===e.MessageType.TERMINATE&&(t.state.manualDisconnect=!0),null===(i=t.state.socket)||void 0===i||i.emit(e.EventType.MESSAGE,a)}(t,n),t.remote.state.analytics&&t.remote.state.isOriginator&&n.method&&hM.includes(n.method.toLowerCase())&&fU({id:null!==(o=t.remote.state.channelId)&&void 0!==o?o:"",event:vf.SDK_RPC_REQUEST,sdkVersion:t.remote.state.sdkVersion,commLayerVersion:hv,walletVersion:null===(a=t.remote.state.walletInfo)||void 0===a?void 0:a.version,params:{method:n.method,from:"mobile"}},t.remote.state.communicationServerUrl).catch(e=>{console.error("Cannot send analytics",e)}),(function(t,n){var r;return fh(this,void 0,void 0,function*(){let i=null==n?void 0:n.id,o=null!==(r=null==n?void 0:n.method)&&void 0!==r?r:"";if(t.state.isOriginator&&i)try{let r=hS(i,t.state.rpcMethodTracker,200).then(e=>({type:vh.RPC_CHECK,result:e})),a=fh(this,void 0,void 0,function*(){let e=yield(({rpcId:e,instance:t})=>fh(void 0,void 0,void 0,function*(){for(;t.state.lastRpcId===e||void 0===t.state.lastRpcId;)yield hE(200);return t.state.lastRpcId}))({instance:t,rpcId:i}),n=yield hS(e,t.state.rpcMethodTracker,200);return{type:vh.SKIPPED_RPC,result:n}}),s=yield Promise.race([r,a]);if(s.type===vh.RPC_CHECK){let e=s.result;fB.SocketService(`[SocketService:handleRpcReplies()] id=${n.id} ${o} ( ${e.elapsedTime} ms)`,e.result)}else{if(s.type!==vh.SKIPPED_RPC)throw Error(`Error handling RPC replies for ${i}`);{let{result:n}=s;console.warn(`[SocketService handleRpcReplies()] RPC METHOD HAS BEEN SKIPPED rpcid=${i} method=${o}`,n);let r=Object.assign(Object.assign({},t.state.rpcMethodTracker[i]),{error:Error("SDK_CONNECTION_ISSUE")});t.emit(e.EventType.RPC_UPDATE,r);let a={data:Object.assign(Object.assign({},r),{jsonrpc:"2.0"}),name:"metamask-provider"};t.emit(e.EventType.MESSAGE,{message:a})}}}catch(e){throw console.warn(`[SocketService handleRpcReplies()] Error rpcId=${n.id} ${o}`,e),e}})})(t,n).catch(e=>{console.warn("Error handleRpcReplies",e)}))}(this,t)}ping(){var t,n,r,i,o;return fB.SocketService(`[SocketService: ping()] context=${this.state.context} originator=${this.state.isOriginator} keysExchanged=${null===(t=this.state.keyExchange)||void 0===t?void 0:t.areKeysExchanged()}`),this.state.isOriginator&&((null===(n=this.state.keyExchange)||void 0===n?void 0:n.areKeysExchanged())?(console.warn(`[SocketService:ping()] context=${this.state.context} sending READY message`),this.sendMessage({type:e.MessageType.READY})):(console.warn(`[SocketService: ping()] context=${this.state.context} starting key exchange`),null===(r=this.state.keyExchange)||void 0===r||r.start({isOriginator:null!==(i=this.state.isOriginator)&&void 0!==i&&i}))),void(null===(o=this.state.socket)||void 0===o||o.emit(e.EventType.MESSAGE,{id:this.state.channelId,context:this.state.context,clientType:this.remote.state.isOriginator?"dapp":"wallet",message:{type:e.MessageType.PING}}))}pause(){var t,n;return fB.SocketService(`[SocketService: pause()] context=${this.state.context}`),this.state.manualDisconnect=!0,(null===(t=this.state.keyExchange)||void 0===t?void 0:t.areKeysExchanged())&&this.sendMessage({type:e.MessageType.PAUSE}),void(null===(n=this.state.socket)||void 0===n||n.disconnect())}isConnected(){var e;return null===(e=this.state.socket)||void 0===e?void 0:e.connected}resume(){var t,n,r,i,o,a,s,l,u;return fB.SocketService(`[SocketService: resume()] context=${this.state.context} connected=${null===(t=this.state.socket)||void 0===t?void 0:t.connected} manualDisconnect=${this.state.manualDisconnect} resumed=${this.state.resumed} keysExchanged=${null===(n=this.state.keyExchange)||void 0===n?void 0:n.areKeysExchanged()}`),(null===(r=this.state.socket)||void 0===r?void 0:r.connected)?fB.SocketService("[SocketService: resume()] already connected."):(null===(i=this.state.socket)||void 0===i||i.connect(),fB.SocketService(`[SocketService: resume()] after connecting socket --> connected=${null===(o=this.state.socket)||void 0===o?void 0:o.connected}`),null===(a=this.state.socket)||void 0===a||a.emit(e.EventType.JOIN_CHANNEL,{channelId:this.state.channelId,context:`${this.state.context}_resume`,clientType:this.remote.state.isOriginator?"dapp":"wallet"})),(null===(s=this.state.keyExchange)||void 0===s?void 0:s.areKeysExchanged())?this.state.isOriginator||this.sendMessage({type:e.MessageType.READY}):this.state.isOriginator||null===(l=this.state.keyExchange)||void 0===l||l.start({isOriginator:null!==(u=this.state.isOriginator)&&void 0!==u&&u}),this.state.manualDisconnect=!1,void(this.state.resumed=!0)}getRPCMethodTracker(){return this.state.rpcMethodTracker}disconnect(e){var t,n;fB.SocketService(`[SocketService: disconnect()] context=${this.state.context}`,e),(null==e?void 0:e.terminate)&&(this.state.channelId=e.channelId,null===(t=this.state.keyExchange)||void 0===t||t.clean(),this.state.rpcMethodTracker={}),this.state.manualDisconnect=!0,null===(n=this.state.socket)||void 0===n||n.disconnect()}}
2function hT({options:t,instance:n}){var r,i,o,a,s,l;let{state:u}=n;fB.RemoteCommunication(`[RemoteCommunication: disconnect()] channel=${u.channelId}`,t),u.ready=!1,u.paused=!1,(null==t?void 0:t.terminate)?(null===(r=u.storageManager)||void 0===r||r.terminate(null!==(i=u.channelId)&&void 0!==i?i:""),n.state.terminated=!0,t.sendMessage&&(null===(o=u.communicationLayer)||void 0===o?void 0:o.getKeyInfo().keysExchanged)&&(null===(a=u.communicationLayer)||void 0===a||a.sendMessage({type:e.MessageType.TERMINATE})),u.relayPersistence=!1,u.channelId=dp(),t.channelId=u.channelId,u.channelConfig=void 0,u.originatorConnectStarted=!1,null===(s=u.communicationLayer)||void 0===s||s.disconnect(t),n.setConnectionStatus(e.ConnectionStatus.TERMINATED)):(null===(l=u.communicationLayer)||void 0===l||l.disconnect(t),n.setConnectionStatus(e.ConnectionStatus.DISCONNECTED))}e.CommunicationLayerPreference=void 0,e.PlatformType=void 0,(e.CommunicationLayerPreference||(e.CommunicationLayerPreference={})).SOCKET="socket",(vl=e.PlatformType||(e.PlatformType={})).NonBrowser="nodejs",vl.MetaMaskMobileWebview="in-app-browser",vl.DesktopWeb="web-desktop",vl.MobileWeb="web-mobile",vl.ReactNative="react-native";class hO extends dl.EventEmitter2{constructor({platformType:t,communicationLayerPreference:n,otherPublicKey:r,reconnect:i,walletInfo:o,dappMetadata:a,protocolVersion:s,transports:l,context:u,relayPersistence:c,ecies:d,analytics:f=!1,storage:h,sdkVersion:p,communicationServerUrl:m=hb,logging:g,autoConnect:v={timeout:3e3}}){super(),this.state={ready:!1,authorized:!1,isOriginator:!1,terminated:!1,protocolVersion:1,paused:!1,platformType:"metamask-mobile",analytics:!1,reconnection:!1,originatorInfoSent:!1,communicationServerUrl:hb,context:"",persist:!1,clientsConnected:!1,sessionDuration:6048e5,originatorConnectStarted:!1,debug:!1,_connectionStatus:e.ConnectionStatus.DISCONNECTED},this.state.otherPublicKey=r,this.state.dappMetadata=a,this.state.walletInfo=o,this.state.transports=l,this.state.platformType=t,this.state.analytics=f,this.state.protocolVersion=null!=s?s:1,this.state.isOriginator=!r,this.state.relayPersistence=c,this.state.communicationServerUrl=m,this.state.context=u,this.state.terminated=!1,this.state.sdkVersion=p,this.setMaxListeners(50),this.setConnectionStatus(e.ConnectionStatus.DISCONNECTED),(null==h?void 0:h.duration)&&(this.state.sessionDuration=6048e5),this.state.storageOptions=h,this.state.autoConnectOptions=v,this.state.debug=!0===(null==g?void 0:g.remoteLayer),!0===(null==g?void 0:g.remoteLayer)&&fO.enable("RemoteCommunication:Layer"),!0===(null==g?void 0:g.serviceLayer)&&fO.enable("SocketService:Layer"),!0===(null==g?void 0:g.eciesLayer)&&fO.enable("ECIES:Layer"),!0===(null==g?void 0:g.keyExchangeLayer)&&fO.enable("KeyExchange:Layer"),this.state.logging=g,(null==h?void 0:h.storageManager)&&(this.state.storageManager=h.storageManager),fB.RemoteCommunication(`[RemoteCommunication: constructor()] protocolVersion=${s} relayPersistence=${c} isOriginator=${this.state.isOriginator} communicationLayerPreference=${n} otherPublicKey=${r} reconnect=${i}`),this.initCommunicationLayer({communicationLayerPreference:n,otherPublicKey:r,reconnect:i,ecies:d,communicationServerUrl:m}),this.emitServiceStatusEvent({context:"constructor"})}initCommunicationLayer({communicationLayerPreference:t,otherPublicKey:n,reconnect:r,ecies:i,communicationServerUrl:o=hb}){return function({communicationLayerPreference:t,otherPublicKey:n,reconnect:r,ecies:i,communicationServerUrl:o=hb,instance:a}){var s,l,u,c,d,f,h,p,m;let{state:g}=a;if(fB.RemoteCommunication("[initCommunicationLayer()] ",JSON.stringify(g,null,2)),t!==e.CommunicationLayerPreference.SOCKET)throw Error("Invalid communication protocol");g.communicationLayer=new hI({communicationLayerPreference:t,otherPublicKey:n,reconnect:r,transports:g.transports,communicationServerUrl:o,context:g.context,ecies:i,logging:g.logging,remote:a});let v="undefined"!=typeof document&&document.URL||"",b="undefined"!=typeof document&&document.title||"";(null===(s=g.dappMetadata)||void 0===s?void 0:s.url)&&(v=g.dappMetadata.url),(null===(l=g.dappMetadata)||void 0===l?void 0:l.name)&&(b=g.dappMetadata.name);let y="undefined"!=typeof window&&void 0!==window.location?window.location.hostname:null!==(f=null!==(c=null===(u=g.dappMetadata)||void 0===u?void 0:u.name)&&void 0!==c?c:null===(d=g.dappMetadata)||void 0===d?void 0:d.url)&&void 0!==f?f:"unkown",A={url:v,title:b,source:null===(h=g.dappMetadata)||void 0===h?void 0:h.source,dappId:y,icon:(null===(p=g.dappMetadata)||void 0===p?void 0:p.iconUrl)||(null===(m=g.dappMetadata)||void 0===m?void 0:m.base64Icon),platform:g.platformType,apiVersion:hv};for(let[n,r]of(g.originatorInfo=A,Object.entries({[e.EventType.AUTHORIZED]:function(t){return()=>fh(this,void 0,void 0,function*(){var n,r,i;let{state:o}=t;if(o.authorized)return;yield fh(this,void 0,void 0,function*(){for(;!o.walletInfo;)yield hE(500)});let a="7.3".localeCompare((null===(n=o.walletInfo)||void 0===n?void 0:n.version)||"");if(fB.RemoteCommunication(`[RemoteCommunication: handleAuthorizedEvent()] HACK 'authorized' version=${null===(r=o.walletInfo)||void 0===r?void 0:r.version} compareValue=${a}`),1!==a)return;let s=o.platformType===e.PlatformType.MobileWeb||o.platformType===e.PlatformType.ReactNative||o.platformType===e.PlatformType.MetaMaskMobileWebview;fB.RemoteCommunication(`[RemoteCommunication: handleAuthorizedEvent()] HACK 'authorized' platform=${o.platformType} secure=${s} channel=${o.channelId} walletVersion=${null===(i=o.walletInfo)||void 0===i?void 0:i.version}`),s&&(o.authorized=!0,t.emit(e.EventType.AUTHORIZED))})}(a),[e.EventType.MESSAGE]:t=>{let n=t;t.message&&(n=n.message),function(t,n){let{state:r}=n;if(fB.RemoteCommunication(`[RemoteCommunication: onCommunicationLayerMessage()] context=${r.context} on 'message' typeof=${typeof t}`,t),n.state.ready=!0,r.isOriginator||t.type!==e.MessageType.ORIGINATOR_INFO){if(r.isOriginator&&t.type===e.MessageType.WALLET_INFO)!function(e,t){let{state:n}=e;n.walletInfo=t.walletInfo,n.paused=!1}(n,t);else{if(t.type===e.MessageType.TERMINATE)!function(t){let{state:n}=t;n.isOriginator&&(hT({options:{terminate:!0,sendMessage:!1},instance:t}),console.debug(),t.emit(e.EventType.TERMINATE))}(n);else if(t.type===e.MessageType.PAUSE)!function(t){let{state:n}=t;n.paused=!0,t.setConnectionStatus(e.ConnectionStatus.PAUSED)}(n);else if(t.type===e.MessageType.READY&&r.isOriginator)!function(t){let{state:n}=t;t.setConnectionStatus(e.ConnectionStatus.LINKED);let r=n.paused;n.paused=!1,t.emit(e.EventType.CLIENTS_READY,{isOriginator:n.isOriginator,walletInfo:n.walletInfo}),r&&(n.authorized=!0,t.emit(e.EventType.AUTHORIZED))}(n);else{if(t.type===e.MessageType.OTP&&r.isOriginator)return void function(t,n){var r;let{state:i}=t;t.emit(e.EventType.OTP,n.otpAnswer),1==="6.6".localeCompare((null===(r=i.walletInfo)||void 0===r?void 0:r.version)||"")&&(console.warn("RemoteCommunication::on 'otp' -- backward compatibility <6.6 -- triger eth_requestAccounts"),t.emit(e.EventType.SDK_RPC_CALL,{method:hA.ETH_REQUESTACCOUNTS,params:[]}))}(n,t);t.type===e.MessageType.AUTHORIZED&&r.isOriginator&&function(t){let{state:n}=t;n.authorized=!0,t.emit(e.EventType.AUTHORIZED)}(n)}n.emit(e.EventType.MESSAGE,t)}}else!function(t,n){var r;let{state:i}=t;null===(r=i.communicationLayer)||void 0===r||r.sendMessage({type:e.MessageType.WALLET_INFO,walletInfo:i.walletInfo}),i.originatorInfo=n.originatorInfo||n.originator,t.emit(e.EventType.CLIENTS_READY,{isOriginator:i.isOriginator,originatorInfo:i.originatorInfo}),i.paused=!1}(n,t)}(n,a)},[e.EventType.CHANNEL_PERSISTENCE]:function(t){return()=>fh(this,void 0,void 0,function*(){var n,r,i,o,a,s,l;let{state:u}=t;fB.RemoteCommunication(`[RemoteCommunication: handleFullPersistenceEvent()] context=${u.context}`),t.state.ready=!0,t.state.clientsConnected=!0,t.state.authorized=!0,t.state.relayPersistence=!0,null===(n=t.state.communicationLayer)||void 0===n||n.getKeyExchange().setKeysExchanged(!0),t.emit(e.EventType.KEYS_EXCHANGED,{keysExchanged:!0,isOriginator:!0}),t.emit(e.EventType.AUTHORIZED),t.emit(e.EventType.CLIENTS_READY),t.emit(e.EventType.CHANNEL_PERSISTENCE);try{u.channelConfig=Object.assign(Object.assign({},u.channelConfig),{localKey:null===(r=u.communicationLayer)||void 0===r?void 0:r.getKeyExchange().getKeyInfo().ecies.private,otherKey:null===(i=u.communicationLayer)||void 0===i?void 0:i.getKeyExchange().getOtherPublicKey(),channelId:null!==(o=u.channelId)&&void 0!==o?o:"",validUntil:null!==(s=null===(a=u.channelConfig)||void 0===a?void 0:a.validUntil)&&void 0!==s?s:6048e5,relayPersistence:!0}),yield null===(l=u.storageManager)||void 0===l?void 0:l.persistChannelConfig(u.channelConfig)}catch(e){console.error("Error persisting channel config",e)}})}(a),[e.EventType.CLIENTS_CONNECTED]:()=>{var n,r,i,o;let{state:s}=a;if(fB.RemoteCommunication(`[RemoteCommunication: handleClientsConnectedEvent()] on 'clients_connected' channel=${s.channelId} keysExchanged=${null===(r=null===(n=s.communicationLayer)||void 0===n?void 0:n.getKeyInfo())||void 0===r?void 0:r.keysExchanged}`),s.analytics){let e=s.isOriginator?vf.REQUEST:vf.REQUEST_MOBILE;fU(Object.assign(Object.assign({id:null!==(i=s.channelId)&&void 0!==i?i:"",event:s.reconnection?vf.RECONNECT:e},s.originatorInfo),{commLayer:t,sdkVersion:s.sdkVersion,walletVersion:null===(o=s.walletInfo)||void 0===o?void 0:o.version,commLayerVersion:hv}),s.communicationServerUrl).catch(e=>{console.error("Cannot send analytics",e)})}s.clientsConnected=!0,s.originatorInfoSent=!1,a.emit(e.EventType.CLIENTS_CONNECTED)},[e.EventType.KEYS_EXCHANGED]:n=>{var r,i,o,s,l,u,c,d;let{state:f}=a;if(fB.RemoteCommunication(`[RemoteCommunication: handleKeysExchangedEvent()] context=${f.context} on commLayer.'keys_exchanged' channel=${f.channelId}`,n),null===(i=null===(r=f.communicationLayer)||void 0===r?void 0:r.getKeyInfo())||void 0===i?void 0:i.keysExchanged){let t=Object.assign(Object.assign({},f.channelConfig),{channelId:null!==(o=f.channelId)&&void 0!==o?o:"",validUntil:(null===(s=f.channelConfig)||void 0===s?void 0:s.validUntil)||6048e5,localKey:f.communicationLayer.getKeyInfo().ecies.private,otherKey:f.communicationLayer.getKeyInfo().ecies.otherPubKey});null===(l=f.storageManager)||void 0===l||l.persistChannelConfig(t).catch(e=>{console.error("Error persisting channel config",e)}),a.setConnectionStatus(e.ConnectionStatus.LINKED)}(function(e,t){var n,r,i,o,a,s,l,u;let{state:c}=e;fB.RemoteCommunication(`[RemoteCommunication: setLastActiveDate()] channel=${c.channelId}`,t);let d=Object.assign(Object.assign({},c.channelConfig),{channelId:null!==(n=c.channelId)&&void 0!==n?n:"",validUntil:null!==(i=null===(r=c.channelConfig)||void 0===r?void 0:r.validUntil)&&void 0!==i?i:0,relayPersistence:c.relayPersistence,localKey:null===(a=null===(o=c.communicationLayer)||void 0===o?void 0:o.state.keyExchange)||void 0===a?void 0:a.getKeyInfo().ecies.private,otherKey:null===(l=null===(s=c.communicationLayer)||void 0===s?void 0:s.state.keyExchange)||void 0===l?void 0:l.getKeyInfo().ecies.otherPubKey,lastActive:t.getTime()});null===(u=c.storageManager)||void 0===u||u.persistChannelConfig(d)})(a,new Date),f.analytics&&f.channelId&&fU({id:f.channelId,event:n.isOriginator?vf.CONNECTED:vf.CONNECTED_MOBILE,sdkVersion:f.sdkVersion,commLayer:t,commLayerVersion:hv,walletVersion:null===(u=f.walletInfo)||void 0===u?void 0:u.version},f.communicationServerUrl).catch(e=>{console.error("Cannot send analytics",e)}),f.isOriginator=n.isOriginator,n.isOriginator||(null===(c=f.communicationLayer)||void 0===c||c.sendMessage({type:e.MessageType.READY}),f.ready=!0,f.paused=!1),n.isOriginator&&!f.originatorInfoSent&&(null===(d=f.communicationLayer)||void 0===d||d.sendMessage({type:e.MessageType.ORIGINATOR_INFO,originatorInfo:f.originatorInfo,originator:f.originatorInfo}),f.originatorInfoSent=!0)},[e.EventType.SOCKET_DISCONNECTED]:()=>{let{state:e}=a;fB.RemoteCommunication("[RemoteCommunication: handleSocketDisconnectedEvent()] on 'socket_Disconnected' set ready to fal
2se"),e.ready=!1},[e.EventType.SOCKET_RECONNECT]:()=>{let{state:e}=a;fB.RemoteCommunication("[RemoteCommunication: handleSocketReconnectEvent()] on 'socket_reconnect' -- reset key exchange status / set ready to false"),e.ready=!1,e.authorized=!1,hw(e),a.emitServiceStatusEvent({context:"socket_reconnect"})},[e.EventType.CLIENTS_DISCONNECTED]:n=>{var r;let{state:i}=a;fB.RemoteCommunication(`[RemoteCommunication: handleClientsDisconnectedEvent()] context=${i.context} on 'clients_disconnected' channelId=${n}`),i.relayPersistence||(i.clientsConnected=!1,i.ready=!1,i.authorized=!1),a.emit(e.EventType.CLIENTS_DISCONNECTED,i.channelId),a.setConnectionStatus(e.ConnectionStatus.DISCONNECTED),i.analytics&&i.channelId&&fU({id:i.channelId,event:vf.DISCONNECTED,sdkVersion:i.sdkVersion,commLayer:t,commLayerVersion:hv,walletVersion:null===(r=i.walletInfo)||void 0===r?void 0:r.version},i.communicationServerUrl).catch(e=>{console.error("Cannot send analytics",e)})},[e.EventType.KEY_INFO]:()=>{},[e.EventType.CHANNEL_CREATED]:t=>{let{state:n}=a;fB.RemoteCommunication(`[RemoteCommunication: handleChannelCreatedEvent()] context=${n.context} on 'channel_created' channelId=${t}`),a.emit(e.EventType.CHANNEL_CREATED,t)},[e.EventType.CLIENTS_WAITING]:t=>{var n;let{state:r}=a;if(fB.RemoteCommunication(`[RemoteCommunication: handleClientsWaitingEvent()] context=${r.context} on 'clients_waiting' numberUsers=${t} ready=${r.ready} autoStarted=${r.originatorConnectStarted}`),a.setConnectionStatus(e.ConnectionStatus.WAITING),a.emit(e.EventType.CLIENTS_WAITING,t),r.originatorConnectStarted){fB.RemoteCommunication(`[RemoteCommunication: handleClientsWaitingEvent()] on 'clients_waiting' watch autoStarted=${r.originatorConnectStarted} timeout`,r.autoConnectOptions);let t=(null===(n=r.autoConnectOptions)||void 0===n?void 0:n.timeout)||3e3,i=setTimeout(()=>{fB.RemoteCommunication(`[RemoteCommunication: handleClientsWaitingEvent()] setTimeout(${t}) terminate channelConfig`,r.autoConnectOptions),r.originatorConnectStarted=!1,r.ready||a.setConnectionStatus(e.ConnectionStatus.TIMEOUT),clearTimeout(i)},t)}},[e.EventType.RPC_UPDATE]:t=>{a.emit(e.EventType.RPC_UPDATE,t)}})))try{g.communicationLayer.on(n,r)}catch(e){console.error(`Error registering handler for ${n}:`,e)}}({communicationLayerPreference:t,otherPublicKey:n,reconnect:r,ecies:i,communicationServerUrl:o,instance:this})}originatorSessionConnect(){return fh(this,void 0,void 0,function*(){return yield function(e){var t;return fh(this,void 0,void 0,function*(){let{state:n}=e;if(!n.storageManager)return void fB.RemoteCommunication("[RemoteCommunication: originatorSessionConnect()] no storage manager defined - skip");let r=yield n.storageManager.getPersistedChannelConfig();if(fB.RemoteCommunication(`[RemoteCommunication: originatorSessionConnect()] autoStarted=${n.originatorConnectStarted} channelConfig`,r),null===(t=n.communicationLayer)||void 0===t?void 0:t.isConnected())return fB.RemoteCommunication("[RemoteCommunication: originatorSessionConnect()] socket already connected - skip"),r;if(r){if(r.validUntil>Date.now())return n.channelConfig=r,n.originatorConnectStarted=!0,n.channelId=null==r?void 0:r.channelId,n.reconnection=!0,r;fB.RemoteCommunication("[RemoteCommunication: autoConnect()] Session has expired")}n.originatorConnectStarted=!1})}(this)})}generateChannelIdConnect(){return fh(this,void 0,void 0,function*(){return function(e){var t,n,r,i;if(!e.communicationLayer)throw Error("communication layer not initialized");if(e.ready)throw Error("Channel already connected");if(e.channelId&&(null===(t=e.communicationLayer)||void 0===t?void 0:t.isConnected()))return console.warn("Channel already exists -- interrupt generateChannelId",e.channelConfig),e.channelConfig=Object.assign(Object.assign({},e.channelConfig),{channelId:e.channelId,validUntil:Date.now()+e.sessionDuration}),null===(n=e.storageManager)||void 0===n||n.persistChannelConfig(e.channelConfig),{channelId:e.channelId,pubKey:null===(i=null===(r=e.communicationLayer)||void 0===r?void 0:r.getKeyInfo())||void 0===i?void 0:i.ecies.public};fB.RemoteCommunication("[RemoteCommunication: generateChannelId()]");let o=e.communicationLayer.createChannel();fB.RemoteCommunication("[RemoteCommunication: generateChannelId()] channel created",o);let a=Object.assign(Object.assign({},e.channelConfig),{channelId:o.channelId,validUntil:Date.now()+e.sessionDuration});
2return e.channelId=o.channelId,e.channelConfig=a,{channelId:e.channelId,pubKey:o.pubKey}}(this.state)})}clean(){return hw(this.state)}connectToChannel({channelId:e,withKeyExchange:t}){return function({channelId:e,withKeyExchange:t,state:n}){var r,i,o;if(!dd(e))throw fB.RemoteCommunication(`[RemoteCommunication: connectToChannel()] context=${n.context} invalid channel channelId=${e}`),Error(`Invalid channel ${e}`);if(fB.RemoteCommunication(`[RemoteCommunication: connectToChannel()] context=${n.context} channelId=${e} withKeyExchange=${t}`),null===(r=n.communicationLayer)||void 0===r?void 0:r.isConnected())return void fB.RemoteCommunication(`[RemoteCommunication: connectToChannel()] context=${n.context} already connected - interrupt connection.`);n.channelId=e,null===(i=n.communicationLayer)||void 0===i||i.connectToChannel({channelId:e,withKeyExchange:t});let a=Object.assign(Object.assign({},n.channelConfig),{channelId:e,validUntil:Date.now()+n.sessionDuration});n.channelConfig=a,null===(o=n.storageManager)||void 0===o||o.persistChannelConfig(a)}({channelId:e,withKeyExchange:t,state:this.state})}sendMessage(t){return function(t,n){var r,i;return fh(this,void 0,void 0,function*(){let{state:o}=t;fB.RemoteCommunication(`[RemoteCommunication: sendMessage()] context=${o.context} paused=${o.paused} ready=${o.ready} relayPersistence=${o.relayPersistence} authorized=${o.authorized} socket=${null===(r=o.communicationLayer)||void 0===r?void 0:r.isConnected()} clientsConnected=${o.clientsConnected} status=${o._connectionStatus}`,n),o.relayPersistence||o.ready&&(null===(i=o.communicationLayer)||void 0===i?void 0:i.isConnected())&&o.clientsConnected||(fB.RemoteCommunication(`[RemoteCommunication: sendMessage()] context=${o.context}  SKIP message waiting for MM mobile readiness.`),yield new Promise(n=>{t.once(e.EventType.CLIENTS_READY,n)}),fB.RemoteCommunication(`[RemoteCommunication: sendMessage()] context=${o.context}  AFTER SKIP / READY -- sending pending message`));try{yield function(t,n){return fh(this,void 0,void 0,function*(){return new Promise(r=>{var i,o,a,s;let{state:l}=t;if(fB.RemoteCommunication(`[RemoteCommunication: handleAuthorization()] context=${l.context} ready=${l.ready} authorized=${l.authorized} method=${n.method}`),1==="7.3".localeCompare((null===(i=l.walletInfo)||void 0===i?void 0:i.version)||""))return fB.RemoteCommunication(`[RemoteCommunication: handleAuthorization()] compatibility hack wallet version > ${null===(o=l.walletInfo)||void 0===o?void 0:o.version}`),null===(a=l.communicationLayer)||void 0===a||a.sendMessage(n),void r();!l.isOriginator||l.authorized||l.relayPersistence?(null===(s=l.communicationLayer)||void 0===s||s.sendMessage(n),r()):t.once(e.EventType.AUTHORIZED,()=>{var e;fB.RemoteCommunication(`[RemoteCommunication: handleAuthorization()] context=${l.context}  AFTER SKIP / AUTHORIZED -- sending pending message`),null===(e=l.communicationLayer)||void 0===e||e.sendMessage(n),r()})})})}(t,n)}catch(e){throw console.error(`[RemoteCommunication: sendMessage()] context=${o.context}  ERROR`,e),e}})}(this,t)}testStorage(){return fh(this,void 0,void 0,function*(){return function(e){var t;return fh(this,void 0,void 0,function*(){let n=yield null===(t=e.storageManager)||void 0===t?void 0:t.getPersistedChannelConfig();fB.RemoteCommunication("[RemoteCommunication: testStorage()] res",n)})}(this.state)})}getChannelConfig(){return this.state.channelConfig}isReady(){return this.state.ready}isConnected(){var e;return null===(e=this.state.communicationLayer)||void 0===e?void 0:e.isConnected()}isAuthorized(){return this.state.authorized}isPaused(){return this.state.paused}getCommunicationLayer(){return this.state.communicationLayer}ping(){var e;fB.RemoteCommunication(`[RemoteCommunication: ping()] channel=${this.state.channelId}`),null===(e=this.state.communicationLayer)||void 0===e||e.ping()}testLogger(){fB.RemoteCommunication(`testLogger() channel=${this.state.channelId}`),fB.SocketService(`testLogger() channel=${this.state.channelId}`),fB.Ecies(`testLogger() channel=${this.state.channelId}`),fB.KeyExchange(`testLogger() channel=${this.state.channelId}`)}keyCheck(){var e;fB.RemoteCommunication(`[RemoteCommunication: keyCheck()] channel=${this.state.channelId}`),null===(e=this.state.communicationLayer)||void 0===e||e.keyCheck()}setConnectionStatus(t){this.state._connectionStatus!==t&&(this.state._connectionStatus=t,this.emit
2(e.EventType.CONNECTION_STATUS,t),this.emitServiceStatusEvent({context:"setConnectionStatus"}))}emitServiceStatusEvent(t={}){this.emit(e.EventType.SERVICE_STATUS,this.getServiceStatus())}getConnectionStatus(){return this.state._connectionStatus}getServiceStatus(){return{originatorInfo:this.state.originatorInfo,keyInfo:this.getKeyInfo(),connectionStatus:this.state._connectionStatus,channelConfig:this.state.channelConfig,channelId:this.state.channelId}}getKeyInfo(){var e;return null===(e=this.state.communicationLayer)||void 0===e?void 0:e.getKeyInfo()}resetKeys(){var e;null===(e=this.state.communicationLayer)||void 0===e||e.resetKeys()}setOtherPublicKey(e){var t;let n=null===(t=this.state.communicationLayer)||void 0===t?void 0:t.getKeyExchange();if(!n)throw Error("KeyExchange is not initialized.");n.getOtherPublicKey()!==e&&n.setOtherPublicKey(e)}pause(){var t;fB.RemoteCommunication(`[RemoteCommunication: pause()] channel=${this.state.channelId}`),null===(t=this.state.communicationLayer)||void 0===t||t.pause(),this.setConnectionStatus(e.ConnectionStatus.PAUSED)}getVersion(){return hv}hasRelayPersistence(){var e;return null!==(e=this.state.relayPersistence)&&void 0!==e&&e}resume(){return function(t){var n;let{state:r}=t;fB.RemoteCommunication(`[RemoteCommunication: resume()] channel=${r.channelId}`),null===(n=r.communicationLayer)||void 0===n||n.resume(),t.setConnectionStatus(e.ConnectionStatus.LINKED)}(this)}getChannelId(){return this.state.channelId}getRPCMethodTracker(){var e;return null===(e=this.state.communicationLayer)||void 0===e?void 0:e.getRPCMethodTracker()}disconnect(e){return hT({options:e,instance:this})}}function hP(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function hL(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function hN(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}(vu=vp||(vp={})).RENEW="renew",vu.LINK="link","function"==typeof SuppressedError&&SuppressedError;var hD={errors:{disconnected:()=>"MetaMask: Disconnected from chain. Attempting to connect.",permanentlyDisconnected:()=>"MetaMask: Disconnected from MetaMask background. Page reload required.",sendSiteMetadata:()=>"MetaMask: Failed to send site metadata. This is an internal error, please report this bug.",unsupportedSync:e=>`MetaMask: The MetaMask Ethereum provider does not support synchronous methods like ${e} without a callback parameter.`,invalidDuplexStream:()=>"Must provide a Node.js-style duplex stream.",invalidNetworkParams:()=>"MetaMask: Received invalid network parameters. Please report this bug.",invalidRequestArgs:()=>"Expected a single, non-array, object argument.",invalidRequestMethod:()=>"'args.method' must be a non-empty string.",invalidRequestParams:()=>"'args.params' must be an object or array if provided.",invalidLoggerObject:()=>"'args.logger' must be an object if provided.",invalidLoggerMethod:e=>`'args.logger' must include required method '${e}'.`},info:{connected:e=>`MetaMask: Connected to chain with ID "${e}".`},warnings:{chainIdDeprecation:"MetaMask: 'ethereum.chainId' is deprecated and may be removed in the future. Please use the 'eth_chainId' RPC method instead.\nFor more information, see: https://github.com/MetaMask/metamask-improvement-proposals/discussions/23",networkVersionDeprecation:"MetaMask: 'ethereum.networkVersion' is deprecated and may be removed in the future. Please use the 'net_version' RPC method instead.\nFor more information, see: https://github.com/MetaMask/metamask-improvement-proposals/discussions/23",selectedAddressDeprecation:"MetaMask: 'ethereum.selectedAddress' is deprecated and may be removed in the future. Please use the 'eth_accounts' RPC method instead.\nFor more information, see: https://github.com/MetaMask/metamask-improvement-proposals/discussions/23",enableDeprecation:"MetaMask: 'ethereum.enable()' is deprecated and may be removed in the future. Please use the 'eth_requestAccounts' RPC method instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1102",sendDeprecation:"MetaMask: 'ethereum.send(...)' is deprecated and may be removed in the future. Please use 'ethereum.sendAsync(...)' or 'ethereum.request(...)' instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193",events:{close:"MetaMask: The event 'close' is deprecated and may be removed in the future. Please use 'disconnect' instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#disconnect",data:"MetaMask: The event 'data' is deprecated and will be removed in the future. Use 'message' instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#message",networkChanged:"MetaMask: The event 'networkChanged' is deprecated and may be removed in the future. Use 'chainChanged' instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#chainchanged",notification:"MetaMask: The event 'notification' is deprecated and may be removed in the future. Use 'message' instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#message"},rpc:{ethDecryptDeprecation:"MetaMask: The RPC method 'eth_decrypt' is deprecated and may be removed in the future.\nFor more information, see: https://medium.com/metamask/metamask-api-method-deprecation-2b0564a84686",ethGetEncryptionPublicKeyDeprecation:"MetaMask: The RPC method 'eth_getEncryptionPublicKey' is deprecated and may be removed in the future.\nFor more information, see: https://medium.com/metamask/metamask-api-method-deprecation-2b0564a84686",walletWatchAssetNFTExperimental:"MetaMask: The RPC method 'wallet_watchAsset' is experimental for ERC721/ERC1155 assets and may change in the future.\nFor more information, see: https://github.com/MetaMask/metamask-improvement-proposals/blob/main/MIPs/mip-1.md and https://github.com/MetaMask/metamask-improvement-proposals/blob/main/PROCESS-GUIDE.md#proposal-lifecycle"},experimentalMethods:"MetaMask: 'ethereum._metamask' exposes non-standard, experimental methods. They may be removed or changed without warning."}},hB={},hj={}
2,hF=l&&l.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(hj,"__esModule",{value:!0}),hj.createAsyncMiddleware=void 0,hj.createAsyncMiddleware=function(e){return(t,n,r,i)=>hF(this,void 0,void 0,function*(){let o;let a=new Promise(e=>{o=e}),s=null,l=!1;try{yield e(t,n,()=>hF(this,void 0,void 0,function*(){return l=!0,r(e=>{s=e,o()}),a})),l?(yield a,s(null)):i(null)}catch(e){s?s(e):i(e)}})};var hz={};Object.defineProperty(hz,"__esModule",{value:!0}),hz.createScaffoldMiddleware=void 0,hz.createScaffoldMiddleware=function(e){return(t,n,r,i)=>{let o=e[t.method];return void 0===o?r():"function"==typeof o?o(t,n,r,i):(n.result=o,i())}};var hU={};Object.defineProperty(hU,"__esModule",{value:!0}),hU.getUniqueId=void 0;let hq=Math.floor(4294967295*Math.random());hU.getUniqueId=function(){return hq=(hq+1)%4294967295};var hK={};Object.defineProperty(hK,"__esModule",{value:!0}),hK.createIdRemapMiddleware=void 0,hK.createIdRemapMiddleware=function(){return(e,t,n,r)=>{let i=e.id,o=(0,hU.getUniqueId)();e.id=o,t.id=o,n(n=>{e.id=i,t.id=i,n()})}};var hH={},hV={},h$={},hW={},hY={},hG={};Object.defineProperty(hG,"__esModule",{value:!0}),hG.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},hG.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}};var hQ={},hZ={},hJ={},hX={},h0={},h1={};Object.defineProperty(h1,"__esModule",{value:!0});var h2=((o=h2||{})[o.Null=4]="Null",o[o.Comma=1]="Comma",o[o.Wrapper=1]="Wrapper",o[o.True=4]="True",o[o.False=5]="False",o[o.Quote=1]="Quote",o[o.Colon=1]="Colon",o[o.Date=24]="Date",o),h3=/"|\\|\n|\r|\t/gu;function h6(e){return 127>=e.charCodeAt(0)}h1.isNonEmptyArray=function(e){return Array.isArray(e)&&e.length>0},h1.isNullOrUndefined=function(e){return null==e},h1.isObject=function(e){return!!e&&"object"==typeof e&&!Array.isArray(e)},h1.hasProperty=(e,t)=>Object.hasOwnProperty.call(e,t),h1.getKnownPropertyNames=function(e){return Object.getOwnPropertyNames(e)},h1.JsonSize=h2,h1.ESCAPE_CHARACTERS_REGEXP=h3,h1.isPlainObject=function(e){if("object"!=typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(e){return!1}},h1.isASCII=h6,h1.calculateStringSize=function(e){var t,n;return e.split("").reduce((e,t)=>h6(t)?e+1:e+2,0)+(t=e.match(h3),n=()=>[],null!=t?t:n()).length},h1.calculateNumberSize=function(e){return e.toString().length};var h4=c(Object.freeze({__proto__:null,ErrorWithCause:class e extends 
2Error{constructor(t,{cause:n}={}){super(t),this.name=e.name,n&&(this.cause=n),this.message=t}}}));let h8=e=>{if(e&&"object"==typeof e&&"cause"in e){if("function"==typeof e.cause){let t=e.cause();return t instanceof Error?t:void 0}return e.cause instanceof Error?e.cause:void 0}},h5=(e,t)=>{if(!(e instanceof Error))return"";let n=e.stack||"";if(t.has(e))return n+"\ncauses have become circular...";let r=h8(e);return r?(t.add(e),n+"\ncaused by: "+h5(r,t)):n},h7=(e,t,n)=>{if(!(e instanceof Error))return"";let r=n?"":e.message||"";if(t.has(e))return r+": ...";let i=h8(e);if(i){t.add(e);let n="cause"in e&&"function"==typeof e.cause;return r+(n?"":": ")+h7(i,t,n)}return r};var h9=c(Object.freeze({__proto__:null,findCauseByReference:(e,t)=>{if(!e||!t||!(e instanceof Error)||!(t.prototype instanceof Error)&&t!==Error)return;let n=new Set,r=e;for(;r&&!n.has(r);){if(n.add(r),r instanceof t)return r;r=h8(r)}},getErrorCause:h8,messageWithCauses:e=>h7(e,new Set),stackWithCauses:e=>h5(e,new Set)}));let{ErrorWithCause:pe}=h4,{findCauseByReference:pt,getErrorCause:pn,messageWithCauses:pr,stackWithCauses:pi}=h9;Object.defineProperty(h0,"__esModule",{value:!0});var po={ErrorWithCause:pe};function pa(e){return"object"==typeof e&&null!==e&&"code"in e}function ps(e){return"object"==typeof e&&null!==e&&"message"in e}h0.isErrorWithCode=pa,h0.isErrorWithMessage=ps,h0.isErrorWithStack=function(e){return"object"==typeof e&&null!==e&&"stack"in e},h0.getErrorMessage=function(e){return ps(e)&&"string"==typeof e.message?e.message:h1.isNullOrUndefined.call(void 0,e)?"":String(e)},h0.wrapError=function(e,t){if(e instanceof Error||h1.isObject.call(void 0,e)&&"Error"===e.constructor.name){let n;return n=2===Error.length?Error(t,{cause:e}):new po.ErrorWithCause(t,{cause:e}),pa(e)&&(n.code=e.code),n}return t.length>0?Error(`${String(e)}: ${t}`):Error(String(e))};class pl extends TypeError{constructor(e,t){let n;let{message:r,explanation:i,...o}=e,{path:a}=e,s=0===a.length?r:`At path: ${a.join(".")} -- ${r}`;super(i??s),null!=i&&(this.cause=s),Object.assign(this,o),this.name=this.constructor.name,this.failures=()=>n??(n=[e,...t()])}}function pu(e){return"object"==typeof e&&null!=e}function pc(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function pd(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function*pf(e,t,n,r){var i;for(let o of(pu(i=e)&&"function"==typeof i[Symbol.iterator]||(e=[e]),e)){let e=function(e,t,n,r){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});let{path:i,branch:o}=t,{type:a}=n,{refinement:s,message:l=`Expected a value of type \`${a}\`${s?` with refinement \`${s}\``:""}, but received: \`${pd(r)}\``}=e;return{value:r,type:a,refinement:s,key:i[i.length-1],path:i,branch:o,...e,message:l}}(o,t,n,r);e&&(yield e)}}function*ph(e,t,n={}){let{path:r=[],branch:i=[e],coerce:o=!1,mask:a=!1}=n,s={path:r,branch:i};if(o&&(e=t.coercer(e,s),a&&"type"!==t.type&&pu(t.schema)&&pu(e)&&!Array.isArray(e)))for(let n in e)void 0===t.schema[n]&&delete e[n];let l="valid";for(let r of t.validator(e,s))r.explanation=n.message,l="not_valid",yield[r,void 0];for(let[u,c,d]of t.entries(e,s))for(let t of ph(c,d,{path:void 0===u?r:[...r,u],branch:void 0===u?i:[...i,c],coerce:o,mask:a,message:n.message}))t[0]?(l=null!=t[0].refinement?"not_refined":"not_valid",yield[t[0],void 0]):o&&(c=t[1],void 0===u?e=c:e instanceof Map?e.set(u,c):e instanceof Set?e.add(c):pu(e)&&(void 0!==c||u in e)&&(e[u]=c));if("not_valid"!==l)for(let r of t.refiner(e,s))r.explanation=n.message,l="not_refined",yield[r,void 0];"valid"===l&&(yield[void 0,e])}class pp{constructor(e){let{type:t,schema:n,validator:r,refiner:i,coercer:o=e=>e,entries:a=function*(){}}=e;this.type=t,this.schema=n,this.entries=a,this.coercer=o,this.validator=r?(e,t)=>pf(r(e,t),t,this,e):()=>[],this.refiner=i?(e,t)=>pf(i(e,t),t,this,e):()=>[]}assert(e,t){return pm(e,this,t)}create(e,t){return pg(e,this,t)}is(e){return pb(e,this)}mask(e,t){return pv(e,this,t)}validate(e,t={}){return py(e,this,t)}}function pm(e,t,n){let r=py(e,t,{message:n});if(r[0])throw r[0]}function pg(e,t,n){let r=py(e,t,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}function pv(e,t,n){let r=py(e,t,{coerce:!0,mask:!0,message:n});if(r[0])throw r[0];return r[1]}function pb(e,t){return!py(e,t)[0]}function py(e,t,n={}
2){let r=ph(e,t,n),i=function(e){let{done:t,value:n}=e.next();return t?void 0:n}(r);return i[0]?[new pl(i[0],function*(){for(let e of r)e[0]&&(yield e[0])}),void 0]:[void 0,i[1]]}function pA(e,t){return new pp({type:e,schema:null,validator:t})}function pw(e){let t;return new pp({type:"lazy",schema:null,*entries(n,r){t??(t=e()),yield*t.entries(n,r)},validator:(n,r)=>(t??(t=e()),t.validator(n,r)),coercer:(n,r)=>(t??(t=e()),t.coercer(n,r)),refiner:(n,r)=>(t??(t=e()),t.refiner(n,r))})}function p_(){return pA("any",()=>!0)}function pE(e){return new pp({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(let[n,r]of t.entries())yield[n,r,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${pd(e)}`})}function pS(){return pA("boolean",e=>"boolean"==typeof e)}function pk(){return pA("integer",e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${pd(e)}`)}function pM(e){let t=pd(e),n=typeof e;return new pp({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:n=>n===e||`Expected the literal \`${t}\`, but received: ${pd(n)}`})}function pC(){return pA("never",()=>!1)}function px(e){return new pp({...e,validator:(t,n)=>null===t||e.validator(t,n),refiner:(t,n)=>null===t||e.refiner(t,n)})}function pR(){return pA("number",e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${pd(e)}`)}function pI(e){let t=e?Object.keys(e):[],n=pC();return new pp({type:"object",schema:e||null,*entries(r){if(e&&pu(r)){let i=new Set(Object.keys(r));for(let n of t)i.delete(n),yield[n,r[n],e[n]];for(let e of i)yield[e,r[e],n]}},validator:e=>pu(e)||`Expected an object, but received: ${pd(e)}`,coercer:e=>pu(e)?{...e}:e})}function pT(e){return new pp({...e,validator:(t,n)=>void 0===t||e.validator(t,n),refiner:(t,n)=>void 0===t||e.refiner(t,n)})}function pO(e,t){return new pp({type:"record",schema:null,*entries(n){if(pu(n))for(let r in n){let i=n[r];yield[r,r,e],yield[r,i,t]}},validator:e=>pu(e)||`Expected an object, but received: ${pd(e)}`})}function pP(){return pA("string",e=>"string"==typeof e||`Expected a string, but received: ${pd(e)}`)}function pL(e){let t=Object.keys(e);return new pp({type:"type",schema:e,*entries(n){if(pu(n))for(let r of t)yield[r,n[r],e[r]]},validator:e=>pu(e)||`Expected an object, but received: ${pd(e)}`,coercer:e=>pu(e)?{...e}:e})}function pN(e){let t=e.map(e=>e.type).join(" | ");return new pp({type:"union",schema:null,coercer(t){for(let n of e){let[e,r]=n.validate(t,{coerce:!0});if(!e)return r}return t},validator(n,r){let i=[];for(let t of e){let[...e]=ph(n,t,r),[o]=e;if(!o[0])return[];for(let[t]of e)t&&i.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${pd(n)}`,...i]}})}function pD(){return pA("unknown",()=>!0)}function pB(e,t,n){return new pp({...e,coercer:(r,i)=>pb(r,t)?e.coercer(n(r,i),i):e.coercer(r,i)})}function pj(e){return e instanceof Map||e instanceof Set?e.size:e.length}function pF(e,t,n){return new pp({...e,*refiner(r,i){for(let o of(yield*e.refiner(r,i),pf(n(r,i),i,e,r)))yield{...o,refinement:t}}})}var pz=c(Object.freeze({__proto__:null,Struct:pp,StructError:pl,any:p_,array:pE,assert:pm,assign:function(...e){let t="type"===e[0].type,n=Object.assign({},...e.map(e=>e.schema));return t?pL(n):pI(n)},bigint:function(){return pA("bigint",e=>"bigint"==typeof e)},boolean:pS,coerce:pB,create:pg,date:function(){return pA("date",e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${pd(e)}`)},defaulted:function(e,t,n={}){return pB(e,pD(),e=>{let r="function"==typeof t?t():t;if(void 0===e)return r;if(!n.strict&&pc(e)&&pc(r)){let t={...e},n=!1;for(let e in r)void 0===t[e]&&(t[e]=r[e],n=!0);if(n)return t}return e})},define:pA,deprecated:function(e,t){return new pp({...e,refiner:(t,n)=>void 0===t||e.refiner(t,n),validator:(n,r)=>void 0===n||(t(n,r),e.validator(n,r))})},dynamic:function(e){return new pp({type:"dynamic",schema:null,*entries(t,n){let r=e(t,n);yield*r.entries(t,n)},validator:(t,n)=>e(t,n).validator(t,n),coercer:(t,n)=>e(t,n).coercer(t,n),refiner:(t,n)=>e(t,n).refiner(t,n)})},empty:function(e){return pF(e,"empty",t=>{let n=pj(t);return 0===n||`Expected an empty ${e.type} but received one with a size of \`${n}\``})},enums:function(e){let t={},n=e.map(e=>pd(e)).join();for(let n of e)t[n]=n;return new pp({type:"enums",schema:t,validator:t=>e.includes(t)||`Expected one of \`${n}\`, but received: ${pd(t)}`})},func:function(){return pA("func",e=>"function"==typeof e||`Expected a function, but received: ${pd(e)}`)},instance:function(e){return pA("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${pd(t)}`)},integer:pk,intersection:function(e){return new pp({type:"intersection",schema:null,*entries(t,n){for(let r of e)yield*r.entries(t,n)},*validator(t,n){for(let r of e)yield*r.validator(t,n)},*refiner(t,n){for(let r of e)yield*r.refiner(t,n)}})},is:pb,lazy:pw,literal:pM,map:function(e,t){return new pp({type:"map",schema:null,*entries(n){if(e&&t&&n instanceof Map)for(let[r,i]of n.entries())yield[r,r,e],yield[r,i,t]},coercer:e=>e instanceof Map?new Map(e):e,validator:e=>e instanceof Map||`Expected a \`Map\` object, but received: ${pd(e)}`})},mask:pv,max:function(e,t,n={}){let{exclusive:r}=n;return pF(e,"max",n=>r?n<t:n<=t||`Expected a ${e.type} less than ${r?"":"or equal to "}${t} but received \`${n}\``)},min:function(e,t,n={}){let{exclusive:r}=n;return pF(e,"min",n=>r?n>t:n>=t||`Expected a ${e.type} greater than ${r?"":"or equal to "}${t} but received \`${n}\``)},never:pC,nonempty:function(e){return pF(e,"nonempty",t=>pj(t)>0||`Expected a nonempty ${e.type} but received an empty one`)},nullable:px,number:pR,object:pI,omit:function(e,t){let{schema:n}=e,r={...n};for(let e of t)delete r[e];return"type"===e.type?pL(r):pI(r)},optional:pT,partial:function(e){let t=e instanceof pp?{...e.schema}:{...e};for(let e in t)t[e]=pT(t[e]);return pI(t)},pattern:function(e,t){return pF(e,"pattern",n=>t.test(n)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${n}"`)},pick:function(e,t){let{schema:n}=e,r={};for(let e of t)r[e]=n[e];return pI(r)},record:pO,refine:pF,regexp:function(){return pA("regexp",e=>e instanceof RegExp)},set:function(e){return new pp({type:"set",schema:null,*entries(t){if(e&&t instanceof Set)for(let n of t)yield[n,n,e]},coercer:e=>e instanceof Set?new Set(e):e,validator:e=>e instanceof Set||`Expected a \`Set\` object, but received: ${pd(e)}`})},size:function(e,t,n=t){let r=`Expected a ${e.type}`,i=t===n?`of \`${t}\``:`between \`${t}\` and \`${n}\``;return pF(e,"size",e=>
2{if("number"==typeof e||e instanceof Date)return t<=e&&e<=n||`${r} ${i} but received \`${e}\``;if(e instanceof Map||e instanceof Set){let{size:o}=e;return t<=o&&o<=n||`${r} with a size ${i} but received one with a size of \`${o}\``}{let{length:o}=e;return t<=o&&o<=n||`${r} with a length ${i} but received one with a length of \`${o}\``}})},string:pP,struct:function(e,t){return console.warn("[email protected] - The `struct` helper has been renamed to `define`."),pA(e,t)},trimmed:function(e){return pB(e,pP(),e=>e.trim())},tuple:function(e){let t=pC();return new pp({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){let r=Math.max(e.length,n.length);for(let i=0;i<r;i++)yield[i,n[i],e[i]||t]}},validator:e=>Array.isArray(e)||`Expected an array, but received: ${pd(e)}`})},type:pL,union:pN,unknown:pD,validate:py}));function pU(e,t){return"string"==typeof function(e){let t,n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):"call"!==i&&"optionalCall"!==i||(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}([e,"optionalAccess",e=>e.prototype,"optionalAccess",e=>e.constructor,"optionalAccess",e=>e.name])?new e({message:t}):e({message:t})}Object.defineProperty(hX,"__esModule",{value:!0});var pq=class extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}};hX.AssertionError=pq,hX.assert=function(e,t="Assertion failed.",n=pq){if(!e){if(t instanceof Error)throw t;throw pU(n,t)}},hX.assertStruct=function(e,t,n="Assertion failed",r=pq){try{pz.assert.call(void 0,e,t)}catch(e){throw pU(r,`${n}: ${h0.getErrorMessage.call(void 0,e).replace(/\.$/u,"")}.`)}},hX.assertExhaustive=function(e){throw Error("Invalid branch reached. Should be detected during compilation.")};var pK={},pH={};function pV(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function p$(e){if("boolean"!=typeof e)throw Error(`Expected boolean, not ${e}`)}function pW(e,...t){if(!(e instanceof Uint8Array))throw Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function pY(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");pV(e.outputLen),pV(e.blockLen)}function pG(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function pQ(e,t){pW(e);let n=t.outputLen;if(e.length<n)throw Error(`digestInto() expects output buffer of length at least ${n}`)}Object.defineProperty(pH,"__esModule",{value:!0}),pH.output=pH.exists=pH.hash=pH.bytes=pH.bool=pH.number=void 0,pH.number=pV,pH.bool=p$,pH.bytes=pW,pH.hash=pY,pH.exists=pG,pH.output=pQ,pH.default={number:pV,bool:p$,bytes:pW,hash:pY,exists:pG,output:pQ};var pZ={};Object.defineProperty(pZ,"__esModule",{value:!0}),pZ.add5L=pZ.add5H=pZ.add4H=pZ.add4L=pZ.add3H=pZ.add3L=pZ.add=pZ.rotlBL=pZ.rotlBH=pZ.rotlSL=pZ.rotlSH=pZ.rotr32L=pZ.rotr32H=pZ.rotrBL=pZ.rotrBH=pZ.rotrSL=pZ.rotrSH=pZ.shrSL=pZ.shrSH=pZ.toBig=pZ.split=pZ.fromBig=void 0;let pJ=BigInt(4294967296-1),pX=BigInt(32);function p0(e,t=!1){return t?{h:Number(e&pJ),l:Number(e>>pX&pJ)}:{h:0|Number(e>>pX&pJ),l:0|Number(e&pJ)}}
2function p1(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let i=0;i<e.length;i++){let{h:o,l:a}=p0(e[i],t);[n[i],r[i]]=[o,a]}return[n,r]}pZ.fromBig=p0,pZ.split=p1;let p2=(e,t)=>BigInt(e>>>0)<<pX|BigInt(t>>>0);pZ.toBig=p2;let p3=(e,t,n)=>e>>>n;pZ.shrSH=p3;let p6=(e,t,n)=>e<<32-n|t>>>n;pZ.shrSL=p6;let p4=(e,t,n)=>e>>>n|t<<32-n;pZ.rotrSH=p4;let p8=(e,t,n)=>e<<32-n|t>>>n;pZ.rotrSL=p8;let p5=(e,t,n)=>e<<64-n|t>>>n-32;pZ.rotrBH=p5;let p7=(e,t,n)=>e>>>n-32|t<<64-n;pZ.rotrBL=p7;let p9=(e,t)=>t;pZ.rotr32H=p9;let me=(e,t)=>e;pZ.rotr32L=me;let mt=(e,t,n)=>e<<n|t>>>32-n;pZ.rotlSH=mt;let mn=(e,t,n)=>t<<n|e>>>32-n;pZ.rotlSL=mn;let mr=(e,t,n)=>t<<n-32|e>>>64-n;pZ.rotlBH=mr;let mi=(e,t,n)=>e<<n-32|t>>>64-n;function mo(e,t,n,r){let i=(t>>>0)+(r>>>0);return{h:e+n+(i/4294967296|0)|0,l:0|i}}pZ.rotlBL=mi,pZ.add=mo;let ma=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);pZ.add3L=ma;let ms=(e,t,n,r)=>t+n+r+(e/4294967296|0)|0;pZ.add3H=ms;let ml=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);pZ.add4L=ml;let mu=(e,t,n,r,i)=>t+n+r+i+(e/4294967296|0)|0;pZ.add4H=mu;let mc=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0);pZ.add5L=mc;let md=(e,t,n,r,i,o)=>t+n+r+i+o+(e/4294967296|0)|0;pZ.add5H=md,pZ.default={fromBig:p0,split:p1,toBig:p2,shrSH:p3,shrSL:p6,rotrSH:p4,rotrSL:p8,rotrBH:p5,rotrBL:p7,rotr32H:p9,rotr32L:me,rotlSH:mt,rotlSL:mn,rotlBH:mr,rotlBL:mi,add:mo,add3L:ma,add3H:ms,add4L:ml,add4H:mu,add5H:md,add5L:mc};var mf={},mh={};Object.defineProperty(mh,"__esModule",{value:!0}),mh.crypto=void 0,mh.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.isLE=e.rotr=e.createView=e.u32=e.u8=void 0;let t=e=>e instanceof Uint8Array;
2if(e.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),e.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),e.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),e.rotr=(e,t)=>e<<32-t|e>>>t,e.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!e.isLE)throw Error("Non little-endian hardware is not supported");let n=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function r(e){if("string"!=typeof e)throw Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}function i(e){if("string"==typeof e&&(e=r(e)),!t(e))throw Error("expected Uint8Array, got "+typeof e);return e}e.bytesToHex=function(e){if(!t(e))throw Error("Uint8Array expected");let r="";for(let t=0;t<e.length;t++)r+=n[e[t]];return r},e.hexToBytes=function(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(t/2);for(let t=0;t<n.length;t++){let r=2*t,i=Number.parseInt(e.slice(r,r+2),16);if(Number.isNaN(i)||i<0)throw Error("Invalid byte sequence");n[t]=i}return n},e.nextTick=async()=>{},e.asyncLoop=async function(t,n,r){let i=Date.now();for(let o=0;o<t;o++){r(o);let t=Date.now()-i;t>=0&&t<n||(await (0,e.nextTick)(),i+=t)}},e.utf8ToBytes=r,e.toBytes=i,e.concatBytes=function(...e){let n=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;return e.forEach(e=>{if(!t(e))throw Error("Uint8Array expected");n.set(e,r),r+=e.length}),n},e.Hash=class{clone(){return this._cloneInto()}};let o={}.toString;e.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==o.call(t))throw Error("Options should be object or undefined");return Object.assign(e,t)},e.wrapConstructor=function(e){let t=t=>e().update(i(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t},e.wrapConstructorWithOpts=function(e){let t=(t,n)=>e(n).update(i(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},e.wrapXOFConstructorWithOpts=function(e){let t=(t,n)=>e(n).update(i(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},e.randomBytes=function(e=32){if(mh.crypto&&"function"==typeof mh.crypto.getRandomValues)return mh.crypto.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}}(mf),Object.defineProperty(pK,"__esModule",{value:!0}),pK.shake256=pK.shake128=pK.keccak_512=pK.keccak_384=pK.keccak_256=pK.keccak_224=pK.sha3_512=pK.sha3_384=pK.sha3_256=pK.sha3_224=pK.Keccak=pK.keccakP=void 0;let mp=mf,[mm,mg,mv]=[[],[],[]],mb=BigInt(0),my=BigInt(1),mA=BigInt(2),mw=BigInt(7),m_=BigInt(256),mE=BigInt(113);for(let e=0,t=my,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],mm.push(2*(5*r+n)),mg.push((e+1)*(e+2)/2%64);let i=mb;for(let e=0;e<7;e++)(t=(t<<my^(t>>mw)*mE)%m_)&mA&&(i^=my<<(my<<BigInt(e))-my);mv.push(i)}let[mS,mk]=(0,pZ.split)(mv,!0),mM=(e,t,n)=>n>32?(0,pZ.rotlBH)(e,t,n):(0,pZ.rotlSH)(e,t,n),mC=(e,t,n)=>n>32?(0,pZ.rotlBL)(e,t,n):(0,pZ.rotlSL)(e,t,n);function mx(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let r=(t+8)%10,i=(t+2)%10,o=n[i],a=n[i+1],s=mM(o,a,1)^n[r],l=mC(o,a,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=s,e[t+n+1]^=l}let t=e[2],i=e[3];for(let n=0;n<24;n++){let r=mg[n],o=mM(t,i,r),a=mC(t,i,r),s=mm[n];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=mS[r],e[1]^=mk[r]}n.fill(0)}pK.keccakP=mx;class mR extends mp.Hash{constructor(e,t,n,r=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,pH.number)(n),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,mp.u32)(this.state)}keccak(){mx(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,pH.exists)(this);let{blockLen:t,state:n}=this,r=(e=(0,mp.toBytes)(e)).length;for(let i=0;i<r;){let o=Math.min(t-this.pos,r-i);for(let t=0;t<o;t++)n[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,0!=(128&t)&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}
2writeInto(e){(0,pH.exists)(this,!1),(0,pH.bytes)(e),this.finish();let t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();let o=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+o),r),this.posOut+=o,r+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,pH.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,pH.output)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:o}=this;return e||(e=new mR(t,n,r,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=o,e.destroyed=this.destroyed,e}}pK.Keccak=mR;let mI=(e,t,n)=>(0,mp.wrapConstructor)(()=>new mR(t,e,n));pK.sha3_224=mI(6,144,28),pK.sha3_256=mI(6,136,32),pK.sha3_384=mI(6,104,48),pK.sha3_512=mI(6,72,64),pK.keccak_224=mI(1,144,28),pK.keccak_256=mI(1,136,32),pK.keccak_384=mI(1,104,48),pK.keccak_512=mI(1,72,64);let mT=(e,t,n)=>(0,mp.wrapXOFConstructorWithOpts)((r={})=>new mR(t,e,void 0===r.dkLen?n:r.dkLen,!0));pK.shake128=mT(31,168,16),pK.shake256=mT(31,136,32);var mO={};(function(e){function t(...e){let n=(e,t)=>n=>e(t(n));return{encode:Array.from(e).reverse().reduce((e,t)=>e?n(e,t.encode):t.encode,void 0),decode:e.reduce((e,t)=>e?n(e,t.decode):t.decode,void 0)}}function n(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw Error("alphabet.encode input should be an array of numbers");return t.map(t=>{if(t<0||t>=e.length)throw Error(`Digit index outside alphabet: ${t} (alphabet: ${e.length})`);return e[t]})},decode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw Error("alphabet.decode input should be array of strings");return t.map(t=>{if("string"!=typeof t)throw Error(`alphabet.decode: not string element=${t}`);let n=e.indexOf(t);if(-1===n)throw Error(`Unknown letter: "${t}". Allowed: ${e}`);return n})}}}function r(e=""){if("string"!=typeof e)throw Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw Error("join.encode input should be array of strings");for(let e of t)if("string"!=typeof e)throw Error(`join.encode: non-string input=${e}`);return t.join(e)},decode:t=>{if("string"!=typeof t)throw Error("join.decode input should be string");return t.split(e)}}}function i(e,t="="){if("string"!=typeof t)throw Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw Error("padding.encode input should be array of strings");for(let e of n)if("string"!=typeof e)throw Error(`padding.encode: non-string input=${e}`);for(;n.length*e%8;)n.push(t);return n},decode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw Error("padding.encode input should be array of strings");for(let e of n)if("string"!=typeof e)throw Error(`padding.decode: non-string input=${e}`);let r=n.length;if(r*e%8)throw Error("Invalid padding: string should have whole number of bytes");for(;r>0&&n[r-1]===t;r--)if(!((r-1)*e%8))throw Error("Invalid padding: string has too much padding");return n.slice(0,r)}}}function o(e){if("function"!=typeof e)throw Error("normalize fn should be function");return{encode:e=>e,decode:t=>e(t)}}function a(e,t,n){if(t<2)throw Error(`convertRadix: wrong from=${t}, base cannot be less than 2`);if(n<2)throw Error(`convertRadix: wrong to=${n}, base cannot be less than 2`);if(!Array.isArray(e))throw Error("convertRadix: data should be array");if(!e.length)return[];let r=0,i=[],o=Array.from(e);for(o.forEach(e=>{if(e<0||e>=t)throw Error(`Wrong integer: ${e}`)});;){let e=0,a=!0;for(let i=r;i<o.length;i++){let s=o[i],l=t*e+s;if(!Number.isSafeInteger(l)||t*e/t!==e||l-s!=t*e)throw Error("convertRadix: carry overflow");e=l%n;let u=Math.floor(l/n);if(o[i]=u,!Number.isSafeInteger(u)||u*n+e!==l)throw Error("convertRadix: carry overflow");a&&(u?a=!1:r=i)}if(i.push(e),a)break}for(let t=0;t<e.length-1&&0===e[t];t++)i.push(0);return i.reverse()}
2Object.defineProperty(e,"__esModule",{value:!0}),e.bytes=e.stringToBytes=e.str=e.bytesToString=e.hex=e.utf8=e.bech32m=e.bech32=e.base58check=e.base58xmr=e.base58xrp=e.base58flickr=e.base58=e.base64urlnopad=e.base64url=e.base64=e.base32crockford=e.base32hex=e.base32=e.base16=e.utils=e.assertNumber=void 0,e.assertNumber=function(e){if(!Number.isSafeInteger(e))throw Error(`Wrong integer: ${e}`)};let s=(e,t)=>t?s(t,e%t):e,l=(e,t)=>e+(t-s(e,t));function u(e,t,n,r){if(!Array.isArray(e))throw Error("convertRadix2: data should be array");if(t<=0||t>32)throw Error(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)throw Error(`convertRadix2: wrong to=${n}`);if(l(t,n)>32)throw Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${l(t,n)}`);let i=0,o=0,a=2**n-1,s=[];for(let r of e){if(r>=2**t)throw Error(`convertRadix2: invalid data word=${r} from=${t}`);if(i=i<<t|r,o+t>32)throw Error(`convertRadix2: carry overflow pos=${o} from=${t}`);for(o+=t;o>=n;o-=n)s.push((i>>o-n&a)>>>0);i&=2**o-1}if(i=i<<n-o&a,!r&&o>=t)throw Error("Excess padding");if(!r&&i)throw Error(`Non-zero padding: ${i}`);return r&&o>0&&s.push(i>>>0),s}function c(e){return{encode:t=>{if(!(t instanceof Uint8Array))throw Error("radix.encode input should be Uint8Array");return a(Array.from(t),256,e)},decode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw Error("radix.decode input should be array of strings");return Uint8Array.from(a(t,e,256))}}}function d(e,t=!1){if(e<=0||e>32)throw Error("radix2: bits should be in (0..32]");if(l(8,e)>32||l(e,8)>32)throw Error("radix2: carry overflow");return{encode:n=>{if(!(n instanceof Uint8Array))throw Error("radix2.encode input should be Uint8Array");return u(Array.from(n),8,e,!t)},decode:n=>{if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw Error("radix2.decode input should be array of strings");return Uint8Array.from(u(n,e,8,t))}}}function f(e){if("function"!=typeof e)throw Error("unsafeWrapper fn should be function");return function(...t){try{return e.apply(null,t)}catch(e){}}}function h(e,t){if("function"!=typeof t)throw Error("checksum fn should be function");return{encode(n){if(!(n instanceof Uint8Array))throw Error("checksum.encode: input should be Uint8Array");let r=t(n).slice(0,e),i=new Uint8Array(n.length+e);return i.set(n),i.set(r,n.length),i},decode(n){if(!(n instanceof Uint8Array))throw Error("checksum.decode: input should be Uint8Array");let r=n.slice(0,-e),i=t(r).slice(0,e),o=n.slice(-e);for(let t=0;t<e;t++)if(i[t]!==o[t])throw Error("Invalid checksum");return r}}}e.utils={alphabet:n,chain:t,checksum:h,radix:c,radix2:d,join:r,padding:i},e.base16=t(d(4),n("0123456789ABCDEF"),r("")),e.base32=t(d(5),n("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),i(5),r("")),e.base32hex=t(d(5),n("0123456789ABCDEFGHIJKLMNOPQRSTUV"),i(5),r("")),e.base32crockford=t(d(5),n("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),r(""),o(e=>e.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),e.base64=t(d(6),n("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),i(6),r("")),e.base64url=t(d(6),n("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),i(6),r("")),e.base64urlnopad=t(d(6),n("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),r(""));let p=e=>t(c(58),n(e),r(""));e.base58=p("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),e.base58flickr=p("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),e.base58xrp=p("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");let m=[0,2,3,5,6,7,9,10,11];e.base58xmr={encode(t){let n="";for(let r=0;r<t.length;r+=8){let i=t.subarray(r,r+8);n+=e.base58.encode(i).padStart(m[i.length],"1")}return n},decode(t){let n=[];for(let r=0;r<t.length;r+=11){let i=t.slice(r,r+11),o=m.indexOf(i.length),a=e.base58.decode(i);for(let e=0;e<a.length-o;e++)if(0!==a[e])throw Error("base58xmr: wrong padding");n=n.concat(Array.from(a.slice(a.length-o)))}return Uint8Array.from(n)}},e.base58check=n=>t(h(4,e=>n(n(e))),e.base58);let g=t(n("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),r("")),v=[996825010,642813549,513874426,1027748829,705979059];function b(e){let t=e>>25,n=(33554431&e)<<5;for(let e=0;e<v.length;e++)1==(t>>e&1)&&(n^=v[e]);return n}function y(e,t,n=1){let r=e.length,i=1;for(let t=0;t<r;t++){let n=e.charCodeAt(t);if(n<33||n>126)throw Error(`Invalid prefix (${e})`);i=b(i)^n>>5}i=b(i);for(let t=0;t<r;t++)i=b(i)^31&e.charCodeAt(t);for(let e of t)i=b(i)^e;for(let e=0;e<6;e++)i=b(i);return i^=n,g.encode(u([i%1073741824],30,5,!1))}function A(e){let t="bech32"===e?1:734539939,n=d(5),r=n.decode,i=n.encode,o=f(r);function a(e,n=90){if("string"!=typeof e)throw Error("bech32.decode input should be string, not "+typeof e);if(e.length<8||!1!==n&&e.length>
2n)throw TypeError(`Wrong string length: ${e.length} (${e}). Expected (8..${n})`);let r=e.toLowerCase();if(e!==r&&e!==e.toUpperCase())throw Error("String must be lowercase or uppercase");let i=(e=r).lastIndexOf("1");if(0===i||-1===i)throw Error('Letter "1" must be present between prefix and data only');let o=e.slice(0,i),a=e.slice(i+1);if(a.length<6)throw Error("Data must be at least 6 characters long");let s=g.decode(a).slice(0,-6),l=y(o,s,t);if(!a.endsWith(l))throw Error(`Invalid checksum in ${e}: expected "${l}"`);return{prefix:o,words:s}}return{encode:function(e,n,r=90){if("string"!=typeof e)throw Error("bech32.encode prefix should be string, not "+typeof e);if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw Error("bech32.encode words should be array of numbers, not "+typeof n);let i=e.length+7+n.length;if(!1!==r&&i>r)throw TypeError(`Length ${i} exceeds limit ${r}`);let o=e.toLowerCase(),a=y(o,n,t);return`${o}1${g.encode(n)}${a}`},decode:a,decodeToBytes:function(e){let{prefix:t,words:n}=a(e,!1);return{prefix:t,words:n,bytes:r(n)}},decodeUnsafe:f(a),fromWords:r,fromWordsUnsafe:o,toWords:i}}e.bech32=A("bech32"),e.bech32m=A("bech32m"),e.utf8={encode:e=>(new TextDecoder).decode(e),decode:e=>(new TextEncoder).encode(e)},e.hex=t(d(4),n("0123456789abcdef"),r(""),o(e=>{if("string"!=typeof e||e.length%2)throw TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()}));let w={utf8:e.utf8,hex:e.hex,base16:e.base16,base32:e.base32,base64:e.base64,base64url:e.base64url,base58:e.base58,base58xmr:e.base58xmr},_="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr";e.bytesToString=(e,t)=>{if("string"!=typeof e||!w.hasOwnProperty(e))throw TypeError(_);if(!(t instanceof Uint8Array))throw TypeError("bytesToString() expects Uint8Array");return w[e].encode(t)},e.str=e.bytesToString,e.stringToBytes=(e,t)=>{if(!w.hasOwnProperty(e))throw TypeError(_);if("string"!=typeof t)throw TypeError("stringToBytes() expects string");return w[e].decode(t)},e.bytes=e.stringToBytes})(mO),Object.defineProperty(hJ,"__esModule",{value:!0});var mP=function(){let e=[];return()=>{if(0===e.length)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}();function mL(e){return e instanceof Uint8Array}function mN(e){hX.assert.call(void 0,mL(e),"Value must be a Uint8Array.")}function mD(e){if(mN(e),0===e.length)return"0x";let t=mP(),n=Array(e.length);for(let r=0;r<e.length;r++)n[r]=t[e[r]];return mJ(n.join(""))}function mB(e){return mN(e),BigInt(mD(e))}function mj(e){if("0x"===function(e){let t,n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):"call"!==i&&"optionalCall"!==i||(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}([e,"optionalAccess",e=>e.toLowerCase,"optionalCall",e=>e()]))return new Uint8Array;mG(e);let t=mX(e).toLowerCase(),n=t.length%2==0?t:`0${t}`,r=new Uint8Array(n.length/2);for(let e=0;e<r.length;e++){let t=n.charCodeAt(2*e),i=n.charCodeAt(2*e+1),o=t-(t<58?48:87),a=i-(i<58?48:87);r[e]=16*o+a}return r}function mF(e){return hX.assert.call(void 0,"bigint"==typeof e,"Value must be a bigint."),hX.assert.call(void 0,e>=BigInt(0),"Value must be a non-negative bigint."),mj(e.toString(16))}function mz(e){return hX.assert.call(void 0,"number"==typeof e,"Value must be a number."),hX.assert.call(void 0,e>=0,"Value must be a non-negative number."),hX.assert.call(void 0,Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToBytes` instead."),mj(e.toString(16))}function mU(e){return hX.assert.call(void 0,"string"==typeof e,"Value must be a string."),(new TextEncoder).encode(e)}function mq(e){if("bigint"==typeof e)return mF(e);if("number"==typeof e)return mz(e);if("string"==typeof e)return e.startsWith("0x")?mj(e):mU(e);if(mL(e))return e;throw TypeError(`Unsupported value type: "${typeof e}".`)}var mK=pz.pattern.call(void 0,pz.string.call(void 0),/^(?:0x)?[0-9a-f]+$/iu),mH=pz.pattern.call(void 0,pz.string.call(void 0),/^0x[0-9a-f]+$/iu),mV=pz.pattern.c
2all(void 0,pz.string.call(void 0),/^0x[0-9a-f]{40}$/u),m$=pz.pattern.call(void 0,pz.string.call(void 0),/^0x[0-9a-fA-F]{40}$/u);function mW(e){return pz.is.call(void 0,e,mK)}function mY(e){return pz.is.call(void 0,e,mH)}function mG(e){hX.assert.call(void 0,mW(e),"Value must be a hexadecimal string.")}function mQ(e){hX.assert.call(void 0,pz.is.call(void 0,e,m$),"Invalid hex address.");let t=mX(e.toLowerCase()),n=mX(mD(pK.keccak_256.call(void 0,t)));return`0x${t.split("").map((e,t)=>{let r=n[t];return hX.assert.call(void 0,pz.is.call(void 0,r,pz.string.call(void 0)),"Hash shorter than address."),parseInt(r,16)>7?e.toUpperCase():e}).join("")}`}function mZ(e){return!!pz.is.call(void 0,e,m$)&&mQ(e)===e}function mJ(e){return e.startsWith("0x")?e:e.startsWith("0X")?`0x${e.substring(2)}`:`0x${e}`}function mX(e){return e.startsWith("0x")||e.startsWith("0X")?e.substring(2):e}hJ.HexStruct=mK,hJ.StrictHexStruct=mH,hJ.HexAddressStruct=mV,hJ.HexChecksumAddressStruct=m$,hJ.isHexString=mW,hJ.isStrictHexString=mY,hJ.assertIsHexString=mG,hJ.assertIsStrictHexString=function(e){hX.assert.call(void 0,mY(e),'Value must be a hexadecimal string, starting with "0x".')},hJ.isValidHexAddress=function(e){return pz.is.call(void 0,e,mV)||mZ(e)},hJ.getChecksumAddress=mQ,hJ.isValidChecksumAddress=mZ,hJ.add0x=mJ,hJ.remove0x=mX,hJ.isBytes=mL,hJ.assertIsBytes=mN,hJ.bytesToHex=mD,hJ.bytesToBigInt=mB,hJ.bytesToSignedBigInt=function(e){mN(e);let t=BigInt(0);for(let n of e)t=(t<<BigInt(8))+BigInt(n);return BigInt.asIntN(8*e.length,t)},hJ.bytesToNumber=function(e){mN(e);let t=mB(e);return hX.assert.call(void 0,t<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number(t)},hJ.bytesToString=function(e){return mN(e),(new TextDecoder).decode(e)},hJ.bytesToBase64=function(e){return mN(e),mO.base64.encode(e)},hJ.hexToBytes=mj,hJ.bigIntToBytes=mF,hJ.signedBigIntToBytes=function(e,t){hX.assert.call(void 0,"bigint"==typeof e,"Value must be a bigint."),hX.assert.call(void 0,"number"==typeof t,"Byte length must be a number."),hX.assert.call(void 0,t>0,"Byte length must be greater than 0."),hX.assert.call(void 0,function(e,t){hX.assert.call(void 0,t>0);let n=e>>BigInt(31);return!((~e&n)+(e&~n)>>BigInt(8*t-1))}(e,t),"Byte length is too small to represent the given value.");let n=e,r=new Uint8Array(t);for(let e=0;e<r.length;e++)r[e]=Number(BigInt.asUintN(8,n)),n>>=BigInt(8);return r.reverse()},hJ.numberToBytes=mz,hJ.stringToBytes=mU,hJ.base64ToBytes=function(e){return hX.assert.call(void 0,"string"==typeof e,"Value must be a string."),mO.base64.decode(e)},hJ.valueToBytes=mq,hJ.concatBytes=function(e){let t=Array(e.length),n=0;for(let r=0;r<e.length;r++){let i=mq(e[r]);t[r]=i,n+=i.length}let r=new Uint8Array(n);for(let e=0,n=0;e<t.length;e++)r.set(t[e],n),n+=t[e].length;return r},hJ.createDataView=function(e){return void 0!==M&&e instanceof M?new DataView(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)):new DataView(e.buffer,e.byteOffset,e.byteLength)},Object.defineProperty(hZ,"__esModule",{value:!0}),hZ.numberToHex=e=>(hX.assert.call(void 0,"number"==typeof e,"Value must be a number."),hX.assert.call(void 0,e>=0,"Value must be a non-negative number."),hX.assert.call(void 0,Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),hJ.add0x.call(void 0,e.toString(16))),hZ.bigIntToHex=e=>(hX.assert.call(void 0,"bigint"==typeof e,"Value must be a bigint."),hX.assert.call(void 0,e>=0,"Value must be a non-negative bigint."),hJ.add0x.call(void 0,e.toString(16))),hZ.hexToNumber=e=>{hJ.assertIsHexString.call(void 0,e);let t=parseInt(e,16);return hX.assert.call(void 0,Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t},hZ.hexToBigInt=e=>(hJ.assertIsHexString.call(void 0,e),BigInt(hJ.add0x.call(void 0,e)));var m0={};Object.defineProperty(m0,"__esModule",{value:!0}),m0.createDeferredPromise=function({suppressUnhandledRejection:e=!1}={}){let t,n;let r=new Promise((e,r)=>{t=e,n=r});return e&&r.catch(e=>{}),{promise:r,resolve:t,reject:n}};var m1={};Object.defineProperty(m1,"__esModule",{value:!0});var m2=((a=m2||{})[a.Millisecond=1]="Millisecond",a[a.Second=1e3]="Second",a[a.Minute=6e4]="Minute",a[a.Hour=36e5]="Hour",a[a.Day=864e5]="Day",a[a.Week=6048e5]="Week",a[a.Year=31536e6]="Year",a),m3=(e,t)=>
2{if(!(Number.isInteger(e)&&e>=0))throw Error(`"${t}" must be a non-negative integer. Received: "${e}".`)};m1.Duration=m2,m1.inMilliseconds=function(e,t){return m3(e,"count"),e*t},m1.timeSince=function(e){return m3(e,"timestamp"),Date.now()-e};var m6={},m4={exports:{}},m8={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},m5="object"==typeof ex&&ex.env&&ex.env.NODE_DEBUG&&/\bsemver\b/i.test(ex.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};!function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=m8,o=(t=e.exports={}).re=[],a=t.safeRe=[],s=t.src=[],l=t.t={},u=0,c="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",i],[c,r]],f=(e,t,n)=>{let r=(e=>{for(let[t,n]of d)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),i=u++;m5(e,i,t),l[e]=i,s[i]=t,o[i]=new RegExp(t,n?"g":void 0),a[i]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${c}*`),f("MAINVERSION",`(${s[l.NUMERICIDENTIFIER]})\\.(${s[l.NUMERICIDENTIFIER]})\\.(${s[l.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${s[l.NUMERICIDENTIFIERLOOSE]})\\.(${s[l.NUMERICIDENTIFIERLOOSE]})\\.(${s[l.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${s[l.NUMERICIDENTIFIER]}|${s[l.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${s[l.NUMERICIDENTIFIERLOOSE]}|${s[l.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${s[l.PRERELEASEIDENTIFIER]}(?:\\.${s[l.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${s[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[l.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${c}+`),f("BUILD",`(?:\\+(${s[l.BUILDIDENTIFIER]}(?:\\.${s[l.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${s[l.MAINVERSION]}${s[l.PRERELEASE]}?${s[l.BUILD]}?`),f("FULL",`^${s[l.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${s[l.MAINVERSIONLOOSE]}${s[l.PRERELEASELOOSE]}?${s[l.BUILD]}?`),f("LOOSE",`^${s[l.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${s[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${s[l.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${s[l.XRANGEIDENTIFIER]})(?:\\.(${s[l.XRANGEIDENTIFIER]})(?:\\.(${s[l.XRANGEIDENTIFIER]})(?:${s[l.PRERELEASE]})?${s[l.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${s[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[l.XRANGEIDENTIFIERLOOSE]})(?:${s[l.PRERELEASELOOSE]})?${s[l.BUILD]}?)?)?`),f("XRANGE",`^${s[l.GTLT]}\\s*${s[l.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${s[l.GTLT]}\\s*${s[l.XRANGEPLAINLOOSE]}$`),f("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),f("COERCERTL",s[l.COERCE],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${s[l.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${s[l.LONETILDE]}${s[l.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${s[l.LONETILDE]}${s[l.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${s[l.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${s[l.LONECARET]}${s[l.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${s[l.LONECARET]}${s[l.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${s[l.GTLT]}\\s*(${s[l.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${s[l.GTLT]}\\s*(${s[l.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${s[l.GTLT]}\\s*(${s[l.LOOSEPLAIN]}|${s[l.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${s[l.XRANGEPLAIN]})\\s+-\\s+(${s[l.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${s[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[l.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(m4,m4.exports);var m7=m4.exports;let m9=Object.freeze({loose:!0}),ge=Object.freeze({});var gt=e=>e?"object"!=typeof e?m9:e:ge;let gn=/^[0-9]+$/,gr=(e,t)=>{let n=gn.test(e),r=gn.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var gi={compareIdentifiers:gr,rcompareIdentifiers:(e,t)=>gr(t,e)};
2let{MAX_LENGTH:go,MAX_SAFE_INTEGER:ga}=m8,{safeRe:gs,t:gl}=m7,{compareIdentifiers:gu}=gi;var gc=class e{constructor(t,n){if(n=gt(n),t instanceof e){if(!!n.loose===t.loose&&!!n.includePrerelease===t.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>go)throw TypeError(`version is longer than ${go} characters`);m5("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let r=t.trim().match(n.loose?gs[gl.LOOSE]:gs[gl.FULL]);if(!r)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>ga||this.major<0)throw TypeError("Invalid major version");if(this.minor>ga||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>ga||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<ga)return t}return e}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(m5("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),gu(this.major,t.major)||gu(this.minor,t.minor)||gu(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return -1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{let e=this.prerelease[n],r=t.prerelease[n];if(m5("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return -1;if(e!==r)return gu(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{let e=this.build[n],r=t.build[n];if(m5("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return -1;if(e!==r)return gu(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let e=Number(n)?1:0;if(!t&&!1===n)throw Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===gu(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}},gd=(e,t,n=!1)=>
2{if(e instanceof gc)return e;try{return new gc(e,t)}catch(e){if(!n)return null;throw e}},gf=(e,t,n)=>new gc(e,n).compare(new gc(t,n)),gh=(e,t,n)=>{let r=new gc(e,n),i=new gc(t,n);return r.compare(i)||r.compareBuild(i)},gp=(e,t,n)=>gf(e,t,n)>0,gm=(e,t,n)=>0>gf(e,t,n),gg=(e,t,n)=>0===gf(e,t,n),gv=(e,t,n)=>0!==gf(e,t,n),gb=(e,t,n)=>gf(e,t,n)>=0,gy=(e,t,n)=>0>=gf(e,t,n),gA=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return gg(e,n,r);case"!=":return gv(e,n,r);case">":return gp(e,n,r);case">=":return gb(e,n,r);case"<":return gm(e,n,r);case"<=":return gy(e,n,r);default:throw TypeError(`Invalid operator: ${t}`)}};let{safeRe:gw,t:g_}=m7;function gE(){if(v_)return vw;v_=1;class e{constructor(t,i){if(i=n(i),t instanceof e)return!!i.loose===t.loose&&!!i.includePrerelease===t.includePrerelease?t:new e(t.raw,i);if(t instanceof r)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!h(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&p(e[0])){this.set=[e];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&d)|(this.options.loose&&f))+":"+e,o=t.get(n);if(o)return o;let p=this.options.loose,m=p?a[s.HYPHENRANGELOOSE]:a[s.HYPHENRANGE];i("hyphen replace",e=e.replace(m,M(this.options.includePrerelease))),i("comparator trim",e=e.replace(a[s.COMPARATORTRIM],l)),i("tilde trim",e=e.replace(a[s.TILDETRIM],u)),i("caret trim",e=e.replace(a[s.CARETTRIM],c));let v=e.split(" ").map(e=>g(e,this.options)).join(" ").split(/\s+/).map(e=>k(e,this.options));p&&(v=v.filter(e=>(i("loose invalid filter",e,this.options),!!e.match(a[s.COMPARATORLOOSE])))),i("range list",v);let b=new Map;for(let e of v.map(e=>new r(e,this.options))){if(h(e))return[e];b.set(e.value,e)}b.size>1&&b.has("")&&b.delete("");let y=[...b.values()];return t.set(n,y),y}intersects(t,n){if(!(t instanceof e))throw TypeError("a Range is required");return this.set.some(e=>m(e,n)&&t.set.some(t=>m(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new o(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(C(this.set[t],e,this.options))return!0;return!1}}vw=e;let t=new(function(){if(vA)return vy;vA=1;let e=function(){if(vb)return vv;function e(t){var n=this;if(n instanceof e||(n=new e),n.tail=null,n.head=null,n.length=0,t&&"function"==typeof t.forEach)t.forEach(function(e){n.push(e)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)n.push(arguments[r]);return n}function t(e,n,r,i){if(!(this instanceof t))return new t(e,n,r,i);this.list=i,this.value=e,n?(n.next=this,this.prev=n):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}vb=1,vv=e,e.Node=t,e.create=e,e.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},e.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},e.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},e.prototype.push=function(){for(var e,n=0,r=arguments.length;n<r;n++)e=arguments[n],this.tail=new t(e,this.tail,null,this),this.head||(this.head=this.tail),this.length++;return this.length},e.prototype.unshift=function(){for(var e,n=0,r=arguments.length;n<r;n++)e=arguments[n],this.head=new t(e,null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length},e.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},e.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},e.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},e.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},e.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},e.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},e.prototype.map=function(t,n){n=n||this;for(var r=new e,i=this.head;null!==i;)r.push(t.call(n,i.value,this)),i=i.next;return r},e.prototype.mapReverse=function(t,n){n=n||this;for(var r=new e,i=this.tail;null!==i;)r.push(t.call(n,i.value,this)),i=i.prev;return r},e.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},e.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},e.prototype.toArray=function(){for(var e=Array(this.length),t=0,n=this.head;null!==n;
2t++)e[t]=n.value,n=n.next;return e},e.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},e.prototype.slice=function(t,n){(n=n||this.length)<0&&(n+=this.length),(t=t||0)<0&&(t+=this.length);var r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);for(var i=0,o=this.head;null!==o&&i<t;i++)o=o.next;for(;null!==o&&i<n;i++,o=o.next)r.push(o.value);return r},e.prototype.sliceReverse=function(t,n){(n=n||this.length)<0&&(n+=this.length),(t=t||0)<0&&(t+=this.length);var r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);for(var i=this.length,o=this.tail;null!==o&&i>n;i--)o=o.prev;for(;null!==o&&i>t;i--,o=o.prev)r.push(o.value);return r},e.prototype.splice=function(e,n,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;var a=[];for(i=0;o&&i<n;i++)a.push(o.value),o=this.removeNode(o);for(null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev),i=0;i<r.length;i++)o=function(e,n,r){var i=n===e.head?new t(r,null,n,e):new t(r,n,n.next,e);return null===i.next&&(e.tail=i),null===i.prev&&(e.head=i),e.length++,i}(this,o,r[i]);return a},e.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{(vg?vm:(vg=1,vm=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}))(e)}catch(e){}return vv}(),t=Symbol("max"),n=Symbol("length"),r=Symbol("lengthCalculator"),i=Symbol("allowStale"),o=Symbol("maxAge"),a=Symbol("dispose"),s=Symbol("noDisposeOnSet"),l=Symbol("lruList"),u=Symbol("cache"),c=Symbol("updateAgeOnGet"),d=()=>1,f=(e,t,n)=>{let r=e[u].get(t);if(r){let t=r.value;if(h(e,t)){if(m(e,r),!e[i])return}else n&&(e[c]&&(r.value.now=Date.now()),e[l].unshiftNode(r));return t.value}},h=(e,t)=>{if(!t||!t.maxAge&&!e[o])return!1;let n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[o]&&n>e[o]},p=e=>{if(e[n]>e[t])for(let r=e[l].tail;e[n]>e[t]&&null!==r;){let t=r.prev;m(e,r),r=t}},m=(e,t)=>{if(t){let r=t.value;e[a]&&e[a](r.key,r.value),e[n]-=r.length,e[u].delete(r.key),e[l].removeNode(t)}};class g{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}let v=(e,t,n,r)=>{let o=n.value;h(e,o)&&(m(e,n),e[i]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};return vy=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[t]=e.max||1/0;let n=e.length||d;if(this[r]="function"!=typeof n?d:n,this[i]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[o]=e.maxAge||0,this[a]=e.dispose,this[s]=e.noDisposeOnSet||!1,this[c]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[t]=e||1/0,p(this)}get max(){return this[t]}set allowStale(e){this[i]=!!e}get allowStale(){return this[i]}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[o]=e,p(this)}get maxAge(){return this[o]}set lengthCalculator(e){"function"!=typeof e&&(e=d),e!==this[r]&&(this[r]=e,this[n]=0,this[l].forEach(e=>{e.length=this[r](e.value,e.key),this[n]+=e.length})),p(this)}get lengthCalculator(){return this[r]}get length(){return this[n]}get itemCount(){return this[l].length}rforEach(e,t){t=t||this;for(let n=this[l].tail;null!==n;){let r=n.prev;v(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[l].head;null!==n;){let r=n.next;v(this,e,n,t),n=r}}keys(){return this[l].toArray().map(e=>e.key)}values(){return this[l].toArray().map(e=>e.value)}reset(){this[a]&&this[l]&&this[l].length&&this[l].forEach(e=>this[a](e.key,e.value)),this[u]=new Map,this[l]=new e,this[n]=0}dump(){return this[l].map(e=>!h(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[l]}set(e,i,c){if((c=c||this[o])&&"number"!=typeof c)throw TypeError("maxAge must be a number");let d=c?Date.now():0,f=this[r](i,e);
2if(this[u].has(e)){if(f>this[t])return m(this,this[u].get(e)),!1;let r=this[u].get(e).value;return this[a]&&(this[s]||this[a](e,r.value)),r.now=d,r.maxAge=c,r.value=i,this[n]+=f-r.length,r.length=f,this.get(e),p(this),!0}let h=new g(e,i,f,d,c);return h.length>this[t]?(this[a]&&this[a](e,i),!1):(this[n]+=h.length,this[l].unshift(h),this[u].set(e,this[l].head),p(this),!0)}has(e){return!!this[u].has(e)&&!h(this,this[u].get(e).value)}get(e){return f(this,e,!0)}peek(e){return f(this,e,!1)}pop(){let e=this[l].tail;return e?(m(this,e),e.value):null}del(e){m(this,this[u].get(e))}load(e){this.reset();let t=Date.now();for(let n=e.length-1;n>=0;n--){let r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{let e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[u].forEach((e,t)=>f(this,t,!1))}}}())({max:1e3}),n=gt,r=gS(),i=m5,o=gc,{safeRe:a,t:s,comparatorTrimReplace:l,tildeTrimReplace:u,caretTrimReplace:c}=m7,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:f}=m8,h=e=>"<0.0.0-0"===e.value,p=e=>""===e.value,m=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},g=(e,t)=>(i("comp",e,t),i("caret",e=A(e,t)),i("tildes",e=b(e,t)),i("xrange",e=_(e,t)),i("stars",e=S(e,t)),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map(e=>y(e,t)).join(" "),y=(e,t)=>{let n=t.loose?a[s.TILDELOOSE]:a[s.TILDE];return e.replace(n,(t,n,r,o,a)=>{let s;return i("tilde",e,t,n,r,o,a),v(n)?s="":v(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:v(o)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(i("replaceTilde pr",a),s=`>=${n}.${r}.${o}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${o} <${n}.${+r+1}.0-0`,i("tilde return",s),s})},A=(e,t)=>e.trim().split(/\s+/).map(e=>w(e,t)).join(" "),w=(e,t)=>{i("caret",e,t);let n=t.loose?a[s.CARETLOOSE]:a[s.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,(t,n,o,a,s)=>{let l;return i("caret",e,t,n,o,a,s),v(n)?l="":v(o)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(a)?l="0"===n?`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:s?(i("replaceCaret pr",s),l="0"===n?"0"===o?`>=${n}.${o}.${a}-${s} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}-${s} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a}-${s} <${+n+1}.0.0-0`):(i("no pr"),l="0"===n?"0"===o?`>=${n}.${o}.${a}${r} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a} <${+n+1}.0.0-0`),i("caret return",l),l})},_=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map(e=>E(e,t)).join(" ")),E=(e,t)=>{e=e.trim();let n=t.loose?a[s.XRANGELOOSE]:a[s.XRANGE];return e.replace(n,(n,r,o,a,s,l)=>{i("xRange",e,n,r,o,a,s,l);let u=v(o),c=u||v(a),d=c||v(s);return"="===r&&d&&(r=""),l=t.includePrerelease?"-0":"",u?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(c&&(a=0),s=0,">"===r?(r=">=",c?(o=+o+1,a=0):a=+a+1,s=0):"<="===r&&(r="<",c?o=+o+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+o}.${a}.${s}${l}`):c?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:d&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),i("xRange return",n),n})},S=(e,t)=>(i("replaceStars",e,t),e.trim().replace(a[s.STAR],"")),k=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),M=e=>(t,n,r,i,o,a,s,l,u,c,d,f,h)=>`${n=v(r)?"":v(i)?`>=${r}.0.0${e?"-0":""}`:v(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=v(u)?"":v(c)?`<${+u+1}.0.0-0`:v(d)?`<${u}.${+c+1}.0-0`:f?`<=${u}.${c}.${d}-${f}`:e?`<${u}.${c}.${+d+1}-0`:`<=${l}`}`.trim(),C=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(i(e[n].semver),e[n].semver!==r.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return vw}function gS(){if(vS)return vE;vS=1;let e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,i){if(i=n(i),r instanceof t){if(!!i.loose===r.loose)return r;r=r.value}a("comparator",r=r.trim().split(/\s+/).join(" "),i),this.options=i,this.loose=!!i.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){let n=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],o=t.match(n);if(!o)throw TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==o[1]?o[1]:"","="===this.operator&&(this.operator=""),o[2]?this.semver=new s(o[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;
2if("string"==typeof t)try{t=new s(t,this.options)}catch(e){return!1}return o(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):(!(r=n(r)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&!(!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||!!(o(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(o(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}vE=t;let n=gt,{safeRe:r,t:i}=m7,o=gA,a=m5,s=gc,l=gE();return vE}let gk=gE();var gM=(e,t,n)=>{try{t=new gk(t,n)}catch(e){return!1}return t.test(e)};let gC=gE(),gx=gE(),gR=gE(),gI=gE(),gT=gE(),gO=gS(),{ANY:gP}=gO,gL=gE();var gN=(e,t,n,r)=>{let i,o,a,s,l;switch(e=new gc(e,r),t=new gL(t,r),n){case">":i=gp,o=gy,a=gm,s=">",l=">=";break;case"<":i=gm,o=gb,a=gp,s="<",l="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(gM(e,t,r))return!1;for(let n=0;n<t.set.length;++n){let u=t.set[n],c=null,d=null;if(u.forEach(e=>{e.semver===gP&&(e=new gO(">=0.0.0")),c=c||e,d=d||e,i(e.semver,c.semver,r)?c=e:a(e.semver,d.semver,r)&&(d=e)}),c.operator===s||c.operator===l||(!d.operator||d.operator===s)&&o(e,d.semver)||d.operator===l&&a(e,d.semver))return!1}return!0};let gD=gE(),gB=gE(),gj=gS(),{ANY:gF}=gj,gz=[new gj(">=0.0.0-0")],gU=[new gj(">=0.0.0")],gq=(e,t,n)=>{let r,i,o,a,s,l,u;if(e===t)return!0;if(1===e.length&&e[0].semver===gF){if(1===t.length&&t[0].semver===gF)return!0;e=n.includePrerelease?gz:gU}if(1===t.length&&t[0].semver===gF){if(n.includePrerelease)return!0;t=gU}let c=new Set;for(let t of e)">"===t.operator||">="===t.operator?r=gK(r,t,n):"<"===t.operator||"<="===t.operator?i=gH(i,t,n):c.add(t.semver);if(c.size>1||r&&i&&((o=gf(r.semver,i.semver,n))>0||0===o&&(">="!==r.operator||"<="!==i.operator)))return null;for(let e of c){if(r&&!gM(e,String(r),n)||i&&!gM(e,String(i),n))return null;for(let r of t)if(!gM(e,String(r),n))return!1;return!0}let d=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver,f=!(!r||n.includePrerelease||!r.semver.prerelease.length)&&r.semver;for(let e of(d&&1===d.prerelease.length&&"<"===i.operator&&0===d.prerelease[0]&&(d=!1),t)){if(u=u||">"===e.operator||">="===e.operator,l=l||"<"===e.operator||"<="===e.operator,r){if(f&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===f.major&&e.semver.minor===f.minor&&e.semver.patch===f.patch&&(f=!1),">"===e.operator||">="===e.operator){if((a=gK(r,e,n))===e&&a!==r)return!1}else if(">="===r.operator&&!gM(r.semver,String(e),n))return!1}if(i){if(d&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===d.major&&e.semver.minor===d.minor&&e.semver.patch===d.patch&&(d=!1),"<"===e.operator||"<="===e.operator){if((s=gH(i,e,n))===e&&s!==i)return!1}else if("<="===i.operator&&!gM(i.semver,String(e),n))return!1}if(!e.operator&&(i||r)&&0!==o)return!1}return!(r&&l&&!i&&0!==o)&&!(i&&u&&!r&&0!==o)&&!f&&!d},gK=(e,t,n)=>{if(!e)return t;let r=gf(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},gH=(e,t,n)=>{if(!e)return t;let r=gf(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var gV={parse:gd,valid:(e,t)=>{let n=gd(e,t);return n?n.version:null},clean:(e,t)=>{let n=gd(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},inc:(e,t,n,r,i)=>{"string"==typeof n&&(i=r,r=n,n=void 0);try{return new gc(e instanceof gc?e.version:e,n).inc(t,r,i).version}catch(e){return null}},diff:(e,t)=>{let n=gd(e,null,!0),r=gd(t,null,!0),i=n.compare(r);if(0===i)return null;let o=i>0,a=o?n:r,s=o?r:n,l=!!a.prerelease.length;if(s.prerelease.length&&!l)return s.patch||s.minor?a.patch?"patch":a.minor?"minor":"major":"major";let u=l?"pre":"";return n.major!==r.major?u+"major":n.minor!==r.minor?u+"minor":n.patch!==r.patch?u+"patch":"prerelease"},major:(e,t)=>
2new gc(e,t).major,minor:(e,t)=>new gc(e,t).minor,patch:(e,t)=>new gc(e,t).patch,prerelease:(e,t)=>{let n=gd(e,t);return n&&n.prerelease.length?n.prerelease:null},compare:gf,rcompare:(e,t,n)=>gf(t,e,n),compareLoose:(e,t)=>gf(e,t,!0),compareBuild:gh,sort:(e,t)=>e.sort((e,n)=>gh(e,n,t)),rsort:(e,t)=>e.sort((e,n)=>gh(n,e,t)),gt:gp,lt:gm,eq:gg,neq:gv,gte:gb,lte:gy,cmp:gA,coerce:(e,t)=>{if(e instanceof gc)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=gw[g_.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),gw[g_.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;gw[g_.COERCERTL].lastIndex=-1}else n=e.match(gw[g_.COERCE]);return null===n?null:gd(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)},Comparator:gS(),Range:gE(),satisfies:gM,toComparators:(e,t)=>new gC(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" ")),maxSatisfying:(e,t,n)=>{let r=null,i=null,o=null;try{o=new gx(t,n)}catch(e){return null}return e.forEach(e=>{o.test(e)&&(r&&-1!==i.compare(e)||(i=new gc(r=e,n)))}),r},minSatisfying:(e,t,n)=>{let r=null,i=null,o=null;try{o=new gR(t,n)}catch(e){return null}return e.forEach(e=>{o.test(e)&&(r&&1!==i.compare(e)||(i=new gc(r=e,n)))}),r},minVersion:(e,t)=>{e=new gI(e,t);let n=new gc("0.0.0");if(e.test(n)||(n=new gc("0.0.0-0"),e.test(n)))return n;n=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],i=null;r.forEach(e=>{let t=new gc(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!gp(t,i)||(i=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),i&&(!n||gp(n,i))&&(n=i)}return n&&e.test(n)?n:null},validRange:(e,t)=>
2{try{return new gT(e,t).range||"*"}catch(e){return null}},outside:gN,gtr:(e,t,n)=>gN(e,t,">",n),ltr:(e,t,n)=>gN(e,t,"<",n),intersects:(e,t,n)=>(e=new gD(e,n),t=new gD(t,n),e.intersects(t,n)),simplifyRange:(e,t,n)=>{let r=[],i=null,o=null,a=e.sort((e,t)=>gf(e,t,n));for(let e of a)gM(e,t,n)?(o=e,i||(i=e)):(o&&r.push([i,o]),o=null,i=null);i&&r.push([i,null]);let s=[];for(let[e,t]of r)e===t?s.push(e):t||e!==a[0]?t?e===a[0]?s.push(`<=${t}`):s.push(`${e} - ${t}`):s.push(`>=${e}`):s.push("*");let l=s.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return l.length<u.length?l:t},subset:(e,t,n={})=>{if(e===t)return!0;e=new gB(e,n),t=new gB(t,n);let r=!1;e:for(let i of e.set){for(let e of t.set){let t=gq(i,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0},SemVer:gc,re:m7.re,src:m7.src,tokens:m7.t,SEMVER_SPEC_VERSION:m8.SEMVER_SPEC_VERSION,RELEASE_TYPES:m8.RELEASE_TYPES,compareIdentifiers:gi.compareIdentifiers,rcompareIdentifiers:gi.rcompareIdentifiers};Object.defineProperty(m6,"__esModule",{value:!0});var g$=pz.refine.call(void 0,pz.string.call(void 0),"Version",e=>null!==gV.valid.call(void 0,e)||`Expected SemVer version, got "${e}"`),gW=pz.refine.call(void 0,pz.string.call(void 0),"Version range",e=>null!==gV.validRange.call(void 0,e)||`Expected SemVer range, got "${e}"`);m6.VersionStruct=g$,m6.VersionRangeStruct=gW,m6.isValidSemVerVersion=function(e){return pz.is.call(void 0,e,g$)},m6.isValidSemVerRange=function(e){return pz.is.call(void 0,e,gW)},m6.assertIsSemVerVersion=function(e){hX.assertStruct.call(void 0,e,g$)},m6.assertIsSemVerRange=function(e){hX.assertStruct.call(void 0,e,gW)},m6.gtVersion=function(e,t){return gV.gt.call(void 0,e,t)},m6.gtRange=function(e,t){return gV.gtr.call(void 0,e,t)},m6.satisfiesVersionRange=function(e,t){return gV.satisfies.call(void 0,e,t,{includePrerelease:!0})};var gY={};Object.defineProperty(gY,"__esModule",{value:!0});var gG=e=>pz.object.call(void 0,e);function gQ({path:e,branch:t}){let n=e[e.length-1];return h1.hasProperty.call(void 0,t[t.length-2],n)}function gZ(e){return new pz.Struct({...e,type:`optional ${e.type}`,validator:(t,n)=>!gQ(n)||e.validator(t,n),refiner:(t,n)=>!gQ(n)||e.refiner(t,n)})}var gJ=pz.union.call(void 0,[pz.literal.call(void 0,null),pz.boolean.call(void 0),pz.define.call(void 0,"finite number",e=>pz.is.call(void 0,e,pz.number.call(void 0))&&Number.isFinite(e)),pz.string.call(void 0),pz.array.call(void 0,pz.lazy.call(void 0,()=>gJ)),pz.record.call(void 0,pz.string.call(void 0),pz.lazy.call(void 0,()=>gJ))]),gX=pz.coerce.call(void 0,gJ,pz.any.call(void 0),e=>(hX.assertStruct.call(void 0,e,gJ),JSON.parse(JSON.stringify(e,(e,t)=>{if("__proto__"!==e&&"constructor"!==e)return t}))));function g0(e){return pz.create.call(void 0,e,gX)}var g1=pz.literal.call(void 0,"2.0"),g2=pz.nullable.call(void 0,pz.union.call(void 0,[pz.number.call(void 0),pz.string.call(void 0)])),g3=gG({code:pz.integer.call(void 0),message:pz.string.call(void 0),data:gZ(gX),stack:gZ(pz.string.call(void 0))}),g6=pz.union.call(void 0,[pz.record.call(void 0,pz.string.call(void 0),gX),pz.array.call(void 0,gX)]),g4=gG({id:g2,jsonrpc:g1,method:pz.string.call(void 0),params:gZ(g6)}),g8=gG({jsonrpc:g1,method:pz.string.call(void 0),params:gZ(g6)}),g5=pz.object.call(void 0,{id:g2,jsonrpc:g1,result:pz.optional.call(void 0,pz.unknown.call(void 0)),error:pz.optional.call(void 0,g3)}),g7=gG({id:g2,jsonrpc:g1,result:gX}),g9=gG({id:g2,jsonrpc:g1,error:g3}),ve=pz.union.call(void 0,[g7,g9]);gY.object=gG,gY.exactOptional=gZ,gY.UnsafeJsonStruct=gJ,gY.JsonStruct=gX,gY.isValidJson=function(e){try{return g0(e),!0}catch(e){return!1}},gY.getSafeJson=g0,gY.getJsonSize=function(e){hX.assertStruct.call(void 0,e,gX,"Invalid JSON value");let t=JSON.stringify(e);return(new TextEncoder).encode(t).byteLength},gY.jsonrpc2="2.0",gY.JsonRpcVersionStruct=g1,gY.JsonRpcIdStruct=g2,gY.JsonRpcErrorStruct=g3,gY.JsonRpcParamsStruct=g6,gY.JsonRpcRequestStruct=g4,gY.JsonRpcNotificationStruct=g8,gY.isJsonRpcNotification=function(e){return pz.is.call(void 0,e,g8)},gY.assertIsJsonRpcNotification=function(e,t){hX.assertStruct.call(void 0,e,g8,"Invalid JSON-RPC notification",t)},gY.isJsonRpcRequest=function(e){return pz.is.call(void 0,e,g4)},gY.assertIsJsonRpcRequest=function(e,t){hX.assertStruct.call(void 0,e,g4,"Invalid JSON-RPC request",t)},gY.PendingJsonRpcResponseStruct=g5,gY.JsonRpcSuccessStruct=g7,gY.JsonRpcFailureStruct=g9,gY.JsonRpcResponseStruct=ve,gY.isPendingJsonRpcResponse=function(e){return pz.is.call(void 0,e,g5)},gY.assertIsPendingJsonRpcResponse=function(e,t){hX.assertStruct.call(void 0,e,g5,"Invalid pending JSON-RPC response",t)},gY.isJsonRpcResponse=function(e){return pz.is.call(void 0,e,ve)},gY.assertIsJsonRpcResponse=function(e,t){hX.assertStruct.call(void 0,e,ve,"Invalid JSON-RPC response",t)},gY.isJsonRpcSuccess=function(e){return pz.is.call(void 0,e,g7)},gY.assertIsJsonRpcSuccess=function(e,t){hX.assertStruct.call(void 0,e,g7,"Invalid JSON-RPC success response",t)},gY.isJsonRpcFailure=function(e){return pz.is.call(void 0,e,g9)},gY.assertIsJsonRpcFailure=function(e,t){hX.assertStruct.call(void 0,e,g9,"Invalid JSON-RPC failure response",t)},gY.isJsonRpcError=function(e){return pz.is.call(void 0,e,g3)},gY.assertIsJsonRpcError=function(e,t){hX.assertStruct.call(void 0,e,g3,"Invalid JSON-RPC error",t)},gY.getJsonRpcIdValidator=function(e){let{permitEmptyString:t,permitFractions:n,permitNull:r}={permitEmptyString:!0,permitFractions:!1,permitNull:!0,...e};return e=>!!("number"==typeof e&&(n||Number.isInteger(e))||"string"==typeof e&&(t||e.length>0)||r&&null===e)};var vt,vn,vr,vi,vo,va,vs,vl,vu,vc,vd,vf,vh,vp,vm,vg,vv,vb,vy,vA,vw,v_,vE,vS,vk,vM,v
2C={},vx={exports:{}},vR=function(e){function t(e){let r,i,o,a=null;function s(...e){if(!s.enabled)return;let n=Number(new Date),i=n-(r||n);s.diff=i,s.prev=r,s.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,r)=>{if("%%"===n)return"%";o++;let i=t.formatters[r];if("function"==typeof i){let t=e[o];n=i.call(s,t),e.splice(o,1),o--}return n}),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){let r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names.map(r),...t.skips.map(r).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];let r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(RegExp("^"+e.slice(1)+"$")):t.names.push(RegExp("^"+e+"$")))},t.enabled=function(e){let n,r;if("*"===e[e.length-1])return!0;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=function(){if(vM)return vk;function e(e,t,n,r){return Math.round(e/n)+" "+r+(t>=1.5*n?"s":"")}return vM=1,vk=function(t,n){n=n||{};var r,i,o=typeof t;if("string"===o&&t.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return 864e5*n;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*n;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*n;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(t);if("number"===o&&isFinite(t))return n.long?(r=Math.abs(t))>=864e5?e(t,r,864e5,"day"):r>=36e5?e(t,r,36e5,"hour"):r>=6e4?e(t,r,6e4,"minute"):r>=1e3?e(t,r,1e3,"second"):t+" ms":(i=Math.abs(t))>=864e5?Math.round(t/864e5)+"d":i>=36e5?Math.round(t/36e5)+"h":i>=6e4?Math.round(t/6e4)+"m":i>=1e3?Math.round(t/1e3)+"s":t+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}}(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t)|0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t};!function(e,t){let n;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==ex&&"env"in ex&&(e=ex.env.DEBUG),e},t.useColors=function(){return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&
2("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(n=!1,()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=vR(t);let{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(vx,vx.exports);var vI=vx.exports,vT=u(vI);Object.defineProperty(vC,"__esModule",{value:!0});var vO=(vI&&vI.__esModule?vI:{default:vI}).default.call(void 0,"metamask");vC.createProjectLogger=function(e){return vO.extend(e)},vC.createModuleLogger=function(e,t){return e.extend(t)};var vP={};function vL(e){let t,n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):"call"!==i&&"optionalCall"!==i||(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}Object.defineProperty(vP,"__esModule",{value:!0});var vN=/^(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})$/u,vD=/^[-a-z0-9]{3,8}$/u,vB=/^[-_a-zA-Z0-9]{1,32}$/u,vj=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})):(?<accountAddress>[-.%a-zA-Z0-9]{1,128})$/u,vF=/^[-.%a-zA-Z0-9]{1,128}$/u,vz=pz.pattern.call(void 0,pz.string.call(void 0),vN),vU=pz.pattern.call(void 0,pz.string.call(void 0),vD),vq=pz.pattern.call(void 0,pz.string.call(void 0),vB),vK=pz.pattern.call(void 0,pz.string.call(void 0),vj),vH=pz.pattern.call(void 0,pz.string.call(void 0),vF);vP.CAIP_CHAIN_ID_REGEX=vN,vP.CAIP_NAMESPACE_REGEX=vD,vP.CAIP_REFERENCE_REGEX=vB,vP.CAIP_ACCOUNT_ID_REGEX=vj,vP.CAIP_ACCOUNT_ADDRESS_REGEX=vF,vP.CaipChainIdStruct=vz,vP.CaipNamespaceStruct=vU,vP.CaipReferenceStruct=vq,vP.CaipAccountIdStruct=vK,vP.CaipAccountAddressStruct=vH,vP.isCaipChainId=function(e){return pz.is.call(void 0,e,vz)},vP.isCaipNamespace=function(e){return pz.is.call(void 0,e,vU)},vP.isCaipReference=function(e){return pz.is.call(void 0,e,vq)},vP.isCaipAccountId=function(e){return pz.is.call(void 0,e,vK)},vP.isCaipAccountAddress=function(e){return pz.is.call(void 0,e,vH)},vP.parseCaipChainId=function(e){let t=vN.exec(e);if(!vL([t,"optionalAccess",e=>e.groups]))throw Error("Invalid CAIP chain ID.");return{namespace:t.groups.namespace,reference:t.groups.reference}},vP.parseCaipAccountId=function(e){let t=vj.exec(e);if(!vL([t,"optionalAccess",e=>e.groups]))throw Error("Invalid CAIP account ID.");return{address:t.groups.accountAddress,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}};var vV={},v$={};Object.defineProperty(v$,"__esModule",{value:!0}),v$.base64=(e,t={})=>{var n,r;let i,o;let a=(n=t.paddingRequired,null!=n&&n),s=(r=t.characterSet,null!=r?r:"base64");return"base64"===s?i=String.raw`[A-Za-z0-9+\/]`:(hX.assert.call(void 0,"base64url"===s),i=String.raw`[-_A-Za-z0-9]`),o=a?RegExp(`^(?:${i}{4}
2)*(?:${i}{3}=|${i}{2}==)?$`,"u"):RegExp(`^(?:${i}{4})*(?:${i}{2,3}|${i}{3}=|${i}{2}==)?$`,"u"),pz.pattern.call(void 0,e,o)},Object.defineProperty(vV,"__esModule",{value:!0});var vW=pz.size.call(void 0,v$.base64.call(void 0,pz.string.call(void 0),{paddingRequired:!0}),44,44);vV.ChecksumStruct=vW;var vY={};Object.defineProperty(vY,"__esModule",{value:!0});var vG=pz.union.call(void 0,[pz.number.call(void 0),pz.bigint.call(void 0),pz.string.call(void 0),hJ.StrictHexStruct]),vQ=pz.coerce.call(void 0,pz.number.call(void 0),vG,Number),vZ=pz.coerce.call(void 0,pz.bigint.call(void 0),vG,BigInt);pz.union.call(void 0,[hJ.StrictHexStruct,pz.instance.call(void 0,Uint8Array)]);var vJ=pz.coerce.call(void 0,pz.instance.call(void 0,Uint8Array),pz.union.call(void 0,[hJ.StrictHexStruct]),hJ.hexToBytes),vX=pz.coerce.call(void 0,hJ.StrictHexStruct,pz.instance.call(void 0,Uint8Array),hJ.bytesToHex);vY.createNumber=function(e){try{let t=pz.create.call(void 0,e,vQ);return hX.assert.call(void 0,Number.isFinite(t),`Expected a number-like value, got "${e}".`),t}catch(t){if(t instanceof pz.StructError)throw Error(`Expected a number-like value, got "${e}".`);throw t}},vY.createBigInt=function(e){try{return pz.create.call(void 0,e,vZ)}catch(e){if(e instanceof pz.StructError)throw Error(`Expected a number-like value, got "${String(e.value)}".`);throw e}},vY.createBytes=function(e){if("string"==typeof e&&"0x"===e.toLowerCase())return new Uint8Array;try{return pz.create.call(void 0,e,vJ)}catch(e){if(e instanceof pz.StructError)throw Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}},vY.createHex=function(e){if(e instanceof Uint8Array&&0===e.length||"string"==typeof e&&"0x"===e.toLowerCase())return"0x";try{return pz.create.call(void 0,e,vX)}catch(e){if(e instanceof pz.StructError)throw Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}};var v0={},v1={};Object.defineProperty(v1,"__esModule",{value:!0});var v2=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};v1.__privateGet=(e,t,n)=>(v2(e,t,"read from private field"),n?n.call(e):t.get(e)),v1.__privateAdd=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},v1.__privateSet=(e,t,n,r)=>(v2(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Object.defineProperty(v0,"__esModule",{value:!0});var v3,v6,v4=class{constructor(e){v1.__privateAdd.call(void 0,this,v3,void 0),v1.__privateSet.call(void 0,this,v3,new Map(e)),Object.freeze(this)}get size(){return v1.__privateGet.call(void 0,this,v3).size}[Symbol.iterator](){return v1.__privateGet.call(void 0,this,v3)[Symbol.iterator]()}entries(){return v1.__privateGet.call(void 0,this,v3).entries()}forEach(e,t){return v1.__privateGet.call(void 0,this,v3).forEach((n,r,i)=>e.call(t,n,r,this))}get(e){return v1.__privateGet.call(void 0,this,v3).get(e)}has(e){return v1.__privateGet.call(void 0,this,v3).has(e)}keys(){return v1.__privateGet.call(void 0,this,v3).keys()}values(){return v1.__privateGet.call(void 0,this,v3).values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([e,t])=>`${String(e)} => ${String(t)}`).join(", ")} `:""}}`}};v3=new WeakMap;var v8=class{constructor(e){v1.__privateAdd.call(void 0,this,v6,void 0),v1.__privateSet.call(void 0,this,v6,new Set(e)),Object.freeze(this)}get size(){return v1.__privateGet.call(void 0,this,v6).size}[Symbol.iterator](){return v1.__privateGet.call(void 0,this,v6)[Symbol.iterator]()}entries(){return v1.__privateGet.call(void 0,this,v6).entries()}forEach(e,t){return v1.__privateGet.call(void 0,this,v6).forEach((n,r,i)=>e.call(t,n,r,this))}has(e){return v1.__privateGet.call(void 0,this,v6).has(e)}keys(){return v1.__privateGet.call(void 0,this,v6).keys()}values(){return v1.__privateGet.call(void 0,this,v6).values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(e=>String(e)).join(", ")} `:""}}`}};v6=new WeakMap,Object.freeze(v4),Object.freeze(v4.prototype),Object.freeze(v8),Object.freeze(v8.prototype),v0.FrozenMap=v4,v0.FrozenSet=v8,Object.defineProperty(hQ,"__esModule",{value:!0}),hQ.AssertionError=hX.AssertionError,hQ.CAIP_ACCOUNT_ADDRESS_REGEX=vP.CAIP_ACCOUNT_ADDRESS_REGEX,hQ.CAIP_ACCOUNT_ID_REGEX=vP.CAIP_ACCOUNT_ID_REGEX,hQ.CAIP_CHAIN_ID_REGEX=vP.CAIP_CHAIN_ID_REGEX,hQ.CAIP_NAMESPACE_REGEX=vP.CAIP_NAMESPACE_REGEX,hQ.CAIP_REFERENCE_REGEX=vP.CAIP_REFERENCE_REGEX,hQ.CaipAccountAddressStruct=vP.CaipAccountAddressStruct,h
2Q.CaipAccountIdStruct=vP.CaipAccountIdStruct,hQ.CaipChainIdStruct=vP.CaipChainIdStruct,hQ.CaipNamespaceStruct=vP.CaipNamespaceStruct,hQ.CaipReferenceStruct=vP.CaipReferenceStruct,hQ.ChecksumStruct=vV.ChecksumStruct,hQ.Duration=m1.Duration,hQ.ESCAPE_CHARACTERS_REGEXP=h1.ESCAPE_CHARACTERS_REGEXP,hQ.FrozenMap=v0.FrozenMap,hQ.FrozenSet=v0.FrozenSet,hQ.HexAddressStruct=hJ.HexAddressStruct,hQ.HexChecksumAddressStruct=hJ.HexChecksumAddressStruct,hQ.HexStruct=hJ.HexStruct,hQ.JsonRpcErrorStruct=gY.JsonRpcErrorStruct,hQ.JsonRpcFailureStruct=gY.JsonRpcFailureStruct,hQ.JsonRpcIdStruct=gY.JsonRpcIdStruct,hQ.JsonRpcNotificationStruct=gY.JsonRpcNotificationStruct,hQ.JsonRpcParamsStruct=gY.JsonRpcParamsStruct,hQ.JsonRpcRequestStruct=gY.JsonRpcRequestStruct,hQ.JsonRpcResponseStruct=gY.JsonRpcResponseStruct,hQ.JsonRpcSuccessStruct=gY.JsonRpcSuccessStruct,hQ.JsonRpcVersionStruct=gY.JsonRpcVersionStruct,hQ.JsonSize=h1.JsonSize,hQ.JsonStruct=gY.JsonStruct,hQ.PendingJsonRpcResponseStruct=gY.PendingJsonRpcResponseStruct,hQ.StrictHexStruct=hJ.StrictHexStruct,hQ.UnsafeJsonStruct=gY.UnsafeJsonStruct,hQ.VersionRangeStruct=m6.VersionRangeStruct,hQ.VersionStruct=m6.VersionStruct,hQ.add0x=hJ.add0x,hQ.assert=hX.assert,hQ.assertExhaustive=hX.assertExhaustive,hQ.assertIsBytes=hJ.assertIsBytes,hQ.assertIsHexString=hJ.assertIsHexString,hQ.assertIsJsonRpcError=gY.assertIsJsonRpcError,hQ.assertIsJsonRpcFailure=gY.assertIsJsonRpcFailure,hQ.assertIsJsonRpcNotification=gY.assertIsJsonRpcNotification,hQ.assertIsJsonRpcRequest=gY.assertIsJsonRpcRequest,hQ.assertIsJsonRpcResponse=gY.assertIsJsonRpcResponse,hQ.assertIsJsonRpcSuccess=gY.assertIsJsonRpcSuccess,hQ.assertIsPendingJsonRpcResponse=gY.assertIsPendingJsonRpcResponse,hQ.assertIsSemVerRange=m6.assertIsSemVerRange,hQ.assertIsSemVerVersion=m6.assertIsSemVerVersion,hQ.assertIsStrictHexString=hJ.assertIsStrictHexString,hQ.assertStruct=hX.assertStruct,hQ.base64=v$.base64,hQ.base64ToBytes=hJ.base64ToBytes,hQ.bigIntToBytes=hJ.bigIntToBytes,hQ.bigIntToHex=hZ.bigIntToHex,hQ.bytesToBase64=hJ.bytesToBase64,hQ.bytesToBigInt=hJ.bytesToBigInt,hQ.bytesToHex=hJ.bytesToHex,hQ.bytesToNumber=hJ.bytesToNumber,hQ.bytesToSignedBigInt=hJ.bytesToSignedBigInt,hQ.bytesToString=hJ.bytesToString,hQ.calculateNumberSize=h1.calculateNumberSize,hQ.calculateStringSize=h1.calculateStringSize,hQ.concatBytes=hJ.concatBytes,hQ.createBigInt=vY.createBigInt,hQ.createBytes=vY.createBytes,hQ.createDataView=hJ.createDataView,hQ.createDeferredPromise=m0.createDeferredPromise,hQ.createHex=vY.createHex,hQ.createModuleLogger=vC.createModuleLogger,hQ.createNumber=vY.createNumber,hQ.createProjectLogger=vC.createProjectLogger,hQ.exactOptional=gY.exactOptional,hQ.getChecksumAddress=hJ.getChecksumAddress,hQ.getErrorMessage=h0.getErrorMessage,hQ.getJsonRpcIdValidator=gY.getJsonRpcIdValidator,hQ.getJsonSize=gY.getJsonSize,hQ.getKnownPropertyNames=h1.getKnownPropertyNames,hQ.getSafeJson=gY.getSafeJson,hQ.gtRange=m6.gtRange,hQ.gtVersion=m6.gtVersion,hQ.hasProperty=h1.hasProperty,hQ.hexToBigInt=hZ.hexToBigInt,hQ.hexToBytes=hJ.hexToBytes,hQ.hexToNumber=hZ.hexToNumber,hQ.inMilliseconds=m1.inMilliseconds,hQ.isASCII=h1.isASCII,hQ.isBytes=hJ.isBytes,hQ.isCaipAccountAddress=vP.isCaipAccountAddress,hQ.isCaipAccountId=vP.isCaipAccountId,hQ.isCaipChainId=vP.isCaipChainId,hQ.isCaipNamespace=vP.isCaipNamespace,hQ.isCaipReference=vP.isCaipReference,hQ.isErrorWithCode=h0.isErrorWithCode,hQ.isErrorWithMessage=h0.isErrorWithMessage,hQ.isErrorWithStack=h0.isErrorWithStack,hQ.isHexString=hJ.isHexString,hQ.isJsonRpcError=gY.isJsonRpcError,hQ.isJsonRpcFailure=gY.isJsonRpcFailure,hQ.isJsonRpcNotification=gY.isJsonRpcNotification,hQ.isJsonRpcRequest=gY.isJsonRpcRequest,hQ.isJsonRpcResponse=gY.isJsonRpcResponse,hQ.isJsonRpcSuccess=gY.isJsonRpcSuccess,hQ.isNonEmptyArray=h1.isNonEmptyArray,hQ.isNullOrUndefined=h1.isNullOrUndefined,hQ.isObject=h1.isObject,hQ.isPendingJsonRpcResponse=gY.isPendingJsonRpcResponse,hQ.isPlainObject=h1.isPlainObject,hQ.isStrictHexString=hJ.isStrictHexString,hQ.isValidChecksumAddress=hJ.isValidChecksumAddress,hQ.isValidHexAddress=hJ.isValidHexAddress,hQ.isValidJson=gY.isValidJson,hQ.isValidSemVerRange=m6.isValidSemVerRange,hQ.isValidSemVerVersion=m6.isValidSemVerVersion,hQ.jsonrpc2=gY.jsonrpc2,hQ.numberToBytes=hJ.numberToBytes,hQ.numberToHex=
2hZ.numberToHex,hQ.object=gY.object,hQ.parseCaipAccountId=vP.parseCaipAccountId,hQ.parseCaipChainId=vP.parseCaipChainId,hQ.remove0x=hJ.remove0x,hQ.satisfiesVersionRange=m6.satisfiesVersionRange,hQ.signedBigIntToBytes=hJ.signedBigIntToBytes,hQ.stringToBytes=hJ.stringToBytes,hQ.timeSince=m1.timeSince,hQ.valueToBytes=hJ.valueToBytes,hQ.wrapError=h0.wrapError,Object.defineProperty(hY,"__esModule",{value:!0});var v5=hG.errorCodes.rpc.internal,v7={code:v5,message:be(v5)},v9="Unspecified server error.";function be(e,t="Unspecified error message. This is a bug, please report it."){if(bt(e)){let t=e.toString();if(hQ.hasProperty.call(void 0,hG.errorValues,t))return hG.errorValues[t].message;if(e>=-32099&&e<=-32e3)return v9}return t}function bt(e){return Number.isInteger(e)}function bn(e){return Array.isArray(e)?e.map(e=>hQ.isValidJson.call(void 0,e)?e:hQ.isObject.call(void 0,e)?br(e):null):hQ.isObject.call(void 0,e)?br(e):hQ.isValidJson.call(void 0,e)?e:null}function br(e){return Object.getOwnPropertyNames(e).reduce((t,n)=>{let r=e[n];return hQ.isValidJson.call(void 0,r)&&(t[n]=r),t},{})}hY.JSON_RPC_SERVER_ERROR_MESSAGE=v9,hY.getMessageFromCode=be,hY.isValidCode=bt,hY.serializeError=function(e,{fallbackError:t=v7,shouldIncludeStack:n=!0}={}){if(!hQ.isJsonRpcError.call(void 0,t))throw Error("Must provide fallback error with integer number code and string message.");let r=function(e,t){if(e&&"object"==typeof e&&"serialize"in e&&"function"==typeof e.serialize)return e.serialize();if(hQ.isJsonRpcError.call(void 0,e))return e;let n=bn(e);return{...t,data:{cause:n}}}(e,t);return n||delete r.stack,r},hY.serializeCause=bn,bu.default=bu,bu.stable=bf,bu.stableStringify=bf;var bi="[...]",bo="[Circular]",ba=[],bs=[];function bl(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function bu(e,t,n,r){var i;void 0===r&&(r=bl()),function e(t,n,r,i,o,a,s){var l;if(a+=1,"object"==typeof t&&null!==t){for(l=0;l<i.length;l++)if(i[l]===t)return void bc(bo,t,n,o);if(void 0!==s.depthLimit&&a>s.depthLimit||void 0!==s.edgesLimit&&r+1>s.edgesLimit)return void bc(bi,t,n,o);if(i.push(t),Array.isArray(t))for(l=0;l<t.length;l++)e(t[l],l,l,i,t,a,s);else{var u=Object.keys(t);for(l=0;l<u.length;l++){var c=u[l];e(t[c],c,l,i,t,a,s)}}i.pop()}}(e,"",0,[],void 0,0,r);try{i=0===bs.length?JSON.stringify(e,t,n):JSON.stringify(e,bh(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==ba.length;){var o=ba.pop();4===o.length?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return i}function bc(e,t,n,r){var i=Object.getOwnPropertyDescriptor(r,n);void 0!==i.get?i.configurable?(Object.defineProperty(r,n,{value:e}),ba.push([r,n,t,i])):bs.push([t,n,e]):(r[n]=e,ba.push([r,n,t]))}function bd(e,t){return e<t?-1:e>t?1:0}function bf(e,t,n,r){void 0===r&&(r=bl());var i,o=function e(t,n,r,i,o,a,s){var l;if(a+=1,"object"==typeof t&&null!==t){for(l=0;l<i.length;l++)if(i[l]===t)return void bc(bo,t,n,o);try{if("function"==typeof t.toJSON)return}catch(e){return}if(void 0!==s.depthLimit&&a>s.depthLimit||void 0!==s.edgesLimit&&r+1>s.edgesLimit)return void bc(bi,t,n,o);if(i.push(t),Array.isArray(t))for(l=0;l<t.length;l++)e(t[l],l,l,i,t,a,s);else{var u={},c=Object.keys(t).sort(bd);for(l=0;l<c.length;l++){var d=c[l];e(t[d],d,l,i,t,a,s),u[d]=t[d]}if(void 0===o)return u;ba.push([o,n,t]),o[n]=u}i.pop()}}(e,"",0,[],void 0,0,r)||e;try{i=0===bs.length?JSON.stringify(o,t,n):JSON.stringify(o,bh(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==ba.length;){var a=ba.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return i}function bh(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(bs.length>0)for(var r=0;r<bs.length;r++){var i=bs[r];if(i[1]===t&&i[0]===n){n=i[2],bs.splice(r,1);break}}return e.call(this,t,n)}}var bp=u(bu);
2Object.defineProperty(hW,"__esModule",{value:!0});var bm=bu&&bu.__esModule?bu:{default:bu},bg=class extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw Error('"message" must be a non-empty string.');super(t),this.code=e,void 0!==n&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data,hQ.isPlainObject.call(void 0,this.data)&&(e.data.cause=hY.serializeCause.call(void 0,this.data.cause))),this.stack&&(e.stack=this.stack),e}toString(){return bm.default.call(void 0,this.serialize(),bv,2)}};function bv(e,t){if("[Circular]"!==t)return t}function bb(e,t){return null!=e?e:t()}function by(e,t){let[n,r]=bw(t);return new hW.JsonRpcError(e,bb(n,()=>hY.getMessageFromCode.call(void 0,e)),r)}function bA(e,t){let[n,r]=bw(t);return new hW.EthereumProviderError(e,bb(n,()=>hY.getMessageFromCode.call(void 0,e)),r)}function bw(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:n}=e;if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[bb(t,()=>{}),n]}}return[]}hW.JsonRpcError=bg,hW.EthereumProviderError=class extends bg{constructor(e,t,n){if(!(Number.isInteger(e)&&e>=1e3&&e<=4999))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}},Object.defineProperty(h$,"__esModule",{value:!0}),h$.rpcErrors={parse:e=>by(hG.errorCodes.rpc.parse,e),invalidRequest:e=>by(hG.errorCodes.rpc.invalidRequest,e),invalidParams:e=>by(hG.errorCodes.rpc.invalidParams,e),methodNotFound:e=>by(hG.errorCodes.rpc.methodNotFound,e),internal:e=>by(hG.errorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum RPC Server errors must provide single object argument.");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw Error('"code" must be an integer such that: -32099 <= code 
2<= -32005');return by(t,e)},invalidInput:e=>by(hG.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>by(hG.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>by(hG.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>by(hG.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>by(hG.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>by(hG.errorCodes.rpc.limitExceeded,e)},h$.providerErrors={userRejectedRequest:e=>bA(hG.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>bA(hG.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>bA(hG.errorCodes.provider.unsupportedMethod,e),disconnected:e=>bA(hG.errorCodes.provider.disconnected,e),chainDisconnected:e=>bA(hG.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum Provider custom errors must provide single object argument.");let{code:t,message:n,data:r}=e;if(!n||"string"!=typeof n)throw Error('"message" must be a nonempty string');return new hW.EthereumProviderError(t,n,r)}},Object.defineProperty(hV,"__esModule",{value:!0}),hV.EthereumProviderError=hW.EthereumProviderError,hV.JsonRpcError=hW.JsonRpcError,hV.errorCodes=hG.errorCodes,hV.getMessageFromCode=hY.getMessageFromCode,hV.providerErrors=h$.providerErrors,hV.rpcErrors=h$.rpcErrors,hV.serializeCause=hY.serializeCause,hV.serializeError=hY.serializeError;var b_={};Object.defineProperty(b_,"__esModule",{value:!0});let bE=eV;function bS(e,t,n){try{Reflect.apply(e,t,n)}catch(e){setTimeout(()=>{throw e})}}class bk extends bE.EventEmitter{emit(e,...t){let n="error"===e,r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){let e;if(t.length>0&&([e]=t),e instanceof Error)throw e;let n=Error("Unhandled error."+(e?` (${e.message})`:""));throw n.context=e,n}let i=r[e];if(void 0===i)return!1;if("function"==typeof i)bS(i,this,t);else{let e=i.length,n=function(e){let t=e.length,n=Array(t);for(let r=0;r<t;r+=1)n[r]=e[r];return n}(i);for(let r=0;r<e;r+=1)bS(n[r],this,t)}return!0}}var bM,bC,bx,bR,bI,bT,bO,bP,bL,bN,bD,bB,bj,bF=b_.default=bk,bz=l&&l.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},bU=l&&l.__classPrivateFieldSet||function(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n},bq=l&&l.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},bK=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hH,"__esModule",{value:!0}),hH.JsonRpcEngine=void 0;let bH=bK(b_);class bV extends bH.default{constructor({notificationHandler:e}={}){super(),bM.add(this),bx.set(this,!1),bR.set(this,void 0),bI.set(this,void 0),bU(this,bR,[],"f"),bU(this,bI,e,"f")}destroy(){bq(this,bR,"f").forEach(e=>{"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}),bU(this,bR,[],"f"),bU(this,bx,!0,"f")}push(e){bq(this,bM,"m",bT).call(this),bq(this,bR,"f").push(e)}handle(e,t){if(bq(this,bM,"m",bT).call(this),t&&"function"!=typeof t)throw Error('"callback" must be a function if provided.');return Array.isArray(e)?t?bq(this,bM,"m",bO).call(this,e,t):bq(this,bM,"m",bO).call(this,e):t?bq(this,bM,"m",bP).call(this,e,t):this._promiseHandle(e)}asMiddleware(){return bq(this,bM,"m",bT).call(this),(e,t,n,r)=>bz(this,void 0,void 0,function*(){try{let[i,o,a]=yield bq(bV,bC,"m",bN).call(bV,e,t,bq(this,bR,"f"));return o?(yield bq(bV,bC,"m",bB).call(bV,a),r(i)):n(e=>bz(this,void 0,void 0,function*(){try{yield bq(bV,bC,"m",bB).call(bV,a)}catch(t){return e(t)}return e()}))}catch(e){return r(e)}})}_promiseHandle(e){return bz(this,void 0,void 0,function*(){return new Promise((t,n)=>{bq(this,bM,"m",bP).call(this,e,(e,r)=>{e&&void 0===r?n(e):t(r)}
2).catch(n)})})}}function b$(e){return JSON.stringify(e,null,2)}hH.JsonRpcEngine=bV,bC=bV,bx=new WeakMap,bR=new WeakMap,bI=new WeakMap,bM=new WeakSet,bT=function(){if(bq(this,bx,"f"))throw Error("This engine is destroyed and can no longer be used.")},bO=function(e,t){return bz(this,void 0,void 0,function*(){try{if(0===e.length){let e=[{id:null,jsonrpc:"2.0",error:new hV.JsonRpcError(hV.errorCodes.rpc.invalidRequest,"Request batch must contain plain objects. Received an empty array")}];return t?t(null,e):e}let n=(yield Promise.all(e.map(this._promiseHandle.bind(this)))).filter(e=>void 0!==e);return t?t(null,n):n}catch(e){if(t)return t(e);throw e}})},bP=function(e,t){var n;return bz(this,void 0,void 0,function*(){if(!e||Array.isArray(e)||"object"!=typeof e){let n=new hV.JsonRpcError(hV.errorCodes.rpc.invalidRequest,"Requests must be plain objects. Received: "+typeof e,{request:e});return t(n,{id:null,jsonrpc:"2.0",error:n})}if("string"!=typeof e.method){let r=new hV.JsonRpcError(hV.errorCodes.rpc.invalidRequest,"Must specify a string method. Received: "+typeof e.method,{request:e});return bq(this,bI,"f")&&!(0,hQ.isJsonRpcRequest)(e)?t(null):t(r,{id:null!==(n=e.id)&&void 0!==n?n:null,jsonrpc:"2.0",error:r})}if(bq(this,bI,"f")&&!(0,hQ.isJsonRpcRequest)(e)){try{yield bq(this,bI,"f").call(this,e)}catch(e){return t(e)}return t(null)}let r=null,i=Object.assign({},e),o={id:i.id,jsonrpc:i.jsonrpc};try{yield bq(bV,bC,"m",bL).call(bV,i,o,bq(this,bR,"f"))}catch(e){r=e}return r&&(delete o.result,o.error||(o.error=(0,hV.serializeError)(r))),t(r,o)})},bL=function(e,t,n){return bz(this,void 0,void 0,function*(){let[r,i,o]=yield bq(bV,bC,"m",bN).call(bV,e,t,n);if(bq(bV,bC,"m",bj).call(bV,e,t,i),yield bq(bV,bC,"m",bB).call(bV,o),r)throw r})},bN=function(e,t,n){return bz(this,void 0,void 0,function*(){let r=[],i=null,o=!1;for(let a of n)if([i,o]=yield bq(bV,bC,"m",bD).call(bV,e,t,a,r),o)break;return[i,o,r.reverse()]})},bD=function(e,t,n,r){return bz(this,void 0,void 0,function*(){return new Promise(i=>{let o=e=>{let n=e||t.error;n&&(t.error=(0,hV.serializeError)(n)),i([n,!0])};try{n(e,t,n=>{t.error?o(t.error):(n&&("function"!=typeof n&&o(new hV.JsonRpcError(hV.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof n}" for request:
3${b$(e)}`,{request:e})),r.push(n)),i([null,!1]))},o)}catch(e){o(e)}})})},bB=function(e){return bz(this,void 0,void 0,function*(){for(let t of e)yield new Promise((e,n)=>{t(t=>t?n(t):e())})})},bj=function(e,t,n){if(!(0,hQ.hasProperty)(t,"result")&&!(0,hQ.hasProperty)(t,"error"))throw new hV.JsonRpcError(hV.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request:
4${b$(e)}`,{request:e});if(!n)throw new hV.JsonRpcError(hV.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request:
5${b$(e)}`,{request:e})};var bW={};Object.defineProperty(bW,"__esModule",{value:!0}),bW.mergeMiddleware=void 0,bW.mergeMiddleware=function(e){let t=new hH.JsonRpcEngine;return e.forEach(e=>t.push(e)),t.asMiddleware()},yd=l&&l.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),yf=l&&l.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||yd(t,e,n)},Object.defineProperty(hB,"__esModule",{value:!0}),yf(hj,hB),yf(hz,hB),yf(hU,hB),yf(hK,hB),yf(hH,hB),yf(bW,hB);var bY={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}};function bG(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}var bQ=(e,t)=>
5Object.hasOwnProperty.call(e,t),bZ=class extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}},bJ=e=>pI(e);function bX({path:e,branch:t}){let n=e[e.length-1];return bQ(t[t.length-2],n)}function b0(e){return new pp({...e,type:`optional ${e.type}`,validator:(t,n)=>!bX(n)||e.validator(t,n),refiner:(t,n)=>!bX(n)||e.refiner(t,n)})}var b1=pN([pM(null),pS(),pA("finite number",e=>pb(e,pR())&&Number.isFinite(e)),pP(),pE(pw(()=>b1)),pO(pP(),pw(()=>b1))]),b2=pB(b1,p_(),e=>((function(e,t,n="Assertion failed",r=bZ){try{pm(e,t)}catch(e){var i;throw i=`${n}: ${("object"==typeof e&&null!==e&&"message"in e&&"string"==typeof e.message?e.message:null==e?"":String(e)).replace(/\.$/u,"")}.`,"string"==typeof r?.prototype?.constructor?.name?new r({message:i}):r({message:i})}})(e,b1),JSON.parse(JSON.stringify(e,(e,t)=>{if("__proto__"!==e&&"constructor"!==e)return t}))));function b3(e){try{return pg(e,b2),!0}catch{return!1}}var b6=pM("2.0"),b4=px(pN([pR(),pP()])),b8=bJ({code:pk(),message:pP(),data:b0(b2),stack:b0(pP())}),b5=pN([pO(pP(),b2),pE(b2)]);function b7(e,t="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(e)){let t=e.toString();if(bQ(bY,t))return bY[t].message;if(e>=-32099&&e<=-32e3)return"Unspecified server error."}return t}function b9(e){return Object.getOwnPropertyNames(e).reduce((t,n)=>{let r=e[n];return b3(r)&&(t[n]=r),t},{})}bJ({id:b4,jsonrpc:b6,method:pP(),params:b0(b5)}),bJ({jsonrpc:b6,method:pP(),params:b0(b5)}),pI({id:b4,jsonrpc:b6,result:pT(pD()),error:pT(b8)}),pN([bJ({id:b4,jsonrpc:b6,result:b2}),bJ({id:b4,jsonrpc:b6,error:b8})]),b7(-32603);var ye=class extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw Error('"message" must be a non-empty string.');super(t),this.code=e,void 0!==n&&(this.data=n)}serialize(){var e;let t={code:this.code,message:this.message};return void 0!==this.data&&(t.data=this.data,function(e){if("object"!=typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(e){return!1}}(this.data)&&(t.data.cause=Array.isArray(e=this.data.cause)?e.map(e=>b3(e)?e:bG(e)?b9(e):null):bG(e)?b9(e):b3(e)?e:null)),this.stack&&(t.stack=this.stack),t}toString(){return bp(this.serialize(),yt,2)}};function yt(e,t){if("[Circular]"!==t)return t}var yn=e=>(function(e,t){let[n,r]=function(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:n}=e;if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[t??void 0,n]}}return[]}(t);return new ye(-32600,n??b7(-32600),r)})(-32600,e),yr=Object.freeze(["eth_subscription"]),yi=(e=console)=>[hB.createIdRemapMiddleware(),(t,n,r)=>{"string"==typeof t.method&&t.method||(n.error=yn({message:"The request 'method' must be a non-empty string.",data:t})),r(t=>{let{error:r}=n;return r&&e.error(`MetaMask - RPC Error: ${r.message}`,r),t()})},function(e){let t={ethDecryptDeprecation:!1,ethGetEncryptionPublicKeyDeprecation:!1,walletWatchAssetNFTExperimental:!1};return(n,r,i)=>{t.ethDecryptDeprecation||"eth_decrypt"!==n.method?t.ethGetEncryptionPublicKeyDeprecation||"eth_getEncryptionPublicKey"!==n.method?!t.walletWatchAssetNFTExperimental&&"wallet_watchAsset"===n.method&&["ERC721","ERC1155"].includes(n.params?.type||"")&&(e.warn(hD.warnings.rpc.walletWatchAssetNFTExperimental),t.walletWatchAssetNFTExperimental=!0):(e.warn(hD.warnings.rpc.ethGetEncryptionPublicKeyDeprecation),t.ethGetEncryptionPublicKeyDeprecation=!0):(e.warn(hD.warnings.rpc.ethDecryptDeprecation),t.ethDecryptDeprecation=!0),i()}}(e)],yo=(e,t,n=!0)=>(r,i)=>{r||i.error?t(r||i.error):!n||Array.isArray(i)?e(i):e(i.result)},ya=e=>!!e&&"string"==typeof e&&e.startsWith("0x"),ys=()=>{};async function yl(e,t){try{let t=await async function(){return{name:function(e){let{document:t}=e,n=t.querySelector('head > meta[property="og:site_name"]');if(n)return n.content;let r=t.querySelector('head > meta[name="title"]');return r?r.content:t.title&&t.title.length>0?t.title:window.location.hostname}(window),icon:await yu(window)}}();
5e.handle({jsonrpc:"2.0",id:1,method:"metamask_sendDomainMetadata",params:t},ys)}catch(e){t.error({message:hD.errors.sendSiteMetadata(),originalError:e})}}async function yu(e){let{document:t}=e;for(let e of Array.from(t.querySelectorAll('head > link[rel~="icon"]')))if(e&&await yc(e.href))return e.href;return null}async function yc(e){return new Promise((t,n)=>{try{let n=document.createElement("img");n.onload=()=>t(!0),n.onerror=()=>t(!1),n.src=e}catch(e){n(e)}})}var yd,yf,yh,yp,ym=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},yg=(e,t,n)=>(ym(e,t,"read from private field"),n?n.call(e):t.get(e)),yv=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},yb=(e,t,n,r)=>(ym(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),yy=u(function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var r,i,o,a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}),yA=class e extends bF{constructor({logger:t=console,maxEventListeners:n=100,rpcMiddleware:r=[]}={}){super(),yv(this,yh,void 0),yv(this,yp,void 0),this._log=t,this.setMaxListeners(n),this._state={...e._defaultState},yb(this,yp,null),yb(this,yh,null),this._handleAccountsChanged=this._handleAccountsChanged.bind(this),this._handleConnect=this._handleConnect.bind(this),this._handleChainChanged=this._handleChainChanged.bind(this),this._handleDisconnect=this._handleDisconnect.bind(this),this._handleUnlockStateChanged=this._handleUnlockStateChanged.bind(this),this._rpcRequest=this._rpcRequest.bind(this),this.request=this.request.bind(this);let i=new hB.JsonRpcEngine;r.forEach(e=>i.push(e)),this._rpcEngine=i}get chainId(){return yg(this,yh)}get selectedAddress(){return yg(this,yp)}isConnected(){return this._state.isConnected}async request(e){if(!e||"object"!=typeof e||Array.isArray(e))throw yn({message:hD.errors.invalidRequestArgs(),data:e});let{method:t,params:n}=e;if("string"!=typeof t||0===t.length)throw yn({message:hD.errors.invalidRequestMethod(),data:e});if(void 0!==n&&!Array.isArray(n)&&("object"!=typeof n||null===n))throw yn({message:hD.errors.invalidRequestParams(),data:e});let r=null==n?{method:t}:{method:t,params:n};return new Promise((e,t)=>{this._rpcRequest(r,yo(e,t))})}_initializeState(e){if(this._state.initialized)throw Error("Provider already initialized.");if(e){let{accounts:t,chainId:n,isUnlocked:r,networkVersion:i}=e;this._handleConnect(n),this._handleChainChanged({chainId:n,networkVersion:i}),this._handleUnlockStateChanged({accounts:t,isUnlocked:r}),this._handleAccountsChanged(t)}this._state.initialized=!0,this.emit("_initialized")}_rpcRequest(e,t){let n=t;return Array.isArray(e)||(e.jsonrpc||(e.jsonrpc="2.0"),"eth_accounts"!==e.method&&"eth_requestAccounts"!==e.method||(n=(n,r)=>{this._handleAccountsChanged(r.result??[],"eth_accounts"===e.method),t(n,r)})),this._rpcEngine.handle(e,n)}_handleConnect(e){this._state.isConnected||(this._state.isConnected=!0,this.emit("connect",{chainId:e}),this._log.debug(hD.info.connected(e)))}_handleDisconnect(e,t){if(this._state.isConnected||!this._state.isPermanentlyDisconnected&&!e){let n;this._state.isConnected=!1,e?(n=new ye(1013,t??hD.errors.disconnected()),this._log.debug(n)):(n=new ye(1011,t??hD.errors.permanentlyDisconnected()),this._log.error(n),yb(this,yh,null),this._state.accounts=null,yb(this,yp,null),this._state.isUnlocked=!1,this._state.isPermanentlyDisconnected=!0),this.emit("disconnect",n)}}_handleChainChanged({chainId:e}={}){ya(e)?(this._handleConnect(e),e!==yg(this,yh)&&(yb(this,yh,e),this._state.initialized&&this.emit
5("chainChanged",yg(this,yh)))):this._log.error(hD.errors.invalidNetworkParams(),{chainId:e})}_handleAccountsChanged(e,t=!1){let n=e;for(let t of(Array.isArray(e)||(this._log.error("MetaMask: Received invalid accounts parameter. Please report this bug.",e),n=[]),e))if("string"!=typeof t){this._log.error("MetaMask: Received non-string account. Please report this bug.",e),n=[];break}if(!yy(this._state.accounts,n)&&(t&&null!==this._state.accounts&&this._log.error("MetaMask: 'eth_accounts' unexpectedly updated accounts. Please report this bug.",n),this._state.accounts=n,yg(this,yp)!==n[0]&&yb(this,yp,n[0]||null),this._state.initialized)){let e=[...n];this.emit("accountsChanged",e)}}_handleUnlockStateChanged({accounts:e,isUnlocked:t}={}){"boolean"==typeof t?t!==this._state.isUnlocked&&(this._state.isUnlocked=t,this._handleAccountsChanged(e??[])):this._log.error("MetaMask: Received invalid isUnlocked parameter. Please report this bug.")}};yh=new WeakMap,yp=new WeakMap,yA._defaultState={accounts:null,isConnected:!1,isUnlocked:!1,initialized:!1,isPermanentlyDisconnected:!1};var yw=yA,y_={},yE={};Object.defineProperty(yE,"__esModule",{value:!0}),yE.default=function(e){if(!(null==e?void 0:e.engine))throw Error("Missing engine parameter!");let{engine:t}=e,n=new ni.Duplex({objectMode:!0,read:()=>{},write:function(e,r,i){t.handle(e,(e,t)=>{n.push(t)}),i()}});return t.on&&t.on("notification",e=>{n.push(e)}),n};var yS={},yk=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yS,"__esModule",{value:!0});let yM=yk(b_);yS.default=function(e={}){let t={},n=new ni.Duplex({objectMode:!0,read:()=>{},write:function(i,o,a){let s=null;try{i.id?function(e){let{id:n}=e;if(null===n)return;let r=t[n];if(!r)return void console.warn(`StreamMiddleware - Unknown response id "${n}"`);delete t[n],Object.assign(r.res,e),setTimeout(r.end)}(i):((null==e?void 0:e.retryOnMessage)&&i.method===e.retryOnMessage&&Object.values(t).forEach(({req:e,retryCount:r=0})=>{if(!e.id)return;if(r>=3)throw Error(`StreamMiddleware - Retry limit exceeded for request id "${e.id}"`);let i=t[e.id];i&&(i.retryCount=r+1),n.push(e)}),r.emit("notification",i))}catch(e){s=e}a(s)}}),r=new yM.default;return{events:r,middleware:(e,r,i,o)=>{t[e.id]={req:e,res:r,next:i,end:o},n.push(e)},stream:n}};var yC=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(y_,"__esModule",{value:!0});var yx=y_.createStreamMiddleware=y_.createEngineStream=void 0;let yR=yC(yE);y_.createEngineStream=yR.default;let yI=yC(yS);yx=y_.createStreamMiddleware=yI.default;var yT={},yO={exports:{}},yP=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw TypeError("need wrapper function");return Object.keys(t).forEach(function(e){r[e]=t[e]}),r;function r(){for(var e=Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),i=e[e.length-1];
5return"function"==typeof r&&r!==i&&Object.keys(i).forEach(function(e){r[e]=i[e]}),r}};function yL(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function yN(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}yO.exports=yP(yL),yO.exports.strict=yP(yN),yL.proto=yL(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return yL(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return yN(this)},configurable:!0})});var yD=yO.exports,yB={};Object.defineProperty(yB,"__esModule",{value:!0}),yB.Substream=void 0;let yj=ni;class yF extends yj.Duplex{constructor({parent:e,name:t}){super({objectMode:!0}),this._parent=e,this._name=t}_read(){}_write(e,t,n){this._parent.push({name:this._name,data:e}),n()}}yB.Substream=yF;var yz=l&&l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yT,"__esModule",{value:!0}),yT.ObjectMultiplex=void 0;let yU=ni,yq=yz(yD),yK=Symbol("IGNORE_SUBSTREAM"),yH=class extends yU.Duplex{constructor(e={}){super(Object.assign(Object.assign({},e),{objectMode:!0})),this._substreams={}}createStream(e){if(this.destroyed)throw Error(`ObjectMultiplex - parent stream for name "${e}" already destroyed`);if(this._readableState.ended||this._writableState.ended)throw Error(`ObjectMultiplex - parent stream for name "${e}" already ended`);if(!e)throw Error("ObjectMultiplex - name must not be empty");if(this._substreams[e])throw Error(`ObjectMultiplex - Substream for name "${e}" already exists`);let t=new yB.Substream({parent:this,name:e});return this._substreams[e]=t,function(e,t){let n=(0,yq.default)(t);(0,yU.finished)(e,{readable:!1},n),(0,yU.finished)(e,{writable:!1},n)}(this,e=>t.destroy(e||void 0)),t}ignoreStream(e){if(!e)throw Error("ObjectMultiplex - name must not be empty");if(this._substreams[e])throw Error(`ObjectMultiplex - Substream for name "${e}" already exists`);this._substreams[e]=yK}_read(){}_write(e,t,n){let{name:r,data:i}=e;if(!r)return console.warn(`ObjectMultiplex - malformed chunk without name "${e}"`),n();let o=this._substreams[r];return o?o!==yK&&o.push(i):console.warn(`ObjectMultiplex - orphaned data for stream "${r}"`),n()}};yT.ObjectMultiplex=yH;var yV=u(yT.ObjectMultiplex);let y$=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;y$.writable=e=>y$(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,y$.readable=e=>y$(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,y$.duplex=e=>y$.writable(e)&&y$.readable(e),y$.transform=e=>y$.duplex(e)&&"function"==typeof e._transform;var yW,yY=class extends yw{constructor(e,{jsonRpcStreamName:t,logger:n=console,maxEventListeners:r=100,rpcMiddleware:i=[]}){if(super({logger:n,maxEventListeners:r,rpcMiddleware:i}),!y$.duplex(e))throw Error(hD.errors.invalidDuplexStream());this._handleStreamDisconnect=this._handleStreamDisconnect.bind(this);let o=new yV;ni.pipeline(e,o,e,this._handleStreamDisconnect.bind(this,"MetaMask")),this._jsonRpcConnection=yx({retryOnMessage:"METAMASK_EXTENSION_CONNECT_CAN_RETRY"}),ni.pipeline(this._jsonRpcConnection.stream,o.createStream(t),this._jsonRpcConnection.stream,this._handleStreamDisconnect.bind(this,"MetaMask RpcProvider")),this._rpcEngine.push(this._jsonRpcConnection.middleware),this._jsonRpcConnection.events.on("notification",t=>{let{method:n,params:r}=t;"metamask_accountsChanged"===n?this._handleAccountsChanged(r):"metamask_unlockStateChanged"===n?this._handleUnlockStateChanged(r):"metamask_chainChanged"===n?this._handleChainChanged(r):yr.includes(n)?this.emit("message",{type:n,data:r}):"METAMASK_STREAM_FAILURE"===n&&e.destroy(Error(hD.errors.permanentlyDisconnected()))})}async _initializeStateAsync(){let e;try{e=await this.request({method:"metamask_getProviderState"})}catch(e){this._log.error("MetaMask: Failed to get initial state. Please report this bug.",e)}this._initializeState(e)}_handleStreamDisconnect(e,t){let n=`MetaMask: Lost connection to "${e}".`;t?.stack&&(n+=`
6${t.stack}`),this._log.warn(n),this.listenerCount("error")>
60&&this.emit("error",n),this._handleDisconnect(!1,t?t.message:void 0)}_handleChainChanged({chainId:e,networkVersion:t}={}){let n;ya(e)&&(n=t)&&"string"==typeof n?"loading"===t?this._handleDisconnect(!0):super._handleChainChanged({chainId:e}):this._log.error(hD.errors.invalidNetworkParams(),{chainId:e,networkVersion:t})}},yG=class extends yY{constructor(e,{jsonRpcStreamName:t="metamask-provider",logger:n=console,maxEventListeners:r=100,shouldSendMetadata:i}={}){if(super(e,{jsonRpcStreamName:t,logger:n,maxEventListeners:r,rpcMiddleware:yi(n)}),this._sentWarnings={chainId:!1,networkVersion:!1,selectedAddress:!1,enable:!1,experimentalMethods:!1,send:!1,events:{close:!1,data:!1,networkChanged:!1,notification:!1}},yv(this,yW,void 0),this._initializeStateAsync(),yb(this,yW,null),this.isMetaMask=!0,this._sendSync=this._sendSync.bind(this),this.enable=this.enable.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this._warnOfDeprecation=this._warnOfDeprecation.bind(this),this._metamask=this._getExperimentalApi(),this._jsonRpcConnection.events.on("notification",e=>{let{method:t}=e;yr.includes(t)&&(this.emit("data",e),this.emit("notification",e.params.result))}),i){if("complete"===document.readyState)yl(this._rpcEngine,this._log);else{let e=()=>{yl(this._rpcEngine,this._log),window.removeEventListener("DOMContentLoaded",e)};window.addEventListener("DOMContentLoaded",e)}}}get chainId(){return this._sentWarnings.chainId||(this._log.warn(hD.warnings.chainIdDeprecation),this._sentWarnings.chainId=!0),super.chainId}get networkVersion(){return this._sentWarnings.networkVersion||(this._log.warn(hD.warnings.networkVersionDeprecation),this._sentWarnings.networkVersion=!0),yg(this,yW)}get selectedAddress(){return this._sentWarnings.selectedAddress||(this._log.warn(hD.warnings.selectedAddressDeprecation),this._sentWarnings.selectedAddress=!0),super.selectedAddress}sendAsync(e,t){this._rpcRequest(e,t)}addListener(e,t){return this._warnOfDeprecation(e),super.addListener(e,t)}on(e,t){return this._warnOfDeprecation(e),super.on(e,t)}once(e,t){return this._warnOfDeprecation(e),super.once(e,t)}prependListener(e,t){return this._warnOfDeprecation(e),super.prependListener(e,t)}prependOnceListener(e,t){return this._warnOfDeprecation(e),super.prependOnceListener(e,t)}_handleDisconnect(e,t){super._handleDisconnect(e,t),yg(this,yW)&&!e&&yb(this,yW,null)}_warnOfDeprecation(e){!1===this._sentWarnings?.events[e]&&(this._log.warn(hD.warnings.events[e]),this._sentWarnings.events[e]=!0)}async enable(){return this._sentWarnings.enable||(this._log.warn(hD.warnings.enableDeprecation),this._sentWarnings.enable=!0),new Promise((e,t)=>{try{this._rpcRequest({method:"eth_requestAccounts",params:[]},yo(e,t))}catch(e){t(e)}})}send(e,t){return this._sentWarnings.send||(this._log.warn(hD.warnings.sendDeprecation),this._sentWarnings.send=!0),"string"!=typeof e||t&&!Array.isArray(t)?e&&"object"==typeof e&&"function"==typeof t?this._rpcRequest(e,t):this._sendSync(e):new Promise((n,r)=>{try{this._rpcRequest({method:e,params:t},yo(n,r,!1))}catch(e){r(e)}})}_sendSync(e){let t;switch(e.method){case"eth_accounts":t=this.selectedAddress?[this.selectedAddress]:[];break;case"eth_coinbase":t=this.selectedAddress??null;break;case"eth_uninstallFilter":this._rpcRequest(e,ys),t=!0;break;case"net_version":t=yg(this,yW)??null;break;default:throw Error(hD.errors.unsupportedSync(e.method))}return{id:e.id,jsonrpc:e.jsonrpc,result:t}}_getExperimentalApi(){return new Proxy({isUnlocked:async()=>(this._state.initialized||await new Promise(e=>{this.on("_initialized",()=>e())}),this._state.isUnlocked),requestBatch:async e=>{if(!Array.isArray(e))throw yn({message:"Batch requests must be made with an array of request objects.",data:e});return new Promise((t,n)=>{this._rpcRequest(e,yo(t,n))})}},{get:(e,t,...n)=>(this._sentWarnings.experimentalMethods||(this._log.warn(hD.warnings.experimentalMethods),this._sentWarnings.experimentalMethods=!0),Reflect.get(e,t,...n))})}_handleChainChanged({chainId:e,networkVersion:t}={}){super._handleChainChanged({chainId:e,networkVersion:t}),this._state.isConnected&&t!==yg(this,yW)&&(yb(this,yW,t),this._state.initialized&&this.emit
6("networkChanged",yg(this,yW)))}};yW=new WeakMap;let yQ=vT("MM_SDK");yQ.color="#FFAC1C";var yZ={},yJ={};Object.defineProperty(yJ,"__esModule",{value:!0}),yJ.EthereumProviderError=yJ.EthereumRpcError=void 0;class yX extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw Error('"message" must be a nonempty string.');super(t),this.code=e,void 0!==n&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return bu.default(this.serialize(),y0,2)}}function y0(e,t){if("[Circular]"!==t)return t}yJ.EthereumRpcError=yX,yJ.EthereumProviderError=class extends yX{constructor(e,t,n){if(!(Number.isInteger(e)&&e>=1e3&&e<=4999))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};var y1={},y2={};Object.defineProperty(y2,"__esModule",{value:!0}),y2.errorValues=y2.errorCodes=void 0,y2.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},y2.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;let t=y2.errorCodes.rpc.internal,n={code:t,message:r(t)};function r(t,n="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(t)){let n=t.toString();if(a(y2.errorValues,n))return y2.errorValues[n].message;if(t>=-32099&&t<=-32e3)return e.JSON_RPC_SERVER_ERROR_MESSAGE}return n}function i(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!y2.errorValues[t]||!!(e>=-32099&&e<=-32e3)}function o(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",e.getMessageFromCode=r,e.isValidCode=i,e.serializeError=function(e,{fallbackError:t=n,shouldIncludeStack:s=!1}={}){if(!t||!Number.isInteger(t.code)||"string"!=typeof t.message)throw Error("Must provide fallback error with integer number code and string message.");if(e instanceof yJ.EthereumRpcError)return e.serialize();let l={};if(e&&"object"==typeof e&&!Array.isArray(e)&&a(e,"code")&&i(e.code))l.code=e.code,e.message&&"string"==typeof e.message?(l.message=e.message,a(e,"data")&&(l.data=e.data)):(l.message=r(l.code),l.data={originalError:o(e)});else{l.code=t.code;let n=null==e?void 0:e.message;l.message=n&&"string"==typeof n?n:t.message,l.data={originalError:o(e)}}let u=null==e?void 0:e.stack;return s&&e&&u&&"string"==typeof u&&(l.stack=u),l}}(y1);var y3={};function y6(e,t){let[n,r]=y8(t);return new yJ.EthereumRpcError(e,n||y1.getMessageFromCode(e),r)}function y4(e,t){let[n,r]=y8(t);return new yJ.EthereumProviderError(e,n||y1.getMessageFromCode(e),r)}function y8(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:n}=e;
6if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[t||void 0,n]}}return[]}Object.defineProperty(y3,"__esModule",{value:!0}),y3.ethErrors=void 0,y3.ethErrors={rpc:{parse:e=>y6(y2.errorCodes.rpc.parse,e),invalidRequest:e=>y6(y2.errorCodes.rpc.invalidRequest,e),invalidParams:e=>y6(y2.errorCodes.rpc.invalidParams,e),methodNotFound:e=>y6(y2.errorCodes.rpc.methodNotFound,e),internal:e=>y6(y2.errorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum RPC Server errors must provide single object argument.");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw Error('"code" must be an integer such that: -32099 <= code <= -32005');return y6(t,e)},invalidInput:e=>y6(y2.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>y6(y2.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>y6(y2.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>y6(y2.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>y6(y2.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>y6(y2.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>y4(y2.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>y4(y2.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>y4(y2.errorCodes.provider.unsupportedMethod,e),disconnected:e=>y4(y2.errorCodes.provider.disconnected,e),chainDisconnected:e=>y4(y2.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum Provider custom errors must provide single object argument.");let{code:t,message:n,data:r}=e;if(!n||"string"!=typeof n)throw Error('"message" must be a nonempty string');return new yJ.EthereumProviderError(t,n,r)}}},Object.defineProperty(yZ,"__esModule",{value:!0}),yZ.getMessageFromCode=yZ.serializeError=yZ.EthereumProviderError=yZ.EthereumRpcError=yZ.ethErrors=yZ.errorCodes=void 0,Object.defineProperty(yZ,"EthereumRpcError",{enumerable:!0,get:function(){return yJ.EthereumRpcError}}),Object.defineProperty(yZ,"EthereumProviderError",{enumerable:!0,get:function(){return yJ.EthereumProviderError}}),Object.defineProperty(yZ,"serializeError",{enumerable:!0,get:function(){return y1.serializeError}}),Object.defineProperty(yZ,"getMessageFromCode",{enumerable:!0,get:function(){return y1.getMessageFromCode}}),Object.defineProperty(yZ,"ethErrors",{enumerable:!0,get:function(){return y3.ethErrors}}),Object.defineProperty(yZ,"errorCodes",{enumerable:!0,get:function(){return y2.errorCodes}});let y5={METAMASK_GETPROVIDERSTATE:"metamask_getProviderState",METAMASK_CONNECTSIGN:"metamask_connectSign",METAMASK_CONNECTWITH:"metamask_connectWith",METAMASK_OPEN:"metamask_open",METAMASK_BATCH:"metamask_batch",PERSONAL_SIGN:"personal_sign",WALLET_REQUESTPERMISSIONS:"wallet_requestPermissions",WALLET_GETPERMISSIONS:"wallet_getPermissions",WALLET_WATCHASSET:"wallet_watchAsset",WALLET_ADDETHEREUMCHAIN:"wallet_addEthereumChain",WALLET_SWITCHETHETHEREUMCHAIN:"wallet_switchEthereumChain",ETH_REQUESTACCOUNTS:"eth_requestAccounts",ETH_ACCOUNTS:"eth_accounts",ETH_CHAINID:"eth_chainId",ETH_SENDTRANSACTION:"eth_sendTransaction",ETH_SIGNTYPEDDATA:"eth_signTypedData",ETH_SIGNTYPEDDATA_V3:"eth_signTypedData_v3",ETH_SIGNTYPEDDATA_V4:"eth_signTypedData_v4",ETH_SIGNTRANSACTION:"eth_signTransaction",ETH_SIGN:"eth_sign",PERSONAL_EC_RECOVER:"personal_ecRecover"},y7={[y5.ETH_REQUESTACCOUNTS]:!0,[y5.ETH_SENDTRANSACTION]:!0,[y5.ETH_SIGNTRANSACTION]:!0,[y5.ETH_SIGN]:!0,[y5.ETH_ACCOUNTS]:!0,[y5.PERSONAL_SIGN]:!0,[y5.ETH_SIGNTYPEDDATA]:!0,[y5.ETH_SIGNTYPEDDATA_V3]:!0,[y5.ETH_SIGNTYPEDDATA_V4]:!0,[y5.WALLET_REQUESTPERMISSIONS]:!0,[y5.WALLET_GETPERMISSIONS]:!0,[y5.WALLET_WATCHASSET]:!0,[y5.WALLET_ADDETHEREUMCHAIN]:!0,[y5.WALLET_SWITCHETHETHEREUMCHAIN]:!0,[y5.METAMASK_CONNECTSIGN]:!0,[y5.METAMASK_CONNECTWITH]:!0,[y5.PERSONAL_EC_RECOVER]:!0,[y5.METAMASK_BATCH]:!0,[y5.METAMASK_OPEN]:!0},y9=Object.keys(y7).map(e=>e.toLowerCase()),Ae=["eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sign"].map(e=>e.toLowerCase()),At=".sdk-comm",An="providerType",Ar=".MMSDK_cached_address",Ai=".MMSDK_cached_chainId",Ao={CHAIN_CHANGED:"chainChanged",ACCOUNTS_CHANGED:"accountsChanged",DISCONNECT:"disconnect",CONNECT:"connect",CONNECTED:"connected"};class Aa{constructor({enabled:e}={enabled:!1}){this.enabled=!1,this.enabled=e}persistChannelConfig(e){return hP(this,void 0,void 0,function*(){let t=JSON.stringify(e);yQ(`[StorageManagerWeb: persistChannelConfig()] enabled=${this.enabled}`,e),localStorage.setItem(At,t)})}getPersistedChannelConfig(){return hP(this,void 0,void 0,function*(){let e;try{if(yQ(`[StorageManagerWeb: getPersistedChannelConfig()] enabled=${this.enabled}`),e=localStorage.getItem(At),yQ("[StorageManagerWeb: getPersistedChannelConfig()]",e),!e)return;let t=JSON.parse(e);return yQ("[StorageManagerWeb: getPersistedChannelConfig()] channelConfig",t),t}catch(e){return void console.error("[StorageManagerWeb: getPersistedChannelConfig()] Can't find existing channel config",e)}})}persistAccounts(e){return hP(this,void 0,void 0,function*(){yQ(`[StorageManagerWeb: persistAccounts()] enabled=${this.enabled}`,e);let t=JSON.stringify(e);localStorage.setItem(Ar,t)})}getCachedAccounts(){return hP(this,void 0,void 0,function*(){try{let e=localStorage.getItem(Ar);return e?JSON.parse(e):[]}catch(e){throw console.error("[StorageManagerWeb: getCachedAccounts()] Error reading cached accounts",e),e}})}persistChainId(e){return hP(this,void 0,void 0,function*(){yQ(`[StorageManagerWeb: persistChainId()] enabled=${this.enabled}`,e),localStorage.setItem(Ai,e)})}getCachedChainId(){return hP(this,void 0,void 0,function*(){try{let e=localStorage.getItem(Ai);return null!=e?e:void 0}catch(e){throw console.error("[StorageManagerWeb: getCachedChainId()] Error reading cached chainId",e),e}})}terminate(){return hP(this,void 0,void 0,function*(){yQ(`[StorageManagerWeb: terminate()] enabled=${this.enabled}`),localStorage.removeItem(At)})}}let As=e=>new Aa(e);
6class Al extends yG{constructor({connectionStream:e,shouldSendMetadata:t,autoRequestAccounts:n=!1}){super(e,{logger:console,maxEventListeners:100,shouldSendMetadata:t}),this.state={autoRequestAccounts:!1,providerStateRequested:!1,chainId:"",networkVersion:""},yQ(`[SDKProvider: constructor()] autoRequestAccounts=${n}`),this.state.autoRequestAccounts=n}forceInitializeState(){return hP(this,void 0,void 0,function*(){return yQ(`[SDKProvider: forceInitializeState()] autoRequestAccounts=${this.state.autoRequestAccounts}`),this._initializeStateAsync()})}_setConnected(){yQ("[SDKProvider: _setConnected()] Setting connected state"),this._state.isConnected=!0}getState(){return this._state}getSDKProviderState(){return this.state}getSelectedAddress(){var e;let{accounts:t}=this._state;return t&&0!==t.length?(null===(e=t[0])||void 0===e?void 0:e.toLowerCase())||"":(yQ("[SDKProvider: getSelectedAddress] No accounts found"),null)}getChainId(){return this.state.chainId}getNetworkVersion(){return this.state.networkVersion}setSDKProviderState(e){this.state=Object.assign(Object.assign({},this.state),e)}handleDisconnect({terminate:e=!1}){!function({terminate:e=!1,instance:t}){let{state:n}=t;t.isConnected()?(yQ(`[SDKProvider: handleDisconnect()] cleaning up provider state terminate=${e}`,t),e&&(t._state.accounts=null,t._state.isUnlocked=!1,t._state.isPermanentlyDisconnected=!0,t._state.initialized=!1),t._handleAccountsChanged([]),t._state.isConnected=!1,t.emit("disconnect",yZ.ethErrors.provider.disconnected()),n.providerStateRequested=!1):yQ("[SDKProvider: handleDisconnect()] not connected --- interrupt disconnection")}({terminate:e,instance:this})}_initializeStateAsync(){return hP(this,void 0,void 0,function*(){return function(e){var t,n;return hP(this,void 0,void 0,function*(){let r;void 0===e.state&&(e.state={autoRequestAccounts:!1,providerStateRequested:!1,chainId:""});let{state:i}=e;if(i.providerStateRequested)yQ("[SDKProvider: initializeStateAsync()] initialization already in progress");else{let o;i.providerStateRequested=!0;let a=null,s=!1,l=!1,u=As({enabled:!0});if(u){let e=yield u.getPersistedChannelConfig();s=null!==(t=null==e?void 0:e.relayPersistence)&&void 0!==t&&t,o=yield u.getCachedChainId();let n=yield u.getCachedAccounts();n.length>0&&(a=n[0])}if(yQ(`[SDKProvider: initializeStateAsync()] relayPersistence=${s}`,{relayPersistence:s,cachedChainId:o,cachedSelectedAddress:a}),s){if(o&&a)r={accounts:[a],chainId:o,isUnlocked:!1},l=!0;else try{r=yield e.request({method:"metamask_getProviderState"})}catch(t){return e._log.error("MetaMask: Failed to get initial state. Please report this bug.",t),void(i.providerStateRequested=!1)}}if(0===(null===(n=null==r?void 0:r.accounts)||void 0===n?void 0:n.length)){if(e.getSelectedAddress())r.accounts=[e.getSelectedAddress()];else{yQ("[SDKProvider: initializeStateAsync()] Fetch accounts remotely.");let t=yield e.request({method:"eth_requestAccounts",params:[]});r.accounts=t}}e._initializeState(r),i.providerStateRequested=!1,l&&(e._state.isConnected=!0,e.emit("connect",{chainId:null==r?void 0:r.chainId}))}})}(this)})}_initializeState(e){var t;return yQ("[SDKProvider: _initializeState()]",e),t=super._initializeState.bind(this),yQ("[SDKProvider: initializeState()] set state._initialized to false"),this._state.initialized=!1,t(e)}_handleChainChanged({chainId:e,networkVersion:t}={}){this.state.chainId=e,this.state.networkVersion=t,function({instance:e,chainId:t,networkVersion:n,superHandleChainChanged:r}){yQ(`[SDKProvider: handleChainChanged()] chainId=${t} networkVersion=${n}`);let i=n;n||(yQ("[SDKProvider: handleChainChanged()] forced network version to prevent provider error"),i="1"),e._state.isConnected=!0,e.emit("connect",{chainId:t}),r({chainId:t,networkVersion:i})}({instance:this,chainId:e,networkVersion:t,superHandleChainChanged:super._handleChainChanged.bind(this)})}}var Au={exports:{}};!function(e){var t=Object.hasOwnProperty,n=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},r="object"==typeof ex,i="function"==typeof Symbol,o="object"==typeof Reflect,a="function"==typeof setImmediate?setImmediate:setTimeout,s=i?o&&"function"==typeof Reflect.ownKeys?Reflect.ownKeys:function(e){var t=Object.getOwnPropertyNames(e);return t.push.apply(t,Object.getOwnPropertySymbols(e)),t}:Object.keys;function l(){this._events={},this._conf&&u.call(this,this._conf)}function u(t){t&&(this._conf=t,t.delimiter&&(this.delimiter=t.delimiter),t.maxListeners!==e&&(this._maxListeners=t.maxListeners),t.wildcard&&(this.wildcard=t.wildcard),t.newListener&&(this._newListener=t.newListener),t.removeListener&&(this._removeListener=t.removeListener),t.verboseMemoryLeak&&(this.verboseMemoryLeak=t.verboseMemoryLeak),t.ignoreErrors&&(this.ignoreErrors=t.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function c(e,t){var n="(node) warning: possible EventEmitter memory leak detected. "+e+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(n+=" Event name: "+t+"."),void 0!==ex&&ex.emitWarning){var r=Error(n);r.name="MaxListenersExceededWarning",r.emitter=this,r.count=e,ex.emitWarning(r)}else console.error(n),console.trace&&console.trace()}var d=function(e,t,n){var r=arguments.length;switch(r){case 0:return[];case 1:return[e];case 2:return[e,t];case 3:return[e,t,n];default:for(var i=Array(r);r--;)i[r]=arguments[r];return i}};function f(t,n){for(var r={},i=t.length,o=n?n.length:0,a=0;a<i;a++)r[t[a]]=a<o?n[a]:e;return r}function h(e,t,n){if(this._emitter=e,this._target=t,this._listeners={},this._listenersCount=0,(n.on||n.off)&&(r=n.on,i=n.off),t.addEventListener?(r=t.addEventListener,i=t.removeEventListener):t.addListener?(r=t.addListener,i=t.removeListener):t.on&&(r=t.on,i=t.off),!r&&!i)throw Error("target does not implement any known event API");if("function"!=typeof r)throw TypeError("on method must be a function");if("function"!=typeof i)throw TypeError("off method must be a function");this._on=r,this._off=i;var r,i,o=e._observers;o?o.push(this):e._observers=[this]}function p(n,r,i,o){var a=Object.assign({},r);if(!n)return a;
6if("object"!=typeof n)throw TypeError("options must be an object");var s,l,u,c=Object.keys(n),d=c.length;function f(e){throw Error('Invalid "'+s+'" option value'+(e?". Reason: "+e:""))}for(var h=0;h<d;h++){if(s=c[h],!o&&!t.call(r,s))throw Error('Unknown "'+s+'" option');(l=n[s])!==e&&(u=i[s],a[s]=u?u(l,f):l)}return a}function m(e,t){return"function"==typeof e&&e.hasOwnProperty("prototype")||t("value must be a constructor"),e}function g(e){var t="value must be type of "+e.join("|"),n=e.length,r=e[0],i=e[1];return 1===n?function(e,n){if(typeof e===r)return e;n(t)}:2===n?function(e,n){var o=typeof e;if(o===r||o===i)return e;n(t)}:function(r,i){for(var o=typeof r,a=n;a-- >0;)if(o===e[a])return r;i(t)}}Object.assign(h.prototype,{subscribe:function(e,t,n){var r=this,i=this._target,o=this._emitter,a=this._listeners,s=function(){var r=d.apply(null,arguments),a={data:r,name:t,original:e};n?!1!==n.call(i,a)&&o.emit.apply(o,[a.name].concat(r)):o.emit.apply(o,[t].concat(r))};if(a[e])throw Error("Event '"+e+"' is already listening");this._listenersCount++,o._newListener&&o._removeListener&&!r._onNewListener?(this._onNewListener=function(n){n===t&&null===a[e]&&(a[e]=s,r._on.call(i,e,s))},o.on("newListener",this._onNewListener),this._onRemoveListener=function(n){n===t&&!o.hasListeners(n)&&a[e]&&(a[e]=null,r._off.call(i,e,s))},a[e]=null,o.on("removeListener",this._onRemoveListener)):(a[e]=s,r._on.call(i,e,s))},unsubscribe:function(e){var t,n,r,i=this,o=this._listeners,a=this._emitter,l=this._off,u=this._target;if(e&&"string"!=typeof e)throw TypeError("event must be a string");function c(){i._onNewListener&&(a.off("newListener",i._onNewListener),a.off("removeListener",i._onRemoveListener),i._onNewListener=null,i._onRemoveListener=null);var e=A.call(a,i);a._observers.splice(e,1)}if(e){if(!(t=o[e]))return;l.call(u,e,t),delete o[e],--this._listenersCount||c()}else{for(r=(n=s(o)).length;r-- >0;)e=n[r],l.call(u,e,o[e]);this._listeners={},this._listenersCount=0,c()}}});var v=g(["function"]),b=g(["object","function"]);function y(e,t,n){var r,i,o,a=0,s=new e(function(l,u,c){function d(){i&&(i=null),a&&(clearTimeout(a),a=0)}r=!(n=p(n,{timeout:0,overload:!1},{timeout:function(e,t){return("number"!=typeof(e*=1)||e<0||!Number.isFinite(e))&&t("timeout must be a positive number"),e}})).overload&&"function"==typeof e.prototype.cancel&&"function"==typeof c;var f=function(e){d(),l(e)},h=function(e){d(),u(e)};r?t(f,h,c):(i=[function(e){h(e||Error("canceled"))}],t(f,h,function(e){if(o)throw Error("Unable to subscribe on cancel event asynchronously");if("function"!=typeof e)throw TypeError("onCancel callback must be a function");i.push(e)}),o=!0),n.timeout>0&&(a=setTimeout(function(){var e=Error("timeout");e.code="ETIMEDOUT",a=0,s.cancel(e),u(e)},n.timeout))});return r||(s.cancel=function(e){if(i){for(var t=i.length,n=1;n<t;n++)i[n](e);i[0](e),i=null}}),s}function A(e){var t=this._observers;if(!t)return -1;for(var n=t.length,r=0;r<n;r++)if(t[r]._target===e)return r;return -1}function w(e,t,n,r,i){if(!n)return null;if(0===r){var o=typeof t;if("string"===o){var a,l,u=0,c=0,d=this.delimiter,f=d.length;if(-1!==(l=t.indexOf(d))){a=[,,,,,];do a[u++]=t.slice(c,l),c=l+f;while(-1!==(l=t.indexOf(d,c)));a[u++]=t.slice(c),t=a,i=u}else t=[t],i=1}else"object"===o?i=t.length:(t=[t],i=1)}var h,p,m,g,v,b,y,A=null,_=t[r],E=t[r+1];if(r===i)n._listeners&&("function"==typeof n._listeners?e&&e.push(n._listeners):e&&e.push.apply(e,n._listeners),A=[n]);else{if("*"===_){for(l=(b=s(n)).length;l-- >0;)"_listeners"!==(h=b[l])&&(y=w(e,t,n[h],r+1,i))&&(A?A.push.apply(A,y):A=y);return A}if("**"===_){for((v=r+1===i||r+2===i&&"*"===E)&&n._listeners&&(A=w(e,t,n,i,i)),l=(b=s(n)).length;l-- >0;)"_listeners"!==(h=b[l])&&("*"===h||"**"===h?(n[h]._listeners&&!v&&(y=w(e,t,n[h],i,i))&&(A?A.push.apply(A,y):A=y),y=w(e,t,n[h],r,i)):y=w(e,t,n[h],h===E?r+2:r,i),y&&(A?A.push.apply(A,y):A=y));return A}n[_]&&(A=w(e,t,n[_],r+1,i))}if((p=n["*"])&&w(e,t,p,r+1,i),m=n["**"]){if(r<i)for(m._listeners&&w(e,t,m,i,i),l=(b=s(m)).length;l-- >0;)"_listeners"!==(h=b[l])&&(h===E?w(e,t,m[h],r+2,i):h===_?w(e,t,m[h],r+1,i):((g={})[h]=m[h],w(e,t,{"**":g},r+1,i)));else m._listeners?w(e,t,m,i,i):m["*"]&&m["*"]._listeners&&w(e,t,m["*"],i,i)}return A}function _(e,t,n){var r,i,o=0,a=0,s=this.delimiter,l=s.length;if("string"==typeof e){if(-1!==(r=e.indexOf(s))){i=[,,,,,];do i[o++]=e.slice(a,r),a=r+l;while(-1!==(r=e.indexOf(s,a)));i[o++]=e.slice(a)}else i=[e],o=1}else i=e,o=e.length;if(o>1){for(r=0;r+1<o;r++)if("**"===i[r]&&"**"===i[r+1])return}var u,d=this.listenerTree;for(r=0;r<o;r++)if(d=d[u=i[r]]||(d[u]={}),r===o-1)return d._listeners?("function"==typeof d._listeners&&(d._listeners=[d._listeners]),n?d._listeners.unshift(t):d._listeners.push(t),!d._listeners.warned&&this._maxListeners>0&&d._listeners.length>this._maxListeners&&(d._listeners.warned=!0,c.call(this,d._listeners.length,u))):d._listeners=t,!0;return!0}function E(e,t,n,r){for(var i,o,a,l,u=s(e),c=u.length,d=e._listeners;c-- >0;)i=e[o=u[c]],a="_listeners"===o?n:n?n.concat(o):[o],l=r||"symbol"==typeof o,d&&t.push(l?a:a.join(this.delimiter)),"object"==typeof i&&E.call(this,i,t,a,l);return t}function S(e){for(var t,n,r,i=s(e),o=i.length;o-- >0;)(t=e[n=i[o]])&&(r=!0,"_listeners"===n||S(t)||delete e[n]);return r}
6function k(e,t,n){this.emitter=e,this.event=t,this.listener=n}function M(t,n,i){if(!0===i)s=!0;else if(!1===i)o=!0;else{if(!i||"object"!=typeof i)throw TypeError("options should be an object or true");var o=i.async,s=i.promisify,l=i.nextTick,u=i.objectify}if(o||l||s){var c=n,d=n._origin||n;if(l&&!r)throw Error("process.nextTick is not supported");s===e&&(s="AsyncFunction"===n.constructor.name),(n=function(){var e=arguments,t=this,n=this.event;return s?l?Promise.resolve():new Promise(function(e){a(e)}).then(function(){return t.event=n,c.apply(t,e)}):(l?ew:a)(function(){t.event=n,c.apply(t,e)})})._async=!0,n._origin=d}return[n,u?new k(this,t,n):this]}function C(e){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,u.call(this,e)}k.prototype.off=function(){return this.emitter.off(this.event,this.listener),this},C.EventEmitter2=C,C.prototype.listenTo=function(t,r,i){if("object"!=typeof t)throw TypeError("target musts be an object");var o=this;return i=p(i,{on:e,off:e,reducers:e},{on:v,off:v,reducers:b}),function(e){if("object"!=typeof e)throw TypeError("events must be an object");var n,r=i.reducers,a=A.call(o,t);n=-1===a?new h(o,t,i):o._observers[a];for(var l,u=s(e),c=u.length,d="function"==typeof r,f=0;f<c;f++)l=u[f],n.subscribe(l,e[l]||l,d?r:r&&r[l])}(n(r)?f(r):"string"==typeof r?f(r.split(/\s+/)):r),this},C.prototype.stopListeningTo=function(e,t){var n=this._observers;if(!n)return!1;var r,i=n.length,o=!1;if(e&&"object"!=typeof e)throw TypeError("target should be an object");for(;i-- >0;)r=n[i],e&&r._target!==e||(r.unsubscribe(t),o=!0);return o},C.prototype.delimiter=".",C.prototype.setMaxListeners=function(t){t!==e&&(this._maxListeners=t,this._conf||(this._conf={}),this._conf.maxListeners=t)},C.prototype.getMaxListeners=function(){return this._maxListeners},C.prototype.event="",C.prototype.once=function(e,t,n){return this._once(e,t,!1,n)},C.prototype.prependOnceListener=function(e,t,n){return this._once(e,t,!0,n)},C.prototype._once=function(e,t,n,r){return this._many(e,1,t,n,r)},C.prototype.many=function(e,t,n,r){return this._many(e,t,n,!1,r)},C.prototype.prependMany=function(e,t,n,r){return this._many(e,t,n,!0,r)},C.prototype._many=function(e,t,n,r,i){var o=this;if("function"!=typeof n)throw Error("many only accepts instances of Function");function a(){return 0==--t&&o.off(e,a),n.apply(this,arguments)}return a._origin=n,this._on(e,a,r,i)},C.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||l.call(this);var e,t,n,r,o,a,s=arguments[0],u=this.wildcard;if("newListener"===s&&!this._newListener&&!this._events.newListener)return!1;if(u&&(e=s,"newListener"!==s&&"removeListener"!==s&&"object"==typeof s)){if(n=s.length,i){for(r=0;r<n;r++)if("symbol"==typeof s[r]){a=!0;break}}a||(s=s.join(this.delimiter))}var c,d=arguments.length;if(this._all&&this._all.length)for(r=0,n=(c=this._all.slice()).length;r<n;r++)switch(this.event=s,d){case 1:c[r].call(this,s);break;case 2:c[r].call(this,s,arguments[1]);break;case 3:c[r].call(this,s,arguments[1],arguments[2]);break;default:c[r].apply(this,arguments)}if(u)c=[],w.call(this,c,e,this.listenerTree,0,n);else{if("function"==typeof(c=this._events[s])){switch(this.event=s,d){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:for(t=Array(d-1),o=1;o<d;o++)t[o-1]=arguments[o];c.apply(this,t)}return!0}c&&(c=c.slice())}if(c&&c.length){if(d>3)for(t=Array(d-1),o=1;o<d;o++)t[o-1]=arguments[o];for(r=0,n=c.length;r<n;r++)switch(this.event=s,d){case 1:c[r].call(this);break;case 2:c[r].call(this,arguments[1]);break;case 3:c[r].call(this,arguments[1],arguments[2]);break;default:c[r].apply(this,t)}return!0}if(!this.ignoreErrors&&!this._all&&"error"===s)throw arguments[1]instanceof Error?arguments[1]:Error("Uncaught, unspecified 'error' event.");return!!this._all},C.prototype.emitAsync=function(){if(!this._events&&!this._all)return!1;this._events||l.call(this);var e,t,n,r,o,a,s=arguments[0],u=this.wildcard;if("newListener"===s&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);if(u&&(e=s,"newListener"!==s&&"removeListener"!==s&&"object"==typeof s)){if(r=s.length,i){for(o=0;o<r;o++)if("symbol"==typeof s[o]){t=!0;break}}t||(s=s.join(this.delimiter))}var c,d=[],f=arguments.length;if(this._all)for(o=0,r=this._all.length;o<r;o++)switch(this.event=s,f){case 1:d.push(this._all[o].call(this,s));break;case 2:d.push(this._all[o].call(this,s,arguments[1]));break;case 3:d.push(this._all[o].call(this,s,arguments[1],arguments[2]));break;default:d.push(this._all[o].apply(this,arguments))}if(u?(c=[],w.call(this,c,e,this.listenerTree,0)):c=this._events[s],"function"==typeof c)switch(this.event=s,f){case 1:d.push(c.call(this));break;case 2:d.push(c.call(this,arguments[1]));break;case 3:d.push(c.call(this,arguments[1],arguments[2]));break;default:for(n=Array(f-1),a=1;a<f;a++)n[a-1]=arguments[a];d.push(c.apply(this,n))}else if(c&&c.length){if(c=c.slice(),f>3)for(n=Array(f-1),a=1;a<f;a++)n[a-1]=arguments[a];for(o=0,r=c.length;o<r;o++)switch(this.event=s,f){case 1:d.push(c[o].call(this));break;case 2:d.push(c[o].call(this,arguments[1]));break;case 3:d.push(c[o].call(this,arguments[1],arguments[2]));break;default:d.push(c[o].apply(this,n))}}else if(!this.ignoreErrors&&!this._all&&"error"===s)return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(d)},C.prototype.on=function(e,t,n){return this._on(e,t,!1,n)},C.prototype.prependListener=function(e,t,n){return this._on(e,t,!0,n)},C.prototype.onAny=function(e){return this._onAny(e,!1)},C.prototype.prependAny=function(e){return this._onAny(e,!0)},C.prototype.addListener=C.prototype.on,C.prototype._onAny=function(e,t){if("function"!=typeof e)throw Error("onAny only accepts instances of Function");return this._all||(this._all=[]),t?this._all.unshift(e):this._all.push(e),this},C.prototype._on=function(t,n,r,i){if("function"==typeof t)return this._onAny(t,n),this;if("function"!=typeof n)throw Error("on only accepts instances of Function");this._events||l.call(this);var o,a=this;
6return i!==e&&(n=(o=M.call(this,t,n,i))[0],a=o[1]),this._newListener&&this.emit("newListener",t,n),this.wildcard?_.call(this,t,n,r):this._events[t]?("function"==typeof this._events[t]&&(this._events[t]=[this._events[t]]),r?this._events[t].unshift(n):this._events[t].push(n),!this._events[t].warned&&this._maxListeners>0&&this._events[t].length>this._maxListeners&&(this._events[t].warned=!0,c.call(this,this._events[t].length,t))):this._events[t]=n,a},C.prototype.off=function(e,t){if("function"!=typeof t)throw Error("removeListener only takes instances of Function");var r,i=[];if(this.wildcard){var o="string"==typeof e?e.split(this.delimiter):e.slice();if(!(i=w.call(this,null,o,this.listenerTree,0)))return this}else{if(!this._events[e])return this;r=this._events[e],i.push({_listeners:r})}for(var a=0;a<i.length;a++){var s=i[a];if(n(r=s._listeners)){for(var l=-1,u=0,c=r.length;u<c;u++)if(r[u]===t||r[u].listener&&r[u].listener===t||r[u]._origin&&r[u]._origin===t){l=u;break}if(l<0)continue;return this.wildcard?s._listeners.splice(l,1):this._events[e].splice(l,1),0===r.length&&(this.wildcard?delete s._listeners:delete this._events[e]),this._removeListener&&this.emit("removeListener",e,t),this}(r===t||r.listener&&r.listener===t||r._origin&&r._origin===t)&&(this.wildcard?delete s._listeners:delete this._events[e],this._removeListener&&this.emit("removeListener",e,t))}return this.listenerTree&&S(this.listenerTree),this},C.prototype.offAny=function(e){var t,n=0,r=0;if(e&&this._all&&this._all.length>0){for(n=0,r=(t=this._all).length;n<r;n++)if(e===t[n])return t.splice(n,1),this._removeListener&&this.emit("removeListenerAny",e),this}else{if(t=this._all,this._removeListener)for(n=0,r=t.length;n<r;n++)this.emit("removeListenerAny",t[n]);this._all=[]}return this},C.prototype.removeListener=C.prototype.off,C.prototype.removeAllListeners=function(t){if(t===e)return this._events&&l.call(this),this;if(this.wildcard){var n,r=w.call(this,null,t,this.listenerTree,0);if(!r)return this;for(n=0;n<r.length;n++)r[n]._listeners=null;this.listenerTree&&S(this.listenerTree)}else this._events&&(this._events[t]=null);return this},C.prototype.listeners=function(t){var n,r,i,o,a,l=this._events;if(t===e){if(this.wildcard)throw Error("event name required for wildcard emitter");if(!l)return[];for(o=(n=s(l)).length,i=[];o-- >0;)"function"==typeof(r=l[n[o]])?i.push(r):i.push.apply(i,r);return i}if(this.wildcard){if(!(a=this.listenerTree))return[];var u=[],c="string"==typeof t?t.split(this.delimiter):t.slice();return w.call(this,u,c,a,0),u}return l&&(r=l[t])?"function"==typeof r?[r]:r:[]},C.prototype.eventNames=function(e){var t=this._events;return this.wildcard?E.call(this,this.listenerTree,[],null,e):t?s(t):[]},C.prototype.listenerCount=function(e){return this.listeners(e).length},C.prototype.hasListeners=function(t){if(this.wildcard){var n=[],r="string"==typeof t?t.split(this.delimiter):t.slice();return w.call(this,n,r,this.listenerTree,0),n.length>0}var i=this._events,o=this._all;return!!(o&&o.length||i&&(t===e?s(i).length:i[t]))},C.prototype.listenersAny=function(){return this._all?this._all:[]},C.prototype.waitFor=function(t,n){var r=this,i=typeof n;return"number"===i?n={timeout:n}:"function"===i&&(n={filter:n}),y((n=p(n,{timeout:0,filter:e,handleError:!1,Promise:Promise,overload:!1},{filter:v,Promise:m})).Promise,function(e,i,o){function a(){var o=n.filter;if(!o||o.apply(r,arguments)){if(r.off(t,a),n.handleError){var s=arguments[0];s?i(s):e(d.apply(null,arguments).slice(1))}else e(d.apply(null,arguments))}}o(function(){r.off(t,a)}),r._on(t,a,!1)},{timeout:n.timeout,overload:n.overload})};var x=C.prototype;Object.defineProperties(C,{defaultMaxListeners:{get:function(){return x._maxListeners},set:function(e){if("number"!=typeof e||e<0||Number.isNaN(e))throw TypeError("n must be a non-negative number");x._maxListeners=e},enumerable:!0},once:{value:function(e,t,n){return y((n=p(n,{Promise:Promise,timeout:0,overload:!1},{Promise:m})).Promise,function(n,r,i){if("function"==typeof e.addEventListener)return o=function(){n(d.apply(null,arguments))},i(function(){e.removeEventListener(t,o)}),void e.addEventListener(t,o,{once:!0});var o,a,s=function(){a&&e.removeListener("error",a),n(d.apply(null,arguments))};
6"error"!==t&&(a=function(n){e.removeListener(t,s),r(n)},e.once("error",a)),i(function(){a&&e.removeListener("error",a),e.removeListener(t,s)}),e.once(t,s)},{timeout:n.timeout,overload:n.overload})},writable:!0,configurable:!0}}),Object.defineProperties(x,{_maxListeners:{value:10,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),"function"==typeof e&&e.amd?e(function(){return C}):Au.exports=C}();var Ac=u(Au.exports);function Ad(e){return(Ad="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 Af(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function Ah(e){var t=function(e,t){if("object"!==Ad(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ad(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ad(t)?t:String(t)}function Ap(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ah(r.key),r)}}function Am(e,t,n){return t&&Ap(e.prototype,t),n&&Ap(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ag(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Av(e,t){return(Av=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ab(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Av(e,t)}function Ay(e,t){if(t&&("object"===Ad(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return Ag(e)}function AA(e){return(AA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Aw(e,t,n){return(t=Ah(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function AE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function AS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AE(Object(n),!0).forEach(function(t){Aw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ak={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},AM=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Af(this,e),this.init(t,n)}return Am(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Ak,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,AS(AS({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),AC=function(){function e(){Af(this,e),this.observers={}}return Am(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];
6this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function Ax(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.resolve=e,n.reject=t,n}function AR(e){return null==e?"":""+e}function AI(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function AT(e,t,n){var r=AI(e,t,Object);r.obj[r.k]=n}function AO(e,t){var n=AI(e,t),r=n.obj,i=n.k;if(r)return r[i]}function AP(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var AL={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function AN(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return AL[e]}):e}var AD="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,AB=[" ",",","?","!",";"];function Aj(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i||"string"==typeof i[r[o]]&&o+1<r.length)return;if(void 0===i[r[o]]){for(var a=2,s=r.slice(o,o+a).join(n),l=i[s];void 0===l&&r.length>o+a;)a++,l=i[s=r.slice(o,o+a).join(n)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var u=r.slice(o+a).join(n);return u?Aj(l,u,n):void 0}i=i[r[o]]}return i}}function AF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Az(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AF(Object(n),!0).forEach(function(t){Aw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var AU=function(e){Ab(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||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}}(),function(){var e,n=AA(r);return e=t?Reflect.construct(n,arguments,AA(this).constructor):n.apply(this,arguments),Ay(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Af(this,r),t=n.call(this),AD&&AC.call(Ag(t)),t.data=e||{},t.options=i,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return Am(r,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=AO(this.data,a);return s||!o||"string"!=typeof n?s:Aj(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[e,t];
6n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),AT(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=AO(this.data,a)||{};r?function e(t,n,r){for(var i in n)"__proto__"!==i&&"constructor"!==i&&(i in t?"string"==typeof t[i]||t[i]instanceof String||"string"==typeof n[i]||n[i]instanceof String?r&&(t[i]=n[i]):e(t[i],n[i],r):t[i]=n[i]);return t}(s,n,i):s=Az(Az({},s),n),AT(this.data,a,s),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?Az(Az({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(AC),Aq={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,i))}),t}};function AK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function AH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AK(Object(n),!0).forEach(function(t){Aw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var AV={},A$=function(e){Ab(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||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}}(),function(){var e,n=AA(r);return e=t?Reflect.construct(n,arguments,AA(this).constructor):n.apply(this,arguments),Ay(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Af(this,r),t=n.call(this),AD&&AC.call(Ag(t)),function(e,t,n){e.forEach(function(e){t[e]&&(n[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
6i18nFormat","utils"],e,Ag(t)),t.options=i,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=AM.create("translator"),t}return Am(r,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=AB.filter(function(e){return 0>t.indexOf(e)&&0>n.indexOf(e)});if(0===r.length)return!0;var i=new RegExp("(".concat(r.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}(e,n,r));if(o&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:i};var l=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(l[0])>-1)&&(i=l.shift()),e=l.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,t,n){var i=this;if("object"!==Ad(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===Ad(t)&&(t=AH({},t)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),l=s.key,u=s.namespaces,c=u[u.length-1],d=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(f){var h=t.nsSeparator||this.options.nsSeparator;return o?{res:"".concat(c).concat(h).concat(l),usedKey:l,exactUsedKey:l,usedLng:d,usedNS:c}:"".concat(c).concat(h).concat(l)}return o?{res:l,usedKey:l,exactUsedKey:l,usedLng:d,usedNS:c}:l}var p=this.resolve(e,t),m=p&&p.res,g=p&&p.usedKey||l,v=p&&p.exactUsedKey||l,b=Object.prototype.toString.apply(m),y=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,A=!this.i18nFormat||this.i18nFormat.handleAsObject;if(A&&m&&"string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(b)&&("string"!=typeof y||"[object Array]"!==b)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,m,AH(AH({},t),{},{ns:u})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return o?(p.res=w,p):w}if(a){var _="[object Array]"===b,E=_?[]:{},S=_?v:g;for(var k in m)if(Object.prototype.hasOwnProperty.call(m,k)){var M="".concat(S).concat(a).concat(k);E[k]=this.translate(M,AH(AH({},t),{joinArrays:!1,ns:u})),E[k]===M&&(E[k]=m[k])}m=E}}else if(A&&"string"==typeof y&&"[object Array]"===b)(m=m.join(y))&&(m=this.extendTranslation(m,e,t,n));else{var C=!1,x=!1,R=void 0!==t.count&&"string"!=typeof t.count,I=r.hasDefaultValue(t),T=R?this.pluralResolver.getSuffix(d,t.count,t):"",O=t["defaultValue".concat(T)]||t.defaultValue;!this.isValidLookup(m)&&I&&(C=!0,m=O),this.isValidLookup(m)||(x=!0,m=l);var P=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:m,L=I&&O!==m&&this.options.updateMissing;if(x||C||L){if(this.logger.log(L?"updateKey":"missingKey",d,c,l,L?O:m),a){var N=this.resolve(l,AH(AH({},t),{},{keySeparator:!1}));N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var D=[],B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&B&&B[0])for(var j=0;j<B.length;j++)D.push(B[j]);else"all"===this.options.saveMissingTo?D=this.languageUtils.toResolveHierarchy(t.lng||this.language):D.push(t.lng||this.language);var F=function(e,n,r){var o=I&&r!==m?r:P;i.options.missingKeyHandler?i.options.missingKeyHandler(e,c,n,o,L,t):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,c,n,o,L,t),i.emit("missingKey",e,c,n,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&R?D.forEach(function(e){i.pluralResolver.getSuffixes(e,t).forEach(function(n){F([e],l+n,t["defaultValue".concat(n)]||O)})}):F(D,l,O))}m=this.extendTranslation(m,e,t,p,n),x&&m===l&&this.options.appendNamespaceToMissingKey&&(m="".concat(c,":").concat(l)),(x||C)&&this.options.parseMissingKeyHandler&&(m="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(c,":").concat(l):l,C?m:void 0):this.options.parseMissingKeyHandler(m))}return o?(p.res=m,p):m}},{key:"extendTranslation",value:function(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,AH(AH({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(AH(AH({},n),{interpolation:AH(AH({},this.options.interpolation),n.interpolation)}));var a,s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=AH(AH({},this.options.interpolation.defaultVariables),u)),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),s){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=Array(e),a=0;a<e;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):o.translate.apply(o,r.concat([t]))}
vendor: 9,647 bytes, line 6
6,n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,f="string"==typeof d?[d]:d;return null!=e&&f&&f.length&&!1!==n.applyPostProcessor&&(e=Aq.handle(f,e,t,this.options&&this.options.postProcessPassResolved?AH({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,i,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),u=l.key;n=u;var c=l.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,f=d&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach(function(e){a.isValidLookup(t)||(o=e,!AV["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(AV["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(function(n){if(!a.isValidLookup(t)){i=n;var o,l=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(l,u,n,e,s);else{d&&(c=a.pluralResolver.getSuffix(n,s.count,s));var c,p="".concat(a.options.pluralSeparator,"zero");if(d&&(l.push(u+c),f&&l.push(u+p)),h){var m="".concat(u).concat(a.options.contextSeparator).concat(s.context);l.push(m),d&&(l.push(m+c),f&&l.push(m+p))}}for(;o=l.pop();)a.isValidLookup(t)||(r=o,t=a.getResource(n,e,o,s))}}))})}}),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}]),r}(AC);function AW(e){return e.charAt(0).toUpperCase()+e.slice(1)}var AY=function(){function e(t){Af(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=AM.create("languageUtils")}return Am(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=AW(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=AW(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=AW(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find(function(e){return e===r?e:0>e.indexOf("-")&&0>r.indexOf("-")?void 0:0===e.indexOf(r)?e:void 0})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach(function(e){0>i.indexOf(e)&&o(n.formatLanguageCode(e))}),i}}]),e}(),AG=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],AQ={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},AZ=["v1","v2","v3"],AJ={zero:0,one:1,two:2,few:3,many:4,other:5},AX=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Af(this,e),this.languageUtils=t,this.options=r,this.logger=AM.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},AG.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:AQ[e.fc]}})}),n)}return Am(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};
6return this.getSuffixes(e,n).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(function(e,t){return AJ[e]-AJ[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):r.numbers.map(function(r){return t.getSuffix(e,r,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!AZ.includes(this.options.compatibilityJSON)}}]),e}();function A0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A0(Object(n),!0).forEach(function(t){Aw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function A2(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=void 0!==(r=AO(e,n))?r:AO(t,n);return!a&&o&&"string"==typeof n&&void 0===(a=Aj(e,n,i))&&(a=Aj(t,n,i)),a}var A3=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Af(this,e),this.logger=AM.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return Am(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:AN,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?AP(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?AP(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?AP(t.nestingPrefix):t.nestingPrefixEscaped||AP("$t("),this.nestingSuffix=t.nestingSuffix?AP(t.nestingSuffix):t.nestingSuffixEscaped||AP(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var i,o,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(0>e.indexOf(s.formatSeparator)){var i=A2(t,l,e,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(i,void 0,n,A1(A1(A1({},r),t),{},{interpolationkey:e})):i}var o=e.split(s.formatSeparator),a=o.shift().trim(),u=o.join(s.formatSeparator).trim();return s.format(A2(t,l,a,s.options.keySeparator,s.options.ignoreJSONStructure),u,n,A1(A1(A1({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}
6].forEach(function(t){for(a=0;i=t.regex.exec(e);){var n=i[1].trim();if(void 0===(o=c(n))){if("function"==typeof d){var l=d(e,i,r);o="string"==typeof l?l:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(f){o=i[0];continue}s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),o=""}}else"string"==typeof o||s.useRawValueToEscape||(o=AR(o));var u=t.safeValue(o);if(e=e.replace(i[0],u),f?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,r,i,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){var n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0];var a=(o=this.interpolate(o,i)).match(/'/g),s=o.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i=A1(A1({},t),i))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete i.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){var l=[];(i=(i=A1({},a)).replace&&"string"!=typeof i.replace?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;var u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=c.shift(),l=c,u=!0}if((r=t(s.call(this,n[1].trim(),i),i))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=AR(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=l.reduce(function(e,t){return o.format(e,t,a.lng,A1(A1({},a),{},{interpolationkey:n[1].trim()}))},r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function A6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A4(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A6(Object(n),!0).forEach(function(t){Aw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function A8(e){var t={};return function(n,r,i){var o=r+JSON.stringify(i),a=t[o];return a||(a=e(r,i),t[o]=a),a(n)}}var A5=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Af(this,e),this.logger=AM.create("formatter"),this.options=t,this.formats={number:A8(function(e,t){var n=new Intl.NumberFormat(e,A4({},t));return function(e){return n.format(e)}}),currency:A8(function(e,t){var n=new Intl.NumberFormat(e,A4(A4({},t),{},{style:"currency"}));return function(e){return n.format(e)}}),datetime:A8(function(e,t){var n=new Intl.DateTimeFormat(e,A4({},t));return function(e){return n.format(e)}}),relativetime:A8(function(e,t){var n=new Intl.RelativeTimeFormat(e,A4({},t));return function(e){return n.format(e,t.range||"day")}}),list:A8(function(e,t){var n=new Intl.ListFormat(e,A4({},t));return function(e){return n.format(e)}})},this.init(t)}return Am(e,[{key:"init",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=A8(t)}},{key:"format",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(function(e,t){var o=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);"currency"===t&&0>i.indexOf(":")?n.currency||(n.currency=i.trim()):"relativetime"===t&&0>i.indexOf(":")?n.range||(n.range=i.trim()):i.split(";").forEach(function(e){if(e){var t,r=function(e){if(Array.isArray(e))return e}(t=e.split(":"))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return A_(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A_(e,void 0):void 0}}
6(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=r[0],o=r.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[i.trim()]||(n[i.trim()]=o),"false"===o&&(n[i.trim()]=!1),"true"===o&&(n[i.trim()]=!0),isNaN(o)||(n[i.trim()]=parseInt(o,10))}})}return{formatName:t,formatOptions:n}}(t),a=o.formatName,s=o.formatOptions;if(r.formats[a]){var l=e;try{var u=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},c=u.locale||u.lng||i.locale||i.lng||n;l=r.formats[a](e,c,A4(A4(A4({},s),i),u))}catch(e){r.logger.warn(e)}return l}return r.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}();function A7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A7(Object(n),!0).forEach(function(t){Aw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var we=function(e){Ab(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||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}}(),function(){var e,n=AA(r);return e=t?Reflect.construct(n,arguments,AA(this).constructor):n.apply(this,arguments),Ay(this,e)});function r(e,t,i){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Af(this,r),o=n.call(this),AD&&AC.call(Ag(o)),o.backend=e,o.store=t,o.services=i,o.languageUtils=i.languageUtils,o.options=a,o.logger=AM.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=a.maxParallelReads||10,o.readingCalls=0,o.maxRetries=a.maxRetries>=0?a.maxRetries:5,o.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,a.backend,a),o}return Am(r,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o={},a={},s={},l={};return e.forEach(function(e){var r=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?void 0===a[s]&&(a[s]=!0):(i.state[s]=1,r=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===l[t]&&(l[t]=!0)))}),r||(s[e]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(n){var r,s,l,u;(l=(s=AI(n.loaded,[i],Object)).obj)[u=s.k]=l[u]||[],r||l[u].push(o),void 0!==n.pending[e]&&(delete n.pe
6nding[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:o,callback:a});else{this.readingCalls++;var s=function(s,l){if(r.readingCalls--,r.waitingReads.length>0){var u=r.waitingReads.shift();r.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}s&&l&&i<r.maxRetries?setTimeout(function(){r.read.call(r,e,t,n,i+1,2*o,a)},o):a(s,l)},l=this.backend[n].bind(this.backend);if(2!==l.length)return l(e,t,s);try{var u=l(e,t);u&&"function"==typeof u.then?u.then(function(e){return s(null,e)}).catch(s):s(null,u)}catch(e){s(e)}}}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a),t.loaded(e,r,a)})}},{key:"saveMissing",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){var s,l=A9(A9({},o),{},{isUpdate:i}),u=this.backend.create.bind(this.backend);if(u.length<6)try{(s=5===u.length?u(e,t,n,r,l):u(e,t,n,r))&&"function"==typeof s.then?s.then(function(e){return a(null,e)}).catch(a):a(null,s)}catch(e){a(e)}else u(e,t,n,r,a,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}]),r}(AC);function wt(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===Ad(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Ad(e[2])||"object"===Ad(e[3])){var n=e[3]||e[2];
6Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function wn(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wr(Object(n),!0).forEach(function(t){Aw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wo(){}var wa=function(e){Ab(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||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}}(),function(){var e,n=AA(r);return e=t?Reflect.construct(n,arguments,AA(this).constructor):n.apply(this,arguments),Ay(this,e)});function r(){var e,t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Af(this,r),e=n.call(this),AD&&AC.call(Ag(e)),e.options=wn(i),e.services={},e.logger=AM,e.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(t=Ag(e))).forEach(function(e){"function"==typeof t[e]&&(t[e]=t[e].bind(t))}),o&&!e.isInitialized&&!i.isClone){if(!e.options.initImmediate)return e.init(i,o),Ay(e,Ag(e));setTimeout(function(){e.init(i,o)},0)}return e}return Am(r,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var r=wt();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options=wi(wi(wi({},r),this.options),wn(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=wi(wi({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?AM.init(i(this.modules.logger),this.options):AM.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=A5);var o,a=new AY(this.options);this.store=new AU(this.options.resources,this.options);var s=this.services;s.logger=AM,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new AX(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!o||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(s.formatter=i(o),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new A3(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new we(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))}),this.modules.languageDetector&&(s.languageDetector=i(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=i(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new A$(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,n||(n=wo),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var u=Ax(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wo,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var i=[],o=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>i.indexOf(e)&&i.push(e)})};r?o(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return o(e)}
6),this.options.preload&&this.options.preload.forEach(function(e){return o(e)}),this.services.backendConnector.load(i,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)})}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=Ax();return e||(e=this.languages),t||(t=this.options.ns),n||(n=wo),this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Aq.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=Ax();this.emit("languageChanging",e);var i=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},o=function(o){e||o||!n.services.languageDetector||(o=[]);var a="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);a&&(n.language||i(a),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,function(e){a?(i(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,i=function e(t,i){if("object"!==Ad(i)){for(var o=arguments.length,a=Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];l=r.options.overloadTranslationOptionHandler([t,i].concat(a))}else l=wi({},i);l.lng=l.lng||e.lng,l.lngs=l.lngs||e.lngs,l.ns=l.ns||e.ns,l.keyPrefix=l.keyPrefix||n||e.keyPrefix;var l,u,c=r.options.keySeparator||".";return u=l.keyPrefix&&Array.isArray(t)?t.map(function(e){return"".concat(l.keyPrefix).concat(c).concat(e)}):l.keyPrefix?"".concat(l.keyPrefix).concat(c).concat(t):t,r.t(u,l)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
6if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=n.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(r,e)||i&&!a(o,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=Ax();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>n.options.ns.indexOf(e)&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=Ax();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter(function(e){return 0>r.indexOf(e)});return i.length?(this.options.preload=r.concat(i),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new AY(wt())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wo,i=wi(wi(wi({},this.options),t),{isClone:!0}),o=new r(i);return void 0===t.debug&&void 0===t.prefix||(o.logger=o.logger.clone(t)),["store","services","language"].forEach(function(t){o[t]=e[t]}),o.services=wi({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new A$(o.services,o.options),o.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))}),o.init(i,n),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),r}(AC);Aw(wa,"createInstance",function(){return new wa(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)});var ws=wa.createInstance();ws.createInstance=wa.createInstance;var wl=ws.createInstance;ws.dir,ws.init,ws.loadResources,ws.reloadResources,ws.use,ws.changeLanguage,ws.getFixedT,ws.t,ws.exists,ws.setDefaultNamespace,ws.hasLoadedNamespace,ws.loadNamespaces,ws.loadLanguages;var wu,wc="0.20.5";(wR=wu||(wu={})).INPAGE="metamask-inpage",wR.CONTENT_SCRIPT="metamask-contentscript",wR.PROVIDER="metamask-provider";let wd="direct",wf="https://metamask.app.link/connect",wh="metamask://connect",wp={NAME:"MetaMask",RDNS:"io.metamask"},wm=/(?:^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}$)|(?:^0{8}-0{4}-0{4}-0{4}-0{12}$)/u;e.PROVIDER_UPDATE_TYPE=void 0,(wD=e.PROVIDER_UPDATE_TYPE||(e.PROVIDER_UPDATE_TYPE={})).TERMINATE="terminate",wD.EXTENSION="extension",wD.INITIALIZED="initialized";let wg="undefined"!=typeof window&&window.localStorage;function wv(t){var n,r;return hP(this,void 0,void 0,function*(){yQ("[MetaMaskSDK: connectWithExtensionProvider()] ",t),t.sdkProvider=t.activeProvider,t.activeProvider=window.extension,window.ethereum=window.extension;try{let e=yield null===(n=window.extension)||void 0===n?void 0:n.request({method:"eth_requestAccounts"});yQ(`[MetaMaskSDK: connectWithExtensionProvider()] accounts=${e}`)}catch(e){return void console.warn("[MetaMaskSDK: connectWithExtensionProvider()] can't request accounts error",e)}localStorage.setItem(An,"extension"),t.extensionActive=!0,t.emit(e.EventType.PROVIDER_UPDATE,e.PRO
6VIDER_UPDATE_TYPE.EXTENSION),t.options.enableAnalytics&&(null===(r=t.analytics)||void 0===r||r.send({event:vf.SDK_USE_EXTENSION}))})}class wb{constructor({shouldSetOnWindow:e,connectionStream:t,shouldSendMetadata:n=!1,shouldShimWeb3:r}){var i;let o=new Proxy(new Al({connectionStream:t,shouldSendMetadata:n,shouldSetOnWindow:e,shouldShimWeb3:r,autoRequestAccounts:!1}),{deleteProperty:()=>!0});this.provider=o,e&&"undefined"!=typeof window&&(i=this.provider,window.ethereum=i,window.dispatchEvent(new Event("ethereum#initialized"))),r&&"undefined"!=typeof window&&function(e,t=console){let n=!1,r=!1;if(!window.web3){let i="__isMetaMaskShim__",o={currentProvider:e};Object.defineProperty(o,i,{value:!0,enumerable:!0,configurable:!1,writable:!1}),Object.defineProperty(window,"web3",{value:o=new Proxy(o,{get:(o,a,...s)=>("currentProvider"!==a||n?"currentProvider"===a||a===i||r||(r=!0,t.error("MetaMask no longer injects web3. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3"),e.request({method:"metamask_logWeb3ShimUsage"}).catch(e=>{t.debug("MetaMask: Failed to log web3 shim usage.",e)})):(n=!0,t.warn("You are accessing the MetaMask window.web3.currentProvider shim. This property is deprecated; use window.ethereum instead. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3")),Reflect.get(o,a,...s)),set:(...e)=>(t.warn("You are accessing the MetaMask window.web3 shim. This object is deprecated; use window.ethereum instead. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3"),Reflect.set(...e))}),enumerable:!1,configurable:!0,writable:!0})}}(this.provider),this.provider.on("_initialized",()=>{yQ("[Ethereum: constructor()] provider initialized",{chainId:this.provider.getChainId(),isConnected:this.provider.isConnected(),isMetaNask:this.provider.isMetaMask,selectedAddress:this.provider.getSelectedAddress(),networkVersion:this.provider.getNetworkVersion()})})}static init(e){var t;return yQ("[Ethereum: init()] Initializing Ethereum service"),this.instance=new wb(e),null===(t=this.instance)||void 0===t?void 0:t.provider}static destroy(){wb.instance=void 0}static getInstance(){var e;if(!(null===(e=this.instance)||void 0===e?void 0:e.provider))throw Error("Ethereum instance not intiialized - call Ethereum.factory first.");return this.instance}static getProvider(){var e;if(!(null===(e=this.instance)||void 0===e?void 0:e.provider))throw Error("Ethereum instance not intiialized - call Ethereum.factory first.");return this.instance.provider}}class wy extends ni.Duplex{constructor({name:t,remote:n,platformManager:r}){super({objectMode:!0}),this.state={_name:null,remote:null,platformManager:null},this.state._name=t,this.state.remote=n,this.state.platformManager=r,this._onMessage=this._onMessage.bind(this),this.state.remote.on(e.EventType.MESSAGE,this._onMessage)}_write(e,t,n){return hP(this,void 0,void 0,function*(){return function(e,t,n,r){var i,o,a,s,l,u,c,d,f,h,p,m,g,v;return hP(this,void 0,void 0,function*(){var n;let b;let y=null===(i=e.state.remote)||void 0===i?void 0:i.isReady(),A=null===(o=e.state.remote)||void 0===o?void 0:o.isConnected(),w=null===(a=e.state.remote)||void 0===a?void 0:a.isPaused(),_=wb.getProvider(),E=null===(s=e.state.remote)||void 0===s?void 0:s.getChannelId(),S=null===(l=e.state.remote)||void 0===l?void 0:l.isAuthorized(),{method:k,data:C}=(M.isBuffer(t)?(b=t.toJSON())._isBuffer=!0:b=t,{method:null===(n=null==b?void 0:b.data)||void 0===n?void 0:n.method,data:b});if(yQ(`[RCPMS: write()] method='${k}' isRemoteReady=${y} channelId=${E} isSocketConnected=${A} isRemotePaused=${w} providerConnected=${_.isConnected()}`,t),!E)return k!==y5.METAMASK_GETPROVIDERSTATE&&yQ("[RCPMS: write()] Invalid channel id -- undefined"),r();yQ(`[RCPMS: write()] remote.isPaused()=${null===(u=e.state.remote)||void 0===u?void 0:u.isPaused()} authorized=${S} ready=${y} socketConnected=${A}`,t);try{if(null===(c=e.state.remote)||void 0===c||c.sendMessage(null==C?void 0:C.data).then(()=>{yQ(`[RCPMS: _write()] ${k} sent successfully`)}).catch(e=>{yQ("[RCPMS: _write()] error sending message",e)}),!(null===(d=e.state.platformManager)||void 0===d?void 0:d.isSecure()))return yQ(`[RCPMS: _write()] unsecure platform for method ${k} -- return callback`),r();if(!A&&!y)return yQ(`[RCPMS: _write()] invalid connection status targetMethod=${k} socketConnected=${A} ready=${y} providerConnected=${_.isConnected()}`),r();if(!A&&y)return console.warn("[RCPMS: _write()] invalid socket status -- shouldn't happen"),r();let t=null!==(p=null===(h=null===(f=e.state.remote)||void 0===f?void 0:f.getKeyInfo())||void 0===h?void 0:h.ecies.public)&&void 0!==p?p:"",n=encodeURI(`channelId=${E}&pubkey=${t}&comm=socket&t=d&v=2`);y7[k]?(yQ(`[RCPMS: _write()] redirect link for '${k}' socketConnected=${A} connect?${n}`),null===(m=e.state.platformManager)||void 0===m||m.openDeeplink(`${wf}?${n}`,`${wh}?${n}`,"_self")):(null===(g=e.state.remote)||void 0===g?void 0:g.isPau
6sed())?(yQ(`[RCPMS: _write()] MM is PAUSED! deeplink with connect! targetMethod=${k}`),null===(v=e.state.platformManager)||void 0===v||v.openDeeplink(`${wf}?redirect=true&${n}`,`${wh}?redirect=true&${n}`,"_self")):yQ(`[RCPMS: _write()] method ${k} doesn't need redirect.`)}catch(e){return yQ("[RCPMS: _write()] error sending message",e),r(Error("RemoteCommunicationPostMessageStream - disconnected"))}return r()})}(this,e,0,n)})}_read(){}_onMessage(e){return function(e,t){try{if(yQ("[RCPMS: onMessage()] message",t),!t||"object"!=typeof t||"object"!=typeof(null==t?void 0:t.data))return;if(!(null==t?void 0:t.name))return void yQ(`[RCPMS: onMessage()] ignore message without name message=${t}`);if((null==t?void 0:t.name)!==wu.PROVIDER)return void yQ(`[RCPMS: onMessage()] ignore message with wrong name message=${t}`);if(M.isBuffer(t)){let n=M.from(t);e.push(n)}else e.push(t)}catch(e){yQ(`[RCPMS: onMessage()] ignore message error err=${e}`)}}(this,e)}start(){}}var wA={exports:{}};wI=wA.exports,wT="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==l&&l,wP=wO=function(){function e(){this.fetch=!1,this.DOMException=wT.DOMException}return e.prototype=wT,new e}(),function(e){var t=void 0!==wP&&wP||"undefined"!=typeof self&&self||void 0!==t&&t,n="URLSearchParams"in t,r="Symbol"in t&&"iterator"in Symbol,i="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in t,a="ArrayBuffer"in t;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function h(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function m(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(m)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=p(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(A)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=u(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[u(e)]},f.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},f.prototype.set=function(e,t){this.map[u(e)]=c(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),d(e)},f.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),d(e)},f.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),d(e)},r&&(f.prototype[Symbol.iterator]=f.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(e,t){if(!(this instanceof y))throw TypeError('Please use the "new" operator, this DOM object c
6onstructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof y){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),b.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function A(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function w(e,t){if(!(this instanceof w))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},v.call(y.prototype),v.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var _=[301,302,303,307,308];w.redirect=function(e,t){if(-1===_.indexOf(t))throw RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function E(n,r){return new Promise(function(o,s){var l=new y(n,r);if(l.signal&&l.signal.aborted)return s(new e.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function d(){u.abort()}u.onload=function(){var e,t,n={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t)};n.url="responseURL"in u?u.responseURL:n.headers.get("X-Request-URL");var r="response"in u?u.response:u.responseText;setTimeout(function(){o(new w(r,n))},0)},u.onerror=function(){setTimeout(function(){s(TypeError("Network request failed"))},0)},u.ontimeout=function(){setTimeout(function(){s(TypeError("Network request failed"))},0)},u.onabort=function(){setTimeout(function(){s(new e.DOMException("Aborted","AbortError"))},0)},u.open(l.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(l.url),!0),"include"===l.credentials?u.withCredentials=!0:"omit"===l.credentials&&(u.withCredentials=!1),"responseType"in u&&(i?u.responseType="blob":a&&l.headers.get("Content-Type")&&-1!==l.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!r||"object"!=typeof r.headers||r.headers instanceof f?l.headers.forEach(function(e,t){u.setRequestHeader(t,e)}):Object.getOwnPropertyNames(r.headers).forEach(function(e){u.setRequestHeader(e,c(r.headers[e]))}),l.signal&&(l.signal.addEventListener("abort",d),u.onreadystatechange=function(){4===u.readyState&&l.signal.removeEventListener("abort",d)}),u.send(void 0===l._bodyInit?null:l._bodyInit)})}E.polyfill=!0,t.fetch||(t.fetch=E,t.Headers=f,t.Request=y,t.Response=w),e.Headers=f,e.Request=y,e.Response=w,e.fetch=E}({}),wO.fetch.ponyfill=!0,delete wO.fetch.polyfill,(wI=(wL=wT.fetch?wT:wO).fetch).default=wL.fetch,w
6I.fetch=wL.fetch,wI.Headers=wL.Headers,wI.Request=wL.Request,wI.Response=wL.Response,wA.exports=wI;var ww=u(wA.exports);let w_=1,wE=e=>new Promise(t=>{setTimeout(()=>{t(!0)},e)}),wS=({checkInstallationOnAllCalls:t=!1,communicationLayerPreference:n,injectProvider:r,shouldShimWeb3:i,platformManager:o,installer:a,sdk:s,remoteConnection:l,debug:u})=>hP(void 0,void 0,void 0,function*(){var c,d;let f=(({name:e,remoteConnection:t})=>{if(!t||!(null==t?void 0:t.getConnector()))throw Error("Missing remote connection parameter");return new wy({name:e,remote:null==t?void 0:t.getConnector(),platformManager:null==t?void 0:t.getPlatformManager()})})({name:wu.INPAGE,target:wu.CONTENT_SCRIPT,platformManager:o,communicationLayerPreference:n,remoteConnection:l}),h=o.getPlatformType(),p=s.options.dappMetadata,m=`Sdk/Javascript SdkVersion/${wc} Platform/${h} dApp/${null!==(c=p.url)&&void 0!==c?c:p.name} dAppTitle/${p.name}`,g=null,v=null,b=null===(d=s.options.storage)||void 0===d?void 0:d.storageManager;if(b){try{let e=yield b.getCachedAccounts();e.length>0&&(g=e[0])}catch(e){console.error(`[initializeMobileProvider] failed to get cached addresses: ${e}`)}try{let e=yield b.getCachedChainId();e&&(v=e)}catch(e){console.error(`[initializeMobileProvider] failed to parse cached chainId: ${e}`)}}yQ(`[initializeMobileProvider] cachedAccountAddress: ${g}, cachedChainId: ${v}`);let y=!(!r||h===e.PlatformType.NonBrowser||h===e.PlatformType.ReactNative),A=wb.init({shouldSetOnWindow:y,connectionStream:f,shouldShimWeb3:i}),w=!1,_=e=>{w=e},E=()=>w,S=(n,r,i,u)=>hP(void 0,void 0,void 0,function*(){var c,d,f,h,p,y,A,S,k;if(w){null==l||l.showActiveModal();let e=E();for(;e;)yield wE(1e3),e=E();return yQ("[initializeMobileProvider: sendRequest()] initial method completed -- prevent installation and call provider"),i(...r)}let M=o.isMetaMaskInstalled(),C=null==l?void 0:l.isConnected(),x=wb.getProvider(),R=null,I=null;if(R=null!==(c=x.getSelectedAddress())&&void 0!==c?c:g,I=x.getChainId()||v,R&&b&&R!==g&&b.persistAccounts([R]).catch(e=>{console.error(`[initializeMobileProvider] failed to persist account: ${e}`)}),I&&(v=I,b&&b.persistChainId(I).catch(e=>{console.error(`[initializeMobileProvider] failed to persist chainId: ${e}`)})),yQ("[initializeMobileProvider: sendRequest()]",{selectedAddress:R,chainId:I}),u&&yQ(`[initializeMobileProvider: sendRequest()] method=${n} ongoing=${w} selectedAddress=${R} isInstalled=${M} checkInstallationOnAllCalls=${t} socketConnected=${C}`),R&&n.toLowerCase()===y5.ETH_ACCOUNTS.toLowerCase())return[R];if(I&&n.toLowerCase()===y5.ETH_CHAINID.toLowerCase())return I;let T=[y5.ETH_REQUESTACCOUNTS,y5.WALLET_REQUESTPERMISSIONS,y5.METAMASK_CONNECTSIGN,y5.METAMASK_CONNECTWITH],O=!y7[n],P=null===(d=s.options.readonlyRPCMap)||void 0===d?void 0:d[I];if(P&&O)try{let e=null===(f=null==r?void 0:r[0])||void 0===f?void 0:f.params,t=yield(({rpcEndpoint:e,method:t,sdkInfo:n,params:r})=>hP(void 0,void 0,void 0,function*(){let i;let o=JSON.stringify({jsonrpc:"2.0",method:t,params:r,id:w_+=1}),a={Accept:"application/json","Content-Type":"application/json"};e.includes("infura")&&(a["Metamask-Sdk-Info"]=n);try{i=yield ww(e,{method:"POST",headers:a,body:o})}catch(e){throw e instanceof Error?Error(`Failed to fetch from RPC: ${e.message}`):Error(`Failed to fetch from RPC: ${e}`)}if(!i.ok)throw Error(`Server responded with a status of ${i.status}`);return(yield i.json()).result}))({rpcEndpoint:P,sdkInfo:m,method:n,params:e||[]});return u&&yQ(`initializeProvider::ReadOnlyRPCResponse ${t}`),t}catch(e){console.warn(`[initializeMobileProvider: sendRequest()] method=${n} readOnlyRPCRequest failed:`,e)}if((!M||M&&!C)&&n!==y5.METAMASK_GETPROVIDERSTATE){let u=(null===(h=null==r?void 0:r[0])||void 0===h?void 0:h.params)||[];if(-1!==T.indexOf(n)||t){_(!0);try{yield a.start({wait:!1})}
6catch(t){if(_(!1),e.PROVIDER_UPDATE_TYPE.EXTENSION===t){if(yQ(`[initializeMobileProvider: sendRequest()] extension provider detect: re-create ${n} on the active provider`),n.toLowerCase()===y5.METAMASK_CONNECTSIGN.toLowerCase()){let e=yield null===(p=s.getProvider())||void 0===p?void 0:p.request({method:y5.ETH_REQUESTACCOUNTS,params:[]});if(!e.length)throw Error("SDK state invalid -- undefined accounts");return yield null===(y=s.getProvider())||void 0===y?void 0:y.request({method:y5.PERSONAL_SIGN,params:[u[0],e[0]]})}if(n.toLowerCase()===y5.METAMASK_CONNECTWITH.toLowerCase()){let[e]=u;return yield(({method:e,sdk:t,params:n})=>hP(void 0,void 0,void 0,function*(){var r,i,o,a;if(!t.isExtensionActive())throw Error("SDK state invalid -- extension is not active");yQ("[MetaMaskProvider: extensionConnectWithOverwrite()] Overwriting request method",e,n);let s=yield null===(r=t.getProvider())||void 0===r?void 0:r.request({method:y5.ETH_REQUESTACCOUNTS,params:[]});if(!s.length)throw Error("SDK state invalid -- undefined accounts");if((null==e?void 0:e.toLowerCase())===y5.PERSONAL_SIGN.toLowerCase()){let r={method:e,params:[n[0],s[0]]};return yield null===(i=t.getProvider())||void 0===i?void 0:i.request(r)}if((null==e?void 0:e.toLowerCase())===y5.ETH_SENDTRANSACTION.toLowerCase()){let r={method:e,params:[Object.assign(Object.assign({},n[0]),{from:s[0]})]};return yield null===(o=t.getProvider())||void 0===o?void 0:o.request(r)}return Ae.includes(e.toLowerCase())?(console.warn(`MetaMaskSDK connectWith method=${e} -- not handled by the extension -- call separately`),s):yield null===(a=t.getProvider())||void 0===a?void 0:a.request({method:e,params:n})}))({method:e.method,sdk:s,params:e.params})}return yQ(`[initializeMobileProvider: sendRequest()] sending '${n}' on active provider`,u),yield null===(A=s.getProvider())||void 0===A?void 0:A.request({method:n,params:u})}throw yQ(`[initializeMobileProvider: sendRequest()] failed to start installer: ${t}`),t}let t=i(...r);try{yield new Promise((t,n)=>{null==l||l.getConnector().once(e.EventType.AUTHORIZED,()=>{t(!0)}),s.once(e.EventType.PROVIDER_UPDATE,t=>{yQ(`[initializeMobileProvider: sendRequest()] PROVIDER_UPDATE --- remote provider request interupted type=${t}`),t===e.PROVIDER_UPDATE_TYPE.EXTENSION?n(e.EventType.PROVIDER_UPDATE):n(Error("Connection Terminated"))})})}catch(t){if(_(!1),t===e.EventType.PROVIDER_UPDATE)return yield null===(S=s.getProvider())||void 0===S?void 0:S.request({method:n,params:u});throw t}return _(!1),t}if(o.isSecure()&&y7[n])return i(...r);if(s.isExtensionActive())return yQ(`[initializeMobileProvider: sendRequest()] EXTENSION active - redirect request '${n}' to it`,r,u),yield null===(k=s.getProvider())||void 0===k?void 0:k.request({method:n,params:u});throw yQ(`[initializeMobileProvider: sendRequest()] method=${n} --- skip --- not connected/installed`),Error("MetaMask is not connected/installed, please call eth_requestAccounts to connect first.")}let L=yield i(...r);return yQ(`[initializeMobileProvider: sendRequest()] method=${n} rpcResponse: ${L}`),L}),{request:k}=A;A.request=(...e)=>hP(void 0,void 0,void 0,function*(){return S(null==e?void 0:e[0].method,e,k,u)});let{send:M}=A;return A.send=(...e)=>hP(void 0,void 0,void 0,function*(){return S(null==e?void 0:e[0],e,M,u)}),yQ("[initializeMobileProvider: sendRequest()] metamaskStream.start()"),f.start(),A});class wk{constructor({serverUrl:e,enabled:t,originatorInfo:n}){wB.set(this,hb),wj.set(this,void 0),wF.set(this,void 0),hN(this,wB,e,"f"),hN(this,wF,n,"f"),hN(this,wj,null==t||t,"f")}send({event:e,params:t}){if(!hL(this,wj,"f"))return;let n={id:"sdk",event:e,sdkVersion:wc,originationInfo:hL(this,wF,"f"),params:t};yQ(`[Analytics: send()] event: ${e}`,n),fU(n,hL(this,wB,"f")).catch(e=>{yQ(`[Analytics: send()] error: ${e}`)})}}wB=new WeakMap,wj=new WeakMap,wF=new WeakMap;let wM=()=>{let e;if("undefined"==typeof document)return;let t=document.getElementsByTagName("link");for(let n=0;n<t.length;n++)"icon"!==t[n].getAttribute("rel")&&"shortcut icon"!==t[n].getAttribute("rel")||(e=t[n].getAttribute("href"));return e},wC=({provider:e,sdkInstance:t})=>{if("state"in e)throw Error("INVALID EXTENSION PROVIDER");return new Proxy(e,{get:(n,r)=>"request"===r?function(r){var i,o,a;return hP(this,void 0,void 0,function*(){let s;yQ("[wrapExtensionProvider()] Overwriting request method",r);let{method:l,params:u}=r,c=y9.includes(l.toLowerCase());if(c&&(null===(i=t.analytics)||void 0===i||i.send({event:vf.SDK_RPC_REQUEST,params:{method:l,from:"extension"}})),l===y5.METAMASK_BATCH&&Array.isArray(u)){for(let t of u)yield null==e?void 0:e.request({method:t.method,params:t.params});let i=yield n.request(r);return c&&(null===(o=t.analytics)||void 0===o||o.send({event:vf.SDK_RPC_REQUEST_DONE,params:{method:l,from:"extension"}})),i}try{return s=yield n.request(r)}catch(e){}finally{c&&(null===(a=t.analytics)||void 0===a||a.send({event:vf.SDK_RPC_REQUEST_DONE,params:{method:l,from:"extension"}}))}return s})}:"getChainId"===r?function(){return e.chainId}:"getNetworkVersion"===r?function(){return e.networkVersion}:"getSelectedAddress"===r?function(){return e.selectedAddress}:"isConnected"===r?function(){return e._state.isConnected}:n[r]})};(wN=wz||(wz={})).Announce="eip6963:announceProvider",wN.Request="eip6963:requestProvider";var wx={exports:{}};wx.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
6),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,(function(t){return e[t]}).bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){t.__esModule=!0,t.default=void 0;var r=n(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(n),a=Math.max(i,o),s=0,l=e.map([t,n],function(t){var n=a-e.getVersionPrecision(t),r=t+Array(n+1).join(".0");return e.map(r.split("."),function(e){return Array(20-e.length).join("0")+e}).reverse()});for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]<l[1][a])return -1}},e.map=function(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r},e.find=function(e,t){var n,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var i=e[n];if(t(i,n))return i}},e.assign=function(e){for(var t,n,r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(Object.assign)return Object.assign.apply(Object,[e].concat(i));for(t=0,n=i.length;t<n;t+=1)(function(){var n=i[t];"object"==typeof n&&null!==n&&Object.keys(n).forEach(function(t){e[t]=n[t]})})();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,n){t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(91))&&r.__esModule?r:{default:r},o=n(18),a=function(){function e(){}return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e,[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}]),e}();t.default=a,e.exports=t.default},91:function(e,t,n){t.__esModule=!0,t.default=void 0;var r=l(n(92)),i=l(n(93)),o=l(n(94)),a=l(n(95)),s=l(n(17));
vendor: 18,906 bytes, line 6
6function l(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(r.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(i.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(o.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,n={},r=0,i={},o=0;if(Object.keys(e).forEach(function(t){var a=e[t];"string"==typeof a?(i[t]=a,o+=1):"object"==typeof a&&(n[t]=a,r+=1)}),r>0){var a=Object.keys(n),l=s.default.find(a,function(e){return t.isOS(e)});if(l){var u=this.satisfies(n[l]);if(void 0!==u)return u}var c=s.default.find(a,function(e){return t.isPlatform(e)});if(c){var d=this.satisfies(n[c]);if(void 0!==d)return d}}if(o>0){var f=Object.keys(i),h=s.default.find(f,function(e){return t.isBrowser(e,!0)});if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(i,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e)})},e}();t.default=u,e.exports=t.default},92:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={name:o.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:o.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:o.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}});var wR,wI,wT,wO,wP,wL,wN,wD,wB,wj,wF,wz,wU,wq=u(wx.exports);(w3=wU||(wU={})).Disabled="Disabled",w3.Temporary="Temporary",w3.UntilResponse="UntilResponse";let wK=()=>"wakeLock"in navigator,wH=()=>
6{if("undefined"==typeof navigator)return!1;let{userAgent:e}=navigator,t=/CPU (?:iPhone )?OS (\d+)(?:_\d+)?_?\d+ like Mac OS X/iu.exec(e);return!!t&&10>parseInt(t[1],10)&&!window.MSStream};class wV{constructor(e){this.enabled=!1,this._eventsAdded=!1,this.debug=null!=e&&e}start(){if(this.enabled=!1,wK()&&!this._eventsAdded){this._eventsAdded=!0,this._wakeLock=void 0;let e=()=>hP(this,void 0,void 0,function*(){null!==this._wakeLock&&"visible"===document.visibilityState&&(yield this.enable())});document.addEventListener("visibilitychange",e),document.addEventListener("fullscreenchange",e)}else wH()?this.noSleepTimer=void 0:(this.noSleepVideo=document.createElement("video"),this.noSleepVideo.setAttribute("title","MetaMask SDK - Listening for responses"),this.noSleepVideo.setAttribute("playsinline",""),this._addSourceToVideo(this.noSleepVideo,"webm","data:video/webm;base64,GkXfowEAAAAAAAAfQoaBAUL3gQFC8oEEQvOBCEKChHdlYm1Ch4EEQoWBAhhTgGcBAAAAAAAVkhFNm3RALE27i1OrhBVJqWZTrIHfTbuMU6uEFlSua1OsggEwTbuMU6uEHFO7a1OsghV17AEAAAAAAACkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmAQAAAAAAAEUq17GDD0JATYCNTGF2ZjU1LjMzLjEwMFdBjUxhdmY1NS4zMy4xMDBzpJBlrrXf3DCDVB8KcgbMpcr+RImIQJBgAAAAAAAWVK5rAQAAAAAAD++uAQAAAAAAADLXgQFzxYEBnIEAIrWcg3VuZIaFVl9WUDiDgQEj44OEAmJaAOABAAAAAAAABrCBsLqBkK4BAAAAAAAPq9eBAnPFgQKcgQAitZyDdW5khohBX1ZPUkJJU4OBAuEBAAAAAAAAEZ+BArWIQOdwAAAAAABiZIEgY6JPbwIeVgF2b3JiaXMAAAAAAoC7AAAAAAAAgLUBAAAAAAC4AQN2b3JiaXMtAAAAWGlwaC5PcmcgbGliVm9yYmlzIEkgMjAxMDExMDEgKFNjaGF1ZmVudWdnZXQpAQAAABUAAABlbmNvZGVyPUxhdmM1NS41Mi4xMDIBBXZvcmJpcyVCQ1YBAEAAACRzGCpGpXMWhBAaQlAZ4xxCzmvsGUJMEYIcMkxbyyVzkCGkoEKIWyiB0JBVAABAAACHQXgUhIpBCCGEJT1YkoMnPQghhIg5eBSEaUEIIYQQQgghhBBCCCGERTlokoMnQQgdhOMwOAyD5Tj4HIRFOVgQgydB6CCED0K4moOsOQghhCQ1SFCDBjnoHITCLCiKgsQwuBaEBDUojILkMMjUgwtCiJqDSTX4GoRnQXgWhGlBCCGEJEFIkIMGQcgYhEZBWJKDBjm4FITLQagahCo5CB+EIDRkFQCQAACgoiiKoigKEBqyCgDIAAAQQFEUx3EcyZEcybEcCwgNWQUAAAEACAAAoEiKpEiO5EiSJFmSJVmSJVmS5omqLMuyLMuyLMsyEBqyCgBIAABQUQxFcRQHCA1ZBQBkAAAIoDiKpViKpWiK54iOCISGrAIAgAAABAAAEDRDUzxHlETPVFXXtm3btm3btm3btm3btm1blmUZCA1ZBQBAAAAQ0mlmqQaIMAMZBkJDVgEACAAAgBGKMMSA0JBVAABAAACAGEoOogmtOd+c46BZDppKsTkdnEi1eZKbirk555xzzsnmnDHOOeecopxZDJoJrTnnnMSgWQqaCa0555wnsXnQmiqtOeeccc7pYJwRxjnnnCateZCajbU555wFrWmOmkuxOeecSLl5UptLtTnnnHPOOeecc84555zqxekcnBPOOeecqL25lpvQxTnnnE/G6d6cEM4555xzzjnnnHPOOeecIDRkFQAABABAEIaNYdwpCNLnaCBGEWIaMulB9+gwCRqDnELq0ehopJQ6CCWVcVJKJwgNWQUAAAIAQAghhRRSSCGFFFJIIYUUYoghhhhyyimnoIJKKqmooowyyyyzzDLLLLPMOuyssw47DDHEEEMrrcRSU2011lhr7jnnmoO0VlprrbVSSimllFIKQkNWAQAgAAAEQgYZZJBRSCGFFGKIKaeccgoqqIDQkFUAACAAgAAAAABP8hzRER3RER3RER3RER3R8RzPESVREiVREi3TMjXTU0VVdWXXlnVZt31b2IVd933d933d+HVhWJZlWZZlWZZlWZZlWZZlWZYgNGQVAAACAAAghBBCSCGFFFJIKcYYc8w56CSUEAgNWQUAAAIACAAAAHAUR3EcyZEcSbIkS9IkzdIsT/M0TxM9URRF0zRV0RVdUTdtUTZl0zVdUzZdVVZtV5ZtW7Z125dl2/d93/d93/d93/d93/d9XQdCQ1YBABIAADqSIymSIimS4ziOJElAaMgqAEAGAEAAAIriKI7jOJIkSZIlaZJneZaomZrpmZ4qqkBoyCoAABAAQAAAAAAAAIqmeIqpeIqoeI7oiJJomZaoqZoryqbsuq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq4LhIasAgAkAAB0JEdyJEdSJEVSJEdygNCQVQCADACAAAAcwzEkRXIsy9I0T/M0TxM90RM901NFV3SB0JBVAAAgAIAAAAAAAAAMybAUy9EcTRIl1VItVVMt1VJF1VNVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVN0zRNEwgNWQkAkAEAkBBTLS3GmgmLJGLSaqugYwxS7KWxSCpntbfKMYUYtV4ah5RREHupJGOKQcwtpNApJq3WVEKFFKSYYyoVUg5SIDRkhQAQmgHgcBxAsixAsiwAAAAAAAAAkDQN0DwPsDQPAAAAAAAAACRNAyxPAzTPAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA0jRA8zxA8zwAAAAAAAAA0DwP8DwR8EQRAAAAAAAAACzPAzTRAzxRBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA0jRA8zxA8zwAAAAAAAAAsDwP8EQR0DwRAAAAAAAAACzPAzxRBDzRAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEOAAABBgIRQasiIAiBMAcEgSJAmSBM0DSJYFTYOmwTQBkmVB06BpME0AAAAAAAAAAAAAJE2DpkHTIIoASdOgadA0iCIAAAAAAAAAAAAAkqZB06BpEEWApGnQNGgaRBEAAAAAAAAAAAAAzzQhihBFmCbAM02IIkQRpgkAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAGHAAAAgwoQwUGrIiAIgTAHA4imUBAIDjOJYFAACO41gWAABYliWKAABgWZooAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAYcAAACDChDBQashIAiAIAcCiKZQHHsSzgOJYFJMmyAJYF0DyApgFEEQAIAAAocAAACLB
6BU2JxgEJDVgIAUQAABsWxLE0TRZKkaZoniiRJ0zxPFGma53meacLzPM80IYqiaJoQRVE0TZimaaoqME1VFQAAUOAAABBgg6bE4gCFhqwEAEICAByKYlma5nmeJ4qmqZokSdM8TxRF0TRNU1VJkqZ5niiKommapqqyLE3zPFEURdNUVVWFpnmeKIqiaaqq6sLzPE8URdE0VdV14XmeJ4qiaJqq6roQRVE0TdNUTVV1XSCKpmmaqqqqrgtETxRNU1Vd13WB54miaaqqq7ouEE3TVFVVdV1ZBpimaaqq68oyQFVV1XVdV5YBqqqqruu6sgxQVdd1XVmWZQCu67qyLMsCAAAOHAAAAoygk4wqi7DRhAsPQKEhKwKAKAAAwBimFFPKMCYhpBAaxiSEFEImJaXSUqogpFJSKRWEVEoqJaOUUmopVRBSKamUCkIqJZVSAADYgQMA2IGFUGjISgAgDwCAMEYpxhhzTiKkFGPOOScRUoox55yTSjHmnHPOSSkZc8w556SUzjnnnHNSSuacc845KaVzzjnnnJRSSuecc05KKSWEzkEnpZTSOeecEwAAVOAAABBgo8jmBCNBhYasBABSAQAMjmNZmuZ5omialiRpmud5niiapiZJmuZ5nieKqsnzPE8URdE0VZXneZ4oiqJpqirXFUXTNE1VVV2yLIqmaZqq6rowTdNUVdd1XZimaaqq67oubFtVVdV1ZRm2raqq6rqyDFzXdWXZloEsu67s2rIAAPAEBwCgAhtWRzgpGgssNGQlAJABAEAYg5BCCCFlEEIKIYSUUggJAAAYcAAACDChDBQashIASAUAAIyx1lprrbXWQGettdZaa62AzFprrbXWWmuttdZaa6211lJrrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmstpZRSSimllFJKKaWUUkoppZRSSgUA+lU4APg/2LA6wknRWGChISsBgHAAAMAYpRhzDEIppVQIMeacdFRai7FCiDHnJKTUWmzFc85BKCGV1mIsnnMOQikpxVZjUSmEUlJKLbZYi0qho5JSSq3VWIwxqaTWWoutxmKMSSm01FqLMRYjbE2ptdhqq7EYY2sqLbQYY4zFCF9kbC2m2moNxggjWywt1VprMMYY3VuLpbaaizE++NpSLDHWXAAAd4MDAESCjTOsJJ0VjgYXGrISAAgJACAQUooxxhhzzjnnpFKMOeaccw5CCKFUijHGnHMOQgghlIwx5pxzEEIIIYRSSsaccxBCCCGEkFLqnHMQQgghhBBKKZ1zDkIIIYQQQimlgxBCCCGEEEoopaQUQgghhBBCCKmklEIIIYRSQighlZRSCCGEEEIpJaSUUgohhFJCCKGElFJKKYUQQgillJJSSimlEkoJJYQSUikppRRKCCGUUkpKKaVUSgmhhBJKKSWllFJKIYQQSikFAAAcOAAABBhBJxlVFmGjCRcegEJDVgIAZAAAkKKUUiktRYIipRikGEtGFXNQWoqocgxSzalSziDmJJaIMYSUk1Qy5hRCDELqHHVMKQYtlRhCxhik2HJLoXMOAAAAQQCAgJAAAAMEBTMAwOAA4XMQdAIERxsAgCBEZohEw0JweFAJEBFTAUBigkIuAFRYXKRdXECXAS7o4q4DIQQhCEEsDqCABByccMMTb3jCDU7QKSp1IAAAAAAADADwAACQXAAREdHMYWRobHB0eHyAhIiMkAgAAAAAABcAfAAAJCVAREQ0cxgZGhscHR4fICEiIyQBAIAAAgAAAAAggAAEBAQAAAAAAAIAAAAEBB9DtnUBAAAAAAAEPueBAKOFggAAgACjzoEAA4BwBwCdASqwAJAAAEcIhYWIhYSIAgIABhwJ7kPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99YAD+/6tQgKOFggADgAqjhYIAD4AOo4WCACSADqOZgQArADECAAEQEAAYABhYL/QACIBDmAYAAKOFggA6gA6jhYIAT4AOo5mBAFMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAGSADqOFggB6gA6jmYEAewAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIAj4AOo5mBAKMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAKSADqOFggC6gA6jmYEAywAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIAz4AOo4WCAOSADqOZgQDzADECAAEQEAAYABhYL/QACIBDmAYAAKOFggD6gA6jhYIBD4AOo5iBARsAEQIAARAQFGAAYWC/0AAiAQ5gGACjhYIBJIAOo4WCATqADqOZgQFDADECAAEQEAAYABhYL/QACIBDmAYAAKOFggFPgA6jhYIBZIAOo5mBAWsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAXqADqOFggGPgA6jmYEBkwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIBpIAOo4WCAbqADqOZgQG7ADECAAEQEAAYABhYL/QACIBDmAYAAKOFggHPgA6jmYEB4wAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIB5IAOo4WCAfqADqOZgQILADECAAEQEAAYABhYL/QACIBDmAYAAKOFggIPgA6jhYICJIAOo5mBAjMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAjqADqOFggJPgA6jmYECWwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYICZIAOo4WCAnqADqOZgQKDADECAAEQEAAYABhYL/QACIBDmAYAAKOFggKPgA6jhYICpIAOo5mBAqsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCArqADqOFggLPgA6jmIEC0wARAgABEBAUYABhYL/QACIBDmAYAKOFggLkgA6jhYIC+oAOo5mBAvsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAw+ADqOZgQMjADECAAEQEAAYABhYL/QACIBDmAYAAKOFggMkgA6jhYIDOoAOo5mBA0sAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCA0+ADqOFggNkgA6jmYEDcwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIDeoAOo4WCA4+ADqOZgQObADECAAEQEAAYABhYL/QACIBDmAYAAKOFggOkgA6jhYIDuoAOo5mBA8MAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCA8+ADqOFggPkgA6jhYID+oAOo4WCBA+ADhxTu2sBAAAAAAAAEbuPs4EDt4r3gQHxghEr8IEK"),this._addSourceToVideo(this.noSleepVideo,"mp4","data:video/mp4;base64,AAAAHGZ0eXBNNFYgAAACAGlzb21pc28yYXZjMQAAAAhmcmVlAAAGF21kYXTeBAAAbGliZmFhYyAxLjI4AABCAJMgBDIARwAAArEGBf//rdxF6b3m2Ui3lizYINkj7u94MjY0IC0gY29yZSAxNDIgcjIgOTU2YzhkOCAtIEguMjY0L01QRUctNCBBVkMgY29kZWMgLSBDb3B5bGVmdCAyMDAzLTIwMTQgLSBodHRwOi8vd3d3LnZpZGVvbGFuLm9yZy94MjY0Lmh0bWwgLSBvcHRpb25zOiBjYWJhYz0wIHJlZj0zIGRlYmxvY2s9MTowOjAgYW5hbHlzZT0weDE6MHgxMTEgbWU9aGV4IHN1Ym1lPTcgcHN5PTEgcHN5X3JkPTEuMDA6MC4wMCBtaXhlZF9yZWY9MSBtZV9yYW5nZT0xNiBjaHJvbWFfbWU9MSB0cmVsbGlzPTEgOHg4ZGN0PTAgY3FtPTAgZGVhZHpvbmU9MjEsMTEgZmFzdF9wc2tpcD0xIGNocm9tYV9xcF9vZmZzZXQ9LTIgdGhyZWFkcz02IGxvb2thaGVhZF90aHJlYWRzPTEgc2xpY2VkX3RocmVhZHM9MCBucj0wIGRlY2ltYXRlPTEgaW50ZXJsYWNlZD0wIGJsdXJheV9jb21wYXQ9MCBjb25zdHJhaW5lZF9pbnRyYT0wIGJmcmFtZXM9MCB3ZWlnaHRwPTAga2V5aW50PTI1MCBrZXlpbnRfbWluPTI1IHNjZW5lY3V0PTQwIGludHJhX3JlZnJlc2g9MCByY19sb29rYWhlYWQ9NDAgcmM9Y3JmIG1idHJlZT0xIGNyZj0yMy4wIHFjb21wPTAuNjAgcXBtaW49MCBxcG1heD02OSBxcHN0ZXA9NCB2YnZfbWF4cmF0ZT03NjggdmJ2X2J1ZnNpemU9MzAwMCBjcmZfbWF4PTAuMCBuYWxfaHJkPW5vbmUgZmlsbGVyPTAgaXBfcmF0aW89MS40MCBhcT0xOjEuMDAAgAAAAFZliIQL8mKAAKvMnJycnJycnJycnXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXiEASZACGQAjgCEASZACGQAjgAAAAAdBmjgX4GSAIQBJkAIZACOAAAAAB0GaVAX4GSAhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGagC/AySEASZACGQAjgAAAAAZBmqAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZrAL8DJIQBJkAIZACOAAAAABkGa4C/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmwAvwMkhAEmQAhkAI4AAAAAGQZsgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGbQC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm2AvwMkhAEmQAhkAI4AAAAAGQZuAL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGboC/AySEASZACGQAjgAAAAAZBm8AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZvgL8DJIQBJkAIZACOAAAAABkGaAC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmiAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpAL8DJIQBJkAIZACOAAAAABkGaYC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmoAvwMkhAEmQAhkAI4AAAAAGQZqgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGawC/AySEASZACGQAjgAAAAAZBmuAvw
6MkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZsAL8DJIQBJkAIZACOAAAAABkGbIC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm0AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZtgL8DJIQBJkAIZACOAAAAABkGbgCvAySEASZACGQAjgCEASZACGQAjgAAAAAZBm6AnwMkhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AAAAhubW9vdgAAAGxtdmhkAAAAAAAAAAAAAAAAAAAD6AAABDcAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAzB0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAABAAAAAAAAA+kAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAALAAAACQAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAPpAAAAAAABAAAAAAKobWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAB1MAAAdU5VxAAAAAAALWhkbHIAAAAAAAAAAHZpZGUAAAAAAAAAAAAAAABWaWRlb0hhbmRsZXIAAAACU21pbmYAAAAUdm1oZAAAAAEAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAhNzdGJsAAAAr3N0c2QAAAAAAAAAAQAAAJ9hdmMxAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAALAAkABIAAAASAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAALWF2Y0MBQsAN/+EAFWdCwA3ZAsTsBEAAAPpAADqYA8UKkgEABWjLg8sgAAAAHHV1aWRraEDyXyRPxbo5pRvPAyPzAAAAAAAAABhzdHRzAAAAAAAAAAEAAAAeAAAD6QAAABRzdHNzAAAAAAAAAAEAAAABAAAAHHN0c2MAAAAAAAAAAQAAAAEAAAABAAAAAQAAAIxzdHN6AAAAAAAAAAAAAAAeAAADDwAAAAsAAAALAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAAiHN0Y28AAAAAAAAAHgAAAEYAAANnAAADewAAA5gAAAO0AAADxwAAA+MAAAP2AAAEEgAABCUAAARBAAAEXQAABHAAAASMAAAEnwAABLsAAATOAAAE6gAABQYAAAUZAAAFNQAABUgAAAVkAAAFdwAABZMAAAWmAAAFwgAABd4AAAXxAAAGDQAABGh0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAACAAAAAAAABDcAAAAAAAAAAAAAAAEBAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAQkAAADcAABAAAAAAPgbWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAC7gAAAykBVxAAAAAAALWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABTb3VuZEhhbmRsZXIAAAADi21pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAADT3N0YmwAAABnc3RzZAAAAAAAAAABAAAAV21wNGEAAAAAAAAAAQAAAAAAAAAAAAIAEAAAAAC7gAAAAAAAM2VzZHMAAAAAA4CAgCIAAgAEgICAFEAVBbjYAAu4AAAADcoFgICAAhGQBoCAgAECAAAAIHN0dHMAAAAAAAAAAgAAADIAAAQAAAAAAQAAAkAAAAFUc3RzYwAAAAAAAAAbAAAAAQAAAAEAAAABAAAAAgAAAAIAAAABAAAAAwAAAAEAAAABAAAABAAAAAIAAAABAAAABgAAAAEAAAABAAAABwAAAAIAAAABAAAACAAAAAEAAAABAAAACQAAAAIAAAABAAAACgAAAAEAAAABAAAACwAAAAIAAAABAAAADQAAAAEAAAABAAAADgAAAAIAAAABAAAADwAAAAEAAAABAAAAEAAAAAIAAAABAAAAEQAAAAEAAAABAAAAEgAAAAIAAAABAAAAFAAAAAEAAAABAAAAFQAAAAIAAAABAAAAFgAAAAEAAAABAAAAFwAAAAIAAAABAAAAGAAAAAEAAAABAAAAGQAAAAIAAAABAAAAGgAAAAEAAAABAAAAGwAAAAIAAAABAAAAHQAAAAEAAAABAAAAHgAAAAIAAAABAAAAHwAAAAQAAAABAAAA4HN0c3oAAAAAAAAAAAAAADMAAAAaAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAACMc3RjbwAAAAAAAAAfAAAALAAAA1UAAANyAAADhgAAA6IAAAO+AAAD0QAAA+0AAAQAAAAEHAAABC8AAARLAAAEZwAABHoAAASWAAAEqQAABMUAAATYAAAE9AAABRAAAAUjAAAFPwAABVIAAAVuAAAFgQAABZ0AAAWwAAAFzAAABegAAAX7AAAGFwAAAGJ1ZHRhAAAAWm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAALWlsc3QAAAAlqXRvbwAAAB1kYXRhAAAAAQAAAABMYXZmNTUuMzMuMTAw"),this.noSleepVideo.addEventListener("loadedmetadata",()=>{yQ("[WakeLockManager: start()] video loadedmetadata",this.noSleepVideo),this.noSleepVideo&&(this.noSleepVideo.duration<=1?this.noSleepVideo.setAttribute("loop",""):this.noSleepVideo.addEventListener("timeupdate",()=>{this.noSleepVideo&&this.noSleepVideo.currentTime>.5&&(this.noSleepVideo.currentTime=Math.random())}))}))}_addSourceToVideo(e,t,n){let r=document.createElement("source");r.src=n,r.type=`video/${t}`,e.appendChild(r)}isEnabled(){return this.enabled}setDebug(e){yQ("[WakeLockManager: setDebug()] activate debug mode"),this.debug=e}enable(){return hP(this,void 0,void 0,function*(){this.enabled&&this.disable("from_enable");let e=wK(),t=wH();if(yQ(`[WakeLockManager: enable()] hasWakelock=${e} isOldIos=${t}`,this.noSleepVideo),this.start(),wK())try{let e=yield navigator.wakeLock.request("screen");this._wakeLock=e,this.enabled=!0}catch(e){return yQ("[WakeLockManager: enable()] failed to enable wake lock",e),this.enabled=!1,!1}else if(wH())return this.disable("from_enable_old_ios"),this.noSleepTimer=window.setInterval(()=>{document.hidden||(window.location.href=window.location.href.split("#")[0],window.setTimeout(window.stop,0))},15e3),this.enabled=!0,!0;return!!this.noSleepVideo&&(this.noSleepVideo.play().then(()=>{yQ("[WakeLockManager: enable()] video started playing successfully")}).catch(e=>{console.warn("[WakeLockManager: enable()] video failed to play",e)}),this.enabled=!0,!0)})}disable(e){if(this.enabled){if(yQ(`[WakeLockManager: disable()] context=${e}`),wK())this._wakeLock&&(yQ("[WakeLockManager: disable()] release wake lock"),this._wakeLock.release()
6),this._wakeLock=void 0;else if(wH())this.noSleepTimer&&(console.warn("\n          NoSleep now disabled for older iOS devices.\n        "),window.clearInterval(this.noSleepTimer),this.noSleepTimer=void 0);else try{if(!this.noSleepVideo)return void yQ("[WakeLockManager: disable()] noSleepVideo is undefined");yQ("[WakeLockManager: disable()] pause noSleepVideo"),this.noSleepVideo.firstChild&&(this.noSleepVideo.removeChild(this.noSleepVideo.firstChild),this.noSleepVideo.load()),this.noSleepVideo.pause(),this.noSleepVideo.src="",this.noSleepVideo.remove()}catch(e){console.log(e)}this.enabled=!1}}}class w${constructor({useDeepLink:e,preferredOpenLink:t,wakeLockStatus:n=wU.UntilResponse,debug:r=!1}){this.state={wakeLock:new wV,wakeLockStatus:wU.UntilResponse,wakeLockTimer:void 0,wakeLockFeatureActive:!1,platformType:void 0,useDeeplink:!1,preferredOpenLink:void 0,debug:!1},this.state.platformType=this.getPlatformType(),this.state.useDeeplink=e,this.state.preferredOpenLink=t,this.state.wakeLockStatus=n,this.state.debug=r,this.state.wakeLock.setDebug(r)}enableWakeLock(){return function(e){let{state:t}=e;if(t.wakeLockStatus===wU.Disabled)return void yQ("[PlatfformManager: enableWakeLock()] WakeLock is disabled");t.wakeLock.enable().catch(e=>{console.error("[PlatfformManager: enableWakeLock()] WakeLock is not supported",e)});let n=t.wakeLockStatus===wU.Temporary?2e3:4e4;t.wakeLockTimer=setTimeout(()=>{e.disableWakeLock()},n),t.wakeLockFeatureActive||t.wakeLockStatus!==wU.UntilResponse||(t.wakeLockFeatureActive=!0,window.addEventListener("focus",()=>{e.disableWakeLock()}))}(this)}disableWakeLock(){return function(e){let{state:t}=e;t.wakeLockStatus!==wU.Disabled&&(t.wakeLockTimer&&clearTimeout(t.wakeLockTimer),t.wakeLock.disable("disableWakeLock"))}(this)}openDeeplink(e,t,n){return function(e,t,n,r){let{state:i}=e;yQ(`[PlatfformManager: openDeeplink()] universalLink --> ${t}`),yQ(`[PlatfformManager: openDeeplink()] deepLink --> ${n}`),e.isBrowser()&&e.enableWakeLock();try{if(i.preferredOpenLink)return void i.preferredOpenLink(i.useDeeplink?n:t,r);if(yQ(`[PlatfformManager: openDeeplink()] open link now useDeepLink=${i.useDeeplink} link=${i.useDeeplink?n:t}`),"undefined"!=typeof window){let e;e=i.useDeeplink?window.open(n,"_blank"):window.open(t,"_blank"),setTimeout(()=>{var t;return null===(t=null==e?void 0:e.close)||void 0===t?void 0:t.call(e)},500)}}catch(e){console.log("[PlatfformManager: openDeeplink()] can't open link",e)}}(this,e,t,n)}isReactNative(){var e;return this.isNotBrowser()&&"undefined"!=typeof window&&(null==window?void 0:window.navigator)&&"ReactNative"===(null===(e=window.navigator)||void 0===e?void 0:e.product)}isMetaMaskInstalled(){return function(){let e=wb.getProvider()||(null==window?void 0:window.ethereum);return yQ(`[PlatfformManager: isMetaMaskInstalled()] isMetaMask=${null==e?void 0:e.isMetaMask} isConnected=${null==e?void 0:e.isConnected()}`),(null==e?void 0:e.isMetaMask)&&(null==e?void 0:e.isConnected())}()}isDesktopWeb(){return this.isBrowser()&&!this.isMobileWeb()}isMobile(){var e,t;let n=wq.parse(window.navigator.userAgent);return"mobile"===(null===(e=null==n?void 0:n.platform)||void 0===e?void 0:e.type)||"tablet"===(null===(t=null==n?void 0:n.platform)||void 0===t?void 0:t.type)}isSecure(){return this.isReactNative()||this.isMobileWeb()}isMetaMaskMobileWebView(){return"undefined"!=typeof window&&!!window.ReactNativeWebView&&!!navigator.userAgent.endsWith("MetaMaskMobile")}isMobileWeb(){return this.state.platformType===e.PlatformType.MobileWeb}isNotBrowser(){var e;return"undefined"==typeof window||!(null==window?void 0:window.navigator)||void 0!==n.g&&"ReactNative"===(null===(e=null===n.g||void 0===n.g?void 0:n.g.navigator)||void 0===e?void 0:e.product)||"ReactNative"===(null==navigator?void 0:navigator.product)}isNodeJS(){return this.isNotBrowser()&&!this.isReactNative()}isBrowser(){return!this.isNotBrowser()}isUseDeepLink(){return this.state.useDeeplink}getPlatformType(){return function(t){let{state:n}=t;return n.platformType?n.platformType:t.isReactNative()?e.PlatformType.ReactNative:t.isNotBrowser()?e.PlatformType.NonBrowser:t.isMetaMaskMobileWebView()?e.PlatformType.MetaMaskMobileWebview:t.isMobile()?e.PlatformType.MobileWeb:e.PlatformType.De
6sktopWeb}(this)}}var wW="INSTALLED",wY="NOT_INSTALLED",wG="REGISTERED",wQ="REGISTERING",wZ="RELOADING",wJ={CHROME:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",FIREFOX:"https://addons.mozilla.org/firefox/addon/ether-metamask/",DEFAULT:"https://metamask.io"},wX="REGISTRATION_IN_PROGRESS",w0="FORWARDER_ID",w1=function(){function e(t){var n=void 0===t?{}:t,r=n.forwarderOrigin,i=n.forwarderMode,o=void 0===i?e.FORWARDER_MODE.INJECT:i;this.forwarderOrigin=void 0===r?"https://fwd.metamask.io":r,this.forwarderMode=o,this.state=e.isMetaMaskInstalled()?wW:wY;var a=e._detectBrowser();this.downloadUrl=a?wJ[a]:wJ.DEFAULT,this._onMessage=this._onMessage.bind(this),this._onMessageFromForwarder=this._onMessageFromForwarder.bind(this),this._openForwarder=this._openForwarder.bind(this),this._openDownloadPage=this._openDownloadPage.bind(this),this.startOnboarding=this.startOnboarding.bind(this),this.stopOnboarding=this.stopOnboarding.bind(this),window.addEventListener("message",this._onMessage),o===e.FORWARDER_MODE.INJECT&&"true"===sessionStorage.getItem(wX)&&e._injectForwarder(this.forwarderOrigin)}return e.prototype._onMessage=function(e){if(e.origin===this.forwarderOrigin)return"metamask:reload"===e.data.type?this._onMessageFromForwarder(e):void console.debug("Unknown message from '"+e.origin+"' with data "+JSON.stringify(e.data))},e.prototype._onMessageUnknownStateError=function(e){throw Error("Unknown state: '"+e+"'")},e.prototype._onMessageFromForwarder=function(t){var n,r,i,o;return n=this,r=void 0,i=void 0,o=function(){return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,function(n){switch(n.label){case 0:switch(this.state){case wZ:return[3,1];case wY:return[3,2];case wW:return[3,3];case wQ:return[3,5];case wG:return[3,6]}return[3,7];case 1:return console.debug("Ignoring message while reloading"),[3,8];case 2:return console.debug("Reloading now to register with MetaMask"),this.state=wZ,location.reload(),[3,8];case 3:return console.debug("Registering with MetaMask"),this.state=wQ,[4,e._register()];case 4:return n.sent(),this.state=wG,t.source.postMessage({type:"metamask:registrationCompleted"},t.origin),this.stopOnboarding(),[3,8];case 5:return console.debug("Already registering - ignoring reload message"),[3,8];case 6:return console.debug("Already registered - ignoring reload message"),[3,8];case 7:this._onMessageUnknownStateError(this.state),n.label=8;case 8:return[2]}})},new(i||(i=Promise))(function(e,t){function a(e){try{l(o.next(e))}catch(e){t(e)}}function s(e){try{l(o.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof i?n:new i(function(e){e(n)})).then(a,s)}l((o=o.apply(n,r||[])).next())})},e.prototype.startOnboarding=function(){sessionStorage.setItem(wX,"true"),this._openDownloadPage(),this._openForwarder()},e.prototype.stopOnboarding=function(){"true"===sessionStorage.getItem(wX)&&(this.forwarderMode===e.FORWARDER_MODE.INJECT&&(console.debug("Removing forwarder"),e._removeForwarder()),sessionStorage.setItem(wX,"false"))},e.prototype._openForwarder=function(){this.forwarderMode===e.FORWARDER_MODE.OPEN_TAB?window.open(this.forwarderOrigin,"_blank"):e._injectForwarder(this.forwarderOrigin)},e.prototype._openDownloadPage=function(){window.open(this.downloadUrl,"_blank")},e.isMetaMaskInstalled=function(){return!!(window.ethereum&&window.ethereum.isMetaMask)},e._register=function(){return window.ethereum.request({method:"wallet_registerOnboarding"})},e._injectForwarder=function(e){var t=document.body,n=document.createElement("iframe");n.setAttribute("height","0"),n.setAttribute("width","0"),n.setAttribute("style","display: none;"),n.setAttribute("src",e),n.setAttribute("id",w0),t.insertBefore(n,t.children[0])},e._removeForwarder=function(){var e;null===(e=document.getElementById(w0))||void 0===e||e.remove()},e._detectBrowser=function(){var e=wq.parse(window.navigator.userAgent);return"Firefox"===e.browser.name?"FIREFOX":["Chrome","Chromium"].includes(e.browser.name||"")?"CHROME":null},e.FORWARDER_MODE={INJECT:"INJECT",OPEN_TAB:"OPEN_TAB"},e}();class w2{constructor({remote:e,preferDesktop:t,platformManager:n,debug:r=!1}){this.state={isInstalling:!1,hasInstalled:!1,resendRequest:null,preferDesktop:!1,platformManager:null,remote:null,debug:!1},this.state.remote=e,this.state.preferDesktop=t,this.state.platformManager=n,this.state.debug=r}startDesktopOnboarding(){return function(){return hP(this,void 0,void 0,function*(){yQ("[MetamaskInstaller: startDesktopOnboarding() starting desktop onboarding"),wb.destroy(),delete window.ethereum,(new w1).startOnboarding()})}()}redirectToProperInstall(){return hP(this,void 0,void 0,function*(){return function(t){var n,r;return hP(this,void 0,void 0,function*(){let{state:i}=t,o=null===(n=i.platformManager)||void 0===n?void 0:n.getPlatformType();if(yQ(`[MetamaskInstaller: redirectToProperInstall()] platform=${o}`),o===e.PlatformType.MetaMaskMobileWebview)return!1;i.isInstalling=!0;try{yield null===(r=i.remote)||void 0===r?void 0:r.startConnection(),i.isInstalling=!1,i.hasInstalled=!0}catch(e){throw i.isInstalling=!1,e}return!0})}(this)})}checkInstallation(){return hP(this,void 0,void 0,function*(){return function(e){var t;return hP(this,void 0,void 0,function*(){let{state:n}=e,r=null===(t=n.platformManager)||void 0===t?void 0:t.isMetaMaskInstalled();return yQ(`[MetamaskInstaller: checkInstallation()] isInstalled=${r}`),!!r||(yield e.redirectToProperInstall())})}(this)})}start({wait:e=!1}){return hP(this,void 0,void 0,function*(){return yield function(e,{wait:t=!1}){return hP(this,void 0,void 0,function*(){return yQ(`[MetamaskInstaller: startInstaller()] wait=${t}`),t&&(yield wE(1e3)),yield e.checkInstallation()})}(this,{wait:e})})}}var w3,w6,w4,w8,w5={}
6,w7={exports:{}},w9={},_e={exports:{}};function _t(){var e;return w8||(w8=1,"production"===ex.env.NODE_ENV?w7.exports=function(){if(w6)return w9;w6=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,p={};function m(e,t,n){this.props=e,this.context=t,this.refs=p,this.updater=n||f}function g(){}function v(e,t,n){this.props=e,this.context=t,this.refs=p,this.updater=n||f}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var b=v.prototype=new g;b.constructor=v,h(b,m.prototype),b.isPureReactComponent=!0;var y=Array.isArray,A=Object.prototype.hasOwnProperty,w={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function E(t,n,r){var i,o={},a=null,s=null;if(null!=n)for(i in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)A.call(n,i)&&!_.hasOwnProperty(i)&&(o[i]=n[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(t&&t.defaultProps)for(i in l=t.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:e,type:t,key:a,ref:s,props:o,_owner:w.current}}function S(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var k=/\/+/g;function M(e,t){var n,r;return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36)}function C(n,r,i){if(null==n)return n;var o=[],a=0;return function n(r,i,o,a,s){var l,u,c,f=typeof r;"undefined"!==f&&"boolean"!==f||(r=null);var h=!1;if(null===r)h=!0;else switch(f){case"string":case"number":h=!0;break;case"object":switch(r.$$typeof){case e:case t:h=!0}}if(h)return s=s(h=r),r=""===a?"."+M(h,0):a,y(s)?(o="",null!=r&&(o=r.replace(k,"$&/")+"/"),n(s,i,o,"",function(e){return e})):null!=s&&(S(s)&&(l=s,u=o+(!s.key||h&&h.key===s.key?"":(""+s.key).replace(k,"$&/")+"/")+r,s={$$typeof:e,type:l.type,key:u,ref:l.ref,props:l.props,_owner:l._owner}),i.push(s)),1;if(h=0,a=""===a?".":a+":",y(r))for(var p=0;p<r.length;p++){var m=a+M(f=r[p],p);h+=n(f,i,o,m,s)}else if("function"==typeof(m=null===(c=r)||"object"!=typeof c?null:"function"==typeof(c=d&&c[d]||c["@@iterator"])?c:null))for(r=m.call(r),p=0;!(f=r.next()).done;)h+=n(f=f.value,i,o,m=a+M(f,p++),s);else if("object"===f)throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(i=String(r))?"object with keys {"+Object.keys(r).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.");return h}(n,o,"","",function(e){return r.call(i,e,a++)}),o}function x(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},I={transition:null};return w9.Children={map:C,forEach:function(e,t,n){C(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return C(e,function(){t++}),t},toArray:function(e){return C(e,function(e){return e})||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},w9.Component=m,w9.Fragment=n,w9.Profiler=i,w9.PureComponent=v,w9.StrictMode=r,w9.Suspense=l,w9.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:I,ReactCurrentOwner:w},w9.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i=h({},t.props),o=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=w.current),void 0!==n.key&&(o=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)A.call(n,u)&&!_.hasOwnProperty(u)&&(i[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:e,type:t.type,key:o,ref:a,props:i,_owner:s}},w9.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},w9.createElement=E,w9.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},w9.createRef=function(){return{current:null}},w9.forwardRef=function(e){return{$$typeof:s,render:e}},w9.isValidElement=S,w9.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:x}},w9.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},w9.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},w9.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},w9.useCallback=function(e,t){return R.current.useCallback(e,t)},w9.useContext=function(e){return R.current.useContext(e)},w9.useDebugValue=function(){},w9.useDeferredValue=function(e){return R.current.useDeferredValue(e)},w9.useEffect=function(e,t){return R.current.useEffect(e,t)},w9.useId=function(){return R.current.useId()},w9.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},w9.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},w9.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},w9.useMemo=function(e,t){return R.current.useMemo(e,t)},w9.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},w9.useRef=function(e){return R.current.useRef(e)},w9.useState=function(e){return R.current.useState(e)},w9.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},w9.useTransition=function(){return R.current.useTransition()},w9.version="18.2.0",w9}():w7.exports=(w4||(w4=1,e=_e.exports,"production"!==ex.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),p=Symbol.iterator;function m(e){if(null===e||"object"!=typeof e)return null;var t=p&&e[p]||e["@@iterator"];return"function"==typeof t?t:null}var g={current:null},v={transition:null},b={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},y={current:null},A={},w=null;A.setExtraStackFrame=function(e){w=e},A.getCurrentStack=null,A.getStackAddendum=function(){var e="";w&&(e+=w);var t=A.getCurrentStack;return t&&(e+=t()||""),e};var _={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:v,ReactCurrentOwner:y};function E(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];k("warn",e,n)}function S(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];k("error",e,n)}
6function k(e,t,n){var r=_.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var i=n.map(function(e){return String(e)});i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}_.ReactDebugCurrentFrame=A,_.ReactCurrentActQueue=b;var M={};function C(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",i=r+"."+t;M[i]||(S("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),M[i]=!0)}var x={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){C(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){C(e,"replaceState")},enqueueSetState:function(e,t,n,r){C(e,"setState")}},R=Object.assign,I={};function T(e,t,n){this.props=e,this.context=t,this.refs=I,this.updater=n||x}Object.freeze(I),T.prototype.isReactComponent={},T.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},T.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var O={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},P=function(e,t){Object.defineProperty(T.prototype,e,{get:function(){E("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var L in O)O.hasOwnProperty(L)&&P(L,O[L]);function N(){}function D(e,t,n){this.props=e,this.context=t,this.refs=I,this.updater=n||x}N.prototype=T.prototype;var B=D.prototype=new N;B.constructor=D,R(B,T.prototype),B.isPureReactComponent=!0;var j=Array.isArray;function F(e){if(function(e){try{return!1}catch(e){return!0}}(0))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.","function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"),""+e}function z(e){return e.displayName||"Context"}function U(e){if(null==e)return null;if("number"==typeof e.tag&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case r:return"Fragment";case n:return"Portal";case o:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return z(e)+".Consumer";case a:return z(e._context)+".Provider";case l:return function(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||"";return""!==i?n+"("+i+")":n}(e,e.render,"ForwardRef");case d:var t=e.displayName||null;return null!==t?t:U(e.type)||"Memo";case f:var h=e._payload,p=e._init;try{return U(p(h))}catch(e){}}return null}var q,K,H,V=Object.prototype.hasOwnProperty,$={key:!0,ref:!0,__self:!0,__source:!0};function W(e){if(V.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function Y(e){if(V.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}
6return void 0!==e.key}H={};var G=function(e,n,r,i,o,a,s){var l={$$typeof:t,type:e,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function Q(e,t,n){var r,i={},o=null,a=null,s=null,l=null;if(null!=t)for(r in W(t)&&(a=t.ref,function(e){if("string"==typeof e.ref&&y.current&&e.__self&&y.current.stateNode!==e.__self){var t=U(y.current.type);H[t]||(S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),H[t]=!0)}}(t)),Y(t)&&(F(t.key),o=""+t.key),s=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)V.call(t,r)&&!$.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(u>1){for(var c=Array(u),d=0;d<u;d++)c[d]=arguments[d+2];Object.freeze&&Object.freeze(c),i.children=c}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)void 0===i[r]&&(i[r]=f[r])}if(o||a){var h,p,m="function"==typeof e?e.displayName||e.name||"Unknown":e;o&&((h=function(){q||(q=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",m))}).isReactWarning=!0,Object.defineProperty(i,"key",{get:h,configurable:!0})),a&&((p=function(){K||(K=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",m))}).isReactWarning=!0,Object.defineProperty(i,"ref",{get:p,configurable:!0}))}return G(e,o,a,s,l,y.current,i)}function Z(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,i,o=R({},e.props),a=e.key,s=e.ref,l=e._self,u=e._source,c=e._owner;if(null!=t)for(r in W(t)&&(s=t.ref,c=y.current),Y(t)&&(F(t.key),a=""+t.key),e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)V.call(t,r)&&!$.hasOwnProperty(r)&&(void 0===t[r]&&void 0!==i?o[r]=i[r]:o[r]=t[r]);var d=arguments.length-2;if(1===d)o.children=n;else if(d>1){for(var f=Array(d),h=0;h<d;h++)f[h]=arguments[h+2];o.children=f}return G(e.type,a,s,l,u,c,o)}function J(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var X=!1,ee=/\/+/g;function et(e){return e.replace(ee,"$&/")}function en(e,t){var n,r;return"object"==typeof e&&null!==e&&null!=e.key?(F(e.key),n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36)}function er(e,r,i){if(null==e)return e;var o=[],a=0;return function e(r,i,o,a,s){var l=typeof r;"undefined"!==l&&"boolean"!==l||(r=null);var u,c,d,f=!1;if(null===r)f=!0;else switch(l){case"string":case"number":f=!0;break;case"object":switch(r.$$typeof){case t:case n:f=!0}}if(f){var h=r,p=s(h),g=""===a?"."+en(h,0):a;if(j(p)){var v="";null!=g&&(v=et(g)+"/"),e(p,i,v,"",function(e){return e})}else null!=p&&(J(p)&&(!p.key||h&&h.key===p.key||F(p.key),u=p,c=o+(!p.key||h&&h.key===p.key?"":et(""+p.key)+"/")+g,p=G(u.type,c,u.ref,u._self,u._source,u._owner,u.props)),i.push(p));return 1}var b=0,y=""===a?".":a+":";if(j(r))for(var A=0;A<r.length;A++)b+=e(d=r[A],i,o,y+en(d,A),s);else{var w=m(r);if("function"==typeof w){var _=r;w===_.entries&&(X||E("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),X=!0);for(var S,k=w.call(_),M=0;!(S=k.next()).done;)b+=e(d=S.value,i,o,y+en(d,M++),s)}else if("object"===l){var C=String(r);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===C?"object with keys {"+Object.keys(r).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}}return b}(e,o,"","",function(e){return r.call(i,e,a++)}),o}function ei(e){if(-1===e._status){var t=(0,e._result)();t.then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status){var n=e._result;return void 0===n&&S("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n  const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",n),"default"in n||S("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n  const MyComponent = lazy(() => import('./MyComponent'))",n),n.default}throw e._result}function eo(e){return"string"==typeof e||"function"==typeof e||!!(e===r||e===o||e===i||e===u||e===c||e===h)||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===a||e.$$typeof===s||e.$$typeof===l||e.$$typeof===es||void 0!==e.getModuleId)}function ea(){var e=g.current;return null===e&&S("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}es=Symbol.for("react.module.reference");var es,el,eu,ec,ed,ef,eh,ep,em=0;function eg(){}eg.__reactDisabledLog=!0;var ev,eb=_.ReactCurrentDispatcher;
6function ey(e,t,n){if(void 0===ev)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);ev=r&&r[1]||""}return"\n"+ev+e}var eA,ew=!1;function e_(e,t){if(!e||ew)return"";var n,r=eA.get(e);if(void 0!==r)return r;ew=!0;var i,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=eb.current,eb.current=null,function(){if(0===em){el=console.log,eu=console.info,ec=console.warn,ed=console.error,ef=console.group,eh=console.groupCollapsed,ep=console.groupEnd;var e={configurable:!0,enumerable:!0,value:eg,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}em++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),u=s.length-1,c=l.length-1;u>=1&&c>=0&&s[u]!==l[c];)c--;for(;u>=1&&c>=0;u--,c--)if(s[u]!==l[c]){if(1!==u||1!==c)do if(u--,--c<0||s[u]!==l[c]){var d="\n"+s[u].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&eA.set(e,d),d}while(u>=1&&c>=0);break}}}finally{ew=!1,eb.current=i,function(){if(0==--em){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:el}),info:R({},e,{value:eu}),warn:R({},e,{value:ec}),error:R({},e,{value:ed}),group:R({},e,{value:ef}),groupCollapsed:R({},e,{value:eh}),groupEnd:R({},e,{value:ep})})}em<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var f=e?e.displayName||e.name:"",h=f?ey(f):"";return"function"==typeof e&&eA.set(e,h),h}function eE(e,t,n){if(null==e)return"";if("function"==typeof e){var r;return e_(e,!(!(r=e.prototype)||!r.isReactComponent))}if("string"==typeof e)return ey(e);switch(e){case u:return ey("Suspense");case c:return ey("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case l:return e_(e.render,!1);case d:return eE(e.type,t,n);case f:var i=e._payload,o=e._init;try{return eE(o(i),t,n)}catch(e){}}return""}eA=new("function"==typeof WeakMap?WeakMap:Map);var eS,ek={},eM=_.ReactDebugCurrentFrame;function eC(e){if(e){var t=e._owner,n=eE(e.type,e._source,t?t.type:null);eM.setExtraStackFrame(n)}else eM.setExtraStackFrame(null)}function ex(e){if(e){var t=e._owner;w=eE(e.type,e._source,t?t.type:null)}else w=null}function eR(){if(y.current){var e=U(y.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}eS=!1;var eI={};function eT(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=eR();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!eI[n]){eI[n]=!0;var r="";e&&e._owner&&e._owner!==y.current&&(r=" It was passed a child from "+U(e._owner.type)+"."),ex(e),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ex(null)}}}function eO(e,t){if("object"==typeof e){if(j(e))for(var n=0;n<e.length;n++){var r=e[n];J(r)&&eT(r,t)}else if(J(e))e._store&&(e._store.validated=!0);else if(e){var i=m(e);if("function"==typeof i&&i!==e.entries)for(var o,a=i.call(e);!(o=a.next()).done;)J(o.value)&&eT(o.value,t)}}}function eP(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==l&&n.$$typeof!==d)return;t=n.propTypes}if(t){var r=U(n);!function(e,t,n,r,i){var o=Function.call.bind(V);for(var a in e)if(o(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}
6catch(e){s=e}!s||s instanceof Error||(eC(i),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),eC(null)),s instanceof Error&&!(s.message in ek)&&(ek[s.message]=!0,eC(i),S("Failed %s type: %s",n,s.message),eC(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||eS||(eS=!0,S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",U(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function eL(e,n,i){var o,a=eo(e);if(!a){var s,l="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),l+=(null!=n&&void 0!==(o=n.__source)?"\n\nCheck your code at "+o.fileName.replace(/^.*[\\\/]/,"")+":"+o.lineNumber+".":"")||eR(),null===e?s="null":j(e)?s="array":void 0!==e&&e.$$typeof===t?(s="<"+(U(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,S("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,l)}var u=Q.apply(this,arguments);if(null==u)return u;if(a)for(var c=2;c<arguments.length;c++)eO(arguments[c],e);return e===r?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){ex(e),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ex(null);break}}null!==e.ref&&(ex(e),S("Invalid attribute `ref` supplied to `React.Fragment`."),ex(null))}(u):eP(u),u}var eN=!1,eD=!1,eB=null,ej=0,eF=!1;function ez(e){e!==ej-1&&S("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ej=e}function eU(e,t,n){var r=b.current;if(null!==r)try{eK(r),function(e){if(null===eB)try{var t=("require"+Math.random()).slice(0,7);eB=(_e&&_e[t]).call(_e,"timers").setImmediate}catch(e){eB=function(e){!1===eD&&(eD=!0,"undefined"==typeof MessageChannel&&S("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}eB(e)}(function(){0===r.length?(b.current=null,t(e)):eU(e,t,n)})}catch(e){n(e)}else t(e)}var eq=!1;function eK(e){if(!eq){eq=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do n=n(!0);while(null!==n)}e.length=0}catch(n){throw e=e.slice(t+1),n}finally{eq=!1}}}e.Children={map:er,forEach:function(e,t,n){er(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return er(e,function(){t++}),t},toArray:function(e){return er(e,function(e){return e})||[]},only:function(e){if(!J(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},e.Component=T,e.Fragment=r,e.Profiler=o,e.PureComponent=D,e.StrictMode=i,e.Suspense=u,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_,e.cloneElement=function(e,t,n){for(var r=Z.apply(this,arguments),i=2;i<arguments.length;i++)eO(arguments[i],r.type);return eP(r),r},e.createContext=function(e){var t={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:a,_context:t};var n=!1,r=!1,i=!1,o={$$typeof:s,_context:t};return Object.defineProperties(o,{Provider:{get:function(){return r||(r=!0,S("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}}
6,_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,S("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){i||(E("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),i=!0)}}}),t.Consumer=o,t._currentRenderer=null,t._currentRenderer2=null,t},e.createElement=eL,e.createFactory=function(e){var t=eL.bind(null,e);return t.type=e,eN||(eN=!0,E("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return E("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){null!=e&&e.$$typeof===d?S("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?S("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&S("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||S("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:l,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(e.displayName=n)}}),n},e.isValidElement=J,e.lazy=function(e){var t,n,r={$$typeof:f,_payload:{_status:-1,_result:e},_init:ei};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){S("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){S("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},e.memo=function(e,t){eo(e)||S("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:d,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(e.displayName=t)}}),r},e.startTransition=function(e,t){var n=v.transition;v.transition={};var r=v.transition;v.transition._updatedFibers=new Set;try{e()}finally{v.transition=n,null===n&&r._updatedFibers&&(r._updatedFibers.size>10&&E("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear())}},e.unstable_act=function(e){var t=ej;ej++,null===b.current&&(b.current=[]);var n,r=b.isBatchingLegacy;try{if(b.isBatchingLegacy=!0,n=e(),!r&&b.didScheduleLegacyUpdate){var i=b.current;null!==i&&(b.didScheduleLegacyUpdate=!1,eK(i))}}catch(e){throw ez(t),e}finally{b.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var o=n,a=!1;return eF||"undefined"==typeof Promise||Promise.resolve().then(function(){}).then(function(){a||(eF=!0,S("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(e,n){a=!0,o.then(function(r){ez(t),0===ej?eU(r,e,n):e(r)},function(e){ez(t),n(e)})}}}var s=n;
6if(ez(t),0===ej){var l=b.current;return null!==l&&(eK(l),b.current=null),{then:function(e,t){null===b.current?(b.current=[],eU(s,e,t)):e(s)}}}return{then:function(e,t){e(s)}}},e.useCallback=function(e,t){return ea().useCallback(e,t)},e.useContext=function(e){var t=ea();if(void 0!==e._context){var n=e._context;n.Consumer===e?S("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&S("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},e.useDebugValue=function(e,t){return ea().useDebugValue(e,t)},e.useDeferredValue=function(e){return ea().useDeferredValue(e)},e.useEffect=function(e,t){return ea().useEffect(e,t)},e.useId=function(){return ea().useId()},e.useImperativeHandle=function(e,t,n){return ea().useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return ea().useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return ea().useLayoutEffect(e,t)},e.useMemo=function(e,t){return ea().useMemo(e,t)},e.useReducer=function(e,t,n){return ea().useReducer(e,t,n)},e.useRef=function(e){return ea().useRef(e)}
6,e.useState=function(e){return ea().useState(e)},e.useSyncExternalStore=function(e,t,n){return ea().useSyncExternalStore(e,t,n)},e.useTransition=function(){return ea().useTransition()},e.version="18.2.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),_e.exports)),w7.exports}_e.exports;var _n,_r,_i,_o,_a={},_s={exports:{}},_l={},_u={exports:{}},_c={},_d={};function _f(){return _i||(_i=1,"production"===ex.env.NODE_ENV?_u.exports=(_n||(_n=1,function(e){function t(e,t){var n=e.length;for(e.push(t);0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break;e[r]=t,e[n]=o,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>i(c,n)))break;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var i=n(u);null!==i;){if(null===i.callback)r(u);else{if(!(i.startTime<=e))break;r(u),i.sortIndex=i.expirationTime,t(l,i)}i=n(u)}}function A(e){if(m=!1,y(e),!p){if(null!==n(l))p=!0,O(w);else{var t=n(u);null!==t&&P(A,t.startTime-e)}}}function w(t,i){p=!1,m&&(m=!1,v(k),k=-1),h=!0;var o=f;try{for(y(i),d=n(l);null!==d&&(!(d.expirationTime>i)||t&&!x());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=i);i=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),y(i)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&P(A,g.startTime-i),c=!1}return c}finally{d=null,f=o,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,E=!1,S=null,k=-1,M=5,C=-1;function x(){return!(e.unstable_now()-C<M)}function R(){if(null!==S){var t=e.unstable_now();C=t;var n=!0;try{n=S(!0,t)}finally{n?_():(E=!1,S=null)}}else E=!1}if("function"==typeof b)_=function(){b(R)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,T=I.port2;I.port1.onmessage=R,_=function(){T.postMessage(null)}}else _=function(){g(R,0)};function O(e){S=e,E||(E=!0,_())}function P(t,n){k=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,O(w))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,o){var a=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:i,priorityLevel:r,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(r.sortIndex=o,t(u,r),null===n(l)&&r===n(u)&&(m?(v(k),k=-1):m=!0,P(A,o-a))):(r.sortIndex=s,t(l,r),p||h||(p=!0,O(w))),r},e.unstable_shouldYield=x,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(_c)),_c):_u.exports=(_r||(_r=1,"production"!==ex.env.NODE_ENV&&function(){function e(e,t){var n=e.length;e.push(t),function(e,t,n){for(var i=n;i>0;){var o=i-1>>>1,a=e[o];if(!(r(a,t)>0))return;e[o]=t,e[i]=a,i=o}}
6(e,t,n)}function t(e){return 0===e.length?null:e[0]}function n(e){if(0===e.length)return null;var t=e[0],n=e.pop();return n!==t&&(e[0]=n,function(e,t,n){for(var i=0,o=e.length,a=o>>>1;i<a;){var s=2*(i+1)-1,l=e[s],u=s+1,c=e[u];if(0>r(l,t))u<o&&0>r(c,l)?(e[i]=c,e[u]=t,i=u):(e[i]=l,e[s]=t,i=s);else{if(!(u<o&&0>r(c,t)))return;e[i]=c,e[u]=t,i=u}}}(e,n,0)),t}function r(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),"object"==typeof performance&&"function"==typeof performance.now){var i=performance;_d.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();_d.unstable_now=function(){return o.now()-a}}var s=[],l=[],u=1,c=null,d=3,f=!1,h=!1,p=!1,m="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function b(r){for(var i=t(l);null!==i;){if(null===i.callback)n(l);else{if(!(i.startTime<=r))return;n(l),i.sortIndex=i.expirationTime,e(s,i)}i=t(l)}}function y(e){if(p=!1,b(e),!h){if(null!==t(s))h=!0,T(A);else{var n=t(l);null!==n&&O(y,n.startTime-e)}}}function A(e,r){h=!1,p&&(p=!1,g(E),E=-1),f=!0;var i=d;try{return function(e,r){var i=r;for(b(i),c=t(s);null!==c&&(!(c.expirationTime>i)||e&&!M());){var o=c.callback;if("function"==typeof o){c.callback=null,d=c.priorityLevel;var a=o(c.expirationTime<=i);i=_d.unstable_now(),"function"==typeof a?c.callback=a:c===t(s)&&n(s),b(i)}else n(s);c=t(s)}if(null!==c)return!0;var u=t(l);return null!==u&&O(y,u.startTime-i),!1}(e,r)}finally{c=null,d=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w=!1,_=null,E=-1,S=5,k=-1;function M(){return!(_d.unstable_now()-k<S)}var C,x=function(){if(null!==_){var e=_d.unstable_now();k=e;var t=!0;try{t=_(!0,e)}finally{t?C():(w=!1,_=null)}}else w=!1};if("function"==typeof v)C=function(){v(x)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,I=R.port2;R.port1.onmessage=x,C=function(){I.postMessage(null)}}else C=function(){m(x,0)};function T(e){_=e,w||(w=!0,C())}function O(e,t){E=m(function(){e(_d.unstable_now())},t)}_d.unstable_IdlePriority=5,_d.unstable_ImmediatePriority=1,_d.unstable_LowPriority=4,_d.unstable_NormalPriority=3,_d.unstable_Profiling=null,_d.unstable_UserBlockingPriority=2,_d.unstable_cancelCallback=function(e){e.callback=null},_d.unstable_continueExecution=function(){h||f||(h=!0,T(A))},_d.unstable_forceFrameRate=function(e){e<0||e>125?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=e>0?Math.floor(1e3/e):5},_d.unstable_getCurrentPriorityLevel=function(){return d},_d.unstable_getFirstCallbackNode=function(){return t(s)},_d.unstable_next=function(e){switch(d){case 1:case 2:case 3:t=3;break;default:t=d}var t,n=d;d=t;try{return e()}finally{d=n}},_d.unstable_pauseExecution=function(){},_d.unstable_requestPaint=function(){},_d.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=d;d=e;try{return t()}finally{d=n}},_d.unstable_scheduleCallback=function(n,r,i){var o,a,c=_d.unstable_now();if("object"==typeof i&&null!==i){var d=i.delay;o="number"==typeof d&&d>0?c+d:c}else o=c;switch(n){case 1:a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}var m=o+a,v={id:u++,callback:r,priorityLevel:n,startTime:o,expirationTime:m,sortIndex:-1};return o>c?(v.sortIndex=o,e(l,v),null===t(s)&&v===t(l)&&(p?(g(E),E=-1):p=!0,O(y,o-c))):(v.sortIndex=m,e(s,v),h||f||(h=!0,T(A))),v},_d.unstable_shouldYield=M,_d.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),_d)),_u.exports}var _h,_p,_m,_g,_v={},_b={exports:{}};function _y(){return _g||(_g=1,self,_b.exports=(()=>{var e={192:(e,t)=>{var n,r,i=function(){var e,t,n=function(e,t){var n=e,r=a[t],i=null,o=0,l=null,g=[],v={},y=function(e,t){i=function(e){for(var t=Array(e),n=0;n<e;n+=1){t[n]=Array(e);for(var r=0;r<e;r+=1)t[n][r]=null}return t}
vendor: 2,907 bytes, line 6
6(o=4*n+17),A(0,0),A(o-7,0),A(0,o-7),_(),w(),S(e,t),n>=7&&E(e),null==l&&(l=M(n,r,g)),k(l,t)},A=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||o<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||o<=t+r||(i[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},w=function(){for(var e=8;e<o-8;e+=1)null==i[e][6]&&(i[e][6]=e%2==0);for(var t=8;t<o-8;t+=1)null==i[6][t]&&(i[6][t]=t%2==0)},_=function(){for(var e=s.getPatternPosition(n),t=0;t<e.length;t+=1)for(var r=0;r<e.length;r+=1){var o=e[t],a=e[r];if(null==i[o][a])for(var l=-2;l<=2;l+=1)for(var u=-2;u<=2;u+=1)i[o+l][a+u]=-2==l||2==l||-2==u||2==u||0==l&&0==u}},E=function(e){for(var t=s.getBCHTypeNumber(n),r=0;r<18;r+=1){var a=!e&&1==(t>>r&1);i[Math.floor(r/3)][r%3+o-8-3]=a}for(r=0;r<18;r+=1)a=!e&&1==(t>>r&1),i[r%3+o-8-3][Math.floor(r/3)]=a},S=function(e,t){for(var n=r<<3|t,a=s.getBCHTypeInfo(n),l=0;l<15;l+=1){var u=!e&&1==(a>>l&1);l<6?i[l][8]=u:l<8?i[l+1][8]=u:i[o-15+l][8]=u}for(l=0;l<15;l+=1)u=!e&&1==(a>>l&1),l<8?i[8][o-l-1]=u:l<9?i[8][15-l-1+1]=u:i[8][15-l-1]=u;i[o-8][8]=!e},k=function(e,t){for(var n=-1,r=o-1,a=7,l=0,u=s.getMaskFunction(t),c=o-1;c>0;c-=2)for(6==c&&(c-=1);;){for(var d=0;d<2;d+=1)if(null==i[r][c-d]){var f=!1;l<e.length&&(f=1==(e[l]>>>a&1)),u(r,c-d)&&(f=!f),i[r][c-d]=f,-1==(a-=1)&&(l+=1,a=7)}if((r+=n)<0||o<=r){r-=n,n=-n;break}}},M=function(e,t,n){for(var r=c.getRSBlocks(e,t),i=d(),o=0;o<n.length;o+=1){var a=n[o];i.put(a.getMode(),4),i.put(a.getLength(),s.getLengthInBits(a.getMode(),e)),a.write(i)}var l=0;for(o=0;o<r.length;o+=1)l+=r[o].dataCount;if(i.getLengthInBits()>8*l)throw"code length overflow. ("+i.getLengthInBits()+">"+8*l+")";for(i.getLengthInBits()+4<=8*l&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*l||(i.put(236,8),i.getLengthInBits()>=8*l));)i.put(17,8);return function(e,t){for(var n=0,r=0,i=0,o=Array(t.length),a=Array(t.length),l=0;l<t.length;l+=1){var c=t[l].dataCount,d=t[l].totalCount-c;r=Math.max(r,c),i=Math.max(i,d),o[l]=Array(c);for(var f=0;f<o[l].length;f+=1)o[l][f]=255&e.getBuffer()[f+n];n+=c;var h=s.getErrorCorrectPolynomial(d),p=u(o[l],h.getLength()-1).mod(h);for(a[l]=Array(h.getLength()-1),f=0;f<a[l].length;f+=1){var m=f+p.getLength()-a[l].length;a[l][f]=m>=0?p.getAt(m):0}}var g=0;for(f=0;f<t.length;f+=1)g+=t[f].totalCount;var v=Array(g),b=0;for(f=0;f<r;f+=1)for(l=0;l<t.length;l+=1)f<o[l].length&&(v[b]=o[l][f],b+=1);for(f=0;f<i;f+=1)for(l=0;l<t.length;l+=1)f<a[l].length&&(v[b]=a[l][f],b+=1);return v}(i,r)};v.addData=function(e,t){var n=null;switch(t=t||"Byte"){case"Numeric":n=f(e);break;case"Alphanumeric":n=h(e);break;case"Byte":n=p(e);break;case"Kanji":n=m(e);break;default:throw"mode:"+t}g.push(n),l=null},v.isDark=function(e,t){if(e<0||o<=e||t<0||o<=t)throw e+","+t;return i[e][t]},v.getModuleCount=function(){return o},v.make=function(){if(n<1){for(var e=1;e<40;e++){for(var t=c.getRSBlocks(e,r),i=d(),o=0;o<g.length;
6o++){var a=g[o];i.put(a.getMode(),4),i.put(a.getLength(),s.getLengthInBits(a.getMode(),e)),a.write(i)}var l=0;for(o=0;o<t.length;o++)l+=t[o].dataCount;if(i.getLengthInBits()<=8*l)break}n=e}y(!1,function(){for(var e=0,t=0,n=0;n<8;n+=1){y(!0,n);var r=s.getLostPoint(v);(0==n||e>r)&&(e=r,t=n)}return t}())},v.createTableTag=function(e,t){e=e||2;var n="";n+='<table style=" border-width: 0px; border-style: none; border-collapse: collapse; padding: 0px; margin: '+(t=void 0===t?4*e:t)+'px;"><tbody>';for(var r=0;r<v.getModuleCount();r+=1){n+="<tr>";for(var i=0;i<v.getModuleCount();i+=1)n+='<td style=" border-width: 0px; border-style: none; border-collapse: collapse; padding: 0px; margin: 0px; width: '+e+"px; height: "+e+"px; background-color: "+(v.isDark(r,i)?"#000000":"#ffffff")+';"/>';n+="</tr>"}return(n+="</tbody>")+"</table>"},v.createSvgTag=function(e,t,n,r){var i={};"object"==typeof arguments[0]&&(e=(i=arguments[0]).cellSize,t=i.margin,n=i.alt,r=i.title),e=e||2,t=void 0===t?4*e:t,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var o,a,s,l,u=v.getModuleCount()*e+2*t,c="";for(l="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",c+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"'+(i.scalable?"":' width="'+u+'px" height="'+u+'px"')+(' viewBox="0 0 '+u+" ")+u+'"  preserveAspectRatio="xMinYMin meet"'+(r.text||n.text?' role="img" aria-labelledby="'+C([r.id,n.id].join(" ").trim())+'"':"")+">"+(r.text?'<title id="'+C(r.id)+'">'+C(r.text)+"</title>":"")+(n.text?'<description id="'+C(n.id)+'">'+C(n.text)+"</description>":"")+'<rect width="100%" height="100%" fill="white" cx="0" cy="0"/><path d="',a=0;a<v.getModuleCount();a+=1)for(s=a*e+t,o=0;o<v.getModuleCount();o+=1)v.isDark(a,o)&&(c+="M"+(o*e+t)+","+s+l);return(c+='" stroke="transparent" fill="black"/>')+"</svg>"},v.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var n=v.getModuleCount()*e+2*t,r=t,i=n-t;return b(n,n,function(t,n){if(r<=t&&t<i&&r<=n&&n<i){var o=Math.floor((t-r)/e),a=Math.floor((n-r)/e);return v.isDark(a,o)?0:1}return 1})},v.createImgTag=function(e,t,n){e=e||2,t=void 0===t?4*e:t;var r=v.getModuleCount()*e+2*t,i="";return i+='<img src="'+v.createDataURL(e,t)+'" width="'+r+'" height="'+r+'"',n&&(i+=' alt="'+C(n)+'"'),i+"/>"};var C=function(e){for(var t="",n=0;n<e.length;n+=1){var r=e.charAt(n);switch(r){case"<":t+="&lt;";break;case">":t+="&gt;";break;case"&":t+="&amp;";break;case'"':t+="&quot;";break;default:t+=r}}return t};return v.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,n,r,i,o,a=1*v.getModuleCount()+2*e,s=e,l=a-e,u={"██":"█","█ ":"▀"," █":"▄","  ":" "},c={"██":"▀","█ ":"▀"," █":" ","  ":" "},d="";for(t=0;t<a;t+=2){for(r=Math.floor((t-s)/1),i=Math.floor((t+1-s)/1),n=0;n<a;n+=1)o="█",s<=n&&n<l&&s<=t&&t<l&&v.isDark(r,Math.floor((n-s)/1))&&(o=" "),s<=n&&n<l&&s<=t+1&&t+1<l&&v.isDark(i,Math.floor((n-s)/1))?o+=" ":o+="█",d+=e<1&&t+1>=l?c[o]:u[o];d+="\n"}return a%2&&e>0?d.substring(0,d.length-a-1)+Array(a+1).join("▀"):d.substring(0,d.length-1)}(t);e-=1,t=void 0===t?2*e:t;var n,r,i,o,a=v.getModuleCount()*e+2*t,s=t,l=a-t,u=Array(e+1).join("██"),c=Array(e+1).join("  "),d="",f="";for(n=0;n<a;n+=1){for(i=Math.floor((n-s)/e),f="",r=0;r<a;r+=1)o=1,s<=r&&r<l&&s<=n&&n<l&&v.isDark(i,Math.floor((r-s)/e))&&(o=0),f+=o?u:c;for(i=0;i<e;i+=1)d+=f+"\n"}return d.substring(0,d.length-1)},v.renderTo2dContext=function(e,t){t=t||2;for(var n=v.getModuleCount(),r=0;r<n;r++)for(var i=0;i<n;i++)e.fillStyle=v.isDark(r,i)?"black":"white",e.fillRect(r*t,i*t,t,t)},v};n.stringToBytes=(n.stringToBytesFuncs={default:function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e.charCodeAt(n);t.push(255&r)}return t}}).default,n.createStringToBytes=function(e,t){var n=function(){for(var n=v(e),r=function(){var e=n.read();if(-1==e)throw"eof";return e},i=0,o={};;){var a=n.read();if(-1==a)break;var s=r(),l=r()<<8|r();o[String.fromCharCode(a<<8|s)]=l,i+=1}if(i!=t)throw i+" != "+t;return o}();return function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);if(i<128)t.push(i);else{var o=n[e.charAt(r)];"number"==typeof o?(255&o)==o?t.push(o):(t.push(o>>>
68),t.push(255&o)):t.push(63)}}return t}};var r,i,o,a={L:1,M:0,Q:3,H:2},s=(r=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],o=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(i={}).getBCHTypeInfo=function(e){for(var t=e<<10;o(t)-o(1335)>=0;)t^=1335<<o(t)-o(1335);return 21522^(e<<10|t)},i.getBCHTypeNumber=function(e){for(var t=e<<12;o(t)-o(7973)>=0;)t^=7973<<o(t)-o(7973);return e<<12|t},i.getPatternPosition=function(e){return r[e-1]},i.getMaskFunction=function(e){switch(e){case 0:return function(e,t){return(e+t)%2==0};case 1:return function(e,t){return e%2==0};case 2:return function(e,t){return t%3==0};case 3:return function(e,t){return(e+t)%3==0};case 4:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case 5:return function(e,t){return e*t%2+e*t%3==0};case 6:return function(e,t){return(e*t%2+e*t%3)%2==0};case 7:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},i.getErrorCorrectPolynomial=function(e){for(var t=u([1],0),n=0;n<e;n+=1)t=t.multiply(u([1,l.gexp(n)],0));return t},i.getLengthInBits=function(e,t){if(1<=t&&t<10)switch(e){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+e}else if(t<27)switch(e){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+e}else{if(!(t<41))throw"type:"+t;switch(e){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+e}}},i.getLostPoint=function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r+=1)for(var i=0;i<t;i+=1){for(var o=0,a=e.isDark(r,i),s=-1;s<=1;s+=1)if(!(r+s<0||t<=r+s))for(var l=-1;l<=1;l+=1)i+l<0||t<=i+l||0==s&&0==l||a==e.isDark(r+s,i+l)&&(o+=1);o>5&&(n+=3+o-5)}for(r=0;r<t-1;r+=1)for(i=0;i<t-1;i+=1){var u=0;e.isDark(r,i)&&(u+=1),e.isDark(r+1,i)&&(u+=1),e.isDark(r,i+1)&&(u+=1),e.isDark(r+1,i+1)&&(u+=1),0!=u&&4!=u||(n+=3)}for(r=0;r<t;r+=1)for(i=0;i<t-6;i+=1)e.isDark(r,i)&&!e.isDark(r,i+1)&&e.isDark(r,i+2)&&e.isDark(r,i+3)&&e.isDark(r,i+4)&&!e.isDark(r,i+5)&&e.isDark(r,i+6)&&(n+=40);for(i=0;i<t;i+=1)for(r=0;r<t-6;r+=1)e.isDark(r,i)&&!e.isDark(r+1,i)&&e.isDark(r+2,i)&&e.isDark(r+3,i)&&e.isDark(r+4,i)&&!e.isDark(r+5,i)&&e.isDark(r+6,i)&&(n+=40);var c=0;for(i=0;i<t;i+=1)for(r=0;r<t;r+=1)e.isDark(r,i)&&(c+=1);return n+Math.abs(100*c/t/t-50)/5*10},i),l=function(){for(var e=Array(256),t=Array(256),n=0;n<8;n+=1)e[n]=1<<n;for(n=8;n<256;n+=1)e[n]=e[n-4]^e[n-5]^e[n-6]^e[n-8];for(n=0;n<255;n+=1)t[e[n]]=n;return{glog:function(e){if(e<1)throw"glog("+e+")";return t[e]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]}}}();function u(e,t){if(void 0===e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n<e.length&&0==e[n];)n+=1;for(var r=Array(e.length-n+t),i=0;i<e.length-n;i+=1)r[i]=e[i+n];return r}(),r={getAt:function(e){return n[e]},getLength:function(){return n.length},multiply:function(e){for(var t=Array(r.getLength()+e.getLength()-1),n=0;n<r.getLength();n+=1)for(var i=0;i<e.getLength();i+=1)t[n+i]^=l.gexp(l.glog(r.getAt(n))+l.glog(e.getAt(i)));return u(t,0)},mod:function(e){if(r.getLength()-e.getLength()<0)return r;for(var t=l.glog(r.getAt(0))-l.glog(e.getAt(0)),n=Array(r.getLength()),i=0;i<r.getLength();i+=1)n[i]=r.getAt(i);for(i=0;i<e.getLength();i+=1)n[i]^=l.gexp(l.glog(e.getAt(i))+t);return u(n,0).mod(e)}};return r}var c=(e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37
6],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){var n={};return n.totalCount=e,n.dataCount=t,n},{getRSBlocks:function(n,r){var i=function(t,n){switch(n){case a.L:return e[4*(t-1)+0];case a.M:return e[4*(t-1)+1];case a.Q:return e[4*(t-1)+2];case a.H:return e[4*(t-1)+3];default:return}}(n,r);if(void 0===i)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+r;for(var o=i.length/3,s=[],l=0;l<o;l+=1)for(var u=i[3*l+0],c=i[3*l+1],d=i[3*l+2],f=0;f<u;f+=1)s.push(t(c,d));return s}}),d=function(){var e=[],t=0,n={getBuffer:function(){return e},getAt:function(t){return 1==(e[Math.floor(t/8)]>>>7-t%8&1)},put:function(e,t){for(var r=0;r<t;r+=1)n.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},f=function(e){var t=function(e){for(var t=0,r=0;r<e.length;r+=1)t=10*t+n(e.charAt(r));return t},n=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-48;throw"illegal char :"+e};return{getMode:function(){return 1},getLength:function(t){return e.length},write:function(n){for(var r=0;r+2<e.length;)n.put(t(e.substring(r,r+3)),10),r+=3;r<e.length&&(e.length-r==1?n.put(t(e.substring(r,r+1)),4):e.length-r==2&&n.put(t(e.substring(r,r+2)),7))}}},h=function(e){var t=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-48;if("A"<=e&&e<="Z")return e.charCodeAt(0)-65+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return{getMode:function(){return 2},getLength:function(t){return e.length},write:function(n){for(var r=0;r+1<e.length;)n.put(45*t(e.charAt(r))+t(e.charAt(r+1)),11),r+=2;r<e.length&&n.put(t(e.charAt(r)),6)}}},p=function(e){var t=n.stringToBytes(e);return{getMode:function(){return 4},getLength:function(e){return t.length},write:function(e){for(var n=0;n<t.length;n+=1)e.put(t[n],8)}}},m=function(e){var t=n.stringToBytesFuncs.SJIS;if(!t)throw"sjis not supported.";!function(e,n){var r=t("友");
6if(2!=r.length||38726!=(r[0]<<8|r[1]))throw"sjis not supported."}();var r=t(e);return{getMode:function(){return 8},getLength:function(e){return~~(r.length/2)},write:function(e){for(var t=0;t+1<r.length;){var n=(255&r[t])<<8|255&r[t+1];if(33088<=n&&n<=40956)n-=33088;else{if(!(57408<=n&&n<=60351))throw"illegal char at "+(t+1)+"/"+n;n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13),t+=2}if(t<r.length)throw"illegal char at "+(t+1)}}},g=function(){var e=[],t={writeByte:function(t){e.push(255&t)},writeShort:function(e){t.writeByte(e),t.writeByte(e>>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var i=0;i<r;i+=1)t.writeByte(e[i+n])},writeString:function(e){for(var n=0;n<e.length;n+=1)t.writeByte(e.charCodeAt(n))},toByteArray:function(){return e},toString:function(){var t="";t+="[";for(var n=0;n<e.length;n+=1)n>0&&(t+=","),t+=e[n];return t+"]"}};return t},v=function(e){var t=0,n=0,r=0,i=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return{read:function(){for(;r<8;){if(t>=e.length){if(0==r)return -1;throw"unexpected end of file./"+r}var o=e.charAt(t);if(t+=1,"="==o)return r=0,-1;o.match(/^\s$/)||(n=n<<6|i(o.charCodeAt(0)),r+=6)}var a=n>>>r-8&255;return r-=8,a}}},b=function(e,t,n){for(var r,i,o,a,s,l,u,c,d,f,h=(r=Array(e*t),i=function(e){for(var t=1<<e,n=1+(1<<e),i=e+1,a=o(),s=0;s<t;s+=1)a.add(String.fromCharCode(s));a.add(String.fromCharCode(t)),a.add(String.fromCharCode(n));var l,u,c=g(),d=(l=0,u=0,{write:function(e,t){if(e>>>t!=0)throw"length over";for(;l+t>=8;)c.writeByte(255&(e<<l|u)),t-=8-l,e>>>=8-l,u=0,l=0;u|=e<<l,l+=t},flush:function(){l>0&&c.writeByte(u)}});d.write(t,i);var f=0,h=String.fromCharCode(r[0]);for(f+=1;f<r.length;){var p=String.fromCharCode(r[f]);f+=1,a.contains(h+p)?h+=p:(d.write(a.indexOf(h),i),4095>a.size()&&(a.size()==1<<i&&(i+=1),a.add(h+p)),h=p)}return d.write(a.indexOf(h),i),d.write(n,i),d.flush(),c.toByteArray()},o=function(){var e={},t=0,n={add:function(r){if(n.contains(r))throw"dup key:"+r;e[r]=t,t+=1},size:function(){return t},indexOf:function(t){return e[t]},contains:function(t){return void 0!==e[t]}};return n},{setPixel:function(t,n,i){r[n*e+t]=i},write:function(n){n.writeString("GIF87a"),n.writeShort(e),n.writeShort(t),n.writeByte(128),n.writeByte(0),n.writeByte(0),n.writeByte(0),n.writeByte(0),n.writeByte(0),n.writeByte(255),n.writeByte(255),n.writeByte(255),n.writeString(","),n.writeShort(0),n.writeShort(0),n.writeShort(e),n.writeShort(t),n.writeByte(0);var r=i(2);n.writeByte(2);for(var o=0;r.length-o>255;)n.writeByte(255),n.writeBytes(r,o,255),o+=255;n.writeByte(r.length-o),n.writeBytes(r,o,r.length-o),n.writeByte(0),n.writeString(";")}}),p=0;p<t;p+=1)for(var m=0;m<e;m+=1)h.setPixel(m,p,n(m,p));var v=g();h.write(v);for(var b=(a=0,s=0,l=0,u="",c={},d=function(e){u+=String.fromCharCode(f(63&e))},f=function(e){if(e<0);else{if(e<26)return 65+e;if(e<52)return e-26+97;if(e<62)return e-52+48;if(62==e)return 43;if(63==e)return 47}throw"n:"+e},c.writeByte=function(e){for(a=a<<8|255&e,s+=8,l+=1;s>=6;)d(a>>>s-6),s-=6},c.flush=function(){if(s>0&&(d(a<<6-s),a=0,s=0),l%3!=0)for(var e=3-l%3,t=0;t<e;t+=1)u+="="},c.toString=function(){return u},c),y=v.toByteArray(),A=0;A<y.length;A+=1)b.writeByte(y[A]);return b.flush(),"data:image/gif;base64,"+b};return n}();i.stringToBytesFuncs["UTF-8"]=function(e){return function(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?t.push(192|r>>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}(e)},void 0===(r="function"==typeof(n=function(){return i})?n.apply(t,[]):n)||(e.exports=r)},676:(e,t,n)=>{n.d(t,{default:()=>O});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},o=function(e){return!!e&&"object"==typeof e&&!Array.isArray(e)};function a(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!t.length)return e;var s=t.shift();return void 0!==s&&o(e)&&o(s)?(e=r({}
6,e),Object.keys(s).forEach(function(t){var n=e[t],r=s[t];Array.isArray(n)&&Array.isArray(r)?e[t]=r:o(n)&&o(r)?e[t]=a(Object.assign({},n),r):e[t]=r}),a.apply(void 0,i([e],t))):e}function s(e,t){var n=document.createElement("a");n.download=t,n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)}let l={L:.07,M:.15,Q:.25,H:.3};var u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};let c=function(){function e(e){var t=e.svg,n=e.type;this._svg=t,this._type=n}return e.prototype.draw=function(e,t,n,r){var i;switch(this._type){case"dots":i=this._drawDot;break;case"classy":i=this._drawClassy;break;case"classy-rounded":i=this._drawClassyRounded;break;case"rounded":i=this._drawRounded;break;case"extra-rounded":i=this._drawExtraRounded;break;default:i=this._drawSquare}i.call(this,{x:e,y:t,size:n,getNeighbor:r})},e.prototype._rotateFigure=function(e){var t,n=e.x,r=e.y,i=e.size,o=e.rotation;(0,e.draw)(),null===(t=this._element)||void 0===t||t.setAttribute("transform","rotate("+180*(void 0===o?0:o)/Math.PI+","+(n+i/2)+","+(r+i/2)+")")},e.prototype._basicDot=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(u(u({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),t._element.setAttribute("cx",String(r+n/2)),t._element.setAttribute("cy",String(i+n/2)),t._element.setAttribute("r",String(n/2))}}))},e.prototype._basicSquare=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(u(u({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),t._element.setAttribute("x",String(r)),t._element.setAttribute("y",String(i)),t._element.setAttribute("width",String(n)),t._element.setAttribute("height",String(n))}}))},e.prototype._basicSideRounded=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(u(u({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("d","M "+r+" "+i+"v "+n+"h "+n/2+"a "+n/2+" "+n/2+", 0, 0, 0, 0 "+-n)}}))},e.prototype._basicCornerRounded=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(u(u({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("d","M "+r+" "+i+"v "+n+"h "+n+"v "+-n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+-n/2+" "+-n/2)}}))},e.prototype._basicCornerExtraRounded=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(u(u({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("d","M "+r+" "+i+"v "+n+"h "+n+"a "+n+" "+n+", 0, 0, 0, "+-n+" "+-n)}}))},e.prototype._basicCornersRounded=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(u(u({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("d","M "+r+" "+i+"v "+n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+n/2+" "+n/2+"h "+n/2+"v "+-n/2+"a "+n/2+" "+n/2+", 0, 0, 0, "+-n/2+" "+-n/2)}}))},e.prototype._drawDot=function(e){var t=e.x,n=e.y,r=e.size;this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawSquare=function(e){var t=e.x,n=e.y,r=e.size;this._basicSquare({x:t,y:n,size:r,rotation:0})},e.prototype._drawRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,l=i?+i(0,1):0,u=o+a+s+l;if(0!==u){if(u>2||o&&a||s&&l)this._basicSquare({x:t,y:n,size:r,rotation:0});else{if(2===u){var c=0;return o&&s?c=Math.PI/2:s&&a?c=Math.PI:a&&l&&(c=-Math.PI/2),void this._basicCornerRounded({x:t,y:n,size:r,rotation:c})}if(1===u)return c=0,s?c=Math.PI/2:a?c=Math.PI:l&&(c=-Math.PI/2),void this._basicSideRounded({x:t,y:n,size:r,rotation:c})}}else this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawExtraRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,l=i?+i(0,1):0,u=o+a+s+l;if(0!==u){if(u>2||o&&a||s&&l)this._basicSquare({x:t,y:n,size:r,rotation:0});else{if(2===u){var c=0;return o&&s?c=Math.PI/2:s&&a?c=Math.PI:a&&l&&(c=-Math.PI/2),void this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:c})}if(1===u)return c=0,s?c=Math.PI/2:a?c=Math.PI:l&&(c=-Math.PI/2),void this._basicSideRounded({x:t,y:n,size:r,rotation:c})}}else this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawClassy=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,l=i?+i(0,1):0;0!==o+a+s+l?o||s?a||l?this._basicSquare({x:t,y:n,size:r,rotation:0}):this._basicCornerRounded({x:t,y:n,size:r,rotation:Math.PI/2}):this._basicCornerRounded({x:t,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:n,size:r,rotation:Math.PI/2})},e.prototype._drawClassyRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,l=i?+i(0,1):0;0!==o+a+s+l?o||s?a||l?this._basicSquare({x:t,y:n,size:r,rotation:0}):this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:n,size:r,rotation:Math.PI/2})},e}();var d=function(){return(d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};let f=function(){function e(e){var t=e.svg,n=e.type;this._svg=t,this._type=n}return e.prototype.draw=function(e,t,n,r){var i;switch(this._type){case"square":i=this._drawSquare;break;case"extra-rounded":i=this._drawExtraRounded;break;default:i=this._drawDot}i.call(this,{x:e,y:t,size:n,rotation:r})},e.prototype._rotateFigure=function(e){var t,n=e.x,r=e.y,i=e.size,o=e.rotation;(0,e.draw)(),null===(t=this._element)||void 0===t||t.setAttribute("transform","rotate("+180*(void 0===o?0:o)/Math.PI+","+(n+i/2)+","+(r+i/2)+")")},e.prototype._basicDot=function(e){var t=this,n=e.size,r=e.x,i=e.y,o=n/7;this._rotateFigure(d(d({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("clip-rule","evenodd"),t._element.setAttribute("d","M "+(r+n/2)+" "+i+"a "+n/2+" "+n/2+" 0 1 0 0.1 0zm 0 "+o+"a "+(n/2-o)+" "+(n/2-o)+" 0 1 1 -0.1 0Z")}}))},e.prototype._basicSquare=function(e){var t=this,n=e.size,r=e.x,i=e.y,o=n/7;this._rotateFigure(d(d({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("clip-rule","evenodd"),t._element.setAttribute("d","M "+r+" "+i+"v "+n+"h "+n+"v "+-n+"zM "+(r+o)+" "+(i+o)+"h "+(n-2*o)+"v "+(n-2*o)+"h "+(2*o-n)+"z")}}))},e.prototype._basicExtraRounded=function(e){var t=this,n=e.size,r=e.x,i=e.y,o=n/7;this._rotateFigure(d(d({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("clip-rule","evenodd"),t._element.setAttribute("d","M "+r+" "+(i+2.5*o)+"v "+2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*o+" "+2.5*o+"h "+2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*o+" "+-(2.5*o)+"v "+-2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+-(2.5*o)+" "+-(2.5*o)+"h "+-2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+-(2.5*o)+" "+2.5*o+"M "+(r+2.5*o)+" "+(i+o)+"h "+2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*o+" "+1.5*o+"v "+2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+-(1.5*o)+" "+1.5*o+"h "+-2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+-(1.5*o)+" "+-(1.5*o)+"v "+-2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*o+" "+-(1.5*o))}}))},e.prototype._drawDot=function(e){var t=e.x,n=e.y,r=e.size,i=e.rotation;this._basicDot({x:t,y:n,size:r,rotation:i})},e.prototype._drawSquare=function(e){var t=e.x,n=e.y,r=e.size,i=e.rotation;this._basicSquare({x:t,y:n,size:r,rotation:i})},e.prototype._drawExtraRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.rotation;this._basicExtraRounded({x:t,y:n,size:r,rotation:i})},e}();
6var h=function(){return(h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};let p=function(){function e(e){var t=e.svg,n=e.type;this._svg=t,this._type=n}return e.prototype.draw=function(e,t,n,r){("square"===this._type?this._drawSquare:this._drawDot).call(this,{x:e,y:t,size:n,rotation:r})},e.prototype._rotateFigure=function(e){var t,n=e.x,r=e.y,i=e.size,o=e.rotation;(0,e.draw)(),null===(t=this._element)||void 0===t||t.setAttribute("transform","rotate("+180*(void 0===o?0:o)/Math.PI+","+(n+i/2)+","+(r+i/2)+")")},e.prototype._basicDot=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(h(h({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),t._element.setAttribute("cx",String(r+n/2)),t._element.setAttribute("cy",String(i+n/2)),t._element.setAttribute("r",String(n/2))}}))},e.prototype._basicSquare=function(e){var t=this,n=e.size,r=e.x,i=e.y;this._rotateFigure(h(h({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),t._element.setAttribute("x",String(r)),t._element.setAttribute("y",String(i)),t._element.setAttribute("width",String(n)),t._element.setAttribute("height",String(n))}}))},e.prototype._drawDot=function(e){var t=e.x,n=e.y,r=e.size,i=e.rotation;this._basicDot({x:t,y:n,size:r,rotation:i})},e.prototype._drawSquare=function(e){var t=e.x,n=e.y,r=e.size,i=e.rotation;this._basicSquare({x:t,y:n,size:r,rotation:i})},e}(),m="circle";var g=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},v=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},b=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],y=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];let A=function(){function e(e){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(e.width)),this._element.setAttribute("height",String(e.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=e}return Object.defineProperty(e.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),e.prototype.getElement=function(){return this._element},e.prototype.drawQR=function(e){return g(this,void 0,void 0,function(){var t,n,r,i,o,a,s,u,c=this;return v(this,function(d){switch(d.label){case 0:return t=e.getModuleCount(),n=Math.min(this._options.width,this._options.height)-2*this._options.margin,r=Math.floor((this._options.shape===m?n/Math.sqrt(2):n)/t),i={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=e,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(d.sent(),!this._image)return[2];a=(o=this._options).imageOptions,s=o.qrOptions,u=Math.floor(a.imageSize*l[s.errorCorrectionLevel]*t*t),i=function(e){var t=e.originalHeight,n=e.originalWidth,r=e.maxHiddenDots,i=e.maxHiddenAxisDots,o=e.dotSize,a={x:0,y:0},s={x:0,y:0};if(t<=0||n<=0||r<=0||o<=0)return{height:0,width:0,hideYDots:0,hideXDots:0}
vendor: 4,123 bytes, line 6
6;var l=t/n;return a.x=Math.floor(Math.sqrt(r/l)),a.x<=0&&(a.x=1),i&&i<a.x&&(a.x=i),a.x%2==0&&a.x--,s.x=a.x*o,a.y=1+2*Math.ceil((a.x*l-1)/2),s.y=Math.round(s.x*l),(a.y*a.x>r||i&&i<a.y)&&(i&&i<a.y?(a.y=i,a.y%2==0&&a.x--):a.y-=2,s.y=a.y*o,a.x=1+2*Math.ceil((a.y/l-1)/2),s.x=Math.round(s.y/l)),{height:s.y,width:s.x,hideYDots:a.y,hideXDots:a.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:u,maxHiddenAxisDots:t-14,dotSize:r}),d.label=2;case 2:return this.drawBackground(),this.drawDots(function(e,n){var r,o,a,s,l,u;return!(c._options.imageOptions.hideBackgroundDots&&e>=(t-i.hideXDots)/2&&e<(t+i.hideXDots)/2&&n>=(t-i.hideYDots)/2&&n<(t+i.hideYDots)/2||(null===(r=b[e])||void 0===r?void 0:r[n])||(null===(o=b[e-t+7])||void 0===o?void 0:o[n])||(null===(a=b[e])||void 0===a?void 0:a[n-t+7])||(null===(s=y[e])||void 0===s?void 0:s[n])||(null===(l=y[e-t+7])||void 0===l?void 0:l[n])||(null===(u=y[e])||void 0===u?void 0:u[n-t+7]))}),this.drawCorners(),this._options.image?[4,this.drawImage({width:i.width,height:i.height,count:t,dotSize:r})]:[3,4];case 3:d.sent(),d.label=4;case 4:return[2]}})})},e.prototype.drawBackground=function(){var e,t,n,r=this._element,i=this._options;if(r){var o=null===(e=i.backgroundOptions)||void 0===e?void 0:e.gradient,a=null===(t=i.backgroundOptions)||void 0===t?void 0:t.color;if((o||a)&&this._createColor({options:o,color:a,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"background-color"}),null===(n=i.backgroundOptions)||void 0===n?void 0:n.round){var s=Math.min(i.width,i.height),l=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),l.setAttribute("x",String((i.width-s)/2)),l.setAttribute("y",String((i.height-s)/2)),l.setAttribute("width",String(s)),l.setAttribute("height",String(s)),l.setAttribute("rx",String(s/2*i.backgroundOptions.round)),this._backgroundClipPath.appendChild(l)}}},e.prototype.drawDots=function(e){var t,n,r=this;if(!this._qr)throw"QR code is not defined";var i=this._options,o=this._qr.getModuleCount();if(o>i.width||o>i.height)throw"The canvas is too small.";var a=Math.min(i.width,i.height)-2*i.margin,s=Math.floor((i.shape===m?a/Math.sqrt(2):a)/o),l=Math.floor((i.width-o*s)/2),u=Math.floor((i.height-o*s)/2),d=new c({svg:this._element,type:i.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null===(t=i.dotsOptions)||void 0===t?void 0:t.gradient,color:i.dotsOptions.color,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"dot-color"});for(var f=function(t){for(var i=function(i){return e&&!e(t,i)?"continue":(null===(n=h._qr)||void 0===n?void 0:n.isDark(t,i))?(d.draw(l+t*s,u+i*s,s,function(n,a){return!(t+n<0||i+a<0||t+n>=o||i+a>=o)&&!(e&&!e(t+n,i+a))&&!!r._qr&&r._qr.isDark(t+n,i+a)}),void(d._element&&h._dotsClipPath&&h._dotsClipPath.appendChild(d._element))):"continue"},a=0;a<o;a++)i(a)},h=this,p=0;p<o;p++)f(p);if(i.shape===m){var g=Math.floor((a/s-o)/2),v=o+2*g,b=l-g*s,y=u-g*s,A=[],w=Math.floor(v/2);for(p=0;p<v;p++){A[p]=[];for(var _=0;_<v;_++)p>=g-1&&p<=v-g&&_>=g-1&&_<=v-g||Math.sqrt((p-w)*(p-w)+(_-w)*(_-w))>w?A[p][_]=0:A[p][_]=this._qr.isDark(_-2*g<0?_:_>=o?_-2*g:_-g,p-2*g<0?p:p>=o?p-2*g:p-g)?1:0}var E=function(e){for(var t=function(t){if(!A[e][t])return"continue";d.draw(b+e*s,y+t*s,s,function(n,r){var i;return!!(null===(i=A[e+n])||void 0===i?void 0:i[t+r])}),d._element&&S._dotsClipPath&&S._dotsClipPath.appendChild(d._element)},n=0;n<v;n++)t(n)},S=this;for(p=0;p<v;p++)E(p)}},e.prototype.drawCorners=function(){var e=this;if(!this._qr)throw"QR code is not defined";var t=this._element,n=this._options;if(!t)throw"Element code is not defined";var r=this._qr.getModuleCount(),i=Math.min(n.width,n.height)-2*n.margin,o=Math.floor((n.shape===m?i/Math.sqrt(2):i)/r),a=7*
6o,s=3*o,l=Math.floor((n.width-r*o)/2),u=Math.floor((n.height-r*o)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(t){var i,d,h,m,g,v,A,w,_,E,S,k,M=t[0],C=t[1],x=t[2],R=l+M*o*(r-7),I=u+C*o*(r-7),T=e._dotsClipPath,O=e._dotsClipPath;if(((null===(i=n.cornersSquareOptions)||void 0===i?void 0:i.gradient)||(null===(d=n.cornersSquareOptions)||void 0===d?void 0:d.color))&&((T=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+M+"-"+C),e._defs.appendChild(T),e._cornersSquareClipPath=e._cornersDotClipPath=O=T,e._createColor({options:null===(h=n.cornersSquareOptions)||void 0===h?void 0:h.gradient,color:null===(m=n.cornersSquareOptions)||void 0===m?void 0:m.color,additionalRotation:x,x:R,y:I,height:a,width:a,name:"corners-square-color-"+M+"-"+C})),null===(g=n.cornersSquareOptions)||void 0===g?void 0:g.type){var P=new f({svg:e._element,type:n.cornersSquareOptions.type});P.draw(R,I,a,x),P._element&&T&&T.appendChild(P._element)}else for(var L=new c({svg:e._element,type:n.dotsOptions.type}),N=function(e){for(var t=function(t){if(!(null===(v=b[e])||void 0===v?void 0:v[t]))return"continue";L.draw(R+e*o,I+t*o,o,function(n,r){var i;return!!(null===(i=b[e+n])||void 0===i?void 0:i[t+r])}),L._element&&T&&T.appendChild(L._element)},n=0;n<b[e].length;n++)t(n)},D=0;D<b.length;D++)N(D);if(((null===(A=n.cornersDotOptions)||void 0===A?void 0:A.gradient)||(null===(w=n.cornersDotOptions)||void 0===w?void 0:w.color))&&((O=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+M+"-"+C),e._defs.appendChild(O),e._cornersDotClipPath=O,e._createColor({options:null===(_=n.cornersDotOptions)||void 0===_?void 0:_.gradient,color:null===(E=n.cornersDotOptions)||void 0===E?void 0:E.color,additionalRotation:x,x:R+2*o,y:I+2*o,height:s,width:s,name:"corners-dot-color-"+M+"-"+C})),null===(S=n.cornersDotOptions)||void 0===S?void 0:S.type){var B=new p({svg:e._element,type:n.cornersDotOptions.type});B.draw(R+2*o,I+2*o,s,x),B._element&&O&&O.appendChild(B._element)}else{L=new c({svg:e._element,type:n.dotsOptions.type});var j=function(e){for(var t=function(t){if(!(null===(k=y[e])||void 0===k?void 0:k[t]))return"continue";L.draw(R+e*o,I+t*o,o,function(n,r){var i;return!!(null===(i=y[e+n])||void 0===i?void 0:i[t+r])}),L._element&&O&&O.appendChild(L._element)},n=0;n<y[e].length;n++)t(n)};for(D=0;D<y.length;D++)j(D)}})},e.prototype.loadImage=function(){var e=this;return new Promise(function(t,n){var r=e._options,i=new Image;if(!r.image)return n("Image is not defined");"string"==typeof r.imageOptions.crossOrigin&&(i.crossOrigin=r.imageOptions.crossOrigin),e._image=i,i.onload=function(){t()},i.src=r.image})},e.prototype.drawImage=function(e){var t=e.width,n=e.height,r=e.count,i=e.dotSize;return g(this,void 0,void 0,function(){var e,o,a,s,l,u,c,d,f;return v(this,function(h){switch(h.label){case 0:return o=Math.floor(((e=this._options).width-r*i)/2),a=Math.floor((e.height-r*i)/2),s=o+e.imageOptions.margin+(r*i-t)/2,l=a+e.imageOptions.margin+(r*i-n)/2,u=t-2*e.imageOptions.margin,c=n-2*e.imageOptions.margin,(d=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(s)),d.setAttribute("y",String(l)),d.setAttribute("width",u+"px"),d.setAttribute("height",c+"px"),[4,function(e){var t,n,r,i;return t=this,n=void 0,i=function(){return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,function(t){return[2,new Promise(function(t){var n=new XMLHttpRequest;n.onload=function(){var e=new FileReader;e.onloadend=function(){t(e.result)}
6,e.readAsDataURL(n.response)},n.open("GET",e),n.responseType="blob",n.send()})]})},new(r=void 0,r=Promise)(function(e,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(a,s)}l((i=i.apply(t,n||[])).next())})}(e.image||"")];case 1:return f=h.sent(),d.setAttribute("href",f||""),this._element.appendChild(d),[2]}})})},e.prototype._createColor=function(e){var t,n=e.options,r=e.color,i=e.additionalRotation,o=e.x,a=e.y,s=e.height,l=e.width,u=e.name,c=document.createElementNS("http://www.w3.org/2000/svg","rect");if(c.setAttribute("x",String(o)),c.setAttribute("y",String(a)),c.setAttribute("height",String(s)),c.setAttribute("width",String(l)),c.setAttribute("clip-path","url('#clip-path-"+u+"')"),n){if("radial"===n.type)(t=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",u),t.setAttribute("gradientUnits","userSpaceOnUse"),t.setAttribute("fx",String(o+l/2)),t.setAttribute("fy",String(a+s/2)),t.setAttribute("cx",String(o+l/2)),t.setAttribute("cy",String(a+s/2)),t.setAttribute("r",String((l>s?l:s)/2));else{var d=((n.rotation||0)+i)%(2*Math.PI),f=(d+2*Math.PI)%(2*Math.PI),h=o+l/2,p=a+s/2,m=o+l/2,g=a+s/2;f>=0&&f<=.25*Math.PI||f>1.75*Math.PI&&f<=2*Math.PI?(h-=l/2,p-=s/2*Math.tan(d),m+=l/2,g+=s/2*Math.tan(d)):f>.25*Math.PI&&f<=.75*Math.PI?(p-=s/2,h-=l/2/Math.tan(d),g+=s/2,m+=l/2/Math.tan(d)):f>.75*Math.PI&&f<=1.25*Math.PI?(h+=l/2,p+=s/2*Math.tan(d),m-=l/2,g-=s/2*Math.tan(d)):f>1.25*Math.PI&&f<=1.75*Math.PI&&(p+=s/2,h+=l/2/Math.tan(d),g-=s/2,m-=l/2/Math.tan(d)),(t=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",u),t.setAttribute("gradientUnits","userSpaceOnUse"),t.setAttribute("x1",String(Math.round(h))),t.setAttribute("y1",String(Math.round(p))),t.setAttribute("x2",String(Math.round(m))),t.setAttribute("y2",String(Math.round(g)))}n.colorStops.forEach(function(e){var n=e.offset,r=e.color,i=document.createElementNS("http://www.w3.org/2000/svg","stop");i.setAttribute("offset",100*n+"%"),i.setAttribute("stop-color",r),t.appendChild(i)}),c.setAttribute("fill","url('#"+u+"')"),this._defs.appendChild(t)}else r&&c.setAttribute("fill",r);this._element.appendChild(c)},e}(),w="canvas";for(var _={},E=0;E<=40;E++)_[E]=E;let S={type:w,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:_[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}};var k=function(){return(k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function M(e){var t=k({},e);if(!t.colorStops||!t.colorStops.length)throw"Field 'colorStops' is required in gradient";return t.rotation?t.rotation=Number(t.rotation):t.rotation=0,t.colorStops=t.colorStops.map(function(e){return k(k({},e),{offset:Number(e.offset)})}),t}function C(e){var t=k({},e);return t.width=Number(t.width),t.height=Number(t.height),t.margin=Number(t.margin),t.imageOptions=k(k({},t.imageOptions),{hideBackgroundDots:!!t.imageOptions.hideBackgroundDots,imageSize:Number(t.imageOptions.imageSize),margin:Number(t.imageOptions.margin)}),t.margin>Math.min(t.width,t.height)&&(t.margin=Math.min(t.width,t.height)),t.dotsOptions=k({},t.dotsOptions),t.dotsOptions.gradient&&(t.dotsOptions.gradient=M(t.dotsOptions.gradient)),t.cornersSquareOptions&&(t.cornersSquareOptions=k({},t.cornersSquareOptions),t.cornersSquareOptions.gradient&&(t.cornersSquareOptions.gradient=M(t.cornersSquareOptions.gradient))),t.cornersDotOptions&&(t.cornersDotOptions=k({},t.cornersDotOptions),t.cornersDotOptions.gradient&&(t.cornersDotOptions.gradient=M(t.cornersDotOptions.gradient))),t.backgroundOptions&&(t.backgroundOptions=k({},t.backgroundOptions),t.backgroundOptions.gradient&&(t.backgroundOptions.gradient=M(t.backgroundOptions.gradient))),t}
6var x=n(192),R=n.n(x),I=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},T=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};let O=function(){function e(e){this._options=e?C(a(S,e)):S,this.update()}return e._clearContainer=function(e){e&&(e.innerHTML="")},e.prototype._setupSvg=function(){var e=this;if(this._qr){var t=new A(this._options);this._svg=t.getElement(),this._svgDrawingPromise=t.drawQR(this._qr).then(function(){var n;e._svg&&(null===(n=e._extension)||void 0===n||n.call(e,t.getElement(),e._options))})}},e.prototype._setupCanvas=function(){var e,t=this;this._qr&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=null===(e=this._svgDrawingPromise)||void 0===e?void 0:e.then(function(){if(t._svg){var e=t._svg,n="data:image/svg+xml;base64,"+btoa((new XMLSerializer).serializeToString(e)),r=new Image;return new Promise(function(e){r.onload=function(){var n,i;null===(i=null===(n=t._canvas)||void 0===n?void 0:n.getContext("2d"))||void 0===i||i.drawImage(r,0,0),e()},r.src=n})}}))},e.prototype._getElement=function(e){return void 0===e&&(e="png"),I(this,void 0,void 0,function(){return T(this,function(t){switch(t.label){case 0:if(!this._qr)throw"QR code is empty";return"svg"!==e.toLowerCase()?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return t.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return t.sent(),[2,this._canvas]}})})},e.prototype.update=function(t){e._clearContainer(this._container),this._options=t?C(a(this._options,t)):this._options,this._options.data&&(this._qr=
6R()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(e){switch(!0){case/^[0-9]*$/.test(e):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(e):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===w?this._setupCanvas():this._setupSvg(),this.append(this._container))},e.prototype.append=function(e){if(e){if("function"!=typeof e.appendChild)throw"Container should be a single DOM node";this._options.type===w?this._canvas&&e.appendChild(this._canvas):this._svg&&e.appendChild(this._svg),this._container=e}},e.prototype.applyExtension=function(e){if(!e)throw"Extension function should be defined.";this._extension=e,this.update()},e.prototype.deleteExtension=function(){this._extension=void 0,this.update()},e.prototype.getRawData=function(e){return void 0===e&&(e="png"),I(this,void 0,void 0,function(){var t;return T(this,function(n){switch(n.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement(e)];case 1:return(t=n.sent())?"svg"===e.toLowerCase()?[2,new Blob(['<?xml version="1.0" standalone="no"?>\r\n'+(new XMLSerializer).serializeToString(t)],{type:"image/svg+xml"})]:[2,new Promise(function(n){return t.toBlob(n,"image/"+e,1)})]:[2,null]}})})},e.prototype.download=function(e){return I(this,void 0,void 0,function(){var t,n,r;return T(this,function(i){switch(i.label){case 0:if(!this._qr)throw"QR code is empty";return t="png",n="qr","string"==typeof e?(t=e,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof e&&null!==e&&(e.name&&(n=e.name),e.extension&&(t=e.extension)),[4,this._getElement(t)];case 1:return(r=i.sent())&&("svg"===t.toLowerCase()?s("data:image/svg+xml;charset=utf-8,"+encodeURIComponent('<?xml version="1.0" standalone="no"?>\r\n'+(new XMLSerializer).serializeToString(r)),n+".svg"):s(r.toDataURL("image/"+t),n+"."+t)),[2]}})})},e}()}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n(676)})().default),_b.exports}!function(e,t,n){var r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA2CAYAAACbZ/oUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAb1SURBVHgB3Vrdcds4EN4FJVo/fnAqOKWCOBVEqcBKBbbeLvLNWFeBnQpiz+SUe4tTwckVWK4gTgVRB9ZD9BNaBG4XJGiIon4oUYrtb0YiCIIEFvuD3QUQLPxslI8cUG98wJvdVv8SnihUc29v5HknVKyAKz8Uz0dd8wxNYfhnoaKE+GG916WHHRDya/HTqAOPHJrI8WgflHOqlKqaekTsFP/pv43uTYG5K0B9CasvENSB4hkK0JVKXTg7qm3P1mPA8K9CVUmnpkAdEjF7XMdEEtE9Ktb0vStfmnEL86KDcGgal1r9Jkj5Vin4Gj6uCMSPyhM/hsfla54cnlH4TeC+h43S6eC49E1JcU01JyGxPVDqb+boL9etR+1/Yc2UNYdtcUbAetHS32GjcETzcmpxO/gIfZxmq70tkWci+96o5qBzaItsBMTvUnlHu637W1PFzOG2tlhrgm1xttkfvUgTIlGcYSgFCaD2eIWuf561yCeJ7DTwQktl4rssAQDE8Rcvznu9gMNmJgAui61BfVbng+NiExSewsyOA5XwSRVc8G591+nBqvDEoQRo4ry+eKKFrM+SsDuSih3P+6HHS6Je+jw8R1ucSWfflT8P2jAH3B4c50uiWG0VeFF082dIXJvXiqT3XLCOh2KN/felGonqfzxbxN2XsCT6jdIZvXMKW8YirsYRF2uRR+zyDenId0iBcmtwhlK+1APYGvCi4Lqv0xjJoK3qUrHHOizcVp+tGokF/gEpUfx3pKWCLPYH2CB4UlHIt2yYFolwHFoFASsk0tp663U4vNm/W3Ft3TC322m5aoNWl319VeqGr5pgsqpanN1fXhVWxAa43XMEvCu1Bu/ScjUG7XQIITv6GtT5mt3E6SqsiSy4zRaV/IHXO5/mrxhLQcArvoxyhQeRdiQFCRrqADIAc3tEYijJyEA6RK5hFg4M6y8qYJG+fRFKiTADDC1Z5S4jH5k72GUjQ8ZmKW6Ta8hcZecAMoIvnKr+NBFs6qLgQSnUSp337muQIdjYKKvDObjO2i3FyDkKaGNEBFM4qAfFCQDICCxS7LZCaDjmQqkmR0CQIcih0rQ45OaaugeCnYBg4kYVMsDPRn6fXNbrNC4o9X3GEzRs8tq5HrxGmXW3Qr+ea0VQEcGhFWPFrqzb4ahRPBGQ/waxkHIZ8ARR3H3t0YTBGvBAGyvjY0SICNahU/jQDpjTIAzMv5B1XtfwVMY0YeuIOAUMmgYV+hgP9RaMA0KEv4KU0Prqed9ILI8gI7CID47LH1dcObT+ksR07MrcZBt2QAR3xLNTX/RFkzjjAF3ODdDXABkzimlrP98XL1wcd2x9nAXW3zEoPRaxIyfao30TBsx3XM7B/eukj3O45fu47whxQP7p/kaInANOLTmUTR1ThsVx/U7SUjZ4T4kKysElhbwTHGY9HjSKXY4uxipXBbi/ZQPmk047JOaUgagpCXsCtahMztaWwBPM42AdJeMGg0ZJp5OlgKtSzu2w343EDB5fUsg7NWZKCFyGuatuWFWBpwQ2vCR5uhymdezHIt5eOPIyLFbgqRHLMMQSkPLo8cdTBDtyjcTb40IvSb+nCDYL9jPAHhvYeOU0h2fnnp8ceLmM100QrFO2vz39miXUFPMmPa0wfnxGmBLrCYKzEmfec9KBP/3SvKcdBcodI8h6VglBKUU11kcA28taA20acN1OupltnGVeXnYjLyW6JcvbijicSaaDkvojGE26mugvlcUM3MAHYsPRdRWsjYot1rmHb6v1CSZHn9y9JkU45O3ADQq/DWPeGlniVVo3ORgZjL2qkHBg3FjIAKFYd7isRTojcX60sPeH9dyvk4B/CmAbYrI4RtgyzVQ+RkhPHPE13FvKLlP5WEErQJAQ4D8J4gqeOUwyPthqYWv63EHZEb5EjgdlDthKbzVdsy3YVjpahykjcoWbjZR64S8JFdgglJSRyj4QjLKDIDZDMG2UFfP56qx9XvscxiaQo2ynKUc+0L1b2Jge0zrYnrepbZ3DyBzssiZutYQ7Dx3YACi/2V3cClMdqkmBjn0z4eWacxBZg1aB7qI2ZEM2kkuTZJvs+4m8NJ+DIF1Ks5+j96N4omjmDmeFcSjFSb9Rqs77EIZbI4nPSPJ0H4hv0mZkvB23Q2uQ3c8kFi5PSAs4bZ5zJFSgHUejm2EAwuc1M3ZTJ89R6ogq8P1rtCHwZl6sHD8rHQw/BnNUz6riA5ltH+RNmQzbohM1GZ7Q41M89UUHW/Q5LAFVBYLPp1TBYlY8oRDUJXxACadJi1dXkjnfXWLzKnkQtBm+4vqqjWfer69yBIKXOJPW4RNFU9+GDWIFbvMpng9Z
6HmyJY+P7YdqpUOIjrU1z3VbkM58rcjUN/geU/3c0eMPNdAAAAABJRU5ErkJggg==",i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var o={fontFamily:"Roboto, sans-serif"},a=function(e){var n=e.children,r=e.className;return t.createElement("div",{style:o,className:r},n)},s={flexContainer:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"row"},flexItem:{flex:1,justifyContent:"center",alignItems:"center"},flexItem11:{flex:11,justifyContent:"center",alignItems:"center"},flexItem1:{flex:1,justifyContent:"center",alignItems:"center"},tab:{padding:8,cursor:"pointer",backgroundColor:"#F2F4F6",fontSize:12,textAlign:"center",color:"#24292E"},tabcontainer:{padding:"4px",backgroundColor:"#F2F4F6",borderRadius:"8px",marginBottom:30,marginTop:30},tabactive:{backgroundColor:"white",WebkitTransition:"background-color 300ms linear",msTransition:"background-color 300ms linear",transition:"background-color 300ms linear",borderRadius:"8px"},item:{fontSize:"12px",marginBottom:16,borderRadius:"8px",padding:"10px",border:"2px #F2F4F6 solid",color:"#24292E"},extensionLabel:{fontsStyle:"normal",fontWeight:"bold",fontSize:14,textAlign:"center",color:"#24272A"},notice:{fontSize:12,marginLeft:10,marginRight:10,color:"grey"},button:{marginTop:"41.5px",marginBottom:"20px",width:"100%",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",padding:"12px 20px",background:"#037DD6",borderRadius:"32px",color:"white",border:"0",fontSize:"14px",cursor:"pointer"},backdrop:{visibility:"visible",position:"fixed",top:"0",left:"0",right:"0",bottom:"0",width:"100%",zIndex:99998,background:"rgba(0, 0, 0, 0.87)",opacity:.3},modal:{visibility:"visible",position:"fixed",left:"50%",transform:"translate(-50%, -50%)",zIndex:99999,background:"#fff",padding:"20px",borderRadius:"8px",top:"50%",maxWidth:"100%",width:460,minWidth:300,boxShadow:"rgba(0, 0, 0, 0.2) 0px 11px 15px -7px, rgba(0, 0, 0, 0.14) 0px 24px 38px 3px, rgba(0, 0, 0, 0.12) 0px 9px 46px 8px",WebkitFontSmoothing:"antialiased"},closeButton:{color:"#BBC0C5",cursor:"pointer"},closeButtonContainer:{},logoContainer:{marginHorizontal:24,marginTop:24,display:"flex",alignItems:"center",justifyContent:"center"},connectMobileText:{fontSize:14,color:"black",marginTop:28,marginBottom:28,lineHeight:2},blue:{color:"#037DD6",fontWeight:700},installExtensionText:{marginLeft:10},center:{display:"flex",alignItems:"center",justifyContent:"center"},right:{display:"flex",alignItems:"center",justifyContent:"right"}},l=function(e){var n=e.Icon,r=e.text;return t.createElement("div",{style:i(i({padding:6},s.flexContainer),{flexDirection:"row"})},t.createElement("div",{style:s.flexItem1},t.createElement(n,null)),t.createElement("div",{style:s.flexItem11},t.createElement("span",{style:{lineHeight:"2",color:"black"}},r)))},u=function(){return t.createElement("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("rect",{width:"16",height:"16",fill:"white"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.40554 2.40554C2.94627 1.86482 3.82296 1.86482 4.36369 2.40554L8 6.04186L11.6363 2.40554C12.177 1.86482 13.0537 1.86482 13.5945 2.40554C14.1352 2.94627 14.1352 3.82296 13.5945 4.36369L9.95814 8L13.5945 11.6363C14.1352 12.177 14.1352 13.0537 13.5945 13.5945C13.0537 14.1352 12.177 14.1352 11.6363 13.5945L8 9.95814L4.36369 13.5945C3.82296 14.1352 2.94627 14.1352 2.40554 13.5945C1.86482 13.0537 1.86482 12.177 2.40554 11.6363L6.04186 8L2.40554 4.36369C1.86482 3.82296 1.86482 2.94627 2.40554 2.40554Z",fill:"#BBC0C5"}))},c=function(){return t.createElement("svg",{width:"20",height:"18",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M14.44 0.0999756C12.63 0.0999756 11.01 0.979976 10 2.32998C8.99 0.979976 7.37 0.0999756 5.56 0.0999756C2.49 0.0999756 0 2.59998 0 5.68998C0 6.87998 0.19 7.97998 0.52 8.99998C2.1 14 6.97 16.99 9.38 17.81C9.72 17.93 10.28 17.93 10.62 17.81C13.03 16.99 17.9 14 19.48 8.99998C19.81 7.97998 20 6.87998 20 5.68998C20 2.59998 17.51 0.0999756 14.44 0.0999756Z",fill:"#037DD6"}))},d=function(){return t.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M16.4405 8.8999C20.0405 9.2099 21.5105 11.0599 21.5105 15.1099V15.2399C21.5105 19.7099 19.7205 21.4999 15.2505 21.4999H8.74047C4.27047 21.4999 2.48047 19.7099 2.48047 15.2399V15.1099C2.48047 11.0899 3.93047 9.2399 7.47047 8.9099",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M12 2V14.88",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M15.3504 12.6499L12.0004 15.9999L8.65039 12.6499",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))},f=function(){return t.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M16.28 7.53V6.28C16.28 3.58 15.63 0 10 0C4.37 0 3.72 3.58 3.72 6.28V7.53C0.92 7.88 0 9.3 0 12.79V14.65C0 18.75 1.25 20 5.35 20H14.65C18.75 20 20 18.75 20 14.65V12.79C20 9.3 19.08 7.88 16.28 7.53ZM10 16.74C8.33 16.74 6.98 15.38 6.98 13.72C6.98 12.05 8.34 10.7 10 10.7C11.66 10.7 13.02 12.06 13.02 13.72C13.02 15.39 11.67 16.74 10 16.74ZM5.35 7.44C5.27 7.44 5.2 7.44 5.12 7.44V6.28C5.12 3.35 5.95 1.4 10 1.4C14.05 1.4 14.88 3.35 14.88 6.28V7.45C14.8 7.45 14.73 7.45 14.65 7.45H5.35V7.44Z",fill:"#037DD6"}))},h=function(){return t.createElement("svg",{width:"273",height:"51",viewBox:"0 0 273 51",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M240.882 25.9263C239.472 24.997 237.916 24.3361 236.443 23.5101C235.489 22.9731 234.473 22.4982 233.643 21.8167C232.233 20.6602 232.524 18.3885 233.996 17.3973C236.112 15.993 239.617 16.7777 239.99 19.6483C239.99 19.7102 240.052 19.7515 240.114 19.7515H243.308C243.391 19.7515 243.454 19.6896 243.433 19.607C243.267 17.6244 242.5 15.9723 241.089 14.9191C239.741 13.9072 238.206 13.3702 236.568 13.3702C228.127 13.3702 227.359 22.271 231.901 25.0796C232.42 25.41 236.879 27.6404 238.455 28.611C240.032 29.5816 240.529 31.3576 239.845 32.7619C239.223 34.0423 237.605 34.9303 235.987 34.8271C234.224 34.7238 232.855 33.7738 232.378 32.2869C232.295 32.0185 232.254 31.5022 232.254 31.275C232.254 31.2131 232.192 31.1511 232.129 31.1511H228.666C228.604 31.1511 228.541 31.2131 228.541 31.275C228.541 33.7738 229.164 35.1575 230.864 36.4172C232.461 37.615 234.203 38.1106 236.008 38.1106C240.737 38.1106 243.184 35.4466 243.682 32.6793C244.117 29.974 243.308 27.5371 240.882 25.9263Z",fill:"#24292E"}),t.createElement("path",{d:"M90.4943 13.8246H88.9595H87.2795C87.2173 13.8246 87.1758 13.8659 87.1551 13.9072L84.3
6137 23.2416C84.2722 23.3655 84.1063 23.3655 84.0648 23.2416L81.2234 13.9072C81.2026 13.8452 81.1612 13.8246 81.0989 13.8246H79.419H77.8842H75.8102C75.748 13.8246 75.6857 13.8865 75.6857 13.9485V37.7802C75.6857 37.8422 75.748 37.9041 75.8102 37.9041H79.2738C79.336 37.9041 79.3982 37.8422 79.3982 37.7802V19.6689C79.3982 19.5244 79.6056 19.5037 79.6471 19.6276L82.5093 29.024L82.7167 29.6849C82.7374 29.7468 82.7789 29.7675 82.8411 29.7675H85.4959C85.5581 29.7675 85.5996 29.7262 85.6203 29.6849L85.8277 29.024L88.6899 19.6276C88.7313 19.4831 88.9387 19.5244 88.9387 19.6689V37.7802C88.9387 37.8422 89.001 37.9041 89.0632 37.9041H92.5268C92.589 37.9041 92.6513 37.8422 92.6513 37.7802V13.9485C92.6513 13.8865 92.589 13.8246 92.5268 13.8246H90.4943Z",fill:"#24292E"}),t.createElement("path",{d:"M187.849 13.8246C187.787 13.8246 187.745 13.8659 187.725 13.9072L184.883 23.2416C184.842 23.3655 184.676 23.3655 184.634 23.2416L181.793 13.9072C181.772 13.8452 181.731 13.8246 181.668 13.8246H176.4C176.338 13.8246 176.276 13.8865 176.276 13.9485V37.7802C176.276 37.8422 176.338 37.9041 176.4 37.9041H179.864C179.926 37.9041 179.988 37.8422 179.988 37.7802V19.6689C179.988 19.5244 180.196 19.5037 180.237 19.6276L183.099 29.024L183.307 29.6849C183.328 29.7468 183.369 29.7675 183.431 29.7675H186.086C186.148 29.7675 186.19 29.7262 186.211 29.6849L186.418 29.024L189.28 19.6276C189.322 19.4831 189.529 19.5244 189.529 19.6689V37.7802C189.529 37.8422 189.591 37.9041 189.653 37.9041H193.117C193.179 37.9041 193.241 37.8422 193.241 37.7802V13.9485C193.241 13.8865 193.179 13.8246 193.117 13.8246H187.849Z",fill:"#24292E"}),t.createElement("path",{d:"M143.174 13.8246H136.724H133.261H126.81C126.748 13.8246 126.686 13.8865 126.686 13.9485V16.9223C126.686 16.9843 126.748 17.0462 126.81 17.0462H133.136V37.7802C133.136 37.8422 133.198 37.9041 133.261 37.9041H136.724C136.786 37.9041 136.849 37.8422 136.849 37.7802V17.0462H143.174C143.237 17.0462 143.299 16.9843 143.299 16.9223V13.9485C143.299 13.8865 143.257 13.8246 143.174 13.8246Z",fill:"#24292E"}),t.createElement("path",{d:"M163.604 37.9041H166.756C166.839 37.9041 166.901 37.8215 166.881 37.7389L160.368 13.8245C160.347 13.7626 160.306 13.7419 160.244 13.7419H159.041H156.925H155.722C155.66 13.7419 155.619 13.7832 155.598 13.8245L149.085 37.7389C149.065 37.8215 149.127 37.9041 149.21 37.9041H152.362C152.425 37.9041 152.466 37.8628 152.487 37.8215L154.374 30.862C154.395 30.8 154.436 30.7794 154.499 30.7794H161.467C161.53 30.7794 161.571 30.8207 161.592 30.862L163.479 37.8215C163.5 37.8628 163.562 37.9041 163.604 37.9041ZM155.328 27.3719L157.859 18.0581C157.9 17.9342 158.066 17.9342 158.107 18.0581L160.638 27.3719C160.659 27.4545 160.596 27.5371 160.513 27.5371H155.453C155.37 27.5371 155.308 27.4545 155.328 27.3719Z",fill:"#24292E"}),t.createElement("path",{d:"M217.362 37.9041H220.515C220.598 37.9041 220.66 37.8215 220.639 37.7389L214.127 13.8245C214.106 13.7626 214.065 13.7419 214.002 13.7419H212.8H210.684H209.481C209.419 13.7419 209.377 13.7832 209.357 13.8245L202.844 37.7389C202.823 37.8215 202.886 37.9041 202.969 37.9041H206.121C206.183 37.9041 206.225 37.8628 206.246 37.8215L208.133 30.862C208.154 30.8 208.195 30.7794 208.257 30.7794H215.226C215.288 30.7794 215.33 30.8207 215.351 30.862L217.238 37.8215C217.259 37.8628 217.3 37.9041 217.362 37.9041ZM209.087 27.3719L211.617 18.0581C211.659 17.9342 211.825 17.9342 211.866 18.0581L214.397 27.3719C214.417 27.4545 214.355 27.5371 214.272 27.5371H209.211C209.129 27.5371 209.066 27.4545 209.087 27.3719Z",fill:"#24292E"}),t.createElement("path",{d:"M106.713 34.3727V26.9795C106.713 26.9176 106.775 26.8556 106.837 26.8556H116.067C116.129 26.8556 116.191 26.7936 116.191 26.7317V23.7579C116.191 23.6959 116.129 23.634 116.067 23.634H106.837C106.775 23.634 106.713 23.572 106.713 23.5101V17.1907C106.713 17.1288 106.775 17.0668 106.837 17.0668H117.332C117.394 17.0668 117.457 17.0049 117.457 16.9429V13.9691C117.457 13.9072 117.394 13.8452 117.332 13.8452H106.713H103.125C103.063 13.8452 103.001 13.9072 103.001 13.9691V17.0668V23.6546V26.8763V34.5173V37.7802C103.001 37.8422 103.063 37.9041 103.125 37.9041H106.713H117.768C117.83 37.9041 117.892 37.8422 117.892 37.7802V34.6412C117.892 34.5792 117.83 34.5173 117.768 34.5173H106.817C106.755 34.4966 106.713 34.4553 106.713 34.3727Z",fill:"#24292E"}),t.createElement("path",{d:"M272.532 37.6976L260.544 25.3687C260.502 25.3274 260.502 25.2448 260.544 25.2035L271.329 14.0517C271.412 13.9691 271.349 13.8452 271.246 13.8452H266.828C266.787 13.8452 266.766 13.8659 266.745 13.8865L257.599 23.3449C257.516 23.4275 257.391 23.3655 257.391 23.2623V13.9691C257.391 13.9072 257.329 13.8452 257.267 13.8452H253.803C253.741 13.8452 253.679 13.9072 253.679 13.9691V37.8009C253.679 37.8628 253.741 37.9248 253.803 37.9248H257.267C257.329 37.9248 257.391 37.8628 257.391 37.8009V27.3099C257.391 27.2067 257.536 27.1447 257.599 27.2273L267.969 37.8835C267.989 37.9041 268.031 37.9248 268.052 37.9248H272.469C272.552 37.9041 272.615 37.7596 272.532 37.6976Z",fill:"#24292E"}
6),t.createElement("path",{d:"M52.021 1L31.0526 16.4886L34.9517 7.36063L52.021 1Z",fill:"#E17726",stroke:"#E17726",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M3.65491 1L24.4366 16.6331L20.7241 7.36063L3.65491 1Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M44.4716 36.9127L38.8925 45.4211L50.8389 48.7047L54.261 37.0986L44.4716 36.9127Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M1.43555 37.0986L4.83695 48.7047L16.7626 45.4211L11.2042 36.9127L1.43555 37.0986Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M16.1197 22.5395L12.8013 27.5371L24.6232 28.074L24.2292 15.3734L16.1197 22.5395Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M39.5561 22.5394L31.3222 15.2288L31.0526 28.0739L42.8746 27.537L39.5561 22.5394Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M16.7626 45.4212L23.918 41.9724L17.7582 37.1813L16.7626 45.4212Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M31.7578 41.9724L38.8925 45.4212L37.9177 37.1813L31.7578 41.9724Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M38.8923 45.4212L31.7577 41.9724L32.3384 46.5983L32.2762 48.5602L38.8923 45.4212Z",fill:"#D5BFB2",stroke:"#D5BFB2",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M16.7625 45.4212L23.3994 48.5602L23.3579 46.5983L23.9179 41.9724L16.7625 45.4212Z",fill:"#D5BFB2",stroke:"#D5BFB2",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M23.5239 34.1249L17.5922 32.3902L21.7818 30.4696L23.5239 34.1249Z",fill:"#233447",stroke:"#233447",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M32.1517 34.1249L33.8939 30.4696L38.1042 32.3902L32.1517 34.1249Z",fill:"#233447",stroke:"#233447",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M16.7626 45.4212L17.7996 36.9128L11.2042 37.0987L16.7626 45.4212Z",fill:"#CC6228",stroke:"#CC6228",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M37.8761 36.9128L38.8924 45.4212L44.4715 37.0987L37.8761 36.9128Z",fill:"#CC6228",stroke:"#CC6228",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M42.8745 27.5371L31.0526 28.074L32.1518 34.1249L33.894 30.4696L38.1042 32.3902L42.8745 27.5371Z",fill:"#CC6228",stroke:"#CC6228",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M17.5922 32.3902L21.7817 30.4696L23.5239 34.1249L24.6232 28.074L12.8012 27.5371L17.5922 32.3902Z",fill:"#CC6228",stroke:"#CC6228",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M12.8013 27.5371L17.7582 37.1813L17.5923 32.3902L12.8013 27.5371Z",fill:"#E27525",stroke:"#E27525",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M38.1044 32.3902L37.9177 37.1813L42.8746 27.5371L38.1044 32.3902Z",fill:"#E27525",stroke:"#E27525",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M24.6232 28.0741L23.524 34.125L24.9136 41.2703L25.2247 31.8533L24.6232 28.0741Z",fill:"#E27525",stroke:"#E27525",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M31.0526 28.0741L30.4719 31.8327L30.7623 41.2703L32.1519 34.125L31.0526 28.0741Z",fill:"#E27525",stroke:"#E27525",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M32.1519 34.1249L30.7623 41.2702L31.7578 41.9724L37.9177 37.1813L38.1043 32.3901L32.1519 34.1249Z",fill:"#F5841F",stroke:"#F5841F",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M17.5922 32.3901L17.7581 37.1813L23.918 41.9724L24.9135 41.2702L23.5239 34.1249L17.5922 32.3901Z",fill:"#F5841F",stroke:"#F5841F",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M32.2763 48.5602L32.3385 46.5983L31.7993 46.1439H23.8765L23.358 46.5983L23.3995 48.5602L16.7626 45.4211L19.0855 47.3211L23.7935 50.5633H31.8615L36.5903 47.3211L38.8924 45.4211L32.2763 48.5602Z",fill:"#C0AC9D",stroke:"#C0AC9D",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M31.7578 41.9724L30.7622 41.2703H24.9135L23.918 41.9724L23.358 46.5983L23.8765 46.144H31.7993L32.3385 46.5983L31.7578 41.9724Z",fill:"#24292E",stroke:"#24292E",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M52.9128 17.5005L54.6757 8.95079L52.021 1L31.7578 15.9723L39.5561 22.5394L50.5692 25.7404L52.9958 22.9111L51.938 22.147L53.618 20.6188L52.3321 19.6276L54.0121 18.3472L52.9128 17.5005Z",fill:"#763E1A",stroke:"#763E1A",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M1 8.95079L2.78366 17.5005L1.64295 18.3472L3.34365 19.6276L2.05775 20.6188L3.73771 22.147L2.67996 22.9111L5.10657 25.7404L16.1196 22.5394L23.918 15.9723L3.65475 1L1 8.95079Z",fill:"#763E1A",stroke:"#763E1A",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M50.5692 25.7404L39.5561 22.5394L42.8746 27.5371L37.9177 37.
61813L44.4716 37.0987H54.261L50.5692 25.7404Z",fill:"#F5841F",stroke:"#F5841F",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M16.1196 22.5394L5.10651 25.7404L1.43549 37.0987H11.2041L17.7581 37.1813L12.8011 27.5371L16.1196 22.5394Z",fill:"#F5841F",stroke:"#F5841F",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M31.0526 28.0741L31.7578 15.9724L34.9518 7.36072H20.7239L23.9179 15.9724L24.6231 28.0741L24.8927 31.8739L24.9135 41.2703H30.7622L30.783 31.8739L31.0526 28.0741Z",fill:"#F5841F",stroke:"#F5841F",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}))},p=function(){return t.createElement("svg",{width:"20",height:"18",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M20.0002 7.9702V10.0302C20.0002 10.5802 19.5602 11.0302 19.0002 11.0502H17.0402C15.9602 11.0502 14.9702 10.2602 14.8802 9.1802C14.8202 8.5502 15.0602 7.9602 15.4802 7.5502C15.8502 7.1702 16.3602 6.9502 16.9202 6.9502H19.0002C19.5602 6.9702 20.0002 7.4202 20.0002 7.9702Z",fill:"#037DD6"}),t.createElement("path",{d:"M18.47 12.55H17.04C15.14 12.55 13.54 11.12 13.38 9.3C13.29 8.26 13.67 7.22 14.43 6.48C15.07 5.82 15.96 5.45 16.92 5.45H18.47C18.76 5.45 19 5.21 18.97 4.92C18.75 2.49 17.14 0.83 14.75 0.55C14.51 0.51 14.26 0.5 14 0.5H5C4.72 0.5 4.45 0.52 4.19 0.56C1.64 0.88 0 2.78 0 5.5V12.5C0 15.26 2.24 17.5 5 17.5H14C16.8 17.5 18.73 15.75 18.97 13.08C19 12.79 18.76 12.55 18.47 12.55ZM11 6.75H5C4.59 6.75 4.25 6.41 4.25 6C4.25 5.59 4.59 5.25 5 5.25H11C11.41 5.25 11.75 5.59 11.75 6C11.75 6.41 11.41 6.75 11 6.75Z",fill:"#037DD6"}))};function m(e){var n=e.version;return t.createElement("div",{style:{textAlign:"center",color:"#BBC0C5",fontSize:12}},"SDK Version ",n?"v".concat(n):"unknown")}var g=function(e){var n=t.useState(e.preferDesktop?1:2),o=n[0],g=n[1],v=t.useRef(null),b=e.sdkVersion,y=e.i18nInstance.t;return t.useEffect(function(){v.current&&new(_y())({width:270,height:270,type:"svg",data:e.link,image:r,dotsOptions:{color:"black",type:"rounded"},imageOptions:{margin:5},cornersDotOptions:{color:"#f66a07"},qrOptions:{errorCorrectionLevel:"M"}}).append(v.current)},[v]),t.createElement(a,{className:"install-model"},t.createElement("div",{style:s.backdrop,onClick:e.onClose}),t.createElement("div",{style:s.modal},t.createElement("div",{style:s.closeButtonContainer},t.createElement("div",{style:s.right},t.createElement("span",{style:s.closeButton,onClick:e.onClose},t.createElement(u,null)))),t.createElement("div",{style:s.logoContainer},t.createElement(h,null)),t.createElement("div",null,t.createElement("div",{style:s.tabcontainer},t.createElement("div",{style:s.flexContainer},t.createElement("div",{onClick:function(){return g(1)},style:i(i(i({},s.tab),1===o?s.tabactive:{}),s.flexItem)},y("DESKTOP")),t.createElement("div",{onClick:function(){return g(2)},style:i(i(i({},s.tab),2===o?s.tabactive:{}),s.flexItem)},y("MOBILE")))),t.createElement("div",{style:{display:1===o?"none":"block"}},t.createElement("div",{style:s.flexContainer},t.createElement("div",{style:i({textAlign:"center",marginTop:4},s.flexItem)},t.createElement("div",{ref:v,style:s.center}),t.createElement("div",{style:s.connectMobileText},y("SCAN_TO_CONNECT")," ",t.createElement("br",null),t.createElement("span",{style:s.blue},t.createElement("b",null,y("META_MASK_MOBILE_APP"))))))),t.createElement("div",{style:{display:2===o?"none":"block"}},t.createElement("div",{style:s.item},t.createElement(l,{Icon:c,text:y("INSTALL_MODAL.TRUSTED_BY_USERS")})),t.createElement("div",{style:s.item},t.createElement(l,{Icon:f,text:y("INSTALL_MODAL.LEADING_CRYPTO_WALLET")})),t.createElement("div",{style:s.item},t.createElement(l,{Icon:p,text:y("INSTALL_MODAL.CONTROL_DIGITAL_INTERACTIONS")})),t.createElement("button",{style:s.button,onClick:e.metaMaskInstaller.startDesktopOnboarding},t.createElement(d,null),t.createElement("span",{style:s.installExtensionText},y("INSTALL_MODAL.INSTALL_META_MASK_EXTENSION"))))),t.createElement(m,{version:b})))},v=function(e){var n,r=null===(n=e.displayOTP)||void 0===n||n,o=e.sdkVersion,l=e.i18nInstance.t;return t.createElement(a,{className:"pending-modal"},t.createElement("div",{style:s.backdrop,onClick:e.onClose}),t.createElement("div",{style:s.modal},t.createElement("div",{style:s.closeButtonContainer},t.createElement("div",{style:s.right},t.createElement("span",{style:s.closeButton,onClick:e.onClose},t.createElement(u,null)))),t.createElement("div",{style:s.logoContainer},t.createElement(h,null)),t.createElement("div",null,t.createElement("div",{style:i(i({},s.flexContainer),{flexDirection:"column",color:"black"})},t.createElement("div",{style:i(i({textAlign:"center",marginTop:"30px",marginBottom:"30px"},s.flexItem),{fontSize:16})},l(r?"PENDING_MODAL.OPEN_META_MASK_SELECT_CODE":"PENDING_MODAL.OPEN_META_MASK_CONTINUE")),t.createElement("div",{id:"sdk-mm-otp-value",style:{padding:10,fontSize:32,display:"none"}}),r&&t.createElement("div",{style:i({},s.notice)},"* ",l("PENDING_MODAL.NUMBER_AFTER_OPEN_NOTICE"))),t.createElement("div",{style:{marginTop:"20px"}},t.createElement("button",{style:i(i(i({},s.button),s.blue),{marginTop:"5px",color:"#0376C9",borderColor:"#0376C9",borderWidth:"1px",borderStyle:"solid",backgroundColor:"white"}),onClick:e.onDisconnect},l("PENDING_MODAL.DISCONNECT")))),t.createElement(m,{version:o})))},b=function(){return t.createElement("svg",{width:"21",height:"15",viewBox:"0 0 21 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M14.1364 14.9851C13.5909 14.9851 13.2273 14.5851 13.2273 13.9851C13.2273 13.3851 13.5909 12.9851 14.1364 12.9851C16.6818 12.9851 18.6818 10.7851 18.6818 7.98508C18.6818 5.18508 16.6818 2.98508 14.1364 2.98508C11.5909 2.98508 9.59091 5.18508 9.59091 7.98508C9.59091 8.58508 9.22727 8.98508 8.68182 8.98508C8.13636 8.98508 7.77273 8.58508 7.77273 7.98508C7.77273 4.08508 10.5909 0.985077 14.1364 0.985077C17.6818 0.985077 20.5 4.08508 20.5 7.98508C20.5 11.8851 17.6818 14.9851 14.1364 14.9851ZM6.68182 14.7851C3.22727 14.7851 0.5 11.6851 0.5 7.98508C0.5 4.28508 3.22727 1.18508 6.68182 1.18508C7.22727 1.18508 7.59091 1.58508 7.59091 2.18508C7.59091 2.78508 7.22727 3.18508 6.68182 3.18508C4.22727 3.18508 2.31818 5.38508 2.31818 7.98508C2.31818 10.5851 4.22727 12.7851 6.68182 12.7851C9.13636 12.7851 11.0455 10.6851 11.0455 7.98508C11.0455 7.38508 11.4091 6.98508 11.9545 6.98508C12.5 6.98508 12.8636 7.38508 12.8636 7.98508C12.7727 11.6851 10.0455 14.7851 6.68182 14.7851Z",fill:"white"}))},y=function(){return t.createElement("svg",{width:"400",height:"300",viewBox:"0 0 467 300",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M312.387 280.629C312.549 280.583 312.247 280.735 312.387 280.629L339.678 260.425C340.088 260.118 340.132 259.156 340.07 258.647C340.008 258.138 339.573 258.257 339.106 258.084L311.712 247.455C311.292 247.301 311.308 247.402 310.939 247.673C310.569 247.944 310.356 248.21 310.356 248.672L310.459 279.504C310.461 280.025 311.163 280.619 311.614 280.847C311.913 280.996 312.072 280.718 312.387 280.629ZM336.204 259.736L312.979 276.292L313.439 251.139L336.204 259.736Z",fill:"url(#paint0_linear_1356_14057)"}),t.createElement("path",{d:"M324.639 260.342C324.358 259.547 323.485 258.91 322.707 259.215C319.6 260.432 318.17 262.313 317.287 264.066C316.482 265.665 316.197 267.482 314.188 268.269C312.178 269.055 310.763 268.663 309.162 268.007C307.406 267.287 305.504 266.182 302.397 267.399C299.289 268.616 297.859 270.497 296.976 272.25C296.171 273.849 295.697 274.886 293.685 275.673C291.675 276.459 290.261 276.067 288.659 275.411C286.903 274.691 284.999 273.587 281.894 274.803C278.789 276.019 277.549 278.681 276.666 280.434C275.861 282.034 275.386 283.07 273.374 283.857C272.596 284.161 271.931 285.055 272.211 285.849C272.492 286.644 273.365 287.281 274.143 286.977C277.25 285.76 278.68 283.879 279.563 282.125C280.368 280.526 280.65 278.71 282.662 277.923C284.672 277.136 286.087 277.528 287.688 278.184C289.444 278.904 291.348 280.009 294.453 278.793C297.561 277.576 298.991 275.695 299.874 273.941C300.679 272.342 301.153 271.306 303.165 270.519C305.175 269.732 306.589 270.124 308.191 270.78C309.947 271.5 311.849 272.605 314.956 271.388C318.063 270.172 319.301 267.511 320.184 265.757C320.989 264.158 321.466 263.121 323.476 262.335C324.254 262.032 324.919 261.137 324.639 260.342Z",fill:"url(#paint1_linear_1356_14057)"}),t.createElement("path",{d:"M389.034 111.124C388.968 112.406 387.342 113.113 386.324 113.549C384.297 114.419 382.089 114.493 379.942 114.5C376.607 114.509 373.215 114.163 369.89 113.976C366.712 113.798 363.156 113.311 360.03 114.232C357.705 114.919 355.667 116.762 353.452 117.739C351.129 118.765 348.957 119.198 346.489 119.687C335.569 121.85 323.587 120.825 312.656 119.977C311.92 119.92 312.539 118.997 313.237 118.981C313.207 118.815 313.001 118.394 313.045 118.201C313.086 118.029 312.781 117.586 312.853 117.421C312.67 117.198 313.316 117.427 313.626 117.204C315.912 115.557 318.721 114.79 321.363 
6115.041C324.677 115.355 327.293 116.04 330.641 115.781C334.392 115.491 338.125 114.787 341.857 114.312C345.142 113.892 349.09 113.941 352.106 112.28C352.916 111.834 353.137 111.262 353.269 110.287C353.331 109.828 353.672 108.969 353.658 108.511C353.629 107.529 354.191 107.886 355.013 107.298C356.857 105.981 358.274 105.516 360.428 105.784C362.841 106.083 365.264 107.273 367.578 107.953C370.761 108.888 374.328 108.646 377.631 108.477C380.517 108.329 383.141 107.901 385.944 108.653C387.013 108.941 389.104 109.745 389.034 111.124Z",fill:"url(#paint2_linear_1356_14057)"}),t.createElement("path",{d:"M278.118 85.4414C280.313 83.8186 283.302 83.9 285.853 83.2728C290.501 82.127 295.644 78.4476 300.549 79.1524C301.299 79.2595 300.904 81.0355 300.159 80.9295C300.131 80.9256 300.187 80.9333 300.159 80.9295C300.089 81.0185 299.516 81.1051 299.385 81.1463C294.999 82.515 292.895 87.5083 289.126 89.8598C287.799 90.688 286.771 90.8351 285.258 90.9441C283.515 91.0691 280.964 90.5775 279.269 90.1219C277.15 89.5532 275.965 87.034 278.118 85.4414Z",fill:"url(#paint3_linear_1356_14057)"}),t.createElement("path",{d:"M122.567 166.093C113.597 172.832 104.535 179.836 99.517 190.092C98.5342 192.099 97.519 195.019 97.9533 197.204C98.9699 202.316 105.76 203.049 110.691 201.96C113.468 201.347 116.325 199.231 115.921 196.319C115.576 193.81 113.158 192.986 112.072 190.73C110.779 188.04 112.35 184.97 114.218 182.62C128.134 165.099 150.074 157.394 171.093 151.607C175.385 150.425 180.897 147.69 180.581 143.099C180.372 140.072 177.118 137.683 174.221 137.383C171.324 137.082 168.481 138.773 165.715 139.776C158.416 142.419 151.17 143.799 143.489 143.526C136.865 143.29 130.976 143.316 129.562 150.781C128.138 158.276 129.53 160.863 122.567 166.093Z",fill:"url(#paint4_linear_1356_14057)"}),t.createElement("path",{d:"M79.1056 153.531C60.3932 164.378 43.7478 178.354 32.8214 197.415C30.3313 201.76 27.9216 206.554 27.1821 211.512C26.4448 216.47 27.7591 222.525 30.8133 226.337C34.908 231.446 41.6938 232.915 48.1811 233.125C50.7248 233.208 53.0035 233.066 55.3316 231.947C57.6602 230.83 59.7548 228.359 59.5978 225.742C59.3303 221.315 54.5491 219.665 50.9271 217.34C42.6566 212.037 40.4958 199.493 44.2381 190.032C47.9803 180.57 55.8228 173.173 63.2316 166.338C67.229 162.651 71.5194 158.372 76.777 157.522C79.9167 157.015 83.4706 157.589 86.6295 157.252C93.9004 156.479 99.64 151.404 105.588 146.912C115.048 139.765 126.045 134.283 137.501 132.093C141.913 131.248 146.293 130.493 149.682 127.831C151.37 126.507 150.803 123.567 148.726 123.93C138.542 125.713 128.652 131.135 119.142 134.758C105.627 139.914 91.7133 146.223 79.1056 153.531Z",fill:"url(#paint5_linear_1356_14057)"}),t.createElement("path",{d:"M96.3677 117.321C96.0315 116.64 95.2914 116.612 94.6293 116.975C91.9858 118.417 91.5452 120.509 90.9466 122.178C90.4004 123.702 89.3647 124.67 87.6542 125.604C85.9437 126.538 85.0983 126.316 83.5956 125.91C81.9481 125.465 79.8603 125.424 77.2168 126.866C74.5734 128.309 74.1348 130.401 73.5341 132.07C72.9879 133.593 71.9522 134.562 70.2417 135.496C68.5313 136.43 67.6859 136.208 66.1832 135.801C64.5357 135.357 62.2569 134.538 59.6128 135.978C56.9694 137.42 56.5308 139.512 55.9301 141.181C55.3839 142.705 54.5398 144.454 52.8293 145.388C52.1667 145.748 52.1006 146.485 52.439 147.165C52.7752 147.845 53.5153 147.874 54.1773 147.511C56.8208 146.069 57.2594 143.977 57.86 142.307C58.4062 140.784 59.4419 139.815 61.1524 138.881C62.8629 137.948 63.7083 138.17 65.211 138.576C66.8585 139.021 68.9458 139.059 71.5898 137.619C74.2333 136.177 74.6718 134.085 75.2725 132.416C75.8187 130.892 76.8544 129.924 78.5649 128.99C80.2754 128.056 81.1207 128.278 82.6235 128.684C84.2709 129.129 86.5503 129.95 89.1938 128.507C91.8373 127.065 92.2779 124.973 92.8765 123.304C93.4227 121.78 94.2663 120.03 95.9773 119.098C96.6378 118.738 96.7039 118.001 96.3677 117.321Z",fill:"#FBC49D"}),t.createElement("path",{d:"M391.827 164.699C392.04 164.639 392.39 164.573 392.6 164.481C393.87 163.921 395.363 162.429 395.893 161.051C396.421 159.673 396.237 158.321 395.712 156.931C394.629 154.061 391.777 152.62 389.155 153.775C386.531 154.931 384.962 158.455 386.042 161.325C387.038 163.963 389.369 165.392 391.827 164.699ZM394.166 157.367C394.529 158.332 394.52 159.751 394.156 160.706C393.792 161.662 393.1 162.534 392.218 162.921C390.398 163.723 388.338 162.878 387.589 160.889C387.226 159.925 387.234 158.506 387.599 157.55C387.963 156.594 388.654 155.723 389.536 155.336C391.356 154.534 393.416 155.376 394.166 157.367Z",fill:"#86E29B"}),t.createElement("path",{d:"M62.7198 108.691C64.4912 108.191 66.6152 106.609 67.5596 104.824C68.4273 103.187 68.465 101.455 67.9609 99.7066C67.4547 97.9586 66.0792 96.5141 64.4963 95.6786C62.9135 94.843 61.2077 94.8578 59.4756 95.4255C57.7435 95.9933 56.2768 97.4364 55.409 99.074C53.6185 102.456 55.2032 106.494 58.4723 108.22C60.0142 109.035 61.1315 109.138 62.7198 108.691ZM60.6304 96.7682C61.819 96.4332 63.0232 96.8871 64.1048 97.4571C65.2463 98.0603 66.0495 98.8796 66.4145 100.142C66.7791 101.403 66.4488 103.299 65.8224 104.48C64.5299 106.919 61.2212 107.686 58.8638 106.441C56.5063 105.197 55.8538 101.858 57.1462 99.4185C57.7726 98.2375 58.6059 97.3957 59.8573 96.9862C59.9214 96.9635 60.5631 96.7872 60.6304 96.7682Z",fill:"#FFB0EB"}),t.createElement("path",{d:"M77.0217 242.979C75.9542 243.28 75.1664 242.151 74.9029 241.074C74.6394 239.996 75 239.378 76.0676 239.077C77.1351 238.776 78.5053 238.907 78.7688 239.984C79.0323 241.061 78.0893 242.678 77.0217 242.979Z",fill:"url(#paint6_linear_1356_14057)"}),t.createElement("path",{d:"M380.506 184.577C379.439 184.878 378.651 183.749 378.387 182.672C378.124 181.594 378.484 180.976 379.552 180.675C380.619 180.374 381.99 180.50
65 382.253 181.582C382.517 182.659 381.574 184.276 380.506 184.577Z",fill:"url(#paint7_linear_1356_14057)"}),t.createElement("path",{d:"M348.82 246.969C347.752 247.27 346.382 247.14 346.119 246.063C345.855 244.985 346.798 243.369 347.866 243.068C348.933 242.767 349.721 243.896 349.985 244.973C350.248 246.05 349.888 246.669 348.82 246.969Z",fill:"url(#paint8_linear_1356_14057)"}),t.createElement("path",{d:"M140.419 282.412C139.351 282.713 138.754 282.365 138.491 281.288C138.227 280.21 138.397 278.812 139.464 278.511C140.532 278.21 142.093 279.121 142.357 280.198C142.62 281.275 141.486 282.111 140.419 282.412Z",fill:"url(#paint9_linear_1356_14057)"}),t.createElement("path",{d:"M121.462 101.679C120.395 101.979 119.798 101.631 119.534 100.554C119.271 99.4764 119.44 98.0779 120.508 97.777C121.575 97.4761 123.136 98.3868 123.4 99.4642C123.663 100.542 122.53 101.378 121.462 101.679Z",fill:"url(#paint10_linear_1356_14057)"}),t.createElement("path",{d:"M370.749 159.005C369.682 159.306 368.311 159.175 368.048 158.098C367.784 157.021 368.727 155.404 369.795 155.103C370.863 154.802 371.65 155.931 371.914 157.008C372.177 158.086 371.817 158.704 370.749 159.005Z",fill:"url(#paint11_linear_1356_14057)"}),t.createElement("path",{d:"M384.211 245.345C383.143 245.646 381.773 245.515 381.51 244.438C381.246 243.361 382.189 241.744 383.257 241.443C384.324 241.142 385.112 242.271 385.376 243.348C385.639 244.426 385.278 245.044 384.211 245.345Z",fill:"url(#paint12_linear_1356_14057)"}),t.createElement("path",{d:"M364.771 41.3873C363.063 41.8687 361.337 40.8616 360.915 39.1378C360.493 37.414 361.536 35.6263 363.244 35.1449C364.953 34.6634 366.679 35.6706 367.101 37.3944C367.522 39.1182 366.479 40.9059 364.771 41.3873Z",fill:"url(#paint13_linear_1356_14057)"}),t.createElement("path",{d:"M404.311 77.905C404.602 77.8231 404.875 77.9236 405.084 77.6871C405.437 77.2908 404.814 76.6385 404.703 76.1265L401.277 58.7418C401.149 58.163 400.687 57.5371 400.123 57.3991C399.558 57.2611 398.969 57.3812 398.576 57.835L385.784 73.1179C385.395 73.564 385.199 74.3453 385.393 74.8964C385.585 75.4481 385.978 76.1646 386.548 76.2391L403.538 78.123C403.744 78.1479 404.114 77.9607 404.311 77.905ZM398.948 62.7348L401.811 74.4394L389.841 72.8085L398.948 62.7348Z",fill:"#FFB0EB"}),t.createElement("path",{d:"M97.5393 295.311C97.7108 295.263 97.4284 295.461 97.5393 295.311L108.785 280.464C108.975 280.211 108.718 279.972 108.594 279.684C108.47 279.396 108.124 279.917 107.821 279.902L88.5106 278.672C88.2101 278.659 87.895 278.62 87.7374 278.89C87.5798 279.159 87.7755 279.402 87.9283 279.67L96.5753 294.749C96.7102 294.99 97.2696 295.297 97.5393 295.311C97.6283 295.319 97.4556 295.335 97.5393 295.311ZM106.465 281.118L96.9667 292.97L90.6295 280.577L106.465 281.118Z",fill:"#86E29B"}),t.createElement("path",{d:"M393.699 108.848C389.518 104.446 414.629 114.366 413.945 120.659C413.259 126.952 401.355 129.102 403.894 123.491C406.042 118.747 400.376 115.876 393.699 108.848Z",fill:"#FBC49D"}),t.createElement("path",{d:"M139.414 115.959C139.434 115.953 139.392 115.965 139.414 115.959C141.963 115.2 143.436 111.976 142.717 109.189C142.37 107.839 141.526 107.199 140.408 106.504C139.289 105.808 138.171 105.449 136.933 105.815C135.698 106.182 134.85 107.033 134.222 108.247C133.595 109.461 133.282 111.234 133.63 112.585C133.978 113.935 134.821 114.574 135.94 115.27C137.04 115.952 138.199 116.301 139.414 115.959ZM137.315 107.375C138.222 107.12 139.005 106.994 139.825 107.502C140.661 108.02 140.912 108.618 141.171 109.625C141.708 111.704 140.935 113.834 139.032 114.398C138.11 114.675 137.356 114.791 136.522 114.272C135.686 113.753 135.436 113.155 135.176 112.149C134.917 111.142 134.718 109.714 135.186 108.81C135.654 107.905 136.394 107.649 137.315 107.375C137.329 107.371 137.299 107.38 137.315 107.375Z",fill:"#75C4FD"}),t.createElement("path",{d:"M308.981 78.7519C310.052 78.4043 311.158 78.7096 312.265 78.6613C313.655 78.6006 314.936 78.517 316.323 78.3531C319.497 77.9795 322.798 77.4906 325.984 77.3012C329.309 77.1025 332.514 76.8551 335.836 77.0295C338.809 77.1842 342.163 77.3405 345.105 77.7558C352.129 78.7468 359.331 79.0578 366.347 80.1158C372.252 81.008 377.93 82.1319 383.722 83.5644C385.925 84.0054 388.267 85.0754 389.126 85.3792C389.421 85.4833 389.37 85.8347 389.317 86.1595C389.306 86.2271 389.353 86.1146 389.317 86.1595C388.269 87.414 386.564 86.8124 385.259 86.4677C384.406 86.241 381.488 85.9494 381.011 85.9957C380.14 86.0815 379.277 86.014 379.656 87.2114C380.122 88.6824 382.391 89.7375 383.704 90.2419C385.883 91.0803 388.771 91.2561 390.845 92.4015C392.968 92.821 395.425 93.5002 397.022 93.9986C402.83 95.8103 407.806 98.8678 413.033 102.002C415.503 103.482 417.829 104.764 419.973 106.72C421.647 108.248 423.771 109.882 424.595 112.091C425.113 113.482 424.451 115.471 422.848 115.085C420.353 114.488 419.638 111.665 418.227 109.714C415.003 105.251 410.067 102.067 405.118 100.06C402.64 99.0556 399.803 98.729 397.204 98.1176C394.411 97.4613 391.597 97.0442 388.707 97.1736C385.646 97.3097 382.846 97.5534 379.819 98.0078C377.027 98.4264 374.252 98.4441 371.514 97.8441C368.766 97.2421 366.276 96.7553 363.6 95.9021C361.662 95.2848 359.013 94.5583 357.232 93.5247C355.699 92.6339 355.631 91.2381 357.241 90.186C359.87 88.4656 362.778 89.8021 365.546 90.3497C365.561 90.3527 365.532 90.3468 365.546 90.3497C367.858 90.804 369.649 90.098 371.923 89.3884C372.489 89.2128 373.255 89.0482 373.47 88.953C374.383 88.5432 375.895 87.8227 375.407 86.7394C374.868 85.5457 372.659 84.8846 371.55 84.4891C369.74 83.8428 368.053 82.9215 366.147 82.6743C365.654 82.6095 365.109 83.1606 364.6 83.1097C363.36 83.1121 361.769 83.348 360.543 83.418C357.43 83.5916 354.583 83.6228 351.464 83.4719C348.714 83.3377 346.432 82.8542 343.741 82.3102C340.773 81.7101 337.52 81.5879 334.471 81.5839C331.393 81.5811 328.6 81.7214 325.583 82.4181C322.758 83.0702 319.757 83.6198 316.887 84.0326C314.698 84.3481 312.467 84.6054 310.319 84.2137C309.079 83.9871 306.994 83.3394 306.461 81.9635C305.846 80.3659 307.736 79.1556 308.981 78.7519Z",fill:"url(#paint14_linear_1356_14057)"}),t.createElement("path",{d:"M242.269 242.95C242.295 242.947 242.244 242.955 242.269 242.95C244.934 242.606 247.53 241.858 250.2 241.574C253.133 241.264 256.006 240.56 258.906 239.982C263.26 239.117 268.026 238.52 272.254 237.097C274.429 236.365 276.067 235.298 278.251 234.592C280.361 233.909 283.058 233.12 285.216 232.652C289.317 231.764 293.049 231.66 297.016 230.198C301.109 228.69 305.088 226.673 308.819 224.409C312.645 222.086 316.282 219.769 320.622 218.62C322.381 218.154 323.919 218.219 325.65 218.886C327.016 219.413 327.739 220.337 327.196 221.79C326.557 223.504 324.659 224.7 323.131 225.423C320.854 226.5 319.53 227.184 317.134 227.927C314.619 228.707 311.888 229.24 309.395 230.083C308.226 230.947 307.17 232.522 306.105 233.501C303.996 235.441 301.666 237.03 298.945 237.996C292.934 240.129 286.354 238.602 280.183 239.056C279.661 239.095 279.162 239.442 278.635 239.487C275.592 240.135 272.2 240.63 269.156 241.294C264.546 242.299 260.456 243.409 255.808 244.179C251.971 244.814 243.815 245.854 243.815 245.854L242.074 245.505C240.575 245.281 240.751 243.152 242.269 242.95Z",fill:"url(#paint15_linear_1356_14057)"}),t.createElement("path",{d:"M432.985 171.626C438.212 165.465 445.109 153.64 442.906 144.649C442.162 137.999 433.671 132.912 424.963 135.518C420.16 136.957 416.435 142.146 419.724 144.498
6C420.656 145.164 422.187 145.591 423.391 145.969C434.204 149.375 434.925 162.538 425.069 169.683C421.087 172.569 416.347 174.292 411.914 176.719C400.151 183.162 399.887 196.847 387.7 202.712C382.326 205.298 375.761 206.838 370.297 209.275C359.98 213.88 352.555 221.733 342.241 226.341C337.225 228.584 330.266 231.632 323.483 234.12C321.475 234.855 321.999 237.058 324.056 236.46C324.098 236.449 324.017 236.474 324.056 236.46C329.079 234.971 334.437 233.161 339.331 231.33C352.278 226.48 365.28 220.971 377.43 214.775C401.78 202.367 416.881 190.609 432.985 171.626Z",fill:"url(#paint16_linear_1356_14057)"}),t.createElement("path",{d:"M343.644 241.104C348.002 234.144 357.126 232.455 364.343 231.134C368.176 230.431 372.406 229.878 376.137 228.662C380.691 227.175 384.558 224.095 388.327 221.077C389.452 220.177 391.204 218.466 392.393 217.436C393.185 216.748 393.644 216.026 394.33 215.225C396 213.275 399.599 209.812 401.687 208.16C403.263 206.914 407.779 204.758 408.259 207.986C408.611 210.359 406.379 213.087 404.961 214.747C402.224 217.953 398.998 221.079 395.475 223.243C391.749 225.531 387.701 227.439 383.674 229.051C381.672 229.853 379.519 230.073 377.486 230.785C376.001 231.307 374.486 232.236 373.037 232.866C371.034 233.738 368.99 234.28 367.041 235.38C364.436 236.849 361.782 238.783 359.108 240.105C356.331 241.477 353.823 242.691 350.791 243.27C348.6 243.687 345.501 243.641 343.836 241.884C343.526 241.554 343.389 241.51 343.644 241.104Z",fill:"url(#paint17_linear_1356_14057)"}),t.createElement("path",{d:"M190.163 273.219C222.905 268.849 232.64 262.943 213.962 259.057C195.285 255.172 187.5 262.08 188.434 266.2C189.366 270.32 180.381 271.326 169.286 272.39C158.193 273.454 157.141 276.354 190.163 273.219Z",fill:"url(#paint18_linear_1356_14057)"}),t.createElement("path",{d:"M295.952 95.4242L241.395 135.226L251.54 111.77L295.952 95.4242Z",fill:"#E17726",stroke:"#E17726",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M170.111 95.4242L224.181 135.598L214.522 111.77L170.111 95.4242Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M276.309 187.712L261.793 209.576L292.876 218.014L301.78 188.189L276.309 187.712Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M164.336 188.189L173.186 218.014L204.215 209.576L189.753 187.712L164.336 188.189Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M202.542 150.776L193.908 163.618L224.667 164.998L223.642 132.36L202.542 150.776Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M263.52 150.775L242.097 131.989L241.395 164.998L272.154 163.618L263.52 150.775Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M204.215 209.576L222.832 200.714L206.805 188.402L204.215 209.576Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M243.23 200.714L261.793 209.576L259.257 188.402L243.23 200.714Z",fill:"#E27625",stroke:"#E27625",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M261.793 209.576L243.23 200.714L244.741 212.601L244.579 217.643L261.793 209.576Z",fill:"#D5BFB2",stroke:"#D5BFB2",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M204.215 209.576L221.483 217.643L221.375 212.601L222.832 200.714L204.215 209.576Z",fill:"#D5BFB2",stroke:"#D5BFB2",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M221.807 180.547L206.373 176.09L217.274 171.154L221.807 180.547Z",fill:"#233447",stroke:"#233447",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M244.255 180.547L248.788 171.154L259.742 176.09L244.255 180.547Z",fill:"#233447",stroke:"#233447",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M204.215 209.576L206.913 187.712L189.753 188.189L204.215 209.576Z",fill:"#CC6228",stroke:"#CC6228",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M259.149 187.712L261.793 209.576L276.309 188.189L259.149 187.712Z",fill:"#CC6228",stroke:"#CC6228",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M272.154 163.618L241.395 164.998L244.255 180.547L248.788 171.154L259.742 176.09L272.154 163.618Z",fill:"#CC6228",stroke:"#CC6228",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M206.373 176.09L217.274 171.154L221.807 180.547L224.667 164.998L193.908 163.618L206.373 176.09Z",fill:"#CC6228",stroke:"#CC6228",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M193.908 163.618L206.805 188.402L206.373 176.09L193.908 163.618Z",fill:"#E27525",stroke:"#E27525",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M259.743 176.09L259.257 188.402L272.154 163.618L259.743 176.09Z",fill:"#E27525",stroke:"#E27525",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M224.667 164.998L221.807 180.548L225.422 198.909L226.232 174.71L224.667 164.998Z",fill:"#E27525",stroke:"#E27525",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M241.395 164.998L239.884 174.657L240.64 198.909L244.255 180.548L241.395 164.998Z",fill:"#E27525",stroke:"#E27525",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M244.255 180.547L240.64 198.909L243.23 200.714L259.257 188.402L259.743 176.09L244.255 180.547Z",fill:"#F5841F",stroke:"#F5841F",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M206.373 176.09L206.805 188.402L222.832 200.714L225.422 198.909L221.807 180.547L206.373 176.09Z",fill:"#F5841F",stroke:"#F5841F",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M244.579 217.643L244.741 212.601L243.338 211.434H222.724L221.375 212.601L221.483 217.643L204.215 209.576L210.259 214.459L222.508 222.791H243.5L255.803 214.459L261.793 209.576L244.579 217.643Z",fill:"#C0AC9D",stroke:"#C0AC9D",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M243.23 200.714L240.64 198.909H225.422L222.832 200.714L221.375 212.601L222.724 211.434H243.338L244.741 212.601L243.23 200.714Z",fill:"#161616",stroke:"#161616",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M298.272 137.827L302.859 115.856L295.952 95.4242L243.23 133.899L263.52 150.775L292.174 159.001L298.488 151.731L295.736 149.767L300.107 145.84L296.761 143.293L301.
6132 140.002L298.272 137.827Z",fill:"#763E1A",stroke:"#763E1A",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M163.203 115.856L167.844 137.827L164.876 140.002L169.301 143.293L165.955 145.84L170.326 149.767L167.574 151.731L173.888 159.001L202.542 150.775L222.832 133.899L170.11 95.4242L163.203 115.856Z",fill:"#763E1A",stroke:"#763E1A",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M292.175 159.001L263.52 150.775L272.154 163.618L259.257 188.402L276.309 188.189H301.78L292.175 159.001Z",fill:"#F5841F",stroke:"#F5841F",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M202.542 150.775L173.888 159.001L164.336 188.189H189.753L206.805 188.402L193.908 163.618L202.542 150.775Z",fill:"#F5841F",stroke:"#F5841F",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M241.395 164.998L243.23 133.9L251.54 111.77H214.522L222.832 133.9L224.667 164.998L225.368 174.763L225.422 198.909H240.64L240.694 174.763L241.395 164.998Z",fill:"#F5841F",stroke:"#F5841F",strokeWidth:"0.94513",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("defs",null,t.createElement("linearGradient",{id:"paint0_linear_1356_14057",x1:"335.991",y1:"250.487",x2:"303.873",y2:"266.801",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#FFE466"}),t.createElement("stop",{offset:"1",stopColor:"#FFAFEA"})),t.createElement("linearGradient",{id:"paint1_linear_1356_14057",x1:"276.993",y1:"303.722",x2:"205.254",y2:"401.574",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#75C3FC"}),t.createElement("stop",{offset:"0.0929",stopColor:"#81C2F6"}),t.createElement("stop",{offset:"1",stopColor:"#F0B8BD"})),t.createElement("linearGradient",{id:"paint2_linear_1356_14057",x1:"271.074",y1:"119.924",x2:"553.077",y2:"104.53",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#FFE466"}),t.createElement("stop",{offset:"1",stopColor:"#FFAFEA"})),t.createElement("linearGradient",{id:"paint3_linear_1356_14057",x1:"264.209",y1:"91.0943",x2:"357.834",y2:"72.8792",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#FFE466"}),t.createElement("stop",{offset:"1",stopColor:"#FFAFEA"})),t.createElement("linearGradient",{id:"paint4_linear_1356_14057",x1:"212.46",y1:"121.997",x2:"92.6119",y2:"183.406",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#FFE466"}),t.createElement("stop",{offset:"1",stopColor:"#FFAFEA"})),t.createElement("linearGradient",{id:"paint5_linear_1356_14057",x1:"23.0498",y1:"204.411",x2:"161.86",y2:"163.003",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#75C3FC"}),t.createElement("stop",{offset:"0.0929",stopColor:"#81C2F6"}),t.createElement("stop",{offset:"1",stopColor:"#F0B8BD"})),t.createElement("linearGradient",{id:"paint6_linear_1356_14057",x1:"78.8647",y1:"240.375",x2:"74.9655",y2:"241.328",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#75C3FC"}),t.createElement("stop",{offset:"1",stopColor:"#75C3FC"})),t.createElement("linearGradient",{id:"paint7_linear_1356_14057",x1:"382.349",y1:"181.971",x2:"378.45",y2:"182.925",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#75C3FC"}),t.createElement("stop",{offset:"1",stopColor:"#75C3FC"})),t.createElement("linearGradient",{id:"paint8_linear_1356_14057",x1:"349.889",y1:"244.583",x2:"345.99",y2:"245.537",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#75C3FC"}),t.createElement("stop",{offset:"1",stopColor:"#75C3FC"})),t.createElement("linearGradient",{id:"paint9_linear_1356_14057",x1:"142.262",y1:"279.808",x2:"138.362",y2:"280.762",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#75C3FC"}),t.createElement("stop",{offset:"1",stopColor:"#75C3FC"})),t.createElement("linearGradient",{id:"paint10_linear_1356_14057",x1:"123.305",y1:"99.0746",x2:"119.406",y2:"100.028",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#75C3FC"}),t.createElement("stop",{offset:"1",stopColor:"#75C3FC"})),t.createElement("linearGradient",{id:"paint11_linear_1356_14057",x1:"371.818",y1:"156.617",x2:"367.919",y2:"157.571",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#75C3FC"}),t.createElement("stop",{offset:"1",stopColor:"#75C3FC"})),t.createElement("linearGradient",{id:"paint12_linear_1356_14057",x1:"385.281",y1:"242.958",x2:"381.382",y2:"243.911",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#75C3FC"}),t.createElement("stop",{offset:"1",stopColor:"#75C3FC"})),t.createElement("linearGradient",{id:"paint13_linear_1356_14057",x1:"367.125",y1:"37.5052",x2:"360.843",y2:"38.8076",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#75C3FC"}),t.createElement("stop",{offset:"1",stopColor:"#75C3FC"})),t.createElement("linearGradient",{id:"paint14_linear_1356_14057",x1:"300.182",y1:"91.321",x2:"479.464",y2:"104.041",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#FFE466"}),t.createElement("stop",{offset:"1",stopColor:"#FFAFEA"})),t.createElement("linearGradient",{id:"paint15_linear_1356_14057",x1:"363.434",y1:"201.232",x2:"102.977",y2:"302.269",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#FFE466"}),t.createElement("stop",{offset:"1",stopColor:"#FFAFEA"})),t.createElement("linearGradient",{id:"paint16_linear_1356_14057",x1:"447.962",y1:"165.159",x2:"313.049",
6y2:"197.95",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#75C3FC"}),t.createElement("stop",{offset:"0.0929",stopColor:"#81C2F6"}),t.createElement("stop",{offset:"1",stopColor:"#F0B8BD"})),t.createElement("linearGradient",{id:"paint17_linear_1356_14057",x1:"410.211",y1:"215.859",x2:"341.378",y2:"232.788",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#75C3FC"}),t.createElement("stop",{offset:"0.0929",stopColor:"#81C2F6"}),t.createElement("stop",{offset:"1",stopColor:"#F0B8BD"})),t.createElement("linearGradient",{id:"paint18_linear_1356_14057",x1:"222.282",y1:"258.986",x2:"162.257",y2:"273.774",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#FFE466"}),t.createElement("stop",{offset:"1",stopColor:"#FFAFEA"}))))},A=function(e){var n=t.useState(2),r=n[0],o=n[1],l=e.sdkVersion,c=e.i18nInstance.t;return t.createElement(a,{className:"select-modal"},t.createElement("div",{style:s.backdrop,onClick:e.onClose}),t.createElement("div",{style:s.modal},t.createElement("div",{style:s.closeButtonContainer},t.createElement("div",{style:s.right},t.createElement("span",{style:s.closeButton,onClick:e.onClose},t.createElement(u,null)))),t.createElement("div",{style:s.logoContainer},t.createElement(h,null)),t.createElement("div",null,t.createElement("div",{style:s.tabcontainer},t.createElement("div",{style:s.flexContainer},t.createElement("div",{onClick:function(){return o(1)},style:i(i(i({},s.tab),1===r?s.tabactive:{}),s.flexItem)},c("DESKTOP")),t.createElement("div",{onClick:function(){return o(2)},style:i(i(i({},s.tab),2===r?s.tabactive:{}),s.flexItem)},c("MOBILE")))),t.createElement("div",{style:{display:1===r?"none":"block"}},t.createElement("div",{style:s.flexContainer},t.createElement("div",{style:i({textAlign:"center",marginTop:4},s.flexItem)},t.createElement("div",{id:"sdk-qrcode-container",style:s.center}),t.createElement("div",{style:s.connectMobileText},c("SCAN_TO_CONNECT"),t.createElement("br",null),t.createElement("span",{style:s.blue},t.createElement("b",null,c("META_MASK_MOBILE_APP"))))))),t.createElement("div",{style:{display:2===r?"none":"block"}},t.createElement("div",{style:{display:"flex",justifyContent:"center",height:300,marginTop:-20}},t.createElement(y,null)),t.createElement("div",{style:s.extensionLabel},c("SELECT_MODAL.CRYPTO_TAKE_CONTROL_TEXT")),t.createElement("button",{style:s.button,onClick:e.connectWithExtension},t.createElement(b,null),t.createElement("span",{style:s.installExtensionText},c("CONNECT_WITH_EXTENSION"))))),t.createElement(m,{version:l})))},w=function(){function e(e){var t=e.debug,n=e.sdkVersion,i=this;this.debug=!1,this.updateOTPValue=function(e){i.debug&&console.debug("ModalLoader: updateOTPValue",e),setTimeout(function(){var t;i.debug&&console.debug("ModalLoader: updateOTPValue: delayed otp update"),t=document.getElementById("sdk-mm-otp-value"),i.debug&&console.debug("ModalLoader: updateOTPValue: otpNode",t),t&&(t.textContent=e,t.style.display="block")},800)},this.updateQRCode=function(e){i.debug&&console.debug("ModalLoader: updateQRCode",e);var t=document.getElementById("sdk-qrcode-container");t&&(t.innerHTML="",new(_y())({width:270,height:270,type:"svg",data:e,image:r,dotsOptions:{color:"black",type:"rounded"},imageOptions:{margin:5},cornersDotOptions:{color:"#f66a07"},qrOptions:{errorCorrectionLevel:"M"}}).append(t))},this.debug=null!=t&&t,this.sdkVersion=n}return e.prototype.renderInstallModal=function(e){this.debug&&console.debug("ModalLoader: renderInstallModal",e),this.installContainer=e.parentElement,n.createRoot(e.parentElement).render(t.createElement(g,{link:e.link,preferDesktop:e.preferDesktop,onClose:e.onClose,sdkVersion:this.sdkVersion,metaMaskInstaller:e.metaMaskInstaller,i18nInstance:e.i18nInstance}))},e.prototype.renderSelectModal=function(e){var r=this;this.debug&&console.debug("ModalLoader: renderSelectModal",e),this.selectContainer=e.parentElement,n.createRoot(e.parentElement).render(t.createElement(A,{link:e.link,sdkVersion:this.sdkVersion,onClose:e.onClose,connectWithExtension:e.connectWithExtension,i18nInstance:e.i18nInstance})),setTimeout(function(){r.updateQRCode(e.link)},100)},e.prototype.renderPendingModal=function(e){this.debug&&console.debug("ModalLoader: renderPendingModal",e),this.pendingContainer=e.parentElement,n.createRoot(e.parentElement).render(t.createElement(v,{onClose:e.onClose,onDisconnect:e.onDisconnect,sdkVersion:this.sdkVersion,updateOTPValue:e.updateOTPValue,displayOTP:e.dis
6playOTP,i18nInstance:e.i18nInstance}))},e.prototype.unmount=function(){var e,t,n,r,i,o;null===(t=null===(e=this.pendingContainer)||void 0===e?void 0:e.parentNode)||void 0===t||t.removeChild(this.pendingContainer),this.pendingContainer=void 0,null===(r=null===(n=this.installContainer)||void 0===n?void 0:n.parentNode)||void 0===r||r.removeChild(this.installContainer),this.installContainer=void 0,null===(o=null===(i=this.selectContainer)||void 0===i?void 0:i.parentNode)||void 0===o||o.removeChild(this.selectContainer),this.selectContainer=void 0},e}();e.ModalLoader=w}(w5,_t(),function(){if(_m)return _a;_m=1;var e=(_p||(_p=1,"production"===ex.env.NODE_ENV?(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==ex.env.NODE_ENV)throw Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),_s.exports=function(){if(_o)return _l;_o=1;var e=_t(),t=_f();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function o(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(i[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),l=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,c={},d={};function f(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var h={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){h[e]=new f(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];h[t]=new f(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){h[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){h[e]=new f(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){h[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){h[e]=new f(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){h[e]=new f(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){h[e]=new f(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){h[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)});var p=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function g(e,t,n,r){var i,o=h.hasOwnProperty(t)?h[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?(i=t,(!!l.call(d,i)||!l.call(c,i)&&(u.test(i)?d[i]=!0:(c[i]=!0,!1)))&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n))):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
6-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(p,m);h[t]=new f(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(p,m);h[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(p,m);h[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){h[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)}),h.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){h[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)});var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.element"),y=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),S=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),T=Symbol.iterator;function O(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=T&&e[T]||e["@@iterator"])?e:null}var P,L=Object.assign;function N(e){if(void 0===P)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||""}return"\n"+P+e}var D=!1;function B(e,t){if(!e||D)return"";D=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t){if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{D=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?N(e):""}function j(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function F(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function z(e){e._valueTracker||(e._valueTracker=function(e){var t=F(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function U(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=F(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function H(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=j(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function V(e,t){null!=(t=t.checked)&&g(e,"checked",t,!1)}function $(e,t){V(e,t);var n=j(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Y(e,t.type,n):t.hasOwnProperty("defaultValue")&&Y(e,t.type,j(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function W(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Y(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var G=Array.isArray;function Q(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+j(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Z(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function J(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(G(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:j(r)}}function X(e,t){var n=j(t.value),r=j(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ee(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function et(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function en(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?et(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var er,ei,eo=(ei=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((er=er||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=er.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ei(e,t)})}:ei);function ea(e,t){if(t){var n=e.firstChild;
vendor: 2,078 bytes, line 6
6if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var es={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},el=["Webkit","ms","Moz","O"];function eu(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||es.hasOwnProperty(e)&&es[e]?(""+t).trim():t+"px"}function ec(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=eu(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(es).forEach(function(e){el.forEach(function(t){es[t=t+e.charAt(0).toUpperCase()+e.substring(1)]=es[e]})});var ed=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ef(e,t){if(t){if(ed[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function eh(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ep=null;function em(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.n
vendor: 21,235 bytes, line 6
6odeType?e.parentNode:e}var eg=null,ev=null,eb=null;function ey(e){if(e=rC(e)){if("function"!=typeof eg)throw Error(n(280));var t=e.stateNode;t&&(t=rR(t),eg(e.stateNode,e.type,t))}}function eA(e){ev?eb?eb.push(e):eb=[e]:ev=e}function ew(){if(ev){var e=ev,t=eb;if(eb=ev=null,ey(e),t)for(e=0;e<t.length;e++)ey(t[e])}}function e_(e,t){return e(t)}function eE(){}var eS=!1;function ek(e,t,n){if(eS)return e(t,n);eS=!0;try{return e_(e,t,n)}finally{eS=!1,(null!==ev||null!==eb)&&(eE(),ew())}}function eM(e,t){var r=e.stateNode;if(null===r)return null;var i=rR(r);if(null===i)return null;switch(r=i[t],t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var eC=!1;if(s)try{var ex={};Object.defineProperty(ex,"passive",{get:function(){eC=!0}}),window.addEventListener("test",ex,ex),window.removeEventListener("test",ex,ex)}catch(e){eC=!1}function eR(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var eI=!1,eT=null,eO=!1,eP=null,eL={onError:function(e){eI=!0,eT=e}};function eN(e,t,n,r,i,o,a,s,l){eI=!1,eT=null,eR.apply(eL,arguments)}function eD(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do 0!=(4098&(t=e).flags)&&(n=t.return),e=t.return;while(e)}return 3===t.tag?n:null}function eB(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function ej(e){if(eD(e)!==e)throw Error(n(188))}function eF(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=eD(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,i=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(i=o.return)){r=i;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return ej(o),e;if(a===i)return ej(o),t;a=a.sibling}throw Error(n(188))}if(r.return!==i.return)r=o,i=a;else{for(var s=!1,l=o.child;l;){if(l===r){s=!0,r=o,i=a;break}if(l===i){s=!0,i=o,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,i=o;break}if(l===i){s=!0,i=a,r=o;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==i)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?function e(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var n=e(t);if(null!==n)return n;t=t.sibling}return null}(e):null}var ez=t.unstable_scheduleCallback,eU=t.unstable_cancelCallback,eq=t.unstable_shouldYield,eK=t.unstable_requestPaint,eH=t.unstable_now,eV=t.unstable_getCurrentPriorityLevel,e$=t.unstable_ImmediatePriority,eW=t.unstable_UserBlockingPriority,eY=t.unstable_NormalPriority,eG=t.unstable_LowPriority,eQ=t.unstable_IdlePriority,eZ=null,eJ=null,eX=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(e0(e)/e1|0)|0},e0=Math.log,e1=Math.LN2,e2=64,e3=4194304;function e6(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function e4(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=e6(s):0!=(o&=a)&&(r=e6(o))}else 0!=(a=n&~i)?r=e6(a):0!==o&&(r=e6(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-eX(t)),r|=e[n],t&=~i;return r}function e8(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function e5(){var e=e2;return 0==(4194240&(e2<<=1))&&(e2=64),e}function e7(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function e9(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-eX(t)]=n}function te(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-eX(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var tt=0;function tn(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var tr,ti,to,ta,ts,tl=!1,tu=[],tc=null,td=null,tf=null,th=new Map,tp=new Map,tm=[],tg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function tv(e,t){switch(e){case"focusin":case"focusout":tc=null;break;case"dragenter":case"dragleave":td=null;break;case"mouseover":case"mouseout":tf=null;break;case"pointerover":case"pointerout":th.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tp.delete(t.pointerId)}}function tb(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=rC(t))&&ti(t)):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i)),e}function ty(e){var t=rM(e.target);if(null!==t){var n=eD(t);if(null!==n){if(13===(t=n.tag)){if(null!==(t=eB(n)))return e.blockedOn=t,void ts(e.priority,function(){to(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}}e.blockedOn=null}function tA(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=tT(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=rC(n))&&ti(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ep=r,n.target.dispatchEvent(r),ep=null,t.shift()}return!0}function tw(e,t,n){tA(e)&&n.delete(t)}function t_(){tl=!1,null!==tc&&tA(tc)&&(tc=null),null!==td&&tA(td)&&(td=null),null!==tf&&tA(tf)&&(tf=null),th.forEach(tw),tp.forEach(tw)}function tE(e,n){e.blockedOn===n&&(e.blockedOn=null,tl||(tl=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,t_)))}function tS(e){function t(t){return tE(t,e)}if(0<tu.length){tE(tu[0],e);for(var n=1;n<tu.length;n++){var r=tu[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==tc&&tE(tc,e),null!==td&&tE(td,e),null!==tf&&tE(tf,e),th.forEach(t),tp.forEach(t),n=0;n<tm.length;n++)(r=tm[n]).blockedOn===e&&(r.blockedOn=null);for(;0<tm.length&&null===(n=tm[0]).blockedOn;)ty(n),null===n.blockedOn&&tm.shift()}var tk=v.ReactCurrentBatchConfig,tM=!0;function tC(e,t,n,r){var i=tt,o=tk.transition;tk.transition=null;try{tt=1,tR(e,t,n,r)}finally{tt=i,tk.transition=o}}function tx(e,t,n,r){var i=tt,o=tk.transition;tk.transition=null;try{tt=4,tR(e,t,n,r)}finally{tt=i,tk.transition=o}}function tR(e,t,n,r){if(tM){var i=tT(e,t,n,r);if(null===i)n7(e,t,r,tI,n),tv(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return tc=tb(tc,e,t,n,r,i),!0;case"dragenter":return td=tb(td,e,t,n,r,i),!0;case"mouseover":return tf=tb(tf,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return th.set(o,tb(th.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,tp.set(o,tb(tp.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(tv(e,r),4&t&&-1<tg.indexOf(e)){for(;null!==i;){var o=rC(i);if(null!==o&&tr(o),null===(o=tT(e,t,n,r))&&n7(e,t,r,tI,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else n7(e,t,r,null,n)}}var tI=null;function tT(e,t,n,r){if(tI=null,null!==(e=rM(e=em(r)))){if(null===(t=eD(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=eB(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}return tI=e,null}function tO(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(eV()){case e$:return 1;case eW:return 4;case eY:case eG:return 16;case eQ:return 536870912;default:return 16}default:return 16}}var tP=null,tL=null,tN=null;function tD(){if(tN)return tN;var e,t,n=tL,r=n.length,i="value"in tP?tP.value:tP.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return tN=i.slice(e,1<t?1-t:void 0)}function tB(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function tj(){return!0}function tF(){return!1}function tz(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?tj:tF,this.isPropagationStopped=tF,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=tj)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=tj)},persist:function(){},isPersistent:tj}),t}var tU,tq,tK,tH={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tV=tz(tH),t$=L({},tH,{view:0,detail:0}),tW=tz(t$),tY=L({},t$,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:t4,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==tK&&(tK&&"mousemove"===e.type?(tU=e.screenX-tK.screenX,tq=e.screenY-tK.screenY):tq=tU=0,tK=e),tU)},movementY:function(e){return"movementY"in e?e.movementY:tq}}),tG=tz(tY),tQ=tz(L({},tY,{dataTransfer:0})),tZ=tz(L({},t$,{relatedTarget:0})),tJ=tz(L({},tH,{animationName:0,elapsedTime:0,pseudoElement:0})),tX=tz(L({},tH,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),t0=tz(L({},tH,{data:0})),t1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},t2={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},t3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function t6(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=t3[e])&&!!t[e]}function t4(){return t6}var t8=tz(L({},t$,{key:function(e){if(e.key){var t=t1[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tB(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?t2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:t4,charCode:function(e){return"keypress"===e.type?tB(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tB(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),t5=tz(L({},tY,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),t7=tz(L({},t$,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:t4})),t9=tz(L({},tH,{propertyName:0,elapsedTime:0,pseudoElement:0})),ne=tz(L({},tY,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),nt=[9,13,27,32],nn=s&&"CompositionEvent"in window,nr=null;s&&"documentMode"in document&&(nr=document.documentMode);var ni=s&&"TextEvent"in window&&!nr,no=s&&(!nn||nr&&8<nr&&11>=nr),na=!1;function ns(e,t){switch(e){case"keyup":return -1!==nt.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nl(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var nu=!1,nc={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!nc[e.type]:"textarea"===t}function nf(e,t,n,r){eA(r),0<(t=re(t,"onChange")).length&&(n=new tV("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nh=null,np=null;function nm(e){n2(e,0)}function ng(e){if(U(rx(e)))return e}function nv(e,t){if("change"===e)return t}var nb=!1;if(s){if(s){var ny="oninput"in document;if(!ny){var nA=document.createElement("div");nA.setAttribute("oninput","return;"),ny="function"==typeof nA.oninput}ad=ny}else ad=!1;nb=ad&&(!document.documentMode||9<document.documentMode)}function nw(){nh&&(nh.detachEvent("onpropertychange",n_),np=nh=null)}function n_(e){if("value"===e.propertyName&&ng(np)){var t=[];nf(t,np,e,em(e)),ek(nm,t)}}function nE(e,t,n){"focusin"===e?(nw(),np=n,(nh=t).attachEvent("onpropertychange",n_)):"focusout"===e&&nw()}function nS(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return ng(np)}function nk(e,t){if("click"===e)return ng(t)}function nM(e,t){if("input"===e||"change"===e)return ng(t)}var nC="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function nx(e,t){if(nC(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!nC(e[i],t[i]))return!1}return!0}function nR(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nI(e,t){var n,r=nR(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nR(r)}}function nT(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function nO(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var nP=s&&"documentMode"in document&&11>=document.documentMode,nL=null,nN=null,nD=null,nB=!1;function nj(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;nB||null==nL||nL!==q(r)||(r="selectionStart"in(r=nL)&&nO(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},nD&&nx(nD,r)||(nD=r,0<(r=re(nN,"onSelect")).length&&(t=new tV("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=nL)))}function nF(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var nz={animationend:nF("Animation","AnimationEnd"),animationiteration:nF("Animation","AnimationIteration"),animationstart:nF("Animation","AnimationStart"),transitionend:nF("Transition","TransitionEnd")},nU={},nq={};function nK(e){if(nU[e])return nU[e];if(!nz[e])return e;var t,n=nz[e];for(t in n)if(n.hasOwnProperty(t)&&t in nq)return nU[e]=n[t];return e}s&&(nq=document.createElement("div").style,"AnimationEvent"in window||(delete nz.animationend.animation,delete nz.animationiteration.animation,delete nz.animationstart.animation),"TransitionEvent"in window||delete nz.transitionend.transition);var nH=nK("animationend"),nV=nK("animationiteration"),n$=nK("animationstart"),nW=nK("transitionend"),nY=new Map,nG="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function nQ(e,t){nY.set(e,t),o(t,[e])}for(var nZ=0;nZ<nG.length;nZ++){var nJ=nG[nZ];nQ(nJ.toLowerCase(),"on"+(nJ[0].toUpperCase()+nJ.slice(1)))}nQ(nH,"onAnimationEnd"),nQ(nV,"onAnimationIteration"),nQ(n$,"onAnimationStart"),nQ("dblclick","onDoubleClick"),nQ("focusin","onFocus"),nQ("focusout","onBlur"),nQ(nW,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nX="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),n0=new Set("cancel close invalid load scroll toggle".split(" ").concat(nX));function n1(e,t,r){var i=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,i,o,a,s,l,u){if(eN.apply(this,arguments),eI){if(!eI)throw Error(n(198));var c=eT;eI=!1,eT=null,eO||(eO=!0,eP=c)}}(i,t,void 0,e),e.currentTarget=null}function n2(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;n1(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;n1(i,s,u),o=l}}}if(eO)throw e=eP,eO=!1,eP=null,e}function n3(e,t){var n=t[rE];void 0===n&&(n=t[rE]=new Set);var r=e+"__bubble";n.has(r)||(n5(t,e,2,!1),n.add(r))}function n6(e,t,n){var r=0;t&&(r|=4),n5(n,e,r,t)}var n4="_reactListening"+Math.random().toString(36).slice(2);function n8(e){if(!e[n4]){e[n4]=!0,r.forEach(function(t){"selectionchange"!==t&&(n0.has(t)||n6(t,!1,e),n6(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[n4]||(t[n4]=!0,n6("selectionchange",!1,t))}}function n5(e,t,n,r){switch(tO(t)){case 1:var i=tC;break;case 4:i=tx;break;default:i=tR}n=i.bind(null,t,n,e),i=void 0,eC&&("touchstart"===t||"touchmove"===t||"wheel"===t)&&(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function n7(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;
vendor: 5,934 bytes, line 6
6if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=rM(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}ek(function(){var r=o,i=em(n),a=[];e:{var s=nY.get(e);if(void 0!==s){var l=tV,u=e;switch(e){case"keypress":if(0===tB(n))break e;case"keydown":case"keyup":l=t8;break;case"focusin":u="focus",l=tZ;break;case"focusout":u="blur",l=tZ;break;case"beforeblur":case"afterblur":l=tZ;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=tG;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=tQ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=t7;break;case nH:case nV:case n$:l=tJ;break;case nW:l=t9;break;case"scroll":l=tW;break;case"wheel":l=ne;break;case"copy":case"cut":case"paste":l=tX;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=t5}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&null!=(m=eM(p,f))&&c.push(n9(p,m,h))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===ep||!(u=n.relatedTarget||n.fromElement)||!rM(u)&&!u[r_])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?rM(u):null)&&(u!==(d=eD(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=tG,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=t5,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:rx(l),h=null==u?s:rx(u),(s=new c(m,p+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,rM(i)===r&&((c=new c(f,p+"enter",u,n,i)).target=h,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,p=0,h=c=l;h;h=rt(h))p++;for(h=0,m=f;m;m=rt(m))h++;for(;0<p-h;)c=rt(c),p--;for(;0<h-p;)f=rt(f),h--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=rt(c),f=rt(f)}c=null}else c=null;null!==l&&rn(a,s,l,c,!1),null!==u&&null!==d&&rn(a,d,u,c,!0)}if("select"===(l=(s=r?rx(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g,v=nv;else if(nd(s)){if(nb)v=nM;else{v=nS;var b=nE}}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=nk);switch(v&&(v=v(e,r))?nf(a,v,n,i):(b&&b(e,s,r),"focusout"===e&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&Y(s,"number",s.value)),b=r?rx(r):window,e){case"focusin":(nd(b)||"true"===b.contentEditable)&&(nL=b,nN=r,nD=null);break;case"focusout":nD=nN=nL=null;break;case"mousedown":nB=!0;break;case"contextmenu":case"mouseup":case"dragend":nB=!1,nj(a,n,i);break;case"selectionchange":if(nP)break;case"keydown":case"keyup":nj(a,n,i)}if(nn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else nu?ns(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(no&&"ko"!==n.locale&&(nu||"onCompositionStart"!==y?"onCompositionEnd"===y&&nu&&(g=tD()):(tL="value"in(tP=i)?tP.value:tP.textContent,nu=!0)),0<(b=re(r,y)).length&&(y=new t0(y,e,null,n,i),a.push({event:y,listeners:b}),g?y.data=g:null!==(g=nl(n))&&(y.data=g))),(g=ni?function(e,t){switch(e){case"compositionend":return nl(t);case"keypress":return 32!==t.which?null:(na=!0," ");case"textInput":return" "===(e=t.data)&&na?null:e;default:return null}}(e,n):function(e,t){if(nu)return"compositionend"===e||!nn&&ns(e,t)?(e=tD(),tN=tL=tP=null,nu=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return no&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=re(r,"onBeforeInput")).length&&(i=new t0("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=g)}n2(a,t)})}function n9(e,t,n){return{instance:e,listener:t,currentTarget:n}}function re(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=eM(e,n))&&r.unshift(n9(e,o,i)),null!=(o=eM(e,t))&&r.push(n9(e,o,i))),e=e.return}return r}function rt(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag);return e||null}function rn(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=eM(n,o))&&a.unshift(n9(n,l,s)):i||null!=(l=eM(n,o))&&a.push(n9(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var rr=/\r\n?/g,ri=/\u0000|\uFFFD/g;function ro(e){return("string"==typeof e?e:""+e).replace(rr,"\n").replace(ri,"")}function ra(e,t,r){if(t=ro(t),ro(e)!==t&&r)throw Error(n(425))}function rs(){}var rl=null,ru=null;function rc(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var rd="function"==typeof setTimeout?setTimeout:void 0,rf="function"==typeof clearTimeout?clearTimeout:void 0,rh="function"==typeof Promise?Promise:void 0,rp="function"==typeof queueMicrotask?queueMicrotask:void 0!==rh?function(e){return rh.resolve(null).then(e).catch(rm)}:rd;function rm(e){setTimeout(function(){throw e})}function rg(e,t){var n=t,r=0;do{var i=n.nextSibling;
vendor: 4,182 bytes, line 6
6if(e.removeChild(n),i&&8===i.nodeType){if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void tS(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++}n=i}while(n);tS(t)}function rv(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function rb(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ry=Math.random().toString(36).slice(2),rA="__reactFiber$"+ry,rw="__reactProps$"+ry,r_="__reactContainer$"+ry,rE="__reactEvents$"+ry,rS="__reactListeners$"+ry,rk="__reactHandles$"+ry;function rM(e){var t=e[rA];if(t)return t;for(var n=e.parentNode;n;){if(t=n[r_]||n[rA]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=rb(e);null!==e;){if(n=e[rA])return n;e=rb(e)}return t}n=(e=n).parentNode}return null}function rC(e){return(e=e[rA]||e[r_])&&(5===e.tag||6===e.tag||13===e.tag||3===e.tag)?e:null}function rx(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function rR(e){return e[rw]||null}var rI=[],rT=-1;function rO(e){return{current:e}}function rP(e){0>rT||(e.current=rI[rT],rI[rT]=null,rT--)}function rL(e,t){rI[++rT]=e.current,e.current=t}var rN={},rD=rO(rN),rB=rO(!1),rj=rN;function rF(e,t){var n=e.type.contextTypes;if(!n)return rN;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function rz(e){return null!=(e=e.childContextTypes)}function rU(){rP(rB),rP(rD)}function rq(e,t,r){if(rD.current!==rN)throw Error(n(168));rL(rD,t),rL(rB,r)}function rK(e,t,r){var i=e.stateNode;if(t=t.childContextTypes,"function"!=typeof i.getChildContext)return r;for(var o in i=i.getChildContext())if(!(o in t))throw Error(n(108,function(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return function e(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case A:return"Fragment";case y:return"Portal";case _:return"Profiler";case w:return"StrictMode";case M:return"Suspense";case C:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case S:return(t.displayName||"Context")+".Consumer";case E:return(t._context.displayName||"Context")+".Provider";case k:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case x:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case R:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}(t);case 8:return t===w?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}(e)||"Unknown",o));return L({},r,i)}function rH(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rN,rj=rD.current,rL(rD,e),rL(rB,rB.current),!0}function rV(e,t,r){var i=e.stateNode;if(!i)throw Error(n(169));r?(e=rK(e,t,rj),i.__reactInternalMemoizedMergedChildContext=e,rP(rB),rP(rD),rL(rD,e)):rP(rB),rL(rB,r)}var r$=null,rW=!1,rY=!1;function rG(e){null===r$?r$=[e]:r$.push(e)}function rQ(){if(!rY&&null!==r$){rY=!0;var e=0,t=tt;try{var n=r$;for(tt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(null!==r)}r$=null,rW=!1}catch(t){throw null!==r$&&(r$=r$.slice(e+1)),ez(e$,rQ),t}finally{tt=t,rY=!1}}return null}var rZ=[],rJ=0,rX=null,r0=0,r1=[],r2=0,r3=null,r6=1,r4="";
vendor: 4,209 bytes, line 6
6function r8(e,t){rZ[rJ++]=r0,rZ[rJ++]=rX,rX=e,r0=t}function r5(e,t,n){r1[r2++]=r6,r1[r2++]=r4,r1[r2++]=r3,r3=e;var r=r6;e=r4;var i=32-eX(r)-1;r&=~(1<<i),n+=1;var o=32-eX(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,r6=1<<32-eX(t)+i|n<<i|r,r4=o+e}else r6=1<<o|n<<i|r,r4=e}function r7(e){null!==e.return&&(r8(e,1),r5(e,1,0))}function r9(e){for(;e===rX;)rX=rZ[--rJ],rZ[rJ]=null,r0=rZ[--rJ],rZ[rJ]=null;for(;e===r3;)r3=r1[--r2],r1[r2]=null,r4=r1[--r2],r1[r2]=null,r6=r1[--r2],r1[r2]=null}var ie=null,it=null,ir=!1,ii=null;function io(e,t){var n=s$(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ia(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ie=e,it=rv(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ie=e,it=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==r3?{id:r6,overflow:r4}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=s$(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ie=e,it=null,!0);default:return!1}}function is(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function il(e){if(ir){var t=it;if(t){var r=t;if(!ia(e,t)){if(is(e))throw Error(n(418));t=rv(r.nextSibling);var i=ie;t&&ia(e,t)?io(i,r):(e.flags=-4097&e.flags|2,ir=!1,ie=e)}}else{if(is(e))throw Error(n(418));e.flags=-4097&e.flags|2,ir=!1,ie=e}}}function iu(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ie=e}function ic(e){if(e!==ie)return!1;if(!ir)return iu(e),ir=!0,!1;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!rc(e.type,e.memoizedProps)),t&&(t=it)){if(is(e))throw id(),Error(n(418));for(;t;)io(e,t),t=rv(t.nextSibling)}if(iu(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var t,r=e.data;if("/$"===r){if(0===t){it=rv(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}it=null}}else it=ie?rv(e.stateNode.nextSibling):null;return!0}function id(){for(var e=it;e;)e=rv(e.nextSibling)}function ih(){it=ie=null,ir=!1}function ip(e){null===ii?ii=[e]:ii.push(e)}var im=v.ReactCurrentBatchConfig;function ig(e,t){if(e&&e.defaultProps)for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var iv=rO(null),ib=null,iy=null,iA=null;function iw(){iA=iy=ib=null}function i_(e){var t=iv.current;rP(iv),e._currentValue=t}function iE(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function iS(e,t){ib=e,iA=iy=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(o9=!0),e.firstContext=null)}function ik(e){var t=e._currentValue;if(iA!==e){if(e={context:e,memoizedValue:t,next:null},null===iy){if(null===ib)throw Error(n(308));iy=e,ib.dependencies={lanes:0,firstContext:e}}else iy=iy.next=e}return t}var iM=null;function iC(e){null===iM?iM=[e]:iM.push(e)}function ix(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,iC(t)):(n.next=i.next,i.next=n),t.interleaved=n,iR(e,r)}function iR(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var iI=!1;function iT(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function iO(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function iP(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function iL(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&a2)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,iR(e,n)}return null===(i=r.interleaved)?(t.next=t,iC(r)):(t.next=i.next,i.next=t),r.interleaved=t,iR(e,n)}
vendor: 13,402 bytes, line 6
6function iN(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,te(e,n)}}function iD(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function iB(e,t,n,r){var i=e.updateQueue;iI=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(h,d,f):p))break e;d=L({},d,f);break e;case 2:iI=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=d):c=c.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do a|=i.lane,i=i.next;while(i!==t)}else null===o&&(i.shared.lanes=0);se|=a,e.lanes=a,e.memoizedState=d}}function ij(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var i=e[t],o=i.callback;if(null!==o){if(i.callback=null,i=r,"function"!=typeof o)throw Error(n(191,o));o.call(i)}}}var iF=(new e.Component).refs;function iz(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var iU={isMounted:function(e){return!!(e=e._reactInternals)&&eD(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=sb(),i=sy(e),o=iP(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=iL(e,o,i))&&(sA(t,e,i,r),iN(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=sb(),i=sy(e),o=iP(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=iL(e,o,i))&&(sA(t,e,i,r),iN(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=sb(),r=sy(e),i=iP(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=iL(e,i,r))&&(sA(t,e,r,n),iN(t,e,r))}};function iq(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||!nx(n,r)||!nx(i,o)}function iK(e,t,n){var r=!1,i=rN,o=t.contextType;return"object"==typeof o&&null!==o?o=ik(o):(i=rz(t)?rj:rD.current,o=(r=null!=(r=t.contextTypes))?rF(e,i):rN),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=iU,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function iH(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&iU.enqueueReplaceState(t,t.state,null)}function iV(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=iF,iT(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=ik(o):(o=rz(t)?rj:rD.current,i.context=rF(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(iz(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&iU.enqueueReplaceState(i,i.state,null),iB(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function i$(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var i=r.stateNode}if(!i)throw Error(n(147,e));var o=i,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=o.refs;t===iF&&(t=o.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function iW(e,t){throw Error(n(31,"[object Object]"===(e=Object.prototype.toString.call(t))?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function iY(e){return(0,e._init)(e._payload)}function iG(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=sY(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?(t=sJ(n,e.mode,r)).return=e:(t=o(t,n)).return=e,t}function u(e,t,n,r){var i=n.type;return i===A?d(e,t,n.props.children,r,n.key):(null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===R&&iY(i)===t.type)?(r=o(t,n.props)).ref=i$(e,t,n):(r=sG(n.type,n.key,n.props,null,e.mode,r)).ref=i$(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=sX(n,e.mode,r)).return=e:(t=o(t,n.children||[])).return=e,t}function d(e,t,n,r,i){return null===t||7!==t.tag?(t=sQ(n,e.mode,r,i)).return=e:(t=o(t,n)).return=e,t}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=sJ(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case b:return(n=sG(t.type,t.key,t.props,null,e.mode,n)).ref=i$(e,null,t),n.return=e,n;case y:return(t=sX(t,e.mode,n)).return=e,t;case R:return f(e,(0,t._init)(t._payload),n)}if(G(t)||O(t))return(t=sQ(t,e.mode,n,null)).return=e,t;iW(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case b:return n.key===i?u(e,t,n,r):null;case y:return n.key===i?c(e,t,n,r):null;case R:return h(e,t,(i=n._init)(n._payload),r)}if(G(n)||O(n))return null!==i?null:d(e,t,n,r,null);iW(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case b:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case y:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case R:return p(e,t,n,(0,r._init)(r._payload),i)}if(G(r)||O(r))return d(t,e=e.get(n)||null,r,i,null);iW(t,r)}return null}return function l(u,c,d,m){if("object"==typeof d&&null!==d&&d.type===A&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case b:e:{for(var g=d.key,v=c;null!==v;){if(v.key===g){if((g=d.type)===A){if(7===v.tag){r(u,v.sibling),(c=o(v,d.props.children)).return=u,u=c;break e}}else if(v.elementType===g||"object"==typeof g&&null!==g&&g.$$typeof===R&&iY(g)===v.type){r(u,v.sibling),(c=o(v,d.props)).ref=i$(u,v,d),c.return=u,u=c;break e}r(u,v);break}t(u,v),v=v.sibling}d.type===A?((c=sQ(d.props.children,u.mode,m,d.key)).return=u,u=c):((m=sG(d.type,d.key,d.props,null,u.mode,m)).ref=i$(u,c,d),m.return=u,u=m)}return s(u);case y:e:{for(v=d.key;null!==c;){if(c.key===v){if(4===c.tag&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){r(u,c.sibling),(c=o(c,d.children||[])).return=u,u=c;break e}r(u,c);break}t(u,c),c=c.sibling}(c=sX(d,u.mode,m)).return=u,u=c}return s(u);case R:return l(u,c,(v=d._init)(d._payload),m)}if(G(d))return function(n,o,s,l){for(var u=null,c=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=h(n,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(n,d),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return r(n,d),ir&&r8(n,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(n,s[m],l))&&(o=a(d,o,m),null===c?u=d:c.sibling=d,c=d);return ir&&r8(n,m),u}for(d=i(n,d);m<s.length;m++)null!==(g=p(d,n,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(n,e)}),ir&&r8(n,m),u}(u,c,d,m);if(O(d))return function(o,s,l,u){var c=O(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,m=s,g=s=0,v=null,b=l.next();null!==m&&!b.done;g++,b=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=h(o,m,b.value,u);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(o,m),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y,m=v}if(b.done)return r(o,m),ir&&r8(o,g),c;if(null===m){for(;!b.done;g++,b=l.next())null!==(b=f(o,b.value,u))&&(s=a(b,s,g),null===d?c=b:d.sibling=b,d=b);return ir&&r8(o,g),c}for(m=i(o,m);!b.done;g++,b=l.next())null!==(b=p(m,o,g,b.value,u))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b);return e&&m.forEach(function(e){return t(o,e)}),ir&&r8(o,g),c}(u,c,d,m);iW(u,d)}return"string"==typeof d&&""!==d||"number"==typeof d?(d=""+d,null!==c&&6===c.tag?(r(u,c.sibling),(c=o(c,d)).return=u):(r(u,c),(c=sJ(d,u.mode,m)).return=u),s(u=c)):r(u,c)}}var iQ=iG(!0),iZ=iG(!1),iJ={},iX=rO(iJ),i0=rO(iJ),i1=rO(iJ);function i2(e){if(e===iJ)throw Error(n(174));return e}function i3(e,t){switch(rL(i1,t),rL(i0,e),rL(iX,iJ),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:en(null,"");break;default:t=en(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}rP(iX),rL(iX,t)}function i6(){rP(iX),rP(i0),rP(i1)}function i4(e){i2(i1.current);var t=i2(iX.current),n=en(t,e.type);t!==n&&(rL(i0,e),rL(iX,n))}function i8(e){i0.current===e&&(rP(iX),rP(i0))}var i5=rO(0);function i7(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var i9=[];function oe(){for(var e=0;e<i9.length;e++)i9[e]._workInProgressVersionPrimary=null;i9.length=0}var ot=v.ReactCurrentDispatcher,on=v.ReactCurrentBatchConfig,or=0,oi=null,oo=null,oa=null,os=!1,ol=!1,ou=0,oc=0;function od(){throw Error(n(321))}function of(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nC(e[n],t[n]))return!1;return!0}function oh(e,t,r,i,o,a){if(or=a,oi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ot.current=null===e||null===e.memoizedState?oQ:oZ,e=r(i,o),ol){a=0;do{if(ol=!1,ou=0,25<=a)throw Error(n(301));a+=1,oa=oo=null,t.updateQueue=null,ot.current=oJ,e=r(i,o)}while(ol)}if(ot.current=oG,t=null!==oo&&null!==oo.next,or=0,oa=oo=oi=null,os=!1,t)throw Error(n(300));return e}function op(){var e=0!==ou;return ou=0,e}function om(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===oa?oi.memoizedState=oa=e:oa=oa.next=e,oa}function og(){if(null===oo){var e=oi.alternate;e=null!==e?e.memoizedState:null}else e=oo.next;var t=null===oa?oi.memoizedState:oa.next;if(null!==t)oa=t,oo=e;else{if(null===e)throw Error(n(310));e={memoizedState:(oo=e).memoizedState,baseState:oo.baseState,baseQueue:oo.baseQueue,queue:oo.queue,next:null},null===oa?oi.memoizedState=oa=e:oa=oa.next=e}return oa}function ov(e,t){return"function"==typeof t?t(e):t}function ob(e){var t=og(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var i=oo,o=i.baseQueue,a=r.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}i.baseQueue=o=a,r.pending=null}if(null!==o){a=o.next,i=i.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((or&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),i=c.hasEagerState?c.eagerState:e(i,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=i):u=u.next=f,oi.lanes|=d,se|=d}c=c.next}while(null!==c&&c!==a);null===u?s=i:u.next=l,nC(i,t.memoizedState)||(o9=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=u,r.lastRenderedState=i}if(null!==(e=r.interleaved)){o=e;do a=o.lane,oi.lanes|=a,se|=a,o=o.next;while(o!==e)}else null===o&&(r.lanes=0);
vendor: 4,890 bytes, line 6
6return[t.memoizedState,r.dispatch]}function oy(e){var t=og(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var i=r.dispatch,o=r.pending,a=t.memoizedState;if(null!==o){r.pending=null;var s=o=o.next;do a=e(a,s.action),s=s.next;while(s!==o);nC(a,t.memoizedState)||(o9=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,i]}function oA(){}function ow(e,t){var r=oi,i=og(),o=t(),a=!nC(i.memoizedState,o);if(a&&(i.memoizedState=o,o9=!0),i=i.queue,oP(oS.bind(null,r,i,e),[e]),i.getSnapshot!==t||a||null!==oa&&1&oa.memoizedState.tag){if(r.flags|=2048,ox(9,oE.bind(null,r,i,o,t),void 0,null),null===a3)throw Error(n(349));0!=(30&or)||o_(r,t,o)}return o}function o_(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=oi.updateQueue)?(t={lastEffect:null,stores:null},oi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function oE(e,t,n,r){t.value=n,t.getSnapshot=r,ok(t)&&oM(e)}function oS(e,t,n){return n(function(){ok(t)&&oM(e)})}function ok(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nC(e,n)}catch(e){return!0}}function oM(e){var t=iR(e,1);null!==t&&sA(t,e,1,-1)}function oC(e){var t=om();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ov,lastRenderedState:e},t.queue=e,e=e.dispatch=oV.bind(null,oi,e),[t.memoizedState,e]}function ox(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=oi.updateQueue)?(t={lastEffect:null,stores:null},oi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function oR(){return og().memoizedState}function oI(e,t,n,r){var i=om();oi.flags|=e,i.memoizedState=ox(1|t,n,void 0,void 0===r?null:r)}function oT(e,t,n,r){var i=og();r=void 0===r?null:r;var o=void 0;if(null!==oo){var a=oo.memoizedState;if(o=a.destroy,null!==r&&of(r,a.deps))return void(i.memoizedState=ox(t,n,o,r))}oi.flags|=e,i.memoizedState=ox(1|t,n,o,r)}function oO(e,t){return oI(8390656,8,e,t)}function oP(e,t){return oT(2048,8,e,t)}function oL(e,t){return oT(4,2,e,t)}function oN(e,t){return oT(4,4,e,t)}function oD(e,t){return"function"==typeof t?(t(e=e()),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function oB(e,t,n){return n=null!=n?n.concat([e]):null,oT(4,4,oD.bind(null,t,e),n)}function oj(){}function oF(e,t){var n=og();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&of(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function oz(e,t){var n=og();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&of(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function oU(e,t,n){return 0==(21&or)?(e.baseState&&(e.baseState=!1,o9=!0),e.memoizedState=n):(nC(n,t)||(n=e5(),oi.lanes|=n,se|=n,e.baseState=!0),t)}function oq(e,t){var n=tt;tt=0!==n&&4>n?n:4,e(!0);var r=on.transition;on.transition={};try{e(!1),t()}finally{tt=n,on.transition=r}}function oK(){return og().memoizedState}function oH(e,t,n){var r=sy(e);(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},o$(e))?oW(t,n):null!==(n=ix(e,t,n,r))&&(sA(n,e,r,sb()),oY(n,t,r))}function oV(e,t,n){var r=sy(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(o$(e))oW(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,nC(s,a)){var l=t.interleaved;return null===l?(i.next=i,iC(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=ix(e,t,i,r))&&(sA(n,e,r,i=sb()),oY(n,t,r))}}function o$(e){var t=e.alternate;return e===oi||null!==t&&t===oi}function oW(e,t){ol=os=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oY(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,te(e,n)}}var oG={readContext:ik,useCallback:od,useContext:od,useEffect:od,useImperativeHandle:od,useInsertionEffect:od,useLayoutEffect:od,useMemo:od,useReducer:od,useRef:od,useState:od,useDebugValue:od,useDeferredValue:od,useTransition:od,useMutableSource:od,useSyncExternalStore:od,useId:od,unstable_isNewReconciler:!1},oQ={readContext:ik,useCallback:function(e,t){return om().memoizedState=[e,void 0===t?null:t],e},useContext:ik,useEffect:oO,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,oI(4194308,4,oD.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oI(4194308,4,e,t)},useInsertionEffect:function(e,t){return oI(4,2,e,t)},useMemo:function(e,t){var n=om();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=om();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=oH.bind(null,oi,e),[r.memoizedState,e]}
vendor: 5,208 bytes, line 6
6,useRef:function(e){return e={current:e},om().memoizedState=e},useState:oC,useDebugValue:oj,useDeferredValue:function(e){return om().memoizedState=e},useTransition:function(){var e=oC(!1),t=e[0];return e=oq.bind(null,e[1]),om().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var i=oi,o=om();if(ir){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===a3)throw Error(n(349));0!=(30&or)||o_(i,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,oO(oS.bind(null,i,a,e),[e]),i.flags|=2048,ox(9,oE.bind(null,i,a,r,t),void 0,null),r},useId:function(){var e=om(),t=a3.identifierPrefix;if(ir){var n=r4;t=":"+t+"R"+(n=(r6&~(1<<32-eX(r6)-1)).toString(32)+n),0<(n=ou++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=oc++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},oZ={readContext:ik,useCallback:oF,useContext:ik,useEffect:oP,useImperativeHandle:oB,useInsertionEffect:oL,useLayoutEffect:oN,useMemo:oz,useReducer:ob,useRef:oR,useState:function(){return ob(ov)},useDebugValue:oj,useDeferredValue:function(e){return oU(og(),oo.memoizedState,e)},useTransition:function(){return[ob(ov)[0],og().memoizedState]},useMutableSource:oA,useSyncExternalStore:ow,useId:oK,unstable_isNewReconciler:!1},oJ={readContext:ik,useCallback:oF,useContext:ik,useEffect:oP,useImperativeHandle:oB,useInsertionEffect:oL,useLayoutEffect:oN,useMemo:oz,useReducer:oy,useRef:oR,useState:function(){return oy(ov)},useDebugValue:oj,useDeferredValue:function(e){var t=og();return null===oo?t.memoizedState=e:oU(t,oo.memoizedState,e)},useTransition:function(){return[oy(ov)[0],og().memoizedState]},useMutableSource:oA,useSyncExternalStore:ow,useId:oK,unstable_isNewReconciler:!1};function oX(e,t){try{var n="",r=t;do n+=function(e){switch(e.tag){case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}(r),r=r.return;while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function o0(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function o1(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var o2="function"==typeof WeakMap?WeakMap:Map;function o3(e,t,n){(n=iP(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){sl||(sl=!0,su=r),o1(0,t)},n}function o6(e,t,n){(n=iP(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){o1(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){o1(0,t),"function"!=typeof r&&(null===sc?sc=new Set([this]):sc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function o4(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new o2;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=sU.bind(null,e,t,n),t.then(e,e))}function o8(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function o5(e,t,n,r,i){return 0==(1&e.mode)?e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=iP(-1,1)).tag=2,iL(n,t,1))),n.lanes|=1):(e.flags|=65536,e.lanes=i),e}var o7=v.ReactCurrentOwner,o9=!1;function ae(e,t,n,r){t.child=null===e?iZ(t,null,n,r):iQ(t,e.child,n,r)}function at(e,t,n,r,i){n=n.render;var o=t.ref;return iS(t,i),r=oh(e,t,n,r,o,i),n=op(),null===e||o9?(ir&&n&&r7(t),t.flags|=1,ae(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ak(e,t,i))}function an(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||sW(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=sG(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,ar(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:nx)(a,r)&&e.ref===t.ref)return ak(e,t,i)}return t.flags|=1,(e=sY(o,r)).ref=t.ref,e.return=t,t.child=e}function ar(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(nx(o,r)&&e.ref===t.ref){if(o9=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,ak(e,t,i);0!=(131072&e.flags)&&(o9=!0)}}return aa(e,t,n,r,i)}function ai(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},rL(a5,a8),a8|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,rL(a5,a8),a8|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,rL(a5,a8),a8|=r}}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,rL(a5,a8),a8|=r;return ae(e,t,i,n),t.child}function ao(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
vendor: 4,335 bytes, line 6
6function aa(e,t,n,r,i){var o=rz(n)?rj:rD.current;return o=rF(t,o),iS(t,i),n=oh(e,t,n,r,o,i),r=op(),null===e||o9?(ir&&r&&r7(t),t.flags|=1,ae(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ak(e,t,i))}function as(e,t,n,r,i){if(rz(n)){var o=!0;rH(t)}else o=!1;if(iS(t,i),null===t.stateNode)aS(e,t),iK(t,n,r),iV(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?ik(u):rF(t,u=rz(n)?rj:rD.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&iH(t,a,r,u),iI=!1;var f=t.memoizedState;a.state=f,iB(t,r,a,i),l=t.memoizedState,s!==r||f!==l||rB.current||iI?("function"==typeof c&&(iz(t,n,c,r),l=t.memoizedState),(s=iI||iq(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,iO(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ig(t.type,s),a.props=u,d=t.pendingProps,f=a.context,l="object"==typeof(l=n.contextType)&&null!==l?ik(l):rF(t,l=rz(n)?rj:rD.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&iH(t,a,r,l),iI=!1,f=t.memoizedState,a.state=f,iB(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||rB.current||iI?("function"==typeof h&&(iz(t,n,h,r),p=t.memoizedState),(u=iI||iq(t,n,u,r,f,p,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return al(e,t,n,r,o,i)}function al(e,t,n,r,i,o){ao(e,t);var a=0!=(128&t.flags);if(!r&&!a)return i&&rV(t,n,!1),ak(e,t,o);r=t.stateNode,o7.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=iQ(t,e.child,null,o),t.child=iQ(t,null,s,o)):ae(e,t,s,o),t.memoizedState=r.state,i&&rV(t,n,!0),t.child}function au(e){var t=e.stateNode;t.pendingContext?rq(0,t.pendingContext,t.pendingContext!==t.context):t.context&&rq(0,t.context,!1),i3(e,t.containerInfo)}function ac(e,t,n,r,i){return ih(),ip(i),t.flags|=256,ae(e,t,n,r),t.child}var ad,af,ah,ap,am,ag={dehydrated:null,treeContext:null,retryLane:0};function av(e){return{baseLanes:e,cachePool:null,transitions:null}}function ab(e,t,r){var i,o=t.pendingProps,a=i5.current,s=!1,l=0!=(128&t.flags);if((i=l)||(i=(null===e||null!==e.memoizedState)&&0!=(2&a)),i?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),rL(i5,1&a),null===e)return il(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=sZ(l,o,0,null),e=sQ(e,o,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=av(r),t.memoizedState=ag,e):ay(t,l));if(null!==(a=e.memoizedState)&&null!==(i=a.dehydrated))return function(e,t,r,i,o,a,s){if
vendor: 5,460 bytes, line 6
6(r)return 256&t.flags?(t.flags&=-257,aA(e,t,s,i=o0(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=i.fallback,o=t.mode,i=sZ({mode:"visible",children:i.children},o,0,null),(a=sQ(a,o,s,null)).flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,0!=(1&t.mode)&&iQ(t,e.child,null,s),t.child.memoizedState=av(s),t.memoizedState=ag,a);if(0==(1&t.mode))return aA(e,t,s,null);if("$!"===o.data){if(i=o.nextSibling&&o.nextSibling.dataset)var l=i.dgst;return i=l,aA(e,t,s,i=o0(a=Error(n(419)),i,void 0))}if(l=0!=(s&e.childLanes),o9||l){if(null!==(i=a3)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(i.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,iR(e,o),sA(i,e,o,-1))}return sP(),aA(e,t,s,i=o0(Error(n(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=sK.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,it=rv(o.nextSibling),ie=t,ir=!0,ii=null,null!==e&&(r1[r2++]=r6,r1[r2++]=r4,r1[r2++]=r3,r6=e.id,r4=e.overflow,r3=t),t=ay(t,i.children),t.flags|=4096,t)}(e,t,l,o,i,a,r);if(s){s=o.fallback,l=t.mode,i=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null):(o=sY(a,u)).subtreeFlags=14680064&a.subtreeFlags,null!==i?s=sY(i,s):(s=sQ(s,l,r,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?av(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=ag,o}return e=(s=e.child).sibling,o=sY(s,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function ay(e,t){return(t=sZ({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function aA(e,t,n,r){return null!==r&&ip(r),iQ(t,e.child,null,n),(e=ay(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function aw(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),iE(e.return,t,n)}function a_(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function aE(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ae(e,t,r.children,n),0!=(2&(r=i5.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&aw(e,n,t);else if(19===e.tag)aw(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(rL(i5,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===i7(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),a_(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===i7(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}a_(t,!0,n,null,o);break;case"together":a_(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function aS(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ak(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),se|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=sY(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=sY(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function aM(e,t){if(!ir)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function aC(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}af=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ah=function(){},ap=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,i2(iX.current);var a,s=null;switch(n){case"input":o=K(e,o),r=K(e,r),s=[];break;case"select":o=L({},o,{value:void 0}),r=L({},r,{value:void 0}),s=[];break;case"textarea":o=Z(e,o),r=Z(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=rs)}for(c in ef(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c]){if
vendor: 4,390 bytes, line 6
6("style"===c){var l=o[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(i.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null))}for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l)){if("style"===c){if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(c,n)),n=u}else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(i.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&n3("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},am=function(e,t,n,r){n!==r&&(t.flags|=4)};var ax=!1,aR=!1,aI="function"==typeof WeakSet?WeakSet:Set,aT=null;function aO(e,t){var n=e.ref;if(null!==n){if("function"==typeof n)try{n(null)}catch(n){sz(e,t,n)}else n.current=null}}function aP(e,t,n){try{n()}catch(n){sz(e,t,n)}}var aL=!1;function aN(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&aP(t,n,o)}i=i.next}while(i!==r)}}function aD(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function aB(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function aj(e){return 5===e.tag||3===e.tag||4===e.tag}function aF(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||aj(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}var az=null,aU=!1;function aq(e,t,n){for(n=n.child;null!==n;)aK(e,t,n),n=n.sibling}function aK(e,t,n){if(eJ&&"function"==typeof eJ.onCommitFiberUnmount)try{eJ.onCommitFiberUnmount(eZ,n)}catch(e){}switch(n.tag){case 5:aR||aO(n,t);case 6:var r=az,i=aU;az=null,aq(e,t,n),aU=i,null!==(az=r)&&(aU?(e=az,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):az.removeChild(n.stateNode));break;case 18:null!==az&&(aU?(e=az,n=n.stateNode,8===e.nodeType?rg(e.parentNode,n):1===e.nodeType&&rg(e,n),tS(e)):rg(az,n.stateNode));break;case 4:r=az,i=aU,az=n.stateNode.containerInfo,aU=!0,aq(e,t,n),az=r,aU=i;break;case 0:case 11:case 14:case 15:if(!aR&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&aP(n,t,a),i=i.next}while(i!==r)}aq(e,t,n);break;case 1:if(!aR&&(aO(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){sz(n,t,e)}aq(e,t,n);break;case 21:default:aq(e,t,n);break;case 22:1&n.mode?(aR=(r=aR)||null!==n.memoizedState,aq(e,t,n),aR=r):aq(e,t,n)}}function aH(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new aI),t.forEach(function(t){var r=sH.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function aV(e,t){var r=t.deletions;if(null!==r)for(var i=0;i<r.length;i++){var o=r[i];try{var a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:az=s.stateNode,aU=!1;break e;case 3:case 4:az=s.stateNode.containerInfo,aU=!0;break e}s=s.return}if(null===az)throw Error(n(160));aK(e,a,o),az=null,aU=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){sz(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)a$(t,e),t=t.sibling}function a$(e,t){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(aV(t,e),aW(e),4&i){try{aN(3,e,e.return),aD(3,e)}catch(t){sz(e,e.return,t)}try{aN(5,e,e.return)}catch(t){sz(e,e.return,t)}}break;case 1:aV(t,e),aW(e),512&i&&null!==r&&aO(r,r.return);break;case 5:if(aV(t,e),aW(e),512&i&&null!==r&&aO(r,r.return),32&e.flags){var o=e.stateNode;try{ea(o,"")}catch(t){sz(e,e.return,t)}}if(4&i&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,u=e.updateQueue;
vendor: 11,859 bytes, line 6
6if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&V(o,a),eh(l,s);var c=eh(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?ec(o,f):"dangerouslySetInnerHTML"===d?eo(o,f):"children"===d?ea(o,f):g(o,d,f,c)}switch(l){case"input":$(o,a);break;case"textarea":X(o,a);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?Q(o,!!a.multiple,p,!1):!!a.multiple!==h&&(null!=a.defaultValue?Q(o,!!a.multiple,a.defaultValue,!0):Q(o,!!a.multiple,a.multiple?[]:"",!1))}o[rw]=a}catch(t){sz(e,e.return,t)}}break;case 6:if(aV(t,e),aW(e),4&i){if(null===e.stateNode)throw Error(n(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){sz(e,e.return,t)}}break;case 3:if(aV(t,e),aW(e),4&i&&null!==r&&r.memoizedState.isDehydrated)try{tS(t.containerInfo)}catch(t){sz(e,e.return,t)}break;case 4:default:aV(t,e),aW(e);break;case 13:aV(t,e),aW(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,a&&(null===o.alternate||null===o.alternate.memoizedState)&&(so=eH())),4&i&&aH(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(aR=(c=aR)||d,aV(t,e),aR=c):aV(t,e),aW(e),8192&i){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!=(1&e.mode))for(aT=e,d=e.child;null!==d;){for(f=aT=d;null!==aT;){switch(p=(h=aT).child,h.tag){case 0:case 11:case 14:case 15:aN(4,h,h.return);break;case 1:aO(h,h.return);var m=h.stateNode;if("function"==typeof m.componentWillUnmount){i=h,r=h.return;try{t=i,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){sz(i,r,e)}}break;case 5:aO(h,h.return);break;case 22:if(null!==h.memoizedState){aG(f);continue}}null!==p?(p.return=h,aT=p):aG(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=eu("display",s))}catch(t){sz(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){sz(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:aV(t,e),aW(e),4&i&&aH(e);case 21:}}function aW(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(aj(r)){var i=r;break e}r=r.return}throw Error(n(160))}switch(i.tag){case 5:var o=i.stateNode;32&i.flags&&(ea(o,""),i.flags&=-33),function e(t,n,r){var i=t.tag;if(5===i||6===i)t=t.stateNode,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,aF(e),o);break;case 3:case 4:var a=i.stateNode.containerInfo;!function e(t,n,r){var i=t.tag;if(5===i||6===i)t=t.stateNode,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!=(r=r._reactRootContainer)||null!==n.onclick||(n.onclick=rs));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,aF(e),a);break;default:throw Error(n(161))}}catch(t){sz(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function aY(e){for(;null!==aT;){var t=aT;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:aR||aD(5,t);break;case 1:var i=t.stateNode;if(4&t.flags&&!aR){if(null===r)i.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:ig(t.type,r.memoizedProps);i.componentDidUpdate(o,r.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}}var a=t.updateQueue;null!==a&&ij(t,a,i);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}ij(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&tS(f)}}}break;default:throw Error(n(163))}aR||512&t.flags&&aB(t)}catch(e){sz(t,t.return,e)}}if(t===e){aT=null;break}if(null!==(r=t.sibling)){r.return=t.return,aT=r;break}aT=t.return}}function aG(e){for(;null!==aT;){var t=aT;if(t===e){aT=null;break}var n=t.sibling;if(null!==n){n.return=t.return,aT=n;break}aT=t.return}}function aQ(e){for(;null!==aT;){var t=aT;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{aD(4,t)}catch(e){sz(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){sz(t,i,e)}}var o=t.return;try{aB(t)}catch(e){sz(t,o,e)}break;case 5:var a=t.return;try{aB(t)}catch(e){sz(t,a,e)}}}catch(e){sz(t,t.return,e)}if(t===e){aT=null;break}var s=t.sibling;if(null!==s){s.return=t.return,aT=s;break}aT=t.return}}var aZ,aJ=Math.ceil,aX=v.ReactCurrentDispatcher,a0=v.ReactCurrentOwner,a1=v.ReactCurrentBatchConfig,a2=0,a3=null,a6=null,a4=0,a8=0,a5=rO(0),a7=0,a9=null,se=0,st=0,sn=0,sr=null,si=null,so=0,sa=1/0,ss=null,sl=!1,su=null,sc=null,sd=!1,sf=null,sh=0,sp=0,sm=null,sg=-1,sv=0;function sb(){return 0!=(6&a2)?eH():-1!==sg?sg:sg=eH()}function sy(e){return 0==(1&e.mode)?1:0!=(2&a2)&&0!==a4?a4&-a4:null!==im.transition?(0===sv&&(sv=e5()),sv):0!==(e=tt)?e:e=void 0===(e=window.event)?16:tO(e.type)}function sA(e,t,r,i){if(50<sp)throw sp=0,sm=null,Error(n(185));e9(e,r,i),0!=(2&a2)&&e===a3||(e===a3&&(0==(2&a2)&&(st|=r),4===a7&&sk(e,a4)),sw(e,i),1===r&&0===a2&&0==(1&t.mode)&&(sa=eH()+500,rW&&rQ()))}function sw(e,t){var n,r=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-eX(o),s=1<<a,l=i[a];-1===l?0!=(s&n)&&0==(s&r)||(i[a]=function(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return -1}}(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var i=e4(e,e===a3?a4:0);if(0===i)null!==r&&eU(r),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(null!=r&&eU(r),1===t)0===e.tag?(n=sM.bind(null,e),rW=!0,rG(n)):rG(sM.bind(null,e)),rp(function(){0==(6&a2)&&rQ()}),r=null;else{switch(tn(i)){case 1:r=e$;break;case 4:r=eW;break;case 16:default:r=eY;break;case 536870912:r=eQ}r=ez(r,s_.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function s_(e,t){if(sg=-1,sv=0,0!=(6&a2))throw Error(n(327));var r=e.callbackNode;if(sj()&&e.callbackNode!==r)return null;var i=e4(e,e===a3?a4:0);if(0===i)return null;if(0!=(30&i)||0!=(i&e.expiredLanes)||t)t=sL(e,i);else{t=i;var o=a2;a2|=2;var a=sO();for(a3===e&&a4===t||(ss=null,sa=eH()+500,sI(e,t));;)try{(function(){for(;null!==a6&&!eq();)sN(a6)})();break}catch(t){sT(e,t)}iw(),aX.current=a,a2=o,null!==a6?t=0:(a3=null,a4=0,t=a7)}if(0!==t){if(2===t&&0!==(o=e8(e))&&(i=o,t=sE(e,o)),1===t)throw r=a9,sI(e,0),sk(e,i),sw(e,eH()),r;if(6===t)sk(e,i);else{if(o=e.current.alternate,0==(30&i)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!nC(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=sL(e,i))&&0!==(a=e8(e))&&(i=a,t=sE(e,a)),1===t))throw r=a9,sI(e,0),sk(e,i),sw(e,eH()),r;switch(e.finishedWork=o,e.finishedLanes=i,t){case 0:case 1:throw Error(n(345));case 2:case 5:sB(e,si,ss);break;case 3:if(sk(e,i),(130023424&i)===i&&10<(t=so+500-eH())){if(0!==e4(e,0))break;if(((o=e.suspendedLanes)&i)!==i){sb(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=rd(sB.bind(null,e,si,ss),t);break}sB(e,si,ss);break;case 4:if(sk(e,i),(4194240&i)===i)break;for(t=e.eventTimes,o=-1;0<i;){var s=31-eX(i);a=1<<s,(s=t[s])>o&&(o=s),i&=~a}if(i=o,10<(i=(120>(i=eH()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*aJ(i/1960))-i)){e.timeoutHandle=rd(sB.bind(null,e,si,ss),i);break}sB(e,si,ss);break;default:throw Error(n(329))}}}return sw(e,eH()),e.callbackNode===r?s_.bind(null,e):null}function sE(e,t){var n=sr;return e.current.memoizedState.isDehydrated&&(sI(e,t).flags|=256),2!==(e=sL(e,t))&&(t=si,si=n,null!==t&&sS(t)),e}function sS(e){null===si?si=e:si.push.apply(si,e)}function sk(e,t){for(t&=~sn,t&=~st,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-eX(t),r=1<<n;e[n]=-1,t&=~r}}function sM(e){if(0!=(6&a2))throw Error(n(327));sj();var t=e4(e,0);if(0==(1&t))return sw(e,eH()),null;var r=sL(e,t);if(0!==e.tag&&2===r){var i=e8(e);0!==i&&(t=i,r=sE(e,i))}if(1===r)throw r=a9,sI(e,0),sk(e,t),sw(e,eH()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,sB(e,si,ss),sw(e,eH()),null}function sC(e,t){var n=a2;a2|=1;try{return e(t)}finally{0===(a2=n)&&(sa=eH()+500,rW&&rQ())}}function sx(e){null!==sf&&0===sf.tag&&0==(6&a2)&&sj();var t=a2;a2|=1;var n=a1.transition,r=tt;try{if(a1.transition=null,tt=1,e)return e()}finally{tt=r,a1.transition=n,0==(6&(a2=t))&&rQ()}}function sR(){a8=a5.current,rP(a5)}function sI(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,rf(n)),null!==a6)for(n=a6.return;null!==n;){var r=n;switch(r9(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&rU();break;case 3:i6(),rP(rB),rP(rD),oe();break;case 5:i8(r);break;case 4:i6();break;case 13:case 19:rP(i5);break;case 10:i_(r.type._context);break;case 22:case 23:sR()}n=n.return}if(a3=e,a6=e=sY(e.current,null),a4=a8=t,a7=0,a9=null,sn=st=se=0,si=sr=null,null!==iM){for(t=0;t<iM.length;t++)if(null!==(r=(n=iM[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}iM=null}return e}function sT(e,t){for(;;){var r=a6;try{if(iw(),ot.current=oG,os){for(var i=oi.memoizedState;null!==i;){var o=i.queue;null!==o&&(o.pending=null),i=i.next}os=!1}if(or=0,oa=oo=oi=null,ol=!1,ou=0,a0.current=null,null===r||null===r.return){a7=1,a9=t,a6=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=a4,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(0==(1&d.mode)&&(0===f||11===f||15===f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=o8(s);if(null!==p){p.flags&=-257,o5(p,s,l,0,t),1&p.mode&&o4(a,c,t),u=c;var m=(t=p).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(0==(1&t)){o4(a,c,t),sP();break e}u=Error(n(426))}else if(ir&&1&l.mode){var v=o8(s);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),o5(v,s,l,0,t),ip(oX(u,l));break e}}a=u=oX(u,l),4!==a7&&(a7=2),null===sr?sr=[a]:sr.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,iD(a,o3(0,u,t));break e;case 1:l=u;var b=a.type,y=a.stateNode;if(0==(128&a.flags)&&("function"==typeof b.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===sc||!sc.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,iD(a,o6(a,l,t));break e}}a=a.return}while(null!==a)}sD(r)}catch(e){t=e,a6===r&&null!==r&&(a6=r=r.return);continue}break}}function sO(){var e=aX.current;return aX.current=oG,null===e?oG:e}function sP(){0!==a7&&3!==a7&&2!==a7||(a7=4),null===a3||0==(268435455&se)&&
vendor: 4,261 bytes, line 6
60==(268435455&st)||sk(a3,a4)}function sL(e,t){var r=a2;a2|=2;var i=sO();for(a3===e&&a4===t||(ss=null,sI(e,t));;)try{(function(){for(;null!==a6;)sN(a6)})();break}catch(t){sT(e,t)}if(iw(),a2=r,aX.current=i,null!==a6)throw Error(n(261));return a3=null,a4=0,a7}function sN(e){var t=aZ(e.alternate,e,a8);e.memoizedProps=e.pendingProps,null===t?sD(e):a6=t,a0.current=null}function sD(e){var t=e;do{var r=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(r=function(e,t,r){var o=t.pendingProps;switch(r9(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return aC(t),null;case 1:case 17:return rz(t.type)&&rU(),aC(t),null;case 3:return o=t.stateNode,i6(),rP(rB),rP(rD),oe(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(ic(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ii&&(sS(ii),ii=null))),ah(e,t),aC(t),null;case 5:i8(t);var a=i2(i1.current);if(r=t.type,null!==e&&null!=t.stateNode)ap(e,t,r,o,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(n(166));return aC(t),null}if(e=i2(iX.current),ic(t)){o=t.stateNode,r=t.type;var s=t.memoizedProps;switch(o[rA]=t,o[rw]=s,e=0!=(1&t.mode),r){case"dialog":n3("cancel",o),n3("close",o);break;case"iframe":case"object":case"embed":n3("load",o);break;case"video":case"audio":for(a=0;a<nX.length;a++)n3(nX[a],o);break;case"source":n3("error",o);break;case"img":case"image":case"link":n3("error",o),n3("load",o);break;case"details":n3("toggle",o);break;case"input":H(o,s),n3("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!s.multiple},n3("invalid",o);break;case"textarea":J(o,s),n3("invalid",o)}for(var l in ef(r,s),a=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?o.textContent!==u&&(!0!==s.suppressHydrationWarning&&ra(o.textContent,u,e),a=["children",u]):"number"==typeof u&&o.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&ra(o.textContent,u,e),a=["children",""+u]):i.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&n3("scroll",o)}switch(r){case"input":z(o),W(o,s,!0);break;case"textarea":z(o),ee(o);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(o.onclick=rs)}o=a,t.updateQueue=o,null!==o&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=et(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script></script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=l.createElement(r,{is:o.is}):(e=l.createElement(r),"select"===r&&(l=e,o.multiple?l.multiple=!0:o.size&&(l.size=o.size))):e=l.createElementNS(e,r),e[rA]=t,e[rw]=o,af(e,t,!1,!1),t.stateNode=e;e:{switch(l=eh(r,o),r){case"dialog":n3("cancel",e),n3("close",e),a=o;break;case"iframe":case"object":case"embed":n3("load",e),a=o;break;case"video":case"audio":for(a=0;a<nX.length;a++)n3(nX[a],e);a=o;break;case"source":n3("error",e),a=o;break;case"img":case"image":case"link":n3("error",e),n3("load",e),a=o;break;case"details":n3("toggle",e),a=o;break;case"input":H(e,o),a=K(e,o),n3("invalid",e);break;case"option":default:a=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},a=L({},o,{value:void 0}),n3("invalid",e);break;case"textarea":J(e,o),a=Z(e,o),n3("invalid",e)}for(s in ef(r,a),u=a)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?ec(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&eo(e,c):"children"===s?"string"==typeof c?("textarea"!==r||""!==c)&&ea(e,c):"number"==typeof c&&ea(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(i.hasOwnProperty(s)?null!=c&&"onScroll"===s&&n3("scroll",e):null!=c&&g(e,s,c,l))}switch(r){case"input":z(e),W(e,o,!1);break;case"textarea":z(e),ee(e);break;case"option":null!=o.value&&e.setAttribute("value",""+j(o.value));break;case"select":e.multiple=!!o.multiple,null!=(s=o.value)?Q(e,!!o.multiple,s,!1):null!=o.defaultValue&&Q(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=rs)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}
vendor: 5,449 bytes, line 6
6return aC(t),null;case 6:if(e&&null!=t.stateNode)am(e,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(n(166));if(r=i2(i1.current),i2(iX.current),ic(t)){if(o=t.stateNode,r=t.memoizedProps,o[rA]=t,(s=o.nodeValue!==r)&&null!==(e=ie))switch(e.tag){case 3:ra(o.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&ra(o.nodeValue,r,0!=(1&e.mode))}s&&(t.flags|=4)}else(o=(9===r.nodeType?r:r.ownerDocument).createTextNode(o))[rA]=t,t.stateNode=o}return aC(t),null;case 13:if(rP(i5),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ir&&null!==it&&0!=(1&t.mode)&&0==(128&t.flags))id(),ih(),t.flags|=98560,s=!1;else if(s=ic(t),null!==o&&null!==o.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[rA]=t}else ih(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;aC(t),s=!1}else null!==ii&&(sS(ii),ii=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((o=null!==o)!=(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&i5.current)?0===a7&&(a7=3):sP())),null!==t.updateQueue&&(t.flags|=4),aC(t),null);case 4:return i6(),ah(e,t),null===e&&n8(t.stateNode.containerInfo),aC(t),null;case 10:return i_(t.type._context),aC(t),null;case 19:if(rP(i5),null===(s=t.memoizedState))return aC(t),null;if(o=0!=(128&t.flags),null===(l=s.rendering)){if(o)aM(s,!1);else{if(0!==a7||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=i7(e))){for(t.flags|=128,aM(s,!1),null!==(o=l.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;null!==r;)e=o,(s=r).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return rL(i5,1&i5.current|2),t.child}e=e.sibling}null!==s.tail&&eH()>sa&&(t.flags|=128,o=!0,aM(s,!1),t.lanes=4194304)}}else{if(!o){if(null!==(e=i7(l))){if(t.flags|=128,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),aM(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ir)return aC(t),null}else 2*eH()-s.renderingStartTime>sa&&1073741824!==r&&(t.flags|=128,o=!0,aM(s,!1),t.lanes=4194304)}s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=eH(),t.sibling=null,r=i5.current,rL(i5,o?1&r|2:1&r),t):(aC(t),null);case 22:case 23:return sR(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&0!=(1&t.mode)?0!=(1073741824&a8)&&(aC(t),6&t.subtreeFlags&&(t.flags|=8192)):aC(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}(r,t,a8)))return void(a6=r)}else{if(null!==(r=function(e,t){switch(r9(t),t.tag){case 1:return rz(t.type)&&rU(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return i6(),rP(rB),rP(rD),oe(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return i8(t),null;case 13:if(rP(i5),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));ih()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return rP(i5),null;case 4:return i6(),null;case 10:return i_(t.type._context),null;case 22:case 23:return sR(),null;default:return null}}(r,t)))return r.flags&=32767,void(a6=r);if(null===e)return a7=6,void(a6=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(a6=t);a6=t=e}while(null!==t);0===a7&&(a7=5)}function sB(e,t,r){var i=tt,o=a1.transition;try{a1.transition=null,tt=1,function(e,t,r,i){do sj();while(null!==sf);if(0!=(6&a2))throw Error(n(327));r=e.finishedWork;var o=e.finishedLanes;if(null!==r){if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-eX(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===a3&&(a6=a3=null,a4=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||sd||(sd=!0,s=function(){return sj(),null},ez(eY,s)),a=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||a){a=a1.transition,a1.transition=null;var s,l,u=tt;tt=1;var c=a2;a2|=4,a0.current=null,function(e,t){if(rl=tM,nO(e=nT())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var i=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(i&&0!==i.rangeCount){r=i.anchorNode;var o,a=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{r.nodeType,s.nodeType}catch(e){r=null;break e}var l=0,u=-1,c=-1,d=0,f=0,h=e,p=null;t:for(;;){for(;h!==r||0!==a&&3!==h.nodeType||(u=l+a),h!==s||0!==i&&3!==h.nodeType||(c=l+i),3===h.nodeType&&(l+=h.nodeValue.length),null!==(o=h.firstChild);)p=h,h=o;for(;;){if(h===e)break t;if(p===r&&++d===a&&(u=l),p===s&&++f===i&&(c=l),null!==(o=h.nextSibling))break;
vendor: 4,900 bytes, line 6
6p=(h=p).parentNode}h=o}r=-1===u||-1===c?null:{start:u,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(ru={focusedElem:e,selectionRange:r},tM=!1,aT=t;null!==aT;)if(e=(t=aT).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,aT=e;else for(;null!==aT;){t=aT;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:ig(t.type,g),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var A=t.stateNode.containerInfo;1===A.nodeType?A.textContent="":9===A.nodeType&&A.documentElement&&A.removeChild(A.documentElement);break;default:throw Error(n(163))}}catch(e){sz(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,aT=e;break}aT=t.return}m=aL,aL=!1}(e,r),a$(r,e),function(e){var t=nT(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(n.ownerDocument.documentElement,n)){if(null!==r&&nO(n)){if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=nI(n,o);var a=nI(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}(ru),tM=!!rl,ru=rl=null,e.current=r,aT=l=r,function e(t,n,r){for(var i=0!=(1&t.mode);null!==aT;){var o=aT,a=o.child;if(22===o.tag&&i){var s=null!==o.memoizedState||ax;if(!s){var l=o.alternate,u=null!==l&&null!==l.memoizedState||aR;l=ax;var c=aR;if(ax=s,(aR=u)&&!c)for(aT=o;null!==aT;)u=(s=aT).child,22===s.tag&&null!==s.memoizedState?aQ(o):null!==u?(u.return=s,aT=u):aQ(o);for(;null!==a;)aT=a,e(a),a=a.sibling;aT=o,ax=l,aR=c}aY(t)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,aT=a):aY(t)}}(l),eK(),a2=c,tt=u,a1.transition=a}else e.current=r;if(sd&&(sd=!1,sf=e,sh=o),a=e.pendingLanes,0===a&&(sc=null),function(e){if(eJ&&"function"==typeof eJ.onCommitFiberRoot)try{eJ.onCommitFiberRoot(eZ,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),sw(e,eH()),null!==t)for(i=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],i(o.value,{componentStack:o.stack,digest:o.digest});if(sl)throw sl=!1,e=su,su=null,e;0!=(1&sh)&&0!==e.tag&&sj(),a=e.pendingLanes,0!=(1&a)?e===sm?sp++:(sp=0,sm=e):sp=0,rQ()}}(e,t,r,i)}finally{a1.transition=o,tt=i}return null}function sj(){if(null!==sf){var e=tn(sh),t=a1.transition,r=tt;try{if(a1.transition=null,tt=16>e?16:e,null===sf)var i=!1;else{if(e=sf,sf=null,sh=0,0!=(6&a2))throw Error(n(331));var o=a2;for(a2|=4,aT=e.current;null!==aT;){var a=aT,s=a.child;if(0!=(16&aT.flags)){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(aT=c;null!==aT;){var d=aT;switch(d.tag){case 0:case 11:case 15:aN(8,d,a)}var f=d.child;if(null!==f)f.return=d,aT=f;else for(;null!==aT;){var h=(d=aT).sibling,p=d.return;if(function e(t){var n=t.alternate;null!==n&&(t.alternate=null,e(n)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(n=t.stateNode)&&(delete n[rA],delete n[rw],delete n[rE],delete n[rS],delete n[rk]),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}(d),d===c){aT=null;break}if(null!==h){h.return=p,aT=h;break}aT=p}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}aT=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,aT=s;else for(;null!==aT;){if(0!=(2048&(a=aT).flags))switch(a.tag){case 0:case 11:case 15:aN(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,aT=b;break}aT=a.return}}var y=e.current;for(aT=y;null!==aT;){var A=(s=aT).child;if(0!=(2064&s.subtreeFlags)&&null!==A)A.return=s,aT=A;else for(s=y;null!==aT;){if(0!=(2048&(l=aT).flags))try{switch(l.tag){case 0:case 11:case 15:aD(9,l)}}catch(e){sz(l,l.return,e)}if(l===s){aT=null;break}var w=l.sibling;if(null!==w){w.return=l.return,aT=w;break}aT=l.return}}if(a2=o,rQ(),eJ&&"function"==typeof eJ.onPostCommitFiberRoot)try{eJ.onPostCommitFiberRoot(eZ,e)}catch(e){}i=!0}return i}finally{tt=r,a1.transition=t}}return!1}
vendor: 8,493 bytes, line 6
6function sF(e,t,n){e=iL(e,t=o3(0,t=oX(n,t),1),1),t=sb(),null!==e&&(e9(e,1,t),sw(e,t))}function sz(e,t,n){if(3===e.tag)sF(e,e,n);else for(;null!==t;){if(3===t.tag){sF(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===sc||!sc.has(r))){t=iL(t,e=o6(t,e=oX(n,e),1),1),e=sb(),null!==t&&(e9(t,1,e),sw(t,e));break}}t=t.return}}function sU(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=sb(),e.pingedLanes|=e.suspendedLanes&n,a3===e&&(a4&n)===n&&(4===a7||3===a7&&(130023424&a4)===a4&&500>eH()-so?sI(e,0):sn|=n),sw(e,t)}function sq(e,t){0===t&&(0==(1&e.mode)?t=1:(t=e3,0==(130023424&(e3<<=1))&&(e3=4194304)));var n=sb();null!==(e=iR(e,t))&&(e9(e,t,n),sw(e,n))}function sK(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),sq(e,n)}function sH(e,t){var r=0;switch(e.tag){case 13:var i=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(n(314))}null!==i&&i.delete(t),sq(e,r)}function sV(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function s$(e,t,n,r){return new sV(e,t,n,r)}function sW(e){return!(!(e=e.prototype)||!e.isReactComponent)}function sY(e,t){var n=e.alternate;return null===n?((n=s$(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function sG(e,t,r,i,o,a){var s=2;if(i=e,"function"==typeof e)sW(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case A:return sQ(r.children,o,a,t);case w:s=8,o|=8;break;case _:return(e=s$(12,r,t,2|o)).elementType=_,e.lanes=a,e;case M:return(e=s$(13,r,t,o)).elementType=M,e.lanes=a,e;case C:return(e=s$(19,r,t,o)).elementType=C,e.lanes=a,e;case I:return sZ(r,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case S:s=9;break e;case k:s=11;break e;case x:s=14;break e;case R:s=16,i=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=s$(s,r,t,o)).elementType=e,t.type=i,t.lanes=a,t}function sQ(e,t,n,r){return(e=s$(7,e,r,t)).lanes=n,e}function sZ(e,t,n,r){return(e=s$(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={isHidden:!1},e}function sJ(e,t,n){return(e=s$(6,e,null,t)).lanes=n,e}function sX(e,t,n){return(t=s$(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function s0(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=e7(0),this.expirationTimes=e7(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=e7(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function s1(e,t,n,r,i,o,a,s,l){return e=new s0(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=s$(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},iT(o),e}function s2(e){if(!e)return rN;e:{if(eD(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(rz(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(rz(r))return rK(e,r,t)}return t}function s3(e,t,n,r,i,o,a,s,l){return(e=s1(n,r,!0,e,0,o,0,s,l)).context=s2(null),n=e.current,(o=iP(r=sb(),i=sy(n))).callback=null!=t?t:null,iL(n,o,i),e.current.lanes=i,e9(e,i,r),sw(e,r),e}function s6(e,t,n,r){var i=t.current,o=sb(),a=sy(i);return n=s2(n),null===t.context?t.context=n:t.pendingContext=n,(t=iP(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=iL(i,t,a))&&(sA(e,i,a,o),iN(e,i,a)),a}function s4(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function s8(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function s5(e,t){s8(e,t),(e=e.alternate)&&s8(e,t)}aZ=function(e,t,r){if(null!==e){if(e.memoizedProps!==t.pendingProps||rB.current)o9=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return o9=!1,function(e,t,n){switch(t.tag){case 3:au(t),ih();break;case 5:i4(t);break;case 1:rz(t.type)&&rH(t);break;case 4:i3(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;rL(iv,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(rL(i5,1&i5.current),t.flags|=128,null):0!=(n&t.child.childLanes)?ab(e,t,n):(rL(i5,1&i5.current),null!==(e=ak(e,t,n))?e.sibling:null);rL(i5,1&i5.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return aE(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),rL(i5,i5.current),r)break;return null;case 22:case 23:return t.lanes=0,ai(e,t,n)}return ak(e,t,n)}(e,t,r);o9=0!=(131072&e.flags)}}else o9=!1,ir&&0!=(1048576&t.flags)&&r5(t,r0,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;aS(e,t),e=t.pendingProps;var o=rF(t,rD.current);iS(t,r),o=oh(null,t,i,e,o,r);var a=op();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rz(i)?(a=!0,rH(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,iT(t),o.updater=iU,t.stateNode=o,o._reactInternals=t,iV(t,i,e,r),t=al(null,t,i,!0,a,r)):(t.tag=0,ir&&a&&r7(t),ae(null,t,o,r),t=t.child),t;case 16:i=t.elementType;e:{switch(aS(e,t),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return sW(e)?1:0;if(null!=e){if((e=e.$$typeof)===k)return 11;if(e===x)return 14}return 2}(i),e=ig(i,e),o){case 0:t=aa(null,t,i,e,r);break e;case 1:t=as(null,t,i,e,r);break e;case 11:t=at(null,t,i,e,r);break e;case 14:t=an(null,t,i,ig(i.type,e),r);break e}throw Error(n(306,i,""))}return t;case 0:return i=t.type,o=t.pendingProps,aa(e,t,i,o=t.elementType===i?o:ig(i,o),r);case 1:return i=t.type,o=t.pendingProps,as(e,t,i,o=t.elementType===i?o:ig(i,o),r);case 3:e:{if(au(t),null===e)throw Error(n(387));i=t.pendingProps,o=(a=t.memoizedState).element,iO(e,t),iB(t,i,null,r);var s=t.memoizedState;if(i=s.element,a.isDehydrated){if(a={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=ac(e,t,i,r,o=oX(Error(n(423)),t));break e}if(i!==o){t=ac(e,t,i,r,o=oX(Error(n(424)),t));break e}for(it=rv(t.stateNode.containerInfo.firstChild),ie=t,ir=!0,ii=null,r=iZ(t,null,i,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ih(),i===o){t=ak(e,t,r);break e}ae(e,t,i,r)}t=t.child}return t;case 5:return i4(t),null===e&&il(t),i=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,rc(i,o)?s=null:null!==a&&rc(i,a)&&(t.flags|=32),ao(e,t),ae(e,t,s,r),t.child;case 6:return null===e&&il(t),null;case 13:return ab(e,t,r);case 4:return i3(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=iQ(t,null,i,r):ae(e,t,i,r),t.child;case 11:return i=t.type,o=t.pendingProps,at(e,t,i,o=t.elementType===i?o:ig(i,o),r);case 7:return ae(e,t,t.pendingProps,r),t.child;case 8:case 12:return ae(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(i=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,rL(iv,i._currentValue),i._currentValue=s,null!==a){if(nC(a.value,s)){if(a.children===o.children&&!rB.current){t=ak(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;
vendor: 4,576 bytes, line 6
6){if(u.context===i){if(1===a.tag){(u=iP(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=r,null!==(u=a.alternate)&&(u.lanes|=r),iE(a.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),iE(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}}ae(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,i=t.pendingProps.children,iS(t,r),i=i(o=ik(o)),t.flags|=1,ae(e,t,i,r),t.child;case 14:return o=ig(i=t.type,t.pendingProps),an(e,t,i,o=ig(i.type,o),r);case 15:return ar(e,t,t.type,t.pendingProps,r);case 17:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:ig(i,o),aS(e,t),t.tag=1,rz(i)?(e=!0,rH(t)):e=!1,iS(t,r),iK(t,i,o),iV(t,i,o,r),al(null,t,i,!0,e,r);case 19:return aE(e,t,r);case 22:return ai(e,t,r)}throw Error(n(156,t.tag))};var s7="function"==typeof reportError?reportError:function(e){console.error(e)};function s9(e){this._internalRoot=e}function le(e){this._internalRoot=e}function lt(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function ln(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function lr(){}function li(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=s4(a);s.call(e)}}s6(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=s4(a);o.call(e)}}var a=s3(t,r,e,0,null,!1,0,"",lr);return e._reactRootContainer=a,e[r_]=a.current,n8(8===e.nodeType?e.parentNode:e),sx(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=s4(l);s.call(e)}}var l=s1(e,0,!1,null,0,!1,0,"",lr);return e._reactRootContainer=l,e[r_]=l.current,n8(8===e.nodeType?e.parentNode:e),sx(function(){s6(t,l,n,r)}),l}(n,t,e,i,r);return s4(a)}le.prototype.render=s9.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));s6(e,t,null,null)},le.prototype.unmount=s9.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;sx(function(){s6(null,e,null,null)}),t[r_]=null}},le.prototype.unstable_scheduleHydration=function(e){if(e){var t=ta();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tm.length&&0!==t&&t<tm[n].priority;n++);tm.splice(n,0,e),0===n&&ty(e)}},tr=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=e6(t.pendingLanes);0!==n&&(te(t,1|n),sw(t,eH()),0==(6&a2)&&(sa=eH()+500,rQ()))}break;case 13:sx(function(){var t=iR(e,1);null!==t&&sA(t,e,1,sb())}),s5(e,1)}},ti=function(e){if(13===e.tag){var t=iR(e,134217728);null!==t&&sA(t,e,134217728,sb()),s5(e,134217728)}},to=function(e){if(13===e.tag){var t=sy(e),n=iR(e,t);null!==n&&sA(n,e,t,sb()),s5(e,t)}},ta=function(){return tt},ts=function(e,t){var n=tt;try{return tt=e,t()}finally{tt=n}},eg=function(e,t,r){switch(t){case"input":if($(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var i=r[t];if(i!==e&&i.form===e.form){var o=rR(i);if(!o)throw Error(n(90));U(i),$(i,o)}}}break;case"textarea":X(e,r);break;case"select":null!=(t=r.value)&&Q(e,!!r.multiple,t,!1)}},e_=sC,eE=sx;var lo={findFiberByHostInstance:rM,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},la={bundleType:lo.bundleType,version:lo.version,rendererPackageName:lo.rendererPackageName,rendererConfig:lo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=eF(e))?null:e.stateNode},findFiberByHostInstance:lo.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ls=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ls.isDisabled&&ls.supportsFiber)try{eZ=ls.inject(la),eJ=ls}catch(e){}}
6return _l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={usingClientEntryPoint:!1,Events:[rC,rx,rR,eA,ew,sC]},_l.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!lt(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:y,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},_l.createRoot=function(e,t){if(!lt(e))throw Error(n(299));var r=!1,i="",o=s7;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=s1(e,1,!1,null,0,r,0,i,o),e[r_]=t.current,n8(8===e.nodeType?e.parentNode:e),new s9(t)},_l.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw Error(n(268,e=Object.keys(e).join(",")))}return e=null===(e=eF(t))?null:e.stateNode},_l.flushSync=function(e){return sx(e)},_l.hydrate=function(e,t,r){if(!ln(t))throw Error(n(200));return li(null,e,t,!0,r)},_l.hydrateRoot=function(e,t,r){if(!lt(e))throw Error(n(405));var i=null!=r&&r.hydratedSources||null,o=!1,a="",s=s7;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=s3(t,null,e,1,null!=r?r:null,o,0,a,s),e[r_]=t.current,n8(e),i)for(e=0;e<i.length;e++)o=(o=(r=i[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new le(t)},_l.render=function(e,t,r){if(!ln(t))throw Error(n(200));return li(null,e,t,!1,r)},_l.unmountComponentAtNode=function(e){if(!ln(e))throw Error(n(40));return!!e._reactRootContainer&&(sx(function(){li(null,null,e,!1,function(){e._reactRootContainer=null,e[r_]=null})}),!0)},_l.unstable_batchedUpdates=sC,_l.unstable_renderSubtreeIntoContainer=function(e,t,r,i){if(!ln(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return li(e,t,r,!1,i)},_l.version="18.2.0-next-9e3b772b8-20220608",_l}()):_s.exports=(_h||(_h=1,"production"!==ex.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e,t,n,r=_t(),i=_f(),o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,a=!1;function s(e){if(!a){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];u("warn",e,n)}}function l(e){if(!a){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];u("error",e,n)}}function u(e,t,n){var r=o.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var i=n.map(function(e){return String(e)});i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}var c=new Set,d={},f={};function h(e,t){p(e,t),p(e+"Capture",t)}function p(e,t){d[e]&&l("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),d[e]=t,f[e.toLowerCase()]=e,"onDoubleClick"===e&&(f.ondblclick=e);for(var n=0;n<t.length;n++)c.add(t[n])}var m=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),g=Object.prototype.hasOwnProperty;function v(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function b(e){try{return!1}catch(e){return!0}}function y(e,t){if(b(e))return l("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,v(e)),""+e}function A(e){if(b(e))return l("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",v(e)),""+e}var w=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",_=w+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",E=RegExp("^["+w+"]["+_+"]*$"),S={},k={};function M(e){return!!g.call(k,e)||!g.call(S,e)&&(E.test(e)?(k[e]=!0,!0):(S[e]=!0,l("Invalid attribute name: `%s`",e),!1))}
6function C(e,t,n){return null!==t?0===t.type:!n&&e.length>2&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])}function x(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(r)return!1;if(null!==n)return!n.acceptsBooleans;var i=e.toLowerCase().slice(0,5);return"data-"!==i&&"aria-"!==i;default:return!1}}function R(e,t,n,r){if(null==t||x(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||t<1}return!1}function I(e){return O.hasOwnProperty(e)?O[e]:null}function T(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var O={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(function(e){O[e]=new T(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],n=e[1];O[t]=new T(t,1,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){O[e]=new T(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){O[e]=new T(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){O[e]=new T(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){O[e]=new T(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){O[e]=new T(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){O[e]=new T(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){O[e]=new T(e,5,!1,e.toLowerCase(),null,!1,!1)});var P=/[\-\:]([a-z])/g,L=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(P,L);O[t]=new T(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(P,L);O[t]=new T(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(P,L);O[t]=new T(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){O[e]=new T(e,1,!1,e.toLowerCase(),null,!1,!1)}),O.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){O[e]=new T(e,1,!1,e.toLowerCase(),null,!0,!0)});var N=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,D=!1;function B(e){!D&&N.test(e)&&(D=!0,l("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function j(e,t,n,r){if(M(t)){if(!e.hasAttribute(t))return void 0===n?void 0:null;var i=e.getAttribute(t);return y(n,t),i===""+n?n:i}}function F(e,t,n,r){var i=I(t);if(!C(t,i,r)){if(R(t,n,i,r)&&(n=null),r||null===i)M(t)&&(null===n?e.removeAttribute(t):(y(n,t),e.setAttribute(t,""+n)));else if(i.mustUseProperty){var o=i.propertyName;
6if(null===n){var a=i.type;e[o]=3!==a&&""}else e[o]=n}else{var s=i.attributeName,l=i.attributeNamespace;if(null===n)e.removeAttribute(s);else{var u,c=i.type;3===c||4===c&&!0===n?u="":(y(n,s),u=""+n,i.sanitizeURL&&B(u.toString())),l?e.setAttributeNS(l,s,u):e.setAttribute(s,u)}}}}var z=Symbol.for("react.element"),U=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),V=Symbol.for("react.provider"),$=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),J=(Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode"),Symbol.for("react.offscreen")),X=(Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker"),Symbol.iterator);function ee(e){if(null===e||"object"!=typeof e)return null;var t=X&&e[X]||e["@@iterator"];return"function"==typeof t?t:null}var et,en,er,ei,eo,ea,es,el=Object.assign,eu=0;function ec(){}ec.__reactDisabledLog=!0;var ed,ef=o.ReactCurrentDispatcher;function eh(e,t,n){if(void 0===ed)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);ed=r&&r[1]||""}return"\n"+ed+e}var ep,em=!1;function eg(e,t){if(!e||em)return"";var n,r=ep.get(e);if(void 0!==r)return r;em=!0;var i,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=ef.current,ef.current=null,function(){if(0===eu){et=console.log,en=console.info,er=console.warn,ei=console.error,eo=console.group,ea=console.groupCollapsed,es=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ec,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}eu++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),u=n.stack.split("\n"),c=s.length-1,d=u.length-1;c>=1&&d>=0&&s[c]!==u[d];)d--;for(;c>=1&&d>=0;c--,d--)if(s[c]!==u[d]){if(1!==c||1!==d)do if(c--,--d<0||s[c]!==u[d]){var f="\n"+s[c].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&ep.set(e,f),f}while(c>=1&&d>=0);break}}}finally{em=!1,ef.current=i,function(){if(0==--eu){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:el({},e,{value:et}),info:el({},e,{value:en}),warn:el({},e,{value:er}),error:el({},e,{value:ei}),group:el({},e,{value:eo}),groupCollapsed:el({},e,{value:ea}),groupEnd:el({},e,{value:es})})}eu<0&&l("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var h=e?e.displayName||e.name:"",p=h?eh(h):"";return"function"==typeof e&&ep.set(e,p),p}function ev(e){try{var t="",n=e;do t+=function(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case 5:return eh(e.type);case 16:return eh("Lazy");case 13:return eh("Suspense");case 19:return eh("SuspenseList");case 0:case 2:case 15:return eg(e.type,!1);case 11:return eg(e.type.render,!1);case 1:return eg(e.type,!0);default:return""}}(n),n=n.return;while(n);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function eb(e){return e.displayName||"Context"}function ey(e){if(null==e)return null;if("number"==typeof e.tag&&l("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case q:return"Fragment";case U:return"Portal";case H:return"Profiler";case K:return"StrictMode";case Y:return"Suspense";case G:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case $:return eb(e)+".Consumer";case V:return eb(e._context)+".Provider";case W:return function(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||"";return""!==i?n+"("+i+")":n}(e,e.render,"ForwardRef");
6case Q:var t=e.displayName||null;return null!==t?t:ey(e.type)||"Memo";case Z:var n=e._payload,r=e._init;try{return ey(r(n))}catch(e){}}return null}function eA(e){return e.displayName||"Context"}function ew(e){var t,n,r,i=e.tag,o=e.type;switch(i){case 24:return"Cache";case 9:return eA(o)+".Consumer";case 10:return eA(o._context)+".Provider";case 18:return"DehydratedFragment";case 11:return t=o.render,n="ForwardRef",r=t.displayName||t.name||"",o.displayName||(""!==r?n+"("+r+")":n);case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ey(o);case 8:return o===K?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof o)return o.displayName||o.name||null;if("string"==typeof o)return o}return null}ep=new("function"==typeof WeakMap?WeakMap:Map);var e_=o.ReactDebugCurrentFrame,eE=null,eS=!1;function ek(){if(null===eE)return null;var e=eE._debugOwner;return null!=e?ew(e):null}function eM(){return null===eE?"":ev(eE)}function eC(){e_.getCurrentStack=null,eE=null,eS=!1}function ex(e){e_.getCurrentStack=null===e?null:eM,eE=e,eS=!1}function eR(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return A(e),e;default:return""}}var eI={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function eT(e,t){eI[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||null==t.value||l("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||null==t.checked||l("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function eO(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function eP(e){return e._valueTracker}function eL(e){eP(e)||(e._valueTracker=function(e){var t=eO(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);A(e[t]);var r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){A(e),r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){A(e),r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function eN(e){if(!e)return!1;var t,n=eP(e);if(!n)return!0;var r=n.getValue(),i=(t="",e?t=eO(e)?e.checked?"true":"false":e.value:t);return i!==r&&(n.setValue(i),!0)}function eD(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var eB=!1,ej=!1,eF=!1,ez=!1;function eU(e){return"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}function eq(e,t){var n=t.checked;return el({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function eK(e,t){eT(0,t),void 0===t.checked||void 0===t.defaultChecked||ej||(l("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",ek()||"A component",t.type),ej=!0),void 0===t.value||void 0===t.defaultValue||eB||(l("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",ek()||"A component",t.type),eB=!0);var n=null==t.defaultValue?"":t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:eR(null!=t.value?t.value:n),controlled:eU(t)}}function eH(e,t){var n=t.checked;null!=n&&F(e,"checked",n,!1)}function eV(e,t){var n=eU(t);e._wrapperState.controlled||!n||ez||(l("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),ez=!0),!e._wrapperState.controlled||n||eF||(l("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),eF=!0),eH(e,t);var r=eR(t.value),i=t.type;if(null!=r)"number"===i?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===i||"reset"===i)return void e.removeAttribute("value");t.hasOwnProperty("value")?eW(e,t.type,r):t.hasOwnProperty("defaultValue")&&eW(e,t.type,eR(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function e$(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(("submit"===r||"reset"===r)&&(void 0===t.value||null===t.value))return;var i=""+e._wrapperState.initialValue;n||i!==e.value&&(e.value=i),e.defaultValue=i}var o=e.name;""!==o&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==o&&(e.name=o)}function eW(e,t,n){"number"===t&&eD(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var eY=!1,eG=!1,eQ=!1;function eZ(e,t){null==t.value&&("object"==typeof t.children&&null!==t.children?r.Children.forEac
6h(t.children,function(e){null!=e&&"string"!=typeof e&&"number"!=typeof e&&(eG||(eG=!0,l("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):null!=t.dangerouslySetInnerHTML&&(eQ||(eQ=!0,l("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),null==t.selected||eY||(l("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),eY=!0)}var eJ,eX=Array.isArray;function e0(){var e=ek();return e?"\n\nCheck the render method of `"+e+"`.":""}eJ=!1;var e1=["value","defaultValue"];function e2(e,t,n,r){var i=e.options;if(t){for(var o={},a=0;a<n.length;a++)o["$"+n[a]]=!0;for(var s=0;s<i.length;s++){var l=o.hasOwnProperty("$"+i[s].value);i[s].selected!==l&&(i[s].selected=l),l&&r&&(i[s].defaultSelected=!0)}}else{for(var u=""+eR(n),c=null,d=0;d<i.length;d++){if(i[d].value===u)return i[d].selected=!0,void(r&&(i[d].defaultSelected=!0));null!==c||i[d].disabled||(c=i[d])}null!==c&&(c.selected=!0)}}function e3(e,t){return el({},t,{value:void 0})}function e6(e,t){(function(e){eT(0,e);for(var t=0;t<e1.length;t++){var n=e1[t];if(null!=e[n]){var r=eX(e[n]);e.multiple&&!r?l("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,e0()):!e.multiple&&r&&l("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,e0())}}})(t),e._wrapperState={wasMultiple:!!t.multiple},void 0===t.value||void 0===t.defaultValue||eJ||(l("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),eJ=!0)}var e4=!1;function e8(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");return el({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function e5(e,t){eT(0,t),void 0===t.value||void 0===t.defaultValue||e4||(l("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",ek()||"A component"),e4=!0);var n=t.value;if(null==n){var r=t.children,i=t.defaultValue;if(null!=r){if(l("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),null!=i)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(eX(r)){if(r.length>1)throw Error("<textarea> can only have at most one child.");r=r[0]}i=r}null==i&&(i=""),n=i}e._wrapperState={initialValue:eR(n)}}function e7(e,t){var n=eR(t.value),r=eR(t.defaultValue);if(null!=n){var i=""+n;i!==e.value&&(e.value=i),null==t.defaultValue&&e.defaultValue!==i&&(e.defaultValue=i)}null!=r&&(e.defaultValue=""+r)}function e9(e,t){var n=e.textContent;n===e._wrapperState.initialValue&&""!==n&&null!==n&&(e.value=n)}var te="http://www.w3.org/1999/xhtml",tt="http://www.w3.org/2000/svg";function tn(e){switch(e){case"svg":return tt;case"math":return"http://www.w3.org/1998/Math/MathML";default:return te}}function tr(e,t){return null==e||e===te?tn(t):e===tt&&"foreignObject"===t?te:e}var ti,to,ta=(ti=function(e,t){if(e.namespaceURI!==tt||"innerHTML"in e)e.innerHTML=t;else{(to=to||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=to.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ti(e,t,n,r)})}:ti),ts=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t},tl={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["grid
6RowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},tu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tc=["Webkit","ms","Moz","O"];function td(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||tu.hasOwnProperty(e)&&tu[e]?(b(t)&&l("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",e,v(t)),(""+t).trim()):t+"px"}Object.keys(tu).forEach(function(e){tc.forEach(function(t){tu[t+e.charAt(0).toUpperCase()+e.substring(1)]=tu[e]})});var tf,th=/([A-Z])/g,tp=/^ms-/,tm=/^(?:webkit|moz|o)[A-Z]/,tg=/^-ms-/,tv=/-(.)/g,tb=/;\s*$/,ty={},tA={},tw=!1,t_=!1,tE=function(e){ty.hasOwnProperty(e)&&ty[e]||(ty[e]=!0,l("Unsupported style property %s. Did you mean %s?",e,e.replace(tg,"ms-").replace(tv,function(e,t){return t.toUpperCase()})))};function tS(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=0===r.indexOf("--");i||tf(r,t[r]);var o=td(r,t[r],i);"float"===r&&(r="cssFloat"),i?n.setProperty(r,o):n[r]=o}}function tk(e){var t={};for(var n in e)for(var r=tl[n]||[n],i=0;i<r.length;i++)t[r[i]]=n;return t}tf=function(e,t){e.indexOf("-")>-1?tE(e):tm.test(e)?ty.hasOwnProperty(e)&&ty[e]||(ty[e]=!0,l("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1))):tb.test(t)&&(tA.hasOwnProperty(t)&&tA[t]||(tA[t]=!0,l('Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',e,t.replace(tb,"")))),"number"==typeof t&&(isNaN(t)?tw||(tw=!0,l("`NaN` is an invalid value for the `%s` css style property.",e)):isFinite(t)||t_||(t_=!0,l("`Infinity` is an invalid value for the `%s` css style property.",e)))};var tM=el({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function tC(e,t){if(t){if(tM[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!t.suppressContentEditableWarning&&t.contentEditable&&null!=t.children&&l("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),null!=t.style&&"object"!=typeof t.style)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function tx(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var tR,tI
vendor: 11,309 bytes, line 6
6={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},t
6T={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},tO={},tP=RegExp("^(aria)-["+_+"]*$"),tL=RegExp("^(aria)[A-Z]["+_+"]*$"),tN=!1,tD={},tB=/^on./,tj=/^on[^A-Z]/,tF=RegExp("^(aria)-["+_+"]*$"),tz=RegExp("^(aria)[A-Z]["+_+"]*$");tR=function(e,t,n,r){if(g.call(tD,t)&&tD[t])return!0;var i=t.toLowerCase();if("onfocusin"===i||"onfocusout"===i)return l("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),tD[t]=!0,!0;if(null!=r){var o=r.registrationNameDependencies,a=r.possibleRegistrationNames;if(o.hasOwnProperty(t))return!0;var s=a.hasOwnProperty(i)?a[i]:null;if(null!=s)return l("Invalid event handler property `%s`. Did you mean `%s`?",t,s),tD[t]=!0,!0;if(tB.test(t))return l("Unknown event handler property `%s`. It will be ignored.",t),tD[t]=!0,!0}else if(tB.test(t))return tj.test(t)&&l("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),tD[t]=!0,!0;if(tF.test(t)||tz.test(t))return!0;if("innerhtml"===i)return l("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),tD[t]=!0,!0;if("aria"===i)return l("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),tD[t]=!0,!0;if("is"===i&&null!=n&&"string"!=typeof n)return l("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),tD[t]=!0,!0;if("number"==typeof n&&isNaN(n))return l("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),tD[t]=!0,!0;var u=I(t),c=null!==u&&0===u.type;if(tI.hasOwnProperty(i)){var d=tI[i];if(d!==t)return l("Invalid DOM property `%s`. Did you mean `%s`?",t,d),tD[t]=!0,!0}else if(!c&&t!==i)return l("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,i),tD[t]=!0,!0;return"boolean"==typeof n&&x(t,n,u,!1)?(n?l('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):l('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),tD[t]=!0,!0):!!c||(x(t,n,u,!1)?(tD[t]=!0,!1):("false"!==n&&"true"!==n||null===u||3!==u.type||(l("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,"false"===n?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),tD[t]=!0),!0))};var tU=null;function tq(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var tK=null,tH=null,tV=null;function t$(e){var t=o4(e);if(t){if("function"!=typeof tK)throw Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var n=t.stateNode;if(n){var r=o5(n);tK(t.stateNode,t.type,r)}}}function tW(e){tH?tV?tV.push(e):tV=[e]:tH=e}function tY(){if(tH){var e=tH,t=tV;if(tH=null,tV=null,t$(e),t)for(var n=0;n<t.length;n++)t$(t[n])}}var tG=function(e,t){return e(t)},tQ=function(){},tZ=!1;function tJ(e,t,n){if(tZ)return e(t,n);tZ=!0;try{return tG(e,t,n)}finally{tZ=!1,(null!==tH||null!==tV)&&(tQ(),tY())}}function tX(e,t){var n=e.stateNode;if(null===n)return null;var r=o5(n);if(null===r)return null;var i=r[t];if(function(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!(!n.disabled||"button"!==t&&"input"!==t&&"select"!==t&&"textarea"!==t);default:return!1}}(t,e.type,r))return null;if(i&&"function"!=typeof i)throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof i+"` type.");return i}var t0=!1;if(m)try{var t1={};Object.defineProperty(t1,"passive",{get:function(){t0=!0}}),window.addEventListener("test",t1,t1),window.removeEventListener("test",t1,t1)}catch(e){t0=!1}function t2(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var t3=t2;if("undefined"!=typeof window&&"function"==typeof window.dispatchEvent&&"undefined"!=typeof document&&"function"==typeof document.createEvent){var t6=document.createElement("react");t3=function(e,t,n,r,i,o,a,s,l){if("undefined"==typeof document||null===document)throw Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var u=document.createEvent("Event"),c=!1,d=!0,f=window.event,h=Object.getOwnPropertyDescriptor(window,"event");function p(){t6.removeEventListener(w,v,!1),void 0!==window.event&&window.hasOwnProperty("event")&&(window.event=f)}var m,g=Array.prototype.slice.call(arguments,3);function v(){c=!0,p(),t.apply(n,g),d=!1}var b=!1,y=!1;function A(e){if(m=e.error,b=!0,null===m&&0===e.colno&&0===e.lineno&&(y=!0),e.defaultPrevented&&null!=m&&"object"==typeof m)try{m._suppressLogging=!0}catch(e){}}var w="react-"+(e||"invokeguardedcallback");if(window.addEventListener("error",A),t6.addEventListener(w,v,!1),u.initEvent(w,!1,!1),t6.dispatchEvent(u),h&&Object.defineProperty(window,"event",h),c&&d&&(b?y&&(m=Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):m=Error("An error was thrown inside one of your components, but React doesn't know 
6what it was. This is likely due to browser flakiness. React does its best to preserve the \"Pause on exceptions\" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue."),this.onError(m)),window.removeEventListener("error",A),!c)return p(),t2.apply(this,arguments)}}var t4=t3,t8=!1,t5=null,t7=!1,t9=null,ne={onError:function(e){t8=!0,t5=e}};function nt(e,t,n,r,i,o,a,s,l){t8=!1,t5=null,t4.apply(ne,arguments)}function nn(){if(t8){var e=t5;return t8=!1,t5=null,e}throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function nr(e){return e._reactInternals}var ni=o.ReactCurrentOwner;function no(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var r=t;do(4098&(t=r).flags)!=0&&(n=t.return),r=t.return;while(r)}return 3===t.tag?n:null}function na(e){if(13===e.tag){var t=e.memoizedState;if(null===t){var n=e.alternate;null!==n&&(t=n.memoizedState)}if(null!==t)return t.dehydrated}return null}function ns(e){return 3===e.tag?e.stateNode.containerInfo:null}function nl(e){if(no(e)!==e)throw Error("Unable to find node on an unmounted component.")}function nu(e){var t=e.alternate;if(!t){var n=no(e);if(null===n)throw Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var r=e,i=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){var s=o.return;if(null!==s){r=i=s;continue}break}if(o.child===a.child){for(var l=o.child;l;){if(l===r)return nl(o),e;if(l===i)return nl(o),t;l=l.sibling}throw Error("Unable to find node on an unmounted component.")}if(r.return!==i.return)r=o,i=a;else{for(var u=!1,c=o.child;c;){if(c===r){u=!0,r=o,i=a;break}if(c===i){u=!0,i=o,r=a;break}c=c.sibling}if(!u){for(c=a.child;c;){if(c===r){u=!0,r=a,i=o;break}if(c===i){u=!0,i=a,r=o;break}c=c.sibling}if(!u)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(r.alternate!==i)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==r.tag)throw Error("Unable to find node on an unmounted component.");return r.stateNode.current===r?e:t}function nc(e){var t=nu(e);return null!==t?function e(t){if(5===t.tag||6===t.tag)return t;for(var n=t.child;null!==n;){var r=e(n);if(null!==r)return r;n=n.sibling}return null}(t):null}var nd=i.unstable_scheduleCallback,nf=i.unstable_cancelCallback,nh=i.unstable_shouldYield,np=i.unstable_requestPaint,nm=i.unstable_now,ng=i.unstable_getCurrentPriorityLevel,nv=i.unstable_ImmediatePriority,nb=i.unstable_UserBlockingPriority,ny=i.unstable_NormalPriority,nA=i.unstable_LowPriority,nw=i.unstable_IdlePriority,n_=i.unstable_yieldValue,nE=i.unstable_setDisableYieldValue,nS=null,nk=null,nM=null,nC=!1,nx="undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__;function nR(e){if("function"==typeof n_&&(nE(e),a=e),nk&&"function"==typeof nk.setStrictMode)try{nk.setStrictMode(nS,e)}catch(e){nC||(nC=!0,l("React instrumentation encountered an error: %s",e))}}function nI(e){nM=e}function nT(){for(var e=new Map,t=1,n=0;n<nK;n++){var r,i=1&(r=t)?"Sync":2&r?"InputContinuousHydration":4&r?"InputContinuous":8&r?"DefaultHydration":16&r?"Default":32&r?"TransitionHydration":4194240&r?"Transition":130023424&r?"Retry":134217728&r?"SelectiveHydration":268435456&r?"IdleHydration":536870912&r?"Idle":1073741824&r?"Offscreen":void 0;e.set(t,i),t*=2}return e}function nO(){null!==nM&&"function"==typeof nM.markCommitStopped&&nM.markCommitStopped()}function nP(e){null!==nM&&"function"==typeof nM.markComponentRenderStarted&&nM.markComponentRenderStarted(e)}function nL(){null!==nM&&"function"==typeof nM.markComponentRenderStopped&&nM.markComponentRenderStopped()}function nN(e){null!==nM&&"function"==typeof nM.markComponentLayoutEffectUnmountStarted&&nM.markComponentLayoutEffectUnmountStarted(e)}function nD(){null!==nM&&"function"==typeof nM.markComponentLayoutEffectUnmountStopped&&nM.markComponentLayoutEffectUnmountStopped()}function nB(e){null!==nM&&"function"==typeof nM.markRenderStarted&&nM.markRenderStarted(e)}function nj(){null!==nM&&"function"==typeof nM.markRenderStopped&&nM.markRenderStopped()}function nF(e,t){null!==nM&&"function"==typeof nM.markStateUpdateScheduled&&nM.markStateUpdateScheduled(e,t)}var nz=Math.clz32?Math.clz32:function(e){var t=e>>>0;return 0===t?32:31-(nU(t)/nq|0)|0}
6,nU=Math.log,nq=Math.LN2,nK=31,nH=64,nV=4194304;function n$(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l("Should have found matching lanes. This is a bug in React."),e}}function nW(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;if(0!==s)r=n$(s);else{var l=a&o;0!==l&&(r=n$(l))}}else{var u=n&~i;0!==u?r=n$(u):0!==o&&(r=n$(o))}if(0===r)return 0;if(0!==t&&t!==r&&(t&i)==0){var c,d=(c=r)&-c,f=t&-t;if(d>=f||16===d&&(4194240&f)!=0)return t}(4&r)!=0&&(r|=16&n);var h=e.entangledLanes;if(0!==h)for(var p=e.entanglements,m=r&h;m>0;){var g=n0(m),v=1<<g;r|=p[g],m&=~v}return r}function nY(e){var t=-1073741825&e.pendingLanes;return 0!==t?t:1073741824&t?1073741824:0}function nG(e){return(268435455&e)!=0}function nQ(e){return(130023424&e)===e}function nZ(e){return(4194240&e)!=0}function nJ(){var e=nH;return(4194240&(nH<<=1))==0&&(nH=64),e}function nX(e){return e&-e}function n0(e){return 31-nz(e)}function n1(e){for(var t=[],n=0;n<nK;n++)t.push(e);return t}function n2(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),e.eventTimes[n0(t)]=n}function n3(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function n6(e,t){for(var n=e.entangledLanes|=t,r=e.entanglements,i=n;i;){var o=n0(i),a=1<<o;a&t|r[o]&t&&(r[o]|=t),i&=~a}}function n4(e,t,n){if(nx)for(var r=e.pendingUpdatersLaneMap;n>0;){var i=n0(n),o=1<<i;r[i].add(t),n&=~o}}function n8(e,t){if(nx)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;t>0;){var i=n0(t),o=1<<i,a=n[i];a.size>0&&(a.forEach(function(e){var t=e.alternate;null!==t&&r.has(t)||r.add(e)}),a.clear()),t&=~o}}var n5,n7,n9,re,rt,rn=0;function rr(e){var t=e&-e;return 1<t?4<t?nG(t)?16:536870912:4:1}function ri(e){return e.current.memoizedState.isDehydrated}var ro=!1,ra=[],rs=null,rl=null,ru=null,rc=new Map,rd=new Map,rf=[],rh=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function rp(e,t){switch(e){case"focusin":case"focusout":rs=null;break;case"dragenter":case"dragleave":rl=null;break;case"mouseover":case"mouseout":ru=null;break;case"pointerover":case"pointerout":var n=t.pointerId;rc.delete(n);break;case"gotpointercapture":case"lostpointercapture":var r=t.pointerId;rd.delete(r)}}function rm(e,t,n,r,i,o){if(null===e||e.nativeEvent!==o){if(null!==t){var a=o4(t);null!==a&&n7(a)}return{blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]}}e.eventSystemFlags|=r;var s=e.targetContainers;return null!==i&&-1===s.indexOf(i)&&s.push(i),e}function rg(e){var t=o6(e.target);if(null!==t){var n=no(t);if(null!==n){var r=n.tag;if(13===r){var i=na(n);if(null!==i)return e.blockedOn=i,void rt(e.priority,function(){n9(n)})}else if(3===r&&ri(n.stateNode))return void(e.blockedOn=ns(n))}}e.blockedOn=null}function rv(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;t.length>0;){var n=t[0],r=rx(e.domEventName,e.eventSystemFlags,n,e.nativeEvent);if(null!==r){var i=o4(r);return null!==i&&n7(i),e.blockedOn=r,!1}var o=e.nativeEvent,a=new o.constructor(o.type,o);null!==tU&&l("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),tU=a,o.target.dispatchEvent(a),null===tU&&l("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),tU=null,t.shift()}return!0}function rb(e,t,n){rv(e)&&n.delete(t)}function ry(){ro=!1,null!==rs&&rv(rs)&&(rs=null),null!==rl&&rv(rl)&&(rl=null),null!==ru&&rv(ru)&&(ru=null),rc.forEac
6h(rb),rd.forEach(rb)}function rA(e,t){e.blockedOn===t&&(e.blockedOn=null,ro||(ro=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,ry)))}function rw(e){if(ra.length>0){rA(ra[0],e);for(var t=1;t<ra.length;t++){var n=ra[t];n.blockedOn===e&&(n.blockedOn=null)}}null!==rs&&rA(rs,e),null!==rl&&rA(rl,e),null!==ru&&rA(ru,e);var r=function(t){return rA(t,e)};rc.forEach(r),rd.forEach(r);for(var i=0;i<rf.length;i++){var o=rf[i];o.blockedOn===e&&(o.blockedOn=null)}for(;rf.length>0;){var a=rf[0];if(null!==a.blockedOn)break;rg(a),null===a.blockedOn&&rf.shift()}}var r_=o.ReactCurrentBatchConfig,rE=!0;function rS(e,t,n,r){var i=rn,o=r_.transition;r_.transition=null;try{rn=1,rM(e,t,n,r)}finally{rn=i,r_.transition=o}}function rk(e,t,n,r){var i=rn,o=r_.transition;r_.transition=null;try{rn=4,rM(e,t,n,r)}finally{rn=i,r_.transition=o}}function rM(e,t,n,r){rE&&function(e,t,n,r){var i=rx(e,t,n,r);if(null===i)return i5(e,t,r,rC,n),void rp(e,r);if(function(e,t,n,r,i){switch(t){case"focusin":return rs=rm(rs,e,t,n,r,i),!0;case"dragenter":return rl=rm(rl,e,t,n,r,i),!0;case"mouseover":return ru=rm(ru,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return rc.set(o,rm(rc.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":var a=i.pointerId;return rd.set(a,rm(rd.get(a)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))return void r.stopPropagation();if(rp(e,r),4&t&&rh.indexOf(e)>-1){for(;null!==i;){var o=o4(i);null!==o&&n5(o);var a=rx(e,t,n,r);if(null===a&&i5(e,t,r,rC,n),a===i)break;i=a}return void(null!==i&&r.stopPropagation())}i5(e,t,r,null,n)}(e,t,n,r)}var rC=null;function rx(e,t,n,r){rC=null;var i=o6(tq(r));if(null!==i){var o=no(i);if(null===o)i=null;else{var a=o.tag;if(13===a){var s=na(o);if(null!==s)return s;i=null}else if(3===a){if(ri(o.stateNode))return ns(o);i=null}else o!==i&&(i=null)}}return rC=i,null}function rR(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ng()){case nv:return 1;case nb:return 4;case ny:case nA:return 16;case nw:return 536870912;default:return 16}default:return 16}}var rI=null,rT=null,rO=null;function rP(){if(rO)return rO;var e,t,n=rT,r=n.length,i=rL(),o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);var s=t>1?1-t:void 0;return rO=i.slice(e,s)}function rL(){return"value"in rI?rI.value:rI.textContent}function rN(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,10===t&&(t=13),t>=32||13===t?t:0}function rD(){return!0}function rB(){return!1}function rj(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)if(e.hasOwnProperty(a)){var s=e[a];this[a]=s?s(i):i[a]}var l=null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue;return this.isDefaultPrevented=l?rD:rB,this.isPropagationStopped=rB,this}return el(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rD)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rD)},persist:function(){},isPersistent:rD}),t}var rF,rz,rU,rq={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rK=rj(rq),rH=el({},rq,{view:0,detail:0}),rV=rj(rH),r$=el({},rH,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:r3,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
6Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==rU&&(rU&&"mousemove"===e.type?(rF=e.screenX-rU.screenX,rz=e.screenY-rU.screenY):(rF=0,rz=0),rU=e),rF)},movementY:function(e){return"movementY"in e?e.movementY:rz}}),rW=rj(r$),rY=rj(el({},r$,{dataTransfer:0})),rG=rj(el({},rH,{relatedTarget:0})),rQ=rj(el({},rq,{animationName:0,elapsedTime:0,pseudoElement:0})),rZ=rj(el({},rq,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),rJ=rj(el({},rq,{data:0})),rX={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},r0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},r1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function r2(e){var t=this.nativeEvent;if(t.getModifierState)return t.getModifierState(e);var n=r1[e];return!!n&&!!t[n]}function r3(e){return r2}var r6=rj(el({},rH,{key:function(e){if(e.key){var t=rX[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=rN(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?r0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:r3,charCode:function(e){return"keypress"===e.type?rN(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rN(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),r4=rj(el({},r$,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),r8=rj(el({},rH,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:r3})),r5=rj(el({},rq,{propertyName:0,elapsedTime:0,pseudoElement:0})),r7=rj(el({},r$,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),r9=[9,13,27,32],ie=m&&"CompositionEvent"in window,it=null;m&&"documentMode"in document&&(it=document.documentMode);var ir=m&&"TextEvent"in window&&!it,ii=m&&(!ie||it&&it>8&&it<=11),io=!1;function ia(e,t){switch(e){case"keyup":return -1!==r9.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function is(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function il(e){return"ko"===e.locale}var iu=!1,ic={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function id(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ic[e.type]:"textarea"===t}function ih(e,t,n,r){tW(r);var i=i9(t,"onChange");if(i.length>0){var o=new rK("onChange","change",null,n,r);e.push({event:o,listeners:i})}}var ip=null,im=null;function ig(e){i0(e,0)}function iv(e){if(eN(o8(e)))return e}function ib(e,t){if("change"===e)return t}var iy=!1;function iA(){ip&&(ip.detachEvent("onpropertychange",iw),ip=null,im=null)}function iw(e){var t;"value"===e.propertyName&&iv(im)&&(ih(t=[],im,e,tq(e)),tJ(ig,t))}function i_(e,t,n){"focusin"===e?(iA(),im=n,(ip=t).attachEvent("onpropertychange",iw)):"focusout"===e&&iA()}function iE(e,t){if("selectionchange"===e||"keyup"===e||"keydown"===e)return iv(im)}function iS(e,t){if("click"===e)return iv(t)}function ik(e,t){if("input"===e||"change"===e)return iv(t)}m&&(iy=function(e){if(!m)return!1;var t="on"+e,n=t in document;if(!n){var r=document.createElement("div");r.setAttribute(t,"return;"),n="function"==typeof r[t]}return n}("input")&&(!document.documentMode||document.documentMode>9));var iM="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function iC(e,t){if(iM(e,t))return!0;
6if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(!g.call(t,o)||!iM(e[o],t[o]))return!1}return!0}function ix(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function iR(e,t){for(var n=ix(e),r=0,i=0;n;){if(3===n.nodeType){if(i=r+n.textContent.length,r<=t&&i>=t)return{node:n,offset:t-r};r=i}n=ix(function(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}(n))}}function iI(e){return e&&3===e.nodeType}function iT(){for(var e=window,t=eD();t instanceof e.HTMLIFrameElement&&function(e){try{return"string"==typeof e.contentWindow.location.href}catch(e){return!1}}(t);)t=eD((e=t.contentWindow).document);return t}function iO(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var iP=m&&"documentMode"in document&&document.documentMode<=11,iL=null,iN=null,iD=null,iB=!1;function ij(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;if(!iB&&null!=iL&&iL===eD(r)){var i=function(e){if("selectionStart"in e&&iO(e))return{start:e.selectionStart,end:e.selectionEnd};var t=(e.ownerDocument&&e.ownerDocument.defaultView||window).getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}(iL);if(!iD||!iC(iD,i)){iD=i;var o=i9(iN,"onSelect");if(o.length>0){var a=new rK("onSelect","select",null,t,n);e.push({event:a,listeners:o}),a.target=iL}}}}function iF(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var iz={animationend:iF("Animation","AnimationEnd"),animationiteration:iF("Animation","AnimationIteration"),animationstart:iF("Animation","AnimationStart"),transitionend:iF("Transition","TransitionEnd")},iU={},iq={};function iK(e){if(iU[e])return iU[e];if(!iz[e])return e;var t=iz[e];for(var n in t)if(t.hasOwnProperty(n)&&n in iq)return iU[e]=t[n];return e}m&&(iq=document.createElement("div").style,"AnimationEvent"in window||(delete iz.animationend.animation,delete iz.animationiteration.animation,delete iz.animationstart.animation),"TransitionEvent"in window||delete iz.transitionend.transition);var iH=iK("animationend"),iV=iK("animationiteration"),i$=iK("animationstart"),iW=iK("transitionend"),iY=new Map,iG=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function iQ(e,t){iY.set(e,t),h(t,[e])}(function(){for(var e=0;e<iG.length;e++){var t=iG[e];iQ(t.toLowerCase(),"on"+(t[0].toUpperCase()+t.slice(1)))}iQ(iH,"onAnimationEnd"),iQ(iV,"onAnimationIteration"),iQ(i$,"onAnimationStart"),iQ("dblclick","onDoubleClick"),iQ("focusin","onFocus"),iQ("focusout","onBlur"),iQ(iW,"onTransitionEnd")})(),p("onMouseEnter",["mouseout","mouseover"]),p("onMouseLeave",["mouseout","mouseover"]),p("onPointerEnter",["pointerout","pointerover"]),p("onPointerLeave",["pointerout","pointerover"]),h("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"]),h("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"]),h("onBeforeInput",["compositionend","keypress","textInput","paste"]),h("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),h("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),h("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"]);var iZ=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],iJ=new Set(["cancel","close","invali
6d","load","scroll","toggle"].concat(iZ));function iX(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,s,l){if(nt.apply(this,arguments),t8){var u=nn();t7||(t7=!0,t9=u)}}(r,t,void 0,e),e.currentTarget=null}function i0(e,t){for(var n=0!=(4&t),r=0;r<e.length;r++){var i=e[r];(function(e,t,n){var r;if(n)for(var i=t.length-1;i>=0;i--){var o=t[i],a=o.instance,s=o.currentTarget,l=o.listener;if(a!==r&&e.isPropagationStopped())return;iX(e,l,s),r=a}else for(var u=0;u<t.length;u++){var c=t[u],d=c.instance,f=c.currentTarget,h=c.listener;if(d!==r&&e.isPropagationStopped())return;iX(e,h,f),r=d}})(i.event,i.listeners,n)}!function(){if(t7){var e=t9;throw t7=!1,t9=null,e}}()}function i1(e,t){iJ.has(e)||l('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n,r=(void 0===(n=t[o1])&&(n=t[o1]=new Set),n),i=e+"__bubble";r.has(i)||(i4(t,e,2,!1),r.add(i))}function i2(e,t,n){iJ.has(e)&&!t&&l('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var r=0;t&&(r|=4),i4(n,e,r,t)}var i3="_reactListening"+Math.random().toString(36).slice(2);function i6(e){if(!e[i3]){e[i3]=!0,c.forEach(function(t){"selectionchange"!==t&&(iJ.has(t)||i2(t,!1,e),i2(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null!==t&&(t[i3]||(t[i3]=!0,i2("selectionchange",!1,t)))}}function i4(e,t,n,r,i){var o=function(e,t,n){var r;switch(rR(t)){case 1:r=rS;break;case 4:r=rk;break;default:r=rM}return r.bind(null,t,n,e)}(e,t,n),a=void 0;t0&&("touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0)),r?void 0!==a?function(e,t,n,r){e.addEventListener(t,n,{capture:!0,passive:r})}(e,t,o,a):function(e,t,n){e.addEventListener(t,n,!0)}(e,t,o):void 0!==a?function(e,t,n,r){e.addEventListener(t,n,{passive:r})}(e,t,o,a):function(e,t,n){e.addEventListener(t,n,!1)}(e,t,o)}function i8(e,t){return e===t||8===e.nodeType&&e.parentNode===t}function i5(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r){var a=r;e:for(;;){if(null===a)return;var s=a.tag;if(3===s||4===s){var l=a.stateNode.containerInfo;if(i8(l,i))break;if(4===s)for(var u=a.return;null!==u;){var c=u.tag;if((3===c||4===c)&&i8(u.stateNode.containerInfo,i))return;u=u.return}for(;null!==l;){var d=o6(l);if(null===d)return;var f=d.tag;if(5===f||6===f){a=o=d;continue e}l=l.parentNode}}a=a.return}}tJ(function(){var r,i,a,s;return r=o,void(function(e,t,n,r,i,o,a){var s=iY.get(t);if(void 0!==s){var l=rK,u=t;switch(t){case"keypress":if(0===rN(r))return;case"keydown":case"keyup":l=r6;break;case"focusin":u="focus",l=rG;break;case"focusout":u="blur",l=rG;break;case"beforeblur":case"afterblur":l=rG;break;case"click":if(2===r.button)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=rW;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=rY;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=r8;break;case iH:case iV:case i$:l=rQ;break;case iW:l=r5;break;case"scroll":l=rV;break;case"wheel":l=r7;break;case"copy":case"cut":case"paste":l=rZ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=r4}var c=0!=(4&o),d=function(e,t,n,r,i,o){for(var a=r?null!==t?t+"Capture":null:t,s=[],l=e,u=null;null!==l;){var c=l,d=c.stateNode;if(5===c.tag&&null!==d&&(u=d,null!==a)){var f=tX(l,a);null!=f&&s.push(i7(l,f,u))}if(i)break;l=l.return}return s}(n,s,r.type,c,!c&&"scroll"===t);if(d.length>0){var f=new l(s,u,null,r,i);e.push({event:f,listeners:d})}}}(a=i=[],e,r,n,s=tq(n),t),0==(7&t)&&(function(e,t,n,r,i,o,a){var s,l,u,c="mouseover"===t||"pointerover"===t,d="mouseout"===t||"pointerout"===t;if(c&&r!==tU){var f=r.relatedTarget||r.fromElement;if(f&&(o6(f)||f[o0]))return}if(d||c){if(i.window===i)s=i;else{var h=i.ownerDocument;s=h?h.defaultView||h.parentWindow:window}if(d){var p=r.relatedTarget||r.toElement;l=n,null!==(u=p?o6(p):null)&&(u!==no(u)||5!==u.tag&&6!==u.tag)&&(u=null)}else l=null,u=n;if(l!==u){var m,g,v,b,y=rW,A="onMouseLeave",w="onMouseEnter",_="mouse";"pointerout"!==t&&"pointerover"!==t||(y=r4,A="onPointerLeave",w="onPointerEnter",_="pointer");var E=null==l?s:o8(l),S=null==u?s:o8(u),k=new y(A,_+"leave",l,r,i);k.target=E,k.relatedTarget=S;var M=null;if(o6(i)===n){var C=new y(w,_+"enter",u,r,i);C.target=S,C.relatedTarget=E,M=C}m=M,g=l,v=u,b=g&&v?function(e,t){for(var n=e,r=t,i=0,o=n;o;o=oe(o))i++;for(var a=0,s=r;s;s=oe(s))a++;for(;i-a>0;)n=oe(n),i--;for(;a-i>0;)r=oe(r),a--;for(var l=i;l--;){if(n===r||null!==r&&n===r.alternate)return n;n=oe(n),r=oe(r)}return null}(g,v):null,null!==g&&ot(e,k,g,b,!1),null!==v&&null!==m&&ot(e,m,v,b,!0)}}}(a,e,r,n,s),function(e,t,n,r,i,o,a){var s,l,u,c,d,f=n?o8(n):window;if("select"===(d=f.nodeName&&f.nodeName.toLowerCase())||"input"===d&&"file"===f.type?u=ib:id(f)?iy?u=ik:(u=iE,c=i_):(s=f.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===f.type||"radio"===f.type)&&(u=iS),u){var h=u(t,n);if(h)return void ih(e,h,r,i)}c&&c(t,f,n),"focusout"===t&&(l=f._wrapperState)&&l.controlled&&"number"===f.type&&eW(f,"number",f.value)}(a,e,r,n,s),function(e,t,n,r,i,o,a){var s=n?o8(n):window;switch(t){case"focusin":(id(s)||"true"===s.contentEditable)&&(iL=s,iN=n,iD=null);break;case"focusout":iL=null,iN=null,iD=null;break;case"mousedown":iB=!0;break;case"contextmenu":case"mouseup":case"dragend":iB=!1,ij(e,r,i);break;case"selectionchange":if(iP)break;case"keydown":case"keyup":ij(e,r,i)}}(a,e,r,n,s),function(e,t,n,r,i){if(ie?o=function(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}(t):iu?ia(t,r)&&(o="onCompositionEnd"):"keydown"===t&&229===r.keyCode&&(o="onCompositionStart"),o){ii&&!il(r)&&(iu||"onCompositionStart"!==o?"onCompositionEnd"===o&&iu&&(a=rP()):(rI=i,rT=rL(),iu=!0));var o,a,s=i9(n,o);if(s.length>0){var l=new rJ(o,t,null,r,i);if(e.push({event:l,listeners:s}),a)l.data=a;else{var u=is(r);null!==u&&(l.data=u)}}}}(a,e,r,n,s),function(e,t,n,r,i){if(o=ir?function(e,t){switch(e){case"compositionend":return is(t);case"keypress":return 32!==t.which?null:(io=!0," ");case"textInput":var n=t.data;return" "===n&&io?null:n;default:return null}}(t,r):function(e,t){if(iu){if("compositionend"===e||!ie&&ia(e,t)){var n=rP();return rI=null,rT=null,rO=null,iu=!1,n}return null}switch(e){case"paste":default:return null;case"keypress":if(!((t.ctrlKey||t.altKey||t.metaKey)&&!(t.ctrlKey&&t.altKey))){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ii&&!il(t)?null:t.data}}(t,r)){var o,a=i9(n,"onBeforeInput");if(a.length>0){var s=new rJ("onBeforeInput","beforeinput",null,r,i);e.push({event:s,listeners:a}),s.data=o}}}(a,e,r,n,s)),i0(i,t))})}
6function i7(e,t,n){return{instance:e,listener:t,currentTarget:n}}function i9(e,t){for(var n=t+"Capture",r=[],i=e;null!==i;){var o=i,a=o.stateNode;if(5===o.tag&&null!==a){var s=tX(i,n);null!=s&&r.unshift(i7(i,s,a));var l=tX(i,t);null!=l&&r.push(i7(i,l,a))}i=i.return}return r}function oe(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag);return e||null}function ot(e,t,n,r,i){for(var o=t._reactName,a=[],s=n;null!==s&&s!==r;){var l=s,u=l.alternate,c=l.stateNode,d=l.tag;if(null!==u&&u===r)break;if(5===d&&null!==c){if(i){var f=tX(s,o);null!=f&&a.unshift(i7(s,f,c))}else if(!i){var h=tX(s,o);null!=h&&a.push(i7(s,h,c))}}s=s.return}0!==a.length&&e.push({event:t,listeners:a})}var on,or,oi,oo,oa,os,ol,ou=!1,oc="dangerouslySetInnerHTML",od="suppressContentEditableWarning",of="suppressHydrationWarning",oh="autoFocus",op="children",om="style",og="__html";on={dialog:!0,webview:!0},or=function(e,t){var n;tx(e,t)||function(e,t){var n=[];for(var r in t)(function(e,t){if(g.call(tO,t)&&tO[t])return!0;if(tL.test(t)){var n="aria-"+t.slice(4).toLowerCase(),r=tT.hasOwnProperty(n)?n:null;if(null==r)return l("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),tO[t]=!0,!0;if(t!==r)return l("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,r),tO[t]=!0,!0}if(tP.test(t)){var i=t.toLowerCase(),o=tT.hasOwnProperty(i)?i:null;if(null==o)return tO[t]=!0,!1;if(t!==o)return l("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,o),tO[t]=!0,!0}return!0})(0,r)||n.push(r);var i=n.map(function(e){return"`"+e+"`"}).join(", ");1===n.length?l("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e):n.length>1&&l("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e)}(e,t),"input"!==e&&"textarea"!==e&&"select"!==e||null==t||null!==t.value||tN||(tN=!0,"select"===e&&t.multiple?l("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):l("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e)),n={registrationNameDependencies:d,possibleRegistrationNames:f},tx(e,t)||function(e,t,n){var r=[];for(var i in t)tR(0,i,t[i],n)||r.push(i);var o=r.map(function(e){return"`"+e+"`"}).join(", ");1===r.length?l("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",o,e):r.length>1&&l("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",o,e)}(e,t,n)},os=m&&!document.documentMode,oi=function(e,t,n){if(!ou){var r=oy(n),i=oy(t);i!==r&&(ou=!0,l("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(i),JSON.stringify(r)))}},oo=function(e){if(!ou){ou=!0;var t=[];e.forEach(function(e){t.push(e)}),l("Extra attributes from the server: %s",t)}},oa=function(e,t){!1===t?l("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):l("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},ol=function(e,t){var n=e.namespaceURI===te?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var ov=/\r\n?/g,ob=/\u0000|\uFFFD/g;function oy(e){return b(e)&&l("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",v(e)),("string"==typeof e?e:""+e).replace(ov,"\n").replace(ob,"")}function oA(e,t,n,r){var i=oy(t),o=oy(e);if(o!==i&&(r&&(ou||(ou=!0,l('Text content did not match. Server: "%s" Client: "%s"',o,i))),n))throw Error("Text content does not match server-rendered HTML.")}
6function ow(e){return 9===e.nodeType?e:e.ownerDocument}function o_(){}function oE(e){e.onclick=o_}function oS(e,t){ou||(ou=!0,l("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase()))}function ok(e,t){ou||(ou=!0,l('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase()))}function oM(e,t,n){ou||(ou=!0,l("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase()))}function oC(e,t){""!==t&&(ou||(ou=!0,l('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())))}var ox=function(){},oR=function(){},oI=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],oT=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],oO=oT.concat(["button"]),oP=["dd","dt","li","option","optgroup","p","rp","rt"],oL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};oR=function(e,t){var n=el({},e||oL),r={tag:t};return -1!==oT.indexOf(t)&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),-1!==oO.indexOf(t)&&(n.pTagInButtonScope=null),-1!==oI.indexOf(t)&&"address"!==t&&"div"!==t&&"p"!==t&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,"form"===t&&(n.formTag=r),"a"===t&&(n.aTagInScope=r),"button"===t&&(n.buttonTagInScope=r),"nobr"===t&&(n.nobrTagInScope=r),"p"===t&&(n.pTagInButtonScope=r),"li"===t&&(n.listItemTagAutoclosing=r),"dd"!==t&&"dt"!==t||(n.dlItemTagAutoclosing=r),n};var oN={};ox=function(e,t,n){var r=(n=n||oL).current,i=r&&r.tag;null!=t&&(null!=e&&l("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var o=!function(e,t){switch(t){case"select":return"option"===e||"optgroup"===e||"#text"===e;case"optgroup":return"option"===e||"#text"===e;case"option":return"#text"===e;case"tr":return"th"===e||"td"===e||"style"===e||"script"===e||"template"===e;case"tbody":case"thead":case"tfoot":return"tr"===e||"style"===e||"script"===e||"template"===e;case"colgroup":return"col"===e||"template"===e;case"table":return"caption"===e||"colgroup"===e||"tbody"===e||"tfoot"===e||"thead"===e||"style"===e||"script"===e||"template"===e;case"head":return"base"===e||"basefont"===e||"bgsound"===e||"link"===e||"meta"===e||"title"===e||"noscript"===e||"noframes"===e||"style"===e||"script"===e||"template"===e;case"html":return"head"===e||"body"===e||"frameset"===e;case"frameset":return"frame"===e;case"#document":return"html"===e}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t;case"rp":case"rt":return -1===oP.indexOf(t);case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return null==t}return!0}(e,i)?r:null,a=o?null:function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}(e,n),s=o||a;if(s){var u=s.tag,c=!!o+"|"+e+"|"+u;if(!oN[c]){oN[c]=!0;var d=e,f="";if("#text"===e?/\S/.test(t)?d="Text nodes":(d="Whitespace text nodes",f=" Make sure you don't have any extra whitespace between tags on each line of your source code."):d="<"+e+">",o){var h="";"table"===u&&"tr"===e&&(h+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),l("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",d,u,f,h)}else l("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",d,u)}}};var oD="suppressHydrationWarning",oB=null,oj=null;function oF(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var oz="function"==typeof setTimeout?setTimeout:void 0,oU="function"==typeof clearTimeout?clearTimeout:void 0,oq="function"==typeof Promise?Promise:void 0,oK="function"==typeof queueMicrotask?queueMicrotask:void 0!==oq?function(e){return oq.resolve(null).then(e).catch(oH)}:oz;function oH(e){setTimeout(function(){throw e})}function oV(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType){var o=i.data;if("/$"===o){if(0===r)return e.removeChild(i),void rw(t);r--}else"$"!==o&&"$?"!==o&&"$!"!==o||r++}n=i}while(n);rw(t)}function o$(e){return"$?"===e.data}function oW(e){return"$!"===e.data}function oY(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;
6if(8===t){var n=e.data;if("$"===n||"$!"===n||"$?"===n)break;if("/$"===n)return null}}return e}function oG(e){return oY(e.nextSibling)}function oQ(e){for(var t=e.previousSibling,n=0;t;){if(8===t.nodeType){var r=t.data;if("$"===r||"$!"===r||"$?"===r){if(0===n)return t;n--}else"/$"===r&&n++}t=t.previousSibling}return null}var oZ=Math.random().toString(36).slice(2),oJ="__reactFiber$"+oZ,oX="__reactProps$"+oZ,o0="__reactContainer$"+oZ,o1="__reactEvents$"+oZ,o2="__reactListeners$"+oZ,o3="__reactHandles$"+oZ;function o6(e){var t=e[oJ];if(t)return t;for(var n=e.parentNode;n;){if(t=n[o0]||n[oJ]){var r=t.alternate;if(null!==t.child||null!==r&&null!==r.child)for(var i=oQ(e);null!==i;){var o=i[oJ];if(o)return o;i=oQ(i)}return t}n=(e=n).parentNode}return null}function o4(e){var t=e[oJ]||e[o0];return t&&(5===t.tag||6===t.tag||13===t.tag||3===t.tag)?t:null}function o8(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function o5(e){return e[oX]||null}var o7={},o9=o.ReactDebugCurrentFrame;function ae(e){if(e){var t=e._owner,n=function e(t,n,r){if(null==t)return"";if("function"==typeof t)return eg(t,!(!(i=t.prototype)||!i.isReactComponent));if("string"==typeof t)return eh(t);switch(t){case Y:return eh("Suspense");case G:return eh("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case W:return eg(t.render,!1);case Q:return e(t.type,n,r);case Z:var i,o=t._payload,a=t._init;try{return e(a(o),n,r)}catch(e){}}return""}(e.type,e._source,t?t.type:null);o9.setExtraStackFrame(n)}else o9.setExtraStackFrame(null)}function at(e,t,n,r,i){var o=Function.call.bind(g);for(var a in e)if(o(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var u=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(ae(i),l("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),ae(null)),s instanceof Error&&!(s.message in o7)&&(o7[s.message]=!0,ae(i),l("Failed %s type: %s",n,s.message),ae(null))}}var an,ar=[];an=[];var ai,ao=-1;function aa(e){return{current:e}}function as(e,t){ao<0?l("Unexpected pop."):(t!==an[ao]&&l("Unexpected Fiber popped."),e.current=ar[ao],ar[ao]=null,an[ao]=null,ao--)}function al(e,t,n){ar[++ao]=e.current,an[ao]=n,e.current=t}ai={};var au={};Object.freeze(au);var ac=aa(au),ad=aa(!1),af=au;function ah(e,t,n){return n&&av(t)?af:ac.current}function ap(e,t,n){var r=e.stateNode;r.__reactInternalMemoizedUnmaskedChildContext=t,r.__reactInternalMemoizedMaskedChildContext=n}function am(e,t){var n=e.type.contextTypes;if(!n)return au;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={};for(var o in n)i[o]=t[o];return at(n,i,"context",ew(e)||"Unknown"),r&&ap(e,t,i),i}function ag(){return ad.current}function av(e){return null!=e.childContextTypes}function ab(e){as(ad,e),as(ac,e)}function ay(e){as(ad,e),as(ac,e)}function aA(e,t,n){if(ac.current!==au)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");al(ac,t,e),al(ad,n,e)}function aw(e,t,n){var r=e.stateNode,i=t.childContextTypes;if("function"!=typeof r.getChildContext){var o=ew(e)||"Unknown";return ai[o]||(ai[o]=!0,l("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",o,o)),n}var a=r.getChildContext();for(var s in a)if(!(s in i))throw Error((ew(e)||"Unknown")+'.getChildContext(): key "'+s+'" is not defined in childContextTypes.');return at(i,a,"child context",ew(e)||"Unknown"),el({},n,a)}function a_(e){var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||au;return af=ac.current,al(ac,n,e),al(ad,ad.current,e),!0}function aE(e,t,n){var r=e.stateNode;if(!r)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(n){var i=aw(e,t,af);r.__reactInternalMemoizedMergedChildContext=i,as(ad,e),as(ac,e),al(ac,i,e),al(ad,n,e)}else as(ad,e),al(ad,n,e)}var aS=null,ak=!1,aM=!1;function aC(e){null===aS?aS=[e]:aS.push(e)}function ax(){if(!aM&&null!==aS){aM=!0;var e=0,t=rn;try{var n=aS;for(rn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(null!==r)}aS=null,ak=!1}catch(t){throw null!==aS&&(aS=aS.slice(e+1)),nd(nv,ax),t}finally{rn=t,aM=!1}}return null}var aR=[],aI=0,aT=null,aO=0,aP=[],aL=0,aN=null,aD=1,aB="";function aj(e,t){aK(),aR[aI++]=aO,aR[aI++]=aT,aT=e,aO=t}function aF(e,t,n){aK(),aP[aL++]=aD,aP[aL++]=aB,aP[aL++]=aN,aN=e;var r=aD,i=aB,o=aU(r)-1,a=r&~(1<<o),s=n+1,l=aU(t)+o;if(l>30){var u=o-o%5,c=(a&(1<<u)-1).toString(32),d=o-u,f=aU(t)+d;aD=s<<d|a>>u|1<<f,aB=c+i}else aD=s<<o|a|1<<l,aB=i}
6function az(e){aK(),null!==e.return&&(aj(e,1),aF(e,1,0))}function aU(e){return 32-nz(e)}function aq(e){for(;e===aT;)aT=aR[--aI],aR[aI]=null,aO=aR[--aI],aR[aI]=null;for(;e===aN;)aN=aP[--aL],aP[aL]=null,aB=aP[--aL],aP[aL]=null,aD=aP[--aL],aP[aL]=null}function aK(){a$||l("Expected to be hydrating. This is a bug in React. Please file an issue.")}var aH=null,aV=null,a$=!1,aW=!1,aY=null;function aG(e,t){switch(e.tag){case 3:var n;n=e.stateNode.containerInfo,1===t.nodeType?oS(n,t):8===t.nodeType||ok(n,t);break;case 5:var r,i,o=(1&e.mode)!=0;e.type,r=e.memoizedProps,i=e.stateNode,(o||!0!==r[oD])&&(1===t.nodeType?oS(i,t):8===t.nodeType||ok(i,t));break;case 13:var a,s=e.memoizedState;null!==s.dehydrated&&null!==(a=s.dehydrated.parentNode)&&(1===t.nodeType?oS(a,t):8===t.nodeType||ok(a,t))}}function aQ(e,t){aG(e,t);var n,r=((n=f0(5,null,null,0)).elementType="DELETED",n);r.stateNode=t,r.return=e;var i=e.deletions;null===i?(e.deletions=[r],e.flags|=16):i.push(r)}function aZ(e,t){if(!aW)switch(e.tag){case 3:var n=e.stateNode.containerInfo;switch(t.tag){case 5:var r=t.type;t.pendingProps,oM(n,r);break;case 6:oC(n,t.pendingProps)}break;case 5:e.type;var i,o=e.memoizedProps,a=e.stateNode;switch(t.tag){case 5:var s=t.type;t.pendingProps,((1&e.mode)!=0||!0!==o[oD])&&oM(a,s);break;case 6:i=t.pendingProps,((1&e.mode)!=0||!0!==o[oD])&&oC(a,i)}break;case 13:var l,u,c=e.memoizedState.dehydrated;if(null!==c)switch(t.tag){case 5:var d,f=t.type;t.pendingProps,null!==(d=c.parentNode)&&oM(d,f);break;case 6:l=t.pendingProps,null!==(u=c.parentNode)&&oC(u,l)}break;default:return}}function aJ(e,t){t.flags=-4097&t.flags|2,aZ(e,t)}function aX(e,t){switch(e.tag){case 5:var n=e.type;e.pendingProps;var r=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t;return null!==r&&(e.stateNode=r,aH=e,aV=oY(r.firstChild),!0);case 6:var i=""===e.pendingProps||3!==t.nodeType?null:t;return null!==i&&(e.stateNode=i,aH=e,aV=null,!0);case 13:var o=8!==t.nodeType?null:t;if(null!==o){var a,s={dehydrated:o,treeContext:(aK(),null!==aN?{id:aD,overflow:aB}:null),retryLane:1073741824};e.memoizedState=s;var l=((a=f0(18,null,null,0)).stateNode=o,a);return l.return=e,e.child=l,aH=e,aV=null,!0}return!1;default:return!1}}function a0(e){return(1&e.mode)!=0&&(128&e.flags)==0}function a1(e){throw Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function a2(e){if(a$){var t=aV;if(!t)return a0(e)&&(aZ(aH,e),a1()),aJ(aH,e),a$=!1,void(aH=e);var n=t;if(!aX(e,t)){a0(e)&&(aZ(aH,e),a1()),t=oG(n);var r=aH;if(!t||!aX(e,t))return aJ(aH,e),a$=!1,void(aH=e);aQ(r,n)}}}function a3(e){for(var t=e.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;aH=t}function a6(e){if(e!==aH)return!1;if(!a$)return a3(e),a$=!0,!1;if(3!==e.tag&&(5!==e.tag||"head"!==(t=e.type)&&"body"!==t&&!oF(e.type,e.memoizedProps))){var t,n=aV;if(n){if(a0(e))a4(e),a1();else for(;n;)aQ(e,n),n=oG(n)}}return a3(e),aV=13===e.tag?function(e){var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return function(e){for(var t=e.nextSibling,n=0;t;){if(8===t.nodeType){var r=t.data;if("/$"===r){if(0===n)return oG(t);n--}else"$"!==r&&"$!"!==r&&"$?"!==r||n++}t=t.nextSibling}return null}(n)}(e):aH?oG(e.stateNode):null,!0}function a4(e){for(var t=aV;t;)aG(e,t),t=oG(t)}function a8(){aH=null,aV=null,a$=!1,aW=!1}function a5(){null!==aY&&(fc(aY),aY=null)}function a7(e){null===aY?aY=[e]:aY.push(e)}var a9=o.ReactCurrentBatchConfig,se={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},st=function(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(", ")},sn=[],sr=[],si=[],so=[],sa=[],ss=[],sl=new Set;se.recordUnsafeLifecycleWarnings=function(e,t){sl.has(e.type)||("function"==typeof t.componentWillMount&&!0!==t.componentWillMount.__suppressDeprecationWarning&&sn.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillMount&&sr.push(e),"function"==typeof t.componentWillReceiveProps&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&si.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillReceiveProps&&so.push(e),"function"==typeof t.componentWillUpdate&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&sa.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillUpdate&&ss.push(e))},se.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;sn.length>0&&(sn.forEach(function(t){e.add(ew(t)||"Component"),sl.add(t.type)}),sn=[]);var t=new Set;sr.length>0&&(sr.forEach(function(e){t.add(ew(e)||"Component"),sl.add(e.type)}),sr=[]);var n=new Set;si.length>0&&(si.forEach(function(e){n.add(ew(e)||"Component"),sl.add(e.type)}),si=[]);var r=new Set;so.length>
60&&(so.forEach(function(e){r.add(ew(e)||"Component"),sl.add(e.type)}),so=[]);var i=new Set;sa.length>0&&(sa.forEach(function(e){i.add(ew(e)||"Component"),sl.add(e.type)}),sa=[]);var o=new Set;ss.length>0&&(ss.forEach(function(e){o.add(ew(e)||"Component"),sl.add(e.type)}),ss=[]),t.size>0&&l("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s",st(t)),r.size>0&&l("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n\nPlease update the following components: %s",st(r)),o.size>0&&l("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s",st(o)),e.size>0&&s("componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",st(e)),n.size>0&&s("componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",st(n)),i.size>0&&s("componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",st(i))};var su=new Map,sc=new Set;function sd(e,t){if(e&&e.defaultProps){var n=el({},t),r=e.defaultProps;for(var i in r)void 0===n[i]&&(n[i]=r[i]);return n}return t}se.recordLegacyContextWarning=function(e,t){var n=function(e){for(var t=null,n=e;null!==n;)8&n.mode&&(t=n),n=n.return;return t}(e);if(null!==n){if(!sc.has(e.type)){var r=su.get(n);(null!=e.type.contextTypes||null!=e.type.childContextTypes||null!==t&&"function"==typeof t.getChildContext)&&(void 0===r&&(r=[],su.set(n,r)),r.push(e))}}else l("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.")},se.flushLegacyContextWarning=function(){su.forEach(function(e,t){if(0!==e.length){var n=e[0],r=new Set;e.forEach(function(e){r.add(ew(e)||"Component"),sc.add(e.type)});var i=st(r);try{ex(n),l("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context",i
6)}finally{eC()}}})},se.discardPendingWarnings=function(){sn=[],sr=[],si=[],so=[],sa=[],ss=[],su=new Map};var sf,sh=aa(null);sf={};var sp=null,sm=null,sg=null,sv=!1;function sb(){sp=null,sm=null,sg=null,sv=!1}function sy(e,t,n){al(sh,t._currentValue,e),t._currentValue=n,void 0!==t._currentRenderer&&null!==t._currentRenderer&&t._currentRenderer!==sf&&l("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=sf}function sA(e,t){var n=sh.current;as(sh,t),e._currentValue=n}function sw(e,t,n){for(var r=e;null!==r;){var i=r.alternate;if((r.childLanes&t)===t?null===i||(i.childLanes&t)===t||(i.childLanes=i.childLanes|t):(r.childLanes=r.childLanes|t,null!==i&&(i.childLanes=i.childLanes|t)),r===n)break;r=r.return}r!==n&&l("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function s_(e,t){sp=e,sm=null,sg=null;var n=e.dependencies;null!==n&&null!==n.firstContext&&((n.lanes&t)!=0&&(cd=!0),n.firstContext=null)}function sE(e){sv&&l("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(sg===e);else{var n={context:e,memoizedValue:t,next:null};if(null===sm){if(null===sp)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");sm=n,sp.dependencies={lanes:0,firstContext:n}}else sm=sm.next=n}return t}var sS=null;function sk(e){null===sS?sS=[e]:sS.push(e)}function sM(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,sk(t)):(n.next=i.next,i.next=n),t.interleaved=n,sC(e,r)}function sC(e,t){e.lanes=e.lanes|t;var n=e.alternate;null!==n&&(n.lanes=n.lanes|t),null===n&&(4098&e.flags)!=0&&fF(e);for(var r=e,i=e.return;null!==i;)i.childLanes=i.childLanes|t,null!==(n=i.alternate)?n.childLanes=n.childLanes|t:(4098&i.flags)!=0&&fF(e),r=i,i=i.return;return 3===r.tag?r.stateNode:null}var sx,sR,sI=!1;function sT(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null};e.updateQueue=t}function sO(e,t){var n=t.updateQueue,r=e.updateQueue;if(n===r){var i={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects};t.updateQueue=i}}function sP(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function sL(e,t,n){var r,i=e.updateQueue;if(null===i)return null;var o=i.shared;if(sR!==o||sx||(l("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),sx=!0),(dL&dT)!==dI){var a=o.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),o.pending=t,sC(e,n)}return null===(r=o.interleaved)?(t.next=t,sk(o)):(t.next=r.next,r.next=t),o.interleaved=t,sC(e,n)}function sN(e,t,n){var r=t.updateQueue;if(null!==r){var i=r.shared;if(nZ(n)){var o=i.lanes,a=(o&=e.pendingLanes)|n;i.lanes=a,n6(e,a)}}}function sD(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r){var i=r.updateQueue;if(n===i){var o=null,a=null,s=n.firstBaseUpdate;if(null!==s){var l=s;do{var u={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};null===a?o=a=u:(a.next=u,a=u),l=l.next}while(null!==l);null===a?o=a=t:(a.next=t,a=t)}else o=a=t;return n={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:i.shared,effects:i.effects},void(e.updateQueue=n)}}var c=n.lastBaseUpdate;null===c?n.firstBaseUpdate=t:c.next=t,n.lastBaseUpdate=t}function sB(e,t,n,r){var i=e.updateQueue;sI=!1,sR=i.shared;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;if(null!==c){var d=c.updateQueue,f=d.lastBaseUpdate;f!==a&&(null===f?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=l)}}if(null!==o){for(var h=i.baseState,p=0,m=null,g=null,v=null,b=o;;){var y=b.lane,A=b.eventTime;if((r&y)===y){if(null!==v){var w={eventTime:A,lane:0,tag:b.tag,payload:b.payload,callback:b.callback,next:null};v=v.next=w}if(h=function(e,t,n,r,i,o){switch(n.tag){case 1:var a=n.payload;if("function"==typeof a){sv=!0;var s=a.call(o,r,i);if(8&e.mode){nR(!0);try{a.call(o,r,i)}finally{nR(!1)}}return sv=!1,s}return a;case 3:e.flags=-65537&e.flags|128;case 0:var l,u=n.payload;if("function"==typeof u){if(sv=!0,l=u.call(o,r,i),8&e.mode){nR(!0);try{u.call(o,r,i)}finally{nR(!1)}}sv=!1}else l=u;return null==l?r:el({},r,l);case 2:return sI=!0,r}return r}(e,0,b,h,t,n),null!==b.callback&&0!==b.lane){e.flags|=64;var _=i.effects;null===_?i.effects=[b]:_.push(b)}}else{var E={eventTime:A,lane:y,tag:b.tag,payload:b.payload,callback:b.callback,next:null};null===v?(g=v=E,m=h):v=v.next=E,p|=y}if(null===(b=b.next)){if(null===(s=i.shared.pending))break;var S=s,k=S.next;S.next=null,b=k,i.lastBaseUpdate=S,i.shared.pending=null}}null===v&&(m=h),i.baseState=m,i.firstBaseUpdate=g,i.lastBaseUpdate=v;var M=i.shared.interleaved;if(null!==M){var C=M;do p|=C.lane,C=C.next;while(C!==M)}else null===o&&(i.shared.lanes=0);dq|=p,e.lanes=p,e.memoizedState=h}sR=null}function sj(e,t,n){var r=t.effects;if(t.effects=null,null!==r)for(var i=0;i<r.length;i++){var o=r[i],a=o.callback;null!==a&&(o.callback=null,function(e,t){if("function"!=typeof e)throw Error("Invalid argument passed as callback. E
6xpected a function. Instead received: "+e);e.call(t)}(a,n))}}sx=!1,sR=null;var sF,sz,sU,sq,sK,sH,sV,s$,sW,sY,sG={},sQ=(new r.Component).refs;sF=new Set,sz=new Set,sU=new Set,sq=new Set,s$=new Set,sK=new Set,sW=new Set,sY=new Set;var sZ=new Set;function sJ(e,t,n,r){var i=e.memoizedState,o=n(r,i);if(8&e.mode){nR(!0);try{o=n(r,i)}finally{nR(!1)}}sH(t,o);var a=null==o?i:el({},i,o);e.memoizedState=a,0===e.lanes&&(e.updateQueue.baseState=a)}sV=function(e,t){if(null!==e&&"function"!=typeof e){var n=t+"_"+e;sZ.has(n)||(sZ.add(n),l("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},sH=function(e,t){if(void 0===t){var n=ey(e)||"Component";sK.has(n)||(sK.add(n),l("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(sG,"_processChildContext",{enumerable:!1,value:function(){throw Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(sG);var sX,s0,s1,s2,s3,s6={isMounted:function(e){var t=ni.current;if(null!==t&&1===t.tag){var n=t.stateNode;n._warnedAboutRefsInRender||l("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",ew(t)||"A component"),n._warnedAboutRefsInRender=!0}var r=nr(e);return!!r&&no(r)===r},enqueueSetState:function(e,t,n){var r=nr(e),i=fi(),o=fo(r),a=sP(i,o);a.payload=t,null!=n&&(sV(n,"setState"),a.callback=n);var s=sL(r,a,o);null!==s&&(fa(s,r,o,i),sN(s,r,o)),nF(r,o)},enqueueReplaceState:function(e,t,n){var r=nr(e),i=fi(),o=fo(r),a=sP(i,o);a.tag=1,a.payload=t,null!=n&&(sV(n,"replaceState"),a.callback=n);var s=sL(r,a,o);null!==s&&(fa(s,r,o,i),sN(s,r,o)),nF(r,o)},enqueueForceUpdate:function(e,t){var n=nr(e),r=fi(),i=fo(n),o=sP(r,i);o.tag=2,null!=t&&(sV(t,"forceUpdate"),o.callback=t);var a=sL(n,o,i);null!==a&&(fa(a,n,i,r),sN(a,n,i)),null!==nM&&"function"==typeof nM.markForceUpdateScheduled&&nM.markForceUpdateScheduled(n,i)}};function s4(e,t,n,r,i,o,a){var s=e.stateNode;if("function"==typeof s.shouldComponentUpdate){var u=s.shouldComponentUpdate(r,o,a);if(8&e.mode){nR(!0);try{u=s.shouldComponentUpdate(r,o,a)}finally{nR(!1)}}return void 0===u&&l("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",ey(t)||"Component"),u}return!t.prototype||!t.prototype.isPureReactComponent||!iC(n,r)||!iC(i,o)}function s8(e,t){t.updater=s6,e.stateNode=t,t._reactInternals=e,t._reactInternalInstance=sG}function s5(e,t,n){var r=!1,i=au,o=au,a=t.contextType;if("contextType"in t&&!(null===a||void 0!==a&&a.$$typeof===$&&void 0===a._context)&&!sY.has(t)){sY.add(t);var s="";s=void 0===a?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":"object"!=typeof a?" However, it is set to a "+typeof a+".":a.$$typeof===V?" Did you accidentally pass the Context.Provider instead?":void 0!==a._context?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(a).join(", ")+"}.",l("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",ey(t)||"Component",s)}"object"==typeof a&&null!==a?o=sE(a):(i=ah(0,t,!0),o=(r=null!=t.contextTypes)?am(e,i):au);var u=new t(n,o);if(8&e.mode){nR(!0);try{u=new t(n,o)}finally{nR(!1)}}var c=e.memoizedState=null!==u.state&&void 0!==u.state?u.state:null;if(s8(e,u),"function"==typeof t.getDerivedStateFromProps&&null===c){var d=ey(t)||"Component";sz.has(d)||(sz.add(d),l("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",d,null===u.state?"null":"undefined",d))}if("function"==typeof t.getDerivedStateFromProps||"function"==typeof u.getSnapshotBeforeUpdate){var f=null,h=null,p=null;if("function"==typeof u.componentWillMount&&!0!==u.componentWillMount.__suppressDeprecationWarning?f="componentWillMount":"function"==typeof u.UNSAFE_componentWillMount&&(f="UNSAFE_componentWillMount"),"function"==typeof u.componentWillReceiveProps&&!0!==u.componentWillReceiveProps.__suppressDeprecationWarning?h="componentWillReceiveProps":"function"==typeof u.UNSAFE_componentWillReceiveProps&&(h="UNSAFE_componentWillReceiveProps"),"function"==typeof u.componentWillUpdate&&!0!==u.componentWillUpdate.__suppressDeprecationWarning?p="componentWillUpdate":"function"==typeof u.UNSAFE_componentWillUpdate&&(p="UNSAFE_componentWillUpdate"),null!==f||null!==h||null!==p){var m=ey(t)||"Component",g="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";sq.has(m)||(sq.add(m),l("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://reactjs.org/link/unsafe-component-lifecycles",m,g,null!==f?"\n  "+f:"",null!==h?"\n  "+h:"",null!==p?"\n  "+p:""))}}return r&&ap(e,i,o),u}function s7(e,t,n,r){var i=t.state;if("function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==i){var o=ew(e)||"Component";
6sF.has(o)||(sF.add(o),l("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",o)),s6.enqueueReplaceState(t,t.state,null)}}function s9(e,t,n,r){i=e.stateNode,o=ey(t)||"Component",i.render||(t.prototype&&"function"==typeof t.prototype.render?l("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",o):l("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",o)),!i.getInitialState||i.getInitialState.isReactClassApproved||i.state||l("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",o),i.getDefaultProps&&!i.getDefaultProps.isReactClassApproved&&l("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",o),i.propTypes&&l("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",o),i.contextType&&l("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",o),i.contextTypes&&l("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",o),t.contextType&&t.contextTypes&&!sW.has(t)&&(sW.add(t),l("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",o)),"function"==typeof i.componentShouldUpdate&&l("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",o),t.prototype&&t.prototype.isPureReactComponent&&void 0!==i.shouldComponentUpdate&&l("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",ey(t)||"A pure component"),"function"==typeof i.componentDidUnmount&&l("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",o),"function"==typeof i.componentDidReceiveProps&&l("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",o),"function"==typeof i.componentWillRecieveProps&&l("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",o),"function"==typeof i.UNSAFE_componentWillRecieveProps&&l("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",o),a=i.props!==n,void 0!==i.props&&a&&l("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o,o),i.defaultProps&&l("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",o,o),"function"!=typeof i.getSnapshotBeforeUpdate||"function"==typeof i.componentDidUpdate||sU.has(t)||(sU.add(t),l("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ey(t))),"function"==typeof i.getDerivedStateFromProps&&l("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",o),"function"==typeof i.getDerivedStateFromError&&l("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",o),"function"==typeof t.getSnapshotBeforeUpdate&&l("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",o),(s=i.state)&&("object"!=typeof s||eX(s))&&l("%s.state: must be set to an object or null",o),"function"==typeof i.getChildContext&&"object"!=typeof t.childContextTypes&&l("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",o);var i,o,a,s,u,c,d=e.stateNode;d.props=n,d.state=e.memoizedState,d.refs=sQ,sT(e);var f=t.contextType;if("object"==typeof f&&null!==f)d.context=sE(f);else{var h=ah(0,t,!0);d.context=am(e,h)}if(d.state===n){var p=ey(t)||"Component";s$.has(p)||(s$.add(p),l("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",p))}8&e.mode&&se.recordLegacyContextWarning(e,d),se.recordUnsafeLifecycleWarnings(e,d),d.state=e.memoizedState;var m=t.getDerivedStateFromProps;"function"==typeof m&&(sJ(e,t,m,n),d.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof d.getSnapshotBeforeUpdate||"function"!=typeof d.UNSAFE_componentWillMount&&"function"!=typeof d.componentWillMount||(u=d.state,"function"==typeof d.componentWillMount&&d.componentWillMount(),"function"==typeof d.UNSAFE_componentWillMount&&d.UNSAFE_componentWillMount(),u!==d.state&&(l("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",ew(e)||"Component"),s6.enqueueReplaceState(d,d.state,null)),sB(e,n,d,r),d.state=e.memoizedState),"function"==typeof d.componentDidMount&&(c=4194308,(16&e.mode)!=0&&(c|=16777216),e.flags|=c)}function le(e,t,n){var r=n.ref;if(null!==r&&"function"!=typeof r&&"object"!=typeof r){if(8&e.mode&&(!n._owner||!n._self||n._owner.stateNode===n._self)){var i=ew(e)||"Component";s1[i]||(l('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r),s1[i]=!0)}if(n._owner){var o,a=n._owner;if(a){if(1!==a.tag)throw Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");o=a.stateNode}if(!o)throw Error("Missing owner for string ref "+r+". This error is likely caused by a bug in React. Please file an issue.");var s=o;b(r)&&l("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.","ref",v(r));var u=""+r;if(null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===u)return t.ref;var c=function(e){var t=s.refs;t===sQ&&(t=s.refs={}),null===e?delete t[u]:t[u]=e};return c._stringRef=u,c}if("string"!=typeof r)throw Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw Error("Element ref was specified as a string ("+r+") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information.")}return r}function lt(e,t){var n=Object.prototype.toString.call(t);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function ln(e){var t=ew(e)||"Component";s3[t]||(s3[t]=!0,l("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it."))}function lr(e){var t=e._payload;return(0,e._init)(t)}function li(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(var i=r;null!==i;)t(n,i),i=i.sibling;return null}function r(e,t){for(var n=new Map,r=t;null!==r;)null!==r.key?n.set(r.key,r):n.set(r.index,r),r=r.sibling;return n}function i(e,t){var n=f2(e,t);return n.index=0,n.sibling=null,n}function o(t,n,r){if(t.index=r,!e)return t.flags|=1048576,n;var i=t.alternate;if(null!==i){var o=i.index;return o<n?(t.flags|=2,n):o}return t.flags|=2,n}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){if(null===t||6!==t.tag){var o=f5(n,e.mode,r);return o.return=e,o}var a=i(t,n);return a.return=e,a}function u(e,t,n,r){var o=n.type;if(o===q)return d(e,t,n.props.children,r,n.key);if(null!==t&&(t.elementType===o||fZ(t,n)||"object"==typeof o&&null!==o&&o.$$typeof===Z&&lr(o)===t.type)){var a=i(t,n.props);return a.ref=le(e,t,n),a.return=e,a._debugSource=n._source,a._debugOwner=n._owner,a}var s=f6(n,e.mode,r);return s.ref=le(e,t,n),s.return=e,s}function c(e,t,n,r){if(null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation){var o=f7(n,e.mode,r);return o.return=e,o}var a=i(t,n.children||[]);return a.return=e,a}function d(e,t,n,r,o){if(null===t||7!==t.tag){var a=f4(n,e.mode,r,o);return a.return=e,a}var s=i(t,n);return s.return=e,s}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t){var r=f5(""+t,e.mode,n);return r.return=e,r}if("object"==typeof t&&null!==t){switch(t.$$typeof){case z:var i=f6(t,e.mode,n);return i.ref=le(e,null,t),i.return=e,i;case U:var o=f7(t,e.mode,n);return o.return=e,o;case Z:var a=t._payload;return f(e,(0,t._init)(a),n)}if(eX(t)||ee(t)){var s=f4(t,e.mode,n,null);return s.return=e,s}lt(0,t)}return"function"==typeof t&&ln(e),null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case z:return n.key===i?u(e,t,n,r):null;case U:return n.key===i?c(e,t,n,r):null;case Z:var o=n._payload;return h(e,t,(0,n._init)(o),r)}if(eX(n)||ee(n))return null!==i?null:d(e,t,n,r,null);lt(0,n)}return"function"==typeof n&&ln(e),null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case z:return u(t,e.get(null===r.key?n:r.key)||null,r,i);case U:return c(t,e.get(null===r.key?n:r.key)||null,r,i);case Z:var o=r._payload;return p(e,t,n,(0,r._init)(o),i)}if(eX(r)||ee(r))return d(t,e.get(n)||null,r,i,null);lt(0,r)}return"function"==typeof r&&ln(t),null}function m(e,t,n){if("object"!=typeof e||null===e)return t;switch(e.$$typeof){case z:case U:lE(e,n);var r=e.key;if("string"!=typeof r)break;if(null===t){(t=new Set).add(r);break}if(!t.has(r)){t.add(r);break}l("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/
6or omitted — the behavior is unsupported and could change in a future version.",r);break;case Z:var i=e._payload;m((0,e._init)(i),t,n)}return t}return function s(u,c,d,g){if("object"==typeof d&&null!==d&&d.type===q&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case z:return a(function(e,r,o,a){for(var s=o.key,l=r;null!==l;){if(l.key===s){var u=o.type;if(u===q){if(7===l.tag){n(e,l.sibling);var c=i(l,o.props.children);return c.return=e,c._debugSource=o._source,c._debugOwner=o._owner,c}}else if(l.elementType===u||fZ(l,o)||"object"==typeof u&&null!==u&&u.$$typeof===Z&&lr(u)===l.type){n(e,l.sibling);var d=i(l,o.props);return d.ref=le(e,l,o),d.return=e,d._debugSource=o._source,d._debugOwner=o._owner,d}n(e,l);break}t(e,l),l=l.sibling}if(o.type===q){var f=f4(o.props.children,e.mode,a,o.key);return f.return=e,f}var h=f6(o,e.mode,a);return h.ref=le(e,r,o),h.return=e,h}(u,c,d,g));case U:return a(function(e,r,o,a){for(var s=o.key,l=r;null!==l;){if(l.key===s){if(4===l.tag&&l.stateNode.containerInfo===o.containerInfo&&l.stateNode.implementation===o.implementation){n(e,l.sibling);var u=i(l,o.children||[]);return u.return=e,u}n(e,l);break}t(e,l),l=l.sibling}var c=f7(o,e.mode,a);return c.return=e,c}(u,c,d,g));case Z:var v=d._payload;return s(u,c,(0,d._init)(v),g)}if(eX(d))return function(i,a,s,l){for(var u=null,c=0;c<s.length;c++)u=m(s[c],u,i);for(var d=null,g=null,v=a,b=0,y=0,A=null;null!==v&&y<s.length;y++){v.index>y?(A=v,v=null):A=v.sibling;var w=h(i,v,s[y],l);if(null===w){null===v&&(v=A);break}e&&v&&null===w.alternate&&t(i,v),b=o(w,b,y),null===g?d=w:g.sibling=w,g=w,v=A}if(y===s.length)return n(i,v),a$&&aj(i,y),d;if(null===v){for(;y<s.length;y++){var _=f(i,s[y],l);null!==_&&(b=o(_,b,y),null===g?d=_:g.sibling=_,g=_)}return a$&&aj(i,y),d}for(var E=r(0,v);y<s.length;y++){var S=p(E,i,y,s[y],l);null!==S&&(e&&null!==S.alternate&&E.delete(null===S.key?y:S.key),b=o(S,b,y),null===g?d=S:g.sibling=S,g=S)}return e&&E.forEach(function(e){return t(i,e)}),a$&&aj(i,y),d}(u,c,d,g);if(ee(d))return function(i,a,s,u){var c=ee(s);if("function"!=typeof c)throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");"function"==typeof Symbol&&"Generator"===s[Symbol.toStringTag]&&(s0||l("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),s0=!0),s.entries===c&&(sX||l("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),sX=!0);var d=c.call(s);if(d)for(var g=null,v=d.next();!v.done;v=d.next())g=m(v.value,g,i);var b=c.call(s);if(null==b)throw Error("An iterable object provided no iterator.");for(var y=null,A=null,w=a,_=0,E=0,S=null,k=b.next();null!==w&&!k.done;E++,k=b.next()){w.index>E?(S=w,w=null):S=w.sibling;var M=h(i,w,k.value,u);if(null===M){null===w&&(w=S);break}e&&w&&null===M.alternate&&t(i,w),_=o(M,_,E),null===A?y=M:A.sibling=M,A=M,w=S}if(k.done)return n(i,w),a$&&aj(i,E),y;if(null===w){for(;!k.done;E++,k=b.next()){var C=f(i,k.value,u);null!==C&&(_=o(C,_,E),null===A?y=C:A.sibling=C,A=C)}return a$&&aj(i,E),y}for(var x=r(0,w);!k.done;E++,k=b.next()){var R=p(x,i,E,k.value,u);null!==R&&(e&&null!==R.alternate&&x.delete(null===R.key?E:R.key),_=o(R,_,E),null===A?y=R:A.sibling=R,A=R)}return e&&x.forEach(function(e){return t(i,e)}),a$&&aj(i,E),y}(u,c,d,g);lt(0,d)}return"string"==typeof d&&""!==d||"number"==typeof d?a(function(e,t,r,o){if(null!==t&&6===t.tag){n(e,t.sibling);var a=i(t,r);return a.return=e,a}n(e,t);var s=f5(r,e.mode,o);return s.return=e,s}(u,c,""+d,g)):("function"==typeof d&&ln(u),n(u,c))}}sX=!1,s0=!1,s1={},s2={},s3={},lE=function(e,t){if(null!==e&&"object"==typeof e&&e._store&&!e._store.validated&&null==e.key){if("object"!=typeof e._store)throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var n=ew(t)||"Component";s2[n]||(s2[n]=!0,l('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};var lo=li(!0),la=li(!1),ls={},ll=aa(ls),lu=aa(ls),lc=aa(ls);function ld(e){if(e===ls)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function lf(){return ld(lc.current)}function lh(e,t){al(lc,t,e),al(lu,e,e),al(ll,ls,e);var n=function(e){var t,n,r=e.nodeType;switch(r){case 9:case 11:t=9===r?"#document":"#fragment";var i=e.documentElement;n=i?i.namespaceURI:tr(null,"");break;default:var o=8===r?e.parentNode:e;n=tr(o.namespaceURI||null,t=o.tagName)}var a=t.toLowerCase();return{namespace:n,ancestorInfo:oR(null,a)}}(t);as(ll,e),al(ll,n,e)}function lp(e){as(ll,e),as(lu,e),as(lc,e)}function lm(){return ld(ll.current)}function lg(e){ld(lc.current);var t,n=ld(ll.current),r=(t=e.type,{namespace:tr(n.namespace,t),ancestorInfo:oR(n.ancestorInfo,t)});n!==r&&(al(lu,e,e),al(ll,r,e))}function lv(e){lu.current===e&&(as(ll,e),as(lu,e))}var lb=aa(0);function ly(e,t){al(lb,t,e)}function lA(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n){var r=n.dehydrated;if(null===r||o$(r)||oW(r))return t}}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if((128&t.flags)!=0)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var lw=[];function l_(){for(var e=0;e<lw.length;e++)lw[e]._workInProgressVersionPrimary=null;lw.length=0}var lE,lS,lk,lM=o.ReactCurrentDispatcher,lC=o.ReactCurrentBatchConfig;lS=new Set;var lx=0,lR=null,lI=null,lT=null,lO=!1,lP=!1,lL=0,lN=0,lD=null,lB=null,lj=-1,lF=!1;function lz(){var e=lD;null===lB?lB=[e]:lB.push(e)}function lU(){var e=lD;null!==lB&&lB[++lj]!==e&&function(e){var t=ew(lR);if(!lS.has(t)&&(lS.add(t),null!==lB)){for(var n="",r=0;r<=lj;r++){for(var i=lB[r],o=r===lj?e:i,a=r+1+". "+i;a.length<30;)a+=" ";n+=a+=o+"\n"}l("React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n   Previous render            Next render\n   ------------------------------------------------------\n%s   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",t,n)}}(e)}function lq(e){null==e||eX(e)||l("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",lD,typeof e)}function lK(){throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.")}function lH(e,t){if(lF)return!1;if(null===t)return l("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",lD),!1;e.length!==t.length&&l("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",lD,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!iM(e[n],t[n]))return!1;return!0}function lV(e,t,n,r,i,o){lx=o,lR=t,lB=null!==e?e._debugHookTypes:null,lj=-1,lF=null!==e&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=0,null!==e&&null!==e.memoizedState?lM.current=uB:lM.current=null!==lB?uD:uN;var a=n(r,i);if(lP){var s=0;do{if(lP=!1,lL=0,s>=25)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");s+=1,lF=!1,lI=null,lT=null,t.updateQueue=null,lj=-1,lM.current=uj,a=n(r,i)}while(lP)}lM.current=uL,t._debugHookTypes=lB;var u=null!==lI&&null!==lI.next;if(lx=0,lR=null,lI=null,lT=null,lD=null,lB=null,lj=-1,null!==e&&(14680064&e.flags)!=(14680064&t.flags)&&(1&e.mode)!=0&&l("Internal React error: Expected static flag was missing. Please notify the React team."),lO=!1,u)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return a}function l$(){var e=0!==lL;return lL=0,e}function lW(e,t,n){t.updateQueue=e.updateQueue,(16&t.mode)!=0?t.flags&=-50333701:t.flags&=-2053,e.lanes=e.lanes&~n}function lY(){if(lM.current=uL,lO){for(var e=lR.memoizedState;null!==e;){var t=e.queue;
6null!==t&&(t.pending=null),e=e.next}lO=!1}lx=0,lR=null,lI=null,lT=null,lB=null,lj=-1,lD=null,uM=!1,lP=!1,lL=0}function lG(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===lT?lR.memoizedState=lT=e:lT=lT.next=e,lT}function lQ(){var e,t;if(null===lI){var n=lR.alternate;e=null!==n?n.memoizedState:null}else e=lI.next;if(null!==(t=null===lT?lR.memoizedState:lT.next))t=(lT=t).next,lI=e;else{if(null===e)throw Error("Rendered more hooks than during the previous render.");var r={memoizedState:(lI=e).memoizedState,baseState:lI.baseState,baseQueue:lI.baseQueue,queue:lI.queue,next:null};null===lT?lR.memoizedState=lT=r:lT=lT.next=r}return lT}function lZ(e,t){return"function"==typeof t?t(e):t}function lJ(e,t,n){var r,i=lG();r=void 0!==n?n(t):t,i.memoizedState=i.baseState=r;var o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};i.queue=o;var a=o.dispatch=uR.bind(null,lR,o);return[i.memoizedState,a]}function lX(e,t,n){var r=lQ(),i=r.queue;if(null===i)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");i.lastRenderedReducer=e;var o=lI,a=o.baseQueue,s=i.pending;if(null!==s){if(null!==a){var u=a.next,c=s.next;a.next=c,s.next=u}o.baseQueue!==a&&l("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),o.baseQueue=a=s,i.pending=null}if(null!==a){var d=a.next,f=o.baseState,h=null,p=null,m=null,g=d;do{var v=g.lane;if((lx&v)===v){if(null!==m){var b={lane:0,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null};m=m.next=b}f=g.hasEagerState?g.eagerState:e(f,g.action)}else{var y={lane:v,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null};null===m?(p=m=y,h=f):m=m.next=y,lR.lanes=lR.lanes|v,dq|=v}g=g.next}while(null!==g&&g!==d);null===m?h=f:m.next=p,iM(f,r.memoizedState)||(cd=!0),r.memoizedState=f,r.baseState=h,r.baseQueue=m,i.lastRenderedState=f}var A=i.interleaved;if(null!==A){var w=A;do{var _=w.lane;lR.lanes=lR.lanes|_,dq|=_,w=w.next}while(w!==A)}else null===a&&(i.lanes=0);var E=i.dispatch;return[r.memoizedState,E]}function l0(e,t,n){var r=lQ(),i=r.queue;if(null===i)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");i.lastRenderedReducer=e;var o=i.dispatch,a=i.pending,s=r.memoizedState;if(null!==a){i.pending=null;var l=a.next,u=l;do s=e(s,u.action),u=u.next;while(u!==l);iM(s,r.memoizedState)||(cd=!0),r.memoizedState=s,null===r.baseQueue&&(r.baseState=s),i.lastRenderedState=s}return[s,o]}function l1(e,t,n){var r,i=lR,o=lG();if(a$){if(void 0===n)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");r=n(),lk||r!==n()&&(l("The result of getServerSnapshot should be cached to avoid an infinite loop"),lk=!0)}else{if(r=t(),!lk&&(iM(r,t())||(l("The result of getSnapshot should be cached to avoid an infinite loop"),lk=!0)),null===dN)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(30&lx)!=0||l3(i,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,ui(l4.bind(null,i,a,e),[e]),i.flags|=2048,l9(9,l6.bind(null,i,a,r,t),void 0,null),r}function l2(e,t,n){var r=lR,i=lQ(),o=t();!lk&&(iM(o,t())||(l("The result of getSnapshot should be cached to avoid an infinite loop"),lk=!0));var a=!iM(i.memoizedState,o);a&&(i.memoizedState=o,cd=!0);var s=i.queue;if(uo(l4.bind(null,r,s,e),[e]),s.getSnapshot!==t||a||null!==lT&&1&lT.memoizedState.tag){if(r.flags|=2048,l9(9,l6.bind(null,r,s,o,t),void 0,null),null===dN)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(30&lx)!=0||l3(r,t,o)}return o}function l3(e,t,n){e.flags|=16384;var r={getSnapshot:t,value:n},i=lR.updateQueue;if(null===i)i={lastEffect:null,stores:null},lR.updateQueue=i,i.stores=[r];else{var o=i.stores;null===o?i.stores=[r]:o.push(r)}}function l6(e,t,n,r){t.value=n,t.getSnapshot=r,l8(t)&&l5(e)}function l4(e,t,n){return n(function(){l8(t)&&l5(e)})}function l8(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!iM(n,r)}catch(e){return!0}}function l5(e){var t=sC(e,1);null!==t&&fa(t,e,1,-1)}function l7(e){var t=lG();"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:lZ,lastRenderedState:e};t.queue=n;var r=n.dispatch=uI.bind(null,lR,n);return[t.memoizedState,r]}function l9(e,t,n,r){var i={tag:e,create:t,destroy:n,deps:r,next:null},o=lR.updateQueue;if(null===o)o={lastEffect:null,stores:null},lR.updateQueue=o,o.lastEffect=i.next=i;else{var a=o.lastEffect;if(null===a)o.lastEffect=i.next=i;else{var s=a.next;a.next=i,i.next=s,o.lastEffect=i}}return i}function ue(e){var t={current:e};return lG().memoizedState=t,t}function ut(e){return lQ().memoizedState}function un(e,t,n,r){var i=lG();lR.flags|=e,i.memoizedState=l9(1|t,n,void 0,void 0===r?null:r)}function ur(e,t,n,r){var i=lQ(),o=void 0===r?null:r,a=void 0;if(null!==lI){var s=lI.memoizedState;if(a=s.destroy,null!==o&&lH(o,s.deps))return void(i.memoizedState=l9(t,n,a,o))}lR.flags|=e,i.memoizedState=l9(1|t,n,a,o)}function ui(e,t){return(16&lR.mode)!=0?un(41945088,8,e,t):un(8390656,8,e,t)}function uo(e,t){return ur(2048,8,e,t)}function ua(e,t){return un(4,2,e,t)}function us(e,t){return ur(4,2,e,t)}function ul(e,t){var n;return n=4194308,(16&lR.mode)!=0&&(n|=16777216),un(n,4,e,t)}function uu(e,t){return ur(4,4,e,t)}function uc(e,t){if("function"==typeof t)return t(e()),function(){t(null)};if(null!=t){t.hasOwnProperty("current")||l("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}");var n=e();return t.current=n,function(){t.current=null}}}function ud(e,t,n){"function"!=typeof t&&l("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r,i=null!=n?n.concat([e]):null;return r=4194308,(16&lR.mode)!=0&&(r|=16777216),un(r,4,uc.bind(null,t,e),i)}function uf(e,t,n){"function"!=typeof t&&l("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null;return ur(4,4,uc.bind(null,t,e),r)}var uh=function(e,t){};function up(e,t){return lG().memoizedState=[e,void 0===t?null:t],e}function um(e,t){var n=lQ(),r=void 0===t?null:t,i=n.memoizedState;return null!==i&&null!==r&&lH(r,i[1])?i[0]:(n.memoizedState=[e,r],e)}function ug(e,t){var n=lG(),r=e();return n.memoizedState=[r,void 0===t?null:t],r}function uv(e,t){var n=lQ(),r=void 0===t?null:t,i=n.memoizedState;if(null!==i&&null!==r&&lH(r,i[1]))return i[0];var o=e();return n.memoizedState=[o,r],o}function ub(e){return lG().memoizedState=e,e}function uy(e){return uw(lQ(),lI.memoizedState,e)}function uA(e){var t=lQ();return null===lI?(t.memoizedState=e,e):uw(t,lI.memoizedState,e)}
6function uw(e,t,n){if((21&lx)!=0){if(!iM(n,t)){var r=nJ();lR.lanes=lR.lanes|r,dq|=r,e.baseState=!0}return t}return e.baseState&&(e.baseState=!1,cd=!0),e.memoizedState=n,n}function u_(e,t,n){var r=rn;rn=0!==r&&r<4?r:4,e(!0);var i=lC.transition;lC.transition={};var o=lC.transition;lC.transition._updatedFibers=new Set;try{e(!1),t()}finally{rn=r,lC.transition=i,null===i&&o._updatedFibers&&(o._updatedFibers.size>10&&s("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),o._updatedFibers.clear())}}function uE(){var e=l7(!1),t=e[0],n=e[1],r=u_.bind(null,n);return lG().memoizedState=r,[t,r]}function uS(){return[lX(lZ)[0],lQ().memoizedState]}function uk(){return[l0(lZ)[0],lQ().memoizedState]}var uM=!1;function uC(){var e,t=lG(),n=dN.identifierPrefix;if(a$){e=":"+n+"R"+(r=aB,(aD&~(1<<aU(aD)-1)).toString(32)+r);var r,i=lL++;i>0&&(e+="H"+i.toString(32)),e+=":"}else e=":"+n+"r"+(lN++).toString(32)+":";return t.memoizedState=e,e}function ux(){return lQ().memoizedState}function uR(e,t,n){"function"==typeof arguments[3]&&l("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var r=fo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(uT(e))uO(t,i);else{var o=sM(e,t,i,r);null!==o&&(fa(o,e,r,fi()),uP(o,t,r))}nF(e,r)}function uI(e,t,n){"function"==typeof arguments[3]&&l("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var r=fo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(uT(e))uO(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)){var a,s=t.lastRenderedReducer;if(null!==s){a=lM.current,lM.current=uz;try{var u,c=t.lastRenderedState,d=s(c,n);if(i.hasEagerState=!0,i.eagerState=d,iM(d,c))return void(u=t.interleaved,null===u?(i.next=i,sk(t)):(i.next=u.next,u.next=i),t.interleaved=i)}catch(e){}finally{lM.current=a}}}var f=sM(e,t,i,r);null!==f&&(fa(f,e,r,fi()),uP(f,t,r))}nF(e,r)}function uT(e){var t=e.alternate;return e===lR||null!==t&&t===lR}function uO(e,t){lP=lO=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function uP(e,t,n){if(nZ(n)){var r=t.lanes,i=(r&=e.pendingLanes)|n;t.lanes=i,n6(e,i)}}var uL={readContext:sE,useCallback:lK,useContext:lK,useEffect:lK,useImperativeHandle:lK,useInsertionEffect:lK,useLayoutEffect:lK,useMemo:lK,useReducer:lK,useRef:lK,useState:lK,useDebugValue:lK,useDeferredValue:lK,useTransition:lK,useMutableSource:lK,useSyncExternalStore:lK,useId:lK,unstable_isNewReconciler:!1},uN=null,uD=null,uB=null,uj=null,uF=null,uz=null,uU=null,uq=function(){l("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},uK=function(){l("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};uN={readContext:function(e){return sE(e)},useCallback:function(e,t){return lD="useCallback",lz(),lq(t),up(e,t)},useContext:function(e){return lD="useContext",lz(),sE(e)},useEffect:function(e,t){return lD="useEffect",lz(),lq(t),ui(e,t)},useImperativeHandle:function(e,t,n){return lD="useImperativeHandle",lz(),lq(n),ud(e,t,n)},useInsertionEffect:function(e,t){return lD="useInsertionEffect",lz(),lq(t),ua(e,t)},useLayoutEffect:function(e,t){return lD="useLayoutEffect",lz(),lq(t),ul(e,t)},useMemo:function(e,t){lD="useMemo",lz(),lq(t);var n=lM.current;lM.current=uF;try{return ug(e,t)}finally{lM.current=n}},useReducer:function(e,t,n){lD="useReducer",lz();var r=lM.current;lM.current=uF;try{return lJ(e,t,n)}finally{lM.current=r}}
vendor: 5,105 bytes, line 6
6,useRef:function(e){return lD="useRef",lz(),ue(e)},useState:function(e){lD="useState",lz();var t=lM.current;lM.current=uF;try{return l7(e)}finally{lM.current=t}},useDebugValue:function(e,t){lD="useDebugValue",lz()},useDeferredValue:function(e){return lD="useDeferredValue",lz(),ub(e)},useTransition:function(){return lD="useTransition",lz(),uE()},useMutableSource:function(e,t,n){lD="useMutableSource",lz()},useSyncExternalStore:function(e,t,n){return lD="useSyncExternalStore",lz(),l1(e,t,n)},useId:function(){return lD="useId",lz(),uC()},unstable_isNewReconciler:!1},uD={readContext:function(e){return sE(e)},useCallback:function(e,t){return lD="useCallback",lU(),up(e,t)},useContext:function(e){return lD="useContext",lU(),sE(e)},useEffect:function(e,t){return lD="useEffect",lU(),ui(e,t)},useImperativeHandle:function(e,t,n){return lD="useImperativeHandle",lU(),ud(e,t,n)},useInsertionEffect:function(e,t){return lD="useInsertionEffect",lU(),ua(e,t)},useLayoutEffect:function(e,t){return lD="useLayoutEffect",lU(),ul(e,t)},useMemo:function(e,t){lD="useMemo",lU();var n=lM.current;lM.current=uF;try{return ug(e,t)}finally{lM.current=n}},useReducer:function(e,t,n){lD="useReducer",lU();var r=lM.current;lM.current=uF;try{return lJ(e,t,n)}finally{lM.current=r}},useRef:function(e){return lD="useRef",lU(),ue(e)},useState:function(e){lD="useState",lU();var t=lM.current;lM.current=uF;try{return l7(e)}finally{lM.current=t}},useDebugValue:function(e,t){lD="useDebugValue",lU()},useDeferredValue:function(e){return lD="useDeferredValue",lU(),ub(e)},useTransition:function(){return lD="useTransition",lU(),uE()},useMutableSource:function(e,t,n){lD="useMutableSource",lU()},useSyncExternalStore:function(e,t,n){return lD="useSyncExternalStore",lU(),l1(e,t,n)},useId:function(){return lD="useId",lU(),uC()},unstable_isNewReconciler:!1},uB={readContext:function(e){return sE(e)},useCallback:function(e,t){return lD="useCallback",lU(),um(e,t)},useContext:function(e){return lD="useContext",lU(),sE(e)},useEffect:function(e,t){return lD="useEffect",lU(),uo(e,t)},useImperativeHandle:function(e,t,n){return lD="useImperativeHandle",lU(),uf(e,t,n)},useInsertionEffect:function(e,t){return lD="useInsertionEffect",lU(),us(e,t)},useLayoutEffect:function(e,t){return lD="useLayoutEffect",lU(),uu(e,t)},useMemo:function(e,t){lD="useMemo",lU();var n=lM.current;lM.current=uz;try{return uv(e,t)}finally{lM.current=n}},useReducer:function(e,t,n){lD="useReducer",lU();var r=lM.current;lM.current=uz;try{return lX(e)}finally{lM.current=r}},useRef:function(e){return lD="useRef",lU(),ut()},useState:function(e){lD="useState",lU();var t=lM.current;lM.current=uz;try{return lX(lZ)}finally{lM.current=t}},useDebugValue:function(e,t){return lD="useDebugValue",lU(),uh()},useDeferredValue:function(e){return lD="useDeferredValue",lU(),uy(e)},useTransition:function(){return lD="useTransition",lU(),uS()},useMutableSource:function(e,t,n){lD="useMutableSource",lU()},useSyncExternalStore:function(e,t,n){return lD="useSyncExternalStore",lU(),l2(e,t)},useId:function(){return lD="useId",lU(),ux()},unstable_isNewReconciler:!1},uj={readContext:function(e){return sE(e)},useCallback:function(e,t){return lD="useCallback",lU(),um(e,t)},useContext:function(e){return lD="useContext",lU(),sE(e)},useEffect:function(e,t){return lD="useEffect",lU(),uo(e,t)},useImperativeHandle:function(e,t,n){return lD="useImperativeHandle",lU(),uf(e,t,n)},useInsertionEffect:function(e,t){return lD="useInsertionEffect",lU(),us(e,t)},useLayoutEffect:function(e,t){return lD="useLayoutEffect",lU(),uu(e,t)},useMemo:function(e,t){lD="useMemo",lU();var n=lM.current;lM.current=uU;try{return uv(e,t)}finally{lM.current=n}},useReducer:function(e,t,n){lD="useReducer",lU();var r=lM.current;lM.current=uU;try{return l0(e)}finally{lM.current=r}},useRef:function(e){return lD="useRef",lU(),ut()},useState:function(e){lD="useState",lU();var t=lM.current;lM.current=uU;try{return l0(lZ)}finally{lM.current=t}},useDebugValue:function(e,t){return lD="useDebugValue",lU(),uh()},useDeferredValue:function(e){return lD="useDeferredValue",lU(),uA(e)},useTransition:function(){return lD="useTransition",lU(),uk()},useMutableSource:function(e,t,n){lD="useMutableSource",lU()},useSyncExternalStore:function(e,t,n){return lD="useSyncExternalStore",lU(),l2(e,t)},useId:function(){return lD="useId",lU(),ux()},unstable_isNewReconciler:!1},uF={readContext:function(e){return uq(),sE(e)},useCallback:function(e,t){return lD="useCallback",uK(),lz(),up(e,t)},useContext:function(e){return lD="useContext",uK(),lz(),sE(e)},useEffect:function(e,t){return lD="useEffect",uK(),lz(),ui(e,t)},useImperativeHandle:function(e,t,n){return lD="useImperativeHandle",uK(),lz(),ud(e,t,n)},useInsertionEffect:function(e,t){return lD="useInsertionEffect",uK(),lz(),ua(e,t)},useLayoutEffect:function(e,t){return lD="useLayoutEffect",uK(),lz(),ul(e,t)},useMemo:function(e,t){lD="useMemo",uK(),lz();var n=lM.current;lM.current=uF;try{return ug(e,t)}finally{lM.current=n}},useReducer:function(e,t,n){lD="useReducer",uK(),lz();var r=lM.current;lM.current=uF;try{return lJ(e,t,n)}finally{lM.current=r}}
6,useRef:function(e){return lD="useRef",uK(),lz(),ue(e)},useState:function(e){lD="useState",uK(),lz();var t=lM.current;lM.current=uF;try{return l7(e)}finally{lM.current=t}},useDebugValue:function(e,t){lD="useDebugValue",uK(),lz()},useDeferredValue:function(e){return lD="useDeferredValue",uK(),lz(),ub(e)},useTransition:function(){return lD="useTransition",uK(),lz(),uE()},useMutableSource:function(e,t,n){lD="useMutableSource",uK(),lz()},useSyncExternalStore:function(e,t,n){return lD="useSyncExternalStore",uK(),lz(),l1(e,t,n)},useId:function(){return lD="useId",uK(),lz(),uC()},unstable_isNewReconciler:!1},uz={readContext:function(e){return uq(),sE(e)},useCallback:function(e,t){return lD="useCallback",uK(),lU(),um(e,t)},useContext:function(e){return lD="useContext",uK(),lU(),sE(e)},useEffect:function(e,t){return lD="useEffect",uK(),lU(),uo(e,t)},useImperativeHandle:function(e,t,n){return lD="useImperativeHandle",uK(),lU(),uf(e,t,n)},useInsertionEffect:function(e,t){return lD="useInsertionEffect",uK(),lU(),us(e,t)},useLayoutEffect:function(e,t){return lD="useLayoutEffect",uK(),lU(),uu(e,t)},useMemo:function(e,t){lD="useMemo",uK(),lU();var n=lM.current;lM.current=uz;try{return uv(e,t)}finally{lM.current=n}},useReducer:function(e,t,n){lD="useReducer",uK(),lU();var r=lM.current;lM.current=uz;try{return lX(e)}finally{lM.current=r}},useRef:function(e){return lD="useRef",uK(),lU(),ut()},useState:function(e){lD="useState",uK(),lU();var t=lM.current;lM.current=uz;try{return lX(lZ)}finally{lM.current=t}},useDebugValue:function(e,t){return lD="useDebugValue",uK(),lU(),uh()},useDeferredValue:function(e){return lD="useDeferredValue",uK(),lU(),uy(e)},useTransition:function(){return lD="useTransition",uK(),lU(),uS()},useMutableSource:function(e,t,n){lD="useMutableSource",uK(),lU()},useSyncExternalStore:function(e,t,n){return lD="useSyncExternalStore",uK(),lU(),l2(e,t)},useId:function(){return lD="useId",uK(),lU(),ux()},unstable_isNewReconciler:!1},uU={readContext:function(e){return uq(),sE(e)},useCallback:function(e,t){return lD="useCallback",uK(),lU(),um(e,t)},useContext:function(e){return lD="useContext",uK(),lU(),sE(e)},useEffect:function(e,t){return lD="useEffect",uK(),lU(),uo(e,t)},useImperativeHandle:function(e,t,n){return lD="useImperativeHandle",uK(),lU(),uf(e,t,n)},useInsertionEffect:function(e,t){return lD="useInsertionEffect",uK(),lU(),us(e,t)},useLayoutEffect:function(e,t){return lD="useLayoutEffect",uK(),lU(),uu(e,t)},useMemo:function(e,t){lD="useMemo",uK(),lU();var n=lM.current;lM.current=uz;try{return uv(e,t)}finally{lM.current=n}},useReducer:function(e,t,n){lD="useReducer",uK(),lU();var r=lM.current;lM.current=uz;try{return l0(e)}finally{lM.current=r}},useRef:function(e){return lD="useRef",uK(),lU(),ut()},useState:function(e){lD="useState",uK(),lU();var t=lM.current;lM.current=uz;try{return l0(lZ)}finally{lM.current=t}},useDebugValue:function(e,t){return lD="useDebugValue",uK(),lU(),uh()},useDeferredValue:function(e){return lD="useDeferredValue",uK(),lU(),uA(e)},useTransition:function(){return lD="useTransition",uK(),lU(),uk()},useMutableSource:function(e,t,n){lD="useMutableSource",uK(),lU()},useSyncExternalStore:function(e,t,n){return lD="useSyncExternalStore",uK(),lU(),l2(e,t)},useId:function(){return lD="useId",uK(),lU(),ux()},unstable_isNewReconciler:!1};var uH=i.unstable_now,uV=0,u$=-1,uW=-1,uY=-1,uG=!1,uQ=!1;function uZ(e){uW=uH(),e.actualStartTime<0&&(e.actualStartTime=uH())}function uJ(e,t){if(uW>=0){var n=uH()-uW;e.actualDuration+=n,t&&(e.selfBaseDuration=n),uW=-1}}function uX(e){if(u$>=0){var t=uH()-u$;u$=-1;for(var n=e.return;null!==n;){switch(n.tag){case 3:case 12:return void(n.stateNode.effectDuration+=t)}n=n.return}}}function u0(e){if(uY>=0){var t=uH()-uY;uY=-1;for(var n=e.return;null!==n;){switch(n.tag){case 3:var r=n.stateNode;return void(null!==r&&(r.passiveEffectDuration+=t));case 12:var i=n.stateNode;return void(null!==i&&(i.passiveEffectDuration+=t))}n=n.return}}}function u1(){u$=uH()}function u2(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function u3(e,t){return{value:e,source:t,stack:ev(t),digest:null}}function u6(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function u4(e,t){try{var n=t.value,r=t.source,i=t.stack;
6if(null!=n&&n._suppressLogging){if(1===e.tag)return;console.error(n)}var o=r?ew(r):null,a=(o?"The above error occurred in the <"+o+"> component:":"The above error occurred in one of your React components:")+"\n"+(null!==i?i:"")+"\n\n"+(3===e.tag?"Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://reactjs.org/link/error-boundaries to learn more about error boundaries.":"React will try to recreate this component tree from scratch using the error boundary you provided, "+(ew(e)||"Anonymous")+".");console.error(a)}catch(e){setTimeout(function(){throw e})}}var u8="function"==typeof WeakMap?WeakMap:Map;function u5(e,t,n){var r=sP(-1,n);r.tag=3,r.payload={element:null};var i=t.value;return r.callback=function(){fx(i),u4(e,t)},r}function u7(e,t,n){var r=sP(-1,n);r.tag=3;var i=e.type.getDerivedStateFromError;if("function"==typeof i){var o=t.value;r.payload=function(){return i(o)},r.callback=function(){fJ(e),u4(e,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(r.callback=function(){fJ(e),u4(e,t),"function"!=typeof i&&(null===dX?dX=new Set([this]):dX.add(this));var n=t.value,r=t.stack;this.componentDidCatch(n,{componentStack:null!==r?r:""}),"function"!=typeof i&&((1&e.lanes)!=0||l("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",ew(e)||"Unknown"))}),r}function u9(e,t,n){var r,i=e.pingCache;if(null===i?(i=e.pingCache=new u8,r=new Set,i.set(t,r)):void 0===(r=i.get(t))&&(r=new Set,i.set(t,r)),!r.has(n)){r.add(n);var o=fT.bind(null,e,t,n);nx&&fq(e,n),t.then(o,o)}}function ce(e){var t=e;do{if(13===t.tag&&function(e,t){var n=e.memoizedState;return null!==n?null!==n.dehydrated:(e.memoizedProps,!0)}(t))return t;t=t.return}while(null!==t);return null}function ct(e,t,n,r,i){if((1&e.mode)==0){if(e===t)e.flags|=65536;else{if(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag){if(null===n.alternate)n.tag=17;else{var o=sP(-1,1);o.tag=2,sL(n,o,1)}}n.lanes=1|n.lanes}return e}return e.flags|=65536,e.lanes=i,e}var cn,cr,ci,co,ca,cs,cl,cu,cc=o.ReactCurrentOwner,cd=!1;function cf(e,t,n,r){t.child=null===e?la(t,null,n,r):lo(t,e.child,n,r)}function ch(e,t,n,r,i){if(t.type!==t.elementType){var o=n.propTypes;o&&at(o,r,"prop",ey(n))}var a,s,l=n.render,u=t.ref;if(s_(t,i),nP(t),cc.current=t,eS=!0,a=lV(e,t,l,r,u,i),s=l$(),8&t.mode){nR(!0);try{a=lV(e,t,l,r,u,i),s=l$()}finally{nR(!1)}}return eS=!1,nL(),null===e||cd?(a$&&s&&az(t),t.flags|=1,cf(e,t,a,i),t.child):(lW(e,t,i),cU(e,t,i))}function cp(e,t,n,r,i){if(null===e){var o,a=n.type;if("function"==typeof a&&!f1(a)&&void 0===a.defaultProps&&null===n.compare&&void 0===n.defaultProps)return o=fG(a),t.tag=15,t.type=o,cE(t,a),cm(e,t,o,r,i);var s=a.propTypes;s&&at(s,r,"prop",ey(a));var l=f3(n.type,null,r,t,t.mode,i);return l.ref=t.ref,l.return=t,t.child=l,l}var u=n.type,c=u.propTypes;c&&at(c,r,"prop",ey(u));var d=e.child;if(!cq(e,i)){var f=d.memoizedProps,h=n.compare;if((h=null!==h?h:iC)(f,r)&&e.ref===t.ref)return cU(e,t,i)}t.flags|=1;var p=f2(d,r);return p.ref=t.ref,p.return=t,t.child=p,p}function cm(e,t,n,r,i){if(t.type!==t.elementType){var o=t.elementType;if(o.$$typeof===Z){var a=o,s=a._payload,l=a._init;try{o=l(s)}catch(e){o=null}var u=o&&o.propTypes;u&&at(u,r,"prop",ey(o))}}if(null!==e){var c=e.memoizedProps;if(iC(c,r)&&e.ref===t.ref&&t.type===e.type){if(cd=!1,t.pendingProps=r=c,!cq(e,i))return t.lanes=e.lanes,cU(e,t,i);(131072&e.flags)!=0&&(cd=!0)}}return cb(e,t,n,r,i)}function cg(e,t,n){var r,i,o=t.pendingProps,a=o.children,s=null!==e?e.memoizedState:null;if("hidden"===o.mode){if((1&t.mode)==0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},fg(t,n);else{if(!((1073741824&n)!=0)){return r=null!==s?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:r,cachePool:null,transitions:null},t.updateQueue=null,fg(t,r),null}t.memoizedState={baseLanes:0,cachePool:null,transitions:null},fg(t,null!==s?s.baseLanes:n)}}else null!==s?(i=s.baseLanes|n,t.memoizedState=null):i=n,fg(t,i);return cf(e,t,a,n),t.child}function cv(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}
6function cb(e,t,n,r,i){if(t.type!==t.elementType){var o,a,s,l=n.propTypes;l&&at(l,r,"prop",ey(n))}if(o=am(t,ah(0,n,!0)),s_(t,i),nP(t),cc.current=t,eS=!0,a=lV(e,t,n,r,o,i),s=l$(),8&t.mode){nR(!0);try{a=lV(e,t,n,r,o,i),s=l$()}finally{nR(!1)}}return eS=!1,nL(),null===e||cd?(a$&&s&&az(t),t.flags|=1,cf(e,t,a,i),t.child):(lW(e,t,i),cU(e,t,i))}function cy(e,t,n,r,i){switch(h_(t)){case!1:var o,a,s=t.stateNode,u=new t.type(t.memoizedProps,s.context).state;s.updater.enqueueSetState(s,u,null);break;case!0:t.flags|=128,t.flags|=65536;var c,d=Error("Simulated error coming from DevTools"),f=(c=i)&-c;t.lanes=t.lanes|f,sD(t,u7(t,u3(d,t),f))}if(t.type!==t.elementType){var h=n.propTypes;h&&at(h,r,"prop",ey(n))}av(n)?(o=!0,a_(t)):o=!1,s_(t,i),null===t.stateNode?(cz(e,t),s5(t,n,r),s9(t,n,r,i),a=!0):a=null===e?function(e,t,n,r){var i,o,a,s=e.stateNode,l=e.memoizedProps;s.props=l;var u=s.context,c=t.contextType,d=au;d="object"==typeof c&&null!==c?sE(c):am(e,ah(0,t,!0));var f=t.getDerivedStateFromProps,h="function"==typeof f||"function"==typeof s.getSnapshotBeforeUpdate;h||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||l===n&&u===d||s7(e,s,n,d),sI=!1;var p=e.memoizedState,m=s.state=p;if(sB(e,n,s,r),m=e.memoizedState,l===n&&p===m&&!ag()&&!sI)return"function"==typeof s.componentDidMount&&(i=4194308,(16&e.mode)!=0&&(i|=16777216),e.flags|=i),!1;"function"==typeof f&&(sJ(e,t,f,n),m=e.memoizedState);var g=sI||s4(e,t,l,n,p,m,d);return g?(h||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(o=4194308,(16&e.mode)!=0&&(o|=16777216),e.flags|=o)):("function"==typeof s.componentDidMount&&(a=4194308,(16&e.mode)!=0&&(a|=16777216),e.flags|=a),e.memoizedProps=n,e.memoizedState=m),s.props=n,s.state=m,s.context=d,g}(t,n,r,i):function(e,t,n,r,i){var o=t.stateNode;sO(e,t);var a=t.memoizedProps,s=t.type===t.elementType?a:sd(t.type,a);o.props=s;var l=t.pendingProps,u=o.context,c=n.contextType,d=au;d="object"==typeof c&&null!==c?sE(c):am(t,ah(0,n,!0));var f=n.getDerivedStateFromProps,h="function"==typeof f||"function"==typeof o.getSnapshotBeforeUpdate;h||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||a===l&&u===d||s7(t,o,r,d),sI=!1;var p=t.memoizedState,m=o.state=p;if(sB(t,r,o,i),m=t.memoizedState,a===l&&p===m&&!ag()&&!sI)return"function"==typeof o.componentDidUpdate&&(a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4)),"function"==typeof o.getSnapshotBeforeUpdate&&(a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024)),!1;"function"==typeof f&&(sJ(t,n,f,r),m=t.memoizedState);var g=sI||s4(t,n,s,r,p,m,d)||!1;return g?(h||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,m,d),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,m,d)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"==typeof o.componentDidUpdate&&(a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4)),"function"==typeof o.getSnapshotBeforeUpdate&&(a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024)),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=d,g}(e,t,n,r,i);var p=cA(e,t,n,a,o,i),m=t.stateNode;return a&&m.props!==r&&(cs||l("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ew(t)||"a component"),cs=!0),p}function cA(e,t,n,r,i,o){cv(e,t);var a,s=(128&t.flags)!=0;if(!r&&!s)return i&&aE(t,n,!1),cU(e,t,o);var l,u=t.stateNode;if(cc.current=t,s&&"function"!=typeof n.getDerivedStateFromError)l=null,uW=-1;else{if(nP(t),eS=!0,l=u.render(),8&t.mode){nR(!0);try{u.render()}finally{nR(!1)}}eS=!1,nL()}return t.flags|=1,null!==e&&s?(a=l,t.child=lo(t,e.child,null,o),t.child=lo(t,null,a,o)):cf(e,t,l,o),t.memoizedState=u.state,i&&aE(t,n,!0),t.child}function cw(e){var t=e.stateNode;t.pendingContext?aA(e,t.pendingContext,t.pendingContext!==t.context):t.context&&aA(e,t.context,!1),lh(e,t.containerInfo)}function c_(e,t,n,r,i){return a8(),a7(i),t.flags|=256,cf(e,t,n,r),t.child}function cE(e,t){if(t&&t.childContextTypes&&l("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),null!==e.ref){var n="",r=ek();r&&(n+="\n\nCheck the render method of `"+r+"`.");var i=r||"",o=e._debugSource;o&&(i=o.fileName+":"+o.lineNumber),ca[i]||(ca[i]=!0,l("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",
6n))}if("function"==typeof t.getDerivedStateFromProps){var a=ey(t)||"Unknown";co[a]||(l("%s: Function components do not support getDerivedStateFromProps.",a),co[a]=!0)}if("object"==typeof t.contextType&&null!==t.contextType){var s=ey(t)||"Unknown";ci[s]||(l("%s: Function components do not support contextType.",s),ci[s]=!0)}}cn={},cr={},ci={},co={},ca={},cs=!1,cl={},cu={};var cS={dehydrated:null,treeContext:null,retryLane:0};function ck(e){return{baseLanes:e,cachePool:null,transitions:null}}function cM(e,t,n){var r=t.pendingProps;hE(t)&&(t.flags|=128);var i=lb.current,o=!1,a=(128&t.flags)!=0;if(a||(u=i,(null===e||null!==e.memoizedState)&&0!=(2&u))?(o=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),ly(t,i&=1),null===e){a2(t);var s=t.memoizedState;if(null!==s){var u,c=s.dehydrated;if(null!==c)return(1&t.mode)==0?(l("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),t.lanes=1):oW(c)?t.lanes=8:t.lanes=1073741824,null}var d=r.children,f=r.fallback;if(o){var h,p,m,g,v,b=(m=t.mode,g=t.child,v={mode:"hidden",children:d},(1&m)==0&&null!==g?((h=g).childLanes=0,h.pendingProps=v,2&t.mode&&(h.actualDuration=0,h.actualStartTime=-1,h.selfBaseDuration=0,h.treeBaseDuration=0)):h=cx(v,m),p=f4(f,m,n,null),h.return=t,p.return=t,h.sibling=p,t.child=h,p);return t.child.memoizedState=ck(n),t.memoizedState=cS,b}return cC(t,d)}var y=e.memoizedState;if(null!==y){var A=y.dehydrated;if(null!==A)return function(e,t,n,r,i,o,a){if(n){if(256&t.flags)return t.flags&=-257,cR(e,t,a,u6(Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")));if(null!==t.memoizedState)return t.child=e.child,t.flags|=128,null;var s,u,c,d,f,h,p,m=(c=r.children,d=r.fallback,h=cx({mode:"visible",children:c},f=t.mode),p=f4(d,f,a,null),p.flags|=2,h.return=t,p.return=t,h.sibling=p,t.child=h,(1&t.mode)!=0&&lo(t,e.child,null,a),p);return t.child.memoizedState=ck(a),t.memoizedState=cS,m}if(a$&&l("We should not be hydrating here. This is a bug in React. Please file a bug."),(1&t.mode)==0)return cR(e,t,a,null);if(oW(i)){var g,v,b,y,A,w,_,E=((y=i.nextSibling&&i.nextSibling.dataset)&&(g=y.dgst,v=y.msg,b=y.stck),{message:v,digest:g,stack:b});return A=E.digest,w=E.message,_=E.stack,cR(e,t,a,u6(w?Error(w):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),A,_))}var S=(a&e.childLanes)!=0;if(cd||S){var k=dN;if(null!==k){var M=function(e,t){var n;switch(t&-t){case 4:n=2;break;case 16:n=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}return(n&(e.suspendedLanes|t))!=0?0:n}(k,a);0!==M&&M!==o.retryLane&&(o.retryLane=M,sC(e,M),fa(k,e,M,-1))}return fw(),cR(e,t,a,u6(Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")))}if(o$(i))return t.flags|=128,t.child=e.child,s=fP.bind(null,e),i._reactRetry=s,null;u=o.treeContext,aV=oY(i.nextSibling),aH=t,a$=!0,aY=null,aW=!1,null!==u&&(aK(),aP[aL++]=aD,aP[aL++]=aB,aP[aL++]=aN,aD=u.id,aB=u.overflow,aN=t);var C=cC(t,r.children);return C.flags|=4096,C}(e,t,a,r,A,y,n)}if(o){var w,_,E,S,k,M,C,x=r.fallback,R=(w=r.children,S=t.mode,M=(k=e.child).sibling,C={mode:"hidden",children:w},(1&S)==0&&t.child!==k?((_=t.child).childLanes=0,_.pendingProps=C,2&t.mode&&(_.actualDuration=0,_.actualStartTime=-1,_.selfBaseDuration=k.selfBaseDuration,_.treeBaseDuration=k.treeBaseDuration),t.deletions=null):(_=f2(k,C)).subtreeFlags=14680064&k.subtreeFlags,null!==M?E=f2(M,x):(E=f4(x,S,n,null)).flags|=2,E.return=t,_.return=t,_.sibling=E,t.child=_,E),I=t.child,T=e.child.memoizedState;return I.memoizedState=null===T?ck(n):{baseLanes:T.baseLanes|n,cachePool:null,transitions:T.transitions},I.childLanes=e.childLanes&~n,t.memoizedState=cS,R}var O=function(e,t,n,r){var i=e.child,o=i.sibling,a=f2(i,{mode:"visible",children:n});if((1&t.mode)==0&&(a.lanes=r),a.return=t,a.sibling=null,null!==o){var s=t.deletions;null===s?(t.deletions=[o],t.flags|=16):s.push(o)}return t.child=a,a}(e,t,r.children,n);return t.memoizedState=null,O}function cC(e,t,n){var r=cx({mode:"visible",children:t},e.mode);return r.return=e,e.child=r,r}function cx(e,t,n){return f8(e,t,0,null)}function cR(e,t,n,r){null!==r&&a7(r),lo(t,e.child,null,n);var i=cC(t,t.pendingProps.children);return i.flags|=2,t.memoizedState=null,i}function cI(e,t,n){e.lanes=e.lanes|t;var r=e.alternate;null!==r&&(r.lanes=r.lanes|t),sw(e.return,t,n)}function cT(e,t){var n=eX(e),r=!n&&"function"==typeof ee(e);if(n||r){var i=n?"array":"iterable";return l("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",i,t,i),!1}return!0}function cO(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function cP(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail,a=r.children;(function(e){if(void 0!==e&&"forwards"!==e&&"backwards"!==e&&"together"!==e&&!cl[e]){if(cl[e]=!0,"string"==typeof e)switch(e.toLowerCase()){case"together":case"forwards":case"backwards":l('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break;case"forward":case"backward":l('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break;default:l('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}
6else l('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}})(i),void 0===o||cu[o]||("collapsed"!==o&&"hidden"!==o?(cu[o]=!0,l('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',o)):"forwards"!==i&&"backwards"!==i&&(cu[o]=!0,l('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',o))),function(e,t){if(("forwards"===t||"backwards"===t)&&null!=e&&!1!==e){if(eX(e)){for(var n=0;n<e.length;n++)if(!cT(e[n],n))return}else{var r=ee(e);if("function"==typeof r){var i=r.call(e);if(i)for(var o=i.next(),a=0;!o.done;o=i.next()){if(!cT(o.value,a))return;a++}}else l('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}}(a,i),cf(e,t,a,n);var s=lb.current;if(0!=(2&s)?(s=1&s|2,t.flags|=128):(null!==e&&(128&e.flags)!=0&&function(e,t,n){for(var r=t;null!==r;){if(13===r.tag)null!==r.memoizedState&&cI(r,n,e);else if(19===r.tag)cI(r,n,e);else if(null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}(t,t.child,n),s&=1),ly(t,s),(1&t.mode)==0)t.memoizedState=null;else switch(i){case"forwards":var u,c=function(e){for(var t=e,n=null;null!==t;){var r=t.alternate;null!==r&&null===lA(r)&&(n=t),t=t.sibling}return n}(t.child);null===c?(u=t.child,t.child=null):(u=c.sibling,c.sibling=null),cO(t,!1,u,c,o);break;case"backwards":var d=null,f=t.child;for(t.child=null;null!==f;){var h=f.alternate;if(null!==h&&null===lA(h)){t.child=f;break}var p=f.sibling;f.sibling=d,d=f,f=p}cO(t,!0,d,null,o);break;case"together":cO(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}var cL,cN,cD,cB,cj=!1,cF=!1;function cz(e,t){(1&t.mode)==0&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function cU(e,t,n){var r;return null!==e&&(t.dependencies=e.dependencies),uW=-1,r=t.lanes,dq|=r,(n&t.childLanes)!=0?(function(e,t){if(null!==e&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==t.child){var n=t.child,r=f2(n,n.pendingProps);for(t.child=r,r.return=t;null!==n.sibling;)n=n.sibling,(r=r.sibling=f2(n,n.pendingProps)).return=t;r.sibling=null}}(e,t),t.child):null}function cq(e,t){return(e.lanes&t)!=0}function cK(e,t,n){if(t._debugNeedsRemount&&null!==e)return function(e,t,n){var r=t.return;if(null===r)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,t===r.child)r.child=n;else{var i=r.child;if(null===i)throw Error("Expected parent to have a child.");for(;i.sibling!==t;)if(null===(i=i.sibling))throw Error("Expected to find the previous sibling.");i.sibling=n}var o=r.deletions;return null===o?(r.deletions=[e],r.flags|=16):o.push(e),n.flags|=2,n}(e,t,f3(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(null!==e){if(e.memoizedProps!==t.pendingProps||ag()||t.type!==e.type)cd=!0;else{if(!cq(e,n)&&(128&t.flags)==0)return cd=!1,function(e,t,n){switch(t.tag){case 3:cw(t),t.stateNode,a8();break;case 5:lg(t);break;case 1:av(t.type)&&a_(t);break;case 4:lh(t,t.stateNode.containerInfo);break;case 10:var r=t.memoizedProps.value;sy(t,t.type._context,r);break;case 12:(n&t.childLanes)!=0&&(t.flags|=4);var i=t.stateNode;i.effectDuration=0,i.passiveEffectDuration=0;break;case 13:var o=t.memoizedState;if(null!==o){if(null!==o.dehydrated)return ly(t,1&lb.current),t.flags|=128,null;if((n&t.child.childLanes)!=0)return cM(e,t,n);ly(t,1&lb.current);var a=cU(e,t,n);return null!==a?a.sibling:null}ly(t,1&lb.current);break;case 19:var s=(128&e.flags)!=0,l=(n&t.childLanes)!=0;if(s){if(l)return cP(e,t,n);t.flags|=128}var u=t.memoizedState;if(null!==u&&(u.rendering=null,u.tail=null,u.lastEffect=null),ly(t,lb.current),l)break;return null;case 22:case 23:return t.lanes=0,cg(e,t,n)}return cU(e,t,n)}(e,t,n);cd=(131072&e.flags)!=0}}else if(cd=!1,a$&&(aK(),(1048576&t.flags)!=0)){var r=t.index;aF(t,(aK(),aO),r)}switch(t.lanes=0,t.tag){case 2:return function(e,t,n,r){cz(e,t);var i,o,a,s=t.pendingProps;
6if(i=am(t,ah(0,n,!1)),s_(t,r),nP(t),n.prototype&&"function"==typeof n.prototype.render){var u=ey(n)||"Unknown";cn[u]||(l("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",u,u),cn[u]=!0)}if(8&t.mode&&se.recordLegacyContextWarning(t,null),eS=!0,cc.current=t,o=lV(null,t,n,s,i,r),a=l$(),eS=!1,nL(),t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){var c=ey(n)||"Unknown";cr[c]||(l("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",c,c,c),cr[c]=!0)}if("object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){var d=ey(n)||"Unknown";cr[d]||(l("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",d,d,d),cr[d]=!0),t.tag=1,t.memoizedState=null,t.updateQueue=null;var f=!1;return av(n)?(f=!0,a_(t)):f=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,sT(t),s8(t,o),s9(t,n,s,r),cA(null,t,n,!0,f,r)}if(t.tag=0,8&t.mode){nR(!0);try{o=lV(null,t,n,s,i,r),a=l$()}finally{nR(!1)}}return a$&&a&&az(t),cf(null,t,o,r),cE(t,n),t.child}(e,t,t.type,n);case 16:return function(e,t,n,r){cz(e,t);var i=t.pendingProps,o=n._payload,a=(0,n._init)(o);t.type=a;var s=t.tag=function(e){if("function"==typeof e)return f1(e)?1:0;if(null!=e){var t=e.$$typeof;if(t===W)return 11;if(t===Q)return 14}return 2}(a),l=sd(a,i);switch(s){case 0:return cE(t,a),t.type=a=fG(a),cb(null,t,a,l,r);case 1:return t.type=a=fG(a),cy(null,t,a,l,r);case 11:return t.type=a=fQ(a),ch(null,t,a,l,r);case 14:if(t.type!==t.elementType){var u=a.propTypes;u&&at(u,l,"prop",ey(a))}return cp(null,t,a,sd(a.type,l),r)}var c="";throw null!==a&&"object"==typeof a&&a.$$typeof===Z&&(c=" Did you wrap a component in React.lazy() more than once?"),Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+c)}(e,t,t.elementType,n);case 0:var i=t.type,o=t.pendingProps;return cb(e,t,i,t.elementType===i?o:sd(i,o),n);case 1:var a=t.type,s=t.pendingProps;return cy(e,t,a,t.elementType===a?s:sd(a,s),n);case 3:return function(e,t,n){if(cw(t),null===e)throw Error("Should have a current fiber. This is a bug in React.");var r=t.pendingProps,i=t.memoizedState,o=i.element;sO(e,t),sB(t,r,null,n);var a=t.memoizedState;t.stateNode;var s=a.element;if(i.isDehydrated){var l={element:s,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions};if(t.updateQueue.baseState=l,t.memoizedState=l,256&t.flags)return c_(e,t,s,n,u3(Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t));if(s!==o)return c_(e,t,s,n,u3(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t));aV=oY(t.stateNode.containerInfo.firstChild),aH=t,a$=!0,aY=null,aW=!1;var u=la(t,null,s,n);t.child=u;for(var c=u;c;)c.flags=-3&c.flags|4096,c=c.sibling}else{if(a8(),s===o)return cU(e,t,n);cf(e,t,s,n)}return t.child}(e,t,n);case 5:return lg(t),null===e&&a2(t),p=t.type,m=t.pendingProps,g=null!==e?e.memoizedProps:null,v=m.children,oF(p,m)?v=null:null!==g&&oF(p,g)&&(t.flags|=32),cv(e,t),cf(e,t,v,n),t.child;case 6:return null===e&&a2(t),null;case 13:return cM(e,t,n);case 4:return lh(t,t.stateNode.containerInfo),b=t.pendingProps,null===e?t.child=lo(t,null,b,n):cf(e,t,b,n),t.child;case 11:var u=t.type,c=t.pendingProps;return ch(e,t,u,t.elementType===u?c:sd(u,c),n);case 7:return cf(e,t,t.pendingProps,n),t.child;case 8:return cf(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,(y=t.stateNode).effectDuration=0,y.passiveEffectDuration=0,
6cf(e,t,t.pendingProps.children,n),t.child;case 10:return function(e,t,n){var r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value;"value"in i||cj||(cj=!0,l("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var s=t.type.propTypes;if(s&&at(s,i,"prop","Context.Provider"),sy(t,r,a),null!==o){if(iM(o.value,a)){if(o.children===i.children&&!ag())return cU(e,t,n)}else(function(e,t,n){var r=e.child;for(null!==r&&(r.return=e);null!==r;){var i=void 0,o=r.dependencies;if(null!==o){i=r.child;for(var a=o.firstContext;null!==a;){if(a.context===t){if(1===r.tag){var s,l=sP(-1,(s=n)&-s);l.tag=2;var u=r.updateQueue;if(null===u);else{var c=u.shared,d=c.pending;null===d?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}r.lanes=r.lanes|n;var f=r.alternate;null!==f&&(f.lanes=f.lanes|n),sw(r.return,n,e),o.lanes=o.lanes|n;break}a=a.next}}else if(10===r.tag)i=r.type===e.type?null:r.child;else if(18===r.tag){var h=r.return;if(null===h)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");h.lanes=h.lanes|n;var p=h.alternate;null!==p&&(p.lanes=p.lanes|n),sw(h,n,e),i=r.sibling}else i=r.child;if(null!==i)i.return=r;else for(i=r;null!==i;){if(i===e){i=null;break}var m=i.sibling;if(null!==m){m.return=i.return,i=m;break}i=i.return}r=i}})(t,r,n)}return cf(e,t,i.children,n),t.child}(e,t,n);case 9:return void 0===(A=t.type)._context?A!==A.Consumer&&(cF||(cF=!0,l("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):A=A._context,"function"!=typeof(w=t.pendingProps.children)&&l("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),s_(t,n),E=sE(A),nP(t),cc.current=t,eS=!0,_=w(E),eS=!1,nL(),t.flags|=1,cf(e,t,_,n),t.child;case 14:var d=t.type,f=sd(d,t.pendingProps);if(t.type!==t.elementType){var h=d.propTypes;h&&at(h,f,"prop",ey(d))}return cp(e,t,d,f=sd(d.type,f),n);case 15:return cm(e,t,t.type,t.pendingProps,n);case 17:var p,m,g,v,b,y,A,w,_,E,S,k,M=t.type,C=t.pendingProps;return S=t.elementType===M?C:sd(M,C),cz(e,t),t.tag=1,av(M)?(k=!0,a_(t)):k=!1,s_(t,n),s5(t,M,S),s9(t,M,S,n),cA(null,t,M,
6!0,k,n);case 19:return cP(e,t,n);case 21:break;case 22:return cg(e,t,n)}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function cH(e){e.flags|=4}function cV(e){e.flags|=512,e.flags|=2097152}function c$(e,t){if(!a$)switch(e.tailMode){case"hidden":for(var n=e.tail,r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":for(var i=e.tail,o=null;null!==i;)null!==i.alternate&&(o=i),i=i.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function cW(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t){if((2&e.mode)!=0){for(var i=e.selfBaseDuration,o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,i+=o.treeBaseDuration,o=o.sibling;e.treeBaseDuration=i}else for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;e.subtreeFlags|=r}else{if((2&e.mode)!=0){for(var s=e.actualDuration,l=e.selfBaseDuration,u=e.child;null!==u;)n|=u.lanes|u.childLanes,r|=u.subtreeFlags,r|=u.flags,s+=u.actualDuration,l+=u.treeBaseDuration,u=u.sibling;e.actualDuration=s,e.treeBaseDuration=l}else for(var c=e.child;null!==c;)n|=c.lanes|c.childLanes,r|=c.subtreeFlags,r|=c.flags,c.return=e,c=c.sibling;e.subtreeFlags|=r}return e.childLanes=n,t}function cY(e,t,n){var r=t.pendingProps;switch(aq(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return cW(t),null;case 1:case 17:return av(t.type)&&ab(t),cW(t),null;case 3:var i=t.stateNode;return lp(t),ay(t),l_(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(null===e||null===e.child)&&(a6(t)?cH(t):null!==e&&(e.memoizedState.isDehydrated&&(256&t.flags)==0||(t.flags|=1024,a5()))),cN(e,t),cW(t),null;case 5:lv(t);var o=lf(),a=t.type;if(null!==e&&null!=t.stateNode)cD(e,t,a,r,o),e.ref!==t.ref&&cV(t);else{if(!r){if(null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return cW(t),null}var s,u,c,f,h,p=lm();if(a6(t))c=t.stateNode,f=!aW,s=t.type,u=t.memoizedProps,c[oJ]=t,c[oX]=u,h=function(e,t,n,r,i,o,a){switch(c=tx(t,n),or(t,n),t){case"dialog":i1("cancel",e),i1("close",e);break;case"iframe":case"object":case"embed":i1("load",e);break;case"video":case"audio":for(var s=0;s<iZ.length;s++)i1(iZ[s],e);break;case"source":i1("error",e);break;case"img":case"image":case"link":i1("error",e),i1("load",e);break;case"details":i1("toggle",e);break;case"input":eK(e,n),i1("invalid",e);break;case"option":eZ(0,n);break;case"select":e6(e,n),i1("invalid",e);break;case"textarea":e5(e,n),i1("invalid",e)}tC(t,n),f=new Set;for(var l=e.attributes,u=0;u<l.length;u++)switch(l[u].name.toLowerCase()){case"value":case"checked":case"selected":break;default:f.add(l[u].name)}var c,f,h,p=null;for(var m in n)if(n.hasOwnProperty(m)){var g=n[m];if(m===op)"string"==typeof g?e.textContent!==g&&(!0!==n[of]&&oA(e.textContent,g,o,a),p=[op,g]):"number"==typeof g&&e.textContent!==""+g&&(!0!==n[of]&&oA(e.textContent,g,o,a),p=[op,""+g]);else if(d.hasOwnProperty(m))null!=g&&("function"!=typeof g&&oa(m,g),"onScroll"===m&&i1("scroll",e));else if(a&&"boolean"==typeof c){var v=void 0,b=I(m);if(!0===n[of]);else if(m===od||m===of||"value"===m||"checked"===m||"selected"===m);else if(m===oc){var A=e.innerHTML,w=g?g[og]:void 0;if(null!=w){var _=ol(e,w);_!==A&&oi(m,A,_)}}else if(m===om){if(f.delete(m),os){var E=function(e){var t="",n="";for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(null!=i){var o=0===r.indexOf("--");t+=n+(o?r:r.replace(th,"-$1").toLowerCase().replace(tp,"-ms-"))+":"+td(r,i,o),n=";"}}return t||null}(g);E!==(v=e.getAttribute("style"))&&oi(m,v,E)}}else if(c)f.delete(m.toLowerCase()),g!==(v=j(e,m,g))&&oi(m,v,g);else if(!C(m,b,c)&&!R(m,g,b,c)){var S=!1;if(null!==b)f.delete(b.attributeName),v=function(e,t,n,r){if(r.mustUseProperty)return e[r.propertyName];y(n,t),r.sanitizeURL&&B(""+n);var i=r.attributeName,o=null;if(4===r.type){if(e.hasAttribute(i)){var a=e.getAttribute(i);return""===a||(R(t,n,r,!1)?a:a===""+n?n:a)}}
6else if(e.hasAttribute(i)){if(R(t,n,r,!1))return e.getAttribute(i);if(3===r.type)return n;o=e.getAttribute(i)}return R(t,n,r,!1)?null===o?n:o:o===""+n?n:o}(e,m,g,b);else{var k=r;if(k===te&&(k=tn(t)),k===te)f.delete(m.toLowerCase());else{var M=(h=void 0,h=m.toLowerCase(),tI.hasOwnProperty(h)&&tI[h]||null);null!==M&&M!==m&&(S=!0,f.delete(M)),f.delete(m)}v=j(e,m,g)}g===v||S||oi(m,v,g)}}}switch(a&&f.size>0&&!0!==n[of]&&oo(f),t){case"input":eL(e),e$(e,n,!0);break;case"textarea":eL(e),e9(e);break;case"select":case"option":break;default:"function"==typeof n.onClick&&oE(e)}return p}(c,s,u,p.namespace,0,(1&t.mode)!=0,f),t.updateQueue=h,null!==h&&cH(t);else{var m=function(e,t,n,r,i){if(ox(e,null,r.ancestorInfo),"string"==typeof t.children||"number"==typeof t.children){var o=""+t.children,a=oR(r.ancestorInfo,e);ox(null,o,a)}var s=function(e,t,n,r){var i,o,a=ow(n),s=r;if(s===te&&(s=tn(e)),s===te){if((i=tx(e,t))||e===e.toLowerCase()||l("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),"script"===e){var u=a.createElement("div");u.innerHTML="<script></script>";var c=u.firstChild;o=u.removeChild(c)}else if("string"==typeof t.is)o=a.createElement(e,{is:t.is});else if(o=a.createElement(e),"select"===e){var d=o;t.multiple?d.multiple=!0:t.size&&(d.size=t.size)}}else o=a.createElementNS(s,e);return s===te&&(i||"[object HTMLUnknownElement]"!==Object.prototype.toString.call(o)||g.call(on,e)||(on[e]=!0,l("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e))),o}(e,t,n,r.namespace);return s[oJ]=i,s[oX]=t,s}(a,r,o,p,t);cL(m,t,!1,!1),t.stateNode=m,function(e,t,n,r,i){switch(function(e,t,n,r){var i,o,a=tx(t,n);switch(or(t,n),t){case"dialog":i1("cancel",e),i1("close",e),o=n;break;case"iframe":case"object":case"embed":i1("load",e),o=n;break;case"video":case"audio":for(var s=0;s<iZ.length;s++)i1(iZ[s],e);o=n;break;case"source":i1("error",e),o=n;break;case"img":case"image":case"link":i1("error",e),i1("load",e),o=n;break;case"details":i1("toggle",e),o=n;break;case"input":eK(e,n),o=eq(e,n),i1("invalid",e);break;case"option":eZ(0,n),o=n;break;case"select":e6(e,n),o=e3(0,n),i1("invalid",e);break;case"textarea":e5(e,n),o=e8(e,n),i1("invalid",e);break;default:o=n}switch(tC(t,o),function(e,t,n,r,i){for(var o in r)if(r.hasOwnProperty(o)){var a=r[o];if(o===om)a&&Object.freeze(a),tS(t,a);else if(o===oc){var s=a?a[og]:void 0;null!=s&&ta(t,s)}else o===op?"string"==typeof a?("textarea"!==e||""!==a)&&ts(t,a):"number"==typeof a&&ts(t,""+a):o===od||o===of||o===oh||(d.hasOwnProperty(o)?null!=a&&("function"!=typeof a&&oa(o,a),"onScroll"===o&&i1("scroll",t)):null!=a&&F(t,o,a,i))}}(t,e,0,o,a),t){case"input":eL(e),e$(e,n,!1);break;case"textarea":eL(e),e9(e);break;case"option":null!=n.value&&e.setAttribute("value",""+eR(n.value));break;case"select":e.multiple=!!n.multiple,null!=(i=n.value)?e2(e,!!n.multiple,i,!1):null!=n.defaultValue&&e2(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&oE(e)}}(e,t,n),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}(m,a,r)&&cH(t)}null!==t.ref&&cV(t)}return cW(t),null;case 6:if(e&&null!=t.stateNode){var v=e.memoizedProps;cB(e,t,v,r)}else{if("string"!=typeof r&&null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var b,A=lf(),w=lm();a6(t)?function(e){var t=e.stateNode,n=e.memoizedProps,r=(t[oJ]=e,e.mode,t.nodeValue!==n);if(r){var i=aH;if(null!==i)switch(i.tag){case 3:i.stateNode.containerInfo,o=(1&i.mode)!=0,oA(t.nodeValue,n,o,!0);break;case 5:i.type;var o,a,s=i.memoizedProps;i.stateNode,a=(1&i.mode)!=0,!0!==s[oD]&&oA(t.nodeValue,n,a,!0)}}return r}(t)&&cH(t):t.stateNode=(ox(null,r,w.ancestorInfo),(b=ow(A).createTextNode(r))[oJ]=t,b)}return cW(t),null;case 13:as(lb,t);var _=t.memoizedState;if((null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated)&&!function(e,t,n){if(a$&&null!==aV&&(1&t.mode)!=0&&(128&t.flags)==0)return a4(t),a8(),t.flags|=98560,!1;var r=a6(t);if(null!==n&&null!==n.dehydrated){if(null===e){if(!r)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(function(e){var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");n[oJ]=e}(t),cW(t),(2&t.mode)!=0&&null!==n){var i=t.child;null!==i&&(t.treeBaseDuration-=i.treeBaseDuration)}return!1}if(a8(),(128&t.flags)==0&&(t.memoizedState=null),t.flags|=4,cW(t),(2&t.mode)!=0&&null!==n){var o=t.child;null!==o&&(t.treeBaseDuration-=o.treeBaseDuration)}return!1}return a5(),!0}(e,t,_))return 65536&t.flags?t:null;if((128&t.flags)!=0)return t.lanes=n,(2&t.mode)!=0&&u2(t),t;var E=null!==_;if(E!==(null!==e&&null!==e.memoizedState)&&E&&(t.child.flags|=8192,(1&t.mode)!=0)&&((null!==e||(t.memoizedProps.unstable_avoidThisFallback,0))&&0==(1&lb.current)?fw():dz===dO&&(dz=dP)),null!==t.updateQueue&&(t.flags|=4),cW(t),(2&t.mode)!=0&&E){var S=t.child;null!==S&&(t.treeBaseDuration-=S.treeBaseDuration)}return null;case 4:return lp(t),cN(e,t),null===e&&i6(t.stateNode.containerInfo),cW(t),null;case 10:return sA(t.type._context,t),cW(t),null;case 19:as(lb,t);var k=t.memoizedState;if(null===k)return cW(t),null;var M=(128&t.flags)!=0,x=k.rendering;
6if(null===x){if(M)c$(k,!1);else{if(!(dz===dO&&(null===e||(128&e.flags)==0)))for(var T=t.child;null!==T;){var O=lA(T);if(null!==O){M=!0,t.flags|=128,c$(k,!1);var P=O.updateQueue;return null!==P&&(t.updateQueue=P,t.flags|=4),t.subtreeFlags=0,function(e,t){for(var n=e.child;null!==n;)(function(e,t){e.flags&=14680066;var n=e.alternate;if(null===n)e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var r=n.dependencies;e.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}})(n,t),n=n.sibling}(t,n),ly(t,1&lb.current|2),t.child}T=T.sibling}null!==k.tail&&nm()>dY&&(t.flags|=128,M=!0,c$(k,!1),t.lanes=4194304)}}else{if(!M){var L=lA(x);if(null!==L){t.flags|=128,M=!0;var N=L.updateQueue;if(null!==N&&(t.updateQueue=N,t.flags|=4),c$(k,!0),null===k.tail&&"hidden"===k.tailMode&&!x.alternate&&!a$)return cW(t),null}else 2*nm()-k.renderingStartTime>dY&&1073741824!==n&&(t.flags|=128,M=!0,c$(k,!1),t.lanes=4194304)}if(k.isBackwards)x.sibling=t.child,t.child=x;else{var D=k.last;null!==D?D.sibling=x:t.child=x,k.last=x}}if(null!==k.tail){var z=k.tail;k.rendering=z,k.tail=z.sibling,k.renderingStartTime=nm(),z.sibling=null;var U=lb.current;return ly(t,U=M?1&U|2:1&U),z}return cW(t),null;case 21:break;case 22:case 23:fv(t);var q=null!==t.memoizedState;return null!==e&&(null!==e.memoizedState===q||(t.flags|=8192)),q&&(1&t.mode)!=0?(1073741824&dj)!=0&&(cW(t),6&t.subtreeFlags&&(t.flags|=8192)):cW(t),null;case 24:case 25:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function cG(e,t,n){switch(aq(t),t.tag){case 1:null!=t.type.childContextTypes&&ab(t);break;case 3:t.stateNode,lp(t),ay(t),l_();break;case 5:lv(t);break;case 4:lp(t);break;case 13:case 19:as(lb,t);break;case 10:sA(t.type._context,t);break;case 22:case 23:fv(t)}}cL=function(e,t,n,r){for(var i,o=t.child;null!==o;){if(5===o.tag||6===o.tag)i=o.stateNode,e.appendChild(i);else if(4===o.tag);else if(null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)return;for(;null===o.sibling;){if(null===o.return||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},cN=function(e,t){},cD=function(e,t,n,r,i){var o=e.memoizedProps;if(o!==r){var a=function(e,t,n,r,i,o){if(typeof r.children!=typeof n.children&&("string"==typeof r.children||"number"==typeof r.children)){var a=""+r.children,s=oR(o.ancestorInfo,t);ox(null,a,s)}return function(e,t,n,r,i){or(t,r);var o,a,s,u,c=null;switch(t){case"input":o=eq(e,n),a=eq(e,r),c=[];break;case"select":o=e3(0,n),a=e3(0,r),c=[];break;case"textarea":o=e8(e,n),a=e8(e,r),c=[];break;default:a=r,"function"!=typeof(o=n).onClick&&"function"==typeof a.onClick&&oE(e)}tC(t,a);var f=null;for(s in o)if(!a.hasOwnProperty(s)&&o.hasOwnProperty(s)&&null!=o[s]){if(s===om){var h=o[s];for(u in h)h.hasOwnProperty(u)&&(f||(f={}),f[u]="")}else s===oc||s===op||s===od||s===of||s===oh||(d.hasOwnProperty(s)?c||(c=[]):(c=c||[]).push(s,null))}for(s in a){var p=a[s],m=null!=o?o[s]:void 0;if(a.hasOwnProperty(s)&&p!==m&&(null!=p||null!=m)){if(s===om){if(p&&Object.freeze(p),m){for(u in m)!m.hasOwnProperty(u)||p&&p.hasOwnProperty(u)||(f||(f={}),f[u]="");for(u in p)p.hasOwnProperty(u)&&m[u]!==p[u]&&(f||(f={}),f[u]=p[u])}else f||(c||(c=[]),c.push(s,f)),f=p}else if(s===oc){var g=p?p[og]:void 0,v=m?m[og]:void 0;null!=g&&v!==g&&(c=c||[]).push(s,g)}else s===op?"string"!=typeof p&&"number"!=typeof p||(c=c||[]).push(s,""+p):s===od||s===of||(d.hasOwnProperty(s)?(null!=p&&("function"!=typeof p&&oa(s,p),"onScroll"===s&&i1("scroll",e)),c||m===p||(c=[])):(c=c||[]).push(s,p))}}return f&&(function(e,t){if(t){var n=tk(e),r=tk(t),i={};for(var o in n){var a=n[o],s=r[o];if(s&&a!==s){var u,c=a+","+s;if(i[c])continue;i[c]=!0,l("%s a style property during rerender (%s) when a conflicting property is set 
6(%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",null==(u=e[a])||"boolean"==typeof u||""===u?"Removing":"Updating",a,s)}}}}(f,a[om]),(c=c||[]).push(om,f)),c}(e,t,n,r)}(t.stateNode,n,o,r,0,lm());t.updateQueue=a,a&&cH(t)}},cB=function(e,t,n,r){n!==r&&cH(t)};var cQ=null;cQ=new Set;var cZ=!1,cJ=!1,cX="function"==typeof WeakSet?WeakSet:Set,c0=null,c1=null,c2=null,c3=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,2&e.mode)try{u1(),t.componentWillUnmount()}finally{uX(e)}else t.componentWillUnmount()};function c6(e,t){try{dt(4,e)}catch(n){fI(e,t,n)}}function c4(e,t,n){try{c3(e,n)}catch(n){fI(e,t,n)}}function c8(e,t){try{dn(e)}catch(n){fI(e,t,n)}}function c5(e,t){var n,r=e.ref;if(null!==r){if("function"==typeof r){try{if(2&e.mode)try{u1(),n=r(null)}finally{uX(e)}else n=r(null)}catch(n){fI(e,t,n)}"function"==typeof n&&l("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",ew(e))}else r.current=null}}function c7(e,t,n){try{n()}catch(n){fI(e,t,n)}}var c9=!1;function de(e,t,n){var r=t.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var o=i.next,a=o;do{if((a.tag&e)===e){var s=a.destroy;a.destroy=void 0,void 0!==s&&((8&e)!=0?null!==nM&&"function"==typeof nM.markComponentPassiveEffectUnmountStarted&&nM.markComponentPassiveEffectUnmountStarted(t):(4&e)!=0&&nN(t),(2&e)!=0&&(fr=!0),c7(t,n,s),(2&e)!=0&&(fr=!1),(8&e)!=0?null!==nM&&"function"==typeof nM.markComponentPassiveEffectUnmountStopped&&nM.markComponentPassiveEffectUnmountStopped():(4&e)!=0&&nD())}a=a.next}while(a!==o)}}function dt(e,t){var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var i=r.next,o=i;do{if((o.tag&e)===e){(8&e)!=0?null!==nM&&"function"==typeof nM.markComponentPassiveEffectMountStarted&&nM.markComponentPassiveEffectMountStarted(t):(4&e)!=0&&null!==nM&&"function"==typeof nM.markComponentLayoutEffectMountStarted&&nM.markComponentLayoutEffectMountStarted(t);var a=o.create;(2&e)!=0&&(fr=!0),o.destroy=a(),(2&e)!=0&&(fr=!1),(8&e)!=0?null!==nM&&"function"==typeof nM.markComponentPassiveEffectMountStopped&&nM.markComponentPassiveEffectMountStopped():(4&e)!=0&&null!==nM&&"function"==typeof nM.markComponentLayoutEffectMountStopped&&nM.markComponentLayoutEffectMountStopped();var s=o.destroy;if(void 0!==s&&"function"!=typeof s){var u=void 0;l("%s must not return anything besides a function, which is used for clean-up.%s",u=(4&o.tag)!=0?"useLayoutEffect":(2&o.tag)!=0?"useInsertionEffect":"useEffect",null===s?" You returned null. If your effect does not require clean up, return undefined (or nothing).":"function"==typeof s.then?"\n\nIt looks like you wrote "+u+"(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n"+u+"(() => {\n  async function fetchData() {\n    // You can await here\n    const response = await MyAPI.getData(someId);\n    // ...\n  }\n  fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching":" You returned: "+s)}}o=o.next}while(o!==i)}}function dn(e){var t=e.ref;if(null!==t){var n,r=e.stateNode;if(e.tag,"function"==typeof t){if(2&e.mode)try{u1(),n=t(r)}finally{uX(e)}else n=t(r);"function"==typeof n&&l("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",ew(e))}else t.hasOwnProperty("current")||l("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",ew(e)),t.current=r}}function dr(e){return 5===e.tag||3===e.tag||4===e.tag}function di(e){var t=e;e:for(;;){for(;null===t.sibling;){if(null===t.return||dr(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags||null===t.child||4===t.tag)continue e;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}var da=null,ds=!1;function dl(e,t,n){for(var r=n.child;null!==r;)du(e,t,r),r=r.sibling}function du(e,t,n){switch(function(e){if(nk&&"function"==typeof nk.onCommitFiberUnmount)try{nk.onCommitFiberUnmount(nS,e)}catch(e){nC||(nC=!0,l("React instrumentation encountered an error: %s",e))}}(n),n.tag){case 5:cJ||c5(n,t);case 6:var r,i,o,a,s=da,u=ds;return da=null,dl(e,t,n),ds=u,void(null!==(da=s)&&(ds?(o=da,a=n.stateNode,8===o.nodeType?o.parentNode.removeChild(a):o.removeChild(a)):function(e,t){e.removeChild(t)}(da,n.stateNode)));case 18:return void(null!==da&&(ds?(r=da,i=n.stateNode,8===r.nodeType?oV(r.parentNode,i):1===r.nodeType&&oV(r,i),rw(r)):oV(da,n.stateNode)));case 4:var c=da,d=ds;return da=n.stateNode.containerInfo,ds=!0,dl(e,t,n),da=c,void(ds=d);case 0:case 11:case 14:case 15:if(!cJ){var f=n.updateQueue;if(null!==f){var h=f.lastEffect;if(null!==h){var p=h.next,m=p;do{var g=m,v=g.destroy,b=g.tag;void 0!==v&&((2&b)!=0?c7(n,t,v):(4&b)!=0&&(nN(n),2&n.mode?(u1(),c7(n,t,v),uX(n)):c7(n,t,v),nD())),m=m.next}while(m!==p)}}}return void dl(e,t,n);case 1:if(!cJ){c5(n,t);var y=n.stateNode;"function"==typeof y.componentWillUnmount&&c4(n,t,y)}return void dl(e,t,n);case 21:default:return void dl(e,t,n);case 22:if(1&n.mode){var A=cJ;cJ=A||null!==n.memoizedState,dl(e,t,n),cJ=A}else dl(e,t,n)}}function dc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new cX),t.forEach(function(t){var r=fL.bind(null,e,t);if(!n.has(t)){if(n.add(t),nx){if(null===c1||null===c2)throw Error("Expected finished root and lanes to be set. This is a bug in React.");fq(c2,c1)}t.then(r,r)}})}}
6function dd(e,t,n){var r=t.deletions;if(null!==r)for(var i=0;i<r.length;i++){var o=r[i];try{(function(e,t,n){var r,i=t;e:for(;null!==i;){switch(i.tag){case 5:da=i.stateNode,ds=!1;break e;case 3:case 4:da=i.stateNode.containerInfo,ds=!0;break e}i=i.return}if(null===da)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");du(e,t,n),da=null,ds=!1,null!==(r=n.alternate)&&(r.return=null),n.return=null})(e,t,o)}catch(e){fI(o,t,e)}}var a=eE;if(12854&t.subtreeFlags)for(var s=t.child;null!==s;)ex(s),df(s,e),s=s.sibling;ex(a)}function df(e,t,n){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(dd(t,e),dh(e),4&i){try{de(3,e,e.return),dt(3,e)}catch(t){fI(e,e.return,t)}if(2&e.mode){try{u1(),de(5,e,e.return)}catch(t){fI(e,e.return,t)}uX(e)}else try{de(5,e,e.return)}catch(t){fI(e,e.return,t)}}return;case 1:return dd(t,e),dh(e),void(512&i&&null!==r&&c5(r,r.return));case 5:if(dd(t,e),dh(e),512&i&&null!==r&&c5(r,r.return),32&e.flags){var o=e.stateNode;try{ts(o,"")}catch(t){fI(e,e.return,t)}}if(4&i){var a=e.stateNode;if(null!=a){var s=e.memoizedProps,l=null!==r?r.memoizedProps:s,u=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{(function(e,t,n,r,i){switch("input"===n&&"radio"===i.type&&null!=i.name&&eH(e,i),tx(n,r),function(e,t,n,r){for(var i=0;i<t.length;i+=2){var o=t[i],a=t[i+1];o===om?tS(e,a):o===oc?ta(e,a):o===op?ts(e,a):F(e,o,a,r)}}(e,t,0,tx(n,i)),n){case"input":eV(e,i);break;case"textarea":e7(e,i);break;case"select":var o,a;o=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!i.multiple,null!=(a=i.value)?e2(e,!!i.multiple,a,!1):!!i.multiple!==o&&(null!=i.defaultValue?e2(e,!!i.multiple,i.defaultValue,!0):e2(e,!!i.multiple,i.multiple?[]:"",!1))}})(a,c,u,l,s),a[oX]=s}catch(t){fI(e,e.return,t)}}}return;case 6:if(dd(t,e),dh(e),4&i){if(null===e.stateNode)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var d=e.stateNode,f=e.memoizedProps;null!==r&&r.memoizedProps;try{d.nodeValue=f}catch(t){fI(e,e.return,t)}}return;case 3:if(dd(t,e),dh(e),4&i&&null!==r&&r.memoizedState.isDehydrated)try{rw(t.containerInfo)}catch(t){fI(e,e.return,t)}return;case 4:default:return dd(t,e),void dh(e);case 13:dd(t,e),dh(e);var h=e.child;if(8192&h.flags){var p=h.stateNode,m=null!==h.memoizedState;p.isHidden=m,m&&(null!==h.alternate&&null!==h.alternate.memoizedState||(dW=nm()))}if(4&i){try{e.memoizedState}catch(t){fI(e,e.return,t)}dc(e)}return;case 22:var g=null!==r&&null!==r.memoizedState;if(1&e.mode){var v=cJ;cJ=v||g,dd(t,e),cJ=v}else dd(t,e);if(dh(e),8192&i){var b=e.stateNode,y=null!==e.memoizedState;if(b.isHidden=y,y&&!g&&(1&e.mode)!=0){c0=e;for(var A=e.child;null!==A;)c0=A,function(e){for(;null!==c0;){var t=c0,n=t.child;switch(t.tag){case 0:case 11:case 14:case 15:if(2&t.mode)try{u1(),de(4,t,t.return)}finally{uX(t)}else de(4,t,t.return);break;case 1:c5(t,t.return);var r=t.stateNode;"function"==typeof r.componentWillUnmount&&c4(t,t.return,r);break;case 5:c5(t,t.return);break;case 22:if(null!==t.memoizedState){dm(e);continue}}null!==n?(n.return=t,c0=n):dm(e)}}(A),A=A.sibling}!function(e,t){for(var n=null,r=e;;){if(5===r.tag){if(null===n){n=r;try{var i=r.stateNode;t?function(e){var t=e.style;"function"==typeof t.setProperty?t.setProperty("display","none","important"):t.display="none"}(i):function(e,t){var n=t.style,r=null!=n&&n.hasOwnProperty("display")?n.display:null;e.style.display=td("display",r)}(r.stateNode,r.memoizedProps)}catch(t){fI(e,e.return,t)}}}else if(6===r.tag){if(null===n)try{var o,a=r.stateNode;t?a.nodeValue="":(o=r.memoizedProps,a.nodeValue=o)}catch(t){fI(e,e.return,t)}}else if((22!==r.tag&&23!==r.tag||null===r.memoizedState||r===e)&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;n===r&&(n=null),r=r.return}n===r&&(n=null),r.sibling.return=r.return,r=r.sibling}}(e,y)}return;case 19:return dd(t,e),dh(e),void(4&i&&dc(e));case 21:return}}function dh(e){var t=e.flags;if(2&t){try{(function(e){var t=function(e){for(var t=e.return;null!==t;){if(dr(t))return t;t=t.return}throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}(e);
6switch(t.tag){case 5:var n=t.stateNode;32&t.flags&&(ts(n,""),t.flags&=-33),function e(t,n,r){var i=t.tag;if(5===i||6===i){var o=t.stateNode;n?function(e,t,n){e.insertBefore(t,n)}(r,o,n):function(e,t){e.appendChild(t)}(r,o)}else if(4===i);else{var a=t.child;if(null!==a){e(a,n,r);for(var s=a.sibling;null!==s;)e(s,n,r),s=s.sibling}}}(e,di(e),n);break;case 3:case 4:var r=t.stateNode.containerInfo;(function e(t,n,r){var i=t.tag;if(5===i||6===i){var o,a=t.stateNode;n?8===r.nodeType?r.parentNode.insertBefore(a,n):r.insertBefore(a,n):(8===r.nodeType?(o=r.parentNode).insertBefore(a,r):(o=r).appendChild(a),null==r._reactRootContainer&&null===o.onclick&&oE(o))}else if(4===i);else{var s=t.child;if(null!==s){e(s,n,r);for(var l=s.sibling;null!==l;)e(l,n,r),l=l.sibling}}})(e,di(e),r);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}})(e)}catch(t){fI(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function dp(e,t,n){for(;null!==c0;){var r=c0;if((8772&r.flags)!=0){var i=r.alternate;ex(r);try{(function(e,t,n,r){if((8772&n.flags)!=0)switch(n.tag){case 0:case 11:case 15:if(!cJ){if(2&n.mode)try{u1(),dt(5,n)}finally{uX(n)}else dt(5,n)}break;case 1:var i=n.stateNode;if(4&n.flags&&!cJ){if(null===t){if(n.type!==n.elementType||cs||(i.props!==n.memoizedProps&&l("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ew(n)||"instance"),i.state!==n.memoizedState&&l("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ew(n)||"instance")),2&n.mode)try{u1(),i.componentDidMount()}finally{uX(n)}else i.componentDidMount()}else{var o=n.elementType===n.type?t.memoizedProps:sd(n.type,t.memoizedProps),a=t.memoizedState;if(n.type!==n.elementType||cs||(i.props!==n.memoizedProps&&l("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ew(n)||"instance"),i.state!==n.memoizedState&&l("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ew(n)||"instance")),2&n.mode)try{u1(),i.componentDidUpdate(o,a,i.__reactInternalSnapshotBeforeUpdate)}finally{uX(n)}else i.componentDidUpdate(o,a,i.__reactInternalSnapshotBeforeUpdate)}}var s=n.updateQueue;null!==s&&(n.type!==n.elementType||cs||(i.props!==n.memoizedProps&&l("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ew(n)||"instance"),i.state!==n.memoizedState&&l("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ew(n)||"instance")),sj(0,s,i));break;case 3:var u=n.updateQueue;if(null!==u){var c=null;if(null!==n.child)switch(n.child.tag){case 5:case 1:c=n.child.stateNode}sj(0,u,c)}break;case 5:var d=n.stateNode;null===t&&4&n.flags&&function(e,t,n,r){switch(t){case"button":case"input":case"select":case"textarea":return void(n.autoFocus&&e.focus());case"img":n.src&&(e.src=n.src)}}(d,n.type,n.memoizedProps);break;case 6:case 4:case 19:case 17:case 21:case 22:case 23:case 25:break;case 12:var f=n.memoizedProps,h=f.onCommit,p=f.onRender,m=n.stateNode.effectDuration,g=uV,v=null===t?"mount":"update";uG&&(v="nested-update"),"function"==typeof p&&p(n.memoizedProps.id,v,n.actualDuration,n.treeBaseDuration,n.actualStartTime,g),"function"==typeof h&&h(n.memoizedProps.id,v,m,g),d3.push(n),d0||(d0=!0,fH(ny,function(){return fM(),null}));var b=n.return;e:for(;null!==b;){switch(b.tag){case 3:case 12:b.stateNode.effectDuration+=m;break e}b=b.return}break;case 13:!function(e,t){if(null===t.memoizedState){var n=t.alternate;if(null!==n){var r=n.memoizedState;if(null!==r){var i=r.dehydrated;null!==i&&rw(i)}}}}(0,n);break;default:throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}cJ||512&n.flags&&dn(n)})(0,i,r)}catch(e){fI(r,r.return,e)}eC()}if(r===e)return void(c0=null);var o=r.sibling;if(null!==o)return o.return=r.return,void(c0=o);c0=r.return}}function dm(e){for(;null!==c0;){var t=c0;if(t===e)return void(c0=null);var n=t.sibling;if(null!==n)return n.return=t.return,void(c0=n);c0=t.return}}function dg(e){for(;null!==c0;){var t=c0;ex(t);try{(function(e){switch(e.tag){case 0:case 11:case 15:if(2&e.mode)try{u1(),c6(e,e.return)}finally{uX(e)}else c6(e,e.return);break;case 1:var t=e.stateNode;"function"==typeof t.componentDidMount&&function(e,t,n){try{n.componentDidMount()}catch(n){fI(e,t,n)}}(e,e.return,t),c8(e,e.return);break;case 5:c8(e,e.return)}})(t)}catch(e){fI(t,t.return,e)}if(eC(),t===e)return void(c0=null);var n=t.sibling;if(null!==n)return n.return=t.return,void(c0=n);c0=t.return}}function dv(e){switch(e.tag){case 0:case 11:case 15:try{dt(5,e)}catch(t){fI(e,e.return,t)}break;case 1:var t=e.stateNode;try{t.componentDidMount()}catch(t){fI(e,e.return,t)}}}function db(e){switch(e.tag){case 0:case 11:case 15:try{dt(9,e)}catch(t){fI(e,e.return,t)}}}function dy(e){switch(e.tag){case 0:case 11:case 15:try{de(5,e,e.return)}catch(t){fI(e,e.return,t)}break;case 1:var t=e.stateNode;"function"==typeof t.componentWillUnmount&&c4(e,e.return,t)}}function dA(e){switch(e.tag){case 0:case 11:case 15:try{de(9,e,e.return)}catch(t){fI(e,e.return,t)}}}if("function"==typeof Symbol&&Symbol.for){var dw=Symbol.for;dw("selector.component"),dw("selector.has_pseudo_class"),dw("selector.role"),dw("selector.test_id"),dw("selector.text")}var d_=[],dE=o.ReactCurrentActQueue;function dS(){var e="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0;return e||null===dE.current||l("The current testing environment is not configured to support act(...)"),e}var dk=Math.ceil,dM=o.ReactCurrentDispatcher,dC=o.ReactCurrentOwner,dx=o.ReactCurrentBatchConfig,dR=o.ReactCurrentActQueue,dI=0,dT=2,dO=0,dP=3,dL=0,dN=null,dD=null,dB=0,dj=0,dF=aa(0),dz=dO,dU=null,dq=0,dK=0,dH=0,dV=null,d$=null,dW=0,dY=1/0,dG=null;function dQ(){dY=nm()+500}var dZ=!1,dJ=null,dX=null,d0=!1,d1=null,d2=0,d3=[],d6=null,d4=0,d8=null,d5=!1,d7=!1,d9=0,fe=null,ft=-1,fn=0,fr=!1;function fi(){return(dL&(4|dT))!==dI?nm():-1!==ft?ft:ft=nm()}function fo(e){if((1&e.mode)==0)return 1;if((dL&dT)!==dI&&0!==dB){var t;return(t=dB)&-t}if(null!==a9.transition){if(null!==dx.transition){var n=dx.transition;n._updatedFibers||(n._updatedFibers=new Set),n._updatedFibers.add(e)}return 0===fn&&(fn=nJ()),fn}var r,i=rn;return 0!==i?i:void 0===(r=window.event)?16:rR(r.type)}function fa(e,t,n,r){(function(){if(d4>50)throw d4=0,d8=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");d9>50&&(d9=0,fe=null,l("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))})(),fr&&l("useInsertionEffect must not schedule updates."),d5&&(d7=!0),n2(e,n,r),(dL&dT)!=0&&e===dN?function(e){if(eS&&!uM)switch(e.tag){case 0:case 11:case 15:var t=dD&&ew(dD)||"Unknown";fz.has(t)||(fz.add(t),l("Cannot update a component (`%s`) while rendering a different c
6omponent (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",ew(e)||"Unknown",t,t));break;case 1:fU||(l("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),fU=!0)}}(t):(nx&&n4(e,t,n),function(e){if(1&e.mode){if(!dS())return}else if(t="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0,"undefined"==typeof jest||!1===t||dL!==dI||0!==e.tag&&11!==e.tag&&15!==e.tag)return;if(null===dR.current){var t,n=eE;try{ex(e),l("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n  /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act",ew(e))}finally{n?ex(e):eC()}}}(t),e===dN&&((dL&dT)===dI&&(dK|=n),4===dz&&fd(e,dB)),fs(e,r),1!==n||dL!==dI||(1&t.mode)!=0||dR.isBatchingLegacy||(dQ(),ak&&ax()))}function fs(e,t){var n,r,i,o=e.callbackNode;!function(e,t){for(var n=e.pendingLanes,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,a=n;a>0;){var s=n0(a),u=1<<s,c=o[s];-1===c?(u&r)!=0&&(u&i)==0||(o[s]=function(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return -1;default:return l("Should have found matching lanes. This is a bug in React."),-1}}(u,t)):c<=t&&(e.expiredLanes|=u),a&=~u}}(e,t);var a=nW(e,e===dN?dB:0);if(0===a)return null!==o&&fV(o),e.callbackNode=null,void(e.callbackPriority=0);var s=a&-a,u=e.callbackPriority;if(u!==s||null!==dR.current&&o!==fK){if(null!=o&&fV(o),1===s)0===e.tag?(null!==dR.isBatchingLegacy&&(dR.didScheduleLegacyUpdate=!0),r=ff.bind(null,e),ak=!0,aC(r)):aC(ff.bind(null,e)),null!==dR.current?dR.current.push(ax):oK(function(){(dL&(4|dT))===dI&&ax()}),n=null;else{switch(rr(a)){case 1:i=nv;break;case 4:i=nb;break;case 16:default:i=ny;break;case 536870912:i=nw}n=fH(i,fl.bind(null,e))}e.callbackPriority=s,e.callbackNode=n}else null==o&&1!==u&&l("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.")}function fl(e,t){if(uG=!1,uQ=!1,ft=-1,fn=0,(dL&(4|dT))!==dI)throw Error("Should not already be working.");var n=e.callbackNode;if(fM()&&e.callbackNode!==n)return null;var r=nW(e,e===dN?dB:0);if(0===r)return null;var i=(30&r)!=0||(r&e.expiredLanes)!=0||t?f_(e,r):function(e,t){var n=dL;dL|=dT;var r=fA();if(dN!==e||dB!==t){if(nx){var i=e.memoizedUpdaters;i.size>0&&(fq(e,dB),i.clear()),n8(e,t)}dG=null,dQ(),fb(e,t)}for(nB(t);;)try{(function(){for(;null!==dD&&!nh();)fE(dD)})();break}catch(t){fy(e,t)}return sb(),dM.current=r,dL=n,null!==dD?(null!==nM&&"function"==typeof nM.markRenderYielded&&nM.markRenderYielded(),dO):(nj(),dN=null,dB=0,dz)}(e,r);if(i!==dO){if(2===i){var o=nY(e);0!==o&&(r=o,i=fu(e,o))}if(1===i){var a=dU;throw fb(e,0),fd(e,r),fs(e,nm()),a}if(6===i)fd(e,r);else{var s=(30&r)==0,l=e.current.alternate;if(s&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n){var r=n.stores;if(null!==r)for(var i=0;i<r.length;i++){var o=r[i],a=o.getSnapshot,s=o.value;try{if(!iM(a(),s))return!1}catch(e){return!1}}}}var l=t.child;if(16384&t.subtreeFlags&&null!==l)l.return=t,t=l;else{if(t===e)return!0;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(l)){if(2===(i=f_(e,r))){var u=nY(e);0!==u&&(r=u,i=fu(e,u))}if(1===i){var c=dU;throw fb(e,0),fd(e,r),fs(e,nm()),c}}e.finishedWork=l,e.finishedLanes=r,function(e,t,n){switch(t){case dO:case 1:throw Error("Root did not complete. This is a bug in React.");case 2:fk(e,d$,dG);break;case dP:if(fd(e,n),nQ(n)&&!f$()){var r=dW+500-nm();if(r>10){if(0!==nW(e,0))break;var i=e.suspendedLanes;if((i&n)!==n){fi(),n3(e,i);break}e.timeoutHandle=oz(fk.bind(null,e,d$,dG),r);break}}fk(e,d$,dG);break;case 4:if(fd(e,n),(4194240&n)===n)break;if(!f$()){var o=function(e,t){for(var n=e.eventTimes,r=-1;t>0;){var i=n0(t),o=1<<i,a=n[i];a>r&&(r=a),t&=~o}return r}(e,n),a=nm()-o,s=(a<120?120:a<480?480:a<1080?1080:a<1920?1920:a<3e3?3e3:a<4320?4320:1960*dk(a/1960))-a;if(s>10){e.timeoutHandle=oz(fk.bind(null,e,d$,dG),s);break}}fk(e,d$,dG);break;case 5:fk(e,d$,dG);break;default:throw Error("Unknown root exit status.")}}(e,i,r)}}return fs(e,nm()),e.callbackNode===n?fl.bind(null,e):null}function fu(e,t){var n=dV;ri(e)&&(fb(e,t).flags|=256,l("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.containerInfo.nodeName.toLowerCase()));var r=f_(e,t);if(2!==r){var i=d$;d$=n,null!==i&&fc(i)}return r}function fc(e){null===d$?d$=e:d$.push.apply(d$,e)}function fd(e,t){t&=~dH,function(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,r=t;r>0;){var i=n0(r),o=1<<i;n[i]=-1,r&=~o}}(e,t&=~dK)}function ff(e){if(uG=uQ,uQ=!1,(dL&(4|dT))!==dI)throw Error("Should not already be working.");fM();var t=nW(e,0);if(!((1&t)!=0))return fs(e,nm()),null;var n=f_(e,t);if(0!==e.tag&&2===n){var r=nY(e);0!==r&&(t=r,n=fu(e,r))}if(1===n){var i=dU;throw fb(e,0),fd(e,t),fs(e,nm()),i}if(6===n)throw Error("Root did not complete. This is a bug in React.");var o=e.current.alternate;return e.finishedWork=o,e.finishedLanes=t,fk(e,d$,dG),fs(e,nm()),null}function fh(e,t){var n=dL;dL|=1;try{return e(t)}finally{(dL=n)!==dI||dR.isBatchingLegacy||(dQ(),ak&&ax())}}function fp(e){null!==d1&&0===d1.tag&&(dL&(4|dT))===dI&&fM();var t=dL;dL|=1;var n=dx.transition,r=rn;try{return dx.transition=null,rn=1,e?e():void 0}finally{rn=r,dx.transition=n,((dL=t)&(4|dT))===dI&&ax()}}function fm(){return(dL&(4|dT))!==dI}function fg(e,t){al(dF,dj,e),dj|=t}function fv(e){dj=dF.current,as(dF,e)}function fb(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oU(n)),null!==dD)for(var r=dD.return;null!==r;)r.alternate,cG(0,r),r=r.return;dN=e;var i=f2(e.current,null);return dD=i,dB=dj=t,dz=dO,dU=null,dq=0,dK=0,dH=0,dV=null,d$=null,function(){if(null!==sS){for(var e=0;e<sS.length;e++){var t=sS[e],n=t.interleaved;if(null!==n){t.interleaved=null;var r=n.next,i=t.pending;if(null!==i){var o=i.next;i.next=r,n.next=o}t.pending=n}}sS=null}}(),se.discardPendingWarnings(),i}function fy(e,t){for(;;){var n,r,i,o,a,s,l=dD;try{if(sb(),lY(),eC(),dC.current=null,null===l||null===l.return)return dz=1,dU=t,void(dD=null);2&l.mode&&uJ(l,!0),(nL(),null!==t&&"object"==typeof t&&"function"==typeof t.then)?(n=l,r=t,i=dB,null!==nM&&"function"==typeof nM.markComponentSuspended&&nM.markComponentSuspended(n,r,i)):(o=l,a=t,s=dB,null!==nM&&"function"==typeof nM.markComponentErrored&&nM.markComponentErrored(o,a,s)),function(e,t,n,r,i){if(n.flags|=32768,nx&&fq(e,i),null!==r&&"object"==typeof r&&"function"==typeof r.then){var o=r;(function(e,t){var n=e.tag;if((1&e.mode)==0&&(0===n||11===n||15===n)){var r=e.alternate;r?(e.updateQueue=r.updateQueue,e.memoizedState=r.memoizedState,e.lanes=r.lanes):(e.updateQueue=null,e.memoizedState=null)}})(n),a$&&1&n.mode&&(aW=!0);var a=ce(t);if(null!==a)return a.flags&=-257,ct(a,t,n,0,i),1&a.mode&&u9(e,o,i),void function(e,t,n,r){var i=e.updateQueue;if(null===i){var o=new Set;o.add(n),e.updateQueue=o}else i.add(n)}(a,0,o);if((1&i)==0)return u9(e,o,i),void fw();r=Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.")}else if(a$&&1&n.mode){aW=!0;var s=ce(t);if(null!==s)return(65536&s.flags)==0&&(s.flags|=256),ct(s,t,n,0,i),void a7(u3(r,n))}c=r=u3(r,n),4!==dz&&(dz=2),null===dV?dV=[c]:dV.push(c);var l=t;do{switch(l.tag){case 3:var u,c,d=r;l.flags|=65536;var f=(u=i)&-u;return l.lanes=l.lanes|f,void sD(l,u5(l,d,f));case 1:var h=r,p=l.type,m=l.stateNode;if((128&l.flags)==0&&("function"==typeof p.getDerivedStateFromError||null!==m&&"function"==typeof m.componentDidCatch&&!fC(m))){l.flags|=65536;var g,v=(g=i)&-g;return l.lanes=l.lanes|v,void sD(l,u7(l,h,v))}}l=l.return}while(null!==l)}(e,l.return,l,t,dB),fS(l)}catch(e){t=e,dD===l&&null!==l?dD=l=l.return:l=dD;continue}return}}function fA(){var e=dM.current;return dM.current=uL,null===e?uL:e}function fw(){dz!==dO&&dz!==dP&&2!==dz||(dz=4),null!==dN&&(nG(dq)||nG(dK))&&fd(dN,dB)}function f_(e,t){var n=dL;dL|=dT;var r=fA();if(dN!==e||dB!==t){if(nx){var i=e.memoizedUpdaters;i.size>0&&(fq(e,dB),i.clear()),n8(e,t)}dG=null,fb(e,t)}for(nB(t);;)try{(function(){for(;null!==dD;)fE(dD)})();break}catch(t){fy(e,t)}if(sb(),dL=n,dM.current=r,null!==dD)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return nj(),dN=null,dB=0,dz}function fE(e){var t,n=e.alternate;ex(e),(2&e.mode)!=0?(uZ(e),t=fB(n,e,dj),uJ(e,!0)):t=fB(n,e,dj),eC(),e.memoizedProps=e.pendingProps,null===t?fS(e):dD=t,dC.current=null}function fS(e){var t=e;do{var n=t.alternate,r=t.return;if((32768&t.flags)==0){ex(t);var i=void 0;if((2&t.mode)==0?i=cY(n,t,dj):(uZ(t),i=cY(n,t,dj),uJ(t,!1)),eC(),null!==i)return void(dD=i)}else{var o=function(e,t,n){switch(aq(t),t.tag){case 1:av(t.type)&&ab(t);var r=t.flags;return 65536&r?(t.flags=-65537&r|128,(2&t.mode)!=0&&u2(t),t):null;case 3:t.stateNode,lp(t),ay(t),l_();var i=t.flags;return(65536&i)!=0&&(128&i)==0?(t.flags=-65537&i|128,t):null;case 5:return lv(t),null;case 13:as(lb,t);var o=t.memoizedState;if(null!==o&&null!==o.dehydrated){if(null===t.alternate)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");a8()}var a=t.flags;return 65536&a?(t.flags=-65537&a|128,(2&t.mode)!=0&&u2(t),t):null;case 19:return as(lb,t),null;case 4:return lp(t),null;case 10:return sA(t.type._context,t),null;case 22:case 23:return fv(t),null;default:return null}}(0,t);if(null!==o)return o.flags&=32767,void(dD=o);if((2&t.mode)!=0){uJ(t,!1);for(var a=t.actualDuration,s=t.child;null!==s;)a+=s.actualDuration,s=s.sibling;t.actualDuration=a}if(null===r)return dz=6,void(dD=null);r.flags|=32768,r.subtreeFlags=0,r.deletions=null}var l=t.sibling;if(null!==l)return void(dD=l);dD=t=r}while(null!==t);dz===dO&&(dz=5)}
6function fk(e,t,n){var r=rn,i=dx.transition;try{dx.transition=null,rn=1,function(e,t,n,r){do fM();while(null!==d1);if(se.flushLegacyContextWarning(),se.flushPendingUnsafeLifecycleWarnings(),(dL&(4|dT))!==dI)throw Error("Should not already be working.");var i=e.finishedWork,o=e.finishedLanes;if(null!==nM&&"function"==typeof nM.markCommitStarted&&nM.markCommitStarted(o),null===i)return nO();if(0===o&&l("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=0,i===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=0;var a=(f=i.lanes,h=i.childLanes,f|h);(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var r=e.entanglements,i=e.eventTimes,o=e.expirationTimes,a=n;a>0;){var s=n0(a),l=1<<s;r[s]=0,i[s]=-1,o[s]=-1,a&=~l}})(e,a),e===dN&&(dN=null,dD=null,dB=0),(2064&i.subtreeFlags)==0&&(2064&i.flags)==0||d0||(d0=!0,d6=n,fH(ny,function(){return fM(),null}));var s=(15990&i.subtreeFlags)!=0,u=(15990&i.flags)!=0;if(s||u){var c,d,f,h,p=dx.transition;dx.transition=null;var m=rn;rn=1;var g=dL;dL|=4,dC.current=null,c=e.containerInfo,oB=rE,oj={focusedElem:d=iT(),selectionRange:iO(d)?("selectionStart"in d?{start:d.selectionStart,end:d.selectionEnd}:function(e){var t=e.ownerDocument,n=t&&t.defaultView||window,r=n.getSelection&&n.getSelection();if(!r||0===r.rangeCount)return null;var i=r.anchorNode,o=r.anchorOffset,a=r.focusNode,s=r.focusOffset;try{i.nodeType,a.nodeType}catch(e){return null}return function(e,t,n,r,i){var o=0,a=-1,s=-1,l=0,u=0,c=e,d=null;e:for(;;){for(var f=null;c!==t||0!==n&&3!==c.nodeType||(a=o+n),c!==r||0!==i&&3!==c.nodeType||(s=o+i),3===c.nodeType&&(o+=c.nodeValue.length),null!==(f=c.firstChild);)d=c,c=f;for(;;){if(c===e)break e;if(d===t&&++l===n&&(a=o),d===r&&++u===i&&(s=o),null!==(f=c.nextSibling))break;d=(c=d).parentNode}c=f}return -1===a||-1===s?null:{start:a,end:s}}(e,i,o,a,s)}(d))||{start:0,end:0}:null},rE=!1,c0=i,function(){for(;null!==c0;){var e=c0,t=e.child;(1028&e.subtreeFlags)!=0&&null!==t?(t.return=e,c0=t):function(){for(;null!==c0;){var e=c0;ex(e);try{(function(e){var t,n=e.alternate;if((1024&e.flags)!=0){switch(ex(e),e.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==n){var r=n.memoizedProps,i=n.memoizedState,o=e.stateNode;e.type!==e.elementType||cs||(o.props!==e.memoizedProps&&l("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ew(e)||"instance"),o.state!==e.memoizedState&&l("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ew(e)||"instance"));var a=o.getSnapshotBeforeUpdate(e.elementType===e.type?r:sd(e.type,r),i),s=cQ;void 0!==a||s.has(e.type)||(s.add(e.type),l("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",ew(e))),o.__reactInternalSnapshotBeforeUpdate=a}break;case 3:1===(t=e.stateNode.containerInfo).nodeType?t.textContent="":9===t.nodeType&&t.documentElement&&t.removeChild(t.documentElement);break;default:throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}eC()}})(e)}catch(t){fI(e,e.return,t)}eC();var t=e.sibling;if(null!==t)return t.return=e.return,void(c0=t);c0=e.return}}()}}(),uV=uH(),c1=o,c2=e,ex(i),df(i,e),ex(i),c1=null,c2=null,e.containerInfo,function(e){var t=iT(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&(i=n)&&i.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||!iI(t)&&(iI(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(i.ownerDocument.documentElement,i)){null!==r&&iO(n)&&(o=r.start,void 0===(a=r.end)&&(a=o),"selectionStart"in n?(n.selectionStart=o,n.selectionEnd=Math.min(a,n.value.length)):function(e,t){var n=e.ownerDocument||document,r=n&&n.defaultView||window;if(r.getSelection){var i=r.getSelection(),o=e.textContent.length,a=Math.min(t.start,o),s=void 0===t.end?a:Math.min(t.end,o);if(!i.extend&&a>s){var l=s;s=a,a=l}var u=iR(e,a),c=iR(e,s);if(u&&c){if(1===i.rangeCount&&i.anchorNode===u.node&&i.anchorOffset===u.offset&&i.focusNode===c.node&&i.focusOffset===c.offset)return;var d=n.createRange();d.setStart(u.node,u.offset),i.removeAllRanges(),a>s?(i.addRange(d),i.extend(c.node,c.offset)):(d.setEnd(c.node,c.offset),i.addRange(d))}}}(n,r));for(var i,o,a,s=[],l=n;l=l.parentNode;)1===l.nodeType&&s.push({element:l,left:l.scrollLeft,top:l.scrollTop});"function"==typeof n.focus&&n.focus();for(var u=0;u<s.length;u++){var c=s[u];c.element.scrollLeft=c.left,c.element.scrollTop=c.top}}}(oj),rE=!!oB,oB=null,oj=null,e.current=i,null!==nM&&"function"==typeof nM.markLayoutEffectsStarted&&nM.markLayoutEffectsStarted(o),c1=o,c2=e,c0=i,function e(t,n,r){for(var i=(1&t.mode)!=0;null!==c0;){var o=c0,a=o.child;if(22===o.tag&&i){var s=null!==o.memoizedState||cZ;if(s){dp(t,n,r);continue}var l=o.alternate,u=null!==l&&null!==l.memoizedState,c=cZ,d=cJ;cZ=s,(cJ=u||cJ)&&!d&&(c0=o,function(e){for(;null!==c0;){var t=c0,n=t.child;if(22===t.tag&&null!==t.memoizedState){dg(e);continue}null!==n?(n.return=t,c0=n):dg(e)}}(o));for(var f=a;null!==f;)c0=f,e(f,n,r),f=f.sibling;c0=o,cZ=c,cJ=d,dp(t,n,r)}else(8772&o.subtreeFlags)!=0&&null!==a?(a.return=o,c0=a):dp(t,n,r)}}(i,e,o),c1=null,c2=null,null!==nM&&"function"==typeof nM.markLayoutEffectsStopped&&nM.markLayoutEffectsStopped(),np(),dL=g,rn=m,dx.transition=p}else e.current=i,uV=uH();var v=d0;if(d0?(d0=!1,d1=e,d2=o):(d9=0,fe=null),0===(a=e.pendingLanes)&&(dX=null),v||fN(e.current,!1),function(e,t){if(nk&&"function"==typeof nk.onCommitFiberRoot)try{var n,r=(128&e.current.flags)==128;switch(t){case 1:n=nv;break;case 4:n=nb;break;case 16:default:n=ny;break;case 536870912:n=nw}nk.onCommitFiberRoot(nS,e,n,r)}catch(e){nC||(nC=!0,l("React instrumentation encountered an error: %s",e))}}(i.stateNode,r),nx&&e.memoizedUpdaters.clear(),d_.forEach(function(e){return e()}),fs(e,nm()),null!==t)for(var b=e.onRecoverableError,y=0;y<t.length;y++){var A=t[y],w=A.stack,_=A.digest;b(A.value,{componentStack:w,digest:_})}if(dZ){dZ=!1;var E=dJ;throw dJ=null,E}(1&d2)!=0&&0!==e.tag&&fM(),(1&(a=e.pendingLanes))!=0?(uQ=!0,e===d8?d4++:(d4=0,d8=e)):d4=0,ax(),nO()}(e,t,n,r)}finally{dx.transition=i,rn=r}return null}function fM(){if(null!==d1){var e,t=16>(e=rr(d2))?16:e,n=dx.transition,r=rn;try{return dx.transition=null,rn=t,function(){if(null===d1)return!1;var e,t=d6;d6=null;var n=d1,r=d2;if(d1=null,d2=0,(dL&(4|dT))!==dI)throw Error("Cannot flush passive effects while already rendering.");d5=!0,d7=!1,null!==nM&&"function"==typeof nM.markPassiveEffectsStarted&&nM.markPassiveEffectsStarted(r);var i=dL;dL|=4,c0=n.current,function(){for(;null!==c0;){var e=c0,t=e.child;if((16&c0.flags)!=0){var n=e.deletions;if(null!==n){for(var r=0;r<n.length;r++){var i=n[r];c0=i,function(e,t){for(;null!==c0;){var n=c0;ex(n),function(e,t){switch(e.tag){case 0:case 11:case 15:2&e.mode?(uY=uH(),de(8,e,t),u0(e)):de(8,e,t)}}(n,t),eC();var r=n.child;null!==r?(r.return=n,c0=r):function(e){for(;null!==c0;){var t=c0,n=t.sibling,r=t.return;if(function e(t){var n=t.alternate;if(null!==n&&(t.alternate=null,e(n)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag){var r=t.stateNode;null!==r&&(delete r[oJ],delete r[oX],delete r[o1],delete r[o2],delete r[o3])}t.stateNode=null,t._debugOwner=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}(t),t===e)return void(c0=null);if(null!==n)return n.return=r,void(c0=n);c0=r}}(e)}}(i,e)}var o=e.alternate;if(null!==o){var a=o.child;if(null!==a){o.child=null;do{var s=a.sibling;a.sibling=null,a=s}while(null!==a)}}c0=e}}(2064&e.subtreeFlags)!=0&&null!==t?(t.return=e,c0=t):function(){for(;null!==c0;){var e=c0;(2048&e.flags)!=0&&(ex(e),function(e){switch(e.tag){case 0:case 11:case 15:2&e.mode?(uY=uH(),de(9,e,e.return),u0(e)):de(9,e,e.return)}}(e),eC());var t=e.sibling;if(null!==t)return t.return=e.return,void(c0=t);c0=e.return}}()}}(),c0=e=n.current,function(e,t,n,r){for(;null!==c0;){var i=c0,o=i.child;(2064&i.subtreeFlags)!=0&&null!==o?(o.return=i,c0=o):function(e,t,n,r){for(;null!==c0;){var i=c0;if((2048&i.flags)!=0){ex(i);try{(function(e,t,n,r){switch(t.tag){case 0:case 11:case 15:if(2&t.mode){uY=uH();try{dt(9,t)}
6finally{u0(t)}}else dt(9,t)}})(0,i,0,0)}catch(e){fI(i,i.return,e)}eC()}if(i===e)return void(c0=null);var o=i.sibling;if(null!==o)return o.return=i.return,void(c0=o);c0=i.return}}(e,0,0,0)}}(e,n,r,t);var o=d3;d3=[];for(var a=0;a<o.length;a++)(function(e,t){if((4&t.flags)!=0&&12===t.tag){var n=t.stateNode.passiveEffectDuration,r=t.memoizedProps,i=r.id,o=r.onPostCommit,a=uV,s=null===t.alternate?"mount":"update";uG&&(s="nested-update"),"function"==typeof o&&o(i,s,n,a);var l=t.return;e:for(;null!==l;){switch(l.tag){case 3:case 12:l.stateNode.passiveEffectDuration+=n;break e}l=l.return}}})(0,o[a]);null!==nM&&"function"==typeof nM.markPassiveEffectsStopped&&nM.markPassiveEffectsStopped(),fN(n.current,!0),dL=i,ax(),d7?n===fe?d9++:(d9=0,fe=n):d9=0,d5=!1,d7=!1,function(e){if(nk&&"function"==typeof nk.onPostCommitFiberRoot)try{nk.onPostCommitFiberRoot(nS,e)}catch(e){nC||(nC=!0,l("React instrumentation encountered an error: %s",e))}}(n);var s=n.current.stateNode;return s.effectDuration=0,s.passiveEffectDuration=0,!0}()}finally{rn=r,dx.transition=n}}return!1}function fC(e){return null!==dX&&dX.has(e)}var fx=function(e){dZ||(dZ=!0,dJ=e)};function fR(e,t,n){var r=sL(e,u5(e,u3(n,t),1),1),i=fi();null!==r&&(n2(r,1,i),fs(r,i))}function fI(e,t,n){if(nt(null,function(){throw n}),nn(),fr=!1,3!==e.tag){var r=null;for(r=t;null!==r;){if(3===r.tag)return void fR(r,e,n);if(1===r.tag){var i=r.type,o=r.stateNode;if("function"==typeof i.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&!fC(o)){var a=sL(r,u7(r,u3(n,e),1),1),s=fi();return void(null!==a&&(n2(a,1,s),fs(a,s)))}}r=r.return}l("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s",n)}else fR(e,e,n)}function fT(e,t,n){var r=e.pingCache;null!==r&&r.delete(t);var i=fi();n3(e,n),0!==e.tag&&dS()&&null===dR.current&&l("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n  /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act"),dN===e&&(dB&n)===n&&(4===dz||dz===dP&&nQ(dB)&&nm()-dW<500?fb(e,0):dH|=n),fs(e,i)}function fO(e,t){0===t&&(t=(1&e.mode)==0?1:(n=nV,(130023424&(nV<<=1))==0&&(nV=4194304),n));var n,r=fi(),i=sC(e,t);null!==i&&(n2(i,t,r),fs(i,r))}function fP(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),fO(e,n)}function fL(e,t){var n,r=0;switch(e.tag){case 13:n=e.stateNode;var i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==n&&n.delete(t),fO(e,r)}function fN(e,t){ex(e),fD(e,16777216,dy),t&&fD(e,33554432,dA),fD(e,16777216,dv),t&&fD(e,33554432,db),eC()}function fD(e,t,n){for(var r=e,i=null;null!==r;){var o=r.subtreeFlags&t;r!==i&&null!==r.child&&0!==o?r=r.child:((r.flags&t)!=0&&n(r),r=null!==r.sibling?r.sibling:i=r.return)}}var fB,fj=null;function fF(e){if((dL&dT)===dI&&1&e.mode){var t=e.tag;if(2===t||3===t||1===t||0===t||11===t||14===t||15===t){var n=ew(e)||"ReactComponent";if(null!==fj){if(fj.has(n))return;fj.add(n)}else fj=new Set([n]);var r=eE;try{ex(e),l("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{r?ex(e):eC()}}}}fB=function(e,t,n){var r=f9(null,t);try{return cK(e,t,n)}catch(o){if(aW||null!==o&&"object"==typeof o&&"function"==typeof o.then)throw o;if(sb(),lY(),cG(0,t),f9(t,r),2&t.mode&&uZ(t),nt(null,cK,null,e,t,n),t8){var i=nn();"object"==typeof i&&null!==i&&i._suppressLogging&&"object"==typeof o&&null!==o&&!o._suppressLogging&&(o._suppressLogging=!0)}throw o}};var fz,fU=!1;
6function fq(e,t){nx&&e.memoizedUpdaters.forEach(function(n){n4(e,n,t)})}fz=new Set;var fK={};function fH(e,t){var n=dR.current;return null!==n?(n.push(t),fK):nd(e,t)}function fV(e){if(e!==fK)return nf(e)}function f$(){return null!==dR.current}var fW=null,fY=null;function fG(e){if(null===fW)return e;var t=fW(e);return void 0===t?e:t.current}function fQ(e){if(null===fW)return e;var t=fW(e);if(void 0===t){if(null!=e&&"function"==typeof e.render){var n=fG(e.render);if(e.render!==n){var r={$$typeof:W,render:n};return void 0!==e.displayName&&(r.displayName=e.displayName),r}}return e}return t.current}function fZ(e,t){if(null===fW)return!1;var n=e.elementType,r=t.type,i=!1,o="object"==typeof r&&null!==r?r.$$typeof:null;switch(e.tag){case 1:"function"==typeof r&&(i=!0);break;case 0:("function"==typeof r||o===Z)&&(i=!0);break;case 11:(o===W||o===Z)&&(i=!0);break;case 14:case 15:(o===Q||o===Z)&&(i=!0);break;default:return!1}if(i){var a=fW(n);if(void 0!==a&&a===fW(r))return!0}return!1}function fJ(e){null!==fW&&"function"==typeof WeakSet&&(null===fY&&(fY=new WeakSet),fY.add(e))}hn=!1;try{Object.preventExtensions({})}catch(e){hn=!0}function fX(e,t,n,r){this.tag=e,this.key=n,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=r,this.flags=0,this.subtreeFlags=0,this.deletions=null,this.lanes=0,this.childLanes=0,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,hn||"function"!=typeof Object.preventExtensions||Object.preventExtensions(this)}var f0=function(e,t,n,r){return new fX(e,t,n,r)};function f1(e){var t=e.prototype;return!(!t||!t.isReactComponent)}function f2(e,t){var n=e.alternate;null===n?((n=f0(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugSource=e._debugSource,n._debugOwner=e._debugOwner,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue;var r=e.dependencies;switch(n.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 2:case 0:case 15:case 1:n.type=fG(e.type);break;case 11:n.type=fQ(e.type)}return n}function f3(e,t,n,r,i,o){var a,s,u,c,d=2,f=e;if("function"==typeof e)f1(e)&&(d=1),f=fG(f);else if("string"==typeof e)d=5;else e:switch(e){case q:return f4(n.children,i,o,t);case K:d=8,(1&(i|=8))!=0&&(i|=16);break;case H:return a=i,"string"!=typeof n.id&&l('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof n.id),(s=f0(12,n,t,2|a)).elementType=H,s.lanes=o,s.stateNode={effectDuration:0,passiveEffectDuration:0},s;case Y:return(u=f0(13,n,t,i)).elementType=Y,u.lanes=o,u;case G:return(c=f0(19,n,t,i)).elementType=G,c.lanes=o,c;case J:return f8(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case V:d=10;break e;case $:d=9;break e;case W:d=11,f=fQ(f);break e;case Q:d=14;break e;case Z:d=16,f=null;break e}var h="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var p=r?ew(r):null;throw p&&(h+="\n\nCheck the render method of `"+p+"`."),Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+"."+h)}var m=f0(d,n,t,i);return m.elementType=e,m.type=f,m.lanes=o,m._debugOwner=r,m}
6function f6(e,t,n){r=e._owner;var r,i=f3(e.type,e.key,e.props,r,t,n);return i._debugSource=e._source,i._debugOwner=e._owner,i}function f4(e,t,n,r){var i=f0(7,e,r,t);return i.lanes=n,i}function f8(e,t,n,r){var i=f0(22,e,r,t);return i.elementType=J,i.lanes=n,i.stateNode={isHidden:!1},i}function f5(e,t,n){var r=f0(6,e,null,t);return r.lanes=n,r}function f7(e,t,n){var r=f0(4,null!==e.children?e.children:[],e.key,t);return r.lanes=n,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function f9(e,t){return null===e&&(e=f0(2,null,null,0)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function he(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=-1,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=n1(0),this.expirationTimes=n1(-1),this.pendingLanes=0,this.suspendedLanes=0,this.pingedLanes=0,this.expiredLanes=0,this.mutableReadLanes=0,this.finishedLanes=0,this.entangledLanes=0,this.entanglements=n1(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0,this.memoizedUpdaters=new Set;for(var o=this.pendingUpdatersLaneMap=[],a=0;a<nK;a++)o.push(new Set);switch(t){case 1:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case 0:this._debugRootType=n?"hydrate()":"render()"}}function ht(e,t,n,r,i,o,a,s,l,u){var c,d=new he(e,t,n,s,l),f=(1===t?(c=1,!0===o&&(c|=8,c|=16)):c=0,nx&&(c|=2),f0(3,null,null,c));return d.current=f,f.stateNode=d,f.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},sT(f),d}var hn,hr,hi,ho="18.2.0";function ha(e){if(!e)return au;var t=nr(e),n=function(e){if(no(e)!==e||1!==e.tag)throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case 3:return t.stateNode.context;case 1:if(av(t.type))return t.stateNode.__reactInternalMemoizedMergedChildContext}t=t.return}while(null!==t);throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}(t);if(1===t.tag){var r=t.type;if(av(r))return aw(t,r,n)}return n}function hs(e,t,n,r,i,o,a,s,l,u){var c=ht(n,r,!0,e,0,o,0,s,l);c.context=ha(null);var d=c.current,f=fi(),h=fo(d),p=sP(f,h);return p.callback=null!=t?t:null,sL(d,p,h),c.current.lanes=h,n2(c,h,f),fs(c,f),c}function hl(e,t,n,r){!function(e,t){if(nk&&"function"==typeof nk.onScheduleFiberRoot)try{nk.onScheduleFiberRoot(nS,e,t)}catch(e){nC||(nC=!0,l("React instrumentation encountered an error: %s",e))}}(t,e);var i=t.current,o=fi(),a=fo(i);null!==nM&&"function"==typeof nM.markRenderScheduled&&nM.markRenderScheduled(a);var s=ha(n);null===t.context?t.context=s:t.pendingContext=s,eS&&null!==eE&&!hr&&(hr=!0,l("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.",ew(eE)||"Unknown"));var u=sP(o,a);u.payload={element:e},null!==(r=void 0===r?null:r)&&("function"!=typeof r&&l("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r),u.callback=r);var c=sL(i,u,a);return null!==c&&(fa(c,i,a,o),sN(c,i,a)),a}function hu(e){var t=e.current;return t.child?(t.child.tag,t.child.stateNode):null}function hc(e,t){var n,r=e.memoizedState;null!==r&&null!==r.dehydrated&&(r.retryLane=0!==(n=r.retryLane)&&n<t?n:t)}function hd(e,t){hc(e,t);var n=e.alternate;n&&hc(n,t)}function hf(e){var t,n=null!==(t=nu(e))?function e(t){if(5===t.tag||6===t.tag)return t;for(var n=t.child;null!==n;){if(4!==n.tag){var r=e(n);if(null!==r)return r}n=n.sibling}return null}(t):null;return null===n?null:n.stateNode}hr=!1,hi={};var hh,hp,hm,hg,hv,hb,hy,hA,hw,h_=function(e){return null},hE=function(e){return!1},hS=function(e,t,n){var r=t[n],i=eX(e)?e.slice():el({},e);return n+1===t.length?eX(i)?i.splice(r,1):delete i[r]:i[r]=hS(e[r],t,n+1),i},hk=function(e,t){return hS(e,t,0)},hM=function(e,t,n,r){var i=t[r],o=eX(e)?e.slice():el({},e);return r+1===t.length?(o[n[r]]=o[i],eX(o)?o.splice(i,1):delete o[i]):o[i]=hM(e[i],t,n,r+1),o},hC=function(e,t,n){if(t.length===n.length){for(var r=0;r<n.length-1;r++)if(t[r]!==n[r])return void s("copyWithRename() expects paths to be the same except for the deepest key");return hM(e,t,n,0)}s("copyWithRename() expects paths of the same length")},hx=function(e,t,n,r){if(n>=t.length)return r;var i=t[n],o=eX(e)?e.slice():el({},e);return o[i]=hx(e[i],t,n+1,r),o},hR=function(e,t,n){return hx(e,t,0,n)},hI=function(e,t){for(var n=e.memoizedState;null!==n&&t>0;)n=n.next,t--;return n};hh=function(e,t,n,r){var i=hI(e,t);if(null!==i){var o=hR(i.memoizedState,n,r);i.memoizedState=o,i.baseState=o,e.memoizedProps=el({},e.memoizedProps);var a=sC(e,1);null!==a&&fa(a,e,1,-1)}},hp=function(e,t,n){var r=hI(e,t);if(null!==r){var i=hk(r.memoizedState,n);r.memoizedState=i,r.baseState=i,e.memoizedProps=el({},e.memoizedProps);var o=sC(e,1);null!==o&&fa(o,e,1,-1)}},hm=function(e,t,n,r){var i=hI(e,t);if(null!==i){var o=hC(i.memoizedState,n,r);i.memoizedState=o,i.baseState=o,e.memoizedProps=el({},e.memoizedProps);var a=sC(e,1);null!==a&&fa(a,e,1,-1)}},hg=function(e,t,n){e.pendingProps=hR(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=sC(e,1);null!==r&&fa(r,e,1,-1)}
6,hv=function(e,t){e.pendingProps=hk(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=sC(e,1);null!==n&&fa(n,e,1,-1)},hb=function(e,t,n){e.pendingProps=hC(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=sC(e,1);null!==r&&fa(r,e,1,-1)},hy=function(e){var t=sC(e,1);null!==t&&fa(t,e,1,-1)},hA=function(e){h_=e},hw=function(e){hE=e};var hT="function"==typeof reportError?reportError:function(e){console.error(e)};function hO(e){this._internalRoot=e}function hP(e){this._internalRoot=e}function hL(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function hN(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function hD(e){1===e.nodeType&&e.tagName&&"BODY"===e.tagName.toUpperCase()&&l("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),e[o0]&&(e._reactRootContainer?l("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):l("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}hP.prototype.render=hO.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error("Cannot update an unmounted root.");"function"==typeof arguments[1]?l("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):hL(arguments[1])?l("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):void 0!==arguments[1]&&l("You passed a second argument to root.render(...) but it only accepts one argument.");var n=t.containerInfo;if(8!==n.nodeType){var r=hf(t.current);r&&r.parentNode!==n&&l("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}hl(e,t,null,null)},hP.prototype.unmount=hO.prototype.unmount=function(){"function"==typeof arguments[0]&&l("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fm()&&l("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),fp(function(){hl(null,e,null,null)}),t[o0]=null}},hP.prototype.unstable_scheduleHydration=function(e){e&&function(e){for(var t,n=re(),r={blockedOn:null,target:e,priority:n},i=0;i<rf.length&&(t=rf[i].priority,0!==n&&n<t);i++);rf.splice(i,0,r),0===i&&rg(r)}(e)};var hB,hj=o.ReactCurrentOwner;function hF(e){return e?9===e.nodeType?e.documentElement:e.firstChild:null}function hz(){}function hU(e,t,n,r,i){hB(n),a="render",null!==(o=void 0===i?null:i)&&"function"!=typeof o&&l("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,o);var o,a,s,u=n._reactRootContainer;if(u){if("function"==typeof i){var c=i;i=function(){var e=hu(s);c.call(e)}}hl(t,s=u,e,i)}else s=function(e,t,n,r,i){if(i){if("function"==typeof r){var o,a,s,l=r;r=function(){var e=hu(u);l.call(e)}}var u=hs(t,r,e,0,0,!1,0,"",hz);return e._reactRootContainer=u,a=u.current,e[o0]=a,i6(8===e.nodeType?e.parentNode:e),fp(),u}for(;s=e.lastChild;)e.removeChild(s);if("function"==typeof r){var c=r;
6r=function(){var e=hu(d);c.call(e)}}var d=ht(e,0,!1,null,0,!1,0,"",hz);return e._reactRootContainer=d,o=d.current,e[o0]=o,i6(8===e.nodeType?e.parentNode:e),fp(function(){hl(t,d,n,r)}),d}(n,t,e,i,r);return hu(s)}hB=function(e){if(e._reactRootContainer&&8!==e.nodeType){var t=hf(e._reactRootContainer.current);t&&t.parentNode!==e&&l("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var n=!!e._reactRootContainer,r=hF(e);r&&o4(r)&&!n&&l("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),1===e.nodeType&&e.tagName&&"BODY"===e.tagName.toUpperCase()&&l("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")},n5=function(e){switch(e.tag){case 3:var t=e.stateNode;if(ri(t)){var n=n$(t.pendingLanes);0!==n&&(n6(t,1|n),fs(t,nm()),(dL&(4|dT))===dI&&(dQ(),ax()))}break;case 13:fp(function(){var t=sC(e,1);null!==t&&fa(t,e,1,fi())}),hd(e,1)}},n7=function(e){if(13===e.tag){var t=sC(e,134217728);null!==t&&fa(t,e,134217728,fi()),hd(e,134217728)}},n9=function(e){if(13===e.tag){var t=fo(e),n=sC(e,t);null!==n&&fa(n,e,t,fi()),hd(e,t)}},re=function(){return rn},rt=function(e,t){var n=rn;try{return rn=e,t()}finally{rn=n}},"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||l("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),tK=function(e,t,n){var r;switch(t){case"input":return void(eV(e,n),function(e,t){var n=t.name;if("radio"===t.type&&null!=n){for(var r=e;r.parentNode;)r=r.parentNode;y(n,"name");for(var i=r.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),o=0;o<i.length;o++){var a=i[o];if(a!==e&&a.form===e.form){var s=o5(a);if(!s)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");eN(a),eV(a,s)}}}}(e,n));case"textarea":return void e7(e,n);case"select":return void(null!=(r=n.value)&&e2(e,!!n.multiple,r,!1))}},tG=fh,tQ=fp;var hq={usingClientEntryPoint:!1,Events:[o4,o8,o5,tW,tY,fh]};if(t=(e={findFiberByHostInstance:o6,bundleType:1,version:ho,rendererPackageName:"react-dom"}).findFiberByHostInstance,n=o.ReactCurrentDispatcher,!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return l("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{e=el({},e,{getLaneLabelMap:nT,injectProfilingHooks:nI}),nS=t.inject(e),nk=t}catch(e){l("React instrumentation encountered an error: %s.",e)}return!!t.checkDCE}({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:hh,overrideHookStateDeletePath:hp,overrideHookStateRenamePath:hm,overrideProps:hg,overridePropsDeletePath:hv,overridePropsRenamePath:hb,setErrorHandler:hA,setSuspenseHandler:hw,scheduleUpdate:hy,currentDispatcherRef:n,findHostInstanceByFiber:function(e){var t=nc(e);return null===t?null:t.stateNode},findFiberByHostInstance:t||function(e){return null},findHostInstancesForRefresh:function(e,t){var n=new Set,r=new Set(t.map(function(e){return e.current}));return function e(t,n,r){var i=t.child,o=t.sibling,a=t.tag,s=t.type,l=null;switch(a){case 0:case 15:case 1:l=s;break;case 11:l=s.render}var u=!1;null!==l&&n.has(l)&&(u=!0),u?function(e,t){if(!function(e,t){for(var n=e,r=!1;;){if(5===n.tag)r=!0,t.add(n.stateNode);else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)return r;for(;null===n.sibling;){if(null===n.return||n.return===e)return r;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}(e,t))for(var n=e;;){switch(n.tag){case 5:return void t.add(n.stateNode);case 4:case 3:return void t.add(n.stateNode.containerInfo)}if(null===n.return)throw Error("Expected to reach root first.");n=n.return}}(t,r):null!==i&&e(i,n,r),null!==o&&e(o,n,r)}(e.current,r,n),n},scheduleRefresh:function(e,t){if(null!==fW){var n=t.staleFamilies,r=t.updatedFamilies;fM(),fp(function(){(function e(t,n,r){var i=t.alternate,o=t.child,a=t.sibling,s=t.tag,l=t.type,u=null;switch(s){case 0:case 15:case 1:u=l;break;case 11:u=l.render}if(null===fW)throw Error("Expected resolveFamily to be set during hot reload.");var c=!1,d=!1;if(null!==u){var f=fW(u);void 0!==f&&(r.has(f)?d=!0:n.has(f)&&(1===s?d=!0:c=!0))}if(null!==fY&&(fY.has(t)||null!==i&&fY.has(i))&&(d=!0),d&&(t._debugNeedsRemount=!0),d||c){var h=sC(t,1);null!==h&&fa(h,t,1,-1)}null===o||d||e(o,n,r),null!==a&&e(a,n,r)})(e.current,r,n)})}},scheduleRoot:function(e,t){e.context===au&&(fM(),fp(function(){hl(t,e,null,null)}))},setRefreshHandler:function(e){fW=e},getCurrentFiber:function(){return eE},reconcilerVersion:ho})&&m&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&-1===navigator.userAgent.indexOf("Edge")||navigator.userAgent.indexOf("Firefox")>-1)){var hK=window.location.protocol;/^(https?|file):$/.test(hK)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+("file:"===hK?"\nYou might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq":""),"font-weight:bold")}
6_v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hq,_v.createPortal=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!hL(t))throw Error("Target container is not a DOM element.");return function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return b(r)&&l("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",v(r)),{$$typeof:U,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},_v.createRoot=function(e,t){return hq.usingClientEntryPoint||l('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),function(e,t){if(!hL(e))throw Error("createRoot(...): Target container is not a DOM element.");hD(e);var n,r=!1,i="",o=hT;null!=t&&(t.hydrate?s("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):"object"==typeof t&&null!==t&&t.$$typeof===z&&l("You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\n\n  let root = createRoot(domContainer);\n  root.render(<App />);"),!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError),void 0!==t.transitionCallbacks&&t.transitionCallbacks);var a=ht(e,1,!1,null,0,r,0,i,o);return n=a.current,e[o0]=n,i6(8===e.nodeType?e.parentNode:e),new hO(a)}(e,t)},_v.findDOMNode=function(e){var t=hj.current;return null!==t&&null!==t.stateNode&&(t.stateNode._warnedAboutRefsInRender||l("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",ey(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0),null==e?null:1===e.nodeType?e:function(e,t){var n=nr(e);if(void 0===n){if("function"==typeof e.render)throw Error("Unable to find node on an unmounted component.");throw Error("Argument appears to not be a ReactComponent. Keys: "+Object.keys(e).join(","))}var r=nc(n);if(null===r)return null;if(8&r.mode){var i=ew(n)||"Component";if(!hi[i]){hi[i]=!0;var o=eE;try{ex(r),8&n.mode?l("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i):l("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i)}finally{o?ex(o):eC()}}}return r.stateNode}(e,"findDOMNode")},_v.flushSync=function(e){return fm()&&l("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),fp(e)},_v.hydrate=function(e,t,n){if(l("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!hN(t))throw Error("Target container is not a DOM element.");return t[o0]&&void 0===t._reactRootContainer&&l("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?"),hU(null,e,t,!0,n)},_v.hydrateRoot=function(e,t,n){return hq.usingClientEntryPoint||l('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),function(e,t,n){if(!hL(e))throw Error("hydrateRoot(...): Target container is not a DOM element.");hD(e),void 0===t&&l("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var r,i=null!=n&&n.hydratedSources||null,o=!1,a="",s=hT;null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError));var u=hs(t,null,e,1,0,o,0,a,s);if(r=u.current,e[o0]=r,i6(e),i)for(var c=0;c<i.length;c++)(function(e,t){var n=(0,t._getVersion)(t._source);null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)})(u,i[c]);return new hP(u)}(e,t,n)},_v.render=function(e,t,n){if(l("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!hN(t))throw Error("Target container is not a DOM element.");return t[o0]&&void 0===t._reactRootContainer&&l("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?"),hU(null,e,t,!1,n)},_v.unmountComponentAtNode=function(e){if(!hN(e))throw Error("unmountComponentAtNode(...): Target container is not a DOM element.");if(e[o0]&&void 0===e._reactRootContainer&&l("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?"),e._reactRootContainer){var t=hF(e);return t&&!o4(t)&&l("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React."),fp(function(){hU(null,null,e,!1,function(){e._reactRootContainer=null,e[o0]=null})}),!0}var n=hF(e),r=!(!n||!o4(n)),i=1===e.nodeType&&hN(e.parentNode)&&!!e.parentNode._reactRootContainer;return r&&l("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",i?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component."),!1},_v.unstable_batchedUpdates=fh,_v.unstable_renderSubtreeIntoContainer=function(e,t,n,r){return function(e,t,n,r){if(l("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!hN(n))throw Error("Target container is not a DOM element.");if(null==e||!(void 0!==e._reactInternals))throw Error("parentComponent must be a valid React Component");return hU(e,t,n,!1,r)}(e,t,n,r)}
6,_v.version=ho,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),_v)),_s.exports);if("production"===ex.env.NODE_ENV)_a.createRoot=e.createRoot,_a.hydrateRoot=e.hydrateRoot;else{var t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;_a.createRoot=function(n,r){t.usingClientEntryPoint=!0;try{return e.createRoot(n,r)}finally{t.usingClientEntryPoint=!1}},_a.hydrateRoot=function(n,r,i){t.usingClientEntryPoint=!0;try{return e.hydrateRoot(n,r,i)}finally{t.usingClientEntryPoint=!1}}}return _a}());let _A=({link:e,debug:t,installer:n,terminate:r,connectWithExtension:i,preferDesktop:o,i18nInstance:a})=>{let s=null,l=null;yQ("[UI: InstallModal-web: sdkWebInstallModal()] ################## Installing Modal #################"),yQ(`[UI: InstallModal-web: sdkWebInstallModal()] link=${e}`),yQ(`[UI: InstallModal-web: sdkWebInstallModal()] npx uri-scheme open "${e}" --ios`),yQ(`[UI: InstallModal-web: sdkWebInstallModal()] npx uri-scheme open "${e}" --android`),yQ(`[UI: InstallModal-web: sdkWebInstallModal()] adb shell am start -a android.intent.action.VIEW -d "${e}"`);let u=e=>{var t;yQ(`[UI: InstallModal-web: sdkWebInstallModal()] installModal-web unmounting install modal -- shouldTerminate=${e}`,l),(null==l?void 0:l.parentNode)&&(null===(t=l.parentNode)||void 0===t||t.removeChild(l)),l=null,s=null,!0===e&&(null==r||r())};return{mount:r=>{if(yQ("[UI: InstallModal-web: sdkWebInstallModal()] installModal-web mounting install modal",l),l)return l.style.display="block",void(null==s||s.updateQRCode(r));s=new w5.ModalLoader({debug:t,sdkVersion:wc}),l=document.createElement("div"),document.body.appendChild(l),window.extension?s.renderSelectModal({i18nInstance:a,parentElement:l,connectWithExtension:()=>{u(),null==i||i()},onClose:u,link:e}):s.renderInstallModal({i18nInstance:a,parentElement:l,preferDesktop:null!=o&&o,link:e,metaMaskInstaller:n,onClose:u})},unmount:u}},_w=({onDisconnect:e,i18nInstance:t,debug:n})=>{let r=null,i=null,o=()=>{yQ("[UI: pendingModal-web: sdkWebPendingModal()] pendingModal-web unmount",r),(null==r?void 0:r.parentNode)&&r.parentNode.removeChild(r),r=null,i=null},a=e=>{yQ("[UI: pendingModal-web: sdkWebPendingModal()] pendingModal-web updateOTPValue",e),i&&i.updateOTPValue(e)},s=({displayOTP:s}={displayOTP:!0})=>{yQ("[UI: pendingModal-web: sdkWebPendingModal()] pendingModal-web mount",r),r?r.style.display="block":(i=new w5.ModalLoader({debug:n,sdkVersion:wc}),r=document.createElement("div"),document.body.appendChild(r),i.renderPendingModal({i18nInstance:t,parentElement:r,onClose:o,onDisconnect:e,updateOTPValue:a,displayOTP:s}))};return s(),{mount:s,unmount:o,updateOTPValue:a}};function __(e,t){var n,r,i,o;null===(r=(n=e.modals).onPendingModalDisconnect)||void 0===r||r.call(n),null===(o=null===(i=t.pendingModal)||void 0===i?void 0:i.unmount)||void 0===o||o.call(i)}class _E{constructor(t){var n,r,i,o,a,s,l,u,c;this.state={connector:void 0,qrcodeLink:void 0,analytics:void 0,developerMode:!1,authorized:!1,reconnection:!1,preferDesktop:!1,communicationLayerPreference:void 0,platformManager:void 0,pendingModal:void 0,installModal:void 0,otpAnswer:void 0},this.options=t;let d=!0===(null===(n=t.logging)||void 0===n?void 0:n.developerMode)||!0===(null===(r=t.logging)||void 0===r?void 0:r.sdk);this.state.developerMode=d,this.state.analytics=t.analytics,this.state.preferDesktop=null!==(i=t.preferDesktop)&&void 0!==i&&i,this.state.useDeeplink=t.sdk.options.useDeeplink,this.state.communicationLayerPreference=t.communicationLayerPreference,this.state.platformManager=t.platformManager,t.modals.install||(t.modals.install=_A),t.modals.otp||(t.modals.otp=_w),o=this.state,a=this.options,yQ("[RemoteConnection: initializeConnector()] initialize connector"),o.connector=new hO({platformType:a.platformManager.getPlatformType(),communicationLayerPreference:a.communicationLayerPreference,transports:a.transports,dappMetadata:Object.assign(Object.assign({},a.dappMetadata),{source:a._source}),analytics:a.enableAnalytics,communicationServerUrl:a.communicationServerUrl,sdkVersion:wc,context:"dapp",ecies:a.ecies,storage:a.storage,logging:a.logging}),a.timer&&(yQ("[RemoteConnection: initializeConnector()] reset background timer",a.timer),null===(l=null===(s=a.timer)||void 0===s?void 0:s.stopBackgroun
6dTimer)||void 0===l||l.call(s),null===(c=null===(u=a.timer)||void 0===u?void 0:u.runBackgroundTimer)||void 0===c||c.call(u,()=>!1,1e4)),function(t,n){var r;t.connector&&((null===(r=t.platformManager)||void 0===r?void 0:r.isSecure())||t.connector.on(e.EventType.OTP,e=>{var r,i,o,a,s,l;t.otpAnswer!==e&&(yQ("[RemoteConnection: setupListeners() => EventType.OTP] 'OTP' ",e),t.otpAnswer=e,t.pendingModal||(yQ("[RemoteConnection: setupListeners() => EventType.OTP] 'OTP' init pending modal"),t.pendingModal=null===(i=(r=n.modals).otp)||void 0===i?void 0:i.call(r,{i18nInstance:n.i18nInstance,onDisconnect:()=>{var e,r,i,o,a,s;null===(r=(e=n.modals).onPendingModalDisconnect)||void 0===r||r.call(e),null===(o=null===(i=t.pendingModal)||void 0===i?void 0:i.unmount)||void 0===o||o.call(i),null===(s=null===(a=t.pendingModal)||void 0===a?void 0:a.updateOTPValue)||void 0===s||s.call(a,"")}})),null===(a=null===(o=t.pendingModal)||void 0===o?void 0:o.mount)||void 0===a||a.call(o),null===(l=null===(s=t.pendingModal)||void 0===s?void 0:s.updateOTPValue)||void 0===l||l.call(s,e))}),t.connector.on(e.EventType.SDK_RPC_CALL,e=>hP(this,void 0,void 0,function*(){var n,r;yQ("[RemoteConnection: setupListeners() => EventType.SDK_RPC_CALL] 'sdk_rpc_call' requestParam",e);let i=wb.getProvider();yQ("[RemoteConnection: setupListeners() => EventType.SDK_RPC_CALL] 'sdk_rpc_call' result",(yield i.request(e))),null===(r=null===(n=t.pendingModal)||void 0===n?void 0:n.unmount)||void 0===r||r.call(n)})),t.connector.on(e.EventType.AUTHORIZED,()=>hP(this,void 0,void 0,function*(){var e,r,i,o,a;try{yQ("[RemoteConnection: setupListeners() => EventType.AUTHORIZED] 'authorized' closing modals",t.pendingModal,t.installModal),n.enableAnalytics&&(null===(e=t.analytics)||void 0===e||e.send({event:vf.AUTHORIZED}));let s=wb.getProvider();s._setConnected(),null===(i=null===(r=t.pendingModal)||void 0===r?void 0:r.unmount)||void 0===i||i.call(r),null===(a=null===(o=t.installModal)||void 0===o?void 0:o.unmount)||void 0===a||a.call(o,!1),t.otpAnswer=void 0,t.authorized=!0,yQ("[RemoteConnection: setupListeners() => EventType.AUTHORIZED] 'authorized' provider.state",s.getState()),yield s.forceInitializeState()}catch(e){console.log("\uD83D\uDFE0 ~ file: setupListeners.ts:107 ~ state.connector.on ~ err:",e)}})),t.connector.on(e.EventType.CLIENTS_DISCONNECTED,()=>{var n,r,i;yQ(`[RemoteConnection: setupListeners() => EventType.CLIENTS_DISCONNECTED] received '${e.EventType.CLIENTS_DISCONNECTED}'`),(null===(n=t.platformManager)||void 0===n?void 0:n.isSecure())||(wb.getProvider().handleDisconnect({terminate:!1}),null===(i=null===(r=t.pendingModal)||void 0===r?void 0:r.updateOTPValue)||void 0===i||i.call(r,""))}),t.connector.on(e.EventType.TERMINATE,()=>{var e,r,i,o,a,s,l,u;(null===(e=t.connector)||void 0===e?void 0:e.isAuthorized())||n.enableAnalytics&&(null===(r=t.analytics)||void 0===r||r.send({event:vf.REJECTED})),(null===(i=t.platformManager)||void 0===i?void 0:i.isBrowser())?alert("SDK Connection has been terminated from MetaMask."):console.info("SDK Connection has been terminated"),null===(a=null===(o=t.pendingModal)||void 0===o?void 0:o.unmount)||void 0===a||a.call(o),null===(l=null===(s=t.installModal)||void 0===s?void 0:s.unmount)||void 0===l||l.call(s,!0),t.pendingModal=void 0,t.installModal=void 0,t.otpAnswer=void 0,null===(u=t.connector)||void 0===u||u.disconnect({terminate:!0}),t.authorized=!1,wb.getProvider().handleDisconnect({terminate:!0})}))}(this.state,this.options)}startConnection(t){return hP(this,void 0,void 0,function*(){return function(t,n,{initialCheck:r}={}){var i,o,a,s,l,u,c,d,f,h,p,m,g,v;return hP(this,void 0,void 0,function*(){if(!t.connector)throw Error("no connector defined");let b=wb.getProvider();t.authorized=!1,b.emit("connecting");let y=yield null===(i=t.connector)||void 0===i?void 0:i.originatorSessionConnect();yQ(`[RemoteConnection: startConnection()] after originatorSessionConnect initialCheck=${r}`,y);let A=null!==(o=null==y?void 0:y.channelId)&&void 0!==o?o:"",w=null!==(s=null===(a=t.connector.getKeyInfo())||void 0===a?void 0:a.ecies.public)&&void 0!==s?s:"";if(r&&!y||r&&!(null==y?void 0:y.relayPersistence))return Promise.resolve();if(y||r||(A=null!==(l=(yield t.connector.generateChannelIdConnect()).channelId)&&void 0!==l?l:"",w=null!==(c=null===(u=t.connector.getKeyInfo())||void 0===u?void 0:u.ecies.public)&&void 0!==c?c:""),r&&(null==y?void 0:y.channelId))return(null===(d=t.connector)||void 0===d?void 0:d.isConnected())||(yQ(`[RemoteConnection: startConnection()] reconnecting to channel initialCheck=${r}
6`,y),null===(f=t.connector)||void 0===f||f.connectToChannel({channelId:A})),Promise.resolve();!y||(null===(h=t.connector)||void 0===h?void 0:h.isConnected())||(yQ("[RemoteConnection: startConnection()] reconnecting to channel",y),null===(p=t.connector)||void 0===p||p.connectToChannel({channelId:A}));let _=(null===(m=t.platformManager)||void 0===m?void 0:m.isSecure())?"":"&t=q",E=encodeURI(`channelId=${A}&v=2&comm=${null!==(g=t.communicationLayerPreference)&&void 0!==g?g:""}&pubkey=${w}${_}`),S=`${t.useDeeplink?wh:wf}?${E}`;return t.qrcodeLink=S,t.developerMode&&yQ(`[RemoteConnection: startConnection()] qrcodeLink=${S}`),(null===(v=t.platformManager)||void 0===v?void 0:v.isSecure())?function(e,t){var n,r;return hP(this,void 0,void 0,function*(){let i=`${wf}?${t}`,o=`${wh}?${t}`;null===(r=null===(n=e.platformManager)||void 0===n?void 0:n.openDeeplink)||void 0===r||r.call(n,i,o,"_self")})}(t,E):(null==y?void 0:y.lastActive)?function(e,t,n){var r,i,o,a,s,l,u,c,d,f,h,p,m,g;return hP(this,void 0,void 0,function*(){let v=wb.getProvider(),b=Date.now();if(void 0!==n.lastActive&&b-n.lastActive<36e5)return v._setConnected(),e.pendingModal=null===(i=(r=t.modals).otp)||void 0===i?void 0:i.call(r,{i18nInstance:t.i18nInstance,debug:e.developerMode,onDisconnect:()=>__(t,e)}),null===(a=null===(o=e.installModal)||void 0===o?void 0:o.unmount)||void 0===a||a.call(o,!1),null===(l=null===(s=e.pendingModal)||void 0===s?void 0:s.unmount)||void 0===l||l.call(s),null===(c=null===(u=e.pendingModal)||void 0===u?void 0:u.mount)||void 0===c||c.call(u,{displayOTP:!1}),e.authorized=!0,void(e.developerMode&&console.debug("RCPMS::on 'authorized' provider.state",v.getState()));e.pendingModal?null===(f=null===(d=e.pendingModal)||void 0===d?void 0:d.mount)||void 0===f||f.call(d):e.pendingModal=null===(p=(h=t.modals).otp)||void 0===p?void 0:p.call(h,{i18nInstance:t.i18nInstance,debug:e.developerMode,onDisconnect:()=>__(t,e)});let y=yield function(e){return hP(this,void 0,void 0,function*(){for(;void 0===e.otpAnswer;)yield new Promise(e=>setTimeout(()=>e(),1e3));return e.otpAnswer})}(e);e.otpAnswer!==y&&(e.otpAnswer=y,null===(g=null===(m=e.pendingModal)||void 0===m?void 0:m.updateOTPValue)||void 0===g||g.call(m,y))})}(t,n,y):function(t,n,r){return hP(this,void 0,void 0,function*(){return new Promise((i,o)=>{var a,s,l,u;if(!t.connector)return void o(Error("No connector available"));yQ("[RemoteConnection: connectWithModalInstaller()]",{state:t,options:n,linkParams:r});let c=`${t.useDeeplink?wh:wf}?${r}`;t.installModal=null===(s=(a=n.modals).install)||void 0===s?void 0:s.call(a,{i18nInstance:n.sdk.i18nInstance,link:c,preferDesktop:t.preferDesktop,installer:n.getMetaMaskInstaller(),terminate:()=>{yQ("[RemoteConnection: showInstallModal() => terminate()] terminate connection"),n.sdk.terminate()},debug:t.developerMode,connectWithExtension:()=>{var e;return null===(e=n.connectWithExtensionProvider)||void 0===e||e.call(n),!1}}),null===(u=null===(l=t.installModal)||void 0===l?void 0:l.mount)||void 0===u||u.call(l,c),n.sdk.once(e.EventType.PROVIDER_UPDATE,e=>hP(this,void 0,void 0,function*(){yQ("[RemoteConnection: connectWithModalInstaller()] once provider_update -- resolving startConnection promise"),o(e)})),t.connector.once(e.EventType.CLIENTS_READY,()=>hP(this,void 0,void 0,function*(){yQ("[RemoteConnection: connectWithModalInstaller()] once clients_ready -- resolving startConnection promise"),i()}))})})}(t,n,E)})}(this.state,this.options,t)})}showActiveModal(){var e,t,n,r,i;(e=this.state).authorized?yQ("[RemoteConnection: showActiveModal()] already authorized"):e.pendingModal?null===(n=(t=e.pendingModal).mount)||void 0===n||n.call(t):e.installModal&&(null===(i=(r=e.installModal).mount)||void 0===i||i.call(r,e.qrcodeLink||""))}getUniversalLink(){if(!this.state.qrcodeLink)throw Error("connection not started. run startConnection() first.");return this.state.qrcodeLink}getChannelConfig(){var e;return null===(e=this.state.connector)||void 0===e?void 0:e.getChannelConfig()}getKeyInfo(){var e;return null===(e=this.state.connector)||void 0===e?void 0:e.getKeyInfo()}getConnector(){if(!this.state.connector)throw Error("invalid remote connector");return this.state.connector}getPlatformManager(){if(!this.state.platformManager)throw Error("platformManager is not initialized");return this.state.platformManager}isConnected(){var e;return(null===(e=this.state.connector)||void 0===e?void 0:e.isReady())||!1}isAuthorized(){var e;return(null===(e=this.state.connector)||void 0===e?void 0:e.isAuthorized())||!1}isPaused(){var e;return null===(e=this.state.connector)||void 0===e?void 0:e.isPaused()}disconnect(e){var t,n,r;yQ("[RemoteConnection: disconnect()]",e),(null==e?void 0:e.terminate)&&(wb.getProvider().handleDisconnect({terminate:!0}),null===(n=null===(t=this.state.pendingModal)||void 0===t?void 0:t.unmount)||void 0===n||n.call(t),this.state.otpAnswer=void 0),null===(r=this.state.connector)||void 0===r||r.disconnect(e)}}let _S=e=>hP(void 0,void 0,void 0,function*(){let{options:t}=e,{infuraAPIKey:n}=t;if(!n)return;let r={"0x1":`https://mainnet.infura.io/v3/${n}`,"0x5":`https://goerli.infura.io/v3/${n}`,"0x2a":`https://sepolia.infura.io/v3/${n}`,"0xe708":`https://linea-mainnet.infura.io/v3/${n}`,"0xe704":`https://linea-goerli.infura.io/v3/${n}`,"0x89":`https://polygon-mainnet.infura.io/v3/${n}`,"0x13881":`https://polygon-mumbai.infura.io/v3/${n}`,"0x45":`https://optimism-mainnet.infura.io/v3/${n}`,"0x1a4":`https://optimism-goerli.infura.io/v3/${n}`,"0xa4b1":`https://arbitrum-mainnet.infura.io/v3/${n}`,"0x66eed":`https://arbitrum-goerli.infura.io/v3/${n}`,"0x2a15c308d":`https://palm-mainnet.infura.io/v3/${n}`,"0x2a15c3083":`https://palm-testnet.infura.io/v3/${n}`,"0xa86a":`https://avalanche-mainnet.infura.io/v3/${n}`,"0xa869":`https://avalanche-fuji.infura.io/v3/${n}`,"0x4e454152":`https://aurora-mainnet.infura.io/v3/${n}`,"0x4e454153":`https://aurora-testnet.infura.io/v3/${n}`,"0x534e5f4d41494e":`https://starknet-mainnet.infura.io/v3/${n}`,"0x534e5f474f45524c49":`https://starknet-goerli.infura.io/v3/${n}`,"0x534e5f474f45524c4932":`https://starknet-goerli2.infura.io/v3/${n}`,"0xa4ec":`https://celo-mainnet.infura.io/v3/${n}`,"0xaef3":`https://celo-alfajores.infura.io/v3/${n}`};e.options.readonlyRPCMap?e.options.readonlyRPCMap=Object.assign(Object.assign({},e.options.readonlyRPCMap),r):e.options.readonlyRPCMap=r}),_k=e=>hP(void 0,void 0,void 0,function*(){let{options:t}=e,{readonlyRPCMap:n}=t;if(n)try{yQ("[MetaMaskSDK: setupReadOnlyRPCProviders()] Setting up Readonly RPC Providers",n),e.setReadOnlyRPCCalls(!0)}catch(e){throw Error("Invalid Infura Settings")}});function _M(e){return(_M="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 _C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!==_M(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_M(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_M(t)?t:String(t)}(r.key),r)}}var _x=[],_R=_x.forEach,_I=_x.slice,_T=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,_O=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+60*n*1e3)),r&&(i.domain=r),document.cookie=function(e,t,n){var r=n||{};r.path=r.path||"/";var i=encodeURIComponent(t),o="".concat(e,"=").concat(i);if(r.maxAge>0){var a=r.maxAge-0;if(Number.isNaN(a))throw Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(a))}if(r.domain){if(!_T.test(r.domain))throw TypeError("option domain is invali
6d");o+="; Domain=".concat(r.domain)}if(r.path){if(!_T.test(r.path))throw TypeError("option path is invalid");o+="; Path=".concat(r.path)}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw TypeError("option expires is invalid");o+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:case"strict":o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"none":o+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return o}(e,encodeURIComponent(t),i)},_P=function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null},_L={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var n=_P(e.lookupCookie);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&_O(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},_N={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=n.substring(1).split("&"),i=0;i<r.length;i++){var o=r[i].indexOf("=");o>0&&r[i].substring(0,o)===e.lookupQuerystring&&(t=r[i].substring(o+1))}}return t}},_D=null,_B=function(){if(null!==_D)return _D;try{_D="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){_D=!1}return _D},_j={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&_B()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&_B()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},_F=null,_z=function(){if(null!==_F)return _F;try{_F="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){_F=!1}return _F},_U={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&_z()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&_z()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},_q={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)t.push(navigator.languages[n]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},_K={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},_H={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array){if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}}return t}},_V={name:"subdomain",lookup:function(e){var t="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,n="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[t]}},_$=function(){var e,t;function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,n),this.type="languageDetector",this.detectors={},this.init(e,t)}return e=[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e||{languageUtils:{}}
6,this.options=function(e){return _R.call(_I.call(arguments,1),function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])}),e}(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(e){return e.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(_L),this.addDetector(_N),this.addDetector(_j),this.addDetector(_U),this.addDetector(_q),this.addDetector(_K),this.addDetector(_H),this.addDetector(_V)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return e.forEach(function(e){if(t.detectors[e]){var r=t.detectors[e].lookup(t.options);r&&"string"==typeof r&&(r=[r]),r&&(n=n.concat(r))}}),n=n.map(function(e){return t.options.convertDetectedLanguage(e)}),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)}))}}],_C(n.prototype,e),t&&_C(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();_$.type="languageDetector";var _W={DESKTOP:"Desktop",MOBILE:"Mobile",META_MASK_MOBILE_APP:"MetaMask mobile app",SCAN_TO_CONNECT:"Scan to connect and sign with",CONNECT_WITH_EXTENSION:"Connect With MetaMask Extension",INSTALL_MODAL:{TRUSTED_BY_USERS:"Trusted by over 30 million users to buy, store, send and swap crypto securely",LEADING_CRYPTO_WALLET:"The leading crypto wallet & gateway to blockchain apps built on Ethereum Mainnet, Polygon, Optimism, and many other networks",CONTROL_DIGITAL_INTERACTIONS:"Puts you in control of your digital interactions by making power of cryptography more accessible",INSTALL_META_MASK_EXTENSION:"Install MetaMask Extension"},PENDING_MODAL:{OPEN_META_MASK_SELECT_CODE:"Please open the MetaMask wallet app and select the code on the screen OR disconnect",OPEN_META_MASK_CONTINUE:"Open the MetaMask app to continue with your session.",NUMBER_AFTER_OPEN_NOTICE:"If a number doesn't appear after opening MetaMask, please click disconnect and re-scan the QRCode.",DISCONNECT:"Disconnect"},SELECT_MODAL:{CRYPTO_TAKE_CONTROL_TEXT:"Take control of your crypto and explore the blockchain with the wallet trusted by over 30 million people worldwide"},META_MASK_MODAL:{ADDRESS_COPIED:"Address copied to clipboard!",DISCONNECT:"Disconnect",ACTIVE_NETWORK:"Active Network"}},_Y={DESKTOP:"Escritorio",MOBILE:"M\xf3vil",META_MASK_MOBILE_APP:"Aplicaci\xf3n m\xf3vil de MetaMask",SCAN_TO_CONNECT:"Escanear para conectar y firmar con",CONNECT_WITH_EXTENSION:"Conectar con la Extensi\xf3n de MetaMask",INSTALL_MODAL:{TRUSTED_BY_USERS:"Confiado por m\xe1s de 30 millones de usuarios para comprar, almacenar, enviar e intercambiar cripto de manera segura",LEADING_CRYPTO_WALLET:"La principal billetera de criptomonedas y pasarela hacia aplicaciones blockchain construidas en Ethereum Mainnet, Polygon, Optimism y muchas otras redes",CONTROL_DIGITAL_INTERACTIONS:"Te da el control de tus interacciones digitales al hacer que el poder de la criptograf\xeda sea m\xe1s accesible",INSTALL_META_MASK_EXTENSION:"Instalar la Extensi\xf3n de MetaMask"},PENDING_MODAL:{OPEN_META_MASK_SELECT_CODE:"Por favor, abre la aplicaci\xf3n de billetera MetaMask y selecciona el c\xf3digo en la pantalla O desconecta",OPEN_META_MASK_CONTINUE:"Abre la aplicaci\xf3n de MetaMask para continuar con tu sesi\xf3n.",NUMBER_AFTER_OPEN_NOTICE:"Si no aparece un n\xfamero despu\xe9s de abrir MetaMask, por favor haz clic en desconectar y vuelve a escanear el c\xf3digo QR.",DISCONNECT:"Desconectar"},SELECT_MODAL:{CRYPTO_TAKE_CONTROL_TEXT:"Toma el control de tu cripto y explora la blockchain con la billetera en la que conf\xedan m\xe1s de 30 millones de personas en todo el mund
6o"},META_MASK_MODAL:{ADDRESS_COPIED:"\xa1Direcci\xf3n copiada al portapapeles!",DISCONNECT:"Desconectar",ACTIVE_NETWORK:"Red activa"}},_G={DESKTOP:"Bureau",MOBILE:"Mobile",META_MASK_MOBILE_APP:"Application mobile MetaMask",SCAN_TO_CONNECT:"Scannez pour vous connecter et signer avec",CONNECT_WITH_EXTENSION:"Connectez-vous avec l'extension MetaMask",INSTALL_MODAL:{TRUSTED_BY_USERS:"Fait confiance \xe0 plus de 30 millions d'utilisateurs pour acheter, stocker, envoyer et \xe9changer des crypto en toute s\xe9curit\xe9",LEADING_CRYPTO_WALLET:"Le portefeuille crypto leader et la passerelle vers des applications blockchain bas\xe9es sur Ethereum Mainnet, Polygon, Optimism, et de nombreux autres r\xe9seaux",CONTROL_DIGITAL_INTERACTIONS:"Vous donne le contr\xf4le de vos interactions num\xe9riques en rendant la puissance de la cryptographie plus accessible",INSTALL_META_MASK_EXTENSION:"Installez l'extension MetaMask"},PENDING_MODAL:{OPEN_META_MASK_SELECT_CODE:"Veuillez ouvrir l'application MetaMask et s\xe9lectionnez le code \xe0 l'\xe9cran OU d\xe9connectez-vous",OPEN_META_MASK_CONTINUE:"Ouvrez l'application MetaMask pour continuer votre session.",NUMBER_AFTER_OPEN_NOTICE:"Si un num\xe9ro n'appara\xeet pas apr\xe8s avoir ouvert MetaMask, veuillez cliquer sur d\xe9connecter et rescanner le QRCode.",DISCONNECT:"D\xe9connecter"},SELECT_MODAL:{CRYPTO_TAKE_CONTROL_TEXT:"Prenez le contr\xf4le de votre crypto et explorez la blockchain avec le portefeuille fait confiance par plus de 30 millions de personnes \xe0 travers le monde"},META_MASK_MODAL:{ADDRESS_COPIED:"Adresse copi\xe9e dans le presse-papiers!",DISCONNECT:"D\xe9connecter",ACTIVE_NETWORK:"R\xe9seau actif"}},_Q={DESKTOP:"שולחן עבודה",MOBILE:"נייד",META_MASK_MOBILE_APP:"אפליקציית מטא מאסק לנייד",SCAN_TO_CONNECT:"סרוק כדי להתחבר ולחתום עם",CONNECT_WITH_EXTENSION:"התחבר עם התוסף של מטא מאסק",INSTALL_MODAL:{TRUSTED_BY_USERS:"מהימנים על ידי למעלה מ-30 מיליון משתמשים לקנות, לאחסן, לשלוח ולהחליף מטבע קריפטוגרפי בבטחה",LEADING_CRYPTO_WALLET:"ארנק הקריפטו המוביל והשער ליישומי בלוקצ'יין המתוכנתים על אתריום, פוליגון, ורשתות רבות נוספות",CONTROL_DIGITAL_INTERACTIONS:"מכניס אותך לשליטה על האינטראקציות הדיגיטליות שלך על ידי הפיכת כוח הקריפטוגרפיה לנגיש יותר",INSTALL_META_MASK_EXTENSION:"התקן את ההרחבה של מטא מאסק"},PENDING_MODAL:{OPEN_META_MASK_SELECT_CODE:"אנא פתח את אפליקציית ארנק מטא מאסק ובחר את הקוד שמופיע על המסך או התנתק",OPEN_META_MASK_CONTINUE:"פתח את האפליקציה של מטא מאסק כדי להמשיך בפעולה שלך.",NUMBER_AFTER_OPEN_NOTICE:"אם מספר אינו מופיע לאחר פתיחת מטא מאסק, אנא לחץ על התנתקות וסרוק מחדש את ה-QRCode.",DISCONNECT:"התנתק"},SELECT_MODAL:{CRYPTO_TAKE_CONTROL_TEXT:"קח שליטה על הקריפטו שלך וחקור את הבלוקצ'יין עם הארנק האמין שבשימוש על ידי למעלה מ-30 מיליון אנשים ברחבי העולם"},META_MASK_MODAL:{ADDRESS_COPIED:"הכתובת הועתקה ללוח!",DISCONNECT:"התנתק",ACTIVE_NETWORK:"רשת פעילה"}},_Z={DESKTOP:"Desktop",MOBILE:"Mobile",META_MASK_MOBILE_APP:"App mobile MetaMask",SCAN_TO_CONNECT:"Scansiona per connetterti e firmare con",CONNECT_WITH_EXTENSION:"Connettiti con l'estensione MetaMask",INSTALL_MODAL:{TRUSTED_BY_USERS:"Ritenuto affidabile da oltre 30 milioni di utenti per acquistare, conservare, inviare e scambiare cripto in modo sicuro",LEADING_CRYPTO_WALLET:"Il principale portafoglio cripto e gateway per applicazioni blockchain funzionanti su Ethereum Mainnet, Polygon, Optimism e molte altre reti",CONTROL_DIGITAL_INTERACTIONS:"Ti da il controllo delle tue interazioni digitali rendendo piu' accessibile il potere della crittografia",INSTALL_META_MASK_EXTENSION:"Installa l'estensione MetaMask"},PENDING_MODAL:{OPEN_META_MASK_SELECT_CODE:"Si prega di aprire l'app mobile MetaMask Wallet e selezionare il codice sullo schermo OPPURE scollegarsi",OPEN_META_MASK_CONTINUE:"Apri l'app mobile MetaMask per continuare con la tua sessione.",NUMBER_AFTER_OPEN_NOTICE:"Se, dopo aver aperto MetaMask, non appare alcun numero, si prega di fare clic su disconnetti e ris canzionare il QRCode.",DISCONNECT:"Disconnetti"},SELECT_MODAL:{CRYPTO_TAKE_CONTROL_TEXT:"Prendi il controllo delle tue cripto e esplora la blockchain con il portafoglio ritenuto affidabile da oltre 30 milioni di persone in tutto il mondo"},META_MASK_MODAL:{ADDRESS_COPIED:"Indirizzo copiato negli appunti!",DISCONNECT:"Disconnetti",ACTIVE_NETWORK:"Rete attiva"}},_J={DESKTOP:"Desktop",MOBILE:"M\xf3vel",META_MASK_MOBILE_APP:"Aplicativo m\xf3vel MetaMask",SCAN_TO_CONNECT:"Escanear para conectar e assinar com",CONNECT_WITH_EXTENSION:"Conectar com a extens\xe3o MetaMask",INSTALL_MODAL:{TRUSTED_BY_USERS:"Confiado por mais de 30 milh\xf5es de usu\xe1rios para comprar, armazenar, enviar e trocar cripto com seguran\xe7a",LEADING_CRYPTO_WALLET:"A principal carteira de cripto & portal para aplicativos blockchain constru\xeddos em Ethereum Mainnet, Polygon, Optimism, e muitas outras redes",CONTROL_DIGITAL_INTERACTIONS:"Coloca voc\xea no controle de suas intera\xe7\xf5es digitais, tornando o poder da criptografia mais acess\xedvel",INSTALL_META_MASK_EXTENSION:"Instalar a extens\xe3o MetaMask"},PENDING_MODAL:{OPEN_META_MASK_SELECT_CODE:"Por favor, abra o aplicativo MetaMask e selecione o c\xf3digo na tela OU desconecte",OPEN_META_MASK_CONTINUE:"Abra o aplicativo MetaMask para continuar sua sess\xe3o.",NUMBER_AFTER_OPEN_NOTICE:"Se um n\xfamero n\xe3o aparecer ap\xf3s abrir o MetaMask, por favor clique em desconectar e re-escaneie o QRCode.",DISCONNECT:"Desconectar"},SELECT_MODAL:{CRYPTO_TAKE_CONTROL_TEXT:"Assuma o controle de sua cripto e explore a blockchain com a carteira confiada por mais de 30 milh\xf5es de pessoas em todo o mundo"},META_MASK_MODAL:{ADDRESS_COPIED:"Endere\xe7o copiado para a \xe1rea de transfer\xeancia!",DISCONNECT:"Desconectar",ACTIVE_NETWORK:"Rede ativa"}},_X={DESKTOP:"Masa\xfcst\xfc",MOBILE:"Mobil",META_MASK_MOBILE_APP:"MetaMask mobil uygulama",SCAN_TO_CONNECT:"Bağlanmak ve imzalamak i\xe7in tarayın",CONNECT_WITH_EXTENSION:"MetaMask Eklentisi ile Bağlan",INSTALL_MODAL:{TRUSTED_BY_USERS:"Kriptoyu g\xfcvenle satın almak, saklamak, g\xf6ndermek ve değiştirmek i\xe7in 30 milyondan fazla kullanıcı tarafından g\xfcvenilir",LEADING_CRYPTO_WALLET:"Ethereum Ana Ağı, Polygon, Optimism ve bir\xe7ok diğer ağda kurulu blockchain uygulamalarına erişim sağlayan \xf6nc\xfc kripto c\xfczdanı",CONTROL_DIGITAL_INTERACTIONS:"Kriptografinin g\xfcc\xfcn\xfc daha erişilebilir kılarak dijital etkileşimlerinizin kontrol\xfcn\xfc size verir",INSTALL_META_MASK_EXTENSION:"MetaMask Eklentisini Y\xfckleyin"},PENDING_MODAL:{OPEN_META_MASK_SELECT_CODE:"L\xfctfen MetaMask c\xfczdan uygulamasını a\xe7ın ve ekrandaki kodu se\xe7in YA DA bağlantıyı kesin",OPEN_META_MASK_CONTINUE:"Oturumunuzla devam etmek i\xe7in MetaMask uygulamasını a\xe7ın.",NUMBER_AFTER_OPEN_NOTICE:"MetaMask'ı a\xe7tıktan sonra bir numara g\xf6r\xfcnmezse, l\xfctfen bağlantıyı kesin ve QR Kodunu tekrar tarayın.",DISCONNECT:"Bağlantıyı Kes"},SELECT_MODAL:{CRYPTO_TAKE_CONTROL_TEXT:"Kriptonuzu kontrol edin ve d\xfcnya genelinde 30 milyondan fazla kişi tarafından g\xfcvenilen c\xfczdanla blockchain'i keşfedin"},META_MASK_MODAL:{ADDRESS_COPIED:"Adres panoya kopyalandı!",DISCONNECT:"Bağlantıyı Kes",ACTIVE_NETWORK:"Aktif Ağ"}};class _0 extends Ac{constructor(e={storage:{enabled:!0},injectProvider:!0,forceInjectProvider:!1,enableAnalytics:!0,shouldShimWeb3:!0,useDeeplink:!1,dappMetadata:{name:"",url:""},_source:wd,i18nOptions:{enabled:!1}}){var t,n,r,i;super(),this.extensionActive=!1,this._initialized=!1,this.sdkInitPromise=void 0,this.debug=!1,this.readonlyRPCCalls=!1,this.defaultReadOnlyChainId="0x1",this.i18nInstance=wl(),this.availableLanguages=["en"],vT.disable();let o=!0===(null===(t=e.logging)||void 0===t?void 0:t.developerMode);if(((null===(n=e.logging)||void 0===n?void 0:n.sdk)||o)&&vT.enable("MM_SDK"),yQ("[MetaMaskSDK: constructor()]: begin."),this.setMaxListeners(50),!(null===(r=e.dappMetadata)||void 0===r?void 0:r.name)&&!(null===(i=e.dappMetadata)||void 0===i?void 0:i.url)){if("undefined"==typeof window||"undefined"==typeof document)throw Error("You must provide dAppMetadata option (name and/or url)");e.dappMetadata={url:window.location.href,name:document.title}}if(e.defaultReadOnlyChainId){if("number"==typeof e.defaultReadOnlyChainId)this.defaultReadOnlyChainId=`0
6x${e.defaultReadOnlyChainId.toString(16)}`;else if("string"==typeof e.defaultReadOnlyChainId&&!e.defaultReadOnlyChainId.startsWith("0x"))throw Error("Invalid defaultReadOnlyChainId, must start with '0x'");this.defaultReadOnlyChainId=e.defaultReadOnlyChainId.toString()}this.options=e,this.options._source||(e._source=wd),this.init().then(()=>{yQ("[MetaMaskSDK: constructor()]: initialized successfully."),"undefined"!=typeof window&&(window.mmsdk=this)}).catch(e=>{console.error("[MetaMaskSDK: constructor()] error during initialization",e)})}init(){return hP(this,void 0,void 0,function*(){return function(t){var n;return hP(this,void 0,void 0,function*(){if("undefined"!=typeof window&&(null===(n=window.mmsdk)||void 0===n?void 0:n.isInitialized()))return yQ("[MetaMaskSDK: initializeMetaMaskSDK()] already initialized"),Promise.resolve(window.mmsdk);if(t._initialized)return yQ("[MetaMaskSDK: initializeMetaMaskSDK()] already initialized"),t.sdkInitPromise;if(t.sdkInitPromise)return yQ("[MetaMaskSDK: initializeMetaMaskSDK()] already initializing"),t.sdkInitPromise;try{t.sdkInitPromise=function(t){var n,r,i,o,a,s,l,u,c,d;return hP(this,void 0,void 0,function*(){let{options:f}=t;f.logging=null!==(n=f.logging)&&void 0!==n?n:{},f.communicationLayerPreference=null!==(r=f.communicationLayerPreference)&&void 0!==r?r:e.CommunicationLayerPreference.SOCKET,void 0!==f.enableDebug&&(vT.enable("MM_SDK"),console.warn("enableDebug is removed. Please use enableAnalytics instead.")),f.enableAnalytics=null===(i=f.enableAnalytics)||void 0===i||i,f.injectProvider=null===(o=f.injectProvider)||void 0===o||o,f.shouldShimWeb3=null===(a=f.shouldShimWeb3)||void 0===a||a,f.useDeeplink=null!==(s=f.useDeeplink)&&void 0!==s&&s,f.storage=null!==(l=f.storage)&&void 0!==l?l:{enabled:!0};let h=!0===(null===(u=f.logging)||void 0===u?void 0:u.developerMode);t.debug=(null===(c=f.logging)||void 0===c?void 0:c.sdk)||h,yQ("[MetaMaskSDK: performSDKInitialization()] options",t.options);let p=Object.assign({},f.logging);h&&(p.sdk=!0,p.eciesLayer=!0,p.keyExchangeLayer=!0,p.remoteLayer=!0,p.serviceLayer=!0,p.plaintext=!0),yield function(e){var t,n,r;return hP(this,void 0,void 0,function*(){let i=null!==(t=e.options.i18nOptions)&&void 0!==t?t:{},o=i.enabled;yield e.i18nInstance.use(_$).init({debug:null!==(n=i.debug)&&void 0!==n&&n,compatibilityJSON:"v3",fallbackLng:"en",interpolation:{escapeValue:!1},resources:o?{en:{translation:_W},es:{translation:_Y},it:{translation:_Z},fr:{translation:_G},pt:{translation:_J},tr:{translation:_X},he:{translation:_Q}}:{en:{translation:_W}},detection:{order:["localStorage","navigator"],lookupLocalStorage:"MetaMaskSDKLng",caches:["localStorage"]}}),e.availableLanguages=Object.keys(null!==(r=e.i18nInstance.services.resourceStore.data)&&void 0!==r?r:{})})}(t),yield function(e){var t;return hP(this,void 0,void 0,function*(){let{options:n}=e;e.platformManager=new w$({useDeepLink:null!==(t=n.useDeeplink)&&void 0!==t&&t,preferredOpenLink:n.openDeeplink,wakeLockStatus:n.wakeLockType,debug:e.debug})})}(t),yield function(e){var t,n,r,i,o,a,s,l,u;return hP(this,void 0,void 0,function*(){let{options:c}=e,d=null===(t=e.platformManager)||void 0===t?void 0:t.getPlatformType();e.analytics=new wk({serverUrl:null!==(n=c.communicationServerUrl)&&void 0!==n?n:hb,enabled:c.enableAnalytics,originatorInfo:{url:null!==(r=c.dappMetadata.url)&&void 0!==r?r:"",title:null!==(i=c.dappMetadata.name)&&void 0!==i?i:"",dappId:"undefined"==typeof window||void 0===window.location?null!==(l=null!==(a=null===(o=c.dappMetadata)||void 0===o?void 0:o.name)&&void 0!==a?a:null===(s=c.dappMetadata)||void 0===s?void 0:s.url)&&void 0!==l?l:"unkown":window.location.hostname,platform:null!=d?d:"",source:null!==(u=c._source)&&void 0!==u?u:""}})})}(t),yield function(e){var t;return hP(this,void 0,void 0,function*(){let{options:n}=e;!0!==(null===(t=n.storage)||void 0===t?void 0:t.enabled)||n.storage.storageManager||(n.storage.storageManager=As(n.storage))})}(t),yield function(e){return hP(this,void 0,void 0,function*(){let{options:t}=e,n=/^(http|https):\/\/[^\s]*$/;if(t.dappMetadata){t.dappMetadata.iconUrl&&!n.test(t.dappMetadata.iconUrl)&&(console.warn("Invalid dappMetadata.iconUrl: URL must start with http:// or https://"),t.dappMetadata.iconUrl=void 0),t.dappMetadata.base64Icon&&t.dappMetadata.base64Icon.length>163400&&(console.warn("Invalid dappMetadata.base64Icon: Base64-encoded icon string length must be less than 163400 characters"),t.dappMetadata.base64Icon=void 0),t.dappMetadata.url&&!n.test(t.dappMetadata.url)&&console.warn("Invalid dappMetadata.url: URL must start with http:// or https://");let e=wM();if(e&&!t.dappMetadata.iconUrl&&!t.dappMetadata.base64Icon){let n=`${window.location.protocol}//${window.location.host}${e}`;t.dappMetadata.iconUrl=n}}e.dappMetadata=t.dappMetadata})}(t),yield _S(t),yield _k(t);let{metamaskBrowserExtension:m,preferExtension:g,shouldReturn:v}=yield function(e){var t,n,r,i;return hP(this,void 0,void 0,function*(){let{options:o}=e,a,s=!1,l=!1;if("undefined"==typeof window||!window.ethereum||(null===(t=e.platformManager)||void 0===t?void 0:t.isMetaMaskMobileWebView()))(null===(n=e.platformManager)||void 0===n?void 0:n.isMetaMaskMobileWebView())&&(null===(r=e.anal
6ytics)||void 0===r||r.send({event:vf.SDK_USE_INAPP_BROWSER}),e.activeProvider=wC({provider:window.ethereum,sdkInstance:e}),e._initialized=!0,l=!0);else{s="extension"===localStorage.getItem(An);try{a=yield function({mustBeMetaMask:e,sdkInstance:t}){return hP(this,void 0,void 0,function*(){let n;if("undefined"==typeof window)throw Error("window not available");try{return n=yield new Promise((e,t)=>{let n=setTimeout(()=>{t(Error("eip6963RequestProvider timed out"))},500);window.addEventListener(wz.Announce,t=>{let{detail:{info:r,provider:i}={}}=t,{name:o,rdns:a,uuid:s}=null!=r?r:{};wm.test(s)&&o.startsWith(wp.NAME)&&a===wp.RDNS&&(clearTimeout(n),e(i))}),window.dispatchEvent(new Event(wz.Request))}),wC({provider:n,sdkInstance:t})}catch(r){let{ethereum:n}=window;if(!n)throw Error("Ethereum not found in window object");if("providers"in n){if(Array.isArray(n.providers)){let r=e?n.providers.find(e=>e.isMetaMask):n.providers[0];if(!r)throw Error("No suitable provider found");return wC({provider:r,sdkInstance:t})}}else if(e&&!n.isMetaMask)throw Error("MetaMask provider not found in Ethereum");return wC({provider:n,sdkInstance:t})}})}({mustBeMetaMask:!0,sdkInstance:e}),window.extension=a,a.on(Ao.CHAIN_CHANGED,t=>{yQ(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE chainChanged chainId=${t}`),e.sdkProvider&&e.getMobileProvider().emit(Ao.CHAIN_CHANGED,t)}),a.on(Ao.ACCOUNTS_CHANGED,t=>{yQ(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE accountsChanged accounts=${t}`),e.sdkProvider&&e.getMobileProvider().emit(Ao.ACCOUNTS_CHANGED,t)}),a.on(Ao.DISCONNECT,t=>{yQ(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE disconnect error=${t}`),e.sdkProvider&&e.getMobileProvider().emit(Ao.DISCONNECT,t)}),a.on(Ao.CONNECT,t=>{yQ(`[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE connect args=${t}`),e.sdkProvider&&e.getMobileProvider().emit(Ao.CONNECT,t)}),a.on(Ao.CONNECTED,t=>{yQ("[MetaMaskSDK: setupExtensionPreferences()] PROPAGATE connected",t),e.sdkProvider&&e.getMobileProvider().emit(Ao.CONNECTED,t)})}catch(e){window.extension=void 0}wb.destroy()}return a&&o.extensionOnly&&(yQ("[MetaMaskSDK: setupExtensionPreferences()] EXTENSION ONLY --- prevent sdk initialization"),null===(i=e.analytics)||void 0===i||i.send({event:vf.SDK_USE_EXTENSION}),e.activeProvider=a,e.extensionActive=!0,e.extension=a,e._initialized=!0,l=!0),{preferExtension:s,shouldReturn:l,metamaskBrowserExtension:a}})}(t);if(v)yQ("[MetaMaskSDK: performSDKInitialization()] shouldReturn=true --- prevent sdk initialization");else{yield function(t,n){var r,i,o,a,s;return hP(this,void 0,void 0,function*(){let{options:l}=t,u=Object.assign({},l.logging);t.remoteConnection=new _E({i18nInstance:t.i18nInstance,preferDesktop:null!==(r=l.preferDesktop)&&void 0!==r&&r,communicationLayerPreference:null!==(i=l.communicationLayerPreference)&&void 0!==i?i:e.CommunicationLayerPreference.SOCKET,analytics:t.analytics,dappMetadata:l.dappMetadata,_source:l._source,enableAnalytics:null===(o=l.enableAnalytics)||void 0===o||o,timer:l.timer,sdk:t,platformManager:t.platformManager,transports:l.transports,communicationServerUrl:l.communicationServerUrl,storage:null!==(a=l.storage)&&void 0!==a?a:{enabled:!0},getMetaMaskInstaller:()=>{if(!t.installer)throw Error("Invalid SDK status -- installer not initialized");return t.installer},logging:u,connectWithExtensionProvider:void 0===n?void 0:()=>wv(t),modals:Object.assign(Object.assign({},l.modals),{onPendingModalDisconnect:t.terminate.bind(t)})}),t.installer=new w2({remote:t.remoteConnection,preferDesktop:null!==(s=l.preferDesktop)&&void 0!==s&&s,platformManager:t.platformManager,debug:t.debug})})}(t,m),yield function(t){var n,r,i;return hP(this,void 0,void 0,function*(){var o,a,s,l;let{options:u}=t,c={communicationLayerPreference:null!==(n=u.communicationLayerPreference)&&void 0!==n?n:e.CommunicationLayerPreference.SOCKET,platformManager:t.platformManager,sdk:t,checkInstallationOnAllCalls:u.checkInstallationOnAllCalls,injectProvider:null===(r=u.injectProvider)||void 0===r||r,shouldShimWeb3:null===(i=u.shouldShimWeb3)||void 0===i||i,installer:t.installer,remoteConnection:t.remoteConnection,debug:t.debug},d=yield wS(c);t.activeProvider=d,null===(a=null===(o=t.remoteConnection)||void 0===o?void 0:o.getConnector())||void 0===a||a.on(e.EventType.CONNECTION_STATUS,n=>{t.emit(e.EventType.CONNECTION_STATUS,n)}),null===(l=null===(s=t.remoteConnection)||void 0===s?void 0:s.getConnector())||void 0===l||l.on(e.EventType.SERVICE_STATUS,n=>{t.emit(e.EventType.SERVICE_STATUS,n)})})}(t),yield function(e,t){var n,r;return hP(this,void 0,void 0,function*(){let{options:i}=e;t?(yQ("[MetaMaskSDK: handleAutoAndExtensionConnections()] preferExtension is detected -- connect with it."),null===(n=e.analytics)||void 0===n||n.send({event:vf.SDK_EXTENSION_UTILIZED}
6),wv(e).catch(e=>{console.warn("Can't connect with MetaMask extension...",e),localStorage.removeItem(An)})):i.checkInstallationImmediately&&((null===(r=e.platformManager)||void 0===r?void 0:r.isDesktopWeb())?(yQ("[MetaMaskSDK: handleAutoAndExtensionConnections()] checkInstallationImmediately"),e.connect().catch(e=>{yQ(`[MetaMaskSDK: handleAutoAndExtensionConnections()] checkInstallationImmediately --- IGNORED --- error on autoconnect _err=${e}`)})):console.warn("[handleAutoAndExtensionConnections()] checkInstallationImmediately --- IGNORED --- only for web desktop")),e._initialized=!0})}(t,g);try{yield null===(d=t.remoteConnection)||void 0===d?void 0:d.startConnection({initialCheck:!0})}catch(e){console.error("[MetaMaskSDK: setupRemoteConnectionAndInstaller()] Error while checking installation",e)}t.emit(e.EventType.PROVIDER_UPDATE,e.PROVIDER_UPDATE_TYPE.INITIALIZED)}})}(t),yield t.sdkInitPromise}catch(e){throw console.error(e),e}return t.sdkInitPromise})}(this)})}isExtensionActive(){return this.extensionActive}connect(){return hP(this,void 0,void 0,function*(){return function(e){return hP(this,void 0,void 0,function*(){if(e._initialized||(yQ("[MetaMaskSDK: connect()] provider not ready -- wait for init()"),yield e.init()),yQ(`[MetaMaskSDK: connect()] isExtensionActive=${e.isExtensionActive()} activeProvider`,e.activeProvider),!e.activeProvider)throw Error("SDK state invalid -- undefined provider");return e.activeProvider.request({method:y5.ETH_REQUESTACCOUNTS,params:[]})})}(this)})}connectAndSign({msg:e}){return hP(this,void 0,void 0,function*(){return function({instance:e,msg:t}){return hP(this,void 0,void 0,function*(){if(e._initialized||(yQ("[MetaMaskSDK: connectAndSign()] provider not ready -- wait for init()"),yield e.init()),yQ(`[MetaMaskSDK: connectAndSign()] activeProvider=${e.activeProvider}`),!e.activeProvider)throw Error("SDK state invalid -- undefined provider");return e.activeProvider.request({method:y5.METAMASK_CONNECTSIGN,params:[t]})})}({instance:this,msg:e})})}connectWith(e){return hP(this,void 0,void 0,function*(){return function({instance:e,rpc:t}){return hP(this,void 0,void 0,function*(){if(e._initialized||(yQ("[MetaMaskSDK: connectWith()] provider not ready -- wait for init()"),yield e.init()),yQ(`[MetaMaskSDK: connectWith()] method: ${t.method} rpc=${t}`),!e.activeProvider)throw Error("SDK state invalid -- undefined provider");return e.activeProvider.request({method:y5.METAMASK_CONNECTWITH,params:[t]})})}({instance:this,rpc:e})})}resume(){return function(e){var t,n,r;return hP(this,void 0,void 0,function*(){if(!(null===(n=null===(t=e.remoteConnection)||void 0===t?void 0:t.getConnector())||void 0===n?void 0:n.isReady()))return yQ("[MetaMaskSDK: resume()] channel is not ready -- starting connection"),void(null===(r=e.remoteConnection)||void 0===r||r.startConnection());yQ("[MetaMaskSDK: resume()] channel is ready")})}(this)}disconnect(){console.warn("MetaMaskSDK.disconnect() is deprecated, use terminate()"),this.terminate()}isAuthorized(){var e;null===(e=this.remoteConnection)||void 0===e||e.isAuthorized()}terminate(){return function(t){var n,r;if(!(null===(n=t.platformManager)||void 0===n?void 0:n.isMetaMaskMobileWebView())){if(wg&&(window.localStorage.removeItem(An),window.localStorage.removeItem(Ai),window.localStorage.removeItem(Ar)),t.extensionActive)return t.options.extensionOnly?void yQ("[MetaMaskSDK: terminate()] extensionOnly --- prevent switching providers"):(t.activeProvider=t.sdkProvider,window.ethereum=t.activeProvider,t.extensionActive=!1,void t.emit(e.EventType.PROVIDER_UPDATE,e.PROVIDER_UPDATE_TYPE.TERMINATE));t.emit(e.EventType.PROVIDER_UPDATE,e.PROVIDER_UPDATE_TYPE.TERMINATE),yQ(`[MetaMaskSDK: terminate()] remoteConnection=${t.remoteConnection}`),null===(r=t.remoteConnection)||void 0===r||r.disconnect({terminate:!0,sendMessage:!0})}}(this)}isInitialized(){return this._initialized}setReadOnlyRPCCalls(e){this.readonlyRPCCalls=e}hasReadOnlyRPCCalls(){return this.readonlyRPCCalls}
6getProvider(){if(this.activeProvider)return this.activeProvider;console.warn("MetaMaskSDK: No active provider found")}getMobileProvider(){if(!this.sdkProvider)throw Error("SDK state invalid -- undefined mobile provider");return this.sdkProvider}getUniversalLink(){var e;let t=null===(e=this.remoteConnection)||void 0===e?void 0:e.getUniversalLink();if(!t)throw Error("No Universal Link available, please call eth_requestAccounts first.");return t}getChannelId(){var e,t;return null===(t=null===(e=this.remoteConnection)||void 0===e?void 0:e.getChannelConfig())||void 0===t?void 0:t.channelId}getRPCHistory(){var e,t;return null===(t=null===(e=this.remoteConnection)||void 0===e?void 0:e.getConnector())||void 0===t?void 0:t.getRPCMethodTracker()}getVersion(){return wc}getWalletStatus(){var e,t;return null===(t=null===(e=this.remoteConnection)||void 0===e?void 0:e.getConnector())||void 0===t?void 0:t.getConnectionStatus()}_getChannelConfig(){var e;return null===(e=this.remoteConnection)||void 0===e?void 0:e.getChannelConfig()}_ping(){var e,t;null===(t=null===(e=this.remoteConnection)||void 0===e?void 0:e.getConnector())||void 0===t||t.ping()}_keyCheck(){var e,t;null===(t=null===(e=this.remoteConnection)||void 0===e?void 0:e.getConnector())||void 0===t||t.keyCheck()}_getServiceStatus(){var e,t;return null===(t=null===(e=this.remoteConnection)||void 0===e?void 0:e.getConnector())||void 0===t?void 0:t.getServiceStatus()}_getRemoteConnection(){return this.remoteConnection}_getDappMetadata(){return this.dappMetadata}_getKeyInfo(){var e;return null===(e=this.remoteConnection)||void 0===e?void 0:e.getKeyInfo()}_resetKeys(){var e,t;null===(t=null===(e=this.remoteConnection)||void 0===e?void 0:e.getConnector())||void 0===t||t.resetKeys()}_getConnection(){return this.remoteConnection}}e.DEFAULT_SERVER_URL=hb,e.MetaMaskSDK=_0,e.SDKProvider=Al,e.default=_0,Object.defineProperty(e,"__esModule",{value:!0})}(t)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.