@snapshot-labs/snapshot.js 0.4.102 → 0.4.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/snapshot.cjs.js +23 -8
- package/dist/snapshot.esm.js +23 -8
- package/dist/snapshot.min.js +5 -5
- package/package.json +3 -3
- package/src/networks.json +450 -434
package/dist/snapshot.min.js
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
|
|
13
13
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
14
14
|
and limitations under the License.
|
|
15
|
-
***************************************************************************** */var t=function(){return t=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},t.apply(this,arguments)};function e(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))}function r(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function n(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function i(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(n(arguments[e]));return t}var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function a(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach((function(r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})})),e}function u(t){var e={exports:{}};return t(e,e.exports),e.exports}var h=u((function(t,e){var r="undefined"!=typeof self?self:o,n=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();!function(t){!function(e){var r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,i="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),o="FormData"in t,s="ArrayBuffer"in t;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function h(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function l(t){return"string"!=typeof t&&(t=String(t)),t}function c(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function f(t){this.map={},t instanceof f?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function d(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function p(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function m(t){var e=new FileReader,r=p(e);return e.readAsArrayBuffer(t),r}function y(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&i&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=y(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=y(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var t=d(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var t,e,r,n=d(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=p(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(t,e){t=h(t),e=l(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},f.prototype.delete=function(t){delete this.map[h(t)]},f.prototype.get=function(t){return t=h(t),this.has(t)?this.map[t]:null},f.prototype.has=function(t){return this.map.hasOwnProperty(h(t))},f.prototype.set=function(t,e){this.map[h(t)]=l(e)},f.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},f.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),c(t)},f.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),c(t)},f.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),c(t)},n&&(f.prototype[Symbol.iterator]=f.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(t,e){var r,n,i=(e=e||{}).body;if(t instanceof w){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new f(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new f(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),v.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function A(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new f(e.headers),this.url=e.url||"",this._initBody(t)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},g.call(w.prototype),g.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},A.error=function(){var t=new A(null,{status:0,statusText:""});return t.type="error",t};var _=[301,302,303,307,308];A.redirect=function(t,e){if(-1===_.indexOf(e))throw new RangeError("Invalid status code");return new A(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function E(t,r){return new Promise((function(n,o){var s=new w(t,r);if(s.signal&&s.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new f,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();e.append(n,i)}})),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;n(new A(i,r))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&i&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",u)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}E.polyfill=!0,t.fetch||(t.fetch=E,t.Headers=f,t.Request=w,t.Response=A),e.Headers=f,e.Request=w,e.Response=A,e.fetch=E,Object.defineProperty(e,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;(e=i.fetch).default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e})),l=s(h);let c=!1,f=!1;const d={debug:1,default:2,info:2,warning:3,error:4,off:5};let p=d.default,m=null;const y=function(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(r){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var g,v;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(g||(g={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED"}(v||(v={}));const w="0123456789abcdef";class b{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const r=t.toLowerCase();null==d[r]&&this.throwArgumentError("invalid log level name","logLevel",t),p>d[r]||console.log.apply(console,e)}debug(...t){this._log(b.levels.DEBUG,t)}info(...t){this._log(b.levels.INFO,t)}warn(...t){this._log(b.levels.WARNING,t)}makeError(t,e,r){if(f)return this.makeError("censored error",e,{});e||(e=b.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((t=>{const e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=w[e[t]>>4],r+=w[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}})),n.push(`code=${e}`),n.push(`version=${this.version}`);const i=t;let o="";switch(e){case v.NUMERIC_FAULT:{o="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case v.CALL_EXCEPTION:case v.INSUFFICIENT_FUNDS:case v.MISSING_NEW:case v.NONCE_EXPIRED:case v.REPLACEMENT_UNDERPRICED:case v.TRANSACTION_REPLACED:case v.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");const s=new Error(t);return s.reason=i,s.code=e,Object.keys(r).forEach((function(t){s[t]=r[t]})),s}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,b.errors.INVALID_ARGUMENT,{argument:e,value:r})}assert(t,e,r,n){t||this.throwError(e,r,n)}assertArgument(t,e,r,n){t||this.throwArgumentError(e,r,n)}checkNormalize(t){y&&this.throwError("platform missing String.prototype.normalize",b.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:y})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,b.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,b.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,b.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,b.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",b.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",b.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",b.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return m||(m=new b("logger/5.6.0")),m}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",b.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),c){if(!t)return;this.globalLogger().throwError("error censorship permanent",b.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}f=!!t,c=!!e}static setLogLevel(t){const e=d[t.toLowerCase()];null!=e?p=e:b.globalLogger().warn("invalid log level - "+t)}static from(t){return new b(t)}}b.errors=v,b.levels=g;const A=new b("bytes/5.6.1");function _(t){return!!t.toHexString}function E(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return E(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function M(t){return P(t)&&!(t.length%2)||x(t)}function k(t){return"number"==typeof t&&t==t&&t%1==0}function x(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t)return!1;if(!k(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){const r=t[e];if(!k(r)||r<0||r>=256)return!1}return!0}function N(t,e){if(e||(e={}),"number"==typeof t){A.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),E(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),_(t)&&(t=t.toHexString()),P(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":A.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return E(new Uint8Array(n))}return x(t)?E(new Uint8Array(t)):A.throwArgumentError("invalid arrayify value","value",t)}function S(t){const e=t.map((t=>N(t))),r=e.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(r);return e.reduce(((t,e)=>(n.set(e,t),t+e.length)),0),E(n)}function U(t){let e=N(t);if(0===e.length)return e;let r=0;for(;r<e.length&&0===e[r];)r++;return r&&(e=e.slice(r)),e}function P(t,e){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}const T="0123456789abcdef";function R(t,e){if(e||(e={}),"number"==typeof t){A.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=T[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),_(t))return t.toHexString();if(P(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":A.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(x(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=T[(240&n)>>4]+T[15&n]}return e}return A.throwArgumentError("invalid hexlify value","value",t)}function I(t){if("string"!=typeof t)t=R(t);else if(!P(t)||t.length%2)return null;return(t.length-2)/2}function C(t,e,r){return"string"!=typeof t?t=R(t):(!P(t)||t.length%2)&&A.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=r?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function $(t){let e="0x";return t.forEach((t=>{e+=R(t).substring(2)})),e}function O(t){const e=function(t){"string"!=typeof t&&(t=R(t));P(t)||A.throwArgumentError("invalid hex string","value",t);t=t.substring(2);let e=0;for(;e<t.length&&"0"===t[e];)e++;return"0x"+t.substring(e)}(R(t,{hexPad:"left"}));return"0x"===e?"0x0":e}function F(t,e){for("string"!=typeof t?t=R(t):P(t)||A.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&A.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function B(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(M(t)){let r=N(t);64===r.length?(e.v=27+(r[32]>>7),r[32]&=127,e.r=R(r.slice(0,32)),e.s=R(r.slice(32,64))):65===r.length?(e.r=R(r.slice(0,32)),e.s=R(r.slice(32,64)),e.v=r[64]):A.throwArgumentError("invalid signature string","signature",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:A.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=R(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){const r=function(t,e){(t=N(t)).length>e&&A.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(e);return r.set(t,e-t.length),E(r)}(N(e._vs),32);e._vs=R(r);const n=r[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=n:e.recoveryParam!==n&&A.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),r[0]&=127;const i=R(r);null==e.s?e.s=i:e.s!==i&&A.throwArgumentError("signature v mismatch _vs","signature",t)}if(null==e.recoveryParam)null==e.v?A.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(null==e.v)e.v=27+e.recoveryParam;else{const r=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==r&&A.throwArgumentError("signature recoveryParam mismatch v","signature",t)}null!=e.r&&P(e.r)?e.r=F(e.r,32):A.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&P(e.s)?e.s=F(e.s,32):A.throwArgumentError("signature missing or invalid s","signature",t);const r=N(e.s);r[0]>=128&&A.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);const n=R(r);e._vs&&(P(e._vs)||A.throwArgumentError("signature invalid _vs","signature",t),e._vs=F(e._vs,32)),null==e._vs?e._vs=n:e._vs!==n&&A.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}var j="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},D=[],L=[],z="undefined"!=typeof Uint8Array?Uint8Array:Array,q=!1;function V(){q=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)D[e]=t[e],L[t.charCodeAt(e)]=e;L["-".charCodeAt(0)]=62,L["_".charCodeAt(0)]=63}function G(t,e,r){for(var n,i,o=[],s=e;s<r;s+=3)n=(t[s]<<16)+(t[s+1]<<8)+t[s+2],o.push(D[(i=n)>>18&63]+D[i>>12&63]+D[i>>6&63]+D[63&i]);return o.join("")}function H(t){var e;q||V();for(var r=t.length,n=r%3,i="",o=[],s=16383,a=0,u=r-n;a<u;a+=s)o.push(G(t,a,a+s>u?u:a+s));return 1===n?(e=t[r-1],i+=D[e>>2],i+=D[e<<4&63],i+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],i+=D[e>>10],i+=D[e>>4&63],i+=D[e<<2&63],i+="="),o.push(i),o.join("")}function Q(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,h=u>>1,l=-7,c=r?i-1:0,f=r?-1:1,d=t[e+c];for(c+=f,o=d&(1<<-l)-1,d>>=-l,l+=a;l>0;o=256*o+t[e+c],c+=f,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+c],c+=f,l-=8);if(0===o)o=1-h;else{if(o===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),o-=h}return(d?-1:1)*s*Math.pow(2,o-n)}function K(t,e,r,n,i,o){var s,a,u,h=8*o-i-1,l=(1<<h)-1,c=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+c>=1?f/u:f*Math.pow(2,1-c))*u>=2&&(s++,u/=2),s+c>=l?(a=0,s=l):s+c>=1?(a=(e*u-1)*Math.pow(2,i),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,i),s=0));i>=8;t[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,h+=i;h>0;t[r+d]=255&s,d+=p,s/=256,h-=8);t[r+d-p]|=128*m}var Z={}.toString,W=Array.isArray||function(t){return"[object Array]"==Z.call(t)};tt.TYPED_ARRAY_SUPPORT=void 0===j.TYPED_ARRAY_SUPPORT||j.TYPED_ARRAY_SUPPORT;var J=X();function X(){return tt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Y(t,e){if(X()<e)throw new RangeError("Invalid typed array length");return tt.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=tt.prototype:(null===t&&(t=new tt(e)),t.length=e),t}function tt(t,e,r){if(!(tt.TYPED_ARRAY_SUPPORT||this instanceof tt))return new tt(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return nt(this,t)}return et(this,t,e,r)}function et(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);tt.TYPED_ARRAY_SUPPORT?(t=e).__proto__=tt.prototype:t=it(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!tt.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|at(e,r),i=(t=Y(t,n)).write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(st(e)){var r=0|ot(e.length);return 0===(t=Y(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?Y(t,0):it(t,e);if("Buffer"===e.type&&W(e.data))return it(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function rt(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function nt(t,e){if(rt(e),t=Y(t,e<0?0:0|ot(e)),!tt.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function it(t,e){var r=e.length<0?0:0|ot(e.length);t=Y(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function ot(t){if(t>=X())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+X().toString(16)+" bytes");return 0|t}function st(t){return!(null==t||!t._isBuffer)}function at(t,e){if(st(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Ct(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $t(t).length;default:if(n)return Ct(t).length;e=(""+e).toLowerCase(),n=!0}}function ut(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return Et(this,e,r);case"utf8":case"utf-8":return wt(this,e,r);case"ascii":return At(this,e,r);case"latin1":case"binary":return _t(this,e,r);case"base64":return vt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Mt(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function ht(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function lt(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=tt.from(e,n)),st(e))return 0===e.length?-1:ct(t,e,r,n,i);if("number"==typeof e)return e&=255,tt.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):ct(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function ct(t,e,r,n,i){var o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function h(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=r;o<a;o++)if(h(t,o)===h(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var c=!0,f=0;f<u;f++)if(h(t,o+f)!==h(e,f)){c=!1;break}if(c)return o}return-1}function ft(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[r+s]=a}return s}function dt(t,e,r,n){return Ot(Ct(e,t.length-r),t,r,n)}function pt(t,e,r,n){return Ot(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function mt(t,e,r,n){return pt(t,e,r,n)}function yt(t,e,r,n){return Ot($t(e),t,r,n)}function gt(t,e,r,n){return Ot(function(t,e){for(var r,n,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=(r=t.charCodeAt(s))>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function vt(t,e,r){return 0===e&&r===t.length?H(t):H(t.slice(e,r))}function wt(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,s,a,u,h=t[i],l=null,c=h>239?4:h>223?3:h>191?2:1;if(i+c<=r)switch(c){case 1:h<128&&(l=h);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&h)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(u=(15&h)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&h)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,c=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=c}return function(t){var e=t.length;if(e<=bt)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=bt));return r}(n)}tt.poolSize=8192,tt._augment=function(t){return t.__proto__=tt.prototype,t},tt.from=function(t,e,r){return et(null,t,e,r)},tt.TYPED_ARRAY_SUPPORT&&(tt.prototype.__proto__=Uint8Array.prototype,tt.__proto__=Uint8Array),tt.alloc=function(t,e,r){return function(t,e,r,n){return rt(e),e<=0?Y(t,e):void 0!==r?"string"==typeof n?Y(t,e).fill(r,n):Y(t,e).fill(r):Y(t,e)}(null,t,e,r)},tt.allocUnsafe=function(t){return nt(null,t)},tt.allocUnsafeSlow=function(t){return nt(null,t)},tt.isBuffer=Ft,tt.compare=function(t,e){if(!st(t)||!st(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},tt.isEncoding=function(t){switch(String(t).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}},tt.concat=function(t,e){if(!W(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return tt.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=tt.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(!st(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},tt.byteLength=at,tt.prototype._isBuffer=!0,tt.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)ht(this,e,e+1);return this},tt.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)ht(this,e,e+3),ht(this,e+1,e+2);return this},tt.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)ht(this,e,e+7),ht(this,e+1,e+6),ht(this,e+2,e+5),ht(this,e+3,e+4);return this},tt.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?wt(this,0,t):ut.apply(this,arguments)},tt.prototype.equals=function(t){if(!st(t))throw new TypeError("Argument must be a Buffer");return this===t||0===tt.compare(this,t)},tt.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},tt.prototype.compare=function(t,e,r,n,i){if(!st(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(o,s),u=this.slice(n,i),h=t.slice(e,r),l=0;l<a;++l)if(u[l]!==h[l]){o=u[l],s=h[l];break}return o<s?-1:s<o?1:0},tt.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},tt.prototype.indexOf=function(t,e,r){return lt(this,t,e,r,!0)},tt.prototype.lastIndexOf=function(t,e,r){return lt(this,t,e,r,!1)},tt.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return ft(this,t,e,r);case"utf8":case"utf-8":return dt(this,t,e,r);case"ascii":return pt(this,t,e,r);case"latin1":case"binary":return mt(this,t,e,r);case"base64":return yt(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gt(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},tt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var bt=4096;function At(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function _t(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function Et(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=It(t[o]);return i}function Mt(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function kt(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function xt(t,e,r,n,i,o){if(!st(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function Nt(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function St(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function Ut(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Pt(t,e,r,n,i){return i||Ut(t,0,r,4),K(t,e,r,n,23,4),r+4}function Tt(t,e,r,n,i){return i||Ut(t,0,r,8),K(t,e,r,n,52,8),r+8}tt.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),tt.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=tt.prototype;else{var i=e-t;r=new tt(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},tt.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||kt(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},tt.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||kt(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},tt.prototype.readUInt8=function(t,e){return e||kt(t,1,this.length),this[t]},tt.prototype.readUInt16LE=function(t,e){return e||kt(t,2,this.length),this[t]|this[t+1]<<8},tt.prototype.readUInt16BE=function(t,e){return e||kt(t,2,this.length),this[t]<<8|this[t+1]},tt.prototype.readUInt32LE=function(t,e){return e||kt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},tt.prototype.readUInt32BE=function(t,e){return e||kt(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},tt.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||kt(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},tt.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||kt(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},tt.prototype.readInt8=function(t,e){return e||kt(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},tt.prototype.readInt16LE=function(t,e){e||kt(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},tt.prototype.readInt16BE=function(t,e){e||kt(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},tt.prototype.readInt32LE=function(t,e){return e||kt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},tt.prototype.readInt32BE=function(t,e){return e||kt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},tt.prototype.readFloatLE=function(t,e){return e||kt(t,4,this.length),Q(this,t,!0,23,4)},tt.prototype.readFloatBE=function(t,e){return e||kt(t,4,this.length),Q(this,t,!1,23,4)},tt.prototype.readDoubleLE=function(t,e){return e||kt(t,8,this.length),Q(this,t,!0,52,8)},tt.prototype.readDoubleBE=function(t,e){return e||kt(t,8,this.length),Q(this,t,!1,52,8)},tt.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||xt(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},tt.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||xt(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},tt.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||xt(this,t,e,1,255,0),tt.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},tt.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||xt(this,t,e,2,65535,0),tt.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Nt(this,t,e,!0),e+2},tt.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||xt(this,t,e,2,65535,0),tt.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Nt(this,t,e,!1),e+2},tt.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||xt(this,t,e,4,4294967295,0),tt.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):St(this,t,e,!0),e+4},tt.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||xt(this,t,e,4,4294967295,0),tt.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):St(this,t,e,!1),e+4},tt.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);xt(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},tt.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);xt(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},tt.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||xt(this,t,e,1,127,-128),tt.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},tt.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||xt(this,t,e,2,32767,-32768),tt.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Nt(this,t,e,!0),e+2},tt.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||xt(this,t,e,2,32767,-32768),tt.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Nt(this,t,e,!1),e+2},tt.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||xt(this,t,e,4,2147483647,-2147483648),tt.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):St(this,t,e,!0),e+4},tt.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||xt(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),tt.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):St(this,t,e,!1),e+4},tt.prototype.writeFloatLE=function(t,e,r){return Pt(this,t,e,!0,r)},tt.prototype.writeFloatBE=function(t,e,r){return Pt(this,t,e,!1,r)},tt.prototype.writeDoubleLE=function(t,e,r){return Tt(this,t,e,!0,r)},tt.prototype.writeDoubleBE=function(t,e,r){return Tt(this,t,e,!1,r)},tt.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!tt.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},tt.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!tt.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var s=st(t)?t:Ct(new tt(t,n).toString()),a=s.length;for(o=0;o<r-e;++o)this[o+e]=s[o%a]}return this};var Rt=/[^+\/0-9A-Za-z-_]/g;function It(t){return t<16?"0"+t.toString(16):t.toString(16)}function Ct(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function $t(t){return function(t){var e,r,n,i,o,s;q||V();var a=t.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===t[a-2]?2:"="===t[a-1]?1:0,s=new z(3*a/4-o),n=o>0?a-4:a;var u=0;for(e=0,r=0;e<n;e+=4,r+=3)i=L[t.charCodeAt(e)]<<18|L[t.charCodeAt(e+1)]<<12|L[t.charCodeAt(e+2)]<<6|L[t.charCodeAt(e+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=L[t.charCodeAt(e)]<<2|L[t.charCodeAt(e+1)]>>4,s[u++]=255&i):1===o&&(i=L[t.charCodeAt(e)]<<10|L[t.charCodeAt(e+1)]<<4|L[t.charCodeAt(e+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(Rt,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Ot(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Ft(t){return null!=t&&(!!t._isBuffer||Bt(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&Bt(t.slice(0,0))}(t))}function Bt(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var jt=a(Object.freeze({__proto__:null,INSPECT_MAX_BYTES:50,kMaxLength:J,Buffer:tt,SlowBuffer:function(t){return+t!=t&&(t=0),tt.alloc(+t)},isBuffer:Ft})),Dt=u((function(t){!function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:jt.Buffer}catch(t){}function s(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t)}function a(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function u(t,e,n,i){for(var o=0,s=0,a=Math.min(t.length,n),u=e;u<a;u++){var h=t.charCodeAt(u)-48;o*=i,s=h>=49?h-49+10:h>=17?h-17+10:h,r(h>=0&&s<i,"Invalid character"),o+=s}return o}function h(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,n):(this._parseBase(t,e,i),"le"===n&&this._initArray(this.toArray(),e,n)))},i.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},i.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=a(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=a(t,e,n)<<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(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,h=0,l=r;l<a;l+=n)h=u(t,l,l+n,e),this.imuln(i),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==s){var c=1;for(h=u(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this._strip()},i.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype._move=function(t){h(t,this)},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)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")]=l}catch(t){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var c=["","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],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,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),n=0!==o||s!==this.length-1?c[6-u.length]+u+n:u+n}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=f[t],l=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(l).toString(t);n=(p=p.idivn(l)).isZero()?m+n:c[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;l+=(s=(i=0|t.words[p])*(o=0|e.words[d])+c)/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r._strip()}i.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var s=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](s,i),s},i.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;t[r++]=255&s,r<t.length&&(t[r++]=s>>8&255),r<t.length&&(t[r++]=s>>16&255),6===o?(r<t.length&&(t[r++]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},i.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;t[r--]=255&s,r>=0&&(t[r--]=s>>8&255),r>=0&&(t[r--]=s>>16&255),6===o?(r>=0&&(t[r--]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).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(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},i.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},i.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},i.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},i.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},i.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)o=(e=(0|r.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)o=(e=(0|r.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,y=0|s[2],g=8191&y,v=y>>>13,w=0|s[3],b=8191&w,A=w>>>13,_=0|s[4],E=8191&_,M=_>>>13,k=0|s[5],x=8191&k,N=k>>>13,S=0|s[6],U=8191&S,P=S>>>13,T=0|s[7],R=8191&T,I=T>>>13,C=0|s[8],$=8191&C,O=C>>>13,F=0|s[9],B=8191&F,j=F>>>13,D=0|a[0],L=8191&D,z=D>>>13,q=0|a[1],V=8191&q,G=q>>>13,H=0|a[2],Q=8191&H,K=H>>>13,Z=0|a[3],W=8191&Z,J=Z>>>13,X=0|a[4],Y=8191&X,tt=X>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191<,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var yt=(h+(n=Math.imul(c,L))|0)+((8191&(i=(i=Math.imul(c,z))+Math.imul(f,L)|0))<<13)|0;h=((o=Math.imul(f,z))+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(p,L),i=(i=Math.imul(p,z))+Math.imul(m,L)|0,o=Math.imul(m,z);var gt=(h+(n=n+Math.imul(c,V)|0)|0)+((8191&(i=(i=i+Math.imul(c,G)|0)+Math.imul(f,V)|0))<<13)|0;h=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,L),i=(i=Math.imul(g,z))+Math.imul(v,L)|0,o=Math.imul(v,z),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,G)|0;var vt=(h+(n=n+Math.imul(c,Q)|0)|0)+((8191&(i=(i=i+Math.imul(c,K)|0)+Math.imul(f,Q)|0))<<13)|0;h=((o=o+Math.imul(f,K)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(b,L),i=(i=Math.imul(b,z))+Math.imul(A,L)|0,o=Math.imul(A,z),n=n+Math.imul(g,V)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(v,V)|0,o=o+Math.imul(v,G)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,K)|0;var wt=(h+(n=n+Math.imul(c,W)|0)|0)+((8191&(i=(i=i+Math.imul(c,J)|0)+Math.imul(f,W)|0))<<13)|0;h=((o=o+Math.imul(f,J)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,L),i=(i=Math.imul(E,z))+Math.imul(M,L)|0,o=Math.imul(M,z),n=n+Math.imul(b,V)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,K)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,J)|0;var bt=(h+(n=n+Math.imul(c,Y)|0)|0)+((8191&(i=(i=i+Math.imul(c,tt)|0)+Math.imul(f,Y)|0))<<13)|0;h=((o=o+Math.imul(f,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,L),i=(i=Math.imul(x,z))+Math.imul(N,L)|0,o=Math.imul(N,z),n=n+Math.imul(E,V)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(g,W)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(v,W)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,tt)|0;var At=(h+(n=n+Math.imul(c,rt)|0)|0)+((8191&(i=(i=i+Math.imul(c,nt)|0)+Math.imul(f,rt)|0))<<13)|0;h=((o=o+Math.imul(f,nt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,L),i=(i=Math.imul(U,z))+Math.imul(P,L)|0,o=Math.imul(P,z),n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0;var _t=(h+(n=n+Math.imul(c,ot)|0)|0)+((8191&(i=(i=i+Math.imul(c,st)|0)+Math.imul(f,ot)|0))<<13)|0;h=((o=o+Math.imul(f,st)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(R,L),i=(i=Math.imul(R,z))+Math.imul(I,L)|0,o=Math.imul(I,z),n=n+Math.imul(U,V)|0,i=(i=i+Math.imul(U,G)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,G)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(E,W)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(b,Y)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(g,rt)|0,i=(i=i+Math.imul(g,nt)|0)+Math.imul(v,rt)|0,o=o+Math.imul(v,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,st)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0;var Et=(h+(n=n+Math.imul(c,ut)|0)|0)+((8191&(i=(i=i+Math.imul(c,ht)|0)+Math.imul(f,ut)|0))<<13)|0;h=((o=o+Math.imul(f,ht)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul($,L),i=(i=Math.imul($,z))+Math.imul(O,L)|0,o=Math.imul(O,z),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(U,Q)|0,i=(i=i+Math.imul(U,K)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(x,W)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,J)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,st)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,st)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0;var Mt=(h+(n=n+Math.imul(c,ct)|0)|0)+((8191&(i=(i=i+Math.imul(c,ft)|0)+Math.imul(f,ct)|0))<<13)|0;h=((o=o+Math.imul(f,ft)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(B,L),i=(i=Math.imul(B,z))+Math.imul(j,L)|0,o=Math.imul(j,z),n=n+Math.imul($,V)|0,i=(i=i+Math.imul($,G)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,G)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(U,W)|0,i=(i=i+Math.imul(U,J)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(x,Y)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(E,rt)|0,i=(i=i+Math.imul(E,nt)|0)+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,st)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ht)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ht)|0,n=n+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0;var kt=(h+(n=n+Math.imul(c,pt)|0)|0)+((8191&(i=(i=i+Math.imul(c,mt)|0)+Math.imul(f,pt)|0))<<13)|0;h=((o=o+Math.imul(f,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(B,V),i=(i=Math.imul(B,G))+Math.imul(j,V)|0,o=Math.imul(j,G),n=n+Math.imul($,Q)|0,i=(i=i+Math.imul($,K)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(U,Y)|0,i=(i=i+Math.imul(U,tt)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,st)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(g,ct)|0,i=(i=i+Math.imul(g,ft)|0)+Math.imul(v,ct)|0,o=o+Math.imul(v,ft)|0;var xt=(h+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(B,Q),i=(i=Math.imul(B,K))+Math.imul(j,Q)|0,o=Math.imul(j,K),n=n+Math.imul($,W)|0,i=(i=i+Math.imul($,J)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(U,rt)|0,i=(i=i+Math.imul(U,nt)|0)+Math.imul(P,rt)|0,o=o+Math.imul(P,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,st)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,st)|0,n=n+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,ht)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(b,ct)|0,i=(i=i+Math.imul(b,ft)|0)+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0;var Nt=(h+(n=n+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(v,pt)|0))<<13)|0;h=((o=o+Math.imul(v,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,J))+Math.imul(j,W)|0,o=Math.imul(j,J),n=n+Math.imul($,Y)|0,i=(i=i+Math.imul($,tt)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(U,ot)|0,i=(i=i+Math.imul(U,st)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,st)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ht)|0,n=n+Math.imul(E,ct)|0,i=(i=i+Math.imul(E,ft)|0)+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0;var St=(h+(n=n+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,mt)|0)+Math.imul(A,pt)|0))<<13)|0;h=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(B,Y),i=(i=Math.imul(B,tt))+Math.imul(j,Y)|0,o=Math.imul(j,tt),n=n+Math.imul($,rt)|0,i=(i=i+Math.imul($,nt)|0)+Math.imul(O,rt)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,st)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,n=n+Math.imul(U,ut)|0,i=(i=i+Math.imul(U,ht)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,ht)|0,n=n+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,ft)|0)+Math.imul(N,ct)|0,o=o+Math.imul(N,ft)|0;var Ut=(h+(n=n+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(M,pt)|0))<<13)|0;h=((o=o+Math.imul(M,mt)|0)+(i>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(B,rt),i=(i=Math.imul(B,nt))+Math.imul(j,rt)|0,o=Math.imul(j,nt),n=n+Math.imul($,ot)|0,i=(i=i+Math.imul($,st)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(I,ut)|0,o=o+Math.imul(I,ht)|0,n=n+Math.imul(U,ct)|0,i=(i=i+Math.imul(U,ft)|0)+Math.imul(P,ct)|0,o=o+Math.imul(P,ft)|0;var Pt=(h+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(N,pt)|0))<<13)|0;h=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(B,ot),i=(i=Math.imul(B,st))+Math.imul(j,ot)|0,o=Math.imul(j,st),n=n+Math.imul($,ut)|0,i=(i=i+Math.imul($,ht)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,ht)|0,n=n+Math.imul(R,ct)|0,i=(i=i+Math.imul(R,ft)|0)+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0;var Tt=(h+(n=n+Math.imul(U,pt)|0)|0)+((8191&(i=(i=i+Math.imul(U,mt)|0)+Math.imul(P,pt)|0))<<13)|0;h=((o=o+Math.imul(P,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(B,ut),i=(i=Math.imul(B,ht))+Math.imul(j,ut)|0,o=Math.imul(j,ht),n=n+Math.imul($,ct)|0,i=(i=i+Math.imul($,ft)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,ft)|0;var Rt=(h+(n=n+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(I,pt)|0))<<13)|0;h=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(B,ct),i=(i=Math.imul(B,ft))+Math.imul(j,ct)|0,o=Math.imul(j,ft);var It=(h+(n=n+Math.imul($,pt)|0)|0)+((8191&(i=(i=i+Math.imul($,mt)|0)+Math.imul(O,pt)|0))<<13)|0;h=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Ct=(h+(n=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,mt))+Math.imul(j,pt)|0))<<13)|0;return h=((o=Math.imul(j,mt))+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,u[0]=yt,u[1]=gt,u[2]=vt,u[3]=wt,u[4]=bt,u[5]=At,u[6]=_t,u[7]=Et,u[8]=Mt,u[9]=kt,u[10]=xt,u[11]=Nt,u[12]=St,u[13]=Ut,u[14]=Pt,u[15]=Tt,u[16]=Rt,u[17]=It,u[18]=Ct,0!==h&&(u[19]=h,r.length++),r};function y(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=(0|t.words[l])*(0|e.words[h]),f=67108863&c;a=67108863&(f=f+a|0),i+=(s=(s=s+(c/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function g(t,e,r){return y(t,e,r)}Math.imul||(m=p),i.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):r<63?p(this,t,e):r<1024?y(this,t,e):g(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),g(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"==typeof t),r(t<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,s=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=s>>>26,this.words[i]=67108863&s}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new i(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var o=r.sqr();n<e.length;n++,o=o.sqr())0!==e[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<n;this.words[e]=u|s,s=a>>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},i.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=n;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},i.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,e,n){var i,o,s=t.length+n;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+a;var u=(0|t.words[i])*e;a=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)a=(o=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&o;if(0===a)return this._strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),o=t,s=0|o.words[o.length-1];0!==(r=26-this._countBits(s))&&(o=o.ushln(r),n.iushln(r),s=0|o.words[o.length-1]);var a,u=n.length-o.length;if("mod"!==e){(a=new i(null)).length=u+1,a.words=new Array(a.length);for(var h=0;h<a.length;h++)a.words[h]=0}var l=n.clone()._ishlnsubmul(o,1,u);0===l.negative&&(n=l,a&&(a.words[u]=1));for(var c=u-1;c>=0;c--){var f=67108864*(0|n.words[o.length+c])+(0|n.words[o.length+c-1]);for(f=Math.min(f/s|0,67108863),n._ishlnsubmul(o,f,c);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(o,1,c),n.isZero()||(n.negative^=1);a&&(a.words[c]=f)}return a&&a._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},i.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(o=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:o,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(o=a.div.neg()),{div:o,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,s,a},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),s=new i(0),a=new i(0),u=new i(1),h=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++h;for(var l=n.clone(),c=e.clone();!e.isZero();){for(var f=0,d=1;0==(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(e.iushrn(f);f-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(l),s.isub(c)),o.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(a),s.isub(u)):(n.isub(e),a.isub(o),u.isub(s))}return{a:a,b:u,gcd:n.iushln(h)}},i.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,s=new i(1),a=new i(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var h=0,l=1;0==(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(e.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var c=0,f=1;0==(n.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(n.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),s.isub(a)):(n.isub(e),a.isub(s))}return(o=0===e.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,s=n;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},i.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new M(t)},i.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){M.call(this,t),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)}w.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},n(b,w),b.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(A,w),n(_,w),n(E,w),E.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new A;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return v[t]=e,e},M.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(h(t,t.umod(this.m)._forceRed(this)),t)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new i(1)).iushrn(2);return this.pow(t,n)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);r(!o.isZero());var a=new i(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,h).cmp(u);)l.redIAdd(u);for(var c=this.pow(l,o),f=this.pow(t,o.addn(1).iushrn(1)),d=this.pow(t,o),p=s;0!==d.cmp(a);){for(var m=d,y=0;0!==m.cmp(a);y++)m=m.redSqr();r(y<p);var g=this.pow(c,new i(1).iushln(p-y-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=y}return f},M.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},M.prototype.pow=function(t,e){if(e.isZero())return new i(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var o=r[0],s=0,a=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],l=u-1;l>=0;l--){var c=h>>l&1;o!==r[0]&&(o=this.sqr(o)),0!==c||0!==s?(s<<=1,s|=c,(4===++a||0===n&&0===l)&&(o=this.mul(o,r[s]),a=0,s=0)):a=0}u=26}return o},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new k(t)},n(k,M),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,o)}));var Lt=Dt.BN;const zt=new b("bignumber/5.6.2"),qt={},Vt=9007199254740991;let Gt=!1;class Ht{constructor(t,e){t!==qt&&zt.throwError("cannot call constructor directly; use BigNumber.from",b.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return Kt(Zt(this).fromTwos(t))}toTwos(t){return Kt(Zt(this).toTwos(t))}abs(){return"-"===this._hex[0]?Ht.from(this._hex.substring(1)):this}add(t){return Kt(Zt(this).add(Zt(t)))}sub(t){return Kt(Zt(this).sub(Zt(t)))}div(t){return Ht.from(t).isZero()&&Wt("division-by-zero","div"),Kt(Zt(this).div(Zt(t)))}mul(t){return Kt(Zt(this).mul(Zt(t)))}mod(t){const e=Zt(t);return e.isNeg()&&Wt("division-by-zero","mod"),Kt(Zt(this).umod(e))}pow(t){const e=Zt(t);return e.isNeg()&&Wt("negative-power","pow"),Kt(Zt(this).pow(e))}and(t){const e=Zt(t);return(this.isNegative()||e.isNeg())&&Wt("unbound-bitwise-result","and"),Kt(Zt(this).and(e))}or(t){const e=Zt(t);return(this.isNegative()||e.isNeg())&&Wt("unbound-bitwise-result","or"),Kt(Zt(this).or(e))}xor(t){const e=Zt(t);return(this.isNegative()||e.isNeg())&&Wt("unbound-bitwise-result","xor"),Kt(Zt(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&Wt("negative-width","mask"),Kt(Zt(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&Wt("negative-width","shl"),Kt(Zt(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&Wt("negative-width","shr"),Kt(Zt(this).shrn(t))}eq(t){return Zt(this).eq(Zt(t))}lt(t){return Zt(this).lt(Zt(t))}lte(t){return Zt(this).lte(Zt(t))}gt(t){return Zt(this).gt(Zt(t))}gte(t){return Zt(this).gte(Zt(t))}isNegative(){return"-"===this._hex[0]}isZero(){return Zt(this).isZero()}toNumber(){try{return Zt(this).toNumber()}catch(t){Wt("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return zt.throwError("this platform does not support BigInt",b.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?Gt||(Gt=!0,zt.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?zt.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",b.errors.UNEXPECTED_ARGUMENT,{}):zt.throwError("BigNumber.toString does not accept parameters",b.errors.UNEXPECTED_ARGUMENT,{})),Zt(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof Ht)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new Ht(qt,Qt(t)):t.match(/^-?[0-9]+$/)?new Ht(qt,Qt(new Lt(t))):zt.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&Wt("underflow","BigNumber.from",t),(t>=Vt||t<=-Vt)&&Wt("overflow","BigNumber.from",t),Ht.from(String(t));const e=t;if("bigint"==typeof e)return Ht.from(e.toString());if(x(e))return Ht.from(R(e));if(e)if(e.toHexString){const t=e.toHexString();if("string"==typeof t)return Ht.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(P(t)||"-"===t[0]&&P(t.substring(1))))return Ht.from(t)}return zt.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function Qt(t){if("string"!=typeof t)return Qt(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&zt.throwArgumentError("invalid hex","value",t),"0x00"===(t=Qt(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function Kt(t){return Ht.from(Qt(t))}function Zt(t){const e=Ht.from(t).toHexString();return"-"===e[0]?new Lt("-"+e.substring(3),16):new Lt(e.substring(2),16)}function Wt(t,e,r){const n={fault:t,operation:e};return null!=r&&(n.value=r),zt.throwError(t,b.errors.NUMERIC_FAULT,n)}function Jt(){throw new Error("setTimeout has not been defined")}function Xt(){throw new Error("clearTimeout has not been defined")}var Yt=Jt,te=Xt;function ee(t){if(Yt===setTimeout)return setTimeout(t,0);if((Yt===Jt||!Yt)&&setTimeout)return Yt=setTimeout,setTimeout(t,0);try{return Yt(t,0)}catch(e){try{return Yt.call(null,t,0)}catch(e){return Yt.call(this,t,0)}}}"function"==typeof j.setTimeout&&(Yt=setTimeout),"function"==typeof j.clearTimeout&&(te=clearTimeout);var re,ne=[],ie=!1,oe=-1;function se(){ie&&re&&(ie=!1,re.length?ne=re.concat(ne):oe=-1,ne.length&&ae())}function ae(){if(!ie){var t=ee(se);ie=!0;for(var e=ne.length;e;){for(re=ne,ne=[];++oe<e;)re&&re[oe].run();oe=-1,e=ne.length}re=null,ie=!1,function(t){if(te===clearTimeout)return clearTimeout(t);if((te===Xt||!te)&&clearTimeout)return te=clearTimeout,clearTimeout(t);try{te(t)}catch(e){try{return te.call(null,t)}catch(e){return te.call(this,t)}}}(t)}}function ue(t,e){this.fun=t,this.array=e}ue.prototype.run=function(){this.fun.apply(null,this.array)};function he(){}var le=he,ce=he,fe=he,de=he,pe=he,me=he,ye=he;var ge=j.performance||{},ve=ge.now||ge.mozNow||ge.msNow||ge.oNow||ge.webkitNow||function(){return(new Date).getTime()};var we=new Date;var be={nextTick:function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];ne.push(new ue(t,e)),1!==ne.length||ie||ee(ae)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:le,addListener:ce,once:fe,off:de,removeListener:pe,removeAllListeners:me,emit:ye,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*ve.call(ge),r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r-=t[0],(n-=t[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-we)/1e3}},Ae=u((function(t){!function(){var e="input is invalid type",r="object"==typeof window,n=r?window:{};n.JS_SHA3_NO_WINDOW&&(r=!1);var i=!r&&"object"==typeof self;!n.JS_SHA3_NO_NODE_JS&&"object"==typeof be&&be.versions&&be.versions.node?n=o:i&&(n=self);var s=!n.JS_SHA3_NO_COMMON_JS&&t.exports,a=!n.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,u="0123456789abcdef".split(""),h=[4,1024,262144,67108864],l=[0,8,16,24],c=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],f=[224,256,384,512],d=[128,256],p=["hex","buffer","arrayBuffer","array","digest"],m={128:168,256:136};!n.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!a||!n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var y=function(t,e,r){return function(n){return new T(t,e,t).update(n)[r]()}},g=function(t,e,r){return function(n,i){return new T(t,e,i).update(n)[r]()}},v=function(t,e,r){return function(e,n,i,o){return E["cshake"+t].update(e,n,i,o)[r]()}},w=function(t,e,r){return function(e,n,i,o){return E["kmac"+t].update(e,n,i,o)[r]()}},b=function(t,e,r,n){for(var i=0;i<p.length;++i){var o=p[i];t[o]=e(r,n,o)}return t},A=function(t,e){var r=y(t,e,"hex");return r.create=function(){return new T(t,e,t)},r.update=function(t){return r.create().update(t)},b(r,y,t,e)},_=[{name:"keccak",padding:[1,256,65536,16777216],bits:f,createMethod:A},{name:"sha3",padding:[6,1536,393216,100663296],bits:f,createMethod:A},{name:"shake",padding:[31,7936,2031616,520093696],bits:d,createMethod:function(t,e){var r=g(t,e,"hex");return r.create=function(r){return new T(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},b(r,g,t,e)}},{name:"cshake",padding:h,bits:d,createMethod:function(t,e){var r=m[t],n=v(t,0,"hex");return n.create=function(n,i,o){return i||o?new T(t,e,n).bytepad([i,o],r):E["shake"+t].create(n)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},b(n,v,t,e)}},{name:"kmac",padding:h,bits:d,createMethod:function(t,e){var r=m[t],n=w(t,0,"hex");return n.create=function(n,i,o){return new R(t,e,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},b(n,w,t,e)}}],E={},M=[],k=0;k<_.length;++k)for(var x=_[k],N=x.bits,S=0;S<N.length;++S){var U=x.name+"_"+N[S];if(M.push(U),E[U]=x.createMethod(N[S],x.padding),"sha3"!==x.name){var P=x.name+N[S];M.push(P),E[P]=E[U]}}function T(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function R(t,e,r){T.call(this,t,e,r)}T.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var r,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(e);if(null===t)throw new Error(e);if(a&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||a&&ArrayBuffer.isView(t)))throw new Error(e);r=!0}for(var i,o,s=this.blocks,u=this.byteCount,h=t.length,c=this.blockCount,f=0,d=this.s;f<h;){if(this.reset)for(this.reset=!1,s[0]=this.block,i=1;i<c+1;++i)s[i]=0;if(r)for(i=this.start;f<h&&i<u;++f)s[i>>2]|=t[f]<<l[3&i++];else for(i=this.start;f<h&&i<u;++f)(o=t.charCodeAt(f))<128?s[i>>2]|=o<<l[3&i++]:o<2048?(s[i>>2]|=(192|o>>6)<<l[3&i++],s[i>>2]|=(128|63&o)<<l[3&i++]):o<55296||o>=57344?(s[i>>2]|=(224|o>>12)<<l[3&i++],s[i>>2]|=(128|o>>6&63)<<l[3&i++],s[i>>2]|=(128|63&o)<<l[3&i++]):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++f)),s[i>>2]|=(240|o>>18)<<l[3&i++],s[i>>2]|=(128|o>>12&63)<<l[3&i++],s[i>>2]|=(128|o>>6&63)<<l[3&i++],s[i>>2]|=(128|63&o)<<l[3&i++]);if(this.lastByteIndex=i,i>=u){for(this.start=i-u,this.block=s[c],i=0;i<c;++i)d[i]^=s[i];I(d),this.reset=!0}else this.start=i}return this},T.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(r=255&(t>>=8);r>0;)i.unshift(r),r=255&(t>>=8),++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},T.prototype.encodeString=function(t){var r,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(e);if(null===t)throw new Error(e);if(a&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||a&&ArrayBuffer.isView(t)))throw new Error(e);r=!0}var i=0,o=t.length;if(r)i=o;else for(var s=0;s<t.length;++s){var u=t.charCodeAt(s);u<128?i+=1:u<2048?i+=2:u<55296||u>=57344?i+=3:(u=65536+((1023&u)<<10|1023&t.charCodeAt(++s)),i+=4)}return i+=this.encode(8*i),this.update(t),i},T.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=e-r%e,o=[];return o.length=i,this.update(o),this},T.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];I(n)}},T.prototype.toString=T.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,a="";s<n;){for(o=0;o<e&&s<n;++o,++s)t=r[o],a+=u[t>>4&15]+u[15&t]+u[t>>12&15]+u[t>>8&15]+u[t>>20&15]+u[t>>16&15]+u[t>>28&15]+u[t>>24&15];s%e==0&&(I(r),o=0)}return i&&(t=r[o],a+=u[t>>4&15]+u[15&t],i>1&&(a+=u[t>>12&15]+u[t>>8&15]),i>2&&(a+=u[t>>20&15]+u[t>>16&15])),a},T.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,a=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);for(var u=new Uint32Array(t);s<n;){for(o=0;o<e&&s<n;++o,++s)u[s]=r[o];s%e==0&&I(r)}return i&&(u[o]=r[o],t=t.slice(0,a)),t},T.prototype.buffer=T.prototype.arrayBuffer,T.prototype.digest=T.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,s=0,a=0,u=[];a<i;){for(s=0;s<r&&a<i;++s,++a)t=a<<2,e=n[s],u[t]=255&e,u[t+1]=e>>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;a%r==0&&I(n)}return o&&(t=a<<2,e=n[s],u[t]=255&e,o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u},R.prototype=new T,R.prototype.finalize=function(){return this.encode(this.outputBits,!0),T.prototype.finalize.call(this)};var I=function(t){var e,r,n,i,o,s,a,u,h,l,f,d,p,m,y,g,v,w,b,A,_,E,M,k,x,N,S,U,P,T,R,I,C,$,O,F,B,j,D,L,z,q,V,G,H,Q,K,Z,W,J,X,Y,tt,et,rt,nt,it,ot,st,at,ut,ht,lt;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],h=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],f=t[7]^t[17]^t[27]^t[37]^t[47],e=(d=t[8]^t[18]^t[28]^t[38]^t[48])^(s<<1|a>>>31),r=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(a<<1|s>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(u<<1|h>>>31),r=o^(h<<1|u>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=s^(l<<1|f>>>31),r=a^(f<<1|l>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=u^(d<<1|p>>>31),r=h^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=l^(i<<1|o>>>31),r=f^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],y=t[1],Q=t[11]<<4|t[10]>>>28,K=t[10]<<4|t[11]>>>28,U=t[20]<<3|t[21]>>>29,P=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,q=t[40]<<18|t[41]>>>14,V=t[41]<<18|t[40]>>>14,$=t[2]<<1|t[3]>>>31,O=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,v=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,T=t[33]<<13|t[32]>>>19,R=t[32]<<13|t[33]>>>19,ht=t[42]<<2|t[43]>>>30,lt=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,F=t[14]<<6|t[15]>>>26,B=t[15]<<6|t[14]>>>26,w=t[25]<<11|t[24]>>>21,b=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,X=t[35]<<15|t[34]>>>17,I=t[45]<<29|t[44]>>>3,C=t[44]<<29|t[45]>>>3,k=t[6]<<28|t[7]>>>4,x=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,j=t[26]<<25|t[27]>>>7,D=t[27]<<25|t[26]>>>7,A=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,Y=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,G=t[8]<<27|t[9]>>>5,H=t[9]<<27|t[8]>>>5,N=t[18]<<20|t[19]>>>12,S=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,st=t[28]<<7|t[29]>>>25,L=t[38]<<8|t[39]>>>24,z=t[39]<<8|t[38]>>>24,E=t[48]<<14|t[49]>>>18,M=t[49]<<14|t[48]>>>18,t[0]=m^~g&w,t[1]=y^~v&b,t[10]=k^~N&U,t[11]=x^~S&P,t[20]=$^~F&j,t[21]=O^~B&D,t[30]=G^~Q&Z,t[31]=H^~K&W,t[40]=et^~nt&ot,t[41]=rt^~it&st,t[2]=g^~w&A,t[3]=v^~b&_,t[12]=N^~U&T,t[13]=S^~P&R,t[22]=F^~j&L,t[23]=B^~D&z,t[32]=Q^~Z&J,t[33]=K^~W&X,t[42]=nt^~ot&at,t[43]=it^~st&ut,t[4]=w^~A&E,t[5]=b^~_&M,t[14]=U^~T&I,t[15]=P^~R&C,t[24]=j^~L&q,t[25]=D^~z&V,t[34]=Z^~J&Y,t[35]=W^~X&tt,t[44]=ot^~at&ht,t[45]=st^~ut<,t[6]=A^~E&m,t[7]=_^~M&y,t[16]=T^~I&k,t[17]=R^~C&x,t[26]=L^~q&$,t[27]=z^~V&O,t[36]=J^~Y&G,t[37]=X^~tt&H,t[46]=at^~ht&et,t[47]=ut^~lt&rt,t[8]=E^~m&g,t[9]=M^~y&v,t[18]=I^~k&N,t[19]=C^~x&S,t[28]=q^~$&F,t[29]=V^~O&B,t[38]=Y^~G&Q,t[39]=tt^~H&K,t[48]=ht^~et&nt,t[49]=lt^~rt&it,t[0]^=c[n],t[1]^=c[n+1]};if(s)t.exports=E;else for(k=0;k<M.length;++k)n[M[k]]=E[M[k]]}()}));function _e(t){return"0x"+Ae.keccak_256(N(t))}const Ee=new b("rlp/5.6.1");function Me(t){const e=[];for(;t;)e.unshift(255&t),t>>=8;return e}function ke(t,e,r){let n=0;for(let i=0;i<r;i++)n=256*n+t[e+i];return n}function xe(t){if(Array.isArray(t)){let e=[];if(t.forEach((function(t){e=e.concat(xe(t))})),e.length<=55)return e.unshift(192+e.length),e;const r=Me(e.length);return r.unshift(247+r.length),r.concat(e)}M(t)||Ee.throwArgumentError("RLP object must be BytesLike","object",t);const e=Array.prototype.slice.call(N(t));if(1===e.length&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const r=Me(e.length);return r.unshift(183+r.length),r.concat(e)}function Ne(t){return R(xe(t))}function Se(t,e,r,n){const i=[];for(;r<e+1+n;){const o=Ue(t,r);i.push(o.result),(r+=o.consumed)>e+1+n&&Ee.throwError("child data too short",b.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function Ue(t,e){if(0===t.length&&Ee.throwError("data too short",b.errors.BUFFER_OVERRUN,{}),t[e]>=248){const r=t[e]-247;e+1+r>t.length&&Ee.throwError("data short segment too short",b.errors.BUFFER_OVERRUN,{});const n=ke(t,e+1,r);return e+1+r+n>t.length&&Ee.throwError("data long segment too short",b.errors.BUFFER_OVERRUN,{}),Se(t,e,e+1+r,r+n)}if(t[e]>=192){const r=t[e]-192;return e+1+r>t.length&&Ee.throwError("data array too short",b.errors.BUFFER_OVERRUN,{}),Se(t,e,e+1,r)}if(t[e]>=184){const r=t[e]-183;e+1+r>t.length&&Ee.throwError("data array too short",b.errors.BUFFER_OVERRUN,{});const n=ke(t,e+1,r);e+1+r+n>t.length&&Ee.throwError("data array too short",b.errors.BUFFER_OVERRUN,{});return{consumed:1+r+n,result:R(t.slice(e+1+r,e+1+r+n))}}if(t[e]>=128){const r=t[e]-128;e+1+r>t.length&&Ee.throwError("data too short",b.errors.BUFFER_OVERRUN,{});return{consumed:1+r,result:R(t.slice(e+1,e+1+r))}}return{consumed:1,result:R(t[e])}}function Pe(t){const e=N(t),r=Ue(e,0);return r.consumed!==e.length&&Ee.throwArgumentError("invalid rlp data","data",t),r.result}const Te=new b("address/5.6.1");function Re(t){P(t,20)||Te.throwArgumentError("invalid address","address",t);const e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);const n=N(_e(r));for(let t=0;t<40;t+=2)n[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&n[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}const Ie={};for(let t=0;t<10;t++)Ie[String(t)]=String(t);for(let t=0;t<26;t++)Ie[String.fromCharCode(65+t)]=String(10+t);const Ce=Math.floor(function(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}(9007199254740991));function $e(t){let e=null;if("string"!=typeof t&&Te.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=Re(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&Te.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map((t=>Ie[t])).join("");for(;e.length>=Ce;){let t=e.substring(0,Ce);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}(t)&&Te.throwArgumentError("bad icap checksum","address",t),r=t.substring(4),e=new Lt(r,36).toString(16);e.length<40;)e="0"+e;e=Re("0x"+e)}else Te.throwArgumentError("invalid address","address",t);var r;return e}function Oe(t){try{return $e(t),!0}catch(t){}return!1}function Fe(t){let e=null;try{e=$e(t.from)}catch(e){Te.throwArgumentError("missing from address","transaction",t)}return $e(C(_e(Ne([e,U(N(Ht.from(t.nonce).toHexString()))])),12))}var Be={Space:[{name:"from",type:"address"},{name:"space",type:"string"},{name:"timestamp",type:"uint64"},{name:"settings",type:"string"}]},je={Proposal:[{name:"from",type:"address"},{name:"space",type:"string"},{name:"timestamp",type:"uint64"},{name:"type",type:"string"},{name:"title",type:"string"},{name:"body",type:"string"},{name:"discussion",type:"string"},{name:"choices",type:"string[]"},{name:"start",type:"uint64"},{name:"end",type:"uint64"},{name:"snapshot",type:"uint64"},{name:"plugins",type:"string"},{name:"app",type:"string"}]},De={CancelProposal:[{name:"from",type:"address"},{name:"space",type:"string"},{name:"timestamp",type:"uint64"},{name:"proposal",type:"string"}]},Le={CancelProposal:[{name:"from",type:"address"},{name:"space",type:"string"},{name:"timestamp",type:"uint64"},{name:"proposal",type:"bytes32"}]},ze={Vote:[{name:"from",type:"address"},{name:"space",type:"string"},{name:"timestamp",type:"uint64"},{name:"proposal",type:"string"},{name:"choice",type:"uint32"},{name:"reason",type:"string"},{name:"app",type:"string"},{name:"metadata",type:"string"}]},qe={Vote:[{name:"from",type:"address"},{name:"space",type:"string"},{name:"timestamp",type:"uint64"},{name:"proposal",type:"string"},{name:"choice",type:"uint32[]"},{name:"reason",type:"string"},{name:"app",type:"string"},{name:"metadata",type:"string"}]},Ve={Vote:[{name:"from",type:"address"},{name:"space",type:"string"},{name:"timestamp",type:"uint64"},{name:"proposal",type:"string"},{name:"choice",type:"string"},{name:"reason",type:"string"},{name:"app",type:"string"},{name:"metadata",type:"string"}]},Ge={Vote:[{name:"from",type:"address"},{name:"space",type:"string"},{name:"timestamp",type:"uint64"},{name:"proposal",type:"bytes32"},{name:"choice",type:"uint32"},{name:"reason",type:"string"},{name:"app",type:"string"},{name:"metadata",type:"string"}]},He={Vote:[{name:"from",type:"address"},{name:"space",type:"string"},{name:"timestamp",type:"uint64"},{name:"proposal",type:"bytes32"},{name:"choice",type:"uint32[]"},{name:"reason",type:"string"},{name:"app",type:"string"},{name:"metadata",type:"string"}]},Qe={Vote:[{name:"from",type:"address"},{name:"space",type:"string"},{name:"timestamp",type:"uint64"},{name:"proposal",type:"bytes32"},{name:"choice",type:"string"},{name:"reason",type:"string"},{name:"app",type:"string"},{name:"metadata",type:"string"}]},Ke={Follow:[{name:"from",type:"address"},{name:"space",type:"string"}]},Ze={Unfollow:[{name:"from",type:"address"},{name:"space",type:"string"}]},We={Subscribe:[{name:"from",type:"address"},{name:"space",type:"string"}]},Je={Unsubscribe:[{name:"from",type:"address"},{name:"space",type:"string"}]},Xe={Profile:[{name:"from",type:"address"},{name:"timestamp",type:"uint64"},{name:"profile",type:"string"}]},Ye={Statement:[{name:"from",type:"address"},{name:"timestamp",type:"uint64"},{name:"space",type:"string"},{name:"about",type:"string"},{name:"statement",type:"string"}]},tr={Alias:[{name:"from",type:"address"},{name:"alias",type:"address"}]},er={DeleteSpace:[{name:"from",type:"address"},{name:"space",type:"string"}]},rr={hub:"https://hub.snapshot.org",sequencer:"https://seq.snapshot.org"},nr={hub:"https://testnet.snapshot.org",sequencer:"https://testnet.seq.snapshot.org"},ir={hub:"http://localhost:3000",sequencer:"http://localhost:3001"},or={name:"snapshot",version:"0.1.4"},sr=function(){function t(t){void 0===t&&(t=rr.sequencer),t=(t=(t=t.replace(rr.hub,rr.sequencer)).replace(nr.hub,nr.sequencer)).replace(ir.hub,ir.sequencer),this.address=t}return t.prototype.sign=function(t,n,i,o){return e(this,void 0,void 0,(function(){var e,s,a,u;return r(this,(function(r){switch(r.label){case 0:return e=(null==t?void 0:t.getSigner)?t.getSigner():t,s=$e(n),i.from=i.from?$e(i.from):s,i.timestamp||(i.timestamp=parseInt((Date.now()/1e3).toFixed())),a={domain:or,types:o,message:i},[4,e._signTypedData(or,a.types,i)];case 1:return u=r.sent(),[4,this.send({address:s,sig:u,data:a})];case 2:return[2,r.sent()]}}))}))},t.prototype.send=function(t){return e(this,void 0,void 0,(function(){var e,n=this;return r(this,(function(r){return e={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)},[2,new Promise((function(t,r){l(n.address,e).then((function(e){if(e.ok)return t(e.json());throw e})).catch((function(t){return t.json().then((function(t){return r(t)}))}))}))]}))}))},t.prototype.space=function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,this.sign(t,n,i,Be)];case 1:return[2,e.sent()]}}))}))},t.prototype.proposal=function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return i.discussion||(i.discussion=""),i.app||(i.app=""),[4,this.sign(t,n,i,je)];case 1:return[2,e.sent()]}}))}))},t.prototype.cancelProposal=function(t,n,i){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return e=i.proposal.startsWith("0x"),[4,this.sign(t,n,i,e?Le:De)];case 1:return[2,r.sent()]}}))}))},t.prototype.vote=function(t,n,i){return e(this,void 0,void 0,(function(){var e,o,s;return r(this,(function(r){switch(r.label){case 0:return e="shutter"===(null==i?void 0:i.privacy),i.reason||(i.reason=""),i.app||(i.app=""),i.metadata||(i.metadata="{}"),o=i.proposal.startsWith("0x"),s=o?Ge:ze,["approval","ranked-choice"].includes(i.type)&&(s=o?He:qe),!e&&["quadratic","weighted"].includes(i.type)&&(s=o?Qe:Ve,i.choice=JSON.stringify(i.choice)),e&&(s=o?Qe:Ve),delete i.privacy,delete i.type,[4,this.sign(t,n,i,s)];case 1:return[2,r.sent()]}}))}))},t.prototype.follow=function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,this.sign(t,n,i,Ke)];case 1:return[2,e.sent()]}}))}))},t.prototype.unfollow=function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,this.sign(t,n,i,Ze)];case 1:return[2,e.sent()]}}))}))},t.prototype.subscribe=function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,this.sign(t,n,i,We)];case 1:return[2,e.sent()]}}))}))},t.prototype.unsubscribe=function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,this.sign(t,n,i,Je)];case 1:return[2,e.sent()]}}))}))},t.prototype.profile=function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,this.sign(t,n,i,Xe)];case 1:return[2,e.sent()]}}))}))},t.prototype.statement=function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,this.sign(t,n,i,Ye)];case 1:return[2,e.sent()]}}))}))},t.prototype.alias=function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,this.sign(t,n,i,tr)];case 1:return[2,e.sent()]}}))}))},t.prototype.deleteSpace=function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,this.sign(t,n,i,er)];case 1:return[2,e.sent()]}}))}))},t}(),ar={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/Proposal",definitions:{Proposal:{title:"Proposal",type:"object",properties:{name:{type:"string",title:"name",minLength:1,maxLength:256},body:{type:"string",title:"body",minLength:0,maxLength:2e4},discussion:{type:"string",format:"customUrl",title:"discussion",maxLength:256},choices:{type:"array",title:"choices",minItems:1,maxItems:500},type:{type:"string",enum:["single-choice","approval","ranked-choice","quadratic","weighted","custom","basic"]},snapshot:{type:"number",title:"snapshot"},start:{type:"number",title:"start",minimum:1e9,maximum:2e9},end:{type:"number",title:"end",minimum:1e9,maximum:2e9},metadata:{type:"object",title:"metadata"},app:{type:"string",title:"app",maxLength:24}},required:["name","body","choices","snapshot","start","end"],additionalProperties:!1}}},ur={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/Vote",definitions:{Vote:{title:"Vote",type:"object",properties:{proposal:{type:"string",title:"proposal"},choice:{type:["number","array","object","boolean","string"],title:"choice"},metadata:{type:"object",title:"metadata"},reason:{type:"string",title:"reason",maxLength:140},app:{type:"string",title:"app",maxLength:24}},required:["proposal","choice"],additionalProperties:!1}}},hr={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/Profile",definitions:{Profile:{title:"Profile",type:"object",properties:{name:{type:"string",title:"name",maxLength:32},about:{type:"string",title:"about",maxLength:256},avatar:{type:"string",title:"avatar",format:"customUrl",maxLength:256}},required:[],additionalProperties:!1}}},lr={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/Statement",definitions:{Statement:{title:"Statement",type:"object",properties:{about:{type:"string",format:"long",title:"About",minLength:1,maxLength:140},statement:{type:"string",format:"long",title:"Statement"}},required:["about"],additionalProperties:!1}}},cr={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/Zodiac",definitions:{Zodiac:{title:"Zodiac",type:"object",properties:{safes:{title:"Safe(s)",type:"array",maxItems:8,items:{type:"object",properties:{network:{title:"Network",type:"string"},multisend:{title:"Multisend contract address",type:"string"},realityAddress:{title:"Reality module address",type:"string"},umaAddress:{title:"UMA module address",type:"string"}},additionalProperties:!1}},additionalProperties:!1}}}},fr={space:{$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/Space",definitions:{Space:{title:"Space",type:"object",properties:{name:{type:"string",title:"name",minLength:1,maxLength:32},private:{type:"boolean"},about:{type:"string",title:"about",maxLength:160},guidelines:{type:"string",format:"customUrl",title:"guidelines",maxLength:256},template:{type:"string",title:"template",maxLength:1024},terms:{type:"string",title:"terms",format:"customUrl",maxLength:256},avatar:{type:"string",title:"avatar",format:"uri",maxLength:256},location:{type:"string",title:"location",maxLength:24},website:{type:"string",title:"website",format:"customUrl",maxLength:256},twitter:{type:"string",title:"twitter",pattern:"^[A-Za-z0-9_]*$",maxLength:15},coingecko:{type:"string",title:"coingecko",pattern:"^[a-z0-9-]*$",maxLength:32},github:{type:"string",title:"github",pattern:"^[A-Za-z0-9_-]*$",maxLength:39},email:{type:"string",title:"email",maxLength:32},network:{type:"string",title:"network",minLength:1,maxLength:32},symbol:{type:"string",title:"symbol",minLength:1,maxLength:16},skin:{type:"string",title:"skin",maxLength:32},domain:{type:"string",title:"domain",maxLength:64},strategies:{type:"array",minItems:1,maxItems:8,items:{type:"object",properties:{name:{type:"string",maxLength:64,title:"name"},network:{type:"string",maxLength:12,title:"network"},params:{type:"object",title:"params"}},required:["name"],additionalProperties:!1},title:"strategies"},members:{type:"array",maxItems:100,items:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$",minLength:42,maxLength:42},title:"members",uniqueItems:!0},admins:{type:"array",maxItems:100,items:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$",minLength:42,maxLength:42},title:"admins",uniqueItems:!0},moderators:{type:"array",maxItems:100,items:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$",minLength:42,maxLength:42},title:"moderators",uniqueItems:!0},filters:{type:"object",properties:{defaultTab:{type:"string"},minScore:{type:"number",minimum:0},onlyMembers:{type:"boolean"},invalids:{type:"array",items:{type:"string",maxLength:64},title:"invalids"}},additionalProperties:!1},validation:{type:"object",properties:{name:{type:"string",maxLength:64,title:"name"},params:{type:"object",title:"params"}},required:["name"],additionalProperties:!1},voteValidation:{type:"object",properties:{name:{type:"string",maxLength:32,title:"name"},params:{type:"object",title:"params"}},required:["name"],additionalProperties:!1},followValidation:{type:"object",properties:{name:{type:"string",maxLength:32,title:"name"},params:{type:"object",title:"params"}},required:["name"],additionalProperties:!1},delegationPortal:{type:"object",properties:{delegationType:{type:"string",title:"Delegation type",description:"Specify the type of delegation that you are using",anyOf:[{const:"compound-governor",title:"Compound governor"}]},delegationContract:{type:"string",format:"address",title:"Contract address",description:"The address of your delegation contract",examples:["0x3901D0fDe202aF1427216b79f5243f8A022d68cf"]},delegationApi:{type:"string",format:"uri",title:"Delegation API",description:"The URL of your delegation API (e.g a subgraph)",examples:["https://api.thegraph.com/subgraphs/name/arr00/uniswap-governance-v2"]}},required:["delegationType","delegationApi","delegationContract"],additionalProperties:!1},allowAlias:{type:"boolean"},plugins:{type:"object"},voting:{type:"object",properties:{delay:{type:"integer",minimum:0},period:{type:"integer",minimum:0},type:{type:"string",title:"type"},quorum:{type:"number",minimum:0},blind:{type:"boolean"},hideAbstain:{type:"boolean"},aliased:{type:"boolean"},privacy:{type:"string",enum:["","shutter"]}},additionalProperties:!1},categories:{type:"array",maxItems:2,items:{type:"string",enum:["protocol","social","investment","grant","service","media","creator","collector"]}},treasuries:{type:"array",maxItems:10,items:{type:"object",properties:{name:{type:"string",title:"Name",examples:["e.g. Balancer DAO 1"],minLength:1,maxLength:64},address:{type:"string",title:"Contract address",examples:["e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984"],pattern:"^0x[a-fA-F0-9]{40}$",minLength:42,maxLength:42},network:{type:"string",title:"Network",maxLength:12}},required:["name","address","network"],additionalProperties:!1}},parent:{type:"string",title:"parent"},children:{type:"array",maxItems:8,title:"children",items:{type:"string"}}},required:["name","network","symbol","strategies"],additionalProperties:!1}}}.definitions.Space,proposal:ar.definitions.Proposal,vote:ur.definitions.Vote,profile:hr.definitions.Profile,statement:lr.definitions.Statement,zodiac:cr.definitions.Zodiac};var dr=window&&window.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const pr=new b("properties/5.6.0");function mr(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function yr(t,e){for(let r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||"object"!=typeof t.prototype)break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function gr(t){return dr(this,void 0,void 0,(function*(){const e=Object.keys(t).map((e=>{const r=t[e];return Promise.resolve(r).then((t=>({key:e,value:t})))}));return(yield Promise.all(e)).reduce(((t,e)=>(t[e.key]=e.value,t)),{})}))}function vr(t){const e={};for(const r in t)e[r]=t[r];return e}const wr={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function br(t){if(null==t||wr[typeof t])return!0;if(Array.isArray(t)||"object"==typeof t){if(!Object.isFrozen(t))return!1;const e=Object.keys(t);for(let r=0;r<e.length;r++){let n=null;try{n=t[e[r]]}catch(t){continue}if(!br(n))return!1}return!0}return pr.throwArgumentError("Cannot deepCopy "+typeof t,"object",t)}function Ar(t){if(br(t))return t;if(Array.isArray(t))return Object.freeze(t.map((t=>_r(t))));if("object"==typeof t){const e={};for(const r in t){const n=t[r];void 0!==n&&mr(e,r,_r(n))}return e}return pr.throwArgumentError("Cannot deepCopy "+typeof t,"object",t)}function _r(t){return Ar(t)}class Er{constructor(t){for(const e in t)this[e]=_r(t[e])}}const Mr="abi/5.6.4",kr=new b(Mr),xr={};let Nr={calldata:!0,memory:!0,storage:!0},Sr={calldata:!0,memory:!0};function Ur(t,e){if("bytes"===t||"string"===t){if(Nr[e])return!0}else if("address"===t){if("payable"===e)return!0}else if((t.indexOf("[")>=0||"tuple"===t)&&Sr[e])return!0;return(Nr[e]||"payable"===e)&&kr.throwArgumentError("invalid modifier","name",e),!1}function Pr(t,e){for(let r in e)mr(t,r,e[r])}const Tr=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),Rr=new RegExp(/^(.*)\[([0-9]*)\]$/);class Ir{constructor(t,e){t!==xr&&kr.throwError("use fromString",b.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),Pr(this,e);let r=this.type.match(Rr);Pr(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:Ir.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(t){if(t||(t=Tr.sighash),Tr[t]||kr.throwArgumentError("invalid format type","format",t),t===Tr.json){let e={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(e.indexed=this.indexed),this.components&&(e.components=this.components.map((e=>JSON.parse(e.format(t))))),JSON.stringify(e)}let e="";return"array"===this.baseType?(e+=this.arrayChildren.format(t),e+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(t!==Tr.sighash&&(e+=this.type),e+="("+this.components.map((e=>e.format(t))).join(t===Tr.full?", ":",")+")"):e+=this.type,t!==Tr.sighash&&(!0===this.indexed&&(e+=" indexed"),t===Tr.full&&this.name&&(e+=" "+this.name)),e}static from(t,e){return"string"==typeof t?Ir.fromString(t,e):Ir.fromObject(t)}static fromObject(t){return Ir.isParamType(t)?t:new Ir(xr,{name:t.name||null,type:Vr(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(Ir.fromObject):null})}static fromString(t,e){return r=function(t,e){let r=t;function n(e){kr.throwArgumentError(`unexpected character at position ${e}`,"param",t)}function i(t){let r={type:"",name:"",parent:t,state:{allowType:!0}};return e&&(r.indexed=!1),r}t=t.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},s=o;for(let r=0;r<t.length;r++){let o=t[r];switch(o){case"(":s.state.allowType&&""===s.type?s.type="tuple":s.state.allowParams||n(r),s.state.allowType=!1,s.type=Vr(s.type),s.components=[i(s)],s=s.components[0];break;case")":delete s.state,"indexed"===s.name&&(e||n(r),s.indexed=!0,s.name=""),Ur(s.type,s.name)&&(s.name=""),s.type=Vr(s.type);let t=s;s=s.parent,s||n(r),delete t.parent,s.state.allowParams=!1,s.state.allowName=!0,s.state.allowArray=!0;break;case",":delete s.state,"indexed"===s.name&&(e||n(r),s.indexed=!0,s.name=""),Ur(s.type,s.name)&&(s.name=""),s.type=Vr(s.type);let a=i(s.parent);s.parent.components.push(a),delete s.parent,s=a;break;case" ":s.state.allowType&&""!==s.type&&(s.type=Vr(s.type),delete s.state.allowType,s.state.allowName=!0,s.state.allowParams=!0),s.state.allowName&&""!==s.name&&("indexed"===s.name?(e||n(r),s.indexed&&n(r),s.indexed=!0,s.name=""):Ur(s.type,s.name)?s.name="":s.state.allowName=!1);break;case"[":s.state.allowArray||n(r),s.type+=o,s.state.allowArray=!1,s.state.allowName=!1,s.state.readArray=!0;break;case"]":s.state.readArray||n(r),s.type+=o,s.state.readArray=!1,s.state.allowArray=!0,s.state.allowName=!0;break;default:s.state.allowType?(s.type+=o,s.state.allowParams=!0,s.state.allowArray=!0):s.state.allowName?(s.name+=o,delete s.state.allowArray):s.state.readArray?s.type+=o:n(r)}}return s.parent&&kr.throwArgumentError("unexpected eof","param",t),delete o.state,"indexed"===s.name?(e||n(r.length-7),s.indexed&&n(r.length-7),s.indexed=!0,s.name=""):Ur(s.type,s.name)&&(s.name=""),o.type=Vr(o.type),o}(t,!!e),Ir.fromObject({name:r.name,type:r.type,indexed:r.indexed,components:r.components});var r}static isParamType(t){return!(null==t||!t._isParamType)}}function Cr(t,e){return function(t){t=t.trim();let e=[],r="",n=0;for(let i=0;i<t.length;i++){let o=t[i];","===o&&0===n?(e.push(r),r=""):(r+=o,"("===o?n++:")"===o&&(n--,-1===n&&kr.throwArgumentError("unbalanced parenthesis","value",t)))}r&&e.push(r);return e}(t).map((t=>Ir.fromString(t,e)))}class $r{constructor(t,e){t!==xr&&kr.throwError("use a static from method",b.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),Pr(this,e),this._isFragment=!0,Object.freeze(this)}static from(t){return $r.isFragment(t)?t:"string"==typeof t?$r.fromString(t):$r.fromObject(t)}static fromObject(t){if($r.isFragment(t))return t;switch(t.type){case"function":return Lr.fromObject(t);case"event":return Or.fromObject(t);case"constructor":return Dr.fromObject(t);case"error":return qr.fromObject(t);case"fallback":case"receive":return null}return kr.throwArgumentError("invalid fragment object","value",t)}static fromString(t){return"event"===(t=(t=(t=t.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?Or.fromString(t.substring(5).trim()):"function"===t.split(" ")[0]?Lr.fromString(t.substring(8).trim()):"constructor"===t.split("(")[0].trim()?Dr.fromString(t.trim()):"error"===t.split(" ")[0]?qr.fromString(t.substring(5).trim()):kr.throwArgumentError("unsupported fragment","value",t)}static isFragment(t){return!(!t||!t._isFragment)}}class Or extends $r{format(t){if(t||(t=Tr.sighash),Tr[t]||kr.throwArgumentError("invalid format type","format",t),t===Tr.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((e=>JSON.parse(e.format(t))))});let e="";return t!==Tr.sighash&&(e+="event "),e+=this.name+"("+this.inputs.map((e=>e.format(t))).join(t===Tr.full?", ":",")+") ",t!==Tr.sighash&&this.anonymous&&(e+="anonymous "),e.trim()}static from(t){return"string"==typeof t?Or.fromString(t):Or.fromObject(t)}static fromObject(t){if(Or.isEventFragment(t))return t;"event"!==t.type&&kr.throwArgumentError("invalid event object","value",t);const e={name:Hr(t.name),anonymous:t.anonymous,inputs:t.inputs?t.inputs.map(Ir.fromObject):[],type:"event"};return new Or(xr,e)}static fromString(t){let e=t.match(Qr);e||kr.throwArgumentError("invalid event string","value",t);let r=!1;return e[3].split(" ").forEach((t=>{switch(t.trim()){case"anonymous":r=!0;break;case"":break;default:kr.warn("unknown modifier: "+t)}})),Or.fromObject({name:e[1].trim(),anonymous:r,inputs:Cr(e[2],!0),type:"event"})}static isEventFragment(t){return t&&t._isFragment&&"event"===t.type}}function Fr(t,e){e.gas=null;let r=t.split("@");return 1!==r.length?(r.length>2&&kr.throwArgumentError("invalid human-readable ABI signature","value",t),r[1].match(/^[0-9]+$/)||kr.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=Ht.from(r[1]),r[0]):t}function Br(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach((t=>{switch(t.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}}))}function jr(t){let e={constant:!1,payable:!0,stateMutability:"payable"};return null!=t.stateMutability?(e.stateMutability=t.stateMutability,e.constant="view"===e.stateMutability||"pure"===e.stateMutability,null!=t.constant&&!!t.constant!==e.constant&&kr.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable="payable"===e.stateMutability,null!=t.payable&&!!t.payable!==e.payable&&kr.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):null!=t.payable?(e.payable=!!t.payable,null!=t.constant||e.payable||"constructor"===t.type||kr.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&kr.throwArgumentError("cannot have constant payable function","value",t)):null!=t.constant?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):"constructor"!==t.type&&kr.throwArgumentError("unable to determine stateMutability","value",t),e}class Dr extends $r{format(t){if(t||(t=Tr.sighash),Tr[t]||kr.throwArgumentError("invalid format type","format",t),t===Tr.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((e=>JSON.parse(e.format(t))))});t===Tr.sighash&&kr.throwError("cannot format a constructor for sighash",b.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let e="constructor("+this.inputs.map((e=>e.format(t))).join(t===Tr.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "),e.trim()}static from(t){return"string"==typeof t?Dr.fromString(t):Dr.fromObject(t)}static fromObject(t){if(Dr.isConstructorFragment(t))return t;"constructor"!==t.type&&kr.throwArgumentError("invalid constructor object","value",t);let e=jr(t);e.constant&&kr.throwArgumentError("constructor cannot be constant","value",t);const r={name:null,type:t.type,inputs:t.inputs?t.inputs.map(Ir.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?Ht.from(t.gas):null};return new Dr(xr,r)}static fromString(t){let e={type:"constructor"},r=(t=Fr(t,e)).match(Qr);return r&&"constructor"===r[1].trim()||kr.throwArgumentError("invalid constructor string","value",t),e.inputs=Cr(r[2].trim(),!1),Br(r[3].trim(),e),Dr.fromObject(e)}static isConstructorFragment(t){return t&&t._isFragment&&"constructor"===t.type}}class Lr extends Dr{format(t){if(t||(t=Tr.sighash),Tr[t]||kr.throwArgumentError("invalid format type","format",t),t===Tr.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((e=>JSON.parse(e.format(t)))),outputs:this.outputs.map((e=>JSON.parse(e.format(t))))});let e="";return t!==Tr.sighash&&(e+="function "),e+=this.name+"("+this.inputs.map((e=>e.format(t))).join(t===Tr.full?", ":",")+") ",t!==Tr.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "):this.constant&&(e+="view "),this.outputs&&this.outputs.length&&(e+="returns ("+this.outputs.map((e=>e.format(t))).join(", ")+") "),null!=this.gas&&(e+="@"+this.gas.toString()+" ")),e.trim()}static from(t){return"string"==typeof t?Lr.fromString(t):Lr.fromObject(t)}static fromObject(t){if(Lr.isFunctionFragment(t))return t;"function"!==t.type&&kr.throwArgumentError("invalid function object","value",t);let e=jr(t);const r={type:t.type,name:Hr(t.name),constant:e.constant,inputs:t.inputs?t.inputs.map(Ir.fromObject):[],outputs:t.outputs?t.outputs.map(Ir.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?Ht.from(t.gas):null};return new Lr(xr,r)}static fromString(t){let e={type:"function"},r=(t=Fr(t,e)).split(" returns ");r.length>2&&kr.throwArgumentError("invalid function string","value",t);let n=r[0].match(Qr);if(n||kr.throwArgumentError("invalid function signature","value",t),e.name=n[1].trim(),e.name&&Hr(e.name),e.inputs=Cr(n[2],!1),Br(n[3].trim(),e),r.length>1){let n=r[1].match(Qr);""==n[1].trim()&&""==n[3].trim()||kr.throwArgumentError("unexpected tokens","value",t),e.outputs=Cr(n[2],!1)}else e.outputs=[];return Lr.fromObject(e)}static isFunctionFragment(t){return t&&t._isFragment&&"function"===t.type}}function zr(t){const e=t.format();return"Error(string)"!==e&&"Panic(uint256)"!==e||kr.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class qr extends $r{format(t){if(t||(t=Tr.sighash),Tr[t]||kr.throwArgumentError("invalid format type","format",t),t===Tr.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((e=>JSON.parse(e.format(t))))});let e="";return t!==Tr.sighash&&(e+="error "),e+=this.name+"("+this.inputs.map((e=>e.format(t))).join(t===Tr.full?", ":",")+") ",e.trim()}static from(t){return"string"==typeof t?qr.fromString(t):qr.fromObject(t)}static fromObject(t){if(qr.isErrorFragment(t))return t;"error"!==t.type&&kr.throwArgumentError("invalid error object","value",t);const e={type:t.type,name:Hr(t.name),inputs:t.inputs?t.inputs.map(Ir.fromObject):[]};return zr(new qr(xr,e))}static fromString(t){let e={type:"error"},r=t.match(Qr);return r||kr.throwArgumentError("invalid error signature","value",t),e.name=r[1].trim(),e.name&&Hr(e.name),e.inputs=Cr(r[2],!1),zr(qr.fromObject(e))}static isErrorFragment(t){return t&&t._isFragment&&"error"===t.type}}function Vr(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const Gr=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function Hr(t){return t&&t.match(Gr)||kr.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const Qr=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");const Kr=new b(Mr);class Zr{constructor(t,e,r,n){this.name=t,this.type=e,this.localName=r,this.dynamic=n}_throwError(t,e){Kr.throwArgumentError(t,this.localName,e)}}class Wr{constructor(t){mr(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}get data(){return $(this._data)}get length(){return this._dataLength}_writeData(t){return this._data.push(t),this._dataLength+=t.length,t.length}appendWriter(t){return this._writeData(S(t._data))}writeBytes(t){let e=N(t);const r=e.length%this.wordSize;return r&&(e=S([e,this._padding.slice(r)])),this._writeData(e)}_getValue(t){let e=N(Ht.from(t));return e.length>this.wordSize&&Kr.throwError("value out-of-bounds",b.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:e.length}),e.length%this.wordSize&&(e=S([this._padding.slice(e.length%this.wordSize),e])),e}writeValue(t){return this._writeData(this._getValue(t))}writeUpdatableValue(){const t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,e=>{this._data[t]=this._getValue(e)}}}class Jr{constructor(t,e,r,n){mr(this,"_data",N(t)),mr(this,"wordSize",e||32),mr(this,"_coerceFunc",r),mr(this,"allowLoose",n),this._offset=0}get data(){return R(this._data)}get consumed(){return this._offset}static coerce(t,e){let r=t.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(e=e.toNumber()),e}coerce(t,e){return this._coerceFunc?this._coerceFunc(t,e):Jr.coerce(t,e)}_peekBytes(t,e,r){let n=Math.ceil(e/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+e<=this._data.length?n=e:Kr.throwError("data out-of-bounds",b.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(t){return new Jr(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(t,e){let r=this._peekBytes(0,t,!!e);return this._offset+=r.length,r.slice(0,t)}readValue(){return Ht.from(this.readBytes(this.wordSize))}}class Xr extends Zr{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,e){try{e=$e(e)}catch(t){this._throwError(t.message,e)}return t.writeValue(e)}decode(t){return $e(F(t.readValue().toHexString(),20))}}class Yr extends Zr{constructor(t){super(t.name,t.type,void 0,t.dynamic),this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,e){return this.coder.encode(t,e)}decode(t){return this.coder.decode(t)}}const tn=new b(Mr);function en(t,e,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let t={};n=e.map((e=>{const n=e.localName;return n||tn.throwError("cannot encode object for signature with missing names",b.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[n]&&tn.throwError("cannot encode object for signature with duplicate names",b.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[n]=!0,r[n]}))}else tn.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&tn.throwArgumentError("types/value length mismatch","tuple",r);let i=new Wr(t.wordSize),o=new Wr(t.wordSize),s=[];e.forEach(((t,e)=>{let r=n[e];if(t.dynamic){let e=o.length;t.encode(o,r);let n=i.writeUpdatableValue();s.push((t=>{n(t+e)}))}else t.encode(i,r)})),s.forEach((t=>{t(i.length)}));let a=t.appendWriter(i);return a+=t.appendWriter(o),a}function rn(t,e){let r=[],n=t.subReader(0);e.forEach((e=>{let i=null;if(e.dynamic){let r=t.readValue(),o=n.subReader(r.toNumber());try{i=e.decode(o)}catch(t){if(t.code===b.errors.BUFFER_OVERRUN)throw t;i=t,i.baseType=e.name,i.name=e.localName,i.type=e.type}}else try{i=e.decode(t)}catch(t){if(t.code===b.errors.BUFFER_OVERRUN)throw t;i=t,i.baseType=e.name,i.name=e.localName,i.type=e.type}null!=i&&r.push(i)}));const i=e.reduce(((t,e)=>{const r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t}),{});e.forEach(((t,e)=>{let n=t.localName;if(!n||1!==i[n])return;if("length"===n&&(n="_length"),null!=r[n])return;const o=r[e];o instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw o}}):r[n]=o}));for(let t=0;t<r.length;t++){const e=r[t];e instanceof Error&&Object.defineProperty(r,t,{enumerable:!0,get:()=>{throw e}})}return Object.freeze(r)}class nn extends Zr{constructor(t,e,r){super("array",t.type+"["+(e>=0?e:"")+"]",r,-1===e||t.dynamic),this.coder=t,this.length=e}defaultValue(){const t=this.coder.defaultValue(),e=[];for(let r=0;r<this.length;r++)e.push(t);return e}encode(t,e){Array.isArray(e)||this._throwError("expected array value",e);let r=this.length;-1===r&&(r=e.length,t.writeValue(e.length)),tn.checkArgumentCount(e.length,r,"coder array"+(this.localName?" "+this.localName:""));let n=[];for(let t=0;t<e.length;t++)n.push(this.coder);return en(t,n,e)}decode(t){let e=this.length;-1===e&&(e=t.readValue().toNumber(),32*e>t._data.length&&tn.throwError("insufficient data length",b.errors.BUFFER_OVERRUN,{length:t._data.length,count:e}));let r=[];for(let t=0;t<e;t++)r.push(new Yr(this.coder));return t.coerce(this.name,rn(t,r))}}class on extends Zr{constructor(t){super("bool","bool",t,!1)}defaultValue(){return!1}encode(t,e){return t.writeValue(e?1:0)}decode(t){return t.coerce(this.type,!t.readValue().isZero())}}class sn extends Zr{constructor(t,e){super(t,t,e,!0)}defaultValue(){return"0x"}encode(t,e){e=N(e);let r=t.writeValue(e.length);return r+=t.writeBytes(e),r}decode(t){return t.readBytes(t.readValue().toNumber(),!0)}}class an extends sn{constructor(t){super("bytes",t)}decode(t){return t.coerce(this.name,R(super.decode(t)))}}class un extends Zr{constructor(t,e){let r="bytes"+String(t);super(r,r,e,!1),this.size=t}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(t,e){let r=N(e);return r.length!==this.size&&this._throwError("incorrect data length",e),t.writeBytes(r)}decode(t){return t.coerce(this.name,R(t.readBytes(this.size)))}}class hn extends Zr{constructor(t){super("null","",t,!1)}defaultValue(){return null}encode(t,e){return null!=e&&this._throwError("not null",e),t.writeBytes([])}decode(t){return t.readBytes(0),t.coerce(this.name,null)}}const ln=Ht.from(-1),cn=Ht.from(0),fn=Ht.from(1),dn=Ht.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class pn extends Zr{constructor(t,e,r){const n=(e?"int":"uint")+8*t;super(n,n,r,!1),this.size=t,this.signed=e}defaultValue(){return 0}encode(t,e){let r=Ht.from(e),n=dn.mask(8*t.wordSize);if(this.signed){let t=n.mask(8*this.size-1);(r.gt(t)||r.lt(t.add(fn).mul(ln)))&&this._throwError("value out-of-bounds",e)}else(r.lt(cn)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",e);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*t.wordSize)),t.writeValue(r)}decode(t){let e=t.readValue().mask(8*this.size);return this.signed&&(e=e.fromTwos(8*this.size)),t.coerce(this.name,e)}}const mn=new b("strings/5.6.1");var yn,gn;function vn(t,e,r,n,i){if(t===gn.BAD_PREFIX||t===gn.UNEXPECTED_CONTINUE){let t=0;for(let n=e+1;n<r.length&&r[n]>>6==2;n++)t++;return t}return t===gn.OVERRUN?r.length-e-1:0}!function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"}(yn||(yn={})),function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"}(gn||(gn={}));const wn=Object.freeze({error:function(t,e,r,n,i){return mn.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:vn,replace:function(t,e,r,n,i){return t===gn.OVERLONG?(n.push(i),0):(n.push(65533),vn(t,e,r))}});function bn(t,e){null==e&&(e=wn.error),t=N(t);const r=[];let n=0;for(;n<t.length;){const i=t[n++];if(i>>7==0){r.push(i);continue}let o=null,s=null;if(192==(224&i))o=1,s=127;else if(224==(240&i))o=2,s=2047;else{if(240!=(248&i)){n+=e(128==(192&i)?gn.UNEXPECTED_CONTINUE:gn.BAD_PREFIX,n-1,t,r);continue}o=3,s=65535}if(n-1+o>=t.length){n+=e(gn.OVERRUN,n-1,t,r);continue}let a=i&(1<<8-o-1)-1;for(let i=0;i<o;i++){let i=t[n];if(128!=(192&i)){n+=e(gn.MISSING_CONTINUE,n,t,r),a=null;break}a=a<<6|63&i,n++}null!==a&&(a>1114111?n+=e(gn.OUT_OF_RANGE,n-1-o,t,r,a):a>=55296&&a<=57343?n+=e(gn.UTF16_SURROGATE,n-1-o,t,r,a):a<=s?n+=e(gn.OVERLONG,n-1-o,t,r,a):r.push(a))}return r}function An(t,e=yn.current){e!=yn.current&&(mn.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e<t.length;e++){const n=t.charCodeAt(e);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if(55296==(64512&n)){e++;const i=t.charCodeAt(e);if(e>=t.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const o=65536+((1023&n)<<10)+(1023&i);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return N(r)}function _n(t){return t.map((t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t))))).join("")}function En(t,e){return _n(bn(t,e))}function Mn(t,e=yn.current){return bn(An(t,e))}function kn(t,e){e||(e=function(t){return[parseInt(t,16)]});let r=0,n={};return t.split(",").forEach((t=>{let i=t.split(":");r+=parseInt(i[0],16),n[r]=e(i[1])})),n}function xn(t){let e=0;return t.split(",").map((t=>{let r=t.split("-");1===r.length?r[1]="0":""===r[1]&&(r[1]="1");let n=e+parseInt(r[0],16);return e=parseInt(r[1],16),{l:n,h:e}}))}function Nn(t,e){let r=0;for(let n=0;n<e.length;n++){let i=e[n];if(r+=i.l,t>=r&&t<=r+i.h&&(t-r)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(t-r))continue;return i}}return null}const Sn=xn("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),Un="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((t=>parseInt(t,16))),Pn=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],Tn=kn("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),Rn=kn("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),In=kn("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(t){if(t.length%4!=0)throw new Error("bad data");let e=[];for(let r=0;r<t.length;r+=4)e.push(parseInt(t.substring(r,r+4),16));return e})),Cn=xn("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function $n(t){if(t.match(/^[a-z0-9-]*$/i)&&t.length<=59)return t.toLowerCase();let e=Mn(t);var r;r=e.map((t=>{if(Un.indexOf(t)>=0)return[];if(t>=65024&&t<=65039)return[];let e=function(t){let e=Nn(t,Pn);if(e)return[t+e.s];let r=Tn[t];if(r)return r;let n=Rn[t];return n?[t+n[0]]:In[t]||null}(t);return e||[t]})),e=r.reduce(((t,e)=>(e.forEach((e=>{t.push(e)})),t)),[]),e=Mn(_n(e),yn.NFKC),e.forEach((t=>{if(Nn(t,Cn))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),e.forEach((t=>{if(Nn(t,Sn))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));let n=_n(e);if("-"===n.substring(0,1)||"--"===n.substring(2,4)||"-"===n.substring(n.length-1))throw new Error("invalid hyphen");if(n.length>63)throw new Error("too long");return n}class On extends sn{constructor(t){super("string",t)}defaultValue(){return""}encode(t,e){return super.encode(t,An(e))}decode(t){return En(super.decode(t))}}class Fn extends Zr{constructor(t,e){let r=!1;const n=[];t.forEach((t=>{t.dynamic&&(r=!0),n.push(t.type)}));super("tuple","tuple("+n.join(",")+")",e,r),this.coders=t}defaultValue(){const t=[];this.coders.forEach((e=>{t.push(e.defaultValue())}));const e=this.coders.reduce(((t,e)=>{const r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t}),{});return this.coders.forEach(((r,n)=>{let i=r.localName;i&&1===e[i]&&("length"===i&&(i="_length"),null==t[i]&&(t[i]=t[n]))})),Object.freeze(t)}encode(t,e){return en(t,this.coders,e)}decode(t){return t.coerce(this.name,rn(t,this.coders))}}const Bn=new b(Mr),jn=new RegExp(/^bytes([0-9]*)$/),Dn=new RegExp(/^(u?int)([0-9]*)$/);const Ln=new class{constructor(t){mr(this,"coerceFunc",t||null)}_getCoder(t){switch(t.baseType){case"address":return new Xr(t.name);case"bool":return new on(t.name);case"string":return new On(t.name);case"bytes":return new an(t.name);case"array":return new nn(this._getCoder(t.arrayChildren),t.arrayLength,t.name);case"tuple":return new Fn((t.components||[]).map((t=>this._getCoder(t))),t.name);case"":return new hn(t.name)}let e=t.type.match(Dn);if(e){let r=parseInt(e[2]||"256");return(0===r||r>256||r%8!=0)&&Bn.throwArgumentError("invalid "+e[1]+" bit length","param",t),new pn(r/8,"int"===e[1],t.name)}if(e=t.type.match(jn),e){let r=parseInt(e[1]);return(0===r||r>32)&&Bn.throwArgumentError("invalid bytes length","param",t),new un(r,t.name)}return Bn.throwArgumentError("invalid type","type",t.type)}_getWordSize(){return 32}_getReader(t,e){return new Jr(t,this._getWordSize(),this.coerceFunc,e)}_getWriter(){return new Wr(this._getWordSize())}getDefaultValue(t){const e=t.map((t=>this._getCoder(Ir.from(t))));return new Fn(e,"_").defaultValue()}encode(t,e){t.length!==e.length&&Bn.throwError("types/values length mismatch",b.errors.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});const r=t.map((t=>this._getCoder(Ir.from(t)))),n=new Fn(r,"_"),i=this._getWriter();return n.encode(i,e),i.data}decode(t,e,r){const n=t.map((t=>this._getCoder(Ir.from(t))));return new Fn(n,"_").decode(this._getReader(N(e),r))}};function zn(t){return _e(An(t))}const qn="hash/5.6.1",Vn=new b(qn),Gn=new Uint8Array(32);Gn.fill(0);const Hn=new RegExp("^((.*)\\.)?([^.]+)$");function Qn(t){"string"!=typeof t&&Vn.throwArgumentError("invalid ENS name; not a string","name",t);let e=t,r=Gn;for(;e.length;){const n=e.match(Hn);null!=n&&""!==n[2]||Vn.throwArgumentError("invalid ENS address; missing component","name",t);r=_e(S([r,_e(An($n(n[3])))])),e=n[2]||""}return R(r)}var Kn=window&&window.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const Zn=new b(qn),Wn=new Uint8Array(32);Wn.fill(0);const Jn=Ht.from(-1),Xn=Ht.from(0),Yn=Ht.from(1),ti=Ht.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const ei=F(Yn.toHexString(),32),ri=F(Xn.toHexString(),32),ni={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},ii=["name","version","chainId","verifyingContract","salt"];function oi(t){return function(e){return"string"!=typeof e&&Zn.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const si={name:oi("name"),version:oi("version"),chainId:function(t){try{return Ht.from(t).toString()}catch(t){}return Zn.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return $e(t).toLowerCase()}catch(t){}return Zn.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{const e=N(t);if(32!==e.length)throw new Error("bad length");return R(e)}catch(t){}return Zn.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function ai(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const r=""===e[1],n=parseInt(e[2]||"256");(n%8!=0||n>256||e[2]&&e[2]!==String(n))&&Zn.throwArgumentError("invalid numeric width","type",t);const i=ti.mask(r?n-1:n),o=r?i.add(Yn).mul(Jn):Xn;return function(e){const r=Ht.from(e);return(r.lt(o)||r.gt(i))&&Zn.throwArgumentError(`value out-of-bounds for ${t}`,"value",e),F(r.toTwos(256).toHexString(),32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return(0===r||r>32||e[1]!==String(r))&&Zn.throwArgumentError("invalid bytes width","type",t),function(e){return N(e).length!==r&&Zn.throwArgumentError(`invalid length for ${t}`,"value",e),function(t){const e=N(t),r=e.length%32;return r?$([e,Wn.slice(r)]):R(e)}(e)}}}switch(t){case"address":return function(t){return F($e(t),32)};case"bool":return function(t){return t?ei:ri};case"bytes":return function(t){return _e(t)};case"string":return function(t){return zn(t)}}return null}function ui(t,e){return`${t}(${e.map((({name:t,type:e})=>e+" "+t)).join(",")})`}class hi{constructor(t){mr(this,"types",Object.freeze(_r(t))),mr(this,"_encoderCache",{}),mr(this,"_types",{});const e={},r={},n={};Object.keys(t).forEach((t=>{e[t]={},r[t]=[],n[t]={}}));for(const n in t){const i={};t[n].forEach((o=>{i[o.name]&&Zn.throwArgumentError(`duplicate variable name ${JSON.stringify(o.name)} in ${JSON.stringify(n)}`,"types",t),i[o.name]=!0;const s=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1];s===n&&Zn.throwArgumentError(`circular type reference to ${JSON.stringify(s)}`,"types",t);ai(s)||(r[s]||Zn.throwArgumentError(`unknown type ${JSON.stringify(s)}`,"types",t),r[s].push(n),e[n][s]=!0)}))}const i=Object.keys(r).filter((t=>0===r[t].length));0===i.length?Zn.throwArgumentError("missing primary type","types",t):i.length>1&&Zn.throwArgumentError(`ambiguous primary types or unused types: ${i.map((t=>JSON.stringify(t))).join(", ")}`,"types",t),mr(this,"primaryType",i[0]),function i(o,s){s[o]&&Zn.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,"types",t),s[o]=!0,Object.keys(e[o]).forEach((t=>{r[t]&&(i(t,s),Object.keys(s).forEach((e=>{n[e][t]=!0})))})),delete s[o]}(this.primaryType,{});for(const e in n){const r=Object.keys(n[e]);r.sort(),this._types[e]=ui(e,t[e])+r.map((e=>ui(e,t[e]))).join("")}}getEncoder(t){let e=this._encoderCache[t];return e||(e=this._encoderCache[t]=this._getEncoder(t)),e}_getEncoder(t){{const e=ai(t);if(e)return e}const e=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(e){const t=e[1],r=this.getEncoder(t),n=parseInt(e[3]);return e=>{n>=0&&e.length!==n&&Zn.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);let i=e.map(r);return this._types[t]&&(i=i.map(_e)),_e($(i))}}const r=this.types[t];if(r){const e=zn(this._types[t]);return t=>{const n=r.map((({name:e,type:r})=>{const n=this.getEncoder(r)(t[e]);return this._types[r]?_e(n):n}));return n.unshift(e),$(n)}}return Zn.throwArgumentError(`unknown type: ${t}`,"type",t)}encodeType(t){const e=this._types[t];return e||Zn.throwArgumentError(`unknown type: ${JSON.stringify(t)}`,"name",t),e}encodeData(t,e){return this.getEncoder(t)(e)}hashStruct(t,e){return _e(this.encodeData(t,e))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,e,r){if(ai(t))return r(t,e);const n=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const t=n[1],i=parseInt(n[3]);return i>=0&&e.length!==i&&Zn.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e),e.map((e=>this._visit(t,e,r)))}const i=this.types[t];return i?i.reduce(((t,{name:n,type:i})=>(t[n]=this._visit(i,e[n],r),t)),{}):Zn.throwArgumentError(`unknown type: ${t}`,"type",t)}visit(t,e){return this._visit(this.primaryType,t,e)}static from(t){return new hi(t)}static getPrimaryType(t){return hi.from(t).primaryType}static hashStruct(t,e,r){return hi.from(e).hashStruct(t,r)}static hashDomain(t){const e=[];for(const r in t){const n=ni[r];n||Zn.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",t),e.push({name:r,type:n})}return e.sort(((t,e)=>ii.indexOf(t.name)-ii.indexOf(e.name))),hi.hashStruct("EIP712Domain",{EIP712Domain:e},t)}static encode(t,e,r){return $(["0x1901",hi.hashDomain(t),hi.from(e).hash(r)])}static hash(t,e,r){return _e(hi.encode(t,e,r))}static resolveNames(t,e,r,n){return Kn(this,void 0,void 0,(function*(){t=vr(t);const i={};t.verifyingContract&&!P(t.verifyingContract,20)&&(i[t.verifyingContract]="0x");const o=hi.from(e);o.visit(r,((t,e)=>("address"!==t||P(e,20)||(i[e]="0x"),e)));for(const t in i)i[t]=yield n(t);return t.verifyingContract&&i[t.verifyingContract]&&(t.verifyingContract=i[t.verifyingContract]),r=o.visit(r,((t,e)=>"address"===t&&i[e]?i[e]:e)),{domain:t,value:r}}))}static getPayload(t,e,r){hi.hashDomain(t);const n={},i=[];ii.forEach((e=>{const r=t[e];null!=r&&(n[e]=si[e](r),i.push({name:e,type:ni[e]}))}));const o=hi.from(e),s=vr(e);return s.EIP712Domain?Zn.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",e):s.EIP712Domain=i,o.encode(r),{types:s,domain:n,primaryType:o.primaryType,message:o.visit(r,((t,e)=>{if(t.match(/^bytes(\d*)/))return R(N(e));if(t.match(/^u?int/))return Ht.from(e).toString();switch(t){case"address":return e.toLowerCase();case"bool":return!!e;case"string":return"string"!=typeof e&&Zn.throwArgumentError("invalid string","value",e),e}return Zn.throwArgumentError("unsupported type","type",t)}))}}}const li=new b(Mr);class ci extends Er{}class fi extends Er{}class di extends Er{}class pi extends Er{static isIndexed(t){return!(!t||!t._isIndexed)}}const mi={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function yi(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);return r.error=e,r}class gi{constructor(t){let e=[];e="string"==typeof t?JSON.parse(t):t,mr(this,"fragments",e.map((t=>$r.from(t))).filter((t=>null!=t))),mr(this,"_abiCoder",yr(new.target,"getAbiCoder")()),mr(this,"functions",{}),mr(this,"errors",{}),mr(this,"events",{}),mr(this,"structs",{}),this.fragments.forEach((t=>{let e=null;switch(t.type){case"constructor":return this.deploy?void li.warn("duplicate definition - constructor"):void mr(this,"deploy",t);case"function":e=this.functions;break;case"event":e=this.events;break;case"error":e=this.errors;break;default:return}let r=t.format();e[r]?li.warn("duplicate definition - "+r):e[r]=t})),this.deploy||mr(this,"deploy",Dr.from({payable:!1,type:"constructor"})),mr(this,"_isInterface",!0)}format(t){t||(t=Tr.full),t===Tr.sighash&&li.throwArgumentError("interface does not support formatting sighash","format",t);const e=this.fragments.map((e=>e.format(t)));return t===Tr.json?JSON.stringify(e.map((t=>JSON.parse(t)))):e}static getAbiCoder(){return Ln}static getAddress(t){return $e(t)}static getSighash(t){return C(zn(t.format()),0,4)}static getEventTopic(t){return zn(t.format())}getFunction(t){if(P(t)){for(const e in this.functions)if(t===this.getSighash(e))return this.functions[e];li.throwArgumentError("no matching function","sighash",t)}if(-1===t.indexOf("(")){const e=t.trim(),r=Object.keys(this.functions).filter((t=>t.split("(")[0]===e));return 0===r.length?li.throwArgumentError("no matching function","name",e):r.length>1&&li.throwArgumentError("multiple matching functions","name",e),this.functions[r[0]]}const e=this.functions[Lr.fromString(t).format()];return e||li.throwArgumentError("no matching function","signature",t),e}getEvent(t){if(P(t)){const e=t.toLowerCase();for(const t in this.events)if(e===this.getEventTopic(t))return this.events[t];li.throwArgumentError("no matching event","topichash",e)}if(-1===t.indexOf("(")){const e=t.trim(),r=Object.keys(this.events).filter((t=>t.split("(")[0]===e));return 0===r.length?li.throwArgumentError("no matching event","name",e):r.length>1&&li.throwArgumentError("multiple matching events","name",e),this.events[r[0]]}const e=this.events[Or.fromString(t).format()];return e||li.throwArgumentError("no matching event","signature",t),e}getError(t){if(P(t)){const e=yr(this.constructor,"getSighash");for(const r in this.errors){if(t===e(this.errors[r]))return this.errors[r]}li.throwArgumentError("no matching error","sighash",t)}if(-1===t.indexOf("(")){const e=t.trim(),r=Object.keys(this.errors).filter((t=>t.split("(")[0]===e));return 0===r.length?li.throwArgumentError("no matching error","name",e):r.length>1&&li.throwArgumentError("multiple matching errors","name",e),this.errors[r[0]]}const e=this.errors[Lr.fromString(t).format()];return e||li.throwArgumentError("no matching error","signature",t),e}getSighash(t){if("string"==typeof t)try{t=this.getFunction(t)}catch(e){try{t=this.getError(t)}catch(t){throw e}}return yr(this.constructor,"getSighash")(t)}getEventTopic(t){return"string"==typeof t&&(t=this.getEvent(t)),yr(this.constructor,"getEventTopic")(t)}_decodeParams(t,e){return this._abiCoder.decode(t,e)}_encodeParams(t,e){return this._abiCoder.encode(t,e)}encodeDeploy(t){return this._encodeParams(this.deploy.inputs,t||[])}decodeErrorResult(t,e){"string"==typeof t&&(t=this.getError(t));const r=N(e);return R(r.slice(0,4))!==this.getSighash(t)&&li.throwArgumentError(`data signature does not match error ${t.name}.`,"data",R(r)),this._decodeParams(t.inputs,r.slice(4))}encodeErrorResult(t,e){return"string"==typeof t&&(t=this.getError(t)),R(S([this.getSighash(t),this._encodeParams(t.inputs,e||[])]))}decodeFunctionData(t,e){"string"==typeof t&&(t=this.getFunction(t));const r=N(e);return R(r.slice(0,4))!==this.getSighash(t)&&li.throwArgumentError(`data signature does not match function ${t.name}.`,"data",R(r)),this._decodeParams(t.inputs,r.slice(4))}encodeFunctionData(t,e){return"string"==typeof t&&(t=this.getFunction(t)),R(S([this.getSighash(t),this._encodeParams(t.inputs,e||[])]))}decodeFunctionResult(t,e){"string"==typeof t&&(t=this.getFunction(t));let r=N(e),n=null,i="",o=null,s=null,a=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(t.outputs,r)}catch(t){}break;case 4:{const t=R(r.slice(0,4)),e=mi[t];if(e)o=this._abiCoder.decode(e.inputs,r.slice(4)),s=e.name,a=e.signature,e.reason&&(n=o[0]),"Error"===s?i=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(o[0])}`:"Panic"===s&&(i=`; VM Exception while processing transaction: reverted with panic code ${o[0]}`);else try{const e=this.getError(t);o=this._abiCoder.decode(e.inputs,r.slice(4)),s=e.name,a=e.format()}catch(t){}break}}return li.throwError("call revert exception"+i,b.errors.CALL_EXCEPTION,{method:t.format(),data:R(e),errorArgs:o,errorName:s,errorSignature:a,reason:n})}encodeFunctionResult(t,e){return"string"==typeof t&&(t=this.getFunction(t)),R(this._abiCoder.encode(t.outputs,e||[]))}encodeFilterTopics(t,e){"string"==typeof t&&(t=this.getEvent(t)),e.length>t.inputs.length&&li.throwError("too many arguments for "+t.format(),b.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:e});let r=[];t.anonymous||r.push(this.getEventTopic(t));const n=(t,e)=>"string"===t.type?zn(e):"bytes"===t.type?_e(R(e)):("bool"===t.type&&"boolean"==typeof e&&(e=e?"0x01":"0x00"),t.type.match(/^u?int/)&&(e=Ht.from(e).toHexString()),"address"===t.type&&this._abiCoder.encode(["address"],[e]),F(R(e),32));for(e.forEach(((e,i)=>{let o=t.inputs[i];o.indexed?null==e?r.push(null):"array"===o.baseType||"tuple"===o.baseType?li.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,e):Array.isArray(e)?r.push(e.map((t=>n(o,t)))):r.push(n(o,e)):null!=e&&li.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,e)}));r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(t,e){"string"==typeof t&&(t=this.getEvent(t));const r=[],n=[],i=[];return t.anonymous||r.push(this.getEventTopic(t)),e.length!==t.inputs.length&&li.throwArgumentError("event arguments/values mismatch","values",e),t.inputs.forEach(((t,o)=>{const s=e[o];if(t.indexed)if("string"===t.type)r.push(zn(s));else if("bytes"===t.type)r.push(_e(s));else{if("tuple"===t.baseType||"array"===t.baseType)throw new Error("not implemented");r.push(this._abiCoder.encode([t.type],[s]))}else n.push(t),i.push(s)})),{data:this._abiCoder.encode(n,i),topics:r}}decodeEventLog(t,e,r){if("string"==typeof t&&(t=this.getEvent(t)),null!=r&&!t.anonymous){let e=this.getEventTopic(t);P(r[0],32)&&r[0].toLowerCase()===e||li.throwError("fragment/topic mismatch",b.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:e,value:r[0]}),r=r.slice(1)}let n=[],i=[],o=[];t.inputs.forEach(((t,e)=>{t.indexed?"string"===t.type||"bytes"===t.type||"tuple"===t.baseType||"array"===t.baseType?(n.push(Ir.fromObject({type:"bytes32",name:t.name})),o.push(!0)):(n.push(t),o.push(!1)):(i.push(t),o.push(!1))}));let s=null!=r?this._abiCoder.decode(n,S(r)):null,a=this._abiCoder.decode(i,e,!0),u=[],h=0,l=0;t.inputs.forEach(((t,e)=>{if(t.indexed)if(null==s)u[e]=new pi({_isIndexed:!0,hash:null});else if(o[e])u[e]=new pi({_isIndexed:!0,hash:s[l++]});else try{u[e]=s[l++]}catch(t){u[e]=t}else try{u[e]=a[h++]}catch(t){u[e]=t}if(t.name&&null==u[t.name]){const r=u[e];r instanceof Error?Object.defineProperty(u,t.name,{enumerable:!0,get:()=>{throw yi(`property ${JSON.stringify(t.name)}`,r)}}):u[t.name]=r}}));for(let t=0;t<u.length;t++){const e=u[t];e instanceof Error&&Object.defineProperty(u,t,{enumerable:!0,get:()=>{throw yi(`index ${t}`,e)}})}return Object.freeze(u)}parseTransaction(t){let e=this.getFunction(t.data.substring(0,10).toLowerCase());return e?new fi({args:this._abiCoder.decode(e.inputs,"0x"+t.data.substring(10)),functionFragment:e,name:e.name,signature:e.format(),sighash:this.getSighash(e),value:Ht.from(t.value||"0")}):null}parseLog(t){let e=this.getEvent(t.topics[0]);return!e||e.anonymous?null:new ci({eventFragment:e,name:e.name,signature:e.format(),topic:this.getEventTopic(e),args:this.decodeEventLog(e,t.data,t.topics)})}parseError(t){const e=R(t);let r=this.getError(e.substring(0,10).toLowerCase());return r?new di({args:this._abiCoder.decode(r.inputs,"0x"+e.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(t){return!(!t||!t._isInterface)}}var vi=window&&window.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const wi=new b("abstract-provider/5.6.1");class bi extends Er{static isForkEvent(t){return!(!t||!t._isForkEvent)}}class Ai{constructor(){wi.checkAbstract(new.target,Ai),mr(this,"_isProvider",!0)}getFeeData(){return vi(this,void 0,void 0,(function*(){const{block:t,gasPrice:e}=yield gr({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((t=>null))});let r=null,n=null;return t&&t.baseFeePerGas&&(n=Ht.from("1500000000"),r=t.baseFeePerGas.mul(2).add(n)),{maxFeePerGas:r,maxPriorityFeePerGas:n,gasPrice:e}}))}addListener(t,e){return this.on(t,e)}removeListener(t,e){return this.off(t,e)}static isProvider(t){return!(!t||!t._isProvider)}}var _i=window&&window.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const Ei=new b("abstract-signer/5.6.2"),Mi=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],ki=[b.errors.INSUFFICIENT_FUNDS,b.errors.NONCE_EXPIRED,b.errors.REPLACEMENT_UNDERPRICED];class xi{constructor(){Ei.checkAbstract(new.target,xi),mr(this,"_isSigner",!0)}getBalance(t){return _i(this,void 0,void 0,(function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),t)}))}getTransactionCount(t){return _i(this,void 0,void 0,(function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),t)}))}estimateGas(t){return _i(this,void 0,void 0,(function*(){this._checkProvider("estimateGas");const e=yield gr(this.checkTransaction(t));return yield this.provider.estimateGas(e)}))}call(t,e){return _i(this,void 0,void 0,(function*(){this._checkProvider("call");const r=yield gr(this.checkTransaction(t));return yield this.provider.call(r,e)}))}sendTransaction(t){return _i(this,void 0,void 0,(function*(){this._checkProvider("sendTransaction");const e=yield this.populateTransaction(t),r=yield this.signTransaction(e);return yield this.provider.sendTransaction(r)}))}getChainId(){return _i(this,void 0,void 0,(function*(){this._checkProvider("getChainId");return(yield this.provider.getNetwork()).chainId}))}getGasPrice(){return _i(this,void 0,void 0,(function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()}))}getFeeData(){return _i(this,void 0,void 0,(function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()}))}resolveName(t){return _i(this,void 0,void 0,(function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(t)}))}checkTransaction(t){for(const e in t)-1===Mi.indexOf(e)&&Ei.throwArgumentError("invalid transaction key: "+e,"transaction",t);const e=vr(t);return null==e.from?e.from=this.getAddress():e.from=Promise.all([Promise.resolve(e.from),this.getAddress()]).then((e=>(e[0].toLowerCase()!==e[1].toLowerCase()&&Ei.throwArgumentError("from address mismatch","transaction",t),e[0]))),e}populateTransaction(t){return _i(this,void 0,void 0,(function*(){const e=yield gr(this.checkTransaction(t));null!=e.to&&(e.to=Promise.resolve(e.to).then((t=>_i(this,void 0,void 0,(function*(){if(null==t)return null;const e=yield this.resolveName(t);return null==e&&Ei.throwArgumentError("provided ENS name resolves to null","tx.to",t),e})))),e.to.catch((t=>{})));const r=null!=e.maxFeePerGas||null!=e.maxPriorityFeePerGas;if(null==e.gasPrice||2!==e.type&&!r?0!==e.type&&1!==e.type||!r||Ei.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",t):Ei.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t),2!==e.type&&null!=e.type||null==e.maxFeePerGas||null==e.maxPriorityFeePerGas)if(0===e.type||1===e.type)null==e.gasPrice&&(e.gasPrice=this.getGasPrice());else{const t=yield this.getFeeData();if(null==e.type)if(null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas)if(e.type=2,null!=e.gasPrice){const t=e.gasPrice;delete e.gasPrice,e.maxFeePerGas=t,e.maxPriorityFeePerGas=t}else null==e.maxFeePerGas&&(e.maxFeePerGas=t.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas);else null!=t.gasPrice?(r&&Ei.throwError("network does not support EIP-1559",b.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==e.gasPrice&&(e.gasPrice=t.gasPrice),e.type=0):Ei.throwError("failed to get consistent fee data",b.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===e.type&&(null==e.maxFeePerGas&&(e.maxFeePerGas=t.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas))}else e.type=2;return null==e.nonce&&(e.nonce=this.getTransactionCount("pending")),null==e.gasLimit&&(e.gasLimit=this.estimateGas(e).catch((t=>{if(ki.indexOf(t.code)>=0)throw t;return Ei.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",b.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,tx:e})}))),null==e.chainId?e.chainId=this.getChainId():e.chainId=Promise.all([Promise.resolve(e.chainId),this.getChainId()]).then((e=>(0!==e[1]&&e[0]!==e[1]&&Ei.throwArgumentError("chainId address mismatch","transaction",t),e[0]))),yield gr(e)}))}_checkProvider(t){this.provider||Ei.throwError("missing provider",b.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})}static isSigner(t){return!(!t||!t._isSigner)}}class Ni extends xi{constructor(t,e){super(),mr(this,"address",t),mr(this,"provider",e||null)}getAddress(){return Promise.resolve(this.address)}_fail(t,e){return Promise.resolve().then((()=>{Ei.throwError(t,b.errors.UNSUPPORTED_OPERATION,{operation:e})}))}signMessage(t){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(t){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(t,e,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(t){return new Ni(this.address,t)}}var Si=u((function(t){!function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:jt.Buffer}catch(t){}function s(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t)}function a(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function u(t,e,n,i){for(var o=0,s=0,a=Math.min(t.length,n),u=e;u<a;u++){var h=t.charCodeAt(u)-48;o*=i,s=h>=49?h-49+10:h>=17?h-17+10:h,r(h>=0&&s<i,"Invalid character"),o+=s}return o}function h(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,n):(this._parseBase(t,e,i),"le"===n&&this._initArray(this.toArray(),e,n)))},i.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},i.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=a(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=a(t,e,n)<<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(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,h=0,l=r;l<a;l+=n)h=u(t,l,l+n,e),this.imuln(i),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==s){var c=1;for(h=u(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this._strip()},i.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype._move=function(t){h(t,this)},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)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")]=l}catch(t){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var c=["","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],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,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),n=0!==o||s!==this.length-1?c[6-u.length]+u+n:u+n}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=f[t],l=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(l).toString(t);n=(p=p.idivn(l)).isZero()?m+n:c[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;l+=(s=(i=0|t.words[p])*(o=0|e.words[d])+c)/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r._strip()}i.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var s=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](s,i),s},i.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;t[r++]=255&s,r<t.length&&(t[r++]=s>>8&255),r<t.length&&(t[r++]=s>>16&255),6===o?(r<t.length&&(t[r++]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},i.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;t[r--]=255&s,r>=0&&(t[r--]=s>>8&255),r>=0&&(t[r--]=s>>16&255),6===o?(r>=0&&(t[r--]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).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(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},i.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},i.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},i.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},i.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},i.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)o=(e=(0|r.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)o=(e=(0|r.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,y=0|s[2],g=8191&y,v=y>>>13,w=0|s[3],b=8191&w,A=w>>>13,_=0|s[4],E=8191&_,M=_>>>13,k=0|s[5],x=8191&k,N=k>>>13,S=0|s[6],U=8191&S,P=S>>>13,T=0|s[7],R=8191&T,I=T>>>13,C=0|s[8],$=8191&C,O=C>>>13,F=0|s[9],B=8191&F,j=F>>>13,D=0|a[0],L=8191&D,z=D>>>13,q=0|a[1],V=8191&q,G=q>>>13,H=0|a[2],Q=8191&H,K=H>>>13,Z=0|a[3],W=8191&Z,J=Z>>>13,X=0|a[4],Y=8191&X,tt=X>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191<,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var yt=(h+(n=Math.imul(c,L))|0)+((8191&(i=(i=Math.imul(c,z))+Math.imul(f,L)|0))<<13)|0;h=((o=Math.imul(f,z))+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(p,L),i=(i=Math.imul(p,z))+Math.imul(m,L)|0,o=Math.imul(m,z);var gt=(h+(n=n+Math.imul(c,V)|0)|0)+((8191&(i=(i=i+Math.imul(c,G)|0)+Math.imul(f,V)|0))<<13)|0;h=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,L),i=(i=Math.imul(g,z))+Math.imul(v,L)|0,o=Math.imul(v,z),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,G)|0;var vt=(h+(n=n+Math.imul(c,Q)|0)|0)+((8191&(i=(i=i+Math.imul(c,K)|0)+Math.imul(f,Q)|0))<<13)|0;h=((o=o+Math.imul(f,K)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(b,L),i=(i=Math.imul(b,z))+Math.imul(A,L)|0,o=Math.imul(A,z),n=n+Math.imul(g,V)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(v,V)|0,o=o+Math.imul(v,G)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,K)|0;var wt=(h+(n=n+Math.imul(c,W)|0)|0)+((8191&(i=(i=i+Math.imul(c,J)|0)+Math.imul(f,W)|0))<<13)|0;h=((o=o+Math.imul(f,J)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,L),i=(i=Math.imul(E,z))+Math.imul(M,L)|0,o=Math.imul(M,z),n=n+Math.imul(b,V)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,K)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,J)|0;var bt=(h+(n=n+Math.imul(c,Y)|0)|0)+((8191&(i=(i=i+Math.imul(c,tt)|0)+Math.imul(f,Y)|0))<<13)|0;h=((o=o+Math.imul(f,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,L),i=(i=Math.imul(x,z))+Math.imul(N,L)|0,o=Math.imul(N,z),n=n+Math.imul(E,V)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(g,W)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(v,W)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,tt)|0;var At=(h+(n=n+Math.imul(c,rt)|0)|0)+((8191&(i=(i=i+Math.imul(c,nt)|0)+Math.imul(f,rt)|0))<<13)|0;h=((o=o+Math.imul(f,nt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,L),i=(i=Math.imul(U,z))+Math.imul(P,L)|0,o=Math.imul(P,z),n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0;var _t=(h+(n=n+Math.imul(c,ot)|0)|0)+((8191&(i=(i=i+Math.imul(c,st)|0)+Math.imul(f,ot)|0))<<13)|0;h=((o=o+Math.imul(f,st)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(R,L),i=(i=Math.imul(R,z))+Math.imul(I,L)|0,o=Math.imul(I,z),n=n+Math.imul(U,V)|0,i=(i=i+Math.imul(U,G)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,G)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(E,W)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(b,Y)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(g,rt)|0,i=(i=i+Math.imul(g,nt)|0)+Math.imul(v,rt)|0,o=o+Math.imul(v,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,st)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0;var Et=(h+(n=n+Math.imul(c,ut)|0)|0)+((8191&(i=(i=i+Math.imul(c,ht)|0)+Math.imul(f,ut)|0))<<13)|0;h=((o=o+Math.imul(f,ht)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul($,L),i=(i=Math.imul($,z))+Math.imul(O,L)|0,o=Math.imul(O,z),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(U,Q)|0,i=(i=i+Math.imul(U,K)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(x,W)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,J)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,st)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,st)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0;var Mt=(h+(n=n+Math.imul(c,ct)|0)|0)+((8191&(i=(i=i+Math.imul(c,ft)|0)+Math.imul(f,ct)|0))<<13)|0;h=((o=o+Math.imul(f,ft)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(B,L),i=(i=Math.imul(B,z))+Math.imul(j,L)|0,o=Math.imul(j,z),n=n+Math.imul($,V)|0,i=(i=i+Math.imul($,G)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,G)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(U,W)|0,i=(i=i+Math.imul(U,J)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(x,Y)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(E,rt)|0,i=(i=i+Math.imul(E,nt)|0)+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,st)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ht)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ht)|0,n=n+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0;var kt=(h+(n=n+Math.imul(c,pt)|0)|0)+((8191&(i=(i=i+Math.imul(c,mt)|0)+Math.imul(f,pt)|0))<<13)|0;h=((o=o+Math.imul(f,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(B,V),i=(i=Math.imul(B,G))+Math.imul(j,V)|0,o=Math.imul(j,G),n=n+Math.imul($,Q)|0,i=(i=i+Math.imul($,K)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(U,Y)|0,i=(i=i+Math.imul(U,tt)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,st)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(g,ct)|0,i=(i=i+Math.imul(g,ft)|0)+Math.imul(v,ct)|0,o=o+Math.imul(v,ft)|0;var xt=(h+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(B,Q),i=(i=Math.imul(B,K))+Math.imul(j,Q)|0,o=Math.imul(j,K),n=n+Math.imul($,W)|0,i=(i=i+Math.imul($,J)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(U,rt)|0,i=(i=i+Math.imul(U,nt)|0)+Math.imul(P,rt)|0,o=o+Math.imul(P,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,st)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,st)|0,n=n+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,ht)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(b,ct)|0,i=(i=i+Math.imul(b,ft)|0)+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0;var Nt=(h+(n=n+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(v,pt)|0))<<13)|0;h=((o=o+Math.imul(v,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,J))+Math.imul(j,W)|0,o=Math.imul(j,J),n=n+Math.imul($,Y)|0,i=(i=i+Math.imul($,tt)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(U,ot)|0,i=(i=i+Math.imul(U,st)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,st)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ht)|0,n=n+Math.imul(E,ct)|0,i=(i=i+Math.imul(E,ft)|0)+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0;var St=(h+(n=n+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,mt)|0)+Math.imul(A,pt)|0))<<13)|0;h=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(B,Y),i=(i=Math.imul(B,tt))+Math.imul(j,Y)|0,o=Math.imul(j,tt),n=n+Math.imul($,rt)|0,i=(i=i+Math.imul($,nt)|0)+Math.imul(O,rt)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,st)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,n=n+Math.imul(U,ut)|0,i=(i=i+Math.imul(U,ht)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,ht)|0,n=n+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,ft)|0)+Math.imul(N,ct)|0,o=o+Math.imul(N,ft)|0;var Ut=(h+(n=n+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(M,pt)|0))<<13)|0;h=((o=o+Math.imul(M,mt)|0)+(i>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(B,rt),i=(i=Math.imul(B,nt))+Math.imul(j,rt)|0,o=Math.imul(j,nt),n=n+Math.imul($,ot)|0,i=(i=i+Math.imul($,st)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(I,ut)|0,o=o+Math.imul(I,ht)|0,n=n+Math.imul(U,ct)|0,i=(i=i+Math.imul(U,ft)|0)+Math.imul(P,ct)|0,o=o+Math.imul(P,ft)|0;var Pt=(h+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(N,pt)|0))<<13)|0;h=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(B,ot),i=(i=Math.imul(B,st))+Math.imul(j,ot)|0,o=Math.imul(j,st),n=n+Math.imul($,ut)|0,i=(i=i+Math.imul($,ht)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,ht)|0,n=n+Math.imul(R,ct)|0,i=(i=i+Math.imul(R,ft)|0)+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0;var Tt=(h+(n=n+Math.imul(U,pt)|0)|0)+((8191&(i=(i=i+Math.imul(U,mt)|0)+Math.imul(P,pt)|0))<<13)|0;h=((o=o+Math.imul(P,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(B,ut),i=(i=Math.imul(B,ht))+Math.imul(j,ut)|0,o=Math.imul(j,ht),n=n+Math.imul($,ct)|0,i=(i=i+Math.imul($,ft)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,ft)|0;var Rt=(h+(n=n+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(I,pt)|0))<<13)|0;h=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(B,ct),i=(i=Math.imul(B,ft))+Math.imul(j,ct)|0,o=Math.imul(j,ft);var It=(h+(n=n+Math.imul($,pt)|0)|0)+((8191&(i=(i=i+Math.imul($,mt)|0)+Math.imul(O,pt)|0))<<13)|0;h=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Ct=(h+(n=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,mt))+Math.imul(j,pt)|0))<<13)|0;return h=((o=Math.imul(j,mt))+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,u[0]=yt,u[1]=gt,u[2]=vt,u[3]=wt,u[4]=bt,u[5]=At,u[6]=_t,u[7]=Et,u[8]=Mt,u[9]=kt,u[10]=xt,u[11]=Nt,u[12]=St,u[13]=Ut,u[14]=Pt,u[15]=Tt,u[16]=Rt,u[17]=It,u[18]=Ct,0!==h&&(u[19]=h,r.length++),r};function y(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=(0|t.words[l])*(0|e.words[h]),f=67108863&c;a=67108863&(f=f+a|0),i+=(s=(s=s+(c/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function g(t,e,r){return y(t,e,r)}Math.imul||(m=p),i.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):r<63?p(this,t,e):r<1024?y(this,t,e):g(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),g(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"==typeof t),r(t<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,s=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=s>>>26,this.words[i]=67108863&s}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new i(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var o=r.sqr();n<e.length;n++,o=o.sqr())0!==e[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<n;this.words[e]=u|s,s=a>>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},i.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=n;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},i.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,e,n){var i,o,s=t.length+n;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+a;var u=(0|t.words[i])*e;a=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)a=(o=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&o;if(0===a)return this._strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),o=t,s=0|o.words[o.length-1];0!==(r=26-this._countBits(s))&&(o=o.ushln(r),n.iushln(r),s=0|o.words[o.length-1]);var a,u=n.length-o.length;if("mod"!==e){(a=new i(null)).length=u+1,a.words=new Array(a.length);for(var h=0;h<a.length;h++)a.words[h]=0}var l=n.clone()._ishlnsubmul(o,1,u);0===l.negative&&(n=l,a&&(a.words[u]=1));for(var c=u-1;c>=0;c--){var f=67108864*(0|n.words[o.length+c])+(0|n.words[o.length+c-1]);for(f=Math.min(f/s|0,67108863),n._ishlnsubmul(o,f,c);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(o,1,c),n.isZero()||(n.negative^=1);a&&(a.words[c]=f)}return a&&a._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},i.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(o=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:o,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(o=a.div.neg()),{div:o,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,s,a},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),s=new i(0),a=new i(0),u=new i(1),h=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++h;for(var l=n.clone(),c=e.clone();!e.isZero();){for(var f=0,d=1;0==(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(e.iushrn(f);f-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(l),s.isub(c)),o.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(a),s.isub(u)):(n.isub(e),a.isub(o),u.isub(s))}return{a:a,b:u,gcd:n.iushln(h)}},i.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,s=new i(1),a=new i(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var h=0,l=1;0==(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(e.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var c=0,f=1;0==(n.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(n.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),s.isub(a)):(n.isub(e),a.isub(s))}return(o=0===e.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,s=n;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},i.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new M(t)},i.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){M.call(this,t),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)}w.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},n(b,w),b.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(A,w),n(_,w),n(E,w),E.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new A;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return v[t]=e,e},M.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(h(t,t.umod(this.m)._forceRed(this)),t)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new i(1)).iushrn(2);return this.pow(t,n)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);r(!o.isZero());var a=new i(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,h).cmp(u);)l.redIAdd(u);for(var c=this.pow(l,o),f=this.pow(t,o.addn(1).iushrn(1)),d=this.pow(t,o),p=s;0!==d.cmp(a);){for(var m=d,y=0;0!==m.cmp(a);y++)m=m.redSqr();r(y<p);var g=this.pow(c,new i(1).iushln(p-y-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=y}return f},M.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},M.prototype.pow=function(t,e){if(e.isZero())return new i(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var o=r[0],s=0,a=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],l=u-1;l>=0;l--){var c=h>>l&1;o!==r[0]&&(o=this.sqr(o)),0!==c||0!==s?(s<<=1,s|=c,(4===++a||0===n&&0===l)&&(o=this.mul(o,r[s]),a=0,s=0)):a=0}u=26}return o},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new k(t)},n(k,M),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,o)})),Ui=Pi;function Pi(t,e){if(!t)throw new Error(e||"Assertion failed")}function Ti(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function Ri(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function Ii(t){return 1===t.length?"0"+t:t}function Ci(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}Pi.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)};var $i={inherits:u((function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}})),toArray:function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(var n=0,i=0;i<t.length;i++){var o=t.charCodeAt(i);o<128?r[n++]=o:o<2048?(r[n++]=o>>6|192,r[n++]=63&o|128):Ti(t,i)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++i)),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=63&o|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=63&o|128)}else for(i=0;i<t.length;i++)r[i]=0|t[i];return r},toHex:function(t){for(var e="",r=0;r<t.length;r++)e+=Ii(t[r].toString(16));return e},htonl:Ri,toHex32:function(t,e){for(var r="",n=0;n<t.length;n++){var i=t[n];"little"===e&&(i=Ri(i)),r+=Ci(i.toString(16))}return r},zero2:Ii,zero8:Ci,join32:function(t,e,r,n){var i=r-e;Ui(i%4==0);for(var o=new Array(i/4),s=0,a=e;s<o.length;s++,a+=4){var u;u="big"===n?t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3]:t[a+3]<<24|t[a+2]<<16|t[a+1]<<8|t[a],o[s]=u>>>0}return o},split32:function(t,e){for(var r=new Array(4*t.length),n=0,i=0;n<t.length;n++,i+=4){var o=t[n];"big"===e?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},rotr32:function(t,e){return t>>>e|t<<32-e},rotl32:function(t,e){return t<<e|t>>>32-e},sum32:function(t,e){return t+e>>>0},sum32_3:function(t,e,r){return t+e+r>>>0},sum32_4:function(t,e,r,n){return t+e+r+n>>>0},sum32_5:function(t,e,r,n,i){return t+e+r+n+i>>>0},sum64:function(t,e,r,n){var i=t[e],o=n+t[e+1]>>>0,s=(o<n?1:0)+r+i;t[e]=s>>>0,t[e+1]=o},sum64_hi:function(t,e,r,n){return(e+n>>>0<e?1:0)+t+r>>>0},sum64_lo:function(t,e,r,n){return e+n>>>0},sum64_4_hi:function(t,e,r,n,i,o,s,a){var u=0,h=e;return u+=(h=h+n>>>0)<e?1:0,u+=(h=h+o>>>0)<o?1:0,t+r+i+s+(u+=(h=h+a>>>0)<a?1:0)>>>0},sum64_4_lo:function(t,e,r,n,i,o,s,a){return e+n+o+a>>>0},sum64_5_hi:function(t,e,r,n,i,o,s,a,u,h){var l=0,c=e;return l+=(c=c+n>>>0)<e?1:0,l+=(c=c+o>>>0)<o?1:0,l+=(c=c+a>>>0)<a?1:0,t+r+i+s+u+(l+=(c=c+h>>>0)<h?1:0)>>>0},sum64_5_lo:function(t,e,r,n,i,o,s,a,u,h){return e+n+o+a+h>>>0},rotr64_hi:function(t,e,r){return(e<<32-r|t>>>r)>>>0},rotr64_lo:function(t,e,r){return(t<<32-r|e>>>r)>>>0},shr64_hi:function(t,e,r){return t>>>r},shr64_lo:function(t,e,r){return(t<<32-r|e>>>r)>>>0}};function Oi(){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}var Fi=Oi;Oi.prototype.update=function(t,e){if(t=$i.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=$i.join32(t,0,t.length-r,this.endian);for(var n=0;n<t.length;n+=this._delta32)this._update(t,n,n+this._delta32)}return this},Oi.prototype.digest=function(t){return this.update(this._pad()),Ui(null===this.pending),this._digest(t)},Oi.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=t>>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n};var Bi={BlockHash:Fi},ji=$i.rotr32;var Di=function(t,e,r,n){return 0===t?Li(e,r,n):1===t||3===t?qi(e,r,n):2===t?zi(e,r,n):void 0};function Li(t,e,r){return t&e^~t&r}function zi(t,e,r){return t&e^t&r^e&r}function qi(t,e,r){return t^e^r}var Vi=function(t){return ji(t,2)^ji(t,13)^ji(t,22)};var Gi=function(t){return ji(t,6)^ji(t,11)^ji(t,25)};var Hi=function(t){return ji(t,7)^ji(t,18)^t>>>3};var Qi=function(t){return ji(t,17)^ji(t,19)^t>>>10},Ki={ft_1:Di,ch32:Li,maj32:zi,p32:qi,s0_256:Vi,s1_256:Gi,g0_256:Hi,g1_256:Qi},Zi=$i.rotl32,Wi=$i.sum32,Ji=$i.sum32_5,Xi=Ki.ft_1,Yi=Bi.BlockHash,to=[1518500249,1859775393,2400959708,3395469782];function eo(){if(!(this instanceof eo))return new eo;Yi.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}$i.inherits(eo,Yi);var ro=eo;eo.blockSize=512,eo.outSize=160,eo.hmacStrength=80,eo.padLength=64,eo.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=Zi(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],s=this.h[2],a=this.h[3],u=this.h[4];for(n=0;n<r.length;n++){var h=~~(n/20),l=Ji(Zi(i,5),Xi(h,o,s,a),u,r[n],to[h]);u=a,a=s,s=Zi(o,30),o=i,i=l}this.h[0]=Wi(this.h[0],i),this.h[1]=Wi(this.h[1],o),this.h[2]=Wi(this.h[2],s),this.h[3]=Wi(this.h[3],a),this.h[4]=Wi(this.h[4],u)},eo.prototype._digest=function(t){return"hex"===t?$i.toHex32(this.h,"big"):$i.split32(this.h,"big")};var no=$i.sum32,io=$i.sum32_4,oo=$i.sum32_5,so=Ki.ch32,ao=Ki.maj32,uo=Ki.s0_256,ho=Ki.s1_256,lo=Ki.g0_256,co=Ki.g1_256,fo=Bi.BlockHash,po=[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 mo(){if(!(this instanceof mo))return new mo;fo.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=po,this.W=new Array(64)}$i.inherits(mo,fo);var yo=mo;function go(){if(!(this instanceof go))return new go;yo.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}mo.blockSize=512,mo.outSize=256,mo.hmacStrength=192,mo.padLength=64,mo.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=io(co(r[n-2]),r[n-7],lo(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],s=this.h[2],a=this.h[3],u=this.h[4],h=this.h[5],l=this.h[6],c=this.h[7];for(Ui(this.k.length===r.length),n=0;n<r.length;n++){var f=oo(c,ho(u),so(u,h,l),this.k[n],r[n]),d=no(uo(i),ao(i,o,s));c=l,l=h,h=u,u=no(a,f),a=s,s=o,o=i,i=no(f,d)}this.h[0]=no(this.h[0],i),this.h[1]=no(this.h[1],o),this.h[2]=no(this.h[2],s),this.h[3]=no(this.h[3],a),this.h[4]=no(this.h[4],u),this.h[5]=no(this.h[5],h),this.h[6]=no(this.h[6],l),this.h[7]=no(this.h[7],c)},mo.prototype._digest=function(t){return"hex"===t?$i.toHex32(this.h,"big"):$i.split32(this.h,"big")},$i.inherits(go,yo);var vo=go;go.blockSize=512,go.outSize=224,go.hmacStrength=192,go.padLength=64,go.prototype._digest=function(t){return"hex"===t?$i.toHex32(this.h.slice(0,7),"big"):$i.split32(this.h.slice(0,7),"big")};var wo=$i.rotr64_hi,bo=$i.rotr64_lo,Ao=$i.shr64_hi,_o=$i.shr64_lo,Eo=$i.sum64,Mo=$i.sum64_hi,ko=$i.sum64_lo,xo=$i.sum64_4_hi,No=$i.sum64_4_lo,So=$i.sum64_5_hi,Uo=$i.sum64_5_lo,Po=Bi.BlockHash,To=[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,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Ro(){if(!(this instanceof Ro))return new Ro;Po.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=To,this.W=new Array(160)}$i.inherits(Ro,Po);var Io=Ro;function Co(t,e,r,n,i){var o=t&r^~t&i;return o<0&&(o+=4294967296),o}function $o(t,e,r,n,i,o){var s=e&n^~e&o;return s<0&&(s+=4294967296),s}function Oo(t,e,r,n,i){var o=t&r^t&i^r&i;return o<0&&(o+=4294967296),o}function Fo(t,e,r,n,i,o){var s=e&n^e&o^n&o;return s<0&&(s+=4294967296),s}function Bo(t,e){var r=wo(t,e,28)^wo(e,t,2)^wo(e,t,7);return r<0&&(r+=4294967296),r}function jo(t,e){var r=bo(t,e,28)^bo(e,t,2)^bo(e,t,7);return r<0&&(r+=4294967296),r}function Do(t,e){var r=wo(t,e,14)^wo(t,e,18)^wo(e,t,9);return r<0&&(r+=4294967296),r}function Lo(t,e){var r=bo(t,e,14)^bo(t,e,18)^bo(e,t,9);return r<0&&(r+=4294967296),r}function zo(t,e){var r=wo(t,e,1)^wo(t,e,8)^Ao(t,e,7);return r<0&&(r+=4294967296),r}function qo(t,e){var r=bo(t,e,1)^bo(t,e,8)^_o(t,e,7);return r<0&&(r+=4294967296),r}function Vo(t,e){var r=wo(t,e,19)^wo(e,t,29)^Ao(t,e,6);return r<0&&(r+=4294967296),r}function Go(t,e){var r=bo(t,e,19)^bo(e,t,29)^_o(t,e,6);return r<0&&(r+=4294967296),r}function Ho(){if(!(this instanceof Ho))return new Ho;Io.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Ro.blockSize=1024,Ro.outSize=512,Ro.hmacStrength=192,Ro.padLength=128,Ro.prototype._prepareBlock=function(t,e){for(var r=this.W,n=0;n<32;n++)r[n]=t[e+n];for(;n<r.length;n+=2){var i=Vo(r[n-4],r[n-3]),o=Go(r[n-4],r[n-3]),s=r[n-14],a=r[n-13],u=zo(r[n-30],r[n-29]),h=qo(r[n-30],r[n-29]),l=r[n-32],c=r[n-31];r[n]=xo(i,o,s,a,u,h,l,c),r[n+1]=No(i,o,s,a,u,h,l,c)}},Ro.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,n=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],a=this.h[4],u=this.h[5],h=this.h[6],l=this.h[7],c=this.h[8],f=this.h[9],d=this.h[10],p=this.h[11],m=this.h[12],y=this.h[13],g=this.h[14],v=this.h[15];Ui(this.k.length===r.length);for(var w=0;w<r.length;w+=2){var b=g,A=v,_=Do(c,f),E=Lo(c,f),M=Co(c,f,d,p,m),k=$o(c,f,d,p,m,y),x=this.k[w],N=this.k[w+1],S=r[w],U=r[w+1],P=So(b,A,_,E,M,k,x,N,S,U),T=Uo(b,A,_,E,M,k,x,N,S,U);b=Bo(n,i),A=jo(n,i),_=Oo(n,i,o,s,a),E=Fo(n,i,o,s,a,u);var R=Mo(b,A,_,E),I=ko(b,A,_,E);g=m,v=y,m=d,y=p,d=c,p=f,c=Mo(h,l,P,T),f=ko(l,l,P,T),h=a,l=u,a=o,u=s,o=n,s=i,n=Mo(P,T,R,I),i=ko(P,T,R,I)}Eo(this.h,0,n,i),Eo(this.h,2,o,s),Eo(this.h,4,a,u),Eo(this.h,6,h,l),Eo(this.h,8,c,f),Eo(this.h,10,d,p),Eo(this.h,12,m,y),Eo(this.h,14,g,v)},Ro.prototype._digest=function(t){return"hex"===t?$i.toHex32(this.h,"big"):$i.split32(this.h,"big")},$i.inherits(Ho,Io);var Qo=Ho;Ho.blockSize=1024,Ho.outSize=384,Ho.hmacStrength=192,Ho.padLength=128,Ho.prototype._digest=function(t){return"hex"===t?$i.toHex32(this.h.slice(0,12),"big"):$i.split32(this.h.slice(0,12),"big")};var Ko={sha1:ro,sha224:vo,sha256:yo,sha384:Qo,sha512:Io},Zo=$i.rotl32,Wo=$i.sum32,Jo=$i.sum32_3,Xo=$i.sum32_4,Yo=Bi.BlockHash;function ts(){if(!(this instanceof ts))return new ts;Yo.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}$i.inherits(ts,Yo);var es=ts;function rs(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function ns(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function is(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}ts.blockSize=512,ts.outSize=160,ts.hmacStrength=192,ts.padLength=64,ts.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],i=this.h[2],o=this.h[3],s=this.h[4],a=r,u=n,h=i,l=o,c=s,f=0;f<80;f++){var d=Wo(Zo(Xo(r,rs(f,n,i,o),t[os[f]+e],ns(f)),as[f]),s);r=s,s=o,o=Zo(i,10),i=n,n=d,d=Wo(Zo(Xo(a,rs(79-f,u,h,l),t[ss[f]+e],is(f)),us[f]),c),a=c,c=l,l=Zo(h,10),h=u,u=d}d=Jo(this.h[1],i,l),this.h[1]=Jo(this.h[2],o,c),this.h[2]=Jo(this.h[3],s,a),this.h[3]=Jo(this.h[4],r,u),this.h[4]=Jo(this.h[0],n,h),this.h[0]=d},ts.prototype._digest=function(t){return"hex"===t?$i.toHex32(this.h,"little"):$i.split32(this.h,"little")};var os=[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],ss=[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],as=[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],us=[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],hs={ripemd160:es};function ls(t,e,r){if(!(this instanceof ls))return new ls(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init($i.toArray(e,r))}var cs=ls;ls.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),Ui(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},ls.prototype.update=function(t,e){return this.inner.update(t,e),this},ls.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)};var fs=u((function(t,e){var r=e;r.utils=$i,r.common=Bi,r.sha=Ko,r.ripemd=hs,r.hmac=cs,r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160}));function ds(t,e,r){return r={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&r.path)}},t(r,r.exports),r.exports}var ps=ms;function ms(t,e){if(!t)throw new Error(e||"Assertion failed")}ms.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)};var ys=ds((function(t,e){var r=e;function n(t){return 1===t.length?"0"+t:t}function i(t){for(var e="",r=0;r<t.length;r++)e+=n(t[r].toString(16));return e}r.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!=typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e){(t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t);for(n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(n=0;n<t.length;n++){var i=t.charCodeAt(n),o=i>>8,s=255&i;o?r.push(o,s):r.push(s)}return r},r.zero2=n,r.toHex=i,r.encode=function(t,e){return"hex"===e?i(t):t}})),gs=ds((function(t,e){var r=e;r.assert=ps,r.toArray=ys.toArray,r.zero2=ys.zero2,r.toHex=ys.toHex,r.encode=ys.encode,r.getNAF=function(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<<e+1,o=t.clone(),s=0;s<n.length;s++){var a,u=o.andln(i-1);o.isOdd()?(a=u>(i>>1)-1?(i>>1)-u:u,o.isubn(a)):a=0,n[s]=a,o.iushrn(1)}return n},r.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n,i=0,o=0;t.cmpn(-i)>0||e.cmpn(-o)>0;){var s,a,u=t.andln(3)+i&3,h=e.andln(3)+o&3;3===u&&(u=-1),3===h&&(h=-1),s=0==(1&u)?0:3!==(n=t.andln(7)+i&7)&&5!==n||2!==h?u:-u,r[0].push(s),a=0==(1&h)?0:3!==(n=e.andln(7)+o&7)&&5!==n||2!==u?h:-h,r[1].push(a),2*i===s+1&&(i=1-i),2*o===a+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return r},r.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(t){return"string"==typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new Si(t,"hex","le")}})),vs=gs.getNAF,ws=gs.getJSF,bs=gs.assert;function As(t,e){this.type=t,this.p=new Si(e.p,16),this.red=e.prime?Si.red(e.prime):Si.mont(this.p),this.zero=new Si(0).toRed(this.red),this.one=new Si(1).toRed(this.red),this.two=new Si(2).toRed(this.red),this.n=e.n&&new Si(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var _s=As;function Es(t,e){this.curve=t,this.type=e,this.precomputed=null}As.prototype.point=function(){throw new Error("Not implemented")},As.prototype.validate=function(){throw new Error("Not implemented")},As.prototype._fixedNafMul=function(t,e){bs(t.precomputed);var r=t._getDoubles(),n=vs(e,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;var o,s,a=[];for(o=0;o<n.length;o+=r.step){s=0;for(var u=o+r.step-1;u>=o;u--)s=(s<<1)+n[u];a.push(s)}for(var h=this.jpoint(null,null,null),l=this.jpoint(null,null,null),c=i;c>0;c--){for(o=0;o<a.length;o++)(s=a[o])===c?l=l.mixedAdd(r.points[o]):s===-c&&(l=l.mixedAdd(r.points[o].neg()));h=h.add(l)}return h.toP()},As.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=vs(e,r,this._bitLength),s=this.jpoint(null,null,null),a=o.length-1;a>=0;a--){for(var u=0;a>=0&&0===o[a];a--)u++;if(a>=0&&u++,s=s.dblp(u),a<0)break;var h=o[a];bs(0!==h),s="affine"===t.type?h>0?s.mixedAdd(i[h-1>>1]):s.mixedAdd(i[-h-1>>1].neg()):h>0?s.add(i[h-1>>1]):s.add(i[-h-1>>1].neg())}return"affine"===t.type?s.toP():s},As.prototype._wnafMulAdd=function(t,e,r,n,i){var o,s,a,u=this._wnafT1,h=this._wnafT2,l=this._wnafT3,c=0;for(o=0;o<n;o++){var f=(a=e[o])._getNAFPoints(t);u[o]=f.wnd,h[o]=f.points}for(o=n-1;o>=1;o-=2){var d=o-1,p=o;if(1===u[d]&&1===u[p]){var m=[e[d],null,null,e[p]];0===e[d].y.cmp(e[p].y)?(m[1]=e[d].add(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg())):0===e[d].y.cmp(e[p].y.redNeg())?(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].add(e[p].neg())):(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],g=ws(r[d],r[p]);for(c=Math.max(g[0].length,c),l[d]=new Array(c),l[p]=new Array(c),s=0;s<c;s++){var v=0|g[0][s],w=0|g[1][s];l[d][s]=y[3*(v+1)+(w+1)],l[p][s]=0,h[d]=m}}else l[d]=vs(r[d],u[d],this._bitLength),l[p]=vs(r[p],u[p],this._bitLength),c=Math.max(l[d].length,c),c=Math.max(l[p].length,c)}var b=this.jpoint(null,null,null),A=this._wnafT4;for(o=c;o>=0;o--){for(var _=0;o>=0;){var E=!0;for(s=0;s<n;s++)A[s]=0|l[s][o],0!==A[s]&&(E=!1);if(!E)break;_++,o--}if(o>=0&&_++,b=b.dblp(_),o<0)break;for(s=0;s<n;s++){var M=A[s];0!==M&&(M>0?a=h[s][M-1>>1]:M<0&&(a=h[s][-M-1>>1].neg()),b="affine"===a.type?b.mixedAdd(a):b.add(a))}}for(o=0;o<n;o++)h[o]=null;return i?b:b.toP()},As.BasePoint=Es,Es.prototype.eq=function(){throw new Error("Not implemented")},Es.prototype.validate=function(){return this.curve.validate(this)},As.prototype.decodePoint=function(t,e){t=gs.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?bs(t[t.length-1]%2==0):7===t[0]&&bs(t[t.length-1]%2==1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw new Error("Unknown point format")},Es.prototype.encodeCompressed=function(t){return this.encode(t,!0)},Es.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},Es.prototype.encode=function(t,e){return gs.encode(this._encode(e),t)},Es.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},Es.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},Es.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)n=n.dbl();r.push(n)}return{step:t,points:r}},Es.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},Es.prototype._getBeta=function(){return null},Es.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e};var Ms=ds((function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}})),ks=gs.assert;function xs(t){_s.call(this,"short",t),this.a=new Si(t.a,16).toRed(this.red),this.b=new Si(t.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(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Ms(xs,_s);var Ns=xs;function Ss(t,e,r,n){_s.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new Si(e,16),this.y=new Si(r,16),n&&(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 Us(t,e,r,n){_s.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Si(0)):(this.x=new Si(e,16),this.y=new Si(r,16),this.z=new Si(n,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}xs.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new Si(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=(e=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(t.lambda)r=new Si(t.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(e))?r=i[0]:(r=i[1],ks(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:r,basis:t.basis?t.basis.map((function(t){return{a:new Si(t.a,16),b:new Si(t.b,16)}})):this._getEndoBasis(r)}}},xs.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:Si.mont(t),r=new Si(2).toRed(e).redInvm(),n=r.redNeg(),i=new Si(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},xs.prototype._getEndoBasis=function(t){for(var e,r,n,i,o,s,a,u,h,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),c=t,f=this.n.clone(),d=new Si(1),p=new Si(0),m=new Si(0),y=new Si(1),g=0;0!==c.cmpn(0);){var v=f.div(c);u=f.sub(v.mul(c)),h=m.sub(v.mul(d));var w=y.sub(v.mul(p));if(!n&&u.cmp(l)<0)e=a.neg(),r=d,n=u.neg(),i=h;else if(n&&2==++g)break;a=u,f=c,c=u,m=d,d=h,y=p,p=w}o=u.neg(),s=h;var b=n.sqr().add(i.sqr());return o.sqr().add(s.sqr()).cmp(b)>=0&&(o=e,s=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:n,b:i},{a:o,b:s}]},xs.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),s=i.mul(r.a),a=o.mul(n.a),u=i.mul(r.b),h=o.mul(n.b);return{k1:t.sub(s).sub(a),k2:u.add(h).neg()}},xs.prototype.pointFromX=function(t,e){(t=new Si(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},xs.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},xs.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var s=this._endoSplit(e[o]),a=t[o],u=a._getBeta();s.k1.negative&&(s.k1.ineg(),a=a.neg(!0)),s.k2.negative&&(s.k2.ineg(),u=u.neg(!0)),n[2*o]=a,n[2*o+1]=u,i[2*o]=s.k1,i[2*o+1]=s.k2}for(var h=this._wnafMulAdd(1,n,i,2*o,r),l=0;l<2*o;l++)n[l]=null,i[l]=null;return h},Ms(Ss,_s.BasePoint),xs.prototype.point=function(t,e,r){return new Ss(this,t,e,r)},xs.prototype.pointFromJSON=function(t,e){return Ss.fromJSON(this,t,e)},Ss.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},Ss.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]},Ss.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var o=e[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},Ss.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)+">"},Ss.prototype.isInfinity=function(){return this.inf},Ss.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},Ss.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},Ss.prototype.getX=function(){return this.x.fromRed()},Ss.prototype.getY=function(){return this.y.fromRed()},Ss.prototype.mul=function(t){return t=new Si(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},Ss.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},Ss.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},Ss.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},Ss.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},Ss.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},Ms(Us,_s.BasePoint),xs.prototype.jpoint=function(t,e,r){return new Us(this,t,e,r)},Us.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},Us.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Us.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(r.redMul(this.z)),a=n.redSub(i),u=o.redSub(s);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h=a.redSqr(),l=h.redMul(a),c=n.redMul(h),f=u.redSqr().redIAdd(l).redISub(c).redISub(c),d=u.redMul(c.redISub(f)).redISub(o.redMul(l)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(f,d,p)},Us.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),s=r.redSub(n),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),h=u.redMul(s),l=r.redMul(u),c=a.redSqr().redIAdd(h).redISub(l).redISub(l),f=a.redMul(l.redISub(c)).redISub(i.redMul(h)),d=this.z.redMul(s);return this.curve.jpoint(c,f,d)},Us.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e<t;e++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,s=this.y,a=this.z,u=a.redSqr().redSqr(),h=s.redAdd(s);for(e=0;e<t;e++){var l=o.redSqr(),c=h.redSqr(),f=c.redSqr(),d=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(u)),p=o.redMul(c),m=d.redSqr().redISub(p.redAdd(p)),y=p.redISub(m),g=d.redMul(y);g=g.redIAdd(g).redISub(f);var v=h.redMul(a);e+1<t&&(u=u.redMul(f)),o=m,a=v,h=g}return this.curve.jpoint(o,h.redMul(i),a)},Us.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},Us.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n),u=a.redSqr().redISub(s).redISub(s),h=o.redIAdd(o);h=(h=h.redIAdd(h)).redIAdd(h),t=u,e=a.redMul(s.redISub(u)).redISub(h),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),c=this.y.redSqr(),f=c.redSqr(),d=this.x.redAdd(c).redSqr().redISub(l).redISub(f);d=d.redIAdd(d);var p=l.redAdd(l).redIAdd(l),m=p.redSqr(),y=f.redIAdd(f);y=(y=y.redIAdd(y)).redIAdd(y),t=m.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(y),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},Us.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=a.redSqr().redISub(s).redISub(s);t=u;var h=o.redIAdd(o);h=(h=h.redIAdd(h)).redIAdd(h),e=a.redMul(s.redISub(u)).redISub(h),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),c=this.y.redSqr(),f=this.x.redMul(c),d=this.x.redSub(l).redMul(this.x.redAdd(l));d=d.redAdd(d).redIAdd(d);var p=f.redIAdd(f),m=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(c).redISub(l);var y=c.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y),e=d.redMul(p.redISub(t)).redISub(y)}return this.curve.jpoint(t,e,r)},Us.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=e.redSqr(),s=r.redSqr(),a=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),u=e.redAdd(e),h=(u=u.redIAdd(u)).redMul(s),l=a.redSqr().redISub(h.redAdd(h)),c=h.redISub(l),f=s.redSqr();f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var d=a.redMul(c).redISub(f),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,d,p)},Us.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),s=this.x.redAdd(e).redSqr().redISub(t).redISub(n),a=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var h=i.redIAdd(s).redSqr().redISub(o).redISub(a).redISub(u),l=e.redMul(h);l=(l=l.redIAdd(l)).redIAdd(l);var c=this.x.redMul(a).redISub(l);c=(c=c.redIAdd(c)).redIAdd(c);var f=this.y.redMul(h.redMul(u.redISub(h)).redISub(s.redMul(a)));f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var d=this.z.redAdd(s).redSqr().redISub(r).redISub(a);return this.curve.jpoint(c,f,d)},Us.prototype.mul=function(t,e){return t=new Si(t,e),this.curve._wnafMul(this,t)},Us.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},Us.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},Us.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)+">"},Us.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var Ps=ds((function(t,e){var r=e;r.base=_s,r.short=Ns,r.mont=null,r.edwards=null})),Ts=ds((function(t,e){var r,n=e,i=gs.assert;function o(t){"short"===t.type?this.curve=new Ps.short(t):"edwards"===t.type?this.curve=new Ps.edwards(t):this.curve=new Ps.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(t,e){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var r=new o(e);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=o,s("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:fs.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("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:fs.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("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:fs.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("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:fs.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"]}),s("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:fs.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"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:fs.sha256,gRed:!1,g:["9"]}),s("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:fs.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(t){r=void 0}s("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:fs.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function Rs(t){if(!(this instanceof Rs))return new Rs(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=ys.toArray(t.entropy,t.entropyEnc||"hex"),r=ys.toArray(t.nonce,t.nonceEnc||"hex"),n=ys.toArray(t.pers,t.persEnc||"hex");ps(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var Is=Rs;Rs.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},Rs.prototype._hmac=function(){return new fs.hmac(this.hash,this.K)},Rs.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},Rs.prototype.reseed=function(t,e,r,n){"string"!=typeof e&&(n=r,r=e,e=null),t=ys.toArray(t,e),r=ys.toArray(r,n),ps(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},Rs.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=ys.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<t;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,t);return this._update(r),this._reseed++,ys.encode(o,e)};var Cs=gs.assert;function $s(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var Os=$s;$s.fromPublic=function(t,e,r){return e instanceof $s?e:new $s(t,{pub:e,pubEnc:r})},$s.fromPrivate=function(t,e,r){return e instanceof $s?e:new $s(t,{priv:e,privEnc:r})},$s.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.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"}},$s.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},$s.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},$s.prototype._importPrivate=function(t,e){this.priv=new Si(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},$s.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?Cs(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||Cs(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},$s.prototype.derive=function(t){return t.validate()||Cs(t.validate(),"public point not validated"),t.mul(this.priv).getX()},$s.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},$s.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},$s.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var Fs=gs.assert;function Bs(t,e){if(t instanceof Bs)return t;this._importDER(t,e)||(Fs(t.r&&t.s,"Signature without r or s"),this.r=new Si(t.r,16),this.s=new Si(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var js=Bs;function Ds(){this.place=0}function Ls(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,s=e.place;o<n;o++,s++)i<<=8,i|=t[s],i>>>=0;return!(i<=127)&&(e.place=s,i)}function zs(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function qs(t,e){if(e<128)t.push(e);else{var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}Bs.prototype._importDER=function(t,e){t=gs.toArray(t,e);var r=new Ds;if(48!==t[r.place++])return!1;var n=Ls(t,r);if(!1===n)return!1;if(n+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var i=Ls(t,r);if(!1===i)return!1;var o=t.slice(r.place,i+r.place);if(r.place+=i,2!==t[r.place++])return!1;var s=Ls(t,r);if(!1===s)return!1;if(t.length!==s+r.place)return!1;var a=t.slice(r.place,s+r.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new Si(o),this.s=new Si(a),this.recoveryParam=null,!0},Bs.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=zs(e),r=zs(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];qs(n,e.length),(n=n.concat(e)).push(2),qs(n,r.length);var i=n.concat(r),o=[48];return qs(o,i.length),o=o.concat(i),gs.encode(o,t)};var Vs=function(){throw new Error("unsupported")},Gs=gs.assert;function Hs(t){if(!(this instanceof Hs))return new Hs(t);"string"==typeof t&&(Gs(Object.prototype.hasOwnProperty.call(Ts,t),"Unknown curve "+t),t=Ts[t]),t instanceof Ts.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var Qs=Hs;Hs.prototype.keyPair=function(t){return new Os(this,t)},Hs.prototype.keyFromPrivate=function(t,e){return Os.fromPrivate(this,t,e)},Hs.prototype.keyFromPublic=function(t,e){return Os.fromPublic(this,t,e)},Hs.prototype.genKeyPair=function(t){t||(t={});for(var e=new Is({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||Vs(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new Si(2));;){var i=new Si(e.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},Hs.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},Hs.prototype.sign=function(t,e,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new Si(t,16));for(var i=this.n.byteLength(),o=e.getPrivate().toArray("be",i),s=t.toArray("be",i),a=new Is({hash:this.hash,entropy:o,nonce:s,pers:n.pers,persEnc:n.persEnc||"utf8"}),u=this.n.sub(new Si(1)),h=0;;h++){var l=n.k?n.k(h):new Si(a.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(u)>=0)){var c=this.g.mul(l);if(!c.isInfinity()){var f=c.getX(),d=f.umod(this.n);if(0!==d.cmpn(0)){var p=l.invm(this.n).mul(d.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(c.getY().isOdd()?1:0)|(0!==f.cmp(d)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new js({r:d,s:p,recoveryParam:m})}}}}}},Hs.prototype.verify=function(t,e,r,n){t=this._truncateToN(new Si(t,16)),r=this.keyFromPublic(r,n);var i=(e=new js(e,"hex")).r,o=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,a=o.invm(this.n),u=a.mul(t).umod(this.n),h=a.mul(i).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,r.getPublic(),h)).isInfinity()&&s.eqXToP(i):!(s=this.g.mulAdd(u,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(i)},Hs.prototype.recoverPubKey=function(t,e,r,n){Gs((3&r)===r,"The recovery param is more than two bits"),e=new js(e,n);var i=this.n,o=new Si(t),s=e.r,a=e.s,u=1&r,h=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");s=h?this.curve.pointFromX(s.add(this.curve.n),u):this.curve.pointFromX(s,u);var l=e.r.invm(i),c=i.sub(o).mul(l).umod(i),f=a.mul(l).umod(i);return this.g.mulAdd(c,s,f)},Hs.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new js(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var Ks=ds((function(t,e){var r=e;r.version="6.5.4",r.utils=gs,r.rand=function(){throw new Error("unsupported")},r.curve=Ps,r.curves=Ts,r.ec=Qs,r.eddsa=null})).ec;const Zs=new b("signing-key/5.6.2");let Ws=null;function Js(){return Ws||(Ws=new Ks("secp256k1")),Ws}class Xs{constructor(t){mr(this,"curve","secp256k1"),mr(this,"privateKey",R(t)),32!==I(this.privateKey)&&Zs.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const e=Js().keyFromPrivate(N(this.privateKey));mr(this,"publicKey","0x"+e.getPublic(!1,"hex")),mr(this,"compressedPublicKey","0x"+e.getPublic(!0,"hex")),mr(this,"_isSigningKey",!0)}_addPoint(t){const e=Js().keyFromPublic(N(this.publicKey)),r=Js().keyFromPublic(N(t));return"0x"+e.pub.add(r.pub).encodeCompressed("hex")}signDigest(t){const e=Js().keyFromPrivate(N(this.privateKey)),r=N(t);32!==r.length&&Zs.throwArgumentError("bad digest length","digest",t);const n=e.sign(r,{canonical:!0});return B({recoveryParam:n.recoveryParam,r:F("0x"+n.r.toString(16),32),s:F("0x"+n.s.toString(16),32)})}computeSharedSecret(t){const e=Js().keyFromPrivate(N(this.privateKey)),r=Js().keyFromPublic(N(Ys(t)));return F("0x"+e.derive(r.getPublic()).toString(16),32)}static isSigningKey(t){return!(!t||!t._isSigningKey)}}function Ys(t,e){const r=N(t);if(32===r.length){const t=new Xs(r);return e?"0x"+Js().keyFromPrivate(r).getPublic(!0,"hex"):t.publicKey}return 33===r.length?e?R(r):"0x"+Js().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?e?"0x"+Js().keyFromPublic(r).getPublic(!0,"hex"):R(r):Zs.throwArgumentError("invalid public or private key","key","[REDACTED]")}const ta=new b("transactions/5.6.2");var ea;function ra(t){return"0x"===t?null:$e(t)}function na(t){return"0x"===t?cn:Ht.from(t)}function ia(t,e){return function(t){return $e(C(_e(C(Ys(t),1)),12))}(function(t,e){const r=B(e),n={r:N(r.r),s:N(r.s)};return"0x"+Js().recoverPubKey(N(t),n,r.recoveryParam).encode("hex",!1)}(N(t),e))}function oa(t,e){const r=U(Ht.from(t).toHexString());return r.length>32&&ta.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function sa(t,e){return{address:$e(t),storageKeys:(e||[]).map(((e,r)=>(32!==I(e)&&ta.throwArgumentError("invalid access list storageKey",`accessList[${t}:${r}]`,e),e.toLowerCase())))}}function aa(t){if(Array.isArray(t))return t.map(((t,e)=>Array.isArray(t)?(t.length>2&&ta.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${e}]`,t),sa(t[0],t[1])):sa(t.address,t.storageKeys)));const e=Object.keys(t).map((e=>{const r=t[e].reduce(((t,e)=>(t[e]=!0,t)),{});return sa(e,Object.keys(r).sort())}));return e.sort(((t,e)=>t.address.localeCompare(e.address))),e}function ua(t){return aa(t).map((t=>[t.address,t.storageKeys]))}function ha(t,e){if(null!=t.gasPrice){const e=Ht.from(t.gasPrice),r=Ht.from(t.maxFeePerGas||0);e.eq(r)||ta.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:e,maxFeePerGas:r})}const r=[oa(t.chainId||0,"chainId"),oa(t.nonce||0,"nonce"),oa(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),oa(t.maxFeePerGas||0,"maxFeePerGas"),oa(t.gasLimit||0,"gasLimit"),null!=t.to?$e(t.to):"0x",oa(t.value||0,"value"),t.data||"0x",ua(t.accessList||[])];if(e){const t=B(e);r.push(oa(t.recoveryParam,"recoveryParam")),r.push(U(t.r)),r.push(U(t.s))}return $(["0x02",Ne(r)])}function la(t,e){const r=[oa(t.chainId||0,"chainId"),oa(t.nonce||0,"nonce"),oa(t.gasPrice||0,"gasPrice"),oa(t.gasLimit||0,"gasLimit"),null!=t.to?$e(t.to):"0x",oa(t.value||0,"value"),t.data||"0x",ua(t.accessList||[])];if(e){const t=B(e);r.push(oa(t.recoveryParam,"recoveryParam")),r.push(U(t.r)),r.push(U(t.s))}return $(["0x01",Ne(r)])}function ca(t,e,r){try{const r=na(e[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");t.v=r}catch(t){ta.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=F(e[1],32),t.s=F(e[2],32);try{const e=_e(r(t));t.from=ia(e,{r:t.r,s:t.s,recoveryParam:t.v})}catch(t){}}function fa(t){const e=N(t);if(e[0]>127)return function(t){const e=Pe(t);9!==e.length&&6!==e.length&&ta.throwArgumentError("invalid raw transaction","rawTransaction",t);const r={nonce:na(e[0]).toNumber(),gasPrice:na(e[1]),gasLimit:na(e[2]),to:ra(e[3]),value:na(e[4]),data:e[5],chainId:0};if(6===e.length)return r;try{r.v=Ht.from(e[6]).toNumber()}catch(t){return r}if(r.r=F(e[7],32),r.s=F(e[8],32),Ht.from(r.r).isZero()&&Ht.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27;const i=e.slice(0,6);0!==r.chainId&&(i.push(R(r.chainId)),i.push("0x"),i.push("0x"),n-=2*r.chainId+8);const o=_e(Ne(i));try{r.from=ia(o,{r:R(r.r),s:R(r.s),recoveryParam:n})}catch(t){}r.hash=_e(t)}return r.type=null,r}(e);switch(e[0]){case 1:return function(t){const e=Pe(t.slice(1));8!==e.length&&11!==e.length&&ta.throwArgumentError("invalid component count for transaction type: 1","payload",R(t));const r={type:1,chainId:na(e[0]).toNumber(),nonce:na(e[1]).toNumber(),gasPrice:na(e[2]),gasLimit:na(e[3]),to:ra(e[4]),value:na(e[5]),data:e[6],accessList:aa(e[7])};return 8===e.length||(r.hash=_e(t),ca(r,e.slice(8),la)),r}(e);case 2:return function(t){const e=Pe(t.slice(1));9!==e.length&&12!==e.length&&ta.throwArgumentError("invalid component count for transaction type: 2","payload",R(t));const r=na(e[2]),n=na(e[3]),i={type:2,chainId:na(e[0]).toNumber(),nonce:na(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:na(e[4]),to:ra(e[5]),value:na(e[6]),data:e[7],accessList:aa(e[8])};return 9===e.length||(i.hash=_e(t),ca(i,e.slice(9),ha)),i}(e)}return ta.throwError(`unsupported transaction type: ${e[0]}`,b.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}!function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"}(ea||(ea={}));var da=window&&window.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const pa=new b("contracts/5.6.2");function ma(t,e){return da(this,void 0,void 0,(function*(){const r=yield e;"string"!=typeof r&&pa.throwArgumentError("invalid address or ENS name","name",r);try{return $e(r)}catch(t){}t||pa.throwError("a provider or signer is needed to resolve ENS names",b.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield t.resolveName(r);return null==n&&pa.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n}))}function ya(t,e,r){return da(this,void 0,void 0,(function*(){return Array.isArray(r)?yield Promise.all(r.map(((r,n)=>ya(t,Array.isArray(e)?e[n]:e[r.name],r)))):"address"===r.type?yield ma(t,e):"tuple"===r.type?yield ya(t,e,r.components):"array"===r.baseType?Array.isArray(e)?yield Promise.all(e.map((e=>ya(t,e,r.arrayChildren)))):Promise.reject(pa.makeError("invalid value for array",b.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e}))}function ga(t,e,r){return da(this,void 0,void 0,(function*(){let n={};r.length===e.inputs.length+1&&"object"==typeof r[r.length-1]&&(n=vr(r.pop())),pa.checkArgumentCount(r.length,e.inputs.length,"passed to contract"),t.signer?n.from?n.from=gr({override:ma(t.signer,n.from),signer:t.signer.getAddress()}).then((t=>da(this,void 0,void 0,(function*(){return $e(t.signer)!==t.override&&pa.throwError("Contract with a Signer cannot override from",b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),t.override})))):n.from=t.signer.getAddress():n.from&&(n.from=ma(t.provider,n.from));const i=yield gr({args:ya(t.signer||t.provider,r,e.inputs),address:t.resolvedAddress,overrides:gr(n)||{}}),o=t.interface.encodeFunctionData(e,i.args),s={data:o,to:i.address},a=i.overrides;if(null!=a.nonce&&(s.nonce=Ht.from(a.nonce).toNumber()),null!=a.gasLimit&&(s.gasLimit=Ht.from(a.gasLimit)),null!=a.gasPrice&&(s.gasPrice=Ht.from(a.gasPrice)),null!=a.maxFeePerGas&&(s.maxFeePerGas=Ht.from(a.maxFeePerGas)),null!=a.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=Ht.from(a.maxPriorityFeePerGas)),null!=a.from&&(s.from=a.from),null!=a.type&&(s.type=a.type),null!=a.accessList&&(s.accessList=aa(a.accessList)),null==s.gasLimit&&null!=e.gas){let t=21e3;const r=N(o);for(let e=0;e<r.length;e++)t+=4,r[e]&&(t+=64);s.gasLimit=Ht.from(e.gas).add(t)}if(a.value){const t=Ht.from(a.value);t.isZero()||e.payable||pa.throwError("non-payable method cannot override value",b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:n.value}),s.value=t}a.customData&&(s.customData=vr(a.customData)),a.ccipReadEnabled&&(s.ccipReadEnabled=!!a.ccipReadEnabled),delete n.nonce,delete n.gasLimit,delete n.gasPrice,delete n.from,delete n.value,delete n.type,delete n.accessList,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.customData,delete n.ccipReadEnabled;const u=Object.keys(n).filter((t=>null!=n[t]));return u.length&&pa.throwError(`cannot override ${u.map((t=>JSON.stringify(t))).join(",")}`,b.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:u}),s}))}function va(t,e,r){const n=t.signer||t.provider;return function(...i){return da(this,void 0,void 0,(function*(){let o;if(i.length===e.inputs.length+1&&"object"==typeof i[i.length-1]){const t=vr(i.pop());null!=t.blockTag&&(o=yield t.blockTag),delete t.blockTag,i.push(t)}null!=t.deployTransaction&&(yield t._deployed(o));const s=yield ga(t,e,i),a=yield n.call(s,o);try{let n=t.interface.decodeFunctionResult(e,a);return r&&1===e.outputs.length&&(n=n[0]),n}catch(e){throw e.code===b.errors.CALL_EXCEPTION&&(e.address=t.address,e.args=i,e.transaction=s),e}}))}}function wa(t,e){return function(...r){return da(this,void 0,void 0,(function*(){t.signer||pa.throwError("sending a transaction requires a signer",b.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=t.deployTransaction&&(yield t._deployed());const n=yield ga(t,e,r),i=yield t.signer.sendTransaction(n);return function(t,e){const r=e.wait.bind(e);e.wait=e=>r(e).then((e=>(e.events=e.logs.map((r=>{let n=_r(r),i=null;try{i=t.interface.parseLog(r)}catch(t){}return i&&(n.args=i.args,n.decode=(e,r)=>t.interface.decodeEventLog(i.eventFragment,e,r),n.event=i.name,n.eventSignature=i.signature),n.removeListener=()=>t.provider,n.getBlock=()=>t.provider.getBlock(e.blockHash),n.getTransaction=()=>t.provider.getTransaction(e.transactionHash),n.getTransactionReceipt=()=>Promise.resolve(e),n})),e)))}(t,i),i}))}}function ba(t,e,r){return e.constant?va(t,e,r):wa(t,e)}function Aa(t){return!t.address||null!=t.topics&&0!==t.topics.length?(t.address||"*")+"@"+(t.topics?t.topics.map((t=>Array.isArray(t)?t.join("|"):t)).join(":"):""):"*"}class _a{constructor(t,e){mr(this,"tag",t),mr(this,"filter",e),this._listeners=[]}addListener(t,e){this._listeners.push({listener:t,once:e})}removeListener(t){let e=!1;this._listeners=this._listeners.filter((r=>!(!e&&r.listener===t)||(e=!0,!1)))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map((t=>t.listener))}listenerCount(){return this._listeners.length}run(t){const e=this.listenerCount();return this._listeners=this._listeners.filter((e=>{const r=t.slice();return setTimeout((()=>{e.listener.apply(this,r)}),0),!e.once})),e}prepareEvent(t){}getEmit(t){return[t]}}class Ea extends _a{constructor(){super("error",null)}}class Ma extends _a{constructor(t,e,r,n){const i={address:t};let o=e.getEventTopic(r);n?(o!==n[0]&&pa.throwArgumentError("topic mismatch","topics",n),i.topics=n.slice()):i.topics=[o],super(Aa(i),i),mr(this,"address",t),mr(this,"interface",e),mr(this,"fragment",r)}prepareEvent(t){super.prepareEvent(t),t.event=this.fragment.name,t.eventSignature=this.fragment.format(),t.decode=(t,e)=>this.interface.decodeEventLog(this.fragment,t,e);try{t.args=this.interface.decodeEventLog(this.fragment,t.data,t.topics)}catch(e){t.args=null,t.decodeError=e}}getEmit(t){const e=function(t){const e=[],r=function(t,n){if(Array.isArray(n))for(let i in n){const o=t.slice();o.push(i);try{r(o,n[i])}catch(t){e.push({path:o,error:t})}}};return r([],t),e}(t.args);if(e.length)throw e[0].error;const r=(t.args||[]).slice();return r.push(t),r}}class ka extends _a{constructor(t,e){super("*",{address:t}),mr(this,"address",t),mr(this,"interface",e)}prepareEvent(t){super.prepareEvent(t);try{const e=this.interface.parseLog(t);t.event=e.name,t.eventSignature=e.signature,t.decode=(t,r)=>this.interface.decodeEventLog(e.eventFragment,t,r),t.args=e.args}catch(t){}}}class xa extends class{constructor(t,e,r){mr(this,"interface",yr(new.target,"getInterface")(e)),null==r?(mr(this,"provider",null),mr(this,"signer",null)):xi.isSigner(r)?(mr(this,"provider",r.provider||null),mr(this,"signer",r)):Ai.isProvider(r)?(mr(this,"provider",r),mr(this,"signer",null)):pa.throwArgumentError("invalid signer or provider","signerOrProvider",r),mr(this,"callStatic",{}),mr(this,"estimateGas",{}),mr(this,"functions",{}),mr(this,"populateTransaction",{}),mr(this,"filters",{});{const t={};Object.keys(this.interface.events).forEach((e=>{const r=this.interface.events[e];mr(this.filters,e,((...t)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,t)}))),t[r.name]||(t[r.name]=[]),t[r.name].push(e)})),Object.keys(t).forEach((e=>{const r=t[e];1===r.length?mr(this.filters,e,this.filters[r[0]]):pa.warn(`Duplicate definition of ${e} (${r.join(", ")})`)}))}if(mr(this,"_runningEvents",{}),mr(this,"_wrappedEmits",{}),null==t&&pa.throwArgumentError("invalid contract address or ENS name","addressOrName",t),mr(this,"address",t),this.provider)mr(this,"resolvedAddress",ma(this.provider,t));else try{mr(this,"resolvedAddress",Promise.resolve($e(t)))}catch(t){pa.throwError("provider is required to use ENS name as contract address",b.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch((t=>{}));const n={},i={};Object.keys(this.interface.functions).forEach((t=>{const e=this.interface.functions[t];if(i[t])pa.warn(`Duplicate ABI entry for ${JSON.stringify(t)}`);else{i[t]=!0;{const r=e.name;n[`%${r}`]||(n[`%${r}`]=[]),n[`%${r}`].push(t)}null==this[t]&&mr(this,t,ba(this,e,!0)),null==this.functions[t]&&mr(this.functions,t,ba(this,e,!1)),null==this.callStatic[t]&&mr(this.callStatic,t,va(this,e,!0)),null==this.populateTransaction[t]&&mr(this.populateTransaction,t,function(t,e){return function(...r){return ga(t,e,r)}}(this,e)),null==this.estimateGas[t]&&mr(this.estimateGas,t,function(t,e){const r=t.signer||t.provider;return function(...n){return da(this,void 0,void 0,(function*(){r||pa.throwError("estimate require a provider or signer",b.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield ga(t,e,n);return yield r.estimateGas(i)}))}}(this,e))}})),Object.keys(n).forEach((t=>{const e=n[t];if(e.length>1)return;t=t.substring(1);const r=e[0];try{null==this[t]&&mr(this,t,this[r])}catch(t){}null==this.functions[t]&&mr(this.functions,t,this.functions[r]),null==this.callStatic[t]&&mr(this.callStatic,t,this.callStatic[r]),null==this.populateTransaction[t]&&mr(this.populateTransaction,t,this.populateTransaction[r]),null==this.estimateGas[t]&&mr(this.estimateGas,t,this.estimateGas[r])}))}static getContractAddress(t){return Fe(t)}static getInterface(t){return gi.isInterface(t)?t:new gi(t)}deployed(){return this._deployed()}_deployed(t){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((()=>this)):this._deployedPromise=this.provider.getCode(this.address,t).then((t=>("0x"===t&&pa.throwError("contract not deployed",b.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this)))),this._deployedPromise}fallback(t){this.signer||pa.throwError("sending a transactions require a signer",b.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const e=vr(t||{});return["from","to"].forEach((function(t){null!=e[t]&&pa.throwError("cannot override "+t,b.errors.UNSUPPORTED_OPERATION,{operation:t})})),e.to=this.resolvedAddress,this.deployed().then((()=>this.signer.sendTransaction(e)))}connect(t){"string"==typeof t&&(t=new Ni(t,this.provider));const e=new this.constructor(this.address,this.interface,t);return this.deployTransaction&&mr(e,"deployTransaction",this.deployTransaction),e}attach(t){return new this.constructor(t,this.interface,this.signer||this.provider)}static isIndexed(t){return pi.isIndexed(t)}_normalizeRunningEvent(t){return this._runningEvents[t.tag]?this._runningEvents[t.tag]:t}_getRunningEvent(t){if("string"==typeof t){if("error"===t)return this._normalizeRunningEvent(new Ea);if("event"===t)return this._normalizeRunningEvent(new _a("event",null));if("*"===t)return this._normalizeRunningEvent(new ka(this.address,this.interface));const e=this.interface.getEvent(t);return this._normalizeRunningEvent(new Ma(this.address,this.interface,e))}if(t.topics&&t.topics.length>0){try{const e=t.topics[0];if("string"!=typeof e)throw new Error("invalid topic");const r=this.interface.getEvent(e);return this._normalizeRunningEvent(new Ma(this.address,this.interface,r,t.topics))}catch(t){}const e={address:this.address,topics:t.topics};return this._normalizeRunningEvent(new _a(Aa(e),e))}return this._normalizeRunningEvent(new ka(this.address,this.interface))}_checkRunningEvents(t){if(0===t.listenerCount()){delete this._runningEvents[t.tag];const e=this._wrappedEmits[t.tag];e&&t.filter&&(this.provider.off(t.filter,e),delete this._wrappedEmits[t.tag])}}_wrapEvent(t,e,r){const n=_r(e);return n.removeListener=()=>{r&&(t.removeListener(r),this._checkRunningEvents(t))},n.getBlock=()=>this.provider.getBlock(e.blockHash),n.getTransaction=()=>this.provider.getTransaction(e.transactionHash),n.getTransactionReceipt=()=>this.provider.getTransactionReceipt(e.transactionHash),t.prepareEvent(n),n}_addEventListener(t,e,r){if(this.provider||pa.throwError("events require a provider or a signer with a provider",b.errors.UNSUPPORTED_OPERATION,{operation:"once"}),t.addListener(e,r),this._runningEvents[t.tag]=t,!this._wrappedEmits[t.tag]){const r=r=>{let n=this._wrapEvent(t,r,e);if(null==n.decodeError)try{const e=t.getEmit(n);this.emit(t.filter,...e)}catch(t){n.decodeError=t.error}null!=t.filter&&this.emit("event",n),null!=n.decodeError&&this.emit("error",n.decodeError,n)};this._wrappedEmits[t.tag]=r,null!=t.filter&&this.provider.on(t.filter,r)}}queryFilter(t,e,r){const n=this._getRunningEvent(t),i=vr(n.filter);return"string"==typeof e&&P(e,32)?(null!=r&&pa.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),i.blockHash=e):(i.fromBlock=null!=e?e:0,i.toBlock=null!=r?r:"latest"),this.provider.getLogs(i).then((t=>t.map((t=>this._wrapEvent(n,t,null)))))}on(t,e){return this._addEventListener(this._getRunningEvent(t),e,!1),this}once(t,e){return this._addEventListener(this._getRunningEvent(t),e,!0),this}emit(t,...e){if(!this.provider)return!1;const r=this._getRunningEvent(t),n=r.run(e)>0;return this._checkRunningEvents(r),n}listenerCount(t){return this.provider?null==t?Object.keys(this._runningEvents).reduce(((t,e)=>t+this._runningEvents[e].listenerCount()),0):this._getRunningEvent(t).listenerCount():0}listeners(t){if(!this.provider)return[];if(null==t){const t=[];for(let e in this._runningEvents)this._runningEvents[e].listeners().forEach((e=>{t.push(e)}));return t}return this._getRunningEvent(t).listeners()}removeAllListeners(t){if(!this.provider)return this;if(null==t){for(const t in this._runningEvents){const e=this._runningEvents[t];e.removeAllListeners(),this._checkRunningEvents(e)}return this}const e=this._getRunningEvent(t);return e.removeAllListeners(),this._checkRunningEvents(e),this}off(t,e){if(!this.provider)return this;const r=this._getRunningEvent(t);return r.removeListener(e),this._checkRunningEvents(r),this}removeListener(t,e){return this.off(t,e)}}{}var Na=u((function(t){!function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:jt.Buffer}catch(t){}function s(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t)}function a(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function u(t,e,n,i){for(var o=0,s=0,a=Math.min(t.length,n),u=e;u<a;u++){var h=t.charCodeAt(u)-48;o*=i,s=h>=49?h-49+10:h>=17?h-17+10:h,r(h>=0&&s<i,"Invalid character"),o+=s}return o}function h(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,n):(this._parseBase(t,e,i),"le"===n&&this._initArray(this.toArray(),e,n)))},i.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},i.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=a(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=a(t,e,n)<<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(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,h=0,l=r;l<a;l+=n)h=u(t,l,l+n,e),this.imuln(i),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==s){var c=1;for(h=u(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this._strip()},i.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype._move=function(t){h(t,this)},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)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")]=l}catch(t){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var c=["","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],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,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),n=0!==o||s!==this.length-1?c[6-u.length]+u+n:u+n}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=f[t],l=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(l).toString(t);n=(p=p.idivn(l)).isZero()?m+n:c[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;l+=(s=(i=0|t.words[p])*(o=0|e.words[d])+c)/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r._strip()}i.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var s=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](s,i),s},i.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;t[r++]=255&s,r<t.length&&(t[r++]=s>>8&255),r<t.length&&(t[r++]=s>>16&255),6===o?(r<t.length&&(t[r++]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},i.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;t[r--]=255&s,r>=0&&(t[r--]=s>>8&255),r>=0&&(t[r--]=s>>16&255),6===o?(r>=0&&(t[r--]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).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(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},i.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},i.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},i.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},i.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},i.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)o=(e=(0|r.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)o=(e=(0|r.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,y=0|s[2],g=8191&y,v=y>>>13,w=0|s[3],b=8191&w,A=w>>>13,_=0|s[4],E=8191&_,M=_>>>13,k=0|s[5],x=8191&k,N=k>>>13,S=0|s[6],U=8191&S,P=S>>>13,T=0|s[7],R=8191&T,I=T>>>13,C=0|s[8],$=8191&C,O=C>>>13,F=0|s[9],B=8191&F,j=F>>>13,D=0|a[0],L=8191&D,z=D>>>13,q=0|a[1],V=8191&q,G=q>>>13,H=0|a[2],Q=8191&H,K=H>>>13,Z=0|a[3],W=8191&Z,J=Z>>>13,X=0|a[4],Y=8191&X,tt=X>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191<,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var yt=(h+(n=Math.imul(c,L))|0)+((8191&(i=(i=Math.imul(c,z))+Math.imul(f,L)|0))<<13)|0;h=((o=Math.imul(f,z))+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(p,L),i=(i=Math.imul(p,z))+Math.imul(m,L)|0,o=Math.imul(m,z);var gt=(h+(n=n+Math.imul(c,V)|0)|0)+((8191&(i=(i=i+Math.imul(c,G)|0)+Math.imul(f,V)|0))<<13)|0;h=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,L),i=(i=Math.imul(g,z))+Math.imul(v,L)|0,o=Math.imul(v,z),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,G)|0;var vt=(h+(n=n+Math.imul(c,Q)|0)|0)+((8191&(i=(i=i+Math.imul(c,K)|0)+Math.imul(f,Q)|0))<<13)|0;h=((o=o+Math.imul(f,K)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(b,L),i=(i=Math.imul(b,z))+Math.imul(A,L)|0,o=Math.imul(A,z),n=n+Math.imul(g,V)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(v,V)|0,o=o+Math.imul(v,G)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,K)|0;var wt=(h+(n=n+Math.imul(c,W)|0)|0)+((8191&(i=(i=i+Math.imul(c,J)|0)+Math.imul(f,W)|0))<<13)|0;h=((o=o+Math.imul(f,J)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,L),i=(i=Math.imul(E,z))+Math.imul(M,L)|0,o=Math.imul(M,z),n=n+Math.imul(b,V)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,K)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,J)|0;var bt=(h+(n=n+Math.imul(c,Y)|0)|0)+((8191&(i=(i=i+Math.imul(c,tt)|0)+Math.imul(f,Y)|0))<<13)|0;h=((o=o+Math.imul(f,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,L),i=(i=Math.imul(x,z))+Math.imul(N,L)|0,o=Math.imul(N,z),n=n+Math.imul(E,V)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(g,W)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(v,W)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,tt)|0;var At=(h+(n=n+Math.imul(c,rt)|0)|0)+((8191&(i=(i=i+Math.imul(c,nt)|0)+Math.imul(f,rt)|0))<<13)|0;h=((o=o+Math.imul(f,nt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,L),i=(i=Math.imul(U,z))+Math.imul(P,L)|0,o=Math.imul(P,z),n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0;var _t=(h+(n=n+Math.imul(c,ot)|0)|0)+((8191&(i=(i=i+Math.imul(c,st)|0)+Math.imul(f,ot)|0))<<13)|0;h=((o=o+Math.imul(f,st)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(R,L),i=(i=Math.imul(R,z))+Math.imul(I,L)|0,o=Math.imul(I,z),n=n+Math.imul(U,V)|0,i=(i=i+Math.imul(U,G)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,G)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(E,W)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(b,Y)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(g,rt)|0,i=(i=i+Math.imul(g,nt)|0)+Math.imul(v,rt)|0,o=o+Math.imul(v,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,st)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0;var Et=(h+(n=n+Math.imul(c,ut)|0)|0)+((8191&(i=(i=i+Math.imul(c,ht)|0)+Math.imul(f,ut)|0))<<13)|0;h=((o=o+Math.imul(f,ht)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul($,L),i=(i=Math.imul($,z))+Math.imul(O,L)|0,o=Math.imul(O,z),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(U,Q)|0,i=(i=i+Math.imul(U,K)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(x,W)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,J)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,st)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,st)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0;var Mt=(h+(n=n+Math.imul(c,ct)|0)|0)+((8191&(i=(i=i+Math.imul(c,ft)|0)+Math.imul(f,ct)|0))<<13)|0;h=((o=o+Math.imul(f,ft)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(B,L),i=(i=Math.imul(B,z))+Math.imul(j,L)|0,o=Math.imul(j,z),n=n+Math.imul($,V)|0,i=(i=i+Math.imul($,G)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,G)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(U,W)|0,i=(i=i+Math.imul(U,J)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(x,Y)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(E,rt)|0,i=(i=i+Math.imul(E,nt)|0)+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,st)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ht)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ht)|0,n=n+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0;var kt=(h+(n=n+Math.imul(c,pt)|0)|0)+((8191&(i=(i=i+Math.imul(c,mt)|0)+Math.imul(f,pt)|0))<<13)|0;h=((o=o+Math.imul(f,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(B,V),i=(i=Math.imul(B,G))+Math.imul(j,V)|0,o=Math.imul(j,G),n=n+Math.imul($,Q)|0,i=(i=i+Math.imul($,K)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(U,Y)|0,i=(i=i+Math.imul(U,tt)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,st)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(g,ct)|0,i=(i=i+Math.imul(g,ft)|0)+Math.imul(v,ct)|0,o=o+Math.imul(v,ft)|0;var xt=(h+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(B,Q),i=(i=Math.imul(B,K))+Math.imul(j,Q)|0,o=Math.imul(j,K),n=n+Math.imul($,W)|0,i=(i=i+Math.imul($,J)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(U,rt)|0,i=(i=i+Math.imul(U,nt)|0)+Math.imul(P,rt)|0,o=o+Math.imul(P,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,st)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,st)|0,n=n+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,ht)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(b,ct)|0,i=(i=i+Math.imul(b,ft)|0)+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0;var Nt=(h+(n=n+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(v,pt)|0))<<13)|0;h=((o=o+Math.imul(v,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,J))+Math.imul(j,W)|0,o=Math.imul(j,J),n=n+Math.imul($,Y)|0,i=(i=i+Math.imul($,tt)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(U,ot)|0,i=(i=i+Math.imul(U,st)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,st)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ht)|0,n=n+Math.imul(E,ct)|0,i=(i=i+Math.imul(E,ft)|0)+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0;var St=(h+(n=n+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,mt)|0)+Math.imul(A,pt)|0))<<13)|0;h=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(B,Y),i=(i=Math.imul(B,tt))+Math.imul(j,Y)|0,o=Math.imul(j,tt),n=n+Math.imul($,rt)|0,i=(i=i+Math.imul($,nt)|0)+Math.imul(O,rt)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,st)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,st)|0,n=n+Math.imul(U,ut)|0,i=(i=i+Math.imul(U,ht)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,ht)|0,n=n+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,ft)|0)+Math.imul(N,ct)|0,o=o+Math.imul(N,ft)|0;var Ut=(h+(n=n+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(M,pt)|0))<<13)|0;h=((o=o+Math.imul(M,mt)|0)+(i>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(B,rt),i=(i=Math.imul(B,nt))+Math.imul(j,rt)|0,o=Math.imul(j,nt),n=n+Math.imul($,ot)|0,i=(i=i+Math.imul($,st)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(I,ut)|0,o=o+Math.imul(I,ht)|0,n=n+Math.imul(U,ct)|0,i=(i=i+Math.imul(U,ft)|0)+Math.imul(P,ct)|0,o=o+Math.imul(P,ft)|0;var Pt=(h+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(N,pt)|0))<<13)|0;h=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(B,ot),i=(i=Math.imul(B,st))+Math.imul(j,ot)|0,o=Math.imul(j,st),n=n+Math.imul($,ut)|0,i=(i=i+Math.imul($,ht)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,ht)|0,n=n+Math.imul(R,ct)|0,i=(i=i+Math.imul(R,ft)|0)+Math.imul(I,ct)|0,o=o+Math.imul(I,ft)|0;var Tt=(h+(n=n+Math.imul(U,pt)|0)|0)+((8191&(i=(i=i+Math.imul(U,mt)|0)+Math.imul(P,pt)|0))<<13)|0;h=((o=o+Math.imul(P,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(B,ut),i=(i=Math.imul(B,ht))+Math.imul(j,ut)|0,o=Math.imul(j,ht),n=n+Math.imul($,ct)|0,i=(i=i+Math.imul($,ft)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,ft)|0;var Rt=(h+(n=n+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(I,pt)|0))<<13)|0;h=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(B,ct),i=(i=Math.imul(B,ft))+Math.imul(j,ct)|0,o=Math.imul(j,ft);var It=(h+(n=n+Math.imul($,pt)|0)|0)+((8191&(i=(i=i+Math.imul($,mt)|0)+Math.imul(O,pt)|0))<<13)|0;h=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Ct=(h+(n=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,mt))+Math.imul(j,pt)|0))<<13)|0;return h=((o=Math.imul(j,mt))+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,u[0]=yt,u[1]=gt,u[2]=vt,u[3]=wt,u[4]=bt,u[5]=At,u[6]=_t,u[7]=Et,u[8]=Mt,u[9]=kt,u[10]=xt,u[11]=Nt,u[12]=St,u[13]=Ut,u[14]=Pt,u[15]=Tt,u[16]=Rt,u[17]=It,u[18]=Ct,0!==h&&(u[19]=h,r.length++),r};function y(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=(0|t.words[l])*(0|e.words[h]),f=67108863&c;a=67108863&(f=f+a|0),i+=(s=(s=s+(c/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function g(t,e,r){return y(t,e,r)}Math.imul||(m=p),i.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):r<63?p(this,t,e):r<1024?y(this,t,e):g(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),g(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"==typeof t),r(t<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,s=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=s>>>26,this.words[i]=67108863&s}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new i(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var o=r.sqr();n<e.length;n++,o=o.sqr())0!==e[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<n;this.words[e]=u|s,s=a>>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},i.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=n;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},i.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,e,n){var i,o,s=t.length+n;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+a;var u=(0|t.words[i])*e;a=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)a=(o=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&o;if(0===a)return this._strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),o=t,s=0|o.words[o.length-1];0!==(r=26-this._countBits(s))&&(o=o.ushln(r),n.iushln(r),s=0|o.words[o.length-1]);var a,u=n.length-o.length;if("mod"!==e){(a=new i(null)).length=u+1,a.words=new Array(a.length);for(var h=0;h<a.length;h++)a.words[h]=0}var l=n.clone()._ishlnsubmul(o,1,u);0===l.negative&&(n=l,a&&(a.words[u]=1));for(var c=u-1;c>=0;c--){var f=67108864*(0|n.words[o.length+c])+(0|n.words[o.length+c-1]);for(f=Math.min(f/s|0,67108863),n._ishlnsubmul(o,f,c);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(o,1,c),n.isZero()||(n.negative^=1);a&&(a.words[c]=f)}return a&&a._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},i.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(o=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:o,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(o=a.div.neg()),{div:o,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,s,a},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),s=new i(0),a=new i(0),u=new i(1),h=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++h;for(var l=n.clone(),c=e.clone();!e.isZero();){for(var f=0,d=1;0==(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(e.iushrn(f);f-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(l),s.isub(c)),o.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(a),s.isub(u)):(n.isub(e),a.isub(o),u.isub(s))}return{a:a,b:u,gcd:n.iushln(h)}},i.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,s=new i(1),a=new i(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var h=0,l=1;0==(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(e.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var c=0,f=1;0==(n.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(n.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),s.isub(a)):(n.isub(e),a.isub(s))}return(o=0===e.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,s=n;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},i.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new M(t)},i.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){M.call(this,t),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)}w.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},n(b,w),b.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(A,w),n(_,w),n(E,w),E.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new A;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return v[t]=e,e},M.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(h(t,t.umod(this.m)._forceRed(this)),t)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new i(1)).iushrn(2);return this.pow(t,n)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);r(!o.isZero());var a=new i(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,h).cmp(u);)l.redIAdd(u);for(var c=this.pow(l,o),f=this.pow(t,o.addn(1).iushrn(1)),d=this.pow(t,o),p=s;0!==d.cmp(a);){for(var m=d,y=0;0!==m.cmp(a);y++)m=m.redSqr();r(y<p);var g=this.pow(c,new i(1).iushln(p-y-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=y}return f},M.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},M.prototype.pow=function(t,e){if(e.isZero())return new i(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var o=r[0],s=0,a=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],l=u-1;l>=0;l--){var c=h>>l&1;o!==r[0]&&(o=this.sqr(o)),0!==c||0!==s?(s<<=1,s|=c,(4===++a||0===n&&0===l)&&(o=this.mul(o,r[s]),a=0,s=0)):a=0}u=26}return o},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new k(t)},n(k,M),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,o)}));let Sa=!1,Ua=!1;const Pa={debug:1,default:2,info:2,warning:3,error:4,off:5};let Ta=Pa.default,Ra=null;const Ia=function(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(r){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var Ca,$a;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(Ca||(Ca={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"}($a||($a={}));const Oa="0123456789abcdef";class Fa{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const r=t.toLowerCase();null==Pa[r]&&this.throwArgumentError("invalid log level name","logLevel",t),Ta>Pa[r]||console.log.apply(console,e)}debug(...t){this._log(Fa.levels.DEBUG,t)}info(...t){this._log(Fa.levels.INFO,t)}warn(...t){this._log(Fa.levels.WARNING,t)}makeError(t,e,r){if(Ua)return this.makeError("censored error",e,{});e||(e=Fa.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((t=>{const e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=Oa[e[t]>>4],r+=Oa[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}})),n.push(`code=${e}`),n.push(`version=${this.version}`);const i=t;let o="";switch(e){case $a.NUMERIC_FAULT:{o="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case $a.CALL_EXCEPTION:case $a.INSUFFICIENT_FUNDS:case $a.MISSING_NEW:case $a.NONCE_EXPIRED:case $a.REPLACEMENT_UNDERPRICED:case $a.TRANSACTION_REPLACED:case $a.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");const s=new Error(t);return s.reason=i,s.code=e,Object.keys(r).forEach((function(t){s[t]=r[t]})),s}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,Fa.errors.INVALID_ARGUMENT,{argument:e,value:r})}assert(t,e,r,n){t||this.throwError(e,r,n)}assertArgument(t,e,r,n){t||this.throwArgumentError(e,r,n)}checkNormalize(t){Ia&&this.throwError("platform missing String.prototype.normalize",Fa.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Ia})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,Fa.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,Fa.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,Fa.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,Fa.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",Fa.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",Fa.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",Fa.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return Ra||(Ra=new Fa("logger/5.7.0")),Ra}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",Fa.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Sa){if(!t)return;this.globalLogger().throwError("error censorship permanent",Fa.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Ua=!!t,Sa=!!e}static setLogLevel(t){const e=Pa[t.toLowerCase()];null!=e?Ta=e:Fa.globalLogger().warn("invalid log level - "+t)}static from(t){return new Fa(t)}}Fa.errors=$a,Fa.levels=Ca;const Ba=new Fa("bytes/5.7.0");function ja(t){return!!t.toHexString}function Da(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return Da(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function La(t){return"number"==typeof t&&t==t&&t%1==0}function za(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t)return!1;if(!La(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){const r=t[e];if(!La(r)||r<0||r>=256)return!1}return!0}function qa(t,e){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}const Va="0123456789abcdef";function Ga(t,e){if(e||(e={}),"number"==typeof t){Ba.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=Va[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),ja(t))return t.toHexString();if(qa(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":Ba.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(za(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=Va[(240&n)>>4]+Va[15&n]}return e}return Ba.throwArgumentError("invalid hexlify value","value",t)}function Ha(t,e){for("string"!=typeof t?t=Ga(t):qa(t)||Ba.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&Ba.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}const Qa="bignumber/5.7.0";var Ka=Na.BN;const Za=new Fa(Qa),Wa={},Ja=9007199254740991;let Xa=!1;class Ya{constructor(t,e){t!==Wa&&Za.throwError("cannot call constructor directly; use BigNumber.from",Fa.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return eu(ru(this).fromTwos(t))}toTwos(t){return eu(ru(this).toTwos(t))}abs(){return"-"===this._hex[0]?Ya.from(this._hex.substring(1)):this}add(t){return eu(ru(this).add(ru(t)))}sub(t){return eu(ru(this).sub(ru(t)))}div(t){return Ya.from(t).isZero()&&nu("division-by-zero","div"),eu(ru(this).div(ru(t)))}mul(t){return eu(ru(this).mul(ru(t)))}mod(t){const e=ru(t);return e.isNeg()&&nu("division-by-zero","mod"),eu(ru(this).umod(e))}pow(t){const e=ru(t);return e.isNeg()&&nu("negative-power","pow"),eu(ru(this).pow(e))}and(t){const e=ru(t);return(this.isNegative()||e.isNeg())&&nu("unbound-bitwise-result","and"),eu(ru(this).and(e))}or(t){const e=ru(t);return(this.isNegative()||e.isNeg())&&nu("unbound-bitwise-result","or"),eu(ru(this).or(e))}xor(t){const e=ru(t);return(this.isNegative()||e.isNeg())&&nu("unbound-bitwise-result","xor"),eu(ru(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&nu("negative-width","mask"),eu(ru(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&nu("negative-width","shl"),eu(ru(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&nu("negative-width","shr"),eu(ru(this).shrn(t))}eq(t){return ru(this).eq(ru(t))}lt(t){return ru(this).lt(ru(t))}lte(t){return ru(this).lte(ru(t))}gt(t){return ru(this).gt(ru(t))}gte(t){return ru(this).gte(ru(t))}isNegative(){return"-"===this._hex[0]}isZero(){return ru(this).isZero()}toNumber(){try{return ru(this).toNumber()}catch(t){nu("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return Za.throwError("this platform does not support BigInt",Fa.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?Xa||(Xa=!0,Za.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?Za.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",Fa.errors.UNEXPECTED_ARGUMENT,{}):Za.throwError("BigNumber.toString does not accept parameters",Fa.errors.UNEXPECTED_ARGUMENT,{})),ru(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof Ya)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new Ya(Wa,tu(t)):t.match(/^-?[0-9]+$/)?new Ya(Wa,tu(new Ka(t))):Za.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&nu("underflow","BigNumber.from",t),(t>=Ja||t<=-Ja)&&nu("overflow","BigNumber.from",t),Ya.from(String(t));const e=t;if("bigint"==typeof e)return Ya.from(e.toString());if(za(e))return Ya.from(Ga(e));if(e)if(e.toHexString){const t=e.toHexString();if("string"==typeof t)return Ya.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(qa(t)||"-"===t[0]&&qa(t.substring(1))))return Ya.from(t)}return Za.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function tu(t){if("string"!=typeof t)return tu(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&Za.throwArgumentError("invalid hex","value",t),"0x00"===(t=tu(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function eu(t){return Ya.from(tu(t))}function ru(t){const e=Ya.from(t).toHexString();return"-"===e[0]?new Ka("-"+e.substring(3),16):new Ka(e.substring(2),16)}function nu(t,e,r){const n={fault:t,operation:e};return null!=r&&(n.value=r),Za.throwError(t,Fa.errors.NUMERIC_FAULT,n)}const iu=new Fa(Qa),ou={},su=Ya.from(0),au=Ya.from(-1);function uu(t,e,r,n){const i={fault:e,operation:r};return void 0!==n&&(i.value=n),iu.throwError(t,Fa.errors.NUMERIC_FAULT,i)}let hu="0";for(;hu.length<256;)hu+=hu;function lu(t){if("number"!=typeof t)try{t=Ya.from(t).toNumber()}catch(t){}return"number"==typeof t&&t>=0&&t<=256&&!(t%1)?"1"+hu.substring(0,t):iu.throwArgumentError("invalid decimal size","decimals",t)}function cu(t,e){null==e&&(e=0);const r=lu(e),n=(t=Ya.from(t)).lt(su);n&&(t=t.mul(au));let i=t.mod(r).toString();for(;i.length<r.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];const o=t.div(r).toString();return t=1===r.length?o:o+"."+i,n&&(t="-"+t),t}function fu(t,e){null==e&&(e=0);const r=lu(e);"string"==typeof t&&t.match(/^-?[0-9.]+$/)||iu.throwArgumentError("invalid decimal value","value",t);const n="-"===t.substring(0,1);n&&(t=t.substring(1)),"."===t&&iu.throwArgumentError("missing value","value",t);const i=t.split(".");i.length>2&&iu.throwArgumentError("too many decimal points","value",t);let o=i[0],s=i[1];for(o||(o="0"),s||(s="0");"0"===s[s.length-1];)s=s.substring(0,s.length-1);for(s.length>r.length-1&&uu("fractional component exceeds decimals","underflow","parseFixed"),""===s&&(s="0");s.length<r.length-1;)s+="0";const a=Ya.from(o),u=Ya.from(s);let h=a.mul(r).add(u);return n&&(h=h.mul(au)),h}class du{constructor(t,e,r,n){t!==ou&&iu.throwError("cannot use FixedFormat constructor; use FixedFormat.from",Fa.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=e,this.width=r,this.decimals=n,this.name=(e?"":"u")+"fixed"+String(r)+"x"+String(n),this._multiplier=lu(n),Object.freeze(this)}static from(t){if(t instanceof du)return t;"number"==typeof t&&(t=`fixed128x${t}`);let e=!0,r=128,n=18;if("string"==typeof t)if("fixed"===t);else if("ufixed"===t)e=!1;else{const i=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);i||iu.throwArgumentError("invalid fixed format","format",t),e="u"!==i[1],r=parseInt(i[2]),n=parseInt(i[3])}else if(t){const i=(e,r,n)=>null==t[e]?n:(typeof t[e]!==r&&iu.throwArgumentError("invalid fixed format ("+e+" not "+r+")","format."+e,t[e]),t[e]);e=i("signed","boolean",e),r=i("width","number",r),n=i("decimals","number",n)}return r%8&&iu.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&iu.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new du(ou,e,r,n)}}class pu{constructor(t,e,r,n){t!==ou&&iu.throwError("cannot use FixedNumber constructor; use FixedNumber.from",Fa.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=e,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(t){this.format.name!==t.format.name&&iu.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}addUnsafe(t){this._checkFormat(t);const e=fu(this._value,this.format.decimals),r=fu(t._value,t.format.decimals);return pu.fromValue(e.add(r),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);const e=fu(this._value,this.format.decimals),r=fu(t._value,t.format.decimals);return pu.fromValue(e.sub(r),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);const e=fu(this._value,this.format.decimals),r=fu(t._value,t.format.decimals);return pu.fromValue(e.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);const e=fu(this._value,this.format.decimals),r=fu(t._value,t.format.decimals);return pu.fromValue(e.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=pu.from(t[0],this.format);const r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(e=e.subUnsafe(mu.toFormat(e.format))),e}ceiling(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=pu.from(t[0],this.format);const r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(e=e.addUnsafe(mu.toFormat(e.format))),e}round(t){null==t&&(t=0);const e=this.toString().split(".");if(1===e.length&&e.push("0"),(t<0||t>80||t%1)&&iu.throwArgumentError("invalid decimal count","decimals",t),e[1].length<=t)return this;const r=pu.from("1"+hu.substring(0,t),this.format),n=yu.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(t){if(null==t)return this._hex;t%8&&iu.throwArgumentError("invalid byte width","width",t);return Ha(Ya.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString(),t/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return pu.fromString(this._value,t)}static fromValue(t,e,r){return null!=r||null==e||function(t){return null!=t&&(Ya.isBigNumber(t)||"number"==typeof t&&t%1==0||"string"==typeof t&&!!t.match(/^-?[0-9]+$/)||qa(t)||"bigint"==typeof t||za(t))}(e)||(r=e,e=null),null==e&&(e=0),null==r&&(r="fixed"),pu.fromString(cu(t,e),du.from(r))}static fromString(t,e){null==e&&(e="fixed");const r=du.from(e),n=fu(t,r.decimals);!r.signed&&n.lt(su)&&uu("unsigned value cannot be negative","overflow","value",t);let i=null;r.signed?i=n.toTwos(r.width).toHexString():(i=n.toHexString(),i=Ha(i,r.width/8));const o=cu(n,r.decimals);return new pu(ou,i,o,r)}static fromBytes(t,e){null==e&&(e="fixed");const r=du.from(e);if(function(t,e){if(e||(e={}),"number"==typeof t){Ba.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),Da(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),ja(t)&&(t=t.toHexString()),qa(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":Ba.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return Da(new Uint8Array(n))}return za(t)?Da(new Uint8Array(t)):Ba.throwArgumentError("invalid arrayify value","value",t)}(t).length>r.width/8)throw new Error("overflow");let n=Ya.from(t);r.signed&&(n=n.fromTwos(r.width));const i=n.toTwos((r.signed?0:1)+r.width).toHexString(),o=cu(n,r.decimals);return new pu(ou,i,o,r)}static from(t,e){if("string"==typeof t)return pu.fromString(t,e);if(za(t))return pu.fromBytes(t,e);try{return pu.fromValue(t,0,e)}catch(t){if(t.code!==Fa.errors.INVALID_ARGUMENT)throw t}return iu.throwArgumentError("invalid FixedNumber value","value",t)}static isFixedNumber(t){return!(!t||!t._isFixedNumber)}}const mu=pu.from(1),yu=pu.from("0.5"),gu=new Fa("units/5.7.0"),vu=["wei","kwei","mwei","gwei","szabo","finney","ether"];
|
|
15
|
+
***************************************************************************** */var t=function(){return t=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},t.apply(this,arguments)};function e(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))}function r(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function n(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function i(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(n(arguments[e]));return t}var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function a(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach((function(r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})})),e}function u(t){var e={exports:{}};return t(e,e.exports),e.exports}var h=u((function(t,e){var r="undefined"!=typeof self?self:o,n=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();!function(t){!function(e){var r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,i="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),o="FormData"in t,s="ArrayBuffer"in t;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function h(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function l(t){return"string"!=typeof t&&(t=String(t)),t}function c(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function f(t){this.map={},t instanceof f?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function d(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function p(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function m(t){var e=new FileReader,r=p(e);return e.readAsArrayBuffer(t),r}function y(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&i&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=y(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=y(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var t=d(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var t,e,r,n=d(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=p(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(t,e){t=h(t),e=l(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},f.prototype.delete=function(t){delete this.map[h(t)]},f.prototype.get=function(t){return t=h(t),this.has(t)?this.map[t]:null},f.prototype.has=function(t){return this.map.hasOwnProperty(h(t))},f.prototype.set=function(t,e){this.map[h(t)]=l(e)},f.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},f.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),c(t)},f.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),c(t)},f.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),c(t)},n&&(f.prototype[Symbol.iterator]=f.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(t,e){var r,n,i=(e=e||{}).body;if(t instanceof w){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new f(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new f(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),v.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function A(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new f(e.headers),this.url=e.url||"",this._initBody(t)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},g.call(w.prototype),g.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},A.error=function(){var t=new A(null,{status:0,statusText:""});return t.type="error",t};var _=[301,302,303,307,308];A.redirect=function(t,e){if(-1===_.indexOf(e))throw new RangeError("Invalid status code");return new A(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function E(t,r){return new Promise((function(n,o){var s=new w(t,r);if(s.signal&&s.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new f,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();e.append(n,i)}})),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;n(new A(i,r))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&i&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",u)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}E.polyfill=!0,t.fetch||(t.fetch=E,t.Headers=f,t.Request=w,t.Response=A),e.Headers=f,e.Request=w,e.Response=A,e.fetch=E,Object.defineProperty(e,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;(e=i.fetch).default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e})),l=s(h);let c=!1,f=!1;const d={debug:1,default:2,info:2,warning:3,error:4,off:5};let p=d.default,m=null;const y=function(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(r){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var g,v;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(g||(g={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED"}(v||(v={}));const w="0123456789abcdef";class b{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const r=t.toLowerCase();null==d[r]&&this.throwArgumentError("invalid log level name","logLevel",t),p>d[r]||console.log.apply(console,e)}debug(...t){this._log(b.levels.DEBUG,t)}info(...t){this._log(b.levels.INFO,t)}warn(...t){this._log(b.levels.WARNING,t)}makeError(t,e,r){if(f)return this.makeError("censored error",e,{});e||(e=b.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((t=>{const e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=w[e[t]>>4],r+=w[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}})),n.push(`code=${e}`),n.push(`version=${this.version}`);const i=t;let o="";switch(e){case v.NUMERIC_FAULT:{o="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case v.CALL_EXCEPTION:case v.INSUFFICIENT_FUNDS:case v.MISSING_NEW:case v.NONCE_EXPIRED:case v.REPLACEMENT_UNDERPRICED:case v.TRANSACTION_REPLACED:case v.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");const s=new Error(t);return s.reason=i,s.code=e,Object.keys(r).forEach((function(t){s[t]=r[t]})),s}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,b.errors.INVALID_ARGUMENT,{argument:e,value:r})}assert(t,e,r,n){t||this.throwError(e,r,n)}assertArgument(t,e,r,n){t||this.throwArgumentError(e,r,n)}checkNormalize(t){y&&this.throwError("platform missing String.prototype.normalize",b.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:y})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,b.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,b.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,b.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,b.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",b.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",b.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",b.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return m||(m=new b("logger/5.6.0")),m}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",b.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),c){if(!t)return;this.globalLogger().throwError("error censorship permanent",b.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}f=!!t,c=!!e}static setLogLevel(t){const e=d[t.toLowerCase()];null!=e?p=e:b.globalLogger().warn("invalid log level - "+t)}static from(t){return new b(t)}}b.errors=v,b.levels=g;const A=new b("bytes/5.6.1");function _(t){return!!t.toHexString}function E(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return E(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function M(t){return P(t)&&!(t.length%2)||x(t)}function k(t){return"number"==typeof t&&t==t&&t%1==0}function x(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t)return!1;if(!k(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){const r=t[e];if(!k(r)||r<0||r>=256)return!1}return!0}function N(t,e){if(e||(e={}),"number"==typeof t){A.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),E(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),_(t)&&(t=t.toHexString()),P(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":A.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return E(new Uint8Array(n))}return x(t)?E(new Uint8Array(t)):A.throwArgumentError("invalid arrayify value","value",t)}function S(t){const e=t.map((t=>N(t))),r=e.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(r);return e.reduce(((t,e)=>(n.set(e,t),t+e.length)),0),E(n)}function U(t){let e=N(t);if(0===e.length)return e;let r=0;for(;r<e.length&&0===e[r];)r++;return r&&(e=e.slice(r)),e}function P(t,e){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}const T="0123456789abcdef";function R(t,e){if(e||(e={}),"number"==typeof t){A.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=T[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),_(t))return t.toHexString();if(P(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":A.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(x(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=T[(240&n)>>4]+T[15&n]}return e}return A.throwArgumentError("invalid hexlify value","value",t)}function C(t){if("string"!=typeof t)t=R(t);else if(!P(t)||t.length%2)return null;return(t.length-2)/2}function I(t,e,r){return"string"!=typeof t?t=R(t):(!P(t)||t.length%2)&&A.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=r?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function $(t){let e="0x";return t.forEach((t=>{e+=R(t).substring(2)})),e}function O(t){const e=function(t){"string"!=typeof t&&(t=R(t));P(t)||A.throwArgumentError("invalid hex string","value",t);t=t.substring(2);let e=0;for(;e<t.length&&"0"===t[e];)e++;return"0x"+t.substring(e)}(R(t,{hexPad:"left"}));return"0x"===e?"0x0":e}function F(t,e){for("string"!=typeof t?t=R(t):P(t)||A.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&A.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function B(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(M(t)){let r=N(t);64===r.length?(e.v=27+(r[32]>>7),r[32]&=127,e.r=R(r.slice(0,32)),e.s=R(r.slice(32,64))):65===r.length?(e.r=R(r.slice(0,32)),e.s=R(r.slice(32,64)),e.v=r[64]):A.throwArgumentError("invalid signature string","signature",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:A.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=R(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){const r=function(t,e){(t=N(t)).length>e&&A.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(e);return r.set(t,e-t.length),E(r)}(N(e._vs),32);e._vs=R(r);const n=r[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=n:e.recoveryParam!==n&&A.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),r[0]&=127;const i=R(r);null==e.s?e.s=i:e.s!==i&&A.throwArgumentError("signature v mismatch _vs","signature",t)}if(null==e.recoveryParam)null==e.v?A.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(null==e.v)e.v=27+e.recoveryParam;else{const r=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==r&&A.throwArgumentError("signature recoveryParam mismatch v","signature",t)}null!=e.r&&P(e.r)?e.r=F(e.r,32):A.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&P(e.s)?e.s=F(e.s,32):A.throwArgumentError("signature missing or invalid s","signature",t);const r=N(e.s);r[0]>=128&&A.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);const n=R(r);e._vs&&(P(e._vs)||A.throwArgumentError("signature invalid _vs","signature",t),e._vs=F(e._vs,32)),null==e._vs?e._vs=n:e._vs!==n&&A.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}var j="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},D=[],L=[],z="undefined"!=typeof Uint8Array?Uint8Array:Array,q=!1;function V(){q=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)D[e]=t[e],L[t.charCodeAt(e)]=e;L["-".charCodeAt(0)]=62,L["_".charCodeAt(0)]=63}function G(t,e,r){for(var n,i,o=[],s=e;s<r;s+=3)n=(t[s]<<16)+(t[s+1]<<8)+t[s+2],o.push(D[(i=n)>>18&63]+D[i>>12&63]+D[i>>6&63]+D[63&i]);return o.join("")}function H(t){var e;q||V();for(var r=t.length,n=r%3,i="",o=[],s=16383,a=0,u=r-n;a<u;a+=s)o.push(G(t,a,a+s>u?u:a+s));return 1===n?(e=t[r-1],i+=D[e>>2],i+=D[e<<4&63],i+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],i+=D[e>>10],i+=D[e>>4&63],i+=D[e<<2&63],i+="="),o.push(i),o.join("")}function Q(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,h=u>>1,l=-7,c=r?i-1:0,f=r?-1:1,d=t[e+c];for(c+=f,o=d&(1<<-l)-1,d>>=-l,l+=a;l>0;o=256*o+t[e+c],c+=f,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+c],c+=f,l-=8);if(0===o)o=1-h;else{if(o===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),o-=h}return(d?-1:1)*s*Math.pow(2,o-n)}function K(t,e,r,n,i,o){var s,a,u,h=8*o-i-1,l=(1<<h)-1,c=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+c>=1?f/u:f*Math.pow(2,1-c))*u>=2&&(s++,u/=2),s+c>=l?(a=0,s=l):s+c>=1?(a=(e*u-1)*Math.pow(2,i),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,i),s=0));i>=8;t[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,h+=i;h>0;t[r+d]=255&s,d+=p,s/=256,h-=8);t[r+d-p]|=128*m}var Z={}.toString,W=Array.isArray||function(t){return"[object Array]"==Z.call(t)};tt.TYPED_ARRAY_SUPPORT=void 0===j.TYPED_ARRAY_SUPPORT||j.TYPED_ARRAY_SUPPORT;var J=Y();function Y(){return tt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function X(t,e){if(Y()<e)throw new RangeError("Invalid typed array length");return tt.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=tt.prototype:(null===t&&(t=new tt(e)),t.length=e),t}function tt(t,e,r){if(!(tt.TYPED_ARRAY_SUPPORT||this instanceof tt))return new tt(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return nt(this,t)}return et(this,t,e,r)}function et(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);tt.TYPED_ARRAY_SUPPORT?(t=e).__proto__=tt.prototype:t=it(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!tt.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|at(e,r),i=(t=X(t,n)).write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(st(e)){var r=0|ot(e.length);return 0===(t=X(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?X(t,0):it(t,e);if("Buffer"===e.type&&W(e.data))return it(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function rt(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function nt(t,e){if(rt(e),t=X(t,e<0?0:0|ot(e)),!tt.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function it(t,e){var r=e.length<0?0:0|ot(e.length);t=X(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function ot(t){if(t>=Y())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Y().toString(16)+" bytes");return 0|t}function st(t){return!(null==t||!t._isBuffer)}function at(t,e){if(st(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return It(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $t(t).length;default:if(n)return It(t).length;e=(""+e).toLowerCase(),n=!0}}function ut(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return Et(this,e,r);case"utf8":case"utf-8":return wt(this,e,r);case"ascii":return At(this,e,r);case"latin1":case"binary":return _t(this,e,r);case"base64":return vt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Mt(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function ht(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function lt(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=tt.from(e,n)),st(e))return 0===e.length?-1:ct(t,e,r,n,i);if("number"==typeof e)return e&=255,tt.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):ct(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function ct(t,e,r,n,i){var o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function h(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=r;o<a;o++)if(h(t,o)===h(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var c=!0,f=0;f<u;f++)if(h(t,o+f)!==h(e,f)){c=!1;break}if(c)return o}return-1}function ft(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[r+s]=a}return s}function dt(t,e,r,n){return Ot(It(e,t.length-r),t,r,n)}function pt(t,e,r,n){return Ot(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function mt(t,e,r,n){return pt(t,e,r,n)}function yt(t,e,r,n){return Ot($t(e),t,r,n)}function gt(t,e,r,n){return Ot(function(t,e){for(var r,n,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=(r=t.charCodeAt(s))>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function vt(t,e,r){return 0===e&&r===t.length?H(t):H(t.slice(e,r))}function wt(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,s,a,u,h=t[i],l=null,c=h>239?4:h>223?3:h>191?2:1;if(i+c<=r)switch(c){case 1:h<128&&(l=h);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&h)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(u=(15&h)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&h)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,c=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=c}return function(t){var e=t.length;if(e<=bt)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=bt));return r}(n)}tt.poolSize=8192,tt._augment=function(t){return t.__proto__=tt.prototype,t},tt.from=function(t,e,r){return et(null,t,e,r)},tt.TYPED_ARRAY_SUPPORT&&(tt.prototype.__proto__=Uint8Array.prototype,tt.__proto__=Uint8Array),tt.alloc=function(t,e,r){return function(t,e,r,n){return rt(e),e<=0?X(t,e):void 0!==r?"string"==typeof n?X(t,e).fill(r,n):X(t,e).fill(r):X(t,e)}(null,t,e,r)},tt.allocUnsafe=function(t){return nt(null,t)},tt.allocUnsafeSlow=function(t){return nt(null,t)},tt.isBuffer=Ft,tt.compare=function(t,e){if(!st(t)||!st(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},tt.isEncoding=function(t){switch(String(t).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}},tt.concat=function(t,e){if(!W(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return tt.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=tt.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(!st(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},tt.byteLength=at,tt.prototype._isBuffer=!0,tt.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)ht(this,e,e+1);return this},tt.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)ht(this,e,e+3),ht(this,e+1,e+2);return this},tt.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)ht(this,e,e+7),ht(this,e+1,e+6),ht(this,e+2,e+5),ht(this,e+3,e+4);return this},tt.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?wt(this,0,t):ut.apply(this,arguments)},tt.prototype.equals=function(t){if(!st(t))throw new TypeError("Argument must be a Buffer");return this===t||0===tt.compare(this,t)},tt.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},tt.prototype.compare=function(t,e,r,n,i){if(!st(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(o,s),u=this.slice(n,i),h=t.slice(e,r),l=0;l<a;++l)if(u[l]!==h[l]){o=u[l],s=h[l];break}return o<s?-1:s<o?1:0},tt.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},tt.prototype.indexOf=function(t,e,r){return lt(this,t,e,r,!0)},tt.prototype.lastIndexOf=function(t,e,r){return lt(this,t,e,r,!1)},tt.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return ft(this,t,e,r);case"utf8":case"utf-8":return dt(this,t,e,r);case"ascii":return pt(this,t,e,r);case"latin1":case"binary":return mt(this,t,e,r);case"base64":return yt(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gt(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},tt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var bt=4096;function At(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function _t(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function Et(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=Ct(t[o]);return i}function Mt(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function kt(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function xt(t,e,r,n,i,o){if(!st(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function Nt(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function St(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function Ut(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Pt(t,e,r,n,i){return i||Ut(t,0,r,4),K(t,e,r,n,23,4),r+4}function Tt(t,e,r,n,i){return i||Ut(t,0,r,8),K(t,e,r,n,52,8),r+8}tt.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),tt.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=tt.prototype;else{var i=e-t;r=new tt(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},tt.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||kt(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},tt.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||kt(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},tt.prototype.readUInt8=function(t,e){return e||kt(t,1,this.length),this[t]},tt.prototype.readUInt16LE=function(t,e){return e||kt(t,2,this.length),this[t]|this[t+1]<<8},tt.prototype.readUInt16BE=function(t,e){return e||kt(t,2,this.length),this[t]<<8|this[t+1]},tt.prototype.readUInt32LE=function(t,e){return e||kt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},tt.prototype.readUInt32BE=function(t,e){return e||kt(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},tt.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||kt(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},tt.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||kt(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},tt.prototype.readInt8=function(t,e){return e||kt(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},tt.prototype.readInt16LE=function(t,e){e||kt(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},tt.prototype.readInt16BE=function(t,e){e||kt(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},tt.prototype.readInt32LE=function(t,e){return e||kt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},tt.prototype.readInt32BE=function(t,e){return e||kt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},tt.prototype.readFloatLE=function(t,e){return e||kt(t,4,this.length),Q(this,t,!0,23,4)},tt.prototype.readFloatBE=function(t,e){return e||kt(t,4,this.length),Q(this,t,!1,23,4)},tt.prototype.readDoubleLE=function(t,e){return e||kt(t,8,this.length),Q(this,t,!0,52,8)},tt.prototype.readDoubleBE=function(t,e){return e||kt(t,8,this.length),Q(this,t,!1,52,8)},tt.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||xt(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},tt.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||xt(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},tt.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||xt(this,t,e,1,255,0),tt.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},tt.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||xt(this,t,e,2,65535,0),tt.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Nt(this,t,e,!0),e+2},tt.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||xt(this,t,e,2,65535,0),tt.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Nt(this,t,e,!1),e+2},tt.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||xt(this,t,e,4,4294967295,0),tt.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):St(this,t,e,!0),e+4},tt.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||xt(this,t,e,4,4294967295,0),tt.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):St(this,t,e,!1),e+4},tt.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);xt(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},tt.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);xt(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},tt.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||xt(this,t,e,1,127,-128),tt.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},tt.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||xt(this,t,e,2,32767,-32768),tt.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Nt(this,t,e,!0),e+2},tt.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||xt(this,t,e,2,32767,-32768),tt.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Nt(this,t,e,!1),e+2},tt.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||xt(this,t,e,4,2147483647,-2147483648),tt.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):St(this,t,e,!0),e+4},tt.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||xt(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),tt.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):St(this,t,e,!1),e+4},tt.prototype.writeFloatLE=function(t,e,r){return Pt(this,t,e,!0,r)},tt.prototype.writeFloatBE=function(t,e,r){return Pt(this,t,e,!1,r)},tt.prototype.writeDoubleLE=function(t,e,r){return Tt(this,t,e,!0,r)},tt.prototype.writeDoubleBE=function(t,e,r){return Tt(this,t,e,!1,r)},tt.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!tt.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},tt.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!tt.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var s=st(t)?t:It(new tt(t,n).toString()),a=s.length;for(o=0;o<r-e;++o)this[o+e]=s[o%a]}return this};var Rt=/[^+\/0-9A-Za-z-_]/g;function Ct(t){return t<16?"0"+t.toString(16):t.toString(16)}function It(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function $t(t){return function(t){var e,r,n,i,o,s;q||V();var a=t.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===t[a-2]?2:"="===t[a-1]?1:0,s=new z(3*a/4-o),n=o>0?a-4:a;var u=0;for(e=0,r=0;e<n;e+=4,r+=3)i=L[t.charCodeAt(e)]<<18|L[t.charCodeAt(e+1)]<<12|L[t.charCodeAt(e+2)]<<6|L[t.charCodeAt(e+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=L[t.charCodeAt(e)]<<2|L[t.charCodeAt(e+1)]>>4,s[u++]=255&i):1===o&&(i=L[t.charCodeAt(e)]<<10|L[t.charCodeAt(e+1)]<<4|L[t.charCodeAt(e+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(Rt,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Ot(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Ft(t){return null!=t&&(!!t._isBuffer||Bt(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&Bt(t.slice(0,0))}(t))}function Bt(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var jt=a(Object.freeze({__proto__:null,INSPECT_MAX_BYTES:50,kMaxLength:J,Buffer:tt,SlowBuffer:function(t){return+t!=t&&(t=0),tt.alloc(+t)},isBuffer:Ft})),Dt=u((function(t){!function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:jt.Buffer}catch(t){}function s(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t)}function a(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function u(t,e,n,i){for(var o=0,s=0,a=Math.min(t.length,n),u=e;u<a;u++){var h=t.charCodeAt(u)-48;o*=i,s=h>=49?h-49+10:h>=17?h-17+10:h,r(h>=0&&s<i,"Invalid character"),o+=s}return o}function h(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,n):(this._parseBase(t,e,i),"le"===n&&this._initArray(this.toArray(),e,n)))},i.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},i.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=a(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=a(t,e,n)<<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(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,h=0,l=r;l<a;l+=n)h=u(t,l,l+n,e),this.imuln(i),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==s){var c=1;for(h=u(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this._strip()},i.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype._move=function(t){h(t,this)},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)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")]=l}catch(t){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var c=["","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],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,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),n=0!==o||s!==this.length-1?c[6-u.length]+u+n:u+n}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=f[t],l=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(l).toString(t);n=(p=p.idivn(l)).isZero()?m+n:c[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;l+=(s=(i=0|t.words[p])*(o=0|e.words[d])+c)/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r._strip()}i.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var s=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](s,i),s},i.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;t[r++]=255&s,r<t.length&&(t[r++]=s>>8&255),r<t.length&&(t[r++]=s>>16&255),6===o?(r<t.length&&(t[r++]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},i.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;t[r--]=255&s,r>=0&&(t[r--]=s>>8&255),r>=0&&(t[r--]=s>>16&255),6===o?(r>=0&&(t[r--]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).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(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},i.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},i.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},i.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},i.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},i.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)o=(e=(0|r.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)o=(e=(0|r.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,y=0|s[2],g=8191&y,v=y>>>13,w=0|s[3],b=8191&w,A=w>>>13,_=0|s[4],E=8191&_,M=_>>>13,k=0|s[5],x=8191&k,N=k>>>13,S=0|s[6],U=8191&S,P=S>>>13,T=0|s[7],R=8191&T,C=T>>>13,I=0|s[8],$=8191&I,O=I>>>13,F=0|s[9],B=8191&F,j=F>>>13,D=0|a[0],L=8191&D,z=D>>>13,q=0|a[1],V=8191&q,G=q>>>13,H=0|a[2],Q=8191&H,K=H>>>13,Z=0|a[3],W=8191&Z,J=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191<,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var yt=(h+(n=Math.imul(c,L))|0)+((8191&(i=(i=Math.imul(c,z))+Math.imul(f,L)|0))<<13)|0;h=((o=Math.imul(f,z))+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(p,L),i=(i=Math.imul(p,z))+Math.imul(m,L)|0,o=Math.imul(m,z);var gt=(h+(n=n+Math.imul(c,V)|0)|0)+((8191&(i=(i=i+Math.imul(c,G)|0)+Math.imul(f,V)|0))<<13)|0;h=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,L),i=(i=Math.imul(g,z))+Math.imul(v,L)|0,o=Math.imul(v,z),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,G)|0;var vt=(h+(n=n+Math.imul(c,Q)|0)|0)+((8191&(i=(i=i+Math.imul(c,K)|0)+Math.imul(f,Q)|0))<<13)|0;h=((o=o+Math.imul(f,K)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(b,L),i=(i=Math.imul(b,z))+Math.imul(A,L)|0,o=Math.imul(A,z),n=n+Math.imul(g,V)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(v,V)|0,o=o+Math.imul(v,G)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,K)|0;var wt=(h+(n=n+Math.imul(c,W)|0)|0)+((8191&(i=(i=i+Math.imul(c,J)|0)+Math.imul(f,W)|0))<<13)|0;h=((o=o+Math.imul(f,J)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,L),i=(i=Math.imul(E,z))+Math.imul(M,L)|0,o=Math.imul(M,z),n=n+Math.imul(b,V)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,K)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,J)|0;var bt=(h+(n=n+Math.imul(c,X)|0)|0)+((8191&(i=(i=i+Math.imul(c,tt)|0)+Math.imul(f,X)|0))<<13)|0;h=((o=o+Math.imul(f,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,L),i=(i=Math.imul(x,z))+Math.imul(N,L)|0,o=Math.imul(N,z),n=n+Math.imul(E,V)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(g,W)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(v,W)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,tt)|0;var At=(h+(n=n+Math.imul(c,rt)|0)|0)+((8191&(i=(i=i+Math.imul(c,nt)|0)+Math.imul(f,rt)|0))<<13)|0;h=((o=o+Math.imul(f,nt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,L),i=(i=Math.imul(U,z))+Math.imul(P,L)|0,o=Math.imul(P,z),n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(g,X)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,X)|0,o=o+Math.imul(v,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0;var _t=(h+(n=n+Math.imul(c,ot)|0)|0)+((8191&(i=(i=i+Math.imul(c,st)|0)+Math.imul(f,ot)|0))<<13)|0;h=((o=o+Math.imul(f,st)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(R,L),i=(i=Math.imul(R,z))+Math.imul(C,L)|0,o=Math.imul(C,z),n=n+Math.imul(U,V)|0,i=(i=i+Math.imul(U,G)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,G)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(E,W)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(b,X)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(g,rt)|0,i=(i=i+Math.imul(g,nt)|0)+Math.imul(v,rt)|0,o=o+Math.imul(v,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,st)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0;var Et=(h+(n=n+Math.imul(c,ut)|0)|0)+((8191&(i=(i=i+Math.imul(c,ht)|0)+Math.imul(f,ut)|0))<<13)|0;h=((o=o+Math.imul(f,ht)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul($,L),i=(i=Math.imul($,z))+Math.imul(O,L)|0,o=Math.imul(O,z),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(U,Q)|0,i=(i=i+Math.imul(U,K)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(x,W)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,J)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,st)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,st)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0;var Mt=(h+(n=n+Math.imul(c,ct)|0)|0)+((8191&(i=(i=i+Math.imul(c,ft)|0)+Math.imul(f,ct)|0))<<13)|0;h=((o=o+Math.imul(f,ft)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(B,L),i=(i=Math.imul(B,z))+Math.imul(j,L)|0,o=Math.imul(j,z),n=n+Math.imul($,V)|0,i=(i=i+Math.imul($,G)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,G)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(U,W)|0,i=(i=i+Math.imul(U,J)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(E,rt)|0,i=(i=i+Math.imul(E,nt)|0)+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,st)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ht)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ht)|0,n=n+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0;var kt=(h+(n=n+Math.imul(c,pt)|0)|0)+((8191&(i=(i=i+Math.imul(c,mt)|0)+Math.imul(f,pt)|0))<<13)|0;h=((o=o+Math.imul(f,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(B,V),i=(i=Math.imul(B,G))+Math.imul(j,V)|0,o=Math.imul(j,G),n=n+Math.imul($,Q)|0,i=(i=i+Math.imul($,K)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(U,X)|0,i=(i=i+Math.imul(U,tt)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,st)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(g,ct)|0,i=(i=i+Math.imul(g,ft)|0)+Math.imul(v,ct)|0,o=o+Math.imul(v,ft)|0;var xt=(h+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(B,Q),i=(i=Math.imul(B,K))+Math.imul(j,Q)|0,o=Math.imul(j,K),n=n+Math.imul($,W)|0,i=(i=i+Math.imul($,J)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(U,rt)|0,i=(i=i+Math.imul(U,nt)|0)+Math.imul(P,rt)|0,o=o+Math.imul(P,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,st)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,st)|0,n=n+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,ht)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(b,ct)|0,i=(i=i+Math.imul(b,ft)|0)+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0;var Nt=(h+(n=n+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(v,pt)|0))<<13)|0;h=((o=o+Math.imul(v,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,J))+Math.imul(j,W)|0,o=Math.imul(j,J),n=n+Math.imul($,X)|0,i=(i=i+Math.imul($,tt)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(U,ot)|0,i=(i=i+Math.imul(U,st)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,st)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ht)|0,n=n+Math.imul(E,ct)|0,i=(i=i+Math.imul(E,ft)|0)+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0;var St=(h+(n=n+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,mt)|0)+Math.imul(A,pt)|0))<<13)|0;h=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(B,X),i=(i=Math.imul(B,tt))+Math.imul(j,X)|0,o=Math.imul(j,tt),n=n+Math.imul($,rt)|0,i=(i=i+Math.imul($,nt)|0)+Math.imul(O,rt)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,st)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(U,ut)|0,i=(i=i+Math.imul(U,ht)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,ht)|0,n=n+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,ft)|0)+Math.imul(N,ct)|0,o=o+Math.imul(N,ft)|0;var Ut=(h+(n=n+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(M,pt)|0))<<13)|0;h=((o=o+Math.imul(M,mt)|0)+(i>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(B,rt),i=(i=Math.imul(B,nt))+Math.imul(j,rt)|0,o=Math.imul(j,nt),n=n+Math.imul($,ot)|0,i=(i=i+Math.imul($,st)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(U,ct)|0,i=(i=i+Math.imul(U,ft)|0)+Math.imul(P,ct)|0,o=o+Math.imul(P,ft)|0;var Pt=(h+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(N,pt)|0))<<13)|0;h=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(B,ot),i=(i=Math.imul(B,st))+Math.imul(j,ot)|0,o=Math.imul(j,st),n=n+Math.imul($,ut)|0,i=(i=i+Math.imul($,ht)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,ht)|0,n=n+Math.imul(R,ct)|0,i=(i=i+Math.imul(R,ft)|0)+Math.imul(C,ct)|0,o=o+Math.imul(C,ft)|0;var Tt=(h+(n=n+Math.imul(U,pt)|0)|0)+((8191&(i=(i=i+Math.imul(U,mt)|0)+Math.imul(P,pt)|0))<<13)|0;h=((o=o+Math.imul(P,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(B,ut),i=(i=Math.imul(B,ht))+Math.imul(j,ut)|0,o=Math.imul(j,ht),n=n+Math.imul($,ct)|0,i=(i=i+Math.imul($,ft)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,ft)|0;var Rt=(h+(n=n+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(C,pt)|0))<<13)|0;h=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(B,ct),i=(i=Math.imul(B,ft))+Math.imul(j,ct)|0,o=Math.imul(j,ft);var Ct=(h+(n=n+Math.imul($,pt)|0)|0)+((8191&(i=(i=i+Math.imul($,mt)|0)+Math.imul(O,pt)|0))<<13)|0;h=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863;var It=(h+(n=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,mt))+Math.imul(j,pt)|0))<<13)|0;return h=((o=Math.imul(j,mt))+(i>>>13)|0)+(It>>>26)|0,It&=67108863,u[0]=yt,u[1]=gt,u[2]=vt,u[3]=wt,u[4]=bt,u[5]=At,u[6]=_t,u[7]=Et,u[8]=Mt,u[9]=kt,u[10]=xt,u[11]=Nt,u[12]=St,u[13]=Ut,u[14]=Pt,u[15]=Tt,u[16]=Rt,u[17]=Ct,u[18]=It,0!==h&&(u[19]=h,r.length++),r};function y(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=(0|t.words[l])*(0|e.words[h]),f=67108863&c;a=67108863&(f=f+a|0),i+=(s=(s=s+(c/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function g(t,e,r){return y(t,e,r)}Math.imul||(m=p),i.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):r<63?p(this,t,e):r<1024?y(this,t,e):g(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),g(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"==typeof t),r(t<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,s=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=s>>>26,this.words[i]=67108863&s}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new i(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var o=r.sqr();n<e.length;n++,o=o.sqr())0!==e[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<n;this.words[e]=u|s,s=a>>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},i.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=n;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},i.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,e,n){var i,o,s=t.length+n;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+a;var u=(0|t.words[i])*e;a=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)a=(o=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&o;if(0===a)return this._strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),o=t,s=0|o.words[o.length-1];0!==(r=26-this._countBits(s))&&(o=o.ushln(r),n.iushln(r),s=0|o.words[o.length-1]);var a,u=n.length-o.length;if("mod"!==e){(a=new i(null)).length=u+1,a.words=new Array(a.length);for(var h=0;h<a.length;h++)a.words[h]=0}var l=n.clone()._ishlnsubmul(o,1,u);0===l.negative&&(n=l,a&&(a.words[u]=1));for(var c=u-1;c>=0;c--){var f=67108864*(0|n.words[o.length+c])+(0|n.words[o.length+c-1]);for(f=Math.min(f/s|0,67108863),n._ishlnsubmul(o,f,c);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(o,1,c),n.isZero()||(n.negative^=1);a&&(a.words[c]=f)}return a&&a._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},i.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(o=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:o,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(o=a.div.neg()),{div:o,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,s,a},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),s=new i(0),a=new i(0),u=new i(1),h=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++h;for(var l=n.clone(),c=e.clone();!e.isZero();){for(var f=0,d=1;0==(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(e.iushrn(f);f-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(l),s.isub(c)),o.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(a),s.isub(u)):(n.isub(e),a.isub(o),u.isub(s))}return{a:a,b:u,gcd:n.iushln(h)}},i.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,s=new i(1),a=new i(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var h=0,l=1;0==(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(e.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var c=0,f=1;0==(n.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(n.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),s.isub(a)):(n.isub(e),a.isub(s))}return(o=0===e.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,s=n;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},i.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new M(t)},i.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){M.call(this,t),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)}w.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},n(b,w),b.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(A,w),n(_,w),n(E,w),E.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new A;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return v[t]=e,e},M.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(h(t,t.umod(this.m)._forceRed(this)),t)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new i(1)).iushrn(2);return this.pow(t,n)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);r(!o.isZero());var a=new i(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,h).cmp(u);)l.redIAdd(u);for(var c=this.pow(l,o),f=this.pow(t,o.addn(1).iushrn(1)),d=this.pow(t,o),p=s;0!==d.cmp(a);){for(var m=d,y=0;0!==m.cmp(a);y++)m=m.redSqr();r(y<p);var g=this.pow(c,new i(1).iushln(p-y-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=y}return f},M.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},M.prototype.pow=function(t,e){if(e.isZero())return new i(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var o=r[0],s=0,a=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],l=u-1;l>=0;l--){var c=h>>l&1;o!==r[0]&&(o=this.sqr(o)),0!==c||0!==s?(s<<=1,s|=c,(4===++a||0===n&&0===l)&&(o=this.mul(o,r[s]),a=0,s=0)):a=0}u=26}return o},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new k(t)},n(k,M),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,o)}));var Lt=Dt.BN;const zt=new b("bignumber/5.6.2"),qt={},Vt=9007199254740991;let Gt=!1;class Ht{constructor(t,e){t!==qt&&zt.throwError("cannot call constructor directly; use BigNumber.from",b.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return Kt(Zt(this).fromTwos(t))}toTwos(t){return Kt(Zt(this).toTwos(t))}abs(){return"-"===this._hex[0]?Ht.from(this._hex.substring(1)):this}add(t){return Kt(Zt(this).add(Zt(t)))}sub(t){return Kt(Zt(this).sub(Zt(t)))}div(t){return Ht.from(t).isZero()&&Wt("division-by-zero","div"),Kt(Zt(this).div(Zt(t)))}mul(t){return Kt(Zt(this).mul(Zt(t)))}mod(t){const e=Zt(t);return e.isNeg()&&Wt("division-by-zero","mod"),Kt(Zt(this).umod(e))}pow(t){const e=Zt(t);return e.isNeg()&&Wt("negative-power","pow"),Kt(Zt(this).pow(e))}and(t){const e=Zt(t);return(this.isNegative()||e.isNeg())&&Wt("unbound-bitwise-result","and"),Kt(Zt(this).and(e))}or(t){const e=Zt(t);return(this.isNegative()||e.isNeg())&&Wt("unbound-bitwise-result","or"),Kt(Zt(this).or(e))}xor(t){const e=Zt(t);return(this.isNegative()||e.isNeg())&&Wt("unbound-bitwise-result","xor"),Kt(Zt(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&Wt("negative-width","mask"),Kt(Zt(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&Wt("negative-width","shl"),Kt(Zt(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&Wt("negative-width","shr"),Kt(Zt(this).shrn(t))}eq(t){return Zt(this).eq(Zt(t))}lt(t){return Zt(this).lt(Zt(t))}lte(t){return Zt(this).lte(Zt(t))}gt(t){return Zt(this).gt(Zt(t))}gte(t){return Zt(this).gte(Zt(t))}isNegative(){return"-"===this._hex[0]}isZero(){return Zt(this).isZero()}toNumber(){try{return Zt(this).toNumber()}catch(t){Wt("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return zt.throwError("this platform does not support BigInt",b.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?Gt||(Gt=!0,zt.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?zt.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",b.errors.UNEXPECTED_ARGUMENT,{}):zt.throwError("BigNumber.toString does not accept parameters",b.errors.UNEXPECTED_ARGUMENT,{})),Zt(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof Ht)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new Ht(qt,Qt(t)):t.match(/^-?[0-9]+$/)?new Ht(qt,Qt(new Lt(t))):zt.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&Wt("underflow","BigNumber.from",t),(t>=Vt||t<=-Vt)&&Wt("overflow","BigNumber.from",t),Ht.from(String(t));const e=t;if("bigint"==typeof e)return Ht.from(e.toString());if(x(e))return Ht.from(R(e));if(e)if(e.toHexString){const t=e.toHexString();if("string"==typeof t)return Ht.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(P(t)||"-"===t[0]&&P(t.substring(1))))return Ht.from(t)}return zt.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function Qt(t){if("string"!=typeof t)return Qt(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&zt.throwArgumentError("invalid hex","value",t),"0x00"===(t=Qt(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function Kt(t){return Ht.from(Qt(t))}function Zt(t){const e=Ht.from(t).toHexString();return"-"===e[0]?new Lt("-"+e.substring(3),16):new Lt(e.substring(2),16)}function Wt(t,e,r){const n={fault:t,operation:e};return null!=r&&(n.value=r),zt.throwError(t,b.errors.NUMERIC_FAULT,n)}function Jt(){throw new Error("setTimeout has not been defined")}function Yt(){throw new Error("clearTimeout has not been defined")}var Xt=Jt,te=Yt;function ee(t){if(Xt===setTimeout)return setTimeout(t,0);if((Xt===Jt||!Xt)&&setTimeout)return Xt=setTimeout,setTimeout(t,0);try{return Xt(t,0)}catch(e){try{return Xt.call(null,t,0)}catch(e){return Xt.call(this,t,0)}}}"function"==typeof j.setTimeout&&(Xt=setTimeout),"function"==typeof j.clearTimeout&&(te=clearTimeout);var re,ne=[],ie=!1,oe=-1;function se(){ie&&re&&(ie=!1,re.length?ne=re.concat(ne):oe=-1,ne.length&&ae())}function ae(){if(!ie){var t=ee(se);ie=!0;for(var e=ne.length;e;){for(re=ne,ne=[];++oe<e;)re&&re[oe].run();oe=-1,e=ne.length}re=null,ie=!1,function(t){if(te===clearTimeout)return clearTimeout(t);if((te===Yt||!te)&&clearTimeout)return te=clearTimeout,clearTimeout(t);try{te(t)}catch(e){try{return te.call(null,t)}catch(e){return te.call(this,t)}}}(t)}}function ue(t,e){this.fun=t,this.array=e}ue.prototype.run=function(){this.fun.apply(null,this.array)};function he(){}var le=he,ce=he,fe=he,de=he,pe=he,me=he,ye=he;var ge=j.performance||{},ve=ge.now||ge.mozNow||ge.msNow||ge.oNow||ge.webkitNow||function(){return(new Date).getTime()};var we=new Date;var be={nextTick:function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];ne.push(new ue(t,e)),1!==ne.length||ie||ee(ae)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:le,addListener:ce,once:fe,off:de,removeListener:pe,removeAllListeners:me,emit:ye,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*ve.call(ge),r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r-=t[0],(n-=t[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-we)/1e3}},Ae=u((function(t){!function(){var e="input is invalid type",r="object"==typeof window,n=r?window:{};n.JS_SHA3_NO_WINDOW&&(r=!1);var i=!r&&"object"==typeof self;!n.JS_SHA3_NO_NODE_JS&&"object"==typeof be&&be.versions&&be.versions.node?n=o:i&&(n=self);var s=!n.JS_SHA3_NO_COMMON_JS&&t.exports,a=!n.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,u="0123456789abcdef".split(""),h=[4,1024,262144,67108864],l=[0,8,16,24],c=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],f=[224,256,384,512],d=[128,256],p=["hex","buffer","arrayBuffer","array","digest"],m={128:168,256:136};!n.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!a||!n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var y=function(t,e,r){return function(n){return new T(t,e,t).update(n)[r]()}},g=function(t,e,r){return function(n,i){return new T(t,e,i).update(n)[r]()}},v=function(t,e,r){return function(e,n,i,o){return E["cshake"+t].update(e,n,i,o)[r]()}},w=function(t,e,r){return function(e,n,i,o){return E["kmac"+t].update(e,n,i,o)[r]()}},b=function(t,e,r,n){for(var i=0;i<p.length;++i){var o=p[i];t[o]=e(r,n,o)}return t},A=function(t,e){var r=y(t,e,"hex");return r.create=function(){return new T(t,e,t)},r.update=function(t){return r.create().update(t)},b(r,y,t,e)},_=[{name:"keccak",padding:[1,256,65536,16777216],bits:f,createMethod:A},{name:"sha3",padding:[6,1536,393216,100663296],bits:f,createMethod:A},{name:"shake",padding:[31,7936,2031616,520093696],bits:d,createMethod:function(t,e){var r=g(t,e,"hex");return r.create=function(r){return new T(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},b(r,g,t,e)}},{name:"cshake",padding:h,bits:d,createMethod:function(t,e){var r=m[t],n=v(t,0,"hex");return n.create=function(n,i,o){return i||o?new T(t,e,n).bytepad([i,o],r):E["shake"+t].create(n)},n.update=function(t,e,r,i){return n.create(e,r,i).update(t)},b(n,v,t,e)}},{name:"kmac",padding:h,bits:d,createMethod:function(t,e){var r=m[t],n=w(t,0,"hex");return n.create=function(n,i,o){return new R(t,e,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(t,e,r,i){return n.create(t,r,i).update(e)},b(n,w,t,e)}}],E={},M=[],k=0;k<_.length;++k)for(var x=_[k],N=x.bits,S=0;S<N.length;++S){var U=x.name+"_"+N[S];if(M.push(U),E[U]=x.createMethod(N[S],x.padding),"sha3"!==x.name){var P=x.name+N[S];M.push(P),E[P]=E[U]}}function T(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function R(t,e,r){T.call(this,t,e,r)}T.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var r,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(e);if(null===t)throw new Error(e);if(a&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||a&&ArrayBuffer.isView(t)))throw new Error(e);r=!0}for(var i,o,s=this.blocks,u=this.byteCount,h=t.length,c=this.blockCount,f=0,d=this.s;f<h;){if(this.reset)for(this.reset=!1,s[0]=this.block,i=1;i<c+1;++i)s[i]=0;if(r)for(i=this.start;f<h&&i<u;++f)s[i>>2]|=t[f]<<l[3&i++];else for(i=this.start;f<h&&i<u;++f)(o=t.charCodeAt(f))<128?s[i>>2]|=o<<l[3&i++]:o<2048?(s[i>>2]|=(192|o>>6)<<l[3&i++],s[i>>2]|=(128|63&o)<<l[3&i++]):o<55296||o>=57344?(s[i>>2]|=(224|o>>12)<<l[3&i++],s[i>>2]|=(128|o>>6&63)<<l[3&i++],s[i>>2]|=(128|63&o)<<l[3&i++]):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++f)),s[i>>2]|=(240|o>>18)<<l[3&i++],s[i>>2]|=(128|o>>12&63)<<l[3&i++],s[i>>2]|=(128|o>>6&63)<<l[3&i++],s[i>>2]|=(128|63&o)<<l[3&i++]);if(this.lastByteIndex=i,i>=u){for(this.start=i-u,this.block=s[c],i=0;i<c;++i)d[i]^=s[i];C(d),this.reset=!0}else this.start=i}return this},T.prototype.encode=function(t,e){var r=255&t,n=1,i=[r];for(r=255&(t>>=8);r>0;)i.unshift(r),r=255&(t>>=8),++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},T.prototype.encodeString=function(t){var r,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(e);if(null===t)throw new Error(e);if(a&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||a&&ArrayBuffer.isView(t)))throw new Error(e);r=!0}var i=0,o=t.length;if(r)i=o;else for(var s=0;s<t.length;++s){var u=t.charCodeAt(s);u<128?i+=1:u<2048?i+=2:u<55296||u>=57344?i+=3:(u=65536+((1023&u)<<10|1023&t.charCodeAt(++s)),i+=4)}return i+=this.encode(8*i),this.update(t),i},T.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n<t.length;++n)r+=this.encodeString(t[n]);var i=e-r%e,o=[];return o.length=i,this.update(o),this},T.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];C(n)}},T.prototype.toString=T.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,a="";s<n;){for(o=0;o<e&&s<n;++o,++s)t=r[o],a+=u[t>>4&15]+u[15&t]+u[t>>12&15]+u[t>>8&15]+u[t>>20&15]+u[t>>16&15]+u[t>>28&15]+u[t>>24&15];s%e==0&&(C(r),o=0)}return i&&(t=r[o],a+=u[t>>4&15]+u[15&t],i>1&&(a+=u[t>>12&15]+u[t>>8&15]),i>2&&(a+=u[t>>20&15]+u[t>>16&15])),a},T.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,a=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);for(var u=new Uint32Array(t);s<n;){for(o=0;o<e&&s<n;++o,++s)u[s]=r[o];s%e==0&&C(r)}return i&&(u[o]=r[o],t=t.slice(0,a)),t},T.prototype.buffer=T.prototype.arrayBuffer,T.prototype.digest=T.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,s=0,a=0,u=[];a<i;){for(s=0;s<r&&a<i;++s,++a)t=a<<2,e=n[s],u[t]=255&e,u[t+1]=e>>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;a%r==0&&C(n)}return o&&(t=a<<2,e=n[s],u[t]=255&e,o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u},R.prototype=new T,R.prototype.finalize=function(){return this.encode(this.outputBits,!0),T.prototype.finalize.call(this)};var C=function(t){var e,r,n,i,o,s,a,u,h,l,f,d,p,m,y,g,v,w,b,A,_,E,M,k,x,N,S,U,P,T,R,C,I,$,O,F,B,j,D,L,z,q,V,G,H,Q,K,Z,W,J,Y,X,tt,et,rt,nt,it,ot,st,at,ut,ht,lt;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],h=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],f=t[7]^t[17]^t[27]^t[37]^t[47],e=(d=t[8]^t[18]^t[28]^t[38]^t[48])^(s<<1|a>>>31),r=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(a<<1|s>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(u<<1|h>>>31),r=o^(h<<1|u>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=s^(l<<1|f>>>31),r=a^(f<<1|l>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=u^(d<<1|p>>>31),r=h^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=l^(i<<1|o>>>31),r=f^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],y=t[1],Q=t[11]<<4|t[10]>>>28,K=t[10]<<4|t[11]>>>28,U=t[20]<<3|t[21]>>>29,P=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,q=t[40]<<18|t[41]>>>14,V=t[41]<<18|t[40]>>>14,$=t[2]<<1|t[3]>>>31,O=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,v=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,T=t[33]<<13|t[32]>>>19,R=t[32]<<13|t[33]>>>19,ht=t[42]<<2|t[43]>>>30,lt=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,F=t[14]<<6|t[15]>>>26,B=t[15]<<6|t[14]>>>26,w=t[25]<<11|t[24]>>>21,b=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,Y=t[35]<<15|t[34]>>>17,C=t[45]<<29|t[44]>>>3,I=t[44]<<29|t[45]>>>3,k=t[6]<<28|t[7]>>>4,x=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,j=t[26]<<25|t[27]>>>7,D=t[27]<<25|t[26]>>>7,A=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,X=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,G=t[8]<<27|t[9]>>>5,H=t[9]<<27|t[8]>>>5,N=t[18]<<20|t[19]>>>12,S=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,st=t[28]<<7|t[29]>>>25,L=t[38]<<8|t[39]>>>24,z=t[39]<<8|t[38]>>>24,E=t[48]<<14|t[49]>>>18,M=t[49]<<14|t[48]>>>18,t[0]=m^~g&w,t[1]=y^~v&b,t[10]=k^~N&U,t[11]=x^~S&P,t[20]=$^~F&j,t[21]=O^~B&D,t[30]=G^~Q&Z,t[31]=H^~K&W,t[40]=et^~nt&ot,t[41]=rt^~it&st,t[2]=g^~w&A,t[3]=v^~b&_,t[12]=N^~U&T,t[13]=S^~P&R,t[22]=F^~j&L,t[23]=B^~D&z,t[32]=Q^~Z&J,t[33]=K^~W&Y,t[42]=nt^~ot&at,t[43]=it^~st&ut,t[4]=w^~A&E,t[5]=b^~_&M,t[14]=U^~T&C,t[15]=P^~R&I,t[24]=j^~L&q,t[25]=D^~z&V,t[34]=Z^~J&X,t[35]=W^~Y&tt,t[44]=ot^~at&ht,t[45]=st^~ut<,t[6]=A^~E&m,t[7]=_^~M&y,t[16]=T^~C&k,t[17]=R^~I&x,t[26]=L^~q&$,t[27]=z^~V&O,t[36]=J^~X&G,t[37]=Y^~tt&H,t[46]=at^~ht&et,t[47]=ut^~lt&rt,t[8]=E^~m&g,t[9]=M^~y&v,t[18]=C^~k&N,t[19]=I^~x&S,t[28]=q^~$&F,t[29]=V^~O&B,t[38]=X^~G&Q,t[39]=tt^~H&K,t[48]=ht^~et&nt,t[49]=lt^~rt&it,t[0]^=c[n],t[1]^=c[n+1]};if(s)t.exports=E;else for(k=0;k<M.length;++k)n[M[k]]=E[M[k]]}()}));function _e(t){return"0x"+Ae.keccak_256(N(t))}const Ee=new b("rlp/5.6.1");function Me(t){const e=[];for(;t;)e.unshift(255&t),t>>=8;return e}function ke(t,e,r){let n=0;for(let i=0;i<r;i++)n=256*n+t[e+i];return n}function xe(t){if(Array.isArray(t)){let e=[];if(t.forEach((function(t){e=e.concat(xe(t))})),e.length<=55)return e.unshift(192+e.length),e;const r=Me(e.length);return r.unshift(247+r.length),r.concat(e)}M(t)||Ee.throwArgumentError("RLP object must be BytesLike","object",t);const e=Array.prototype.slice.call(N(t));if(1===e.length&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const r=Me(e.length);return r.unshift(183+r.length),r.concat(e)}function Ne(t){return R(xe(t))}function Se(t,e,r,n){const i=[];for(;r<e+1+n;){const o=Ue(t,r);i.push(o.result),(r+=o.consumed)>e+1+n&&Ee.throwError("child data too short",b.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function Ue(t,e){if(0===t.length&&Ee.throwError("data too short",b.errors.BUFFER_OVERRUN,{}),t[e]>=248){const r=t[e]-247;e+1+r>t.length&&Ee.throwError("data short segment too short",b.errors.BUFFER_OVERRUN,{});const n=ke(t,e+1,r);return e+1+r+n>t.length&&Ee.throwError("data long segment too short",b.errors.BUFFER_OVERRUN,{}),Se(t,e,e+1+r,r+n)}if(t[e]>=192){const r=t[e]-192;return e+1+r>t.length&&Ee.throwError("data array too short",b.errors.BUFFER_OVERRUN,{}),Se(t,e,e+1,r)}if(t[e]>=184){const r=t[e]-183;e+1+r>t.length&&Ee.throwError("data array too short",b.errors.BUFFER_OVERRUN,{});const n=ke(t,e+1,r);e+1+r+n>t.length&&Ee.throwError("data array too short",b.errors.BUFFER_OVERRUN,{});return{consumed:1+r+n,result:R(t.slice(e+1+r,e+1+r+n))}}if(t[e]>=128){const r=t[e]-128;e+1+r>t.length&&Ee.throwError("data too short",b.errors.BUFFER_OVERRUN,{});return{consumed:1+r,result:R(t.slice(e+1,e+1+r))}}return{consumed:1,result:R(t[e])}}function Pe(t){const e=N(t),r=Ue(e,0);return r.consumed!==e.length&&Ee.throwArgumentError("invalid rlp data","data",t),r.result}const Te=new b("address/5.6.1");function Re(t){P(t,20)||Te.throwArgumentError("invalid address","address",t);const e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);const n=N(_e(r));for(let t=0;t<40;t+=2)n[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&n[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}const Ce={};for(let t=0;t<10;t++)Ce[String(t)]=String(t);for(let t=0;t<26;t++)Ce[String.fromCharCode(65+t)]=String(10+t);const Ie=Math.floor(function(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}(9007199254740991));function $e(t){let e=null;if("string"!=typeof t&&Te.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=Re(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&Te.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map((t=>Ce[t])).join("");for(;e.length>=Ie;){let t=e.substring(0,Ie);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}(t)&&Te.throwArgumentError("bad icap checksum","address",t),r=t.substring(4),e=new Lt(r,36).toString(16);e.length<40;)e="0"+e;e=Re("0x"+e)}else Te.throwArgumentError("invalid address","address",t);var r;return e}function Oe(t){try{return $e(t),!0}catch(t){}return!1}function Fe(t){let e=null;try{e=$e(t.from)}catch(e){Te.throwArgumentError("missing from address","transaction",t)}return $e(I(_e(Ne([e,U(N(Ht.from(t.nonce).toHexString()))])),12))}var Be={Space:[{name:"from",type:"address"},{name:"space",type:"string"},{name:"timestamp",type:"uint64"},{name:"settings",type:"string"}]},je={Proposal:[{name:"from",type:"address"},{name:"space",type:"string"},{name:"timestamp",type:"uint64"},{name:"type",type:"string"},{name:"title",type:"string"},{name:"body",type:"string"},{name:"discussion",type:"string"},{name:"choices",type:"string[]"},{name:"start",type:"uint64"},{name:"end",type:"uint64"},{name:"snapshot",type:"uint64"},{name:"plugins",type:"string"},{name:"app",type:"string"}]},De={CancelProposal:[{name:"from",type:"address"},{name:"space",type:"string"},{name:"timestamp",type:"uint64"},{name:"proposal",type:"string"}]},Le={CancelProposal:[{name:"from",type:"address"},{name:"space",type:"string"},{name:"timestamp",type:"uint64"},{name:"proposal",type:"bytes32"}]},ze={Vote:[{name:"from",type:"address"},{name:"space",type:"string"},{name:"timestamp",type:"uint64"},{name:"proposal",type:"string"},{name:"choice",type:"uint32"},{name:"reason",type:"string"},{name:"app",type:"string"},{name:"metadata",type:"string"}]},qe={Vote:[{name:"from",type:"address"},{name:"space",type:"string"},{name:"timestamp",type:"uint64"},{name:"proposal",type:"string"},{name:"choice",type:"uint32[]"},{name:"reason",type:"string"},{name:"app",type:"string"},{name:"metadata",type:"string"}]},Ve={Vote:[{name:"from",type:"address"},{name:"space",type:"string"},{name:"timestamp",type:"uint64"},{name:"proposal",type:"string"},{name:"choice",type:"string"},{name:"reason",type:"string"},{name:"app",type:"string"},{name:"metadata",type:"string"}]},Ge={Vote:[{name:"from",type:"address"},{name:"space",type:"string"},{name:"timestamp",type:"uint64"},{name:"proposal",type:"bytes32"},{name:"choice",type:"uint32"},{name:"reason",type:"string"},{name:"app",type:"string"},{name:"metadata",type:"string"}]},He={Vote:[{name:"from",type:"address"},{name:"space",type:"string"},{name:"timestamp",type:"uint64"},{name:"proposal",type:"bytes32"},{name:"choice",type:"uint32[]"},{name:"reason",type:"string"},{name:"app",type:"string"},{name:"metadata",type:"string"}]},Qe={Vote:[{name:"from",type:"address"},{name:"space",type:"string"},{name:"timestamp",type:"uint64"},{name:"proposal",type:"bytes32"},{name:"choice",type:"string"},{name:"reason",type:"string"},{name:"app",type:"string"},{name:"metadata",type:"string"}]},Ke={Follow:[{name:"from",type:"address"},{name:"space",type:"string"}]},Ze={Unfollow:[{name:"from",type:"address"},{name:"space",type:"string"}]},We={Subscribe:[{name:"from",type:"address"},{name:"space",type:"string"}]},Je={Unsubscribe:[{name:"from",type:"address"},{name:"space",type:"string"}]},Ye={Profile:[{name:"from",type:"address"},{name:"timestamp",type:"uint64"},{name:"profile",type:"string"}]},Xe={Statement:[{name:"from",type:"address"},{name:"timestamp",type:"uint64"},{name:"space",type:"string"},{name:"about",type:"string"},{name:"statement",type:"string"}]},tr={Alias:[{name:"from",type:"address"},{name:"alias",type:"address"}]},er={DeleteSpace:[{name:"from",type:"address"},{name:"space",type:"string"}]},rr={hub:"https://hub.snapshot.org",sequencer:"https://seq.snapshot.org"},nr={hub:"https://testnet.snapshot.org",sequencer:"https://testnet.seq.snapshot.org"},ir={hub:"http://localhost:3000",sequencer:"http://localhost:3001"},or={name:"snapshot",version:"0.1.4"},sr=function(){function t(t){void 0===t&&(t=rr.sequencer),t=(t=(t=t.replace(rr.hub,rr.sequencer)).replace(nr.hub,nr.sequencer)).replace(ir.hub,ir.sequencer),this.address=t}return t.prototype.sign=function(t,n,i,o){return e(this,void 0,void 0,(function(){var e,s,a,u;return r(this,(function(r){switch(r.label){case 0:return e=(null==t?void 0:t.getSigner)?t.getSigner():t,s=$e(n),i.from=i.from?$e(i.from):s,i.timestamp||(i.timestamp=parseInt((Date.now()/1e3).toFixed())),a={domain:or,types:o,message:i},[4,e._signTypedData(or,a.types,i)];case 1:return u=r.sent(),[4,this.send({address:s,sig:u,data:a})];case 2:return[2,r.sent()]}}))}))},t.prototype.send=function(t){return e(this,void 0,void 0,(function(){var e,n=this;return r(this,(function(r){return e={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)},[2,new Promise((function(t,r){l(n.address,e).then((function(e){if(e.ok)return t(e.json());throw e})).catch((function(t){return t.json().then((function(t){return r(t)}))}))}))]}))}))},t.prototype.space=function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,this.sign(t,n,i,Be)];case 1:return[2,e.sent()]}}))}))},t.prototype.proposal=function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return i.discussion||(i.discussion=""),i.app||(i.app=""),[4,this.sign(t,n,i,je)];case 1:return[2,e.sent()]}}))}))},t.prototype.cancelProposal=function(t,n,i){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return e=i.proposal.startsWith("0x"),[4,this.sign(t,n,i,e?Le:De)];case 1:return[2,r.sent()]}}))}))},t.prototype.vote=function(t,n,i){return e(this,void 0,void 0,(function(){var e,o,s;return r(this,(function(r){switch(r.label){case 0:return e="shutter"===(null==i?void 0:i.privacy),i.reason||(i.reason=""),i.app||(i.app=""),i.metadata||(i.metadata="{}"),o=i.proposal.startsWith("0x"),s=o?Ge:ze,["approval","ranked-choice"].includes(i.type)&&(s=o?He:qe),!e&&["quadratic","weighted"].includes(i.type)&&(s=o?Qe:Ve,i.choice=JSON.stringify(i.choice)),e&&(s=o?Qe:Ve),delete i.privacy,delete i.type,[4,this.sign(t,n,i,s)];case 1:return[2,r.sent()]}}))}))},t.prototype.follow=function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,this.sign(t,n,i,Ke)];case 1:return[2,e.sent()]}}))}))},t.prototype.unfollow=function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,this.sign(t,n,i,Ze)];case 1:return[2,e.sent()]}}))}))},t.prototype.subscribe=function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,this.sign(t,n,i,We)];case 1:return[2,e.sent()]}}))}))},t.prototype.unsubscribe=function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,this.sign(t,n,i,Je)];case 1:return[2,e.sent()]}}))}))},t.prototype.profile=function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,this.sign(t,n,i,Ye)];case 1:return[2,e.sent()]}}))}))},t.prototype.statement=function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,this.sign(t,n,i,Xe)];case 1:return[2,e.sent()]}}))}))},t.prototype.alias=function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,this.sign(t,n,i,tr)];case 1:return[2,e.sent()]}}))}))},t.prototype.deleteSpace=function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,this.sign(t,n,i,er)];case 1:return[2,e.sent()]}}))}))},t}(),ar={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/Proposal",definitions:{Proposal:{title:"Proposal",type:"object",properties:{name:{type:"string",title:"name",minLength:1,maxLength:256},body:{type:"string",title:"body",minLength:0,maxLength:2e4},discussion:{type:"string",format:"customUrl",title:"discussion",maxLength:256},choices:{type:"array",title:"choices",minItems:1,maxItems:500},type:{type:"string",enum:["single-choice","approval","ranked-choice","quadratic","weighted","custom","basic"]},snapshot:{type:"number",title:"snapshot"},start:{type:"number",title:"start",minimum:1e9,maximum:2e9},end:{type:"number",title:"end",minimum:1e9,maximum:2e9},metadata:{type:"object",title:"metadata"},app:{type:"string",title:"app",maxLength:24}},required:["name","body","choices","snapshot","start","end"],additionalProperties:!1}}},ur={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/Vote",definitions:{Vote:{title:"Vote",type:"object",properties:{proposal:{type:"string",title:"proposal"},choice:{type:["number","array","object","boolean","string"],title:"choice"},metadata:{type:"object",title:"metadata"},reason:{type:"string",title:"reason",maxLength:140},app:{type:"string",title:"app",maxLength:24}},required:["proposal","choice"],additionalProperties:!1}}},hr={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/Profile",definitions:{Profile:{title:"Profile",type:"object",properties:{name:{type:"string",title:"name",maxLength:32},about:{type:"string",title:"about",maxLength:256},avatar:{type:"string",title:"avatar",format:"customUrl",maxLength:256}},required:[],additionalProperties:!1}}},lr={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/Statement",definitions:{Statement:{title:"Statement",type:"object",properties:{about:{type:"string",format:"long",title:"About",minLength:1,maxLength:140},statement:{type:"string",format:"long",title:"Statement"}},required:["about"],additionalProperties:!1}}},cr={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/Zodiac",definitions:{Zodiac:{title:"Zodiac",type:"object",properties:{safes:{title:"Safe(s)",type:"array",maxItems:8,items:{type:"object",properties:{network:{title:"Network",type:"string"},multisend:{title:"Multisend contract address",type:"string"},realityAddress:{title:"Reality module address",type:"string"},umaAddress:{title:"UMA module address",type:"string"}},additionalProperties:!1}},additionalProperties:!1}}}},fr={space:{$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/Space",definitions:{Space:{title:"Space",type:"object",properties:{name:{type:"string",title:"name",minLength:1,maxLength:32},private:{type:"boolean"},about:{type:"string",title:"about",maxLength:160},guidelines:{type:"string",format:"customUrl",title:"guidelines",maxLength:256},template:{type:"string",title:"template",maxLength:1024},terms:{type:"string",title:"terms",format:"customUrl",maxLength:256},avatar:{type:"string",title:"avatar",format:"uri",maxLength:256},location:{type:"string",title:"location",maxLength:24},website:{type:"string",title:"website",format:"customUrl",maxLength:256},twitter:{type:"string",title:"twitter",pattern:"^[A-Za-z0-9_]*$",maxLength:15},coingecko:{type:"string",title:"coingecko",pattern:"^[a-z0-9-]*$",maxLength:32},github:{type:"string",title:"github",pattern:"^[A-Za-z0-9_-]*$",maxLength:39},email:{type:"string",title:"email",maxLength:32},network:{type:"string",title:"network",minLength:1,maxLength:32},symbol:{type:"string",title:"symbol",minLength:1,maxLength:16},skin:{type:"string",title:"skin",maxLength:32},domain:{type:"string",title:"domain",maxLength:64},strategies:{type:"array",minItems:1,maxItems:8,items:{type:"object",properties:{name:{type:"string",maxLength:64,title:"name"},network:{type:"string",maxLength:12,title:"network"},params:{type:"object",title:"params"}},required:["name"],additionalProperties:!1},title:"strategies"},members:{type:"array",maxItems:100,items:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$",minLength:42,maxLength:42},title:"members",uniqueItems:!0},admins:{type:"array",maxItems:100,items:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$",minLength:42,maxLength:42},title:"admins",uniqueItems:!0},moderators:{type:"array",maxItems:100,items:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$",minLength:42,maxLength:42},title:"moderators",uniqueItems:!0},filters:{type:"object",properties:{defaultTab:{type:"string"},minScore:{type:"number",minimum:0},onlyMembers:{type:"boolean"},invalids:{type:"array",items:{type:"string",maxLength:64},title:"invalids"}},additionalProperties:!1},validation:{type:"object",properties:{name:{type:"string",maxLength:64,title:"name"},params:{type:"object",title:"params"}},required:["name"],additionalProperties:!1},voteValidation:{type:"object",properties:{name:{type:"string",maxLength:32,title:"name"},params:{type:"object",title:"params"}},required:["name"],additionalProperties:!1},followValidation:{type:"object",properties:{name:{type:"string",maxLength:32,title:"name"},params:{type:"object",title:"params"}},required:["name"],additionalProperties:!1},delegationPortal:{type:"object",properties:{delegationType:{type:"string",title:"Delegation type",description:"Specify the type of delegation that you are using",anyOf:[{const:"compound-governor",title:"Compound governor"}]},delegationContract:{type:"string",format:"address",title:"Contract address",description:"The address of your delegation contract",examples:["0x3901D0fDe202aF1427216b79f5243f8A022d68cf"]},delegationApi:{type:"string",format:"uri",title:"Delegation API",description:"The URL of your delegation API (e.g a subgraph)",examples:["https://api.thegraph.com/subgraphs/name/arr00/uniswap-governance-v2"]}},required:["delegationType","delegationApi","delegationContract"],additionalProperties:!1},allowAlias:{type:"boolean"},plugins:{type:"object"},voting:{type:"object",properties:{delay:{type:"integer",minimum:0},period:{type:"integer",minimum:0},type:{type:"string",title:"type"},quorum:{type:"number",minimum:0},blind:{type:"boolean"},hideAbstain:{type:"boolean"},aliased:{type:"boolean"},privacy:{type:"string",enum:["","shutter"]}},additionalProperties:!1},categories:{type:"array",maxItems:2,items:{type:"string",enum:["protocol","social","investment","grant","service","media","creator","collector"]}},treasuries:{type:"array",maxItems:10,items:{type:"object",properties:{name:{type:"string",title:"Name",examples:["e.g. Balancer DAO 1"],minLength:1,maxLength:64},address:{type:"string",title:"Contract address",examples:["e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984"],pattern:"^0x[a-fA-F0-9]{40}$",minLength:42,maxLength:42},network:{type:"string",title:"Network",maxLength:12}},required:["name","address","network"],additionalProperties:!1}},parent:{type:"string",title:"parent"},children:{type:"array",maxItems:8,title:"children",items:{type:"string"}}},required:["name","network","symbol","strategies"],additionalProperties:!1}}}.definitions.Space,proposal:ar.definitions.Proposal,vote:ur.definitions.Vote,profile:hr.definitions.Profile,statement:lr.definitions.Statement,zodiac:cr.definitions.Zodiac};var dr=window&&window.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const pr=new b("properties/5.6.0");function mr(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function yr(t,e){for(let r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||"object"!=typeof t.prototype)break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function gr(t){return dr(this,void 0,void 0,(function*(){const e=Object.keys(t).map((e=>{const r=t[e];return Promise.resolve(r).then((t=>({key:e,value:t})))}));return(yield Promise.all(e)).reduce(((t,e)=>(t[e.key]=e.value,t)),{})}))}function vr(t){const e={};for(const r in t)e[r]=t[r];return e}const wr={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function br(t){if(null==t||wr[typeof t])return!0;if(Array.isArray(t)||"object"==typeof t){if(!Object.isFrozen(t))return!1;const e=Object.keys(t);for(let r=0;r<e.length;r++){let n=null;try{n=t[e[r]]}catch(t){continue}if(!br(n))return!1}return!0}return pr.throwArgumentError("Cannot deepCopy "+typeof t,"object",t)}function Ar(t){if(br(t))return t;if(Array.isArray(t))return Object.freeze(t.map((t=>_r(t))));if("object"==typeof t){const e={};for(const r in t){const n=t[r];void 0!==n&&mr(e,r,_r(n))}return e}return pr.throwArgumentError("Cannot deepCopy "+typeof t,"object",t)}function _r(t){return Ar(t)}class Er{constructor(t){for(const e in t)this[e]=_r(t[e])}}const Mr="abi/5.6.4",kr=new b(Mr),xr={};let Nr={calldata:!0,memory:!0,storage:!0},Sr={calldata:!0,memory:!0};function Ur(t,e){if("bytes"===t||"string"===t){if(Nr[e])return!0}else if("address"===t){if("payable"===e)return!0}else if((t.indexOf("[")>=0||"tuple"===t)&&Sr[e])return!0;return(Nr[e]||"payable"===e)&&kr.throwArgumentError("invalid modifier","name",e),!1}function Pr(t,e){for(let r in e)mr(t,r,e[r])}const Tr=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),Rr=new RegExp(/^(.*)\[([0-9]*)\]$/);class Cr{constructor(t,e){t!==xr&&kr.throwError("use fromString",b.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),Pr(this,e);let r=this.type.match(Rr);Pr(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:Cr.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(t){if(t||(t=Tr.sighash),Tr[t]||kr.throwArgumentError("invalid format type","format",t),t===Tr.json){let e={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(e.indexed=this.indexed),this.components&&(e.components=this.components.map((e=>JSON.parse(e.format(t))))),JSON.stringify(e)}let e="";return"array"===this.baseType?(e+=this.arrayChildren.format(t),e+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(t!==Tr.sighash&&(e+=this.type),e+="("+this.components.map((e=>e.format(t))).join(t===Tr.full?", ":",")+")"):e+=this.type,t!==Tr.sighash&&(!0===this.indexed&&(e+=" indexed"),t===Tr.full&&this.name&&(e+=" "+this.name)),e}static from(t,e){return"string"==typeof t?Cr.fromString(t,e):Cr.fromObject(t)}static fromObject(t){return Cr.isParamType(t)?t:new Cr(xr,{name:t.name||null,type:Vr(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(Cr.fromObject):null})}static fromString(t,e){return r=function(t,e){let r=t;function n(e){kr.throwArgumentError(`unexpected character at position ${e}`,"param",t)}function i(t){let r={type:"",name:"",parent:t,state:{allowType:!0}};return e&&(r.indexed=!1),r}t=t.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},s=o;for(let r=0;r<t.length;r++){let o=t[r];switch(o){case"(":s.state.allowType&&""===s.type?s.type="tuple":s.state.allowParams||n(r),s.state.allowType=!1,s.type=Vr(s.type),s.components=[i(s)],s=s.components[0];break;case")":delete s.state,"indexed"===s.name&&(e||n(r),s.indexed=!0,s.name=""),Ur(s.type,s.name)&&(s.name=""),s.type=Vr(s.type);let t=s;s=s.parent,s||n(r),delete t.parent,s.state.allowParams=!1,s.state.allowName=!0,s.state.allowArray=!0;break;case",":delete s.state,"indexed"===s.name&&(e||n(r),s.indexed=!0,s.name=""),Ur(s.type,s.name)&&(s.name=""),s.type=Vr(s.type);let a=i(s.parent);s.parent.components.push(a),delete s.parent,s=a;break;case" ":s.state.allowType&&""!==s.type&&(s.type=Vr(s.type),delete s.state.allowType,s.state.allowName=!0,s.state.allowParams=!0),s.state.allowName&&""!==s.name&&("indexed"===s.name?(e||n(r),s.indexed&&n(r),s.indexed=!0,s.name=""):Ur(s.type,s.name)?s.name="":s.state.allowName=!1);break;case"[":s.state.allowArray||n(r),s.type+=o,s.state.allowArray=!1,s.state.allowName=!1,s.state.readArray=!0;break;case"]":s.state.readArray||n(r),s.type+=o,s.state.readArray=!1,s.state.allowArray=!0,s.state.allowName=!0;break;default:s.state.allowType?(s.type+=o,s.state.allowParams=!0,s.state.allowArray=!0):s.state.allowName?(s.name+=o,delete s.state.allowArray):s.state.readArray?s.type+=o:n(r)}}return s.parent&&kr.throwArgumentError("unexpected eof","param",t),delete o.state,"indexed"===s.name?(e||n(r.length-7),s.indexed&&n(r.length-7),s.indexed=!0,s.name=""):Ur(s.type,s.name)&&(s.name=""),o.type=Vr(o.type),o}(t,!!e),Cr.fromObject({name:r.name,type:r.type,indexed:r.indexed,components:r.components});var r}static isParamType(t){return!(null==t||!t._isParamType)}}function Ir(t,e){return function(t){t=t.trim();let e=[],r="",n=0;for(let i=0;i<t.length;i++){let o=t[i];","===o&&0===n?(e.push(r),r=""):(r+=o,"("===o?n++:")"===o&&(n--,-1===n&&kr.throwArgumentError("unbalanced parenthesis","value",t)))}r&&e.push(r);return e}(t).map((t=>Cr.fromString(t,e)))}class $r{constructor(t,e){t!==xr&&kr.throwError("use a static from method",b.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),Pr(this,e),this._isFragment=!0,Object.freeze(this)}static from(t){return $r.isFragment(t)?t:"string"==typeof t?$r.fromString(t):$r.fromObject(t)}static fromObject(t){if($r.isFragment(t))return t;switch(t.type){case"function":return Lr.fromObject(t);case"event":return Or.fromObject(t);case"constructor":return Dr.fromObject(t);case"error":return qr.fromObject(t);case"fallback":case"receive":return null}return kr.throwArgumentError("invalid fragment object","value",t)}static fromString(t){return"event"===(t=(t=(t=t.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?Or.fromString(t.substring(5).trim()):"function"===t.split(" ")[0]?Lr.fromString(t.substring(8).trim()):"constructor"===t.split("(")[0].trim()?Dr.fromString(t.trim()):"error"===t.split(" ")[0]?qr.fromString(t.substring(5).trim()):kr.throwArgumentError("unsupported fragment","value",t)}static isFragment(t){return!(!t||!t._isFragment)}}class Or extends $r{format(t){if(t||(t=Tr.sighash),Tr[t]||kr.throwArgumentError("invalid format type","format",t),t===Tr.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((e=>JSON.parse(e.format(t))))});let e="";return t!==Tr.sighash&&(e+="event "),e+=this.name+"("+this.inputs.map((e=>e.format(t))).join(t===Tr.full?", ":",")+") ",t!==Tr.sighash&&this.anonymous&&(e+="anonymous "),e.trim()}static from(t){return"string"==typeof t?Or.fromString(t):Or.fromObject(t)}static fromObject(t){if(Or.isEventFragment(t))return t;"event"!==t.type&&kr.throwArgumentError("invalid event object","value",t);const e={name:Hr(t.name),anonymous:t.anonymous,inputs:t.inputs?t.inputs.map(Cr.fromObject):[],type:"event"};return new Or(xr,e)}static fromString(t){let e=t.match(Qr);e||kr.throwArgumentError("invalid event string","value",t);let r=!1;return e[3].split(" ").forEach((t=>{switch(t.trim()){case"anonymous":r=!0;break;case"":break;default:kr.warn("unknown modifier: "+t)}})),Or.fromObject({name:e[1].trim(),anonymous:r,inputs:Ir(e[2],!0),type:"event"})}static isEventFragment(t){return t&&t._isFragment&&"event"===t.type}}function Fr(t,e){e.gas=null;let r=t.split("@");return 1!==r.length?(r.length>2&&kr.throwArgumentError("invalid human-readable ABI signature","value",t),r[1].match(/^[0-9]+$/)||kr.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=Ht.from(r[1]),r[0]):t}function Br(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach((t=>{switch(t.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}}))}function jr(t){let e={constant:!1,payable:!0,stateMutability:"payable"};return null!=t.stateMutability?(e.stateMutability=t.stateMutability,e.constant="view"===e.stateMutability||"pure"===e.stateMutability,null!=t.constant&&!!t.constant!==e.constant&&kr.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable="payable"===e.stateMutability,null!=t.payable&&!!t.payable!==e.payable&&kr.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):null!=t.payable?(e.payable=!!t.payable,null!=t.constant||e.payable||"constructor"===t.type||kr.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&kr.throwArgumentError("cannot have constant payable function","value",t)):null!=t.constant?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):"constructor"!==t.type&&kr.throwArgumentError("unable to determine stateMutability","value",t),e}class Dr extends $r{format(t){if(t||(t=Tr.sighash),Tr[t]||kr.throwArgumentError("invalid format type","format",t),t===Tr.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((e=>JSON.parse(e.format(t))))});t===Tr.sighash&&kr.throwError("cannot format a constructor for sighash",b.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let e="constructor("+this.inputs.map((e=>e.format(t))).join(t===Tr.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "),e.trim()}static from(t){return"string"==typeof t?Dr.fromString(t):Dr.fromObject(t)}static fromObject(t){if(Dr.isConstructorFragment(t))return t;"constructor"!==t.type&&kr.throwArgumentError("invalid constructor object","value",t);let e=jr(t);e.constant&&kr.throwArgumentError("constructor cannot be constant","value",t);const r={name:null,type:t.type,inputs:t.inputs?t.inputs.map(Cr.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?Ht.from(t.gas):null};return new Dr(xr,r)}static fromString(t){let e={type:"constructor"},r=(t=Fr(t,e)).match(Qr);return r&&"constructor"===r[1].trim()||kr.throwArgumentError("invalid constructor string","value",t),e.inputs=Ir(r[2].trim(),!1),Br(r[3].trim(),e),Dr.fromObject(e)}static isConstructorFragment(t){return t&&t._isFragment&&"constructor"===t.type}}class Lr extends Dr{format(t){if(t||(t=Tr.sighash),Tr[t]||kr.throwArgumentError("invalid format type","format",t),t===Tr.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((e=>JSON.parse(e.format(t)))),outputs:this.outputs.map((e=>JSON.parse(e.format(t))))});let e="";return t!==Tr.sighash&&(e+="function "),e+=this.name+"("+this.inputs.map((e=>e.format(t))).join(t===Tr.full?", ":",")+") ",t!==Tr.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "):this.constant&&(e+="view "),this.outputs&&this.outputs.length&&(e+="returns ("+this.outputs.map((e=>e.format(t))).join(", ")+") "),null!=this.gas&&(e+="@"+this.gas.toString()+" ")),e.trim()}static from(t){return"string"==typeof t?Lr.fromString(t):Lr.fromObject(t)}static fromObject(t){if(Lr.isFunctionFragment(t))return t;"function"!==t.type&&kr.throwArgumentError("invalid function object","value",t);let e=jr(t);const r={type:t.type,name:Hr(t.name),constant:e.constant,inputs:t.inputs?t.inputs.map(Cr.fromObject):[],outputs:t.outputs?t.outputs.map(Cr.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?Ht.from(t.gas):null};return new Lr(xr,r)}static fromString(t){let e={type:"function"},r=(t=Fr(t,e)).split(" returns ");r.length>2&&kr.throwArgumentError("invalid function string","value",t);let n=r[0].match(Qr);if(n||kr.throwArgumentError("invalid function signature","value",t),e.name=n[1].trim(),e.name&&Hr(e.name),e.inputs=Ir(n[2],!1),Br(n[3].trim(),e),r.length>1){let n=r[1].match(Qr);""==n[1].trim()&&""==n[3].trim()||kr.throwArgumentError("unexpected tokens","value",t),e.outputs=Ir(n[2],!1)}else e.outputs=[];return Lr.fromObject(e)}static isFunctionFragment(t){return t&&t._isFragment&&"function"===t.type}}function zr(t){const e=t.format();return"Error(string)"!==e&&"Panic(uint256)"!==e||kr.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class qr extends $r{format(t){if(t||(t=Tr.sighash),Tr[t]||kr.throwArgumentError("invalid format type","format",t),t===Tr.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((e=>JSON.parse(e.format(t))))});let e="";return t!==Tr.sighash&&(e+="error "),e+=this.name+"("+this.inputs.map((e=>e.format(t))).join(t===Tr.full?", ":",")+") ",e.trim()}static from(t){return"string"==typeof t?qr.fromString(t):qr.fromObject(t)}static fromObject(t){if(qr.isErrorFragment(t))return t;"error"!==t.type&&kr.throwArgumentError("invalid error object","value",t);const e={type:t.type,name:Hr(t.name),inputs:t.inputs?t.inputs.map(Cr.fromObject):[]};return zr(new qr(xr,e))}static fromString(t){let e={type:"error"},r=t.match(Qr);return r||kr.throwArgumentError("invalid error signature","value",t),e.name=r[1].trim(),e.name&&Hr(e.name),e.inputs=Ir(r[2],!1),zr(qr.fromObject(e))}static isErrorFragment(t){return t&&t._isFragment&&"error"===t.type}}function Vr(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const Gr=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function Hr(t){return t&&t.match(Gr)||kr.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const Qr=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");const Kr=new b(Mr);class Zr{constructor(t,e,r,n){this.name=t,this.type=e,this.localName=r,this.dynamic=n}_throwError(t,e){Kr.throwArgumentError(t,this.localName,e)}}class Wr{constructor(t){mr(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}get data(){return $(this._data)}get length(){return this._dataLength}_writeData(t){return this._data.push(t),this._dataLength+=t.length,t.length}appendWriter(t){return this._writeData(S(t._data))}writeBytes(t){let e=N(t);const r=e.length%this.wordSize;return r&&(e=S([e,this._padding.slice(r)])),this._writeData(e)}_getValue(t){let e=N(Ht.from(t));return e.length>this.wordSize&&Kr.throwError("value out-of-bounds",b.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:e.length}),e.length%this.wordSize&&(e=S([this._padding.slice(e.length%this.wordSize),e])),e}writeValue(t){return this._writeData(this._getValue(t))}writeUpdatableValue(){const t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,e=>{this._data[t]=this._getValue(e)}}}class Jr{constructor(t,e,r,n){mr(this,"_data",N(t)),mr(this,"wordSize",e||32),mr(this,"_coerceFunc",r),mr(this,"allowLoose",n),this._offset=0}get data(){return R(this._data)}get consumed(){return this._offset}static coerce(t,e){let r=t.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(e=e.toNumber()),e}coerce(t,e){return this._coerceFunc?this._coerceFunc(t,e):Jr.coerce(t,e)}_peekBytes(t,e,r){let n=Math.ceil(e/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+e<=this._data.length?n=e:Kr.throwError("data out-of-bounds",b.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(t){return new Jr(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(t,e){let r=this._peekBytes(0,t,!!e);return this._offset+=r.length,r.slice(0,t)}readValue(){return Ht.from(this.readBytes(this.wordSize))}}class Yr extends Zr{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,e){try{e=$e(e)}catch(t){this._throwError(t.message,e)}return t.writeValue(e)}decode(t){return $e(F(t.readValue().toHexString(),20))}}class Xr extends Zr{constructor(t){super(t.name,t.type,void 0,t.dynamic),this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,e){return this.coder.encode(t,e)}decode(t){return this.coder.decode(t)}}const tn=new b(Mr);function en(t,e,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let t={};n=e.map((e=>{const n=e.localName;return n||tn.throwError("cannot encode object for signature with missing names",b.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[n]&&tn.throwError("cannot encode object for signature with duplicate names",b.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[n]=!0,r[n]}))}else tn.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&tn.throwArgumentError("types/value length mismatch","tuple",r);let i=new Wr(t.wordSize),o=new Wr(t.wordSize),s=[];e.forEach(((t,e)=>{let r=n[e];if(t.dynamic){let e=o.length;t.encode(o,r);let n=i.writeUpdatableValue();s.push((t=>{n(t+e)}))}else t.encode(i,r)})),s.forEach((t=>{t(i.length)}));let a=t.appendWriter(i);return a+=t.appendWriter(o),a}function rn(t,e){let r=[],n=t.subReader(0);e.forEach((e=>{let i=null;if(e.dynamic){let r=t.readValue(),o=n.subReader(r.toNumber());try{i=e.decode(o)}catch(t){if(t.code===b.errors.BUFFER_OVERRUN)throw t;i=t,i.baseType=e.name,i.name=e.localName,i.type=e.type}}else try{i=e.decode(t)}catch(t){if(t.code===b.errors.BUFFER_OVERRUN)throw t;i=t,i.baseType=e.name,i.name=e.localName,i.type=e.type}null!=i&&r.push(i)}));const i=e.reduce(((t,e)=>{const r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t}),{});e.forEach(((t,e)=>{let n=t.localName;if(!n||1!==i[n])return;if("length"===n&&(n="_length"),null!=r[n])return;const o=r[e];o instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw o}}):r[n]=o}));for(let t=0;t<r.length;t++){const e=r[t];e instanceof Error&&Object.defineProperty(r,t,{enumerable:!0,get:()=>{throw e}})}return Object.freeze(r)}class nn extends Zr{constructor(t,e,r){super("array",t.type+"["+(e>=0?e:"")+"]",r,-1===e||t.dynamic),this.coder=t,this.length=e}defaultValue(){const t=this.coder.defaultValue(),e=[];for(let r=0;r<this.length;r++)e.push(t);return e}encode(t,e){Array.isArray(e)||this._throwError("expected array value",e);let r=this.length;-1===r&&(r=e.length,t.writeValue(e.length)),tn.checkArgumentCount(e.length,r,"coder array"+(this.localName?" "+this.localName:""));let n=[];for(let t=0;t<e.length;t++)n.push(this.coder);return en(t,n,e)}decode(t){let e=this.length;-1===e&&(e=t.readValue().toNumber(),32*e>t._data.length&&tn.throwError("insufficient data length",b.errors.BUFFER_OVERRUN,{length:t._data.length,count:e}));let r=[];for(let t=0;t<e;t++)r.push(new Xr(this.coder));return t.coerce(this.name,rn(t,r))}}class on extends Zr{constructor(t){super("bool","bool",t,!1)}defaultValue(){return!1}encode(t,e){return t.writeValue(e?1:0)}decode(t){return t.coerce(this.type,!t.readValue().isZero())}}class sn extends Zr{constructor(t,e){super(t,t,e,!0)}defaultValue(){return"0x"}encode(t,e){e=N(e);let r=t.writeValue(e.length);return r+=t.writeBytes(e),r}decode(t){return t.readBytes(t.readValue().toNumber(),!0)}}class an extends sn{constructor(t){super("bytes",t)}decode(t){return t.coerce(this.name,R(super.decode(t)))}}class un extends Zr{constructor(t,e){let r="bytes"+String(t);super(r,r,e,!1),this.size=t}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(t,e){let r=N(e);return r.length!==this.size&&this._throwError("incorrect data length",e),t.writeBytes(r)}decode(t){return t.coerce(this.name,R(t.readBytes(this.size)))}}class hn extends Zr{constructor(t){super("null","",t,!1)}defaultValue(){return null}encode(t,e){return null!=e&&this._throwError("not null",e),t.writeBytes([])}decode(t){return t.readBytes(0),t.coerce(this.name,null)}}const ln=Ht.from(-1),cn=Ht.from(0),fn=Ht.from(1),dn=Ht.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class pn extends Zr{constructor(t,e,r){const n=(e?"int":"uint")+8*t;super(n,n,r,!1),this.size=t,this.signed=e}defaultValue(){return 0}encode(t,e){let r=Ht.from(e),n=dn.mask(8*t.wordSize);if(this.signed){let t=n.mask(8*this.size-1);(r.gt(t)||r.lt(t.add(fn).mul(ln)))&&this._throwError("value out-of-bounds",e)}else(r.lt(cn)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",e);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*t.wordSize)),t.writeValue(r)}decode(t){let e=t.readValue().mask(8*this.size);return this.signed&&(e=e.fromTwos(8*this.size)),t.coerce(this.name,e)}}const mn=new b("strings/5.6.1");var yn,gn;function vn(t,e,r,n,i){if(t===gn.BAD_PREFIX||t===gn.UNEXPECTED_CONTINUE){let t=0;for(let n=e+1;n<r.length&&r[n]>>6==2;n++)t++;return t}return t===gn.OVERRUN?r.length-e-1:0}!function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"}(yn||(yn={})),function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"}(gn||(gn={}));const wn=Object.freeze({error:function(t,e,r,n,i){return mn.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:vn,replace:function(t,e,r,n,i){return t===gn.OVERLONG?(n.push(i),0):(n.push(65533),vn(t,e,r))}});function bn(t,e){null==e&&(e=wn.error),t=N(t);const r=[];let n=0;for(;n<t.length;){const i=t[n++];if(i>>7==0){r.push(i);continue}let o=null,s=null;if(192==(224&i))o=1,s=127;else if(224==(240&i))o=2,s=2047;else{if(240!=(248&i)){n+=e(128==(192&i)?gn.UNEXPECTED_CONTINUE:gn.BAD_PREFIX,n-1,t,r);continue}o=3,s=65535}if(n-1+o>=t.length){n+=e(gn.OVERRUN,n-1,t,r);continue}let a=i&(1<<8-o-1)-1;for(let i=0;i<o;i++){let i=t[n];if(128!=(192&i)){n+=e(gn.MISSING_CONTINUE,n,t,r),a=null;break}a=a<<6|63&i,n++}null!==a&&(a>1114111?n+=e(gn.OUT_OF_RANGE,n-1-o,t,r,a):a>=55296&&a<=57343?n+=e(gn.UTF16_SURROGATE,n-1-o,t,r,a):a<=s?n+=e(gn.OVERLONG,n-1-o,t,r,a):r.push(a))}return r}function An(t,e=yn.current){e!=yn.current&&(mn.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e<t.length;e++){const n=t.charCodeAt(e);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if(55296==(64512&n)){e++;const i=t.charCodeAt(e);if(e>=t.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const o=65536+((1023&n)<<10)+(1023&i);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return N(r)}function _n(t){return t.map((t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t))))).join("")}function En(t,e){return _n(bn(t,e))}function Mn(t,e=yn.current){return bn(An(t,e))}function kn(t,e){e||(e=function(t){return[parseInt(t,16)]});let r=0,n={};return t.split(",").forEach((t=>{let i=t.split(":");r+=parseInt(i[0],16),n[r]=e(i[1])})),n}function xn(t){let e=0;return t.split(",").map((t=>{let r=t.split("-");1===r.length?r[1]="0":""===r[1]&&(r[1]="1");let n=e+parseInt(r[0],16);return e=parseInt(r[1],16),{l:n,h:e}}))}function Nn(t,e){let r=0;for(let n=0;n<e.length;n++){let i=e[n];if(r+=i.l,t>=r&&t<=r+i.h&&(t-r)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(t-r))continue;return i}}return null}const Sn=xn("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),Un="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((t=>parseInt(t,16))),Pn=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],Tn=kn("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),Rn=kn("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),Cn=kn("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(t){if(t.length%4!=0)throw new Error("bad data");let e=[];for(let r=0;r<t.length;r+=4)e.push(parseInt(t.substring(r,r+4),16));return e})),In=xn("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function $n(t){if(t.match(/^[a-z0-9-]*$/i)&&t.length<=59)return t.toLowerCase();let e=Mn(t);var r;r=e.map((t=>{if(Un.indexOf(t)>=0)return[];if(t>=65024&&t<=65039)return[];let e=function(t){let e=Nn(t,Pn);if(e)return[t+e.s];let r=Tn[t];if(r)return r;let n=Rn[t];return n?[t+n[0]]:Cn[t]||null}(t);return e||[t]})),e=r.reduce(((t,e)=>(e.forEach((e=>{t.push(e)})),t)),[]),e=Mn(_n(e),yn.NFKC),e.forEach((t=>{if(Nn(t,In))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),e.forEach((t=>{if(Nn(t,Sn))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));let n=_n(e);if("-"===n.substring(0,1)||"--"===n.substring(2,4)||"-"===n.substring(n.length-1))throw new Error("invalid hyphen");if(n.length>63)throw new Error("too long");return n}class On extends sn{constructor(t){super("string",t)}defaultValue(){return""}encode(t,e){return super.encode(t,An(e))}decode(t){return En(super.decode(t))}}class Fn extends Zr{constructor(t,e){let r=!1;const n=[];t.forEach((t=>{t.dynamic&&(r=!0),n.push(t.type)}));super("tuple","tuple("+n.join(",")+")",e,r),this.coders=t}defaultValue(){const t=[];this.coders.forEach((e=>{t.push(e.defaultValue())}));const e=this.coders.reduce(((t,e)=>{const r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t}),{});return this.coders.forEach(((r,n)=>{let i=r.localName;i&&1===e[i]&&("length"===i&&(i="_length"),null==t[i]&&(t[i]=t[n]))})),Object.freeze(t)}encode(t,e){return en(t,this.coders,e)}decode(t){return t.coerce(this.name,rn(t,this.coders))}}const Bn=new b(Mr),jn=new RegExp(/^bytes([0-9]*)$/),Dn=new RegExp(/^(u?int)([0-9]*)$/);const Ln=new class{constructor(t){mr(this,"coerceFunc",t||null)}_getCoder(t){switch(t.baseType){case"address":return new Yr(t.name);case"bool":return new on(t.name);case"string":return new On(t.name);case"bytes":return new an(t.name);case"array":return new nn(this._getCoder(t.arrayChildren),t.arrayLength,t.name);case"tuple":return new Fn((t.components||[]).map((t=>this._getCoder(t))),t.name);case"":return new hn(t.name)}let e=t.type.match(Dn);if(e){let r=parseInt(e[2]||"256");return(0===r||r>256||r%8!=0)&&Bn.throwArgumentError("invalid "+e[1]+" bit length","param",t),new pn(r/8,"int"===e[1],t.name)}if(e=t.type.match(jn),e){let r=parseInt(e[1]);return(0===r||r>32)&&Bn.throwArgumentError("invalid bytes length","param",t),new un(r,t.name)}return Bn.throwArgumentError("invalid type","type",t.type)}_getWordSize(){return 32}_getReader(t,e){return new Jr(t,this._getWordSize(),this.coerceFunc,e)}_getWriter(){return new Wr(this._getWordSize())}getDefaultValue(t){const e=t.map((t=>this._getCoder(Cr.from(t))));return new Fn(e,"_").defaultValue()}encode(t,e){t.length!==e.length&&Bn.throwError("types/values length mismatch",b.errors.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});const r=t.map((t=>this._getCoder(Cr.from(t)))),n=new Fn(r,"_"),i=this._getWriter();return n.encode(i,e),i.data}decode(t,e,r){const n=t.map((t=>this._getCoder(Cr.from(t))));return new Fn(n,"_").decode(this._getReader(N(e),r))}};function zn(t){return _e(An(t))}const qn="hash/5.6.1",Vn=new b(qn),Gn=new Uint8Array(32);Gn.fill(0);const Hn=new RegExp("^((.*)\\.)?([^.]+)$");function Qn(t){"string"!=typeof t&&Vn.throwArgumentError("invalid ENS name; not a string","name",t);let e=t,r=Gn;for(;e.length;){const n=e.match(Hn);null!=n&&""!==n[2]||Vn.throwArgumentError("invalid ENS address; missing component","name",t);r=_e(S([r,_e(An($n(n[3])))])),e=n[2]||""}return R(r)}var Kn=window&&window.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const Zn=new b(qn),Wn=new Uint8Array(32);Wn.fill(0);const Jn=Ht.from(-1),Yn=Ht.from(0),Xn=Ht.from(1),ti=Ht.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const ei=F(Xn.toHexString(),32),ri=F(Yn.toHexString(),32),ni={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},ii=["name","version","chainId","verifyingContract","salt"];function oi(t){return function(e){return"string"!=typeof e&&Zn.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const si={name:oi("name"),version:oi("version"),chainId:function(t){try{return Ht.from(t).toString()}catch(t){}return Zn.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return $e(t).toLowerCase()}catch(t){}return Zn.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{const e=N(t);if(32!==e.length)throw new Error("bad length");return R(e)}catch(t){}return Zn.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function ai(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const r=""===e[1],n=parseInt(e[2]||"256");(n%8!=0||n>256||e[2]&&e[2]!==String(n))&&Zn.throwArgumentError("invalid numeric width","type",t);const i=ti.mask(r?n-1:n),o=r?i.add(Xn).mul(Jn):Yn;return function(e){const r=Ht.from(e);return(r.lt(o)||r.gt(i))&&Zn.throwArgumentError(`value out-of-bounds for ${t}`,"value",e),F(r.toTwos(256).toHexString(),32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return(0===r||r>32||e[1]!==String(r))&&Zn.throwArgumentError("invalid bytes width","type",t),function(e){return N(e).length!==r&&Zn.throwArgumentError(`invalid length for ${t}`,"value",e),function(t){const e=N(t),r=e.length%32;return r?$([e,Wn.slice(r)]):R(e)}(e)}}}switch(t){case"address":return function(t){return F($e(t),32)};case"bool":return function(t){return t?ei:ri};case"bytes":return function(t){return _e(t)};case"string":return function(t){return zn(t)}}return null}function ui(t,e){return`${t}(${e.map((({name:t,type:e})=>e+" "+t)).join(",")})`}class hi{constructor(t){mr(this,"types",Object.freeze(_r(t))),mr(this,"_encoderCache",{}),mr(this,"_types",{});const e={},r={},n={};Object.keys(t).forEach((t=>{e[t]={},r[t]=[],n[t]={}}));for(const n in t){const i={};t[n].forEach((o=>{i[o.name]&&Zn.throwArgumentError(`duplicate variable name ${JSON.stringify(o.name)} in ${JSON.stringify(n)}`,"types",t),i[o.name]=!0;const s=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1];s===n&&Zn.throwArgumentError(`circular type reference to ${JSON.stringify(s)}`,"types",t);ai(s)||(r[s]||Zn.throwArgumentError(`unknown type ${JSON.stringify(s)}`,"types",t),r[s].push(n),e[n][s]=!0)}))}const i=Object.keys(r).filter((t=>0===r[t].length));0===i.length?Zn.throwArgumentError("missing primary type","types",t):i.length>1&&Zn.throwArgumentError(`ambiguous primary types or unused types: ${i.map((t=>JSON.stringify(t))).join(", ")}`,"types",t),mr(this,"primaryType",i[0]),function i(o,s){s[o]&&Zn.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,"types",t),s[o]=!0,Object.keys(e[o]).forEach((t=>{r[t]&&(i(t,s),Object.keys(s).forEach((e=>{n[e][t]=!0})))})),delete s[o]}(this.primaryType,{});for(const e in n){const r=Object.keys(n[e]);r.sort(),this._types[e]=ui(e,t[e])+r.map((e=>ui(e,t[e]))).join("")}}getEncoder(t){let e=this._encoderCache[t];return e||(e=this._encoderCache[t]=this._getEncoder(t)),e}_getEncoder(t){{const e=ai(t);if(e)return e}const e=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(e){const t=e[1],r=this.getEncoder(t),n=parseInt(e[3]);return e=>{n>=0&&e.length!==n&&Zn.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);let i=e.map(r);return this._types[t]&&(i=i.map(_e)),_e($(i))}}const r=this.types[t];if(r){const e=zn(this._types[t]);return t=>{const n=r.map((({name:e,type:r})=>{const n=this.getEncoder(r)(t[e]);return this._types[r]?_e(n):n}));return n.unshift(e),$(n)}}return Zn.throwArgumentError(`unknown type: ${t}`,"type",t)}encodeType(t){const e=this._types[t];return e||Zn.throwArgumentError(`unknown type: ${JSON.stringify(t)}`,"name",t),e}encodeData(t,e){return this.getEncoder(t)(e)}hashStruct(t,e){return _e(this.encodeData(t,e))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,e,r){if(ai(t))return r(t,e);const n=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const t=n[1],i=parseInt(n[3]);return i>=0&&e.length!==i&&Zn.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e),e.map((e=>this._visit(t,e,r)))}const i=this.types[t];return i?i.reduce(((t,{name:n,type:i})=>(t[n]=this._visit(i,e[n],r),t)),{}):Zn.throwArgumentError(`unknown type: ${t}`,"type",t)}visit(t,e){return this._visit(this.primaryType,t,e)}static from(t){return new hi(t)}static getPrimaryType(t){return hi.from(t).primaryType}static hashStruct(t,e,r){return hi.from(e).hashStruct(t,r)}static hashDomain(t){const e=[];for(const r in t){const n=ni[r];n||Zn.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",t),e.push({name:r,type:n})}return e.sort(((t,e)=>ii.indexOf(t.name)-ii.indexOf(e.name))),hi.hashStruct("EIP712Domain",{EIP712Domain:e},t)}static encode(t,e,r){return $(["0x1901",hi.hashDomain(t),hi.from(e).hash(r)])}static hash(t,e,r){return _e(hi.encode(t,e,r))}static resolveNames(t,e,r,n){return Kn(this,void 0,void 0,(function*(){t=vr(t);const i={};t.verifyingContract&&!P(t.verifyingContract,20)&&(i[t.verifyingContract]="0x");const o=hi.from(e);o.visit(r,((t,e)=>("address"!==t||P(e,20)||(i[e]="0x"),e)));for(const t in i)i[t]=yield n(t);return t.verifyingContract&&i[t.verifyingContract]&&(t.verifyingContract=i[t.verifyingContract]),r=o.visit(r,((t,e)=>"address"===t&&i[e]?i[e]:e)),{domain:t,value:r}}))}static getPayload(t,e,r){hi.hashDomain(t);const n={},i=[];ii.forEach((e=>{const r=t[e];null!=r&&(n[e]=si[e](r),i.push({name:e,type:ni[e]}))}));const o=hi.from(e),s=vr(e);return s.EIP712Domain?Zn.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",e):s.EIP712Domain=i,o.encode(r),{types:s,domain:n,primaryType:o.primaryType,message:o.visit(r,((t,e)=>{if(t.match(/^bytes(\d*)/))return R(N(e));if(t.match(/^u?int/))return Ht.from(e).toString();switch(t){case"address":return e.toLowerCase();case"bool":return!!e;case"string":return"string"!=typeof e&&Zn.throwArgumentError("invalid string","value",e),e}return Zn.throwArgumentError("unsupported type","type",t)}))}}}const li=new b(Mr);class ci extends Er{}class fi extends Er{}class di extends Er{}class pi extends Er{static isIndexed(t){return!(!t||!t._isIndexed)}}const mi={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function yi(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);return r.error=e,r}class gi{constructor(t){let e=[];e="string"==typeof t?JSON.parse(t):t,mr(this,"fragments",e.map((t=>$r.from(t))).filter((t=>null!=t))),mr(this,"_abiCoder",yr(new.target,"getAbiCoder")()),mr(this,"functions",{}),mr(this,"errors",{}),mr(this,"events",{}),mr(this,"structs",{}),this.fragments.forEach((t=>{let e=null;switch(t.type){case"constructor":return this.deploy?void li.warn("duplicate definition - constructor"):void mr(this,"deploy",t);case"function":e=this.functions;break;case"event":e=this.events;break;case"error":e=this.errors;break;default:return}let r=t.format();e[r]?li.warn("duplicate definition - "+r):e[r]=t})),this.deploy||mr(this,"deploy",Dr.from({payable:!1,type:"constructor"})),mr(this,"_isInterface",!0)}format(t){t||(t=Tr.full),t===Tr.sighash&&li.throwArgumentError("interface does not support formatting sighash","format",t);const e=this.fragments.map((e=>e.format(t)));return t===Tr.json?JSON.stringify(e.map((t=>JSON.parse(t)))):e}static getAbiCoder(){return Ln}static getAddress(t){return $e(t)}static getSighash(t){return I(zn(t.format()),0,4)}static getEventTopic(t){return zn(t.format())}getFunction(t){if(P(t)){for(const e in this.functions)if(t===this.getSighash(e))return this.functions[e];li.throwArgumentError("no matching function","sighash",t)}if(-1===t.indexOf("(")){const e=t.trim(),r=Object.keys(this.functions).filter((t=>t.split("(")[0]===e));return 0===r.length?li.throwArgumentError("no matching function","name",e):r.length>1&&li.throwArgumentError("multiple matching functions","name",e),this.functions[r[0]]}const e=this.functions[Lr.fromString(t).format()];return e||li.throwArgumentError("no matching function","signature",t),e}getEvent(t){if(P(t)){const e=t.toLowerCase();for(const t in this.events)if(e===this.getEventTopic(t))return this.events[t];li.throwArgumentError("no matching event","topichash",e)}if(-1===t.indexOf("(")){const e=t.trim(),r=Object.keys(this.events).filter((t=>t.split("(")[0]===e));return 0===r.length?li.throwArgumentError("no matching event","name",e):r.length>1&&li.throwArgumentError("multiple matching events","name",e),this.events[r[0]]}const e=this.events[Or.fromString(t).format()];return e||li.throwArgumentError("no matching event","signature",t),e}getError(t){if(P(t)){const e=yr(this.constructor,"getSighash");for(const r in this.errors){if(t===e(this.errors[r]))return this.errors[r]}li.throwArgumentError("no matching error","sighash",t)}if(-1===t.indexOf("(")){const e=t.trim(),r=Object.keys(this.errors).filter((t=>t.split("(")[0]===e));return 0===r.length?li.throwArgumentError("no matching error","name",e):r.length>1&&li.throwArgumentError("multiple matching errors","name",e),this.errors[r[0]]}const e=this.errors[Lr.fromString(t).format()];return e||li.throwArgumentError("no matching error","signature",t),e}getSighash(t){if("string"==typeof t)try{t=this.getFunction(t)}catch(e){try{t=this.getError(t)}catch(t){throw e}}return yr(this.constructor,"getSighash")(t)}getEventTopic(t){return"string"==typeof t&&(t=this.getEvent(t)),yr(this.constructor,"getEventTopic")(t)}_decodeParams(t,e){return this._abiCoder.decode(t,e)}_encodeParams(t,e){return this._abiCoder.encode(t,e)}encodeDeploy(t){return this._encodeParams(this.deploy.inputs,t||[])}decodeErrorResult(t,e){"string"==typeof t&&(t=this.getError(t));const r=N(e);return R(r.slice(0,4))!==this.getSighash(t)&&li.throwArgumentError(`data signature does not match error ${t.name}.`,"data",R(r)),this._decodeParams(t.inputs,r.slice(4))}encodeErrorResult(t,e){return"string"==typeof t&&(t=this.getError(t)),R(S([this.getSighash(t),this._encodeParams(t.inputs,e||[])]))}decodeFunctionData(t,e){"string"==typeof t&&(t=this.getFunction(t));const r=N(e);return R(r.slice(0,4))!==this.getSighash(t)&&li.throwArgumentError(`data signature does not match function ${t.name}.`,"data",R(r)),this._decodeParams(t.inputs,r.slice(4))}encodeFunctionData(t,e){return"string"==typeof t&&(t=this.getFunction(t)),R(S([this.getSighash(t),this._encodeParams(t.inputs,e||[])]))}decodeFunctionResult(t,e){"string"==typeof t&&(t=this.getFunction(t));let r=N(e),n=null,i="",o=null,s=null,a=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(t.outputs,r)}catch(t){}break;case 4:{const t=R(r.slice(0,4)),e=mi[t];if(e)o=this._abiCoder.decode(e.inputs,r.slice(4)),s=e.name,a=e.signature,e.reason&&(n=o[0]),"Error"===s?i=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(o[0])}`:"Panic"===s&&(i=`; VM Exception while processing transaction: reverted with panic code ${o[0]}`);else try{const e=this.getError(t);o=this._abiCoder.decode(e.inputs,r.slice(4)),s=e.name,a=e.format()}catch(t){}break}}return li.throwError("call revert exception"+i,b.errors.CALL_EXCEPTION,{method:t.format(),data:R(e),errorArgs:o,errorName:s,errorSignature:a,reason:n})}encodeFunctionResult(t,e){return"string"==typeof t&&(t=this.getFunction(t)),R(this._abiCoder.encode(t.outputs,e||[]))}encodeFilterTopics(t,e){"string"==typeof t&&(t=this.getEvent(t)),e.length>t.inputs.length&&li.throwError("too many arguments for "+t.format(),b.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:e});let r=[];t.anonymous||r.push(this.getEventTopic(t));const n=(t,e)=>"string"===t.type?zn(e):"bytes"===t.type?_e(R(e)):("bool"===t.type&&"boolean"==typeof e&&(e=e?"0x01":"0x00"),t.type.match(/^u?int/)&&(e=Ht.from(e).toHexString()),"address"===t.type&&this._abiCoder.encode(["address"],[e]),F(R(e),32));for(e.forEach(((e,i)=>{let o=t.inputs[i];o.indexed?null==e?r.push(null):"array"===o.baseType||"tuple"===o.baseType?li.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,e):Array.isArray(e)?r.push(e.map((t=>n(o,t)))):r.push(n(o,e)):null!=e&&li.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,e)}));r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(t,e){"string"==typeof t&&(t=this.getEvent(t));const r=[],n=[],i=[];return t.anonymous||r.push(this.getEventTopic(t)),e.length!==t.inputs.length&&li.throwArgumentError("event arguments/values mismatch","values",e),t.inputs.forEach(((t,o)=>{const s=e[o];if(t.indexed)if("string"===t.type)r.push(zn(s));else if("bytes"===t.type)r.push(_e(s));else{if("tuple"===t.baseType||"array"===t.baseType)throw new Error("not implemented");r.push(this._abiCoder.encode([t.type],[s]))}else n.push(t),i.push(s)})),{data:this._abiCoder.encode(n,i),topics:r}}decodeEventLog(t,e,r){if("string"==typeof t&&(t=this.getEvent(t)),null!=r&&!t.anonymous){let e=this.getEventTopic(t);P(r[0],32)&&r[0].toLowerCase()===e||li.throwError("fragment/topic mismatch",b.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:e,value:r[0]}),r=r.slice(1)}let n=[],i=[],o=[];t.inputs.forEach(((t,e)=>{t.indexed?"string"===t.type||"bytes"===t.type||"tuple"===t.baseType||"array"===t.baseType?(n.push(Cr.fromObject({type:"bytes32",name:t.name})),o.push(!0)):(n.push(t),o.push(!1)):(i.push(t),o.push(!1))}));let s=null!=r?this._abiCoder.decode(n,S(r)):null,a=this._abiCoder.decode(i,e,!0),u=[],h=0,l=0;t.inputs.forEach(((t,e)=>{if(t.indexed)if(null==s)u[e]=new pi({_isIndexed:!0,hash:null});else if(o[e])u[e]=new pi({_isIndexed:!0,hash:s[l++]});else try{u[e]=s[l++]}catch(t){u[e]=t}else try{u[e]=a[h++]}catch(t){u[e]=t}if(t.name&&null==u[t.name]){const r=u[e];r instanceof Error?Object.defineProperty(u,t.name,{enumerable:!0,get:()=>{throw yi(`property ${JSON.stringify(t.name)}`,r)}}):u[t.name]=r}}));for(let t=0;t<u.length;t++){const e=u[t];e instanceof Error&&Object.defineProperty(u,t,{enumerable:!0,get:()=>{throw yi(`index ${t}`,e)}})}return Object.freeze(u)}parseTransaction(t){let e=this.getFunction(t.data.substring(0,10).toLowerCase());return e?new fi({args:this._abiCoder.decode(e.inputs,"0x"+t.data.substring(10)),functionFragment:e,name:e.name,signature:e.format(),sighash:this.getSighash(e),value:Ht.from(t.value||"0")}):null}parseLog(t){let e=this.getEvent(t.topics[0]);return!e||e.anonymous?null:new ci({eventFragment:e,name:e.name,signature:e.format(),topic:this.getEventTopic(e),args:this.decodeEventLog(e,t.data,t.topics)})}parseError(t){const e=R(t);let r=this.getError(e.substring(0,10).toLowerCase());return r?new di({args:this._abiCoder.decode(r.inputs,"0x"+e.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(t){return!(!t||!t._isInterface)}}var vi=window&&window.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const wi=new b("abstract-provider/5.6.1");class bi extends Er{static isForkEvent(t){return!(!t||!t._isForkEvent)}}class Ai{constructor(){wi.checkAbstract(new.target,Ai),mr(this,"_isProvider",!0)}getFeeData(){return vi(this,void 0,void 0,(function*(){const{block:t,gasPrice:e}=yield gr({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((t=>null))});let r=null,n=null;return t&&t.baseFeePerGas&&(n=Ht.from("1500000000"),r=t.baseFeePerGas.mul(2).add(n)),{maxFeePerGas:r,maxPriorityFeePerGas:n,gasPrice:e}}))}addListener(t,e){return this.on(t,e)}removeListener(t,e){return this.off(t,e)}static isProvider(t){return!(!t||!t._isProvider)}}var _i=window&&window.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const Ei=new b("abstract-signer/5.6.2"),Mi=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],ki=[b.errors.INSUFFICIENT_FUNDS,b.errors.NONCE_EXPIRED,b.errors.REPLACEMENT_UNDERPRICED];class xi{constructor(){Ei.checkAbstract(new.target,xi),mr(this,"_isSigner",!0)}getBalance(t){return _i(this,void 0,void 0,(function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),t)}))}getTransactionCount(t){return _i(this,void 0,void 0,(function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),t)}))}estimateGas(t){return _i(this,void 0,void 0,(function*(){this._checkProvider("estimateGas");const e=yield gr(this.checkTransaction(t));return yield this.provider.estimateGas(e)}))}call(t,e){return _i(this,void 0,void 0,(function*(){this._checkProvider("call");const r=yield gr(this.checkTransaction(t));return yield this.provider.call(r,e)}))}sendTransaction(t){return _i(this,void 0,void 0,(function*(){this._checkProvider("sendTransaction");const e=yield this.populateTransaction(t),r=yield this.signTransaction(e);return yield this.provider.sendTransaction(r)}))}getChainId(){return _i(this,void 0,void 0,(function*(){this._checkProvider("getChainId");return(yield this.provider.getNetwork()).chainId}))}getGasPrice(){return _i(this,void 0,void 0,(function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()}))}getFeeData(){return _i(this,void 0,void 0,(function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()}))}resolveName(t){return _i(this,void 0,void 0,(function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(t)}))}checkTransaction(t){for(const e in t)-1===Mi.indexOf(e)&&Ei.throwArgumentError("invalid transaction key: "+e,"transaction",t);const e=vr(t);return null==e.from?e.from=this.getAddress():e.from=Promise.all([Promise.resolve(e.from),this.getAddress()]).then((e=>(e[0].toLowerCase()!==e[1].toLowerCase()&&Ei.throwArgumentError("from address mismatch","transaction",t),e[0]))),e}populateTransaction(t){return _i(this,void 0,void 0,(function*(){const e=yield gr(this.checkTransaction(t));null!=e.to&&(e.to=Promise.resolve(e.to).then((t=>_i(this,void 0,void 0,(function*(){if(null==t)return null;const e=yield this.resolveName(t);return null==e&&Ei.throwArgumentError("provided ENS name resolves to null","tx.to",t),e})))),e.to.catch((t=>{})));const r=null!=e.maxFeePerGas||null!=e.maxPriorityFeePerGas;if(null==e.gasPrice||2!==e.type&&!r?0!==e.type&&1!==e.type||!r||Ei.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",t):Ei.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t),2!==e.type&&null!=e.type||null==e.maxFeePerGas||null==e.maxPriorityFeePerGas)if(0===e.type||1===e.type)null==e.gasPrice&&(e.gasPrice=this.getGasPrice());else{const t=yield this.getFeeData();if(null==e.type)if(null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas)if(e.type=2,null!=e.gasPrice){const t=e.gasPrice;delete e.gasPrice,e.maxFeePerGas=t,e.maxPriorityFeePerGas=t}else null==e.maxFeePerGas&&(e.maxFeePerGas=t.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas);else null!=t.gasPrice?(r&&Ei.throwError("network does not support EIP-1559",b.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==e.gasPrice&&(e.gasPrice=t.gasPrice),e.type=0):Ei.throwError("failed to get consistent fee data",b.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===e.type&&(null==e.maxFeePerGas&&(e.maxFeePerGas=t.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas))}else e.type=2;return null==e.nonce&&(e.nonce=this.getTransactionCount("pending")),null==e.gasLimit&&(e.gasLimit=this.estimateGas(e).catch((t=>{if(ki.indexOf(t.code)>=0)throw t;return Ei.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",b.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,tx:e})}))),null==e.chainId?e.chainId=this.getChainId():e.chainId=Promise.all([Promise.resolve(e.chainId),this.getChainId()]).then((e=>(0!==e[1]&&e[0]!==e[1]&&Ei.throwArgumentError("chainId address mismatch","transaction",t),e[0]))),yield gr(e)}))}_checkProvider(t){this.provider||Ei.throwError("missing provider",b.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})}static isSigner(t){return!(!t||!t._isSigner)}}class Ni extends xi{constructor(t,e){super(),mr(this,"address",t),mr(this,"provider",e||null)}getAddress(){return Promise.resolve(this.address)}_fail(t,e){return Promise.resolve().then((()=>{Ei.throwError(t,b.errors.UNSUPPORTED_OPERATION,{operation:e})}))}signMessage(t){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(t){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(t,e,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(t){return new Ni(this.address,t)}}var Si=u((function(t){!function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:jt.Buffer}catch(t){}function s(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t)}function a(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function u(t,e,n,i){for(var o=0,s=0,a=Math.min(t.length,n),u=e;u<a;u++){var h=t.charCodeAt(u)-48;o*=i,s=h>=49?h-49+10:h>=17?h-17+10:h,r(h>=0&&s<i,"Invalid character"),o+=s}return o}function h(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,n):(this._parseBase(t,e,i),"le"===n&&this._initArray(this.toArray(),e,n)))},i.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},i.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=a(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=a(t,e,n)<<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(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,h=0,l=r;l<a;l+=n)h=u(t,l,l+n,e),this.imuln(i),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==s){var c=1;for(h=u(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this._strip()},i.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype._move=function(t){h(t,this)},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)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")]=l}catch(t){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var c=["","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],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,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),n=0!==o||s!==this.length-1?c[6-u.length]+u+n:u+n}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=f[t],l=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(l).toString(t);n=(p=p.idivn(l)).isZero()?m+n:c[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;l+=(s=(i=0|t.words[p])*(o=0|e.words[d])+c)/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r._strip()}i.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var s=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](s,i),s},i.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;t[r++]=255&s,r<t.length&&(t[r++]=s>>8&255),r<t.length&&(t[r++]=s>>16&255),6===o?(r<t.length&&(t[r++]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},i.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;t[r--]=255&s,r>=0&&(t[r--]=s>>8&255),r>=0&&(t[r--]=s>>16&255),6===o?(r>=0&&(t[r--]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).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(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},i.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},i.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},i.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},i.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},i.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)o=(e=(0|r.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)o=(e=(0|r.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,y=0|s[2],g=8191&y,v=y>>>13,w=0|s[3],b=8191&w,A=w>>>13,_=0|s[4],E=8191&_,M=_>>>13,k=0|s[5],x=8191&k,N=k>>>13,S=0|s[6],U=8191&S,P=S>>>13,T=0|s[7],R=8191&T,C=T>>>13,I=0|s[8],$=8191&I,O=I>>>13,F=0|s[9],B=8191&F,j=F>>>13,D=0|a[0],L=8191&D,z=D>>>13,q=0|a[1],V=8191&q,G=q>>>13,H=0|a[2],Q=8191&H,K=H>>>13,Z=0|a[3],W=8191&Z,J=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191<,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var yt=(h+(n=Math.imul(c,L))|0)+((8191&(i=(i=Math.imul(c,z))+Math.imul(f,L)|0))<<13)|0;h=((o=Math.imul(f,z))+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(p,L),i=(i=Math.imul(p,z))+Math.imul(m,L)|0,o=Math.imul(m,z);var gt=(h+(n=n+Math.imul(c,V)|0)|0)+((8191&(i=(i=i+Math.imul(c,G)|0)+Math.imul(f,V)|0))<<13)|0;h=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,L),i=(i=Math.imul(g,z))+Math.imul(v,L)|0,o=Math.imul(v,z),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,G)|0;var vt=(h+(n=n+Math.imul(c,Q)|0)|0)+((8191&(i=(i=i+Math.imul(c,K)|0)+Math.imul(f,Q)|0))<<13)|0;h=((o=o+Math.imul(f,K)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(b,L),i=(i=Math.imul(b,z))+Math.imul(A,L)|0,o=Math.imul(A,z),n=n+Math.imul(g,V)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(v,V)|0,o=o+Math.imul(v,G)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,K)|0;var wt=(h+(n=n+Math.imul(c,W)|0)|0)+((8191&(i=(i=i+Math.imul(c,J)|0)+Math.imul(f,W)|0))<<13)|0;h=((o=o+Math.imul(f,J)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,L),i=(i=Math.imul(E,z))+Math.imul(M,L)|0,o=Math.imul(M,z),n=n+Math.imul(b,V)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,K)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,J)|0;var bt=(h+(n=n+Math.imul(c,X)|0)|0)+((8191&(i=(i=i+Math.imul(c,tt)|0)+Math.imul(f,X)|0))<<13)|0;h=((o=o+Math.imul(f,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,L),i=(i=Math.imul(x,z))+Math.imul(N,L)|0,o=Math.imul(N,z),n=n+Math.imul(E,V)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(g,W)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(v,W)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,tt)|0;var At=(h+(n=n+Math.imul(c,rt)|0)|0)+((8191&(i=(i=i+Math.imul(c,nt)|0)+Math.imul(f,rt)|0))<<13)|0;h=((o=o+Math.imul(f,nt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,L),i=(i=Math.imul(U,z))+Math.imul(P,L)|0,o=Math.imul(P,z),n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(g,X)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,X)|0,o=o+Math.imul(v,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0;var _t=(h+(n=n+Math.imul(c,ot)|0)|0)+((8191&(i=(i=i+Math.imul(c,st)|0)+Math.imul(f,ot)|0))<<13)|0;h=((o=o+Math.imul(f,st)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(R,L),i=(i=Math.imul(R,z))+Math.imul(C,L)|0,o=Math.imul(C,z),n=n+Math.imul(U,V)|0,i=(i=i+Math.imul(U,G)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,G)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(E,W)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(b,X)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(g,rt)|0,i=(i=i+Math.imul(g,nt)|0)+Math.imul(v,rt)|0,o=o+Math.imul(v,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,st)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0;var Et=(h+(n=n+Math.imul(c,ut)|0)|0)+((8191&(i=(i=i+Math.imul(c,ht)|0)+Math.imul(f,ut)|0))<<13)|0;h=((o=o+Math.imul(f,ht)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul($,L),i=(i=Math.imul($,z))+Math.imul(O,L)|0,o=Math.imul(O,z),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(U,Q)|0,i=(i=i+Math.imul(U,K)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(x,W)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,J)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,st)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,st)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0;var Mt=(h+(n=n+Math.imul(c,ct)|0)|0)+((8191&(i=(i=i+Math.imul(c,ft)|0)+Math.imul(f,ct)|0))<<13)|0;h=((o=o+Math.imul(f,ft)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(B,L),i=(i=Math.imul(B,z))+Math.imul(j,L)|0,o=Math.imul(j,z),n=n+Math.imul($,V)|0,i=(i=i+Math.imul($,G)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,G)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(U,W)|0,i=(i=i+Math.imul(U,J)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(E,rt)|0,i=(i=i+Math.imul(E,nt)|0)+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,st)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ht)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ht)|0,n=n+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0;var kt=(h+(n=n+Math.imul(c,pt)|0)|0)+((8191&(i=(i=i+Math.imul(c,mt)|0)+Math.imul(f,pt)|0))<<13)|0;h=((o=o+Math.imul(f,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(B,V),i=(i=Math.imul(B,G))+Math.imul(j,V)|0,o=Math.imul(j,G),n=n+Math.imul($,Q)|0,i=(i=i+Math.imul($,K)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(U,X)|0,i=(i=i+Math.imul(U,tt)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,st)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(g,ct)|0,i=(i=i+Math.imul(g,ft)|0)+Math.imul(v,ct)|0,o=o+Math.imul(v,ft)|0;var xt=(h+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(B,Q),i=(i=Math.imul(B,K))+Math.imul(j,Q)|0,o=Math.imul(j,K),n=n+Math.imul($,W)|0,i=(i=i+Math.imul($,J)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(U,rt)|0,i=(i=i+Math.imul(U,nt)|0)+Math.imul(P,rt)|0,o=o+Math.imul(P,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,st)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,st)|0,n=n+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,ht)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(b,ct)|0,i=(i=i+Math.imul(b,ft)|0)+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0;var Nt=(h+(n=n+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(v,pt)|0))<<13)|0;h=((o=o+Math.imul(v,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,J))+Math.imul(j,W)|0,o=Math.imul(j,J),n=n+Math.imul($,X)|0,i=(i=i+Math.imul($,tt)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(U,ot)|0,i=(i=i+Math.imul(U,st)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,st)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ht)|0,n=n+Math.imul(E,ct)|0,i=(i=i+Math.imul(E,ft)|0)+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0;var St=(h+(n=n+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,mt)|0)+Math.imul(A,pt)|0))<<13)|0;h=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(B,X),i=(i=Math.imul(B,tt))+Math.imul(j,X)|0,o=Math.imul(j,tt),n=n+Math.imul($,rt)|0,i=(i=i+Math.imul($,nt)|0)+Math.imul(O,rt)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,st)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(U,ut)|0,i=(i=i+Math.imul(U,ht)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,ht)|0,n=n+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,ft)|0)+Math.imul(N,ct)|0,o=o+Math.imul(N,ft)|0;var Ut=(h+(n=n+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(M,pt)|0))<<13)|0;h=((o=o+Math.imul(M,mt)|0)+(i>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(B,rt),i=(i=Math.imul(B,nt))+Math.imul(j,rt)|0,o=Math.imul(j,nt),n=n+Math.imul($,ot)|0,i=(i=i+Math.imul($,st)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(U,ct)|0,i=(i=i+Math.imul(U,ft)|0)+Math.imul(P,ct)|0,o=o+Math.imul(P,ft)|0;var Pt=(h+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(N,pt)|0))<<13)|0;h=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(B,ot),i=(i=Math.imul(B,st))+Math.imul(j,ot)|0,o=Math.imul(j,st),n=n+Math.imul($,ut)|0,i=(i=i+Math.imul($,ht)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,ht)|0,n=n+Math.imul(R,ct)|0,i=(i=i+Math.imul(R,ft)|0)+Math.imul(C,ct)|0,o=o+Math.imul(C,ft)|0;var Tt=(h+(n=n+Math.imul(U,pt)|0)|0)+((8191&(i=(i=i+Math.imul(U,mt)|0)+Math.imul(P,pt)|0))<<13)|0;h=((o=o+Math.imul(P,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(B,ut),i=(i=Math.imul(B,ht))+Math.imul(j,ut)|0,o=Math.imul(j,ht),n=n+Math.imul($,ct)|0,i=(i=i+Math.imul($,ft)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,ft)|0;var Rt=(h+(n=n+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(C,pt)|0))<<13)|0;h=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(B,ct),i=(i=Math.imul(B,ft))+Math.imul(j,ct)|0,o=Math.imul(j,ft);var Ct=(h+(n=n+Math.imul($,pt)|0)|0)+((8191&(i=(i=i+Math.imul($,mt)|0)+Math.imul(O,pt)|0))<<13)|0;h=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863;var It=(h+(n=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,mt))+Math.imul(j,pt)|0))<<13)|0;return h=((o=Math.imul(j,mt))+(i>>>13)|0)+(It>>>26)|0,It&=67108863,u[0]=yt,u[1]=gt,u[2]=vt,u[3]=wt,u[4]=bt,u[5]=At,u[6]=_t,u[7]=Et,u[8]=Mt,u[9]=kt,u[10]=xt,u[11]=Nt,u[12]=St,u[13]=Ut,u[14]=Pt,u[15]=Tt,u[16]=Rt,u[17]=Ct,u[18]=It,0!==h&&(u[19]=h,r.length++),r};function y(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=(0|t.words[l])*(0|e.words[h]),f=67108863&c;a=67108863&(f=f+a|0),i+=(s=(s=s+(c/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function g(t,e,r){return y(t,e,r)}Math.imul||(m=p),i.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):r<63?p(this,t,e):r<1024?y(this,t,e):g(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),g(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"==typeof t),r(t<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,s=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=s>>>26,this.words[i]=67108863&s}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new i(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var o=r.sqr();n<e.length;n++,o=o.sqr())0!==e[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<n;this.words[e]=u|s,s=a>>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},i.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=n;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},i.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,e,n){var i,o,s=t.length+n;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+a;var u=(0|t.words[i])*e;a=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)a=(o=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&o;if(0===a)return this._strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),o=t,s=0|o.words[o.length-1];0!==(r=26-this._countBits(s))&&(o=o.ushln(r),n.iushln(r),s=0|o.words[o.length-1]);var a,u=n.length-o.length;if("mod"!==e){(a=new i(null)).length=u+1,a.words=new Array(a.length);for(var h=0;h<a.length;h++)a.words[h]=0}var l=n.clone()._ishlnsubmul(o,1,u);0===l.negative&&(n=l,a&&(a.words[u]=1));for(var c=u-1;c>=0;c--){var f=67108864*(0|n.words[o.length+c])+(0|n.words[o.length+c-1]);for(f=Math.min(f/s|0,67108863),n._ishlnsubmul(o,f,c);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(o,1,c),n.isZero()||(n.negative^=1);a&&(a.words[c]=f)}return a&&a._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},i.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(o=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:o,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(o=a.div.neg()),{div:o,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,s,a},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),s=new i(0),a=new i(0),u=new i(1),h=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++h;for(var l=n.clone(),c=e.clone();!e.isZero();){for(var f=0,d=1;0==(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(e.iushrn(f);f-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(l),s.isub(c)),o.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(a),s.isub(u)):(n.isub(e),a.isub(o),u.isub(s))}return{a:a,b:u,gcd:n.iushln(h)}},i.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,s=new i(1),a=new i(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var h=0,l=1;0==(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(e.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var c=0,f=1;0==(n.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(n.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),s.isub(a)):(n.isub(e),a.isub(s))}return(o=0===e.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,s=n;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},i.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new M(t)},i.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){M.call(this,t),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)}w.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},n(b,w),b.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(A,w),n(_,w),n(E,w),E.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new A;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return v[t]=e,e},M.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(h(t,t.umod(this.m)._forceRed(this)),t)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new i(1)).iushrn(2);return this.pow(t,n)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);r(!o.isZero());var a=new i(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,h).cmp(u);)l.redIAdd(u);for(var c=this.pow(l,o),f=this.pow(t,o.addn(1).iushrn(1)),d=this.pow(t,o),p=s;0!==d.cmp(a);){for(var m=d,y=0;0!==m.cmp(a);y++)m=m.redSqr();r(y<p);var g=this.pow(c,new i(1).iushln(p-y-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=y}return f},M.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},M.prototype.pow=function(t,e){if(e.isZero())return new i(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var o=r[0],s=0,a=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],l=u-1;l>=0;l--){var c=h>>l&1;o!==r[0]&&(o=this.sqr(o)),0!==c||0!==s?(s<<=1,s|=c,(4===++a||0===n&&0===l)&&(o=this.mul(o,r[s]),a=0,s=0)):a=0}u=26}return o},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new k(t)},n(k,M),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,o)})),Ui=Pi;function Pi(t,e){if(!t)throw new Error(e||"Assertion failed")}function Ti(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function Ri(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function Ci(t){return 1===t.length?"0"+t:t}function Ii(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}Pi.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)};var $i={inherits:u((function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}})),toArray:function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(var n=0,i=0;i<t.length;i++){var o=t.charCodeAt(i);o<128?r[n++]=o:o<2048?(r[n++]=o>>6|192,r[n++]=63&o|128):Ti(t,i)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++i)),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=63&o|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=63&o|128)}else for(i=0;i<t.length;i++)r[i]=0|t[i];return r},toHex:function(t){for(var e="",r=0;r<t.length;r++)e+=Ci(t[r].toString(16));return e},htonl:Ri,toHex32:function(t,e){for(var r="",n=0;n<t.length;n++){var i=t[n];"little"===e&&(i=Ri(i)),r+=Ii(i.toString(16))}return r},zero2:Ci,zero8:Ii,join32:function(t,e,r,n){var i=r-e;Ui(i%4==0);for(var o=new Array(i/4),s=0,a=e;s<o.length;s++,a+=4){var u;u="big"===n?t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3]:t[a+3]<<24|t[a+2]<<16|t[a+1]<<8|t[a],o[s]=u>>>0}return o},split32:function(t,e){for(var r=new Array(4*t.length),n=0,i=0;n<t.length;n++,i+=4){var o=t[n];"big"===e?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},rotr32:function(t,e){return t>>>e|t<<32-e},rotl32:function(t,e){return t<<e|t>>>32-e},sum32:function(t,e){return t+e>>>0},sum32_3:function(t,e,r){return t+e+r>>>0},sum32_4:function(t,e,r,n){return t+e+r+n>>>0},sum32_5:function(t,e,r,n,i){return t+e+r+n+i>>>0},sum64:function(t,e,r,n){var i=t[e],o=n+t[e+1]>>>0,s=(o<n?1:0)+r+i;t[e]=s>>>0,t[e+1]=o},sum64_hi:function(t,e,r,n){return(e+n>>>0<e?1:0)+t+r>>>0},sum64_lo:function(t,e,r,n){return e+n>>>0},sum64_4_hi:function(t,e,r,n,i,o,s,a){var u=0,h=e;return u+=(h=h+n>>>0)<e?1:0,u+=(h=h+o>>>0)<o?1:0,t+r+i+s+(u+=(h=h+a>>>0)<a?1:0)>>>0},sum64_4_lo:function(t,e,r,n,i,o,s,a){return e+n+o+a>>>0},sum64_5_hi:function(t,e,r,n,i,o,s,a,u,h){var l=0,c=e;return l+=(c=c+n>>>0)<e?1:0,l+=(c=c+o>>>0)<o?1:0,l+=(c=c+a>>>0)<a?1:0,t+r+i+s+u+(l+=(c=c+h>>>0)<h?1:0)>>>0},sum64_5_lo:function(t,e,r,n,i,o,s,a,u,h){return e+n+o+a+h>>>0},rotr64_hi:function(t,e,r){return(e<<32-r|t>>>r)>>>0},rotr64_lo:function(t,e,r){return(t<<32-r|e>>>r)>>>0},shr64_hi:function(t,e,r){return t>>>r},shr64_lo:function(t,e,r){return(t<<32-r|e>>>r)>>>0}};function Oi(){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}var Fi=Oi;Oi.prototype.update=function(t,e){if(t=$i.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=$i.join32(t,0,t.length-r,this.endian);for(var n=0;n<t.length;n+=this._delta32)this._update(t,n,n+this._delta32)}return this},Oi.prototype.digest=function(t){return this.update(this._pad()),Ui(null===this.pending),this._digest(t)},Oi.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=t>>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n};var Bi={BlockHash:Fi},ji=$i.rotr32;var Di=function(t,e,r,n){return 0===t?Li(e,r,n):1===t||3===t?qi(e,r,n):2===t?zi(e,r,n):void 0};function Li(t,e,r){return t&e^~t&r}function zi(t,e,r){return t&e^t&r^e&r}function qi(t,e,r){return t^e^r}var Vi=function(t){return ji(t,2)^ji(t,13)^ji(t,22)};var Gi=function(t){return ji(t,6)^ji(t,11)^ji(t,25)};var Hi=function(t){return ji(t,7)^ji(t,18)^t>>>3};var Qi=function(t){return ji(t,17)^ji(t,19)^t>>>10},Ki={ft_1:Di,ch32:Li,maj32:zi,p32:qi,s0_256:Vi,s1_256:Gi,g0_256:Hi,g1_256:Qi},Zi=$i.rotl32,Wi=$i.sum32,Ji=$i.sum32_5,Yi=Ki.ft_1,Xi=Bi.BlockHash,to=[1518500249,1859775393,2400959708,3395469782];function eo(){if(!(this instanceof eo))return new eo;Xi.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}$i.inherits(eo,Xi);var ro=eo;eo.blockSize=512,eo.outSize=160,eo.hmacStrength=80,eo.padLength=64,eo.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=Zi(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],s=this.h[2],a=this.h[3],u=this.h[4];for(n=0;n<r.length;n++){var h=~~(n/20),l=Ji(Zi(i,5),Yi(h,o,s,a),u,r[n],to[h]);u=a,a=s,s=Zi(o,30),o=i,i=l}this.h[0]=Wi(this.h[0],i),this.h[1]=Wi(this.h[1],o),this.h[2]=Wi(this.h[2],s),this.h[3]=Wi(this.h[3],a),this.h[4]=Wi(this.h[4],u)},eo.prototype._digest=function(t){return"hex"===t?$i.toHex32(this.h,"big"):$i.split32(this.h,"big")};var no=$i.sum32,io=$i.sum32_4,oo=$i.sum32_5,so=Ki.ch32,ao=Ki.maj32,uo=Ki.s0_256,ho=Ki.s1_256,lo=Ki.g0_256,co=Ki.g1_256,fo=Bi.BlockHash,po=[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 mo(){if(!(this instanceof mo))return new mo;fo.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=po,this.W=new Array(64)}$i.inherits(mo,fo);var yo=mo;function go(){if(!(this instanceof go))return new go;yo.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}mo.blockSize=512,mo.outSize=256,mo.hmacStrength=192,mo.padLength=64,mo.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=io(co(r[n-2]),r[n-7],lo(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],s=this.h[2],a=this.h[3],u=this.h[4],h=this.h[5],l=this.h[6],c=this.h[7];for(Ui(this.k.length===r.length),n=0;n<r.length;n++){var f=oo(c,ho(u),so(u,h,l),this.k[n],r[n]),d=no(uo(i),ao(i,o,s));c=l,l=h,h=u,u=no(a,f),a=s,s=o,o=i,i=no(f,d)}this.h[0]=no(this.h[0],i),this.h[1]=no(this.h[1],o),this.h[2]=no(this.h[2],s),this.h[3]=no(this.h[3],a),this.h[4]=no(this.h[4],u),this.h[5]=no(this.h[5],h),this.h[6]=no(this.h[6],l),this.h[7]=no(this.h[7],c)},mo.prototype._digest=function(t){return"hex"===t?$i.toHex32(this.h,"big"):$i.split32(this.h,"big")},$i.inherits(go,yo);var vo=go;go.blockSize=512,go.outSize=224,go.hmacStrength=192,go.padLength=64,go.prototype._digest=function(t){return"hex"===t?$i.toHex32(this.h.slice(0,7),"big"):$i.split32(this.h.slice(0,7),"big")};var wo=$i.rotr64_hi,bo=$i.rotr64_lo,Ao=$i.shr64_hi,_o=$i.shr64_lo,Eo=$i.sum64,Mo=$i.sum64_hi,ko=$i.sum64_lo,xo=$i.sum64_4_hi,No=$i.sum64_4_lo,So=$i.sum64_5_hi,Uo=$i.sum64_5_lo,Po=Bi.BlockHash,To=[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,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Ro(){if(!(this instanceof Ro))return new Ro;Po.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=To,this.W=new Array(160)}$i.inherits(Ro,Po);var Co=Ro;function Io(t,e,r,n,i){var o=t&r^~t&i;return o<0&&(o+=4294967296),o}function $o(t,e,r,n,i,o){var s=e&n^~e&o;return s<0&&(s+=4294967296),s}function Oo(t,e,r,n,i){var o=t&r^t&i^r&i;return o<0&&(o+=4294967296),o}function Fo(t,e,r,n,i,o){var s=e&n^e&o^n&o;return s<0&&(s+=4294967296),s}function Bo(t,e){var r=wo(t,e,28)^wo(e,t,2)^wo(e,t,7);return r<0&&(r+=4294967296),r}function jo(t,e){var r=bo(t,e,28)^bo(e,t,2)^bo(e,t,7);return r<0&&(r+=4294967296),r}function Do(t,e){var r=wo(t,e,14)^wo(t,e,18)^wo(e,t,9);return r<0&&(r+=4294967296),r}function Lo(t,e){var r=bo(t,e,14)^bo(t,e,18)^bo(e,t,9);return r<0&&(r+=4294967296),r}function zo(t,e){var r=wo(t,e,1)^wo(t,e,8)^Ao(t,e,7);return r<0&&(r+=4294967296),r}function qo(t,e){var r=bo(t,e,1)^bo(t,e,8)^_o(t,e,7);return r<0&&(r+=4294967296),r}function Vo(t,e){var r=wo(t,e,19)^wo(e,t,29)^Ao(t,e,6);return r<0&&(r+=4294967296),r}function Go(t,e){var r=bo(t,e,19)^bo(e,t,29)^_o(t,e,6);return r<0&&(r+=4294967296),r}function Ho(){if(!(this instanceof Ho))return new Ho;Co.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Ro.blockSize=1024,Ro.outSize=512,Ro.hmacStrength=192,Ro.padLength=128,Ro.prototype._prepareBlock=function(t,e){for(var r=this.W,n=0;n<32;n++)r[n]=t[e+n];for(;n<r.length;n+=2){var i=Vo(r[n-4],r[n-3]),o=Go(r[n-4],r[n-3]),s=r[n-14],a=r[n-13],u=zo(r[n-30],r[n-29]),h=qo(r[n-30],r[n-29]),l=r[n-32],c=r[n-31];r[n]=xo(i,o,s,a,u,h,l,c),r[n+1]=No(i,o,s,a,u,h,l,c)}},Ro.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,n=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],a=this.h[4],u=this.h[5],h=this.h[6],l=this.h[7],c=this.h[8],f=this.h[9],d=this.h[10],p=this.h[11],m=this.h[12],y=this.h[13],g=this.h[14],v=this.h[15];Ui(this.k.length===r.length);for(var w=0;w<r.length;w+=2){var b=g,A=v,_=Do(c,f),E=Lo(c,f),M=Io(c,f,d,p,m),k=$o(c,f,d,p,m,y),x=this.k[w],N=this.k[w+1],S=r[w],U=r[w+1],P=So(b,A,_,E,M,k,x,N,S,U),T=Uo(b,A,_,E,M,k,x,N,S,U);b=Bo(n,i),A=jo(n,i),_=Oo(n,i,o,s,a),E=Fo(n,i,o,s,a,u);var R=Mo(b,A,_,E),C=ko(b,A,_,E);g=m,v=y,m=d,y=p,d=c,p=f,c=Mo(h,l,P,T),f=ko(l,l,P,T),h=a,l=u,a=o,u=s,o=n,s=i,n=Mo(P,T,R,C),i=ko(P,T,R,C)}Eo(this.h,0,n,i),Eo(this.h,2,o,s),Eo(this.h,4,a,u),Eo(this.h,6,h,l),Eo(this.h,8,c,f),Eo(this.h,10,d,p),Eo(this.h,12,m,y),Eo(this.h,14,g,v)},Ro.prototype._digest=function(t){return"hex"===t?$i.toHex32(this.h,"big"):$i.split32(this.h,"big")},$i.inherits(Ho,Co);var Qo=Ho;Ho.blockSize=1024,Ho.outSize=384,Ho.hmacStrength=192,Ho.padLength=128,Ho.prototype._digest=function(t){return"hex"===t?$i.toHex32(this.h.slice(0,12),"big"):$i.split32(this.h.slice(0,12),"big")};var Ko={sha1:ro,sha224:vo,sha256:yo,sha384:Qo,sha512:Co},Zo=$i.rotl32,Wo=$i.sum32,Jo=$i.sum32_3,Yo=$i.sum32_4,Xo=Bi.BlockHash;function ts(){if(!(this instanceof ts))return new ts;Xo.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}$i.inherits(ts,Xo);var es=ts;function rs(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function ns(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function is(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}ts.blockSize=512,ts.outSize=160,ts.hmacStrength=192,ts.padLength=64,ts.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],i=this.h[2],o=this.h[3],s=this.h[4],a=r,u=n,h=i,l=o,c=s,f=0;f<80;f++){var d=Wo(Zo(Yo(r,rs(f,n,i,o),t[os[f]+e],ns(f)),as[f]),s);r=s,s=o,o=Zo(i,10),i=n,n=d,d=Wo(Zo(Yo(a,rs(79-f,u,h,l),t[ss[f]+e],is(f)),us[f]),c),a=c,c=l,l=Zo(h,10),h=u,u=d}d=Jo(this.h[1],i,l),this.h[1]=Jo(this.h[2],o,c),this.h[2]=Jo(this.h[3],s,a),this.h[3]=Jo(this.h[4],r,u),this.h[4]=Jo(this.h[0],n,h),this.h[0]=d},ts.prototype._digest=function(t){return"hex"===t?$i.toHex32(this.h,"little"):$i.split32(this.h,"little")};var os=[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],ss=[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],as=[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],us=[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],hs={ripemd160:es};function ls(t,e,r){if(!(this instanceof ls))return new ls(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init($i.toArray(e,r))}var cs=ls;ls.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),Ui(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},ls.prototype.update=function(t,e){return this.inner.update(t,e),this},ls.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)};var fs=u((function(t,e){var r=e;r.utils=$i,r.common=Bi,r.sha=Ko,r.ripemd=hs,r.hmac=cs,r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160}));function ds(t,e,r){return r={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&r.path)}},t(r,r.exports),r.exports}var ps=ms;function ms(t,e){if(!t)throw new Error(e||"Assertion failed")}ms.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)};var ys=ds((function(t,e){var r=e;function n(t){return 1===t.length?"0"+t:t}function i(t){for(var e="",r=0;r<t.length;r++)e+=n(t[r].toString(16));return e}r.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!=typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e){(t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t);for(n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(n=0;n<t.length;n++){var i=t.charCodeAt(n),o=i>>8,s=255&i;o?r.push(o,s):r.push(s)}return r},r.zero2=n,r.toHex=i,r.encode=function(t,e){return"hex"===e?i(t):t}})),gs=ds((function(t,e){var r=e;r.assert=ps,r.toArray=ys.toArray,r.zero2=ys.zero2,r.toHex=ys.toHex,r.encode=ys.encode,r.getNAF=function(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<<e+1,o=t.clone(),s=0;s<n.length;s++){var a,u=o.andln(i-1);o.isOdd()?(a=u>(i>>1)-1?(i>>1)-u:u,o.isubn(a)):a=0,n[s]=a,o.iushrn(1)}return n},r.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n,i=0,o=0;t.cmpn(-i)>0||e.cmpn(-o)>0;){var s,a,u=t.andln(3)+i&3,h=e.andln(3)+o&3;3===u&&(u=-1),3===h&&(h=-1),s=0==(1&u)?0:3!==(n=t.andln(7)+i&7)&&5!==n||2!==h?u:-u,r[0].push(s),a=0==(1&h)?0:3!==(n=e.andln(7)+o&7)&&5!==n||2!==u?h:-h,r[1].push(a),2*i===s+1&&(i=1-i),2*o===a+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return r},r.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(t){return"string"==typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new Si(t,"hex","le")}})),vs=gs.getNAF,ws=gs.getJSF,bs=gs.assert;function As(t,e){this.type=t,this.p=new Si(e.p,16),this.red=e.prime?Si.red(e.prime):Si.mont(this.p),this.zero=new Si(0).toRed(this.red),this.one=new Si(1).toRed(this.red),this.two=new Si(2).toRed(this.red),this.n=e.n&&new Si(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var _s=As;function Es(t,e){this.curve=t,this.type=e,this.precomputed=null}As.prototype.point=function(){throw new Error("Not implemented")},As.prototype.validate=function(){throw new Error("Not implemented")},As.prototype._fixedNafMul=function(t,e){bs(t.precomputed);var r=t._getDoubles(),n=vs(e,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;var o,s,a=[];for(o=0;o<n.length;o+=r.step){s=0;for(var u=o+r.step-1;u>=o;u--)s=(s<<1)+n[u];a.push(s)}for(var h=this.jpoint(null,null,null),l=this.jpoint(null,null,null),c=i;c>0;c--){for(o=0;o<a.length;o++)(s=a[o])===c?l=l.mixedAdd(r.points[o]):s===-c&&(l=l.mixedAdd(r.points[o].neg()));h=h.add(l)}return h.toP()},As.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=vs(e,r,this._bitLength),s=this.jpoint(null,null,null),a=o.length-1;a>=0;a--){for(var u=0;a>=0&&0===o[a];a--)u++;if(a>=0&&u++,s=s.dblp(u),a<0)break;var h=o[a];bs(0!==h),s="affine"===t.type?h>0?s.mixedAdd(i[h-1>>1]):s.mixedAdd(i[-h-1>>1].neg()):h>0?s.add(i[h-1>>1]):s.add(i[-h-1>>1].neg())}return"affine"===t.type?s.toP():s},As.prototype._wnafMulAdd=function(t,e,r,n,i){var o,s,a,u=this._wnafT1,h=this._wnafT2,l=this._wnafT3,c=0;for(o=0;o<n;o++){var f=(a=e[o])._getNAFPoints(t);u[o]=f.wnd,h[o]=f.points}for(o=n-1;o>=1;o-=2){var d=o-1,p=o;if(1===u[d]&&1===u[p]){var m=[e[d],null,null,e[p]];0===e[d].y.cmp(e[p].y)?(m[1]=e[d].add(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg())):0===e[d].y.cmp(e[p].y.redNeg())?(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].add(e[p].neg())):(m[1]=e[d].toJ().mixedAdd(e[p]),m[2]=e[d].toJ().mixedAdd(e[p].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],g=ws(r[d],r[p]);for(c=Math.max(g[0].length,c),l[d]=new Array(c),l[p]=new Array(c),s=0;s<c;s++){var v=0|g[0][s],w=0|g[1][s];l[d][s]=y[3*(v+1)+(w+1)],l[p][s]=0,h[d]=m}}else l[d]=vs(r[d],u[d],this._bitLength),l[p]=vs(r[p],u[p],this._bitLength),c=Math.max(l[d].length,c),c=Math.max(l[p].length,c)}var b=this.jpoint(null,null,null),A=this._wnafT4;for(o=c;o>=0;o--){for(var _=0;o>=0;){var E=!0;for(s=0;s<n;s++)A[s]=0|l[s][o],0!==A[s]&&(E=!1);if(!E)break;_++,o--}if(o>=0&&_++,b=b.dblp(_),o<0)break;for(s=0;s<n;s++){var M=A[s];0!==M&&(M>0?a=h[s][M-1>>1]:M<0&&(a=h[s][-M-1>>1].neg()),b="affine"===a.type?b.mixedAdd(a):b.add(a))}}for(o=0;o<n;o++)h[o]=null;return i?b:b.toP()},As.BasePoint=Es,Es.prototype.eq=function(){throw new Error("Not implemented")},Es.prototype.validate=function(){return this.curve.validate(this)},As.prototype.decodePoint=function(t,e){t=gs.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?bs(t[t.length-1]%2==0):7===t[0]&&bs(t[t.length-1]%2==1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw new Error("Unknown point format")},Es.prototype.encodeCompressed=function(t){return this.encode(t,!0)},Es.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},Es.prototype.encode=function(t,e){return gs.encode(this._encode(e),t)},Es.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},Es.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},Es.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)n=n.dbl();r.push(n)}return{step:t,points:r}},Es.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},Es.prototype._getBeta=function(){return null},Es.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e};var Ms=ds((function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}})),ks=gs.assert;function xs(t){_s.call(this,"short",t),this.a=new Si(t.a,16).toRed(this.red),this.b=new Si(t.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(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Ms(xs,_s);var Ns=xs;function Ss(t,e,r,n){_s.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new Si(e,16),this.y=new Si(r,16),n&&(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 Us(t,e,r,n){_s.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Si(0)):(this.x=new Si(e,16),this.y=new Si(r,16),this.z=new Si(n,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}xs.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new Si(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=(e=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(t.lambda)r=new Si(t.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(e))?r=i[0]:(r=i[1],ks(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:r,basis:t.basis?t.basis.map((function(t){return{a:new Si(t.a,16),b:new Si(t.b,16)}})):this._getEndoBasis(r)}}},xs.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:Si.mont(t),r=new Si(2).toRed(e).redInvm(),n=r.redNeg(),i=new Si(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},xs.prototype._getEndoBasis=function(t){for(var e,r,n,i,o,s,a,u,h,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),c=t,f=this.n.clone(),d=new Si(1),p=new Si(0),m=new Si(0),y=new Si(1),g=0;0!==c.cmpn(0);){var v=f.div(c);u=f.sub(v.mul(c)),h=m.sub(v.mul(d));var w=y.sub(v.mul(p));if(!n&&u.cmp(l)<0)e=a.neg(),r=d,n=u.neg(),i=h;else if(n&&2==++g)break;a=u,f=c,c=u,m=d,d=h,y=p,p=w}o=u.neg(),s=h;var b=n.sqr().add(i.sqr());return o.sqr().add(s.sqr()).cmp(b)>=0&&(o=e,s=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:n,b:i},{a:o,b:s}]},xs.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),s=i.mul(r.a),a=o.mul(n.a),u=i.mul(r.b),h=o.mul(n.b);return{k1:t.sub(s).sub(a),k2:u.add(h).neg()}},xs.prototype.pointFromX=function(t,e){(t=new Si(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},xs.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},xs.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var s=this._endoSplit(e[o]),a=t[o],u=a._getBeta();s.k1.negative&&(s.k1.ineg(),a=a.neg(!0)),s.k2.negative&&(s.k2.ineg(),u=u.neg(!0)),n[2*o]=a,n[2*o+1]=u,i[2*o]=s.k1,i[2*o+1]=s.k2}for(var h=this._wnafMulAdd(1,n,i,2*o,r),l=0;l<2*o;l++)n[l]=null,i[l]=null;return h},Ms(Ss,_s.BasePoint),xs.prototype.point=function(t,e,r){return new Ss(this,t,e,r)},xs.prototype.pointFromJSON=function(t,e){return Ss.fromJSON(this,t,e)},Ss.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},Ss.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]},Ss.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var o=e[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},Ss.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)+">"},Ss.prototype.isInfinity=function(){return this.inf},Ss.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},Ss.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},Ss.prototype.getX=function(){return this.x.fromRed()},Ss.prototype.getY=function(){return this.y.fromRed()},Ss.prototype.mul=function(t){return t=new Si(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},Ss.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},Ss.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},Ss.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},Ss.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},Ss.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},Ms(Us,_s.BasePoint),xs.prototype.jpoint=function(t,e,r){return new Us(this,t,e,r)},Us.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},Us.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Us.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(r.redMul(this.z)),a=n.redSub(i),u=o.redSub(s);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h=a.redSqr(),l=h.redMul(a),c=n.redMul(h),f=u.redSqr().redIAdd(l).redISub(c).redISub(c),d=u.redMul(c.redISub(f)).redISub(o.redMul(l)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(f,d,p)},Us.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),s=r.redSub(n),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),h=u.redMul(s),l=r.redMul(u),c=a.redSqr().redIAdd(h).redISub(l).redISub(l),f=a.redMul(l.redISub(c)).redISub(i.redMul(h)),d=this.z.redMul(s);return this.curve.jpoint(c,f,d)},Us.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e<t;e++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,s=this.y,a=this.z,u=a.redSqr().redSqr(),h=s.redAdd(s);for(e=0;e<t;e++){var l=o.redSqr(),c=h.redSqr(),f=c.redSqr(),d=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(u)),p=o.redMul(c),m=d.redSqr().redISub(p.redAdd(p)),y=p.redISub(m),g=d.redMul(y);g=g.redIAdd(g).redISub(f);var v=h.redMul(a);e+1<t&&(u=u.redMul(f)),o=m,a=v,h=g}return this.curve.jpoint(o,h.redMul(i),a)},Us.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},Us.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n),u=a.redSqr().redISub(s).redISub(s),h=o.redIAdd(o);h=(h=h.redIAdd(h)).redIAdd(h),t=u,e=a.redMul(s.redISub(u)).redISub(h),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),c=this.y.redSqr(),f=c.redSqr(),d=this.x.redAdd(c).redSqr().redISub(l).redISub(f);d=d.redIAdd(d);var p=l.redAdd(l).redIAdd(l),m=p.redSqr(),y=f.redIAdd(f);y=(y=y.redIAdd(y)).redIAdd(y),t=m.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(y),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},Us.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=a.redSqr().redISub(s).redISub(s);t=u;var h=o.redIAdd(o);h=(h=h.redIAdd(h)).redIAdd(h),e=a.redMul(s.redISub(u)).redISub(h),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),c=this.y.redSqr(),f=this.x.redMul(c),d=this.x.redSub(l).redMul(this.x.redAdd(l));d=d.redAdd(d).redIAdd(d);var p=f.redIAdd(f),m=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(c).redISub(l);var y=c.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y),e=d.redMul(p.redISub(t)).redISub(y)}return this.curve.jpoint(t,e,r)},Us.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=e.redSqr(),s=r.redSqr(),a=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),u=e.redAdd(e),h=(u=u.redIAdd(u)).redMul(s),l=a.redSqr().redISub(h.redAdd(h)),c=h.redISub(l),f=s.redSqr();f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var d=a.redMul(c).redISub(f),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,d,p)},Us.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),s=this.x.redAdd(e).redSqr().redISub(t).redISub(n),a=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var h=i.redIAdd(s).redSqr().redISub(o).redISub(a).redISub(u),l=e.redMul(h);l=(l=l.redIAdd(l)).redIAdd(l);var c=this.x.redMul(a).redISub(l);c=(c=c.redIAdd(c)).redIAdd(c);var f=this.y.redMul(h.redMul(u.redISub(h)).redISub(s.redMul(a)));f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var d=this.z.redAdd(s).redSqr().redISub(r).redISub(a);return this.curve.jpoint(c,f,d)},Us.prototype.mul=function(t,e){return t=new Si(t,e),this.curve._wnafMul(this,t)},Us.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},Us.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},Us.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)+">"},Us.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var Ps=ds((function(t,e){var r=e;r.base=_s,r.short=Ns,r.mont=null,r.edwards=null})),Ts=ds((function(t,e){var r,n=e,i=gs.assert;function o(t){"short"===t.type?this.curve=new Ps.short(t):"edwards"===t.type?this.curve=new Ps.edwards(t):this.curve=new Ps.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(t,e){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var r=new o(e);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=o,s("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:fs.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("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:fs.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("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:fs.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("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:fs.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"]}),s("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:fs.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"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:fs.sha256,gRed:!1,g:["9"]}),s("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:fs.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(t){r=void 0}s("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:fs.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function Rs(t){if(!(this instanceof Rs))return new Rs(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=ys.toArray(t.entropy,t.entropyEnc||"hex"),r=ys.toArray(t.nonce,t.nonceEnc||"hex"),n=ys.toArray(t.pers,t.persEnc||"hex");ps(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var Cs=Rs;Rs.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},Rs.prototype._hmac=function(){return new fs.hmac(this.hash,this.K)},Rs.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},Rs.prototype.reseed=function(t,e,r,n){"string"!=typeof e&&(n=r,r=e,e=null),t=ys.toArray(t,e),r=ys.toArray(r,n),ps(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},Rs.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=ys.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<t;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,t);return this._update(r),this._reseed++,ys.encode(o,e)};var Is=gs.assert;function $s(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var Os=$s;$s.fromPublic=function(t,e,r){return e instanceof $s?e:new $s(t,{pub:e,pubEnc:r})},$s.fromPrivate=function(t,e,r){return e instanceof $s?e:new $s(t,{priv:e,privEnc:r})},$s.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.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"}},$s.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},$s.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},$s.prototype._importPrivate=function(t,e){this.priv=new Si(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},$s.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?Is(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||Is(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},$s.prototype.derive=function(t){return t.validate()||Is(t.validate(),"public point not validated"),t.mul(this.priv).getX()},$s.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},$s.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},$s.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var Fs=gs.assert;function Bs(t,e){if(t instanceof Bs)return t;this._importDER(t,e)||(Fs(t.r&&t.s,"Signature without r or s"),this.r=new Si(t.r,16),this.s=new Si(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var js=Bs;function Ds(){this.place=0}function Ls(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,s=e.place;o<n;o++,s++)i<<=8,i|=t[s],i>>>=0;return!(i<=127)&&(e.place=s,i)}function zs(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function qs(t,e){if(e<128)t.push(e);else{var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}Bs.prototype._importDER=function(t,e){t=gs.toArray(t,e);var r=new Ds;if(48!==t[r.place++])return!1;var n=Ls(t,r);if(!1===n)return!1;if(n+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var i=Ls(t,r);if(!1===i)return!1;var o=t.slice(r.place,i+r.place);if(r.place+=i,2!==t[r.place++])return!1;var s=Ls(t,r);if(!1===s)return!1;if(t.length!==s+r.place)return!1;var a=t.slice(r.place,s+r.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new Si(o),this.s=new Si(a),this.recoveryParam=null,!0},Bs.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=zs(e),r=zs(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];qs(n,e.length),(n=n.concat(e)).push(2),qs(n,r.length);var i=n.concat(r),o=[48];return qs(o,i.length),o=o.concat(i),gs.encode(o,t)};var Vs=function(){throw new Error("unsupported")},Gs=gs.assert;function Hs(t){if(!(this instanceof Hs))return new Hs(t);"string"==typeof t&&(Gs(Object.prototype.hasOwnProperty.call(Ts,t),"Unknown curve "+t),t=Ts[t]),t instanceof Ts.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var Qs=Hs;Hs.prototype.keyPair=function(t){return new Os(this,t)},Hs.prototype.keyFromPrivate=function(t,e){return Os.fromPrivate(this,t,e)},Hs.prototype.keyFromPublic=function(t,e){return Os.fromPublic(this,t,e)},Hs.prototype.genKeyPair=function(t){t||(t={});for(var e=new Cs({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||Vs(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new Si(2));;){var i=new Si(e.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},Hs.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},Hs.prototype.sign=function(t,e,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new Si(t,16));for(var i=this.n.byteLength(),o=e.getPrivate().toArray("be",i),s=t.toArray("be",i),a=new Cs({hash:this.hash,entropy:o,nonce:s,pers:n.pers,persEnc:n.persEnc||"utf8"}),u=this.n.sub(new Si(1)),h=0;;h++){var l=n.k?n.k(h):new Si(a.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(u)>=0)){var c=this.g.mul(l);if(!c.isInfinity()){var f=c.getX(),d=f.umod(this.n);if(0!==d.cmpn(0)){var p=l.invm(this.n).mul(d.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(c.getY().isOdd()?1:0)|(0!==f.cmp(d)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new js({r:d,s:p,recoveryParam:m})}}}}}},Hs.prototype.verify=function(t,e,r,n){t=this._truncateToN(new Si(t,16)),r=this.keyFromPublic(r,n);var i=(e=new js(e,"hex")).r,o=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,a=o.invm(this.n),u=a.mul(t).umod(this.n),h=a.mul(i).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,r.getPublic(),h)).isInfinity()&&s.eqXToP(i):!(s=this.g.mulAdd(u,r.getPublic(),h)).isInfinity()&&0===s.getX().umod(this.n).cmp(i)},Hs.prototype.recoverPubKey=function(t,e,r,n){Gs((3&r)===r,"The recovery param is more than two bits"),e=new js(e,n);var i=this.n,o=new Si(t),s=e.r,a=e.s,u=1&r,h=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");s=h?this.curve.pointFromX(s.add(this.curve.n),u):this.curve.pointFromX(s,u);var l=e.r.invm(i),c=i.sub(o).mul(l).umod(i),f=a.mul(l).umod(i);return this.g.mulAdd(c,s,f)},Hs.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new js(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var Ks=ds((function(t,e){var r=e;r.version="6.5.4",r.utils=gs,r.rand=function(){throw new Error("unsupported")},r.curve=Ps,r.curves=Ts,r.ec=Qs,r.eddsa=null})).ec;const Zs=new b("signing-key/5.6.2");let Ws=null;function Js(){return Ws||(Ws=new Ks("secp256k1")),Ws}class Ys{constructor(t){mr(this,"curve","secp256k1"),mr(this,"privateKey",R(t)),32!==C(this.privateKey)&&Zs.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const e=Js().keyFromPrivate(N(this.privateKey));mr(this,"publicKey","0x"+e.getPublic(!1,"hex")),mr(this,"compressedPublicKey","0x"+e.getPublic(!0,"hex")),mr(this,"_isSigningKey",!0)}_addPoint(t){const e=Js().keyFromPublic(N(this.publicKey)),r=Js().keyFromPublic(N(t));return"0x"+e.pub.add(r.pub).encodeCompressed("hex")}signDigest(t){const e=Js().keyFromPrivate(N(this.privateKey)),r=N(t);32!==r.length&&Zs.throwArgumentError("bad digest length","digest",t);const n=e.sign(r,{canonical:!0});return B({recoveryParam:n.recoveryParam,r:F("0x"+n.r.toString(16),32),s:F("0x"+n.s.toString(16),32)})}computeSharedSecret(t){const e=Js().keyFromPrivate(N(this.privateKey)),r=Js().keyFromPublic(N(Xs(t)));return F("0x"+e.derive(r.getPublic()).toString(16),32)}static isSigningKey(t){return!(!t||!t._isSigningKey)}}function Xs(t,e){const r=N(t);if(32===r.length){const t=new Ys(r);return e?"0x"+Js().keyFromPrivate(r).getPublic(!0,"hex"):t.publicKey}return 33===r.length?e?R(r):"0x"+Js().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?e?"0x"+Js().keyFromPublic(r).getPublic(!0,"hex"):R(r):Zs.throwArgumentError("invalid public or private key","key","[REDACTED]")}const ta=new b("transactions/5.6.2");var ea;function ra(t){return"0x"===t?null:$e(t)}function na(t){return"0x"===t?cn:Ht.from(t)}function ia(t,e){return function(t){return $e(I(_e(I(Xs(t),1)),12))}(function(t,e){const r=B(e),n={r:N(r.r),s:N(r.s)};return"0x"+Js().recoverPubKey(N(t),n,r.recoveryParam).encode("hex",!1)}(N(t),e))}function oa(t,e){const r=U(Ht.from(t).toHexString());return r.length>32&&ta.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function sa(t,e){return{address:$e(t),storageKeys:(e||[]).map(((e,r)=>(32!==C(e)&&ta.throwArgumentError("invalid access list storageKey",`accessList[${t}:${r}]`,e),e.toLowerCase())))}}function aa(t){if(Array.isArray(t))return t.map(((t,e)=>Array.isArray(t)?(t.length>2&&ta.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${e}]`,t),sa(t[0],t[1])):sa(t.address,t.storageKeys)));const e=Object.keys(t).map((e=>{const r=t[e].reduce(((t,e)=>(t[e]=!0,t)),{});return sa(e,Object.keys(r).sort())}));return e.sort(((t,e)=>t.address.localeCompare(e.address))),e}function ua(t){return aa(t).map((t=>[t.address,t.storageKeys]))}function ha(t,e){if(null!=t.gasPrice){const e=Ht.from(t.gasPrice),r=Ht.from(t.maxFeePerGas||0);e.eq(r)||ta.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:e,maxFeePerGas:r})}const r=[oa(t.chainId||0,"chainId"),oa(t.nonce||0,"nonce"),oa(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),oa(t.maxFeePerGas||0,"maxFeePerGas"),oa(t.gasLimit||0,"gasLimit"),null!=t.to?$e(t.to):"0x",oa(t.value||0,"value"),t.data||"0x",ua(t.accessList||[])];if(e){const t=B(e);r.push(oa(t.recoveryParam,"recoveryParam")),r.push(U(t.r)),r.push(U(t.s))}return $(["0x02",Ne(r)])}function la(t,e){const r=[oa(t.chainId||0,"chainId"),oa(t.nonce||0,"nonce"),oa(t.gasPrice||0,"gasPrice"),oa(t.gasLimit||0,"gasLimit"),null!=t.to?$e(t.to):"0x",oa(t.value||0,"value"),t.data||"0x",ua(t.accessList||[])];if(e){const t=B(e);r.push(oa(t.recoveryParam,"recoveryParam")),r.push(U(t.r)),r.push(U(t.s))}return $(["0x01",Ne(r)])}function ca(t,e,r){try{const r=na(e[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");t.v=r}catch(t){ta.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=F(e[1],32),t.s=F(e[2],32);try{const e=_e(r(t));t.from=ia(e,{r:t.r,s:t.s,recoveryParam:t.v})}catch(t){}}function fa(t){const e=N(t);if(e[0]>127)return function(t){const e=Pe(t);9!==e.length&&6!==e.length&&ta.throwArgumentError("invalid raw transaction","rawTransaction",t);const r={nonce:na(e[0]).toNumber(),gasPrice:na(e[1]),gasLimit:na(e[2]),to:ra(e[3]),value:na(e[4]),data:e[5],chainId:0};if(6===e.length)return r;try{r.v=Ht.from(e[6]).toNumber()}catch(t){return r}if(r.r=F(e[7],32),r.s=F(e[8],32),Ht.from(r.r).isZero()&&Ht.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27;const i=e.slice(0,6);0!==r.chainId&&(i.push(R(r.chainId)),i.push("0x"),i.push("0x"),n-=2*r.chainId+8);const o=_e(Ne(i));try{r.from=ia(o,{r:R(r.r),s:R(r.s),recoveryParam:n})}catch(t){}r.hash=_e(t)}return r.type=null,r}(e);switch(e[0]){case 1:return function(t){const e=Pe(t.slice(1));8!==e.length&&11!==e.length&&ta.throwArgumentError("invalid component count for transaction type: 1","payload",R(t));const r={type:1,chainId:na(e[0]).toNumber(),nonce:na(e[1]).toNumber(),gasPrice:na(e[2]),gasLimit:na(e[3]),to:ra(e[4]),value:na(e[5]),data:e[6],accessList:aa(e[7])};return 8===e.length||(r.hash=_e(t),ca(r,e.slice(8),la)),r}(e);case 2:return function(t){const e=Pe(t.slice(1));9!==e.length&&12!==e.length&&ta.throwArgumentError("invalid component count for transaction type: 2","payload",R(t));const r=na(e[2]),n=na(e[3]),i={type:2,chainId:na(e[0]).toNumber(),nonce:na(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:na(e[4]),to:ra(e[5]),value:na(e[6]),data:e[7],accessList:aa(e[8])};return 9===e.length||(i.hash=_e(t),ca(i,e.slice(9),ha)),i}(e)}return ta.throwError(`unsupported transaction type: ${e[0]}`,b.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}!function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"}(ea||(ea={}));var da=window&&window.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const pa=new b("contracts/5.6.2");function ma(t,e){return da(this,void 0,void 0,(function*(){const r=yield e;"string"!=typeof r&&pa.throwArgumentError("invalid address or ENS name","name",r);try{return $e(r)}catch(t){}t||pa.throwError("a provider or signer is needed to resolve ENS names",b.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield t.resolveName(r);return null==n&&pa.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n}))}function ya(t,e,r){return da(this,void 0,void 0,(function*(){return Array.isArray(r)?yield Promise.all(r.map(((r,n)=>ya(t,Array.isArray(e)?e[n]:e[r.name],r)))):"address"===r.type?yield ma(t,e):"tuple"===r.type?yield ya(t,e,r.components):"array"===r.baseType?Array.isArray(e)?yield Promise.all(e.map((e=>ya(t,e,r.arrayChildren)))):Promise.reject(pa.makeError("invalid value for array",b.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e}))}function ga(t,e,r){return da(this,void 0,void 0,(function*(){let n={};r.length===e.inputs.length+1&&"object"==typeof r[r.length-1]&&(n=vr(r.pop())),pa.checkArgumentCount(r.length,e.inputs.length,"passed to contract"),t.signer?n.from?n.from=gr({override:ma(t.signer,n.from),signer:t.signer.getAddress()}).then((t=>da(this,void 0,void 0,(function*(){return $e(t.signer)!==t.override&&pa.throwError("Contract with a Signer cannot override from",b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),t.override})))):n.from=t.signer.getAddress():n.from&&(n.from=ma(t.provider,n.from));const i=yield gr({args:ya(t.signer||t.provider,r,e.inputs),address:t.resolvedAddress,overrides:gr(n)||{}}),o=t.interface.encodeFunctionData(e,i.args),s={data:o,to:i.address},a=i.overrides;if(null!=a.nonce&&(s.nonce=Ht.from(a.nonce).toNumber()),null!=a.gasLimit&&(s.gasLimit=Ht.from(a.gasLimit)),null!=a.gasPrice&&(s.gasPrice=Ht.from(a.gasPrice)),null!=a.maxFeePerGas&&(s.maxFeePerGas=Ht.from(a.maxFeePerGas)),null!=a.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=Ht.from(a.maxPriorityFeePerGas)),null!=a.from&&(s.from=a.from),null!=a.type&&(s.type=a.type),null!=a.accessList&&(s.accessList=aa(a.accessList)),null==s.gasLimit&&null!=e.gas){let t=21e3;const r=N(o);for(let e=0;e<r.length;e++)t+=4,r[e]&&(t+=64);s.gasLimit=Ht.from(e.gas).add(t)}if(a.value){const t=Ht.from(a.value);t.isZero()||e.payable||pa.throwError("non-payable method cannot override value",b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:n.value}),s.value=t}a.customData&&(s.customData=vr(a.customData)),a.ccipReadEnabled&&(s.ccipReadEnabled=!!a.ccipReadEnabled),delete n.nonce,delete n.gasLimit,delete n.gasPrice,delete n.from,delete n.value,delete n.type,delete n.accessList,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.customData,delete n.ccipReadEnabled;const u=Object.keys(n).filter((t=>null!=n[t]));return u.length&&pa.throwError(`cannot override ${u.map((t=>JSON.stringify(t))).join(",")}`,b.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:u}),s}))}function va(t,e,r){const n=t.signer||t.provider;return function(...i){return da(this,void 0,void 0,(function*(){let o;if(i.length===e.inputs.length+1&&"object"==typeof i[i.length-1]){const t=vr(i.pop());null!=t.blockTag&&(o=yield t.blockTag),delete t.blockTag,i.push(t)}null!=t.deployTransaction&&(yield t._deployed(o));const s=yield ga(t,e,i),a=yield n.call(s,o);try{let n=t.interface.decodeFunctionResult(e,a);return r&&1===e.outputs.length&&(n=n[0]),n}catch(e){throw e.code===b.errors.CALL_EXCEPTION&&(e.address=t.address,e.args=i,e.transaction=s),e}}))}}function wa(t,e){return function(...r){return da(this,void 0,void 0,(function*(){t.signer||pa.throwError("sending a transaction requires a signer",b.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=t.deployTransaction&&(yield t._deployed());const n=yield ga(t,e,r),i=yield t.signer.sendTransaction(n);return function(t,e){const r=e.wait.bind(e);e.wait=e=>r(e).then((e=>(e.events=e.logs.map((r=>{let n=_r(r),i=null;try{i=t.interface.parseLog(r)}catch(t){}return i&&(n.args=i.args,n.decode=(e,r)=>t.interface.decodeEventLog(i.eventFragment,e,r),n.event=i.name,n.eventSignature=i.signature),n.removeListener=()=>t.provider,n.getBlock=()=>t.provider.getBlock(e.blockHash),n.getTransaction=()=>t.provider.getTransaction(e.transactionHash),n.getTransactionReceipt=()=>Promise.resolve(e),n})),e)))}(t,i),i}))}}function ba(t,e,r){return e.constant?va(t,e,r):wa(t,e)}function Aa(t){return!t.address||null!=t.topics&&0!==t.topics.length?(t.address||"*")+"@"+(t.topics?t.topics.map((t=>Array.isArray(t)?t.join("|"):t)).join(":"):""):"*"}class _a{constructor(t,e){mr(this,"tag",t),mr(this,"filter",e),this._listeners=[]}addListener(t,e){this._listeners.push({listener:t,once:e})}removeListener(t){let e=!1;this._listeners=this._listeners.filter((r=>!(!e&&r.listener===t)||(e=!0,!1)))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map((t=>t.listener))}listenerCount(){return this._listeners.length}run(t){const e=this.listenerCount();return this._listeners=this._listeners.filter((e=>{const r=t.slice();return setTimeout((()=>{e.listener.apply(this,r)}),0),!e.once})),e}prepareEvent(t){}getEmit(t){return[t]}}class Ea extends _a{constructor(){super("error",null)}}class Ma extends _a{constructor(t,e,r,n){const i={address:t};let o=e.getEventTopic(r);n?(o!==n[0]&&pa.throwArgumentError("topic mismatch","topics",n),i.topics=n.slice()):i.topics=[o],super(Aa(i),i),mr(this,"address",t),mr(this,"interface",e),mr(this,"fragment",r)}prepareEvent(t){super.prepareEvent(t),t.event=this.fragment.name,t.eventSignature=this.fragment.format(),t.decode=(t,e)=>this.interface.decodeEventLog(this.fragment,t,e);try{t.args=this.interface.decodeEventLog(this.fragment,t.data,t.topics)}catch(e){t.args=null,t.decodeError=e}}getEmit(t){const e=function(t){const e=[],r=function(t,n){if(Array.isArray(n))for(let i in n){const o=t.slice();o.push(i);try{r(o,n[i])}catch(t){e.push({path:o,error:t})}}};return r([],t),e}(t.args);if(e.length)throw e[0].error;const r=(t.args||[]).slice();return r.push(t),r}}class ka extends _a{constructor(t,e){super("*",{address:t}),mr(this,"address",t),mr(this,"interface",e)}prepareEvent(t){super.prepareEvent(t);try{const e=this.interface.parseLog(t);t.event=e.name,t.eventSignature=e.signature,t.decode=(t,r)=>this.interface.decodeEventLog(e.eventFragment,t,r),t.args=e.args}catch(t){}}}class xa extends class{constructor(t,e,r){mr(this,"interface",yr(new.target,"getInterface")(e)),null==r?(mr(this,"provider",null),mr(this,"signer",null)):xi.isSigner(r)?(mr(this,"provider",r.provider||null),mr(this,"signer",r)):Ai.isProvider(r)?(mr(this,"provider",r),mr(this,"signer",null)):pa.throwArgumentError("invalid signer or provider","signerOrProvider",r),mr(this,"callStatic",{}),mr(this,"estimateGas",{}),mr(this,"functions",{}),mr(this,"populateTransaction",{}),mr(this,"filters",{});{const t={};Object.keys(this.interface.events).forEach((e=>{const r=this.interface.events[e];mr(this.filters,e,((...t)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,t)}))),t[r.name]||(t[r.name]=[]),t[r.name].push(e)})),Object.keys(t).forEach((e=>{const r=t[e];1===r.length?mr(this.filters,e,this.filters[r[0]]):pa.warn(`Duplicate definition of ${e} (${r.join(", ")})`)}))}if(mr(this,"_runningEvents",{}),mr(this,"_wrappedEmits",{}),null==t&&pa.throwArgumentError("invalid contract address or ENS name","addressOrName",t),mr(this,"address",t),this.provider)mr(this,"resolvedAddress",ma(this.provider,t));else try{mr(this,"resolvedAddress",Promise.resolve($e(t)))}catch(t){pa.throwError("provider is required to use ENS name as contract address",b.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch((t=>{}));const n={},i={};Object.keys(this.interface.functions).forEach((t=>{const e=this.interface.functions[t];if(i[t])pa.warn(`Duplicate ABI entry for ${JSON.stringify(t)}`);else{i[t]=!0;{const r=e.name;n[`%${r}`]||(n[`%${r}`]=[]),n[`%${r}`].push(t)}null==this[t]&&mr(this,t,ba(this,e,!0)),null==this.functions[t]&&mr(this.functions,t,ba(this,e,!1)),null==this.callStatic[t]&&mr(this.callStatic,t,va(this,e,!0)),null==this.populateTransaction[t]&&mr(this.populateTransaction,t,function(t,e){return function(...r){return ga(t,e,r)}}(this,e)),null==this.estimateGas[t]&&mr(this.estimateGas,t,function(t,e){const r=t.signer||t.provider;return function(...n){return da(this,void 0,void 0,(function*(){r||pa.throwError("estimate require a provider or signer",b.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield ga(t,e,n);return yield r.estimateGas(i)}))}}(this,e))}})),Object.keys(n).forEach((t=>{const e=n[t];if(e.length>1)return;t=t.substring(1);const r=e[0];try{null==this[t]&&mr(this,t,this[r])}catch(t){}null==this.functions[t]&&mr(this.functions,t,this.functions[r]),null==this.callStatic[t]&&mr(this.callStatic,t,this.callStatic[r]),null==this.populateTransaction[t]&&mr(this.populateTransaction,t,this.populateTransaction[r]),null==this.estimateGas[t]&&mr(this.estimateGas,t,this.estimateGas[r])}))}static getContractAddress(t){return Fe(t)}static getInterface(t){return gi.isInterface(t)?t:new gi(t)}deployed(){return this._deployed()}_deployed(t){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((()=>this)):this._deployedPromise=this.provider.getCode(this.address,t).then((t=>("0x"===t&&pa.throwError("contract not deployed",b.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this)))),this._deployedPromise}fallback(t){this.signer||pa.throwError("sending a transactions require a signer",b.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const e=vr(t||{});return["from","to"].forEach((function(t){null!=e[t]&&pa.throwError("cannot override "+t,b.errors.UNSUPPORTED_OPERATION,{operation:t})})),e.to=this.resolvedAddress,this.deployed().then((()=>this.signer.sendTransaction(e)))}connect(t){"string"==typeof t&&(t=new Ni(t,this.provider));const e=new this.constructor(this.address,this.interface,t);return this.deployTransaction&&mr(e,"deployTransaction",this.deployTransaction),e}attach(t){return new this.constructor(t,this.interface,this.signer||this.provider)}static isIndexed(t){return pi.isIndexed(t)}_normalizeRunningEvent(t){return this._runningEvents[t.tag]?this._runningEvents[t.tag]:t}_getRunningEvent(t){if("string"==typeof t){if("error"===t)return this._normalizeRunningEvent(new Ea);if("event"===t)return this._normalizeRunningEvent(new _a("event",null));if("*"===t)return this._normalizeRunningEvent(new ka(this.address,this.interface));const e=this.interface.getEvent(t);return this._normalizeRunningEvent(new Ma(this.address,this.interface,e))}if(t.topics&&t.topics.length>0){try{const e=t.topics[0];if("string"!=typeof e)throw new Error("invalid topic");const r=this.interface.getEvent(e);return this._normalizeRunningEvent(new Ma(this.address,this.interface,r,t.topics))}catch(t){}const e={address:this.address,topics:t.topics};return this._normalizeRunningEvent(new _a(Aa(e),e))}return this._normalizeRunningEvent(new ka(this.address,this.interface))}_checkRunningEvents(t){if(0===t.listenerCount()){delete this._runningEvents[t.tag];const e=this._wrappedEmits[t.tag];e&&t.filter&&(this.provider.off(t.filter,e),delete this._wrappedEmits[t.tag])}}_wrapEvent(t,e,r){const n=_r(e);return n.removeListener=()=>{r&&(t.removeListener(r),this._checkRunningEvents(t))},n.getBlock=()=>this.provider.getBlock(e.blockHash),n.getTransaction=()=>this.provider.getTransaction(e.transactionHash),n.getTransactionReceipt=()=>this.provider.getTransactionReceipt(e.transactionHash),t.prepareEvent(n),n}_addEventListener(t,e,r){if(this.provider||pa.throwError("events require a provider or a signer with a provider",b.errors.UNSUPPORTED_OPERATION,{operation:"once"}),t.addListener(e,r),this._runningEvents[t.tag]=t,!this._wrappedEmits[t.tag]){const r=r=>{let n=this._wrapEvent(t,r,e);if(null==n.decodeError)try{const e=t.getEmit(n);this.emit(t.filter,...e)}catch(t){n.decodeError=t.error}null!=t.filter&&this.emit("event",n),null!=n.decodeError&&this.emit("error",n.decodeError,n)};this._wrappedEmits[t.tag]=r,null!=t.filter&&this.provider.on(t.filter,r)}}queryFilter(t,e,r){const n=this._getRunningEvent(t),i=vr(n.filter);return"string"==typeof e&&P(e,32)?(null!=r&&pa.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),i.blockHash=e):(i.fromBlock=null!=e?e:0,i.toBlock=null!=r?r:"latest"),this.provider.getLogs(i).then((t=>t.map((t=>this._wrapEvent(n,t,null)))))}on(t,e){return this._addEventListener(this._getRunningEvent(t),e,!1),this}once(t,e){return this._addEventListener(this._getRunningEvent(t),e,!0),this}emit(t,...e){if(!this.provider)return!1;const r=this._getRunningEvent(t),n=r.run(e)>0;return this._checkRunningEvents(r),n}listenerCount(t){return this.provider?null==t?Object.keys(this._runningEvents).reduce(((t,e)=>t+this._runningEvents[e].listenerCount()),0):this._getRunningEvent(t).listenerCount():0}listeners(t){if(!this.provider)return[];if(null==t){const t=[];for(let e in this._runningEvents)this._runningEvents[e].listeners().forEach((e=>{t.push(e)}));return t}return this._getRunningEvent(t).listeners()}removeAllListeners(t){if(!this.provider)return this;if(null==t){for(const t in this._runningEvents){const e=this._runningEvents[t];e.removeAllListeners(),this._checkRunningEvents(e)}return this}const e=this._getRunningEvent(t);return e.removeAllListeners(),this._checkRunningEvents(e),this}off(t,e){if(!this.provider)return this;const r=this._getRunningEvent(t);return r.removeListener(e),this._checkRunningEvents(r),this}removeListener(t,e){return this.off(t,e)}}{}var Na=u((function(t){!function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:jt.Buffer}catch(t){}function s(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t)}function a(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function u(t,e,n,i){for(var o=0,s=0,a=Math.min(t.length,n),u=e;u<a;u++){var h=t.charCodeAt(u)-48;o*=i,s=h>=49?h-49+10:h>=17?h-17+10:h,r(h>=0&&s<i,"Invalid character"),o+=s}return o}function h(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,n):(this._parseBase(t,e,i),"le"===n&&this._initArray(this.toArray(),e,n)))},i.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},i.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=a(t,e,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=a(t,e,n)<<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(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,h=0,l=r;l<a;l+=n)h=u(t,l,l+n,e),this.imuln(i),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(0!==s){var c=1;for(h=u(t,l,t.length,e),l=0;l<s;l++)c*=e;this.imuln(c),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this._strip()},i.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype._move=function(t){h(t,this)},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)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")]=l}catch(t){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var c=["","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],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,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),n=0!==o||s!==this.length-1?c[6-u.length]+u+n:u+n}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=f[t],l=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(l).toString(t);n=(p=p.idivn(l)).isZero()?m+n:c[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var h=1;h<n;h++){for(var l=u>>>26,c=67108863&u,f=Math.min(h,e.length-1),d=Math.max(0,h-t.length+1);d<=f;d++){var p=h-d|0;l+=(s=(i=0|t.words[p])*(o=0|e.words[d])+c)/67108864|0,c=67108863&s}r.words[h]=0|c,u=0|l}return 0!==u?r.words[h]=0|u:r.length--,r._strip()}i.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var s=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](s,i),s},i.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;t[r++]=255&s,r<t.length&&(t[r++]=s>>8&255),r<t.length&&(t[r++]=s>>16&255),6===o?(r<t.length&&(t[r++]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},i.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;t[r--]=255&s,r>=0&&(t[r--]=s>>8&255),r>=0&&(t[r--]=s>>16&255),6===o?(r>=0&&(t[r--]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).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(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},i.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},i.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},i.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},i.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},i.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,s=0;s<n.length;s++)o=(e=(0|r.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<r.length;s++)o=(e=(0|r.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,h=0,l=0|s[0],c=8191&l,f=l>>>13,d=0|s[1],p=8191&d,m=d>>>13,y=0|s[2],g=8191&y,v=y>>>13,w=0|s[3],b=8191&w,A=w>>>13,_=0|s[4],E=8191&_,M=_>>>13,k=0|s[5],x=8191&k,N=k>>>13,S=0|s[6],U=8191&S,P=S>>>13,T=0|s[7],R=8191&T,C=T>>>13,I=0|s[8],$=8191&I,O=I>>>13,F=0|s[9],B=8191&F,j=F>>>13,D=0|a[0],L=8191&D,z=D>>>13,q=0|a[1],V=8191&q,G=q>>>13,H=0|a[2],Q=8191&H,K=H>>>13,Z=0|a[3],W=8191&Z,J=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],ot=8191&it,st=it>>>13,at=0|a[7],ut=8191&at,ht=at>>>13,lt=0|a[8],ct=8191<,ft=lt>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var yt=(h+(n=Math.imul(c,L))|0)+((8191&(i=(i=Math.imul(c,z))+Math.imul(f,L)|0))<<13)|0;h=((o=Math.imul(f,z))+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(p,L),i=(i=Math.imul(p,z))+Math.imul(m,L)|0,o=Math.imul(m,z);var gt=(h+(n=n+Math.imul(c,V)|0)|0)+((8191&(i=(i=i+Math.imul(c,G)|0)+Math.imul(f,V)|0))<<13)|0;h=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,L),i=(i=Math.imul(g,z))+Math.imul(v,L)|0,o=Math.imul(v,z),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,G)|0;var vt=(h+(n=n+Math.imul(c,Q)|0)|0)+((8191&(i=(i=i+Math.imul(c,K)|0)+Math.imul(f,Q)|0))<<13)|0;h=((o=o+Math.imul(f,K)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(b,L),i=(i=Math.imul(b,z))+Math.imul(A,L)|0,o=Math.imul(A,z),n=n+Math.imul(g,V)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(v,V)|0,o=o+Math.imul(v,G)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,K)|0;var wt=(h+(n=n+Math.imul(c,W)|0)|0)+((8191&(i=(i=i+Math.imul(c,J)|0)+Math.imul(f,W)|0))<<13)|0;h=((o=o+Math.imul(f,J)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(E,L),i=(i=Math.imul(E,z))+Math.imul(M,L)|0,o=Math.imul(M,z),n=n+Math.imul(b,V)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,K)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,J)|0;var bt=(h+(n=n+Math.imul(c,X)|0)|0)+((8191&(i=(i=i+Math.imul(c,tt)|0)+Math.imul(f,X)|0))<<13)|0;h=((o=o+Math.imul(f,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,L),i=(i=Math.imul(x,z))+Math.imul(N,L)|0,o=Math.imul(N,z),n=n+Math.imul(E,V)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(g,W)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(v,W)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,tt)|0;var At=(h+(n=n+Math.imul(c,rt)|0)|0)+((8191&(i=(i=i+Math.imul(c,nt)|0)+Math.imul(f,rt)|0))<<13)|0;h=((o=o+Math.imul(f,nt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,L),i=(i=Math.imul(U,z))+Math.imul(P,L)|0,o=Math.imul(P,z),n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(g,X)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,X)|0,o=o+Math.imul(v,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0;var _t=(h+(n=n+Math.imul(c,ot)|0)|0)+((8191&(i=(i=i+Math.imul(c,st)|0)+Math.imul(f,ot)|0))<<13)|0;h=((o=o+Math.imul(f,st)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(R,L),i=(i=Math.imul(R,z))+Math.imul(C,L)|0,o=Math.imul(C,z),n=n+Math.imul(U,V)|0,i=(i=i+Math.imul(U,G)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,G)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(E,W)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(b,X)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(g,rt)|0,i=(i=i+Math.imul(g,nt)|0)+Math.imul(v,rt)|0,o=o+Math.imul(v,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,st)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,st)|0;var Et=(h+(n=n+Math.imul(c,ut)|0)|0)+((8191&(i=(i=i+Math.imul(c,ht)|0)+Math.imul(f,ut)|0))<<13)|0;h=((o=o+Math.imul(f,ht)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul($,L),i=(i=Math.imul($,z))+Math.imul(O,L)|0,o=Math.imul(O,z),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(U,Q)|0,i=(i=i+Math.imul(U,K)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(x,W)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,J)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(A,rt)|0,o=o+Math.imul(A,nt)|0,n=n+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,st)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,st)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ht)|0;var Mt=(h+(n=n+Math.imul(c,ct)|0)|0)+((8191&(i=(i=i+Math.imul(c,ft)|0)+Math.imul(f,ct)|0))<<13)|0;h=((o=o+Math.imul(f,ft)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(B,L),i=(i=Math.imul(B,z))+Math.imul(j,L)|0,o=Math.imul(j,z),n=n+Math.imul($,V)|0,i=(i=i+Math.imul($,G)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,G)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(U,W)|0,i=(i=i+Math.imul(U,J)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(E,rt)|0,i=(i=i+Math.imul(E,nt)|0)+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,st)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,st)|0,n=n+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ht)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ht)|0,n=n+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,ft)|0;var kt=(h+(n=n+Math.imul(c,pt)|0)|0)+((8191&(i=(i=i+Math.imul(c,mt)|0)+Math.imul(f,pt)|0))<<13)|0;h=((o=o+Math.imul(f,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(B,V),i=(i=Math.imul(B,G))+Math.imul(j,V)|0,o=Math.imul(j,G),n=n+Math.imul($,Q)|0,i=(i=i+Math.imul($,K)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(U,X)|0,i=(i=i+Math.imul(U,tt)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,st)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,st)|0,n=n+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ht)|0,n=n+Math.imul(g,ct)|0,i=(i=i+Math.imul(g,ft)|0)+Math.imul(v,ct)|0,o=o+Math.imul(v,ft)|0;var xt=(h+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;h=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(B,Q),i=(i=Math.imul(B,K))+Math.imul(j,Q)|0,o=Math.imul(j,K),n=n+Math.imul($,W)|0,i=(i=i+Math.imul($,J)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,tt)|0,n=n+Math.imul(U,rt)|0,i=(i=i+Math.imul(U,nt)|0)+Math.imul(P,rt)|0,o=o+Math.imul(P,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,st)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,st)|0,n=n+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,ht)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ht)|0,n=n+Math.imul(b,ct)|0,i=(i=i+Math.imul(b,ft)|0)+Math.imul(A,ct)|0,o=o+Math.imul(A,ft)|0;var Nt=(h+(n=n+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(v,pt)|0))<<13)|0;h=((o=o+Math.imul(v,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,J))+Math.imul(j,W)|0,o=Math.imul(j,J),n=n+Math.imul($,X)|0,i=(i=i+Math.imul($,tt)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(C,rt)|0,o=o+Math.imul(C,nt)|0,n=n+Math.imul(U,ot)|0,i=(i=i+Math.imul(U,st)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,st)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ht)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ht)|0,n=n+Math.imul(E,ct)|0,i=(i=i+Math.imul(E,ft)|0)+Math.imul(M,ct)|0,o=o+Math.imul(M,ft)|0;var St=(h+(n=n+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,mt)|0)+Math.imul(A,pt)|0))<<13)|0;h=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(B,X),i=(i=Math.imul(B,tt))+Math.imul(j,X)|0,o=Math.imul(j,tt),n=n+Math.imul($,rt)|0,i=(i=i+Math.imul($,nt)|0)+Math.imul(O,rt)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,st)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,n=n+Math.imul(U,ut)|0,i=(i=i+Math.imul(U,ht)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,ht)|0,n=n+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,ft)|0)+Math.imul(N,ct)|0,o=o+Math.imul(N,ft)|0;var Ut=(h+(n=n+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(M,pt)|0))<<13)|0;h=((o=o+Math.imul(M,mt)|0)+(i>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,n=Math.imul(B,rt),i=(i=Math.imul(B,nt))+Math.imul(j,rt)|0,o=Math.imul(j,nt),n=n+Math.imul($,ot)|0,i=(i=i+Math.imul($,st)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,ht)|0,n=n+Math.imul(U,ct)|0,i=(i=i+Math.imul(U,ft)|0)+Math.imul(P,ct)|0,o=o+Math.imul(P,ft)|0;var Pt=(h+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(N,pt)|0))<<13)|0;h=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(B,ot),i=(i=Math.imul(B,st))+Math.imul(j,ot)|0,o=Math.imul(j,st),n=n+Math.imul($,ut)|0,i=(i=i+Math.imul($,ht)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,ht)|0,n=n+Math.imul(R,ct)|0,i=(i=i+Math.imul(R,ft)|0)+Math.imul(C,ct)|0,o=o+Math.imul(C,ft)|0;var Tt=(h+(n=n+Math.imul(U,pt)|0)|0)+((8191&(i=(i=i+Math.imul(U,mt)|0)+Math.imul(P,pt)|0))<<13)|0;h=((o=o+Math.imul(P,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(B,ut),i=(i=Math.imul(B,ht))+Math.imul(j,ut)|0,o=Math.imul(j,ht),n=n+Math.imul($,ct)|0,i=(i=i+Math.imul($,ft)|0)+Math.imul(O,ct)|0,o=o+Math.imul(O,ft)|0;var Rt=(h+(n=n+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(C,pt)|0))<<13)|0;h=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(B,ct),i=(i=Math.imul(B,ft))+Math.imul(j,ct)|0,o=Math.imul(j,ft);var Ct=(h+(n=n+Math.imul($,pt)|0)|0)+((8191&(i=(i=i+Math.imul($,mt)|0)+Math.imul(O,pt)|0))<<13)|0;h=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863;var It=(h+(n=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,mt))+Math.imul(j,pt)|0))<<13)|0;return h=((o=Math.imul(j,mt))+(i>>>13)|0)+(It>>>26)|0,It&=67108863,u[0]=yt,u[1]=gt,u[2]=vt,u[3]=wt,u[4]=bt,u[5]=At,u[6]=_t,u[7]=Et,u[8]=Mt,u[9]=kt,u[10]=xt,u[11]=Nt,u[12]=St,u[13]=Ut,u[14]=Pt,u[15]=Tt,u[16]=Rt,u[17]=Ct,u[18]=It,0!==h&&(u[19]=h,r.length++),r};function y(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),h=Math.max(0,o-t.length+1);h<=u;h++){var l=o-h,c=(0|t.words[l])*(0|e.words[h]),f=67108863&c;a=67108863&(f=f+a|0),i+=(s=(s=s+(c/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function g(t,e,r){return y(t,e,r)}Math.imul||(m=p),i.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):r<63?p(this,t,e):r<1024?y(this,t,e):g(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),g(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"==typeof t),r(t<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,s=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=s>>>26,this.words[i]=67108863&s}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new i(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var o=r.sqr();n<e.length;n++,o=o.sqr())0!==e[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<n;this.words[e]=u|s,s=a>>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},i.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=n;if(i-=s,i=Math.max(0,i),u){for(var h=0;h<s;h++)u.words[h]=this.words[h];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,h=0;h<this.length;h++)this.words[h]=this.words[h+s];else this.words[0]=0,this.length=1;var l=0;for(h=this.length-1;h>=0&&(0!==l||h>=i);h--){var c=0|this.words[h];this.words[h]=l<<26-o|c>>>o,l=c&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},i.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,e,n){var i,o,s=t.length+n;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+a;var u=(0|t.words[i])*e;a=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)a=(o=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&o;if(0===a)return this._strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),o=t,s=0|o.words[o.length-1];0!==(r=26-this._countBits(s))&&(o=o.ushln(r),n.iushln(r),s=0|o.words[o.length-1]);var a,u=n.length-o.length;if("mod"!==e){(a=new i(null)).length=u+1,a.words=new Array(a.length);for(var h=0;h<a.length;h++)a.words[h]=0}var l=n.clone()._ishlnsubmul(o,1,u);0===l.negative&&(n=l,a&&(a.words[u]=1));for(var c=u-1;c>=0;c--){var f=67108864*(0|n.words[o.length+c])+(0|n.words[o.length+c-1]);for(f=Math.min(f/s|0,67108863),n._ishlnsubmul(o,f,c);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(o,1,c),n.isZero()||(n.negative^=1);a&&(a.words[c]=f)}return a&&a._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},i.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(o=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:o,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(o=a.div.neg()),{div:o,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,s,a},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),s=new i(0),a=new i(0),u=new i(1),h=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++h;for(var l=n.clone(),c=e.clone();!e.isZero();){for(var f=0,d=1;0==(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(e.iushrn(f);f-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(l),s.isub(c)),o.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(c)),a.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(a),s.isub(u)):(n.isub(e),a.isub(o),u.isub(s))}return{a:a,b:u,gcd:n.iushln(h)}},i.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,s=new i(1),a=new i(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var h=0,l=1;0==(e.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(e.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var c=0,f=1;0==(n.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(n.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),s.isub(a)):(n.isub(e),a.isub(s))}return(o=0===e.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,s=n;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},i.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new M(t)},i.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){M.call(this,t),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)}w.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},n(b,w),b.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&r,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(A,w),n(_,w),n(E,w),E.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new A;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return v[t]=e,e},M.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(h(t,t.umod(this.m)._forceRed(this)),t)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new i(1)).iushrn(2);return this.pow(t,n)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);r(!o.isZero());var a=new i(1).toRed(this),u=a.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,h).cmp(u);)l.redIAdd(u);for(var c=this.pow(l,o),f=this.pow(t,o.addn(1).iushrn(1)),d=this.pow(t,o),p=s;0!==d.cmp(a);){for(var m=d,y=0;0!==m.cmp(a);y++)m=m.redSqr();r(y<p);var g=this.pow(c,new i(1).iushln(p-y-1));f=f.redMul(g),c=g.redSqr(),d=d.redMul(c),p=y}return f},M.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},M.prototype.pow=function(t,e){if(e.isZero())return new i(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var o=r[0],s=0,a=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var h=e.words[n],l=u-1;l>=0;l--){var c=h>>l&1;o!==r[0]&&(o=this.sqr(o)),0!==c||0!==s?(s<<=1,s|=c,(4===++a||0===n&&0===l)&&(o=this.mul(o,r[s]),a=0,s=0)):a=0}u=26}return o},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new k(t)},n(k,M),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,o)}));let Sa=!1,Ua=!1;const Pa={debug:1,default:2,info:2,warning:3,error:4,off:5};let Ta=Pa.default,Ra=null;const Ca=function(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(r){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var Ia,$a;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(Ia||(Ia={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"}($a||($a={}));const Oa="0123456789abcdef";class Fa{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const r=t.toLowerCase();null==Pa[r]&&this.throwArgumentError("invalid log level name","logLevel",t),Ta>Pa[r]||console.log.apply(console,e)}debug(...t){this._log(Fa.levels.DEBUG,t)}info(...t){this._log(Fa.levels.INFO,t)}warn(...t){this._log(Fa.levels.WARNING,t)}makeError(t,e,r){if(Ua)return this.makeError("censored error",e,{});e||(e=Fa.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((t=>{const e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=Oa[e[t]>>4],r+=Oa[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}})),n.push(`code=${e}`),n.push(`version=${this.version}`);const i=t;let o="";switch(e){case $a.NUMERIC_FAULT:{o="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case $a.CALL_EXCEPTION:case $a.INSUFFICIENT_FUNDS:case $a.MISSING_NEW:case $a.NONCE_EXPIRED:case $a.REPLACEMENT_UNDERPRICED:case $a.TRANSACTION_REPLACED:case $a.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");const s=new Error(t);return s.reason=i,s.code=e,Object.keys(r).forEach((function(t){s[t]=r[t]})),s}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,Fa.errors.INVALID_ARGUMENT,{argument:e,value:r})}assert(t,e,r,n){t||this.throwError(e,r,n)}assertArgument(t,e,r,n){t||this.throwArgumentError(e,r,n)}checkNormalize(t){Ca&&this.throwError("platform missing String.prototype.normalize",Fa.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Ca})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,Fa.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,Fa.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,Fa.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,Fa.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",Fa.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",Fa.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",Fa.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return Ra||(Ra=new Fa("logger/5.7.0")),Ra}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",Fa.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Sa){if(!t)return;this.globalLogger().throwError("error censorship permanent",Fa.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Ua=!!t,Sa=!!e}static setLogLevel(t){const e=Pa[t.toLowerCase()];null!=e?Ta=e:Fa.globalLogger().warn("invalid log level - "+t)}static from(t){return new Fa(t)}}Fa.errors=$a,Fa.levels=Ia;const Ba=new Fa("bytes/5.7.0");function ja(t){return!!t.toHexString}function Da(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return Da(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function La(t){return"number"==typeof t&&t==t&&t%1==0}function za(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t)return!1;if(!La(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){const r=t[e];if(!La(r)||r<0||r>=256)return!1}return!0}function qa(t,e){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}const Va="0123456789abcdef";function Ga(t,e){if(e||(e={}),"number"==typeof t){Ba.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=Va[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),ja(t))return t.toHexString();if(qa(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":Ba.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(za(t)){let e="0x";for(let r=0;r<t.length;r++){let n=t[r];e+=Va[(240&n)>>4]+Va[15&n]}return e}return Ba.throwArgumentError("invalid hexlify value","value",t)}function Ha(t,e){for("string"!=typeof t?t=Ga(t):qa(t)||Ba.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&Ba.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}const Qa="bignumber/5.7.0";var Ka=Na.BN;const Za=new Fa(Qa),Wa={},Ja=9007199254740991;let Ya=!1;class Xa{constructor(t,e){t!==Wa&&Za.throwError("cannot call constructor directly; use BigNumber.from",Fa.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return eu(ru(this).fromTwos(t))}toTwos(t){return eu(ru(this).toTwos(t))}abs(){return"-"===this._hex[0]?Xa.from(this._hex.substring(1)):this}add(t){return eu(ru(this).add(ru(t)))}sub(t){return eu(ru(this).sub(ru(t)))}div(t){return Xa.from(t).isZero()&&nu("division-by-zero","div"),eu(ru(this).div(ru(t)))}mul(t){return eu(ru(this).mul(ru(t)))}mod(t){const e=ru(t);return e.isNeg()&&nu("division-by-zero","mod"),eu(ru(this).umod(e))}pow(t){const e=ru(t);return e.isNeg()&&nu("negative-power","pow"),eu(ru(this).pow(e))}and(t){const e=ru(t);return(this.isNegative()||e.isNeg())&&nu("unbound-bitwise-result","and"),eu(ru(this).and(e))}or(t){const e=ru(t);return(this.isNegative()||e.isNeg())&&nu("unbound-bitwise-result","or"),eu(ru(this).or(e))}xor(t){const e=ru(t);return(this.isNegative()||e.isNeg())&&nu("unbound-bitwise-result","xor"),eu(ru(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&nu("negative-width","mask"),eu(ru(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&nu("negative-width","shl"),eu(ru(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&nu("negative-width","shr"),eu(ru(this).shrn(t))}eq(t){return ru(this).eq(ru(t))}lt(t){return ru(this).lt(ru(t))}lte(t){return ru(this).lte(ru(t))}gt(t){return ru(this).gt(ru(t))}gte(t){return ru(this).gte(ru(t))}isNegative(){return"-"===this._hex[0]}isZero(){return ru(this).isZero()}toNumber(){try{return ru(this).toNumber()}catch(t){nu("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return Za.throwError("this platform does not support BigInt",Fa.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?Ya||(Ya=!0,Za.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?Za.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",Fa.errors.UNEXPECTED_ARGUMENT,{}):Za.throwError("BigNumber.toString does not accept parameters",Fa.errors.UNEXPECTED_ARGUMENT,{})),ru(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof Xa)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new Xa(Wa,tu(t)):t.match(/^-?[0-9]+$/)?new Xa(Wa,tu(new Ka(t))):Za.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&nu("underflow","BigNumber.from",t),(t>=Ja||t<=-Ja)&&nu("overflow","BigNumber.from",t),Xa.from(String(t));const e=t;if("bigint"==typeof e)return Xa.from(e.toString());if(za(e))return Xa.from(Ga(e));if(e)if(e.toHexString){const t=e.toHexString();if("string"==typeof t)return Xa.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(qa(t)||"-"===t[0]&&qa(t.substring(1))))return Xa.from(t)}return Za.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function tu(t){if("string"!=typeof t)return tu(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&Za.throwArgumentError("invalid hex","value",t),"0x00"===(t=tu(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function eu(t){return Xa.from(tu(t))}function ru(t){const e=Xa.from(t).toHexString();return"-"===e[0]?new Ka("-"+e.substring(3),16):new Ka(e.substring(2),16)}function nu(t,e,r){const n={fault:t,operation:e};return null!=r&&(n.value=r),Za.throwError(t,Fa.errors.NUMERIC_FAULT,n)}const iu=new Fa(Qa),ou={},su=Xa.from(0),au=Xa.from(-1);function uu(t,e,r,n){const i={fault:e,operation:r};return void 0!==n&&(i.value=n),iu.throwError(t,Fa.errors.NUMERIC_FAULT,i)}let hu="0";for(;hu.length<256;)hu+=hu;function lu(t){if("number"!=typeof t)try{t=Xa.from(t).toNumber()}catch(t){}return"number"==typeof t&&t>=0&&t<=256&&!(t%1)?"1"+hu.substring(0,t):iu.throwArgumentError("invalid decimal size","decimals",t)}function cu(t,e){null==e&&(e=0);const r=lu(e),n=(t=Xa.from(t)).lt(su);n&&(t=t.mul(au));let i=t.mod(r).toString();for(;i.length<r.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];const o=t.div(r).toString();return t=1===r.length?o:o+"."+i,n&&(t="-"+t),t}function fu(t,e){null==e&&(e=0);const r=lu(e);"string"==typeof t&&t.match(/^-?[0-9.]+$/)||iu.throwArgumentError("invalid decimal value","value",t);const n="-"===t.substring(0,1);n&&(t=t.substring(1)),"."===t&&iu.throwArgumentError("missing value","value",t);const i=t.split(".");i.length>2&&iu.throwArgumentError("too many decimal points","value",t);let o=i[0],s=i[1];for(o||(o="0"),s||(s="0");"0"===s[s.length-1];)s=s.substring(0,s.length-1);for(s.length>r.length-1&&uu("fractional component exceeds decimals","underflow","parseFixed"),""===s&&(s="0");s.length<r.length-1;)s+="0";const a=Xa.from(o),u=Xa.from(s);let h=a.mul(r).add(u);return n&&(h=h.mul(au)),h}class du{constructor(t,e,r,n){t!==ou&&iu.throwError("cannot use FixedFormat constructor; use FixedFormat.from",Fa.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=e,this.width=r,this.decimals=n,this.name=(e?"":"u")+"fixed"+String(r)+"x"+String(n),this._multiplier=lu(n),Object.freeze(this)}static from(t){if(t instanceof du)return t;"number"==typeof t&&(t=`fixed128x${t}`);let e=!0,r=128,n=18;if("string"==typeof t)if("fixed"===t);else if("ufixed"===t)e=!1;else{const i=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);i||iu.throwArgumentError("invalid fixed format","format",t),e="u"!==i[1],r=parseInt(i[2]),n=parseInt(i[3])}else if(t){const i=(e,r,n)=>null==t[e]?n:(typeof t[e]!==r&&iu.throwArgumentError("invalid fixed format ("+e+" not "+r+")","format."+e,t[e]),t[e]);e=i("signed","boolean",e),r=i("width","number",r),n=i("decimals","number",n)}return r%8&&iu.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&iu.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new du(ou,e,r,n)}}class pu{constructor(t,e,r,n){t!==ou&&iu.throwError("cannot use FixedNumber constructor; use FixedNumber.from",Fa.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=e,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(t){this.format.name!==t.format.name&&iu.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}addUnsafe(t){this._checkFormat(t);const e=fu(this._value,this.format.decimals),r=fu(t._value,t.format.decimals);return pu.fromValue(e.add(r),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);const e=fu(this._value,this.format.decimals),r=fu(t._value,t.format.decimals);return pu.fromValue(e.sub(r),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);const e=fu(this._value,this.format.decimals),r=fu(t._value,t.format.decimals);return pu.fromValue(e.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);const e=fu(this._value,this.format.decimals),r=fu(t._value,t.format.decimals);return pu.fromValue(e.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=pu.from(t[0],this.format);const r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(e=e.subUnsafe(mu.toFormat(e.format))),e}ceiling(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=pu.from(t[0],this.format);const r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(e=e.addUnsafe(mu.toFormat(e.format))),e}round(t){null==t&&(t=0);const e=this.toString().split(".");if(1===e.length&&e.push("0"),(t<0||t>80||t%1)&&iu.throwArgumentError("invalid decimal count","decimals",t),e[1].length<=t)return this;const r=pu.from("1"+hu.substring(0,t),this.format),n=yu.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(t){if(null==t)return this._hex;t%8&&iu.throwArgumentError("invalid byte width","width",t);return Ha(Xa.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString(),t/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return pu.fromString(this._value,t)}static fromValue(t,e,r){return null!=r||null==e||function(t){return null!=t&&(Xa.isBigNumber(t)||"number"==typeof t&&t%1==0||"string"==typeof t&&!!t.match(/^-?[0-9]+$/)||qa(t)||"bigint"==typeof t||za(t))}(e)||(r=e,e=null),null==e&&(e=0),null==r&&(r="fixed"),pu.fromString(cu(t,e),du.from(r))}static fromString(t,e){null==e&&(e="fixed");const r=du.from(e),n=fu(t,r.decimals);!r.signed&&n.lt(su)&&uu("unsigned value cannot be negative","overflow","value",t);let i=null;r.signed?i=n.toTwos(r.width).toHexString():(i=n.toHexString(),i=Ha(i,r.width/8));const o=cu(n,r.decimals);return new pu(ou,i,o,r)}static fromBytes(t,e){null==e&&(e="fixed");const r=du.from(e);if(function(t,e){if(e||(e={}),"number"==typeof t){Ba.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),Da(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),ja(t)&&(t=t.toHexString()),qa(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":Ba.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substring(t,t+2),16));return Da(new Uint8Array(n))}return za(t)?Da(new Uint8Array(t)):Ba.throwArgumentError("invalid arrayify value","value",t)}(t).length>r.width/8)throw new Error("overflow");let n=Xa.from(t);r.signed&&(n=n.fromTwos(r.width));const i=n.toTwos((r.signed?0:1)+r.width).toHexString(),o=cu(n,r.decimals);return new pu(ou,i,o,r)}static from(t,e){if("string"==typeof t)return pu.fromString(t,e);if(za(t))return pu.fromBytes(t,e);try{return pu.fromValue(t,0,e)}catch(t){if(t.code!==Fa.errors.INVALID_ARGUMENT)throw t}return iu.throwArgumentError("invalid FixedNumber value","value",t)}static isFixedNumber(t){return!(!t||!t._isFixedNumber)}}const mu=pu.from(1),yu=pu.from("0.5"),gu=new Fa("units/5.7.0"),vu=["wei","kwei","mwei","gwei","szabo","finney","ether"];
|
|
16
16
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
17
|
-
var wu=2147483647,bu=36,Au=/^xn--/,_u=/[^\x20-\x7E]/,Eu=/[\x2E\u3002\uFF0E\uFF61]/g,Mu={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ku=Math.floor,xu=String.fromCharCode;function Nu(t){throw new RangeError(Mu[t])}function Su(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function Uu(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+Su((t=t.replace(Eu,".")).split("."),e).join(".")}function Pu(t){for(var e,r,n=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(r=t.charCodeAt(i++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--):n.push(e);return n}function Tu(t){return Su(t,(function(t){var e="";return t>65535&&(e+=xu((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=xu(t)})).join("")}function Ru(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function
|
|
17
|
+
var wu=2147483647,bu=36,Au=/^xn--/,_u=/[^\x20-\x7E]/,Eu=/[\x2E\u3002\uFF0E\uFF61]/g,Mu={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ku=Math.floor,xu=String.fromCharCode;function Nu(t){throw new RangeError(Mu[t])}function Su(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function Uu(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+Su((t=t.replace(Eu,".")).split("."),e).join(".")}function Pu(t){for(var e,r,n=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(r=t.charCodeAt(i++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--):n.push(e);return n}function Tu(t){return Su(t,(function(t){var e="";return t>65535&&(e+=xu((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=xu(t)})).join("")}function Ru(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function Cu(t,e,r){var n=0;for(t=r?ku(t/700):t>>1,t+=ku(t/e);t>455;n+=bu)t=ku(t/35);return ku(n+36*t/(t+38))}function Iu(t){var e,r,n,i,o,s,a,u,h,l,c,f=[],d=t.length,p=0,m=128,y=72;for((r=t.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&Nu("not-basic"),f.push(t.charCodeAt(n));for(i=r>0?r+1:0;i<d;){for(o=p,s=1,a=bu;i>=d&&Nu("invalid-input"),((u=(c=t.charCodeAt(i++))-48<10?c-22:c-65<26?c-65:c-97<26?c-97:bu)>=bu||u>ku((wu-p)/s))&&Nu("overflow"),p+=u*s,!(u<(h=a<=y?1:a>=y+26?26:a-y));a+=bu)s>ku(wu/(l=bu-h))&&Nu("overflow"),s*=l;y=Cu(p-o,e=f.length+1,0==o),ku(p/e)>wu-m&&Nu("overflow"),m+=ku(p/e),p%=e,f.splice(p++,0,m)}return Tu(f)}function $u(t){var e,r,n,i,o,s,a,u,h,l,c,f,d,p,m,y=[];for(f=(t=Pu(t)).length,e=128,r=0,o=72,s=0;s<f;++s)(c=t[s])<128&&y.push(xu(c));for(n=i=y.length,i&&y.push("-");n<f;){for(a=wu,s=0;s<f;++s)(c=t[s])>=e&&c<a&&(a=c);for(a-e>ku((wu-r)/(d=n+1))&&Nu("overflow"),r+=(a-e)*d,e=a,s=0;s<f;++s)if((c=t[s])<e&&++r>wu&&Nu("overflow"),c==e){for(u=r,h=bu;!(u<(l=h<=o?1:h>=o+26?26:h-o));h+=bu)m=u-l,p=bu-l,y.push(xu(Ru(l+m%p,0))),u=ku(m/p);y.push(xu(Ru(u,0))),o=Cu(r,d,n==i),r=0,++n}++r,++e}return y.join("")}function Ou(t){return Uu(t,(function(t){return Au.test(t)?Iu(t.slice(4).toLowerCase()):t}))}function Fu(t){return Uu(t,(function(t){return _u.test(t)?"xn--"+$u(t):t}))}var Bu="1.4.1",ju={decode:Pu,encode:Tu},Du={version:Bu,ucs2:ju,toASCII:Fu,toUnicode:Ou,encode:$u,decode:Iu},Lu=a(Object.freeze({__proto__:null,decode:Iu,encode:$u,toUnicode:Ou,toASCII:Fu,version:Bu,ucs2:ju,default:Du})),zu=u((function(t,e){t.exports=function(t){function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=e(t),n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==o?o:"undefined"!=typeof self?self:{},i={exports:{}};
|
|
18
18
|
/**
|
|
19
19
|
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
|
20
20
|
*
|
|
@@ -23,10 +23,10 @@ var wu=2147483647,bu=36,Au=/^xn--/,_u=/[^\x20-\x7E]/,Eu=/[\x2E\u3002\uFF0E\uFF61
|
|
|
23
23
|
* @copyright Chen, Yi-Cyuan 2015-2016
|
|
24
24
|
* @license MIT
|
|
25
25
|
*/
|
|
26
|
-
!function(t){!function(){var e="object"==typeof window?window:{};!e.JS_SHA3_NO_NODE_JS&&"object"==typeof be&&be.versions&&be.versions.node&&(e=n);for(var r=!e.JS_SHA3_NO_COMMON_JS&&t.exports,i="0123456789abcdef".split(""),o=[0,8,16,24],s=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],a=[224,256,384,512],u=["hex","buffer","arrayBuffer","array"],h=function(t,e,r){return function(n){return new A(t,e,t).update(n)[r]()}},l=function(t,e,r){return function(n,i){return new A(t,e,i).update(n)[r]()}},c=function(t,e){var r=h(t,e,"hex");r.create=function(){return new A(t,e,t)},r.update=function(t){return r.create().update(t)};for(var n=0;n<u.length;++n){var i=u[n];r[i]=h(t,e,i)}return r},f=function(t,e){var r=l(t,e,"hex");r.create=function(r){return new A(t,e,r)},r.update=function(t,e){return r.create(e).update(t)};for(var n=0;n<u.length;++n){var i=u[n];r[i]=l(t,e,i)}return r},d=[{name:"keccak",padding:[1,256,65536,16777216],bits:a,createMethod:c},{name:"sha3",padding:[6,1536,393216,100663296],bits:a,createMethod:c},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:f}],p={},m=[],y=0;y<d.length;++y)for(var g=d[y],v=g.bits,w=0;w<v.length;++w){var b=g.name+"_"+v[w];m.push(b),p[b]=g.createMethod(v[w],g.padding)}function A(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}A.prototype.update=function(t){var e="string"!=typeof t;e&&t.constructor===ArrayBuffer&&(t=new Uint8Array(t));for(var r,n,i=t.length,s=this.blocks,a=this.byteCount,u=this.blockCount,h=0,l=this.s;h<i;){if(this.reset)for(this.reset=!1,s[0]=this.block,r=1;r<u+1;++r)s[r]=0;if(e)for(r=this.start;h<i&&r<a;++h)s[r>>2]|=t[h]<<o[3&r++];else for(r=this.start;h<i&&r<a;++h)(n=t.charCodeAt(h))<128?s[r>>2]|=n<<o[3&r++]:n<2048?(s[r>>2]|=(192|n>>6)<<o[3&r++],s[r>>2]|=(128|63&n)<<o[3&r++]):n<55296||n>=57344?(s[r>>2]|=(224|n>>12)<<o[3&r++],s[r>>2]|=(128|n>>6&63)<<o[3&r++],s[r>>2]|=(128|63&n)<<o[3&r++]):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++h)),s[r>>2]|=(240|n>>18)<<o[3&r++],s[r>>2]|=(128|n>>12&63)<<o[3&r++],s[r>>2]|=(128|n>>6&63)<<o[3&r++],s[r>>2]|=(128|63&n)<<o[3&r++]);if(this.lastByteIndex=r,r>=a){for(this.start=r-a,this.block=s[u],r=0;r<u;++r)l[r]^=s[r];_(l),this.reset=!0}else this.start=r}return this},A.prototype.finalize=function(){var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];_(n)},A.prototype.toString=A.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,o=this.extraBytes,s=0,a=0,u="";a<n;){for(s=0;s<e&&a<n;++s,++a)t=r[s],u+=i[t>>4&15]+i[15&t]+i[t>>12&15]+i[t>>8&15]+i[t>>20&15]+i[t>>16&15]+i[t>>28&15]+i[t>>24&15];a%e==0&&(_(r),s=0)}return o&&(t=r[s],o>0&&(u+=i[t>>4&15]+i[15&t]),o>1&&(u+=i[t>>12&15]+i[t>>8&15]),o>2&&(u+=i[t>>20&15]+i[t>>16&15])),u},A.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,a=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);for(var u=new Uint32Array(t);s<n;){for(o=0;o<e&&s<n;++o,++s)u[s]=r[o];s%e==0&&_(r)}return i&&(u[o]=r[o],t=t.slice(0,a)),t},A.prototype.buffer=A.prototype.arrayBuffer,A.prototype.digest=A.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,s=0,a=0,u=[];a<i;){for(s=0;s<r&&a<i;++s,++a)t=a<<2,e=n[s],u[t]=255&e,u[t+1]=e>>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;a%r==0&&_(n)}return o&&(t=a<<2,e=n[s],o>0&&(u[t]=255&e),o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u};var _=function(t){var e,r,n,i,o,a,u,h,l,c,f,d,p,m,y,g,v,w,b,A,_,E,M,k,x,N,S,U,P,T,R,I,C,$,O,F,B,j,D,L,z,q,V,G,H,Q,K,Z,W,J,X,Y,tt,et,rt,nt,it,ot,st,at,ut,ht,lt;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],u=t[3]^t[13]^t[23]^t[33]^t[43],h=t[4]^t[14]^t[24]^t[34]^t[44],l=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],f=t[7]^t[17]^t[27]^t[37]^t[47],e=(d=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|u>>>31),r=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(u<<1|a>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(h<<1|l>>>31),r=o^(l<<1|h>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=a^(c<<1|f>>>31),r=u^(f<<1|c>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=h^(d<<1|p>>>31),r=l^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=c^(i<<1|o>>>31),r=f^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],y=t[1],Q=t[11]<<4|t[10]>>>28,K=t[10]<<4|t[11]>>>28,U=t[20]<<3|t[21]>>>29,P=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,q=t[40]<<18|t[41]>>>14,V=t[41]<<18|t[40]>>>14,$=t[2]<<1|t[3]>>>31,O=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,v=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,T=t[33]<<13|t[32]>>>19,R=t[32]<<13|t[33]>>>19,ht=t[42]<<2|t[43]>>>30,lt=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,F=t[14]<<6|t[15]>>>26,B=t[15]<<6|t[14]>>>26,w=t[25]<<11|t[24]>>>21,b=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,X=t[35]<<15|t[34]>>>17,I=t[45]<<29|t[44]>>>3,C=t[44]<<29|t[45]>>>3,k=t[6]<<28|t[7]>>>4,x=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,j=t[26]<<25|t[27]>>>7,D=t[27]<<25|t[26]>>>7,A=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,Y=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,G=t[8]<<27|t[9]>>>5,H=t[9]<<27|t[8]>>>5,N=t[18]<<20|t[19]>>>12,S=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,st=t[28]<<7|t[29]>>>25,L=t[38]<<8|t[39]>>>24,z=t[39]<<8|t[38]>>>24,E=t[48]<<14|t[49]>>>18,M=t[49]<<14|t[48]>>>18,t[0]=m^~g&w,t[1]=y^~v&b,t[10]=k^~N&U,t[11]=x^~S&P,t[20]=$^~F&j,t[21]=O^~B&D,t[30]=G^~Q&Z,t[31]=H^~K&W,t[40]=et^~nt&ot,t[41]=rt^~it&st,t[2]=g^~w&A,t[3]=v^~b&_,t[12]=N^~U&T,t[13]=S^~P&R,t[22]=F^~j&L,t[23]=B^~D&z,t[32]=Q^~Z&J,t[33]=K^~W&X,t[42]=nt^~ot&at,t[43]=it^~st&ut,t[4]=w^~A&E,t[5]=b^~_&M,t[14]=U^~T&I,t[15]=P^~R&C,t[24]=j^~L&q,t[25]=D^~z&V,t[34]=Z^~J&Y,t[35]=W^~X&tt,t[44]=ot^~at&ht,t[45]=st^~ut<,t[6]=A^~E&m,t[7]=_^~M&y,t[16]=T^~I&k,t[17]=R^~C&x,t[26]=L^~q&$,t[27]=z^~V&O,t[36]=J^~Y&G,t[37]=X^~tt&H,t[46]=at^~ht&et,t[47]=ut^~lt&rt,t[8]=E^~m&g,t[9]=M^~y&v,t[18]=I^~k&N,t[19]=C^~x&S,t[28]=q^~$&F,t[29]=V^~O&B,t[38]=Y^~G&Q,t[39]=tt^~H&K,t[48]=ht^~et&nt,t[49]=lt^~rt&it,t[0]^=s[n],t[1]^=s[n+1]};if(r)t.exports=p;else for(y=0;y<m.length;++y)e[m[y]]=p[m[y]]}()}(i);var s={exports:{}},a={exports:{}};(function(t,e){!function(e,r){t.exports=r()}(0,(function(){var t=[new Uint32Array([2101761,2100961,2123873,2223617,2098113,2123393,2104929,2223649,2105761,2123713,2123809,2124257,2101377,2101697,2124865,2101857]),new Uint32Array([2098374,2098566,2098758,2098950,2099142,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([2250401,2250433,2250465,2239073,2183298,2250497,2250529,2250561,2241121,2250561,2250593,2239137,2250625,2250657,2250689,2250721]),new Uint32Array([2191233,6291456,2191265,6291456,2191297,6291456,2191329,6291456,2191361,2191393,6291456,2191425,6291456,2143457,6291456,2098305]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,0,0,0,0]),new Uint32Array([2236225,2118849,2236257,2236289,2236321,2236353,2236385,2236417,2236449,2236481,2236513,2232929,2236545,2236577,2236609,2236641]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2216481,2216513,2216545,2216577,2216609,2216641,2216673,2216705,2216737,2216769,2216801,2216833,2216865,2216897,2216929,2216961]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,0,0,0,0,0]),new Uint32Array([2246849,2246881,2246913,2182082,2246945,2238689,2246977,2247009,2247041,2247073,2238721,2247105,2247137,2182146,2238753,2247169]),new Uint32Array([2220641,2115969,2116065,2220673,2220705,2116161,2220737,2116257,2116353,2220769,2116449,2116545,2116641,2116737,2116833,2220801]),new Uint32Array([2184194,2184258,2252993,2253025,2241505,2253057,2253089,2253121,2253153,2253185,2253217,2184322,2253249,2184386,2253281,0]),new Uint32Array([6291456,2148609,2195105,2195137,2195169,2195201,2195233,2148929,2195265,2144097,2195297,2195329,2153665,2195361,2195393,2195425]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2229537,2229569,2229601,2229633,2229665,2229697,2229729,2229761,2229793,2229825,2229857,2229889,2229921,2229953,2229985,2230017]),new Uint32Array([2247809,2247841,2247841,2247841,2182402,2247873,2247905,2247937,2182466,2247969,2248001,2248033,2248065,2248097,2248129,2248161]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2218465,2218497,2218529,2218561,2218593,2218625,2119713,2218657,2218689,2218721,2218753,2218785,2218817,2218849,2218881,2218913]),new Uint32Array([2115009,2110337,2115201,2115297,2098209,2112993,2107233,2098241,2110209,2110273,2107553,2113569,2102625,2113761,2107201,2107297]),new Uint32Array([2148034,2148098,2148162,2148226,2148290,2148354,2148418,2148482,2148034,2148098,2148162,2148226,2148290,2148354,2148418,2148482]),new Uint32Array([2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,2098209,2112993,0,2098241,2110209,2110273,2107553,0]),new Uint32Array([2230049,2230081,2218401,2230113,2230145,2230177,2230209,2220097,2220097,2230241,2119713,2230273,2230305,2230337,2230369,2230401]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,6291456]),new Uint32Array([2228001,2228033,2228065,2228097,2228129,2228161,2228193,2228225,2228257,2228289,2228321,2228353,2228385,2228417,2228449,2228481]),new Uint32Array([2141282,2161474,2161538,2161602,2136098,2161666,2161730,2161794,2161858,2161922,2161986,2162050,2140514,2162114,2162178,2136578]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2146242,6291456,6291456,6291456,0,0,0]),new Uint32Array([2212993,6291456,2213025,6291456,2213057,6291456,2213089,6291456,2213121,6291456,2213153,6291456,2213185,6291456,2213217,6291456]),new Uint32Array([6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,6291456]),new Uint32Array([2179650,2179714,2179778,2179842,2179906,2179970,2180034,2180098,2180162,2180226,2180290,2180354,2180418,2180482,2180546,2180610]),new Uint32Array([2191777,2191809,6291456,2191841,2191873,6291456,2191905,2191937,2191969,6291456,6291456,6291456,2192001,2192033,6291456,2192065]),new Uint32Array([2240897,2240929,2240961,2240993,2241025,2241057,2241089,2241121,2241153,2239137,2241185,2239169,2241217,2241249,2241281,2241313]),new Uint32Array([2204097,6291456,2211841,6291456,6291456,2211873,6291456,6291456,6291456,6291456,6291456,6291456,2113761,2102593,2211905,2211937]),new Uint32Array([2113569,2194625,2113761,2098177,2194657,2194689,2194721,2115009,2115201,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2255265,2255297,2255329,2255361,2255393,2255425,2255457,2186626,2233505,2255489,2255521,2255553,2255585,2255617,2255649,2240033]),new Uint32Array([23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([0,0,2149122,2149186,2149250,0,6291456,2149314,2209889,2195041,2149121,2149249,2149186,10531586,10497922,0]),new Uint32Array([2239169,2239201,2239233,2239265,2239297,2239329,2239361,2239393,2239425,2239457,2239489,2239521,2107169,2239553,2239585,2239617]),new Uint32Array([2097729,2107745,2107745,2107745,2107745,2133153,2133153,2133153,2133153,2107809,2107809,2162689,2162689,2107681,2107681,2162977]),new Uint32Array([2203393,2203425,2203457,2203489,2203521,2203553,2203585,2203617,2203649,2203681,2203713,0,0,2203745,2203777,2203809]),new Uint32Array([2247201,2247233,2182210,2247265,2247297,2246145,2182274,2247329,2247361,2247393,2247425,2240481,2182338,2214177,2247457,2247489]),new Uint32Array([2226913,2226945,2204321,2226977,2227009,6291456,2227041,6291456,2227073,6291456,2227105,6291456,2227137,6291456,2227169,6291456]),new Uint32Array([23068672,6291456,6291456,6291456,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([14680064,2098209,2112993,2107233,2098241,2110209,2110273,2107553,2113569,2102625,2113761,2107201,2107297,2107329,2114145,2110049]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([2172290,2172354,2172418,2172482,2172546,2172610,2172674,2172738,2172802,2172866,2172930,2172994,2173058,2173122,2173186,2173250]),new Uint32Array([10501859,10501955,10502051,10502147,10502243,10502339,10502435,10502531,10502627,10502723,10502819,10502915,10503011,10503107,10503203,10503299]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,6291456,0]),new Uint32Array([2216993,2217025,2217057,2217089,2217121,2217153,2217185,2217217,2217249,2217281,2217313,2217345,2217377,2217409,2217441,2217473]),new Uint32Array([2256385,2256417,2256449,2256481,2217953,2187138,2256513,2256545,2256577,2256609,2256641,2187202,2187266,2256673,2256705,2256737]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150530]),new Uint32Array([2241921,2254113,2185346,2239649,2185410,2185474,2238273,2254145,2254177,2239745,2254209,2254241,2185538,2185602,2185602,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2148033,2148097,2148161,2148225,2148289,2148353,2148417,2148481]),new Uint32Array([10569441,2243905,0,10503969,10583521,10538049,10538177,2243937,2243969,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,2243777,2243777,2243777,2243777,2144321,2144321,2159841,2159841,2159905,2159905,2144322,2243809,2243809]),new Uint32Array([2251521,2251553,2251585,2251617,2251649,2251681,2251713,2251745,2231233,2241377,2251777,2251809,2251841,2183554,2251873,2251905]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2117121,2117217,2117313,2117409,2117505,2117601,2117697,2117793,2117889,2117985,2118081,2118177,2150786,2150850,2223169,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2188290,2258113,2188354,2188418,2188482,2219681,2258145,2219809,2258177,2258209,2258241,2258273,2219969,2188546,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([2107233,2098241,2110209,2110273,2107553,0,2102625,2113761,2107201,2107297,2107329,2114145,2110049,2114337,2114433,2098177]),new Uint32Array([6291456,6291456,6291456,2145922,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2145986,6291456,6291456]),new Uint32Array([2195105,2195265,2195585,2195073,2195745,2195617,2195457,6291456,2195809,6291456,2195841,6291456,2195873,6291456,2195905,6291456]),new Uint32Array([2107201,2107297,2107329,2114145,2110049,2114337,2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297]),new Uint32Array([2171010,2171074,2171138,2171202,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2142051,2142147,2142243,2142339,2142435,2142531,2142627,2142723,2142819,0,0,0,0,0,0,0]),new Uint32Array([10510019,10510115,10510211,10510307,2223073,2223105,2215681,2223137,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2163202,2163266,2133218,2163330,2160578,2160642,2163394,2163458,2160770,2163522,2160834,2160898,2161474,2161538,2161666,2161730]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2211137,2211169,2211201,2211233,2211265,2211297,2211329,2211361,2211393,2211425,2211457,2211489,2211521,2211553,2211585,0]),new Uint32Array([2243457,2243457,2243489,2243489,2243489,2243489,2243521,2243521,2243521,2243521,2243553,2243553,2243553,2243553,2243585,2243585]),new Uint32Array([2137026,2097506,2132547,2132643,2132739,2164610,2164674,2164738,2164802,2164866,2164930,2164994,2165058,2165122,2165186,2134978]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2195329,2153665,2195361,2195393,2195425,2195457,2195489,2195521,2195521,2195553,2195585,2195617,2195649,2195681,2149185,2245729]),new Uint32Array([2154754,2154818,2154882,2154946,2141986,2155010,2155074,2129154,2155138,2129154,2155202,2155266,2155330,2155394,2155458,2155394]),new Uint32Array([2158722,2158786,0,2158850,2158914,0,2158978,2159042,2159106,2131778,2159170,2159234,2159298,2159362,2159426,2159490]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2197281,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2181890,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2230433,2230465,2230497,2230529,2230561,2230593,2230625,2230657,2230689,2230721,2230753,2230785,2230817,2230849,2230881,2230913]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,23068672,23068672,23068672,0,0,0,0,2145538,2145602,0,6291456]),new Uint32Array([2110049,2114337,2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,2098209,2112993,2107233,2098241]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672]),new Uint32Array([2160066,2160130,2160194,2160002,2160258,2160322,2141378,2138306,2160386,2160450,2160514,2132834,2132930,2133122,2133218,2160578]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,23068672,23068672,6291456,0,0]),new Uint32Array([2210017,6291456,6291456,6291456,6291456,2098241,2098241,2110209,2102625,2113761,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2195489,2195457,2148609,2195105,2195137,2195169,2195201,2195233,2148929,2195265,2144097,2195297,2195329,2153665,2195361,2195393]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2107201,2107297,2107329,2114145,0,2114337,2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297]),new Uint32Array([2147522,2147586,2147650,2147714,2147778,2147842,2147906,2147970,2147522,2147586,2147650,2147714,2147778,2147842,2147906,2147970]),new Uint32Array([6291456,6291456,6291456,2209569,0,0,6291456,6291456,2209601,2209633,2209665,2195009,0,10497923,10498019,10498115]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2238017,6291456,2238049,6291456,6291456,2238081,2238113,2238145,2238177,2238209,2238241,2238273,2238305,2238337,2217345,6291456]),new Uint32Array([2122018,2122114,2151746,2151810,2151874,2151938,2152002,2152066,2152130,2121891,2121987,2122083,2152194,2122179,2152258,2122275]),new Uint32Array([0,23068672,0,0,0,0,0,0,0,2145282,2145346,2145410,6291456,0,2145474,0]),new Uint32Array([2152386,2123139,2105412,2105540,2097986,2100261,2097990,2100421,2100323,2100581,2100741,2105668,2123235,2123331,2123427,2105796]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2225057,2227393,2211649,2227425]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,10538946,10539010,6291456,6291456,2150466]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0]),new Uint32Array([2099910,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2201857,2201889,2144161,2201921,2201953,2201985,2202017,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,2209345,0,2209377,0,2209409,0,2209441]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,10538178,10538242,10538306,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2195425,2195457,2195489,2195521,2195521,2195553,2195585,2195617,2195649,2195681,2149185,2245729,2195201,2195265,2195297,2195617]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0]),new Uint32Array([2192097,6291456,2192129,6291456,2192161,6291456,2192193,2192225,6291456,2192257,6291456,6291456,2192289,6291456,2192321,2192353]),new Uint32Array([6291456,0,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456]),new Uint32Array([2249345,2182786,2249377,2249409,0,2214913,2249441,2249473,2214977,2249505,2249537,2182850,2249569,2182914,2249601,2249633]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2144130,6291456,6291456,6291456,0,0,6291456,6291456,6291456]),new Uint32Array([2199041,6291456,2199073,6291456,2199105,6291456,2199137,6291456,2199169,6291456,2199201,6291456,2199233,6291456,2199265,6291456]),new Uint32Array([2186306,2254945,2254977,2255009,2255041,2255073,2255105,2186370,2186434,2186498,2186562,2250081,2255137,2255169,2255201,2255233]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,0,6291456,0,6291456,6291456]),new Uint32Array([2101249,2100833,2122561,2100097,2122657,2105089,2097985,2100161,2123233,2123329,2100897,2101601,2100129,2101121,2152801,2101761]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2136418,2134018,2134690,2138722,2138338,2165250,2165314,2165378,2165442,2134658,2134562,2165506,2134754,2165570,2165634,2165698]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2104130,2104131,6291456,2111906]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,2213633,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2232417,2232449,2232481,2232513,2232545,2232577,2232609,2232641,2232673,2232705,2232737,2232769,2230561,2232801,2232833,2232865]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672]),new Uint32Array([6291456,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2238689,2238721,2238753,2238785,2238817,2238849,2238881,2238913,2238945,2238977,2239009,2239041,2214977,2239073,2239105,2239137]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2134083,2134179,2134275,2134275,2134371,2134371,2134467,2134563,2134563,2134659,2134755,2134755,2134851,2134851,2134947,2135043]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,10501475,10501571,10501667,10501763]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2217953,2217985,2218017,2218049,2218081,2218113,2218145,2218177,2218209,2218241,2218273,2218305,2218337,2218369,2218401,2218433]),new Uint32Array([2136001,2097153,2136097,2107681,2134561,2132833,2160705,2133153,2162689,2134945,2161217,2135713,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,10503971,10504034,10504067,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2121795,2126786,2126882,2108514,2127074,2130818,2130914,2131010,2131106,2131202,2131298,2110722,2110626,2150594,2150658,2150722]),new Uint32Array([2234529,2242049,2239937,2242081,2242113,2242145,2242177,2242209,2240097,2242241,2238401,2242273,2240129,2232801,2242305,2240161]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,0,0,6291456,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([2245089,2220161,2244289,2244321,2243905,2245121,2223809,2101409,2106209,2245153,2101633,2122593,2245185,2105441,2101953,2100513]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2102465,2098337,2103169,2103297,2103425,2103553,2103681,2103809,2103937,2102530,2102882,2103010,2103138,2103266,2103394,2103522]),new Uint32Array([2233409,2218465,2233441,2233473,2233505,2233537,2233569,2233601,2233633,2233665,2233697,2233729,2233761,2233793,2233825,2233857]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2107329,2190625,2110049,2191553,2203969,2204001,2114337,2110177,2110145,2204033,2192001,2102593,2204065,2195105,2195137,2195169]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([2198401,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2198433,6291456,2198465,6291456,2198497,6291456]),new Uint32Array([2194145,6291456,2194177,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2194209,2194241,6291456,2194273,2194305,6291456]),new Uint32Array([2235745,2235777,2235809,2235841,2220065,2235873,2235905,2235937,2235969,2236001,2236033,2236065,2236097,2236129,2236161,2236193]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,2144194,2144258,2144322,2144386,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2195329,2153665,2195361,2195393,2195425,2195457,2195489,2195265,2195521,2195553,2195585,2195617,2195649,2195681,2149185,2245697]),new Uint32Array([10491716,10491844,10491972,10492100,10492228,10492356,10492484,10492612,0,0,0,0,0,0,0,0]),new Uint32Array([2225953,6291456,2225985,6291456,2226017,6291456,2226049,6291456,2226081,6291456,2226113,6291456,2226145,6291456,2226177,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,0,0,6291456,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2227457,6291456,6291456,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2198785,6291456,2198817,6291456,2198849,6291456,2198881,6291456,2198913,6291456,2198945,6291456,2198977,6291456,2199009,6291456]),new Uint32Array([2243105,2243105,2243137,2243137,2243137,2243137,2243169,2243169,2243169,2243169,2243201,2243201,2243201,2243201,2243233,2243233]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,6291456,23068672]),new Uint32Array([2190977,6291456,2191009,6291456,2191041,6291456,2191073,6291456,2191105,6291456,2191137,6291456,2191169,6291456,2191201,6291456]),new Uint32Array([2207073,6291456,2207105,6291456,2207137,6291456,6291456,6291456,6291456,6291456,2146946,2206305,6291456,6291456,2143106,6291456]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([2149185,2245697,2148609,2195105,2195137,2195169,2195201,2195233,2148929,2195265,2144097,2195297,2195329,2153665,2195361,2195393]),new Uint32Array([2195489,2195265,2195521,2195553,2195585,2195617,2195649,2195681,2149185,2245697,2148609,2195105,2195137,2195169,2195201,2195233]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,2146050,6291456,6291456,6291456,6291456,2146114,6291456,6291456,6291456,6291456,2146178,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2102340,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10485857]),new Uint32Array([2118369,2213761,2213793,2213825,2213857,2213889,2118465,2213921,2213953,2213985,2214017,2119041,2214049,2214081,2214113,2214145]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([2115009,2110337,2115201,2115297,2245633,2245665,0,0,2148609,2195105,2195137,2195169,2195201,2195233,2148929,2195265]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,0,0,0,0]),new Uint32Array([2102561,2102625,0,0,2103297,2103425,2103553,2103681,2103809,2103937,10598561,2209985,10504033,10491329,10491425,2114145]),new Uint32Array([2195937,6291456,2195969,6291456,2196001,6291456,2196033,6291456,2196065,6291456,2196097,6291456,2196129,6291456,2196161,6291456]),new Uint32Array([2243841,2243841,2243873,2243873,2159969,2159969,2159969,2159969,2097217,2097217,2159554,2159554,2159618,2159618,2159682,2159682]),new Uint32Array([2254273,2185666,2254305,2254337,2254369,2185730,2254401,2254433,2254465,2254497,2254529,2185794,2254561,2254593,2254625,2254657]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2213697]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2102561,2102465,2098337,2103169,2103297,2103425,2103553,2103681,2103809,2103937,10503969,10583521,10633217,10504033,10633249,10538177]),new Uint32Array([2118369,2118465,2118561,2118657,2118753,2118849,2118945,2119041,2119137,2119233,2119329,2119425,2119521,2119617,2119713,2119809]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,2220193,6291456,2119233,2220225,2220257,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,0,23068672,23068672,0,0,0,0,0,23068672,23068672,23068672,23068672]),new Uint32Array([0,0,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2097281,2107649,2097729,2107809,0,2097601,2162977,2107745,2135137,2097505,2107617,2097185,2097697,2137633,2097633,2097441]),new Uint32Array([0,23068672,23068672,18923522,23068672,18923586,18923650,18885955,18923714,18886051,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2232897,2232929,2232961,2232993,2233025,2233057,2233089,2233121,2233153,2233185,2233217,2233249,2233281,2233313,2233345,2233377]),new Uint32Array([2114337,2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([2226337,6291456,2226369,6291456,2226401,6291456,2226433,6291456,6291456,6291456,6291456,2226465,6291456,2204225,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2242305,2242337,2218177,2187330,2256769,2256801,2256833,2256865,2187394,2187458,2256897,2256929,2256961,2187522,2256993,2242369]),new Uint32Array([2110371,2110467,2102468,2110563,2110659,2110755,2110851,2110947,2111043,2111139,2111235,2111331,2111427,2111523,2111619,2102466]),new Uint32Array([2103297,2103425,2103553,2103681,2103809,2103937,2102561,2102465,2098337,2103169,2103297,2103425,2103553,2103681,2103809,2103937]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2149762,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2192897,6291456,2192929,6291456,2192961,6291456,2192993,6291456,2193025,6291456,2193057,6291456,2193089,6291456,2193121,6291456]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2207681,6291456,2207713,6291456,2207745,6291456,2207777,6291456,2207809,6291456,2207841,6291456,2207873,6291456,2207905,6291456]),new Uint32Array([2161794,2162050,2140514,2162114,2162178,2097666,2097186,2097474,2163586,2134306,2163650,2163714,2138018,2163778,2162306,2162370]),new Uint32Array([2237153,2237185,2237217,2237249,2237281,2237313,2237345,2217121,2237377,2237409,2237441,2237473,2237505,2237537,2237569,2237601]),new Uint32Array([2249665,2249697,2249729,2249761,2249793,2249825,2249857,2249889,2249921,2182978,2249953,2249985,2250017,2250049,2231201,2183042]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,2148546,2148610,2148674,0,6291456,2148738,2209473,2209505,2148545,2148673,2148610,10497634,2144097,10497634]),new Uint32Array([2208193,6291456,2208225,6291456,2208257,6291456,2208289,6291456,2208321,6291456,2208353,6291456,2208385,6291456,2208417,6291456]),new Uint32Array([2155522,2155586,0,2155650,2155714,2155778,2107460,0,2155842,2155906,2155970,2127170,2156034,2156098,2128130,2156162]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([2103809,2103937,2102561,2102465,2098337,2103169,2103297,2103425,2103553,2103681,2103809,2103937,2102561,2102465,2098337,2103169]),new Uint32Array([23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0]),new Uint32Array([2102625,2102626,2102627,2150146,2102593,2102594,2102595,2102596,2150210,2110337,2111714,2111715,2107297,2107233,2098241,2107329]),new Uint32Array([2241825,2185026,2185090,2185154,2185218,2253921,2253953,2253953,2241857,2242689,2253985,2254017,2254049,2185282,2254081,2231777]),new Uint32Array([0,0,0,0,10531586,10497251,2148673,2143329,2194977,2148993,2195009,0,2195041,0,2195073,2149249]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2196929,2196993,2197313,2197409,2197441,2197441,2197697,2197921,2202369,0,0,0,0,0,0,0]),new Uint32Array([2183746,2252321,2252353,2252385,2252417,2233409,2252449,2183810,2183874,2183938,2252481,2184002,2252513,2252545,2252577,2252609]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2102625,2102625,2107297,2107297,6291456,2114145,2149954,6291456,6291456,2114337,2114433,2098177,2098177,2098177,6291456,6291456]),new Uint32Array([2107233,2098241,2110209,2110273,2107553,2113569,2102625,2113761,2107201,2107297,2107329,2114145,2110049,2114337,2114433,2098177]),new Uint32Array([2164098,2132834,2132930,2133122,2133218,2164162,2160770,2133922,2132866,2132962,2107746,2133474,2133154,2133890,2133794,2139266]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([2107553,2113569,2102625,2113761,2107201,2107297,2107329,2114145,2110049,2114337,2114433,2098177,2098305,2110177,2110145,2102593]),new Uint32Array([2196353,2196385,2196417,2196449,2196481,2196513,2196545,2196577,2196609,2196641,2196673,2196705,2196737,2196769,2196801,2196833]),new Uint32Array([2160642,2160706,2160770,2160834,2160898,2133922,2132866,2132962,2107746,2133474,2160962,2133154,2133890,2133794,2139266,2134082]),new Uint32Array([2102561,2102465,2098337,2103169,2103297,2103425,2103553,2103681,2103809,2103937,10598561,2209985,10504033,10491329,10491425,0]),new Uint32Array([0,0,0,0,0,2227361,6291456,6291456,2190177,2190753,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,4292673,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2195777]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([10598465,2098209,2112993,2107233,2098241,2110209,2110273,2107553,2113569,2102625,2113761,2107201,2107297,2107329,2114145,2110049]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([2204545,2192065,2204577,2204609,2192257,2204641,2194401,2192385,2204673,2192417,2194433,2115297,2204705,2204737,2192513,2195265]),new Uint32Array([2244801,2166241,2166241,2166305,2166305,2244833,2244833,2166369,2166369,2159553,2159553,2159553,2159553,2097281,2097281,2107649]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2227489,2227521,2227553,2227585,2227617,2227649,2227681,2227713,2227745,2227777,2227809,2227841,2227873,2227905,2227937,2227969]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,23068672,0,0,0,0,23068672]),new Uint32Array([2148929,2195265,2144097,2195297,2195329,2153665,2195361,2195393,2195425,2195457,2195489,2195521,2195521,2195553,2195585,2195617]),new Uint32Array([2220641,2115969,2116065,2220673,2220705,2116161,2220737,2116257,2116353,2220769,2116449,2116545,2116641,2116737,2116833,0]),new Uint32Array([2214177,2214209,2214241,2214273,2214305,2214337,2214369,2119233,2214401,2214433,2214465,2214497,2214529,2214561,2214593,2119809]),new Uint32Array([2238113,2241633,2241665,2241697,2241729,2241761,2238145,2241793,2241825,2241857,2241889,2241921,2241953,2239809,2241985,2242017]),new Uint32Array([2110049,2114337,2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,2098209,0,2107233,2098241]),new Uint32Array([2162370,2162434,2137442,2162498,2162562,2139042,2133666,2160930,2137026,2162626,2139810,2162690,2162754,2162818,10520579,10520675]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147009,2147073,2147137,2147201,2147265,2147329,2147393,2147457]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2144450,2144514,2144578,2144642,2144706,2144770,2144834,2144898]),new Uint32Array([23068672,23068672,0,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,16777216,16777216,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2102338,2102339,6291456,2109698,2109699,6291456,6291456,6291456,6291456,10538050,6291456,10538114,6291456]),new Uint32Array([6291456,2192673,6291456,2192705,6291456,2192737,6291456,2192769,6291456,2192801,6291456,2192833,6291456,6291456,2192865,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2195585,2195617,2195649,2195681,2149185,2245697,2148609,2195105,2195137,2195169,2195201,2195233,2148929,2195265,2144097,2195297]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18924098,23068672,23068672,23068672,0,6291456,6291456]),new Uint32Array([2210113,2210145,2210177,2210209,2210241,2210273,2210305,2210337,2210369,2210401,2210433,2210465,2210497,2210529,2210561,2210593]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,23068672]),new Uint32Array([0,0,0,0,0,0,0,2202081,0,0,0,0,0,2202113,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2165762,2164610,2164674,2164738,2164802,2164866,2164930,2164994,2165058,2165122,2165186,2134978,2136418,2134018,2134690,2138722]),new Uint32Array([2208449,6291456,2208481,6291456,2208513,6291456,2208545,6291456,2208577,6291456,2208609,6291456,2208641,6291456,2208673,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2174338,2174402,2174466,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2218305,2142561,2246529,2246561,2246593,2246625,2120097,2119329,2246657,2246689,2246721,2246753,0,0,0,0]),new Uint32Array([2200289,6291456,2200321,6291456,2200353,6291456,2200385,6291456,2200417,6291456,2200449,6291456,2200481,6291456,2200513,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,2143426,2143426,2143426,2143490,2143490,2143490,2143554,2143554,2143554,2192609,6291456,2192641]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([10633377,2098209,2112993,2107233,2098241,2110209,2110273,2107553,2113569,2102625,2113761,2107201,2107297,2107329,2114145,2110049]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2213729,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2208897,2208929,2208961,2208993,2209025,2209057,2209089,2209121]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,0,0,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,23068672,6291456]),new Uint32Array([2200033,6291456,2200065,6291456,2200097,6291456,2200129,6291456,2200161,6291456,2200193,6291456,2200225,6291456,2200257,6291456]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,23068672,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2219457,2219489,2219521,2219553,2219585,2219617,2219649,2219681,2219713,2219745,2219777,2219809,2219841,2219873,2219905,2219937]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2097185,2097697,2097697,2097697,2097697,2137633,2137633,2137633,2137633,2097377,2097377,2097377,2097377,2097601,2097601,2097217]),new Uint32Array([2246209,2246241,2216577,2246273,2246305,2246337,2246369,2246401,2246433,2118369,2118561,2246465,2223457,2222849,2223489,2246497]),new Uint32Array([2097217,2097505,2097505,2097505,2097505,2166210,2166210,2166274,2166274,2166338,2166338,2097858,2097858,0,0,2097152]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0]),new Uint32Array([2229025,2229057,2229089,2229121,2229153,2229185,2229217,2229249,2229281,2229313,2229345,2229377,2229409,2229441,2229473,2229505]),new Uint32Array([2100901,2105924,2123523,2101123,2123619,2152450,2152514,2100674,2152578,2123715,2123811,2101061,2123907,2106052,2101221,2124003]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2098241,2110209,2191713,2107553,2113569,2102625,2113761,2107201,2107297,2107329,2114145,6291456,2110049,2193921,2114337,2098177]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2166402,2166466,2166530,2166594,2166658,2166722,2166786,2166850,2166914,2166978,2167042,2167106,2167170,2167234,2167298,2167362]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2230945,2230977,2231009,2231041,2231073,2231105,2231137,2231169,2231201,2231233,2231265,2231297,2231329,2231361,2231393,2231425]),new Uint32Array([2189569,6291456,2189601,6291456,2189633,6291456,2189665,6291456,2189697,6291456,2189729,6291456,2189761,6291456,2189793,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,23068672,23068672,6291456]),new Uint32Array([2110145,2102593,2115009,2110337,2115201,2115297,2098209,2112993,2107233,2098241,2110209,2110273,2107553,2113569,2102625,2113761]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,0,0]),new Uint32Array([2098209,2110209,2110049,2110337,2191745,2113569,2107201,2107297,2107329,2114145,2114337,2098305,2110177,0,0,0]),new Uint32Array([2202401,2202433,2202465,2202497,2202529,2202561,2202593,2202625,2202657,2202689,2202721,2202753,2202145,2202785,2202817,2202849]),new Uint32Array([2110209,2110273,0,2107329,2110049,2157761,2157953,2158017,2158081,2102625,6291456,2110275,2195457,2195137,2195137,2195457]),new Uint32Array([2205793,6291456,2205825,6291456,2205857,6291456,2205889,6291456,2205921,6291456,2205953,6291456,2205985,6291456,2206017,6291456]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,18874368,18874368,18874368,0,0]),new Uint32Array([2167426,2167490,2167554,2167618,2167682,2167746,2167810,2167874,2167938,2168002,2168066,2168130,2168194,2168258,2168322,2168386]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2136001,2097153,2136097,0,2134561,2132833,2160705,2133153,0,2134945,0,2135713,0,0,0,0]),new Uint32Array([0,2199297,6291456,2199329,6291456,2199361,6291456,2199393,6291456,2199425,6291456,2199457,6291456,2199489,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2128035,2127394,2128131,2128227,2128323,2127490,2128419,2107331,2107332,2127202,2128515,2128611,2128707,2098179,2098181,2098182]),new Uint32Array([23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,23068672,6291456,2145730,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,0,0]),new Uint32Array([10498403,10498499,2107233,2149826,6291456,10498595,10498691,2191777,6291456,2149890,2107553,2113569,2113569,2113569,2113569,2190177]),new Uint32Array([2222337,2222369,2222401,2222433,2222465,2222497,2222529,2222561,2222593,2222625,2222657,2222689,2222721,2222753,2222785,0]),new Uint32Array([2242977,2242977,2243009,2243009,2243009,2243009,2243041,2243041,2243041,2243041,2243073,2243073,2243073,2243073,2243105,2243105]),new Uint32Array([6291456,6291456,2098337,2103169,10531586,2153665,6291456,6291456,10531650,2102465,2110049,6291456,2108355,2108451,2108547,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([2215617,2215649,2215681,2215713,2215745,2215777,2215809,2119905,2215841,2119329,2119617,2215873,2215905,2215937,2215969,2216001]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,0,0,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2223393,2121537,2223425,2153505,2222817,2222849,2222881,2223457,2223489,2223521,2223553,2120961,2121057,2121153,2121249,2121345]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([0,10538049,10633505,10633089,10633313,10633345,10633121,10633537,10491329,10491425,10633153,10598561,10569441,2244577,2220161,10498433]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2195649,2195681,2149185,2245729,2195201,2195265,2195297,2195617,2195489,2195457,2195873,2195873,0,0,2102561,2102465]),new Uint32Array([2212737,6291456,2212769,6291456,2212801,6291456,2212833,6291456,2212865,6291456,2212897,6291456,2212929,6291456,2212961,6291456]),new Uint32Array([0,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456]),new Uint32Array([2223585,2150914,2150978,2151042,2151106,2151170,2108418,2151234,2150690,2151298,2151362,2151426,2151490,2151554,2151618,2151682]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2237633,2237665,2237697,2237729,2237761,2237793,2237825,2237857,2217921,2237889,2218017,2237921,2237953,2237985,6291456,6291456]),new Uint32Array([2115201,0,2098209,2112993,2107233,2098241,2110209,2110273,2107553,2113569,2102625,2113761,2107201,2107297,2107329,2114145]),new Uint32Array([2221825,2221857,2221889,2221921,2221953,2221985,2222017,2222049,2222081,2222113,2222145,2222177,2222209,2222241,2222273,2222305]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([0,2107649,2097729,0,2097377,0,0,2107745,0,2097505,2107617,2097185,2097697,2137633,2097633,2097441]),new Uint32Array([10554498,2165954,10520578,6291456,10520674,0,10520770,2132546,10520866,2132642,10520962,2132738,10521058,2166018,10554690,2166146]),new Uint32Array([2129506,2129602,2129698,2129794,2129890,2129986,2130082,2130178,2130274,2129379,2129475,2129571,2129667,2129763,2129859,2129955]),new Uint32Array([10503011,10503107,10503203,10503299,10503395,10503491,10503587,10503683,10503779,10503875,2141859,2107233,2098177,2155778,2181442,6291456]),new Uint32Array([2144097,2195297,2195329,2153665,2195361,2195393,2195425,2195457,2195489,2195265,2195521,2195553,2195585,2195617,2195649,2195681]),new Uint32Array([2221345,2221377,2221409,2221441,0,2221473,2221505,2221537,2221569,2221601,2221633,2221665,2221697,2221729,2221761,2221793]),new Uint32Array([10485857,6291456,2220161,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2217505,2217537,2217569,2121633,2121729,2217601,2217633,2217665,2217697,2217729,2217761,2217793,2217825,2217857,2217889,2217921]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10532290,10532354,10532418,10532482,10532546,10532610,6291456,6291456]),new Uint32Array([6291456,2148673,6291456,2194977,6291456,2148993,6291456,2195009,6291456,2195041,6291456,2195073,6291456,2149249,0,0]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,23068672,23068672]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064]),new Uint32Array([2177602,2177666,2177730,2177794,2177858,2177922,2177986,2178050,2178114,2178178,2178242,2178306,2178370,2178434,2178498,2178562]),new Uint32Array([2233889,2214753,2233921,2233953,2233985,2234017,2234049,2234081,2234113,2234145,2214241,2234177,2234209,2234241,2234273,2234305]),new Uint32Array([2187586,2187650,2257025,2257057,2257089,2187714,2257121,2257153,2257185,2257217,2257249,2257281,2257313,2187778,2257345,2257377]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2132835,2132931,2132931,2133027,2133123,2133219,2133315,2133411,2133507,2133507,2133603,2133699,2133795,2133891,2133987,2134083]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672]),new Uint32Array([0,10569410,10569474,10569538,10569602,10569666,10569730,10569794,10569858,10569922,10569986,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,2224993,6291456,2225025,6291456,2225057,6291456,2225089,6291456,2225121,6291456,2225153,6291456,2225185,6291456]),new Uint32Array([2215297,2183106,2183106,2250081,2250113,2250113,2250145,2183170,2183234,2250177,2250209,2250241,2250273,2250305,2250337,2250369]),new Uint32Array([6291456,2143618,2143618,2143618,2193153,6291456,2193185,2193217,2193249,6291456,2193281,6291456,2193313,6291456,2193345,6291456]),new Uint32Array([2201441,2201473,2201505,2201537,2157185,2201569,2157217,2201601,2201633,2201665,2201697,2201729,2201761,2201793,2157377,2201825]),new Uint32Array([0,0,2137347,2137443,2137539,2137635,2137731,2137827,2137827,2137923,2138019,2138115,2138211,2138211,2138307,2138403]),new Uint32Array([2195201,2195265,2195297,2195617,2195489,2195457,2148609,2195105,2195137,2195169,2195201,2195233,2148929,2195265,2144097,2195297]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2190081,6291456,2190113,6291456,2190145,6291456,2190177,6291456,2190209,6291456,2190241,6291456,2190273,6291456,2190305,6291456]),new Uint32Array([0,0,0,2157186,2157250,2157314,2157378,2157442,0,0,0,0,0,2157506,23068672,2157570]),new Uint32Array([10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,2097152,4194304,4194304,0,0]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2104516,2104644,2104772,2122371,2104900,2122467,2122563,2100101,2105028,2122659,2122755,2122851,2105156,2105284,2122947,2123043]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2210049,2210081,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2242849,2242849,2242881,2242881,2242881,2242881,2242913,2242913,2242913,2242913,2242945,2242945,2242945,2242945,2242977,2242977]),new Uint32Array([6291456,0,6291456,2145154,0,6291456,2145218,0,6291456,6291456,0,0,23068672,0,23068672,23068672]),new Uint32Array([2188609,2188641,2188673,2188705,2188737,2188769,2188801,2188833,2188865,2188897,2188929,2188961,2188993,2189025,2189057,2189089]),new Uint32Array([2241633,2253665,2253697,2253729,2253761,2184642,2253793,2184706,2232961,2184770,2253825,2184834,2184898,2184962,2253857,2253889]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([2241345,2238049,2231233,2241377,2241409,2215937,2233409,2236033,2241441,2241473,2239393,2241505,2239425,2241537,2241569,2241601]),new Uint32Array([2197377,2197409,2197441,2197473,2197505,2197537,2197569,2197601,2197633,2197665,2197697,2197729,2197761,2197793,2197825,2197857]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,0,23068672,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([2175554,2175618,2175682,2175746,2175810,2175874,2175938,2176002,2176066,2176130,2176194,2176258,2176322,2176386,2176450,2176514]),new Uint32Array([2098337,2103169,2103297,2103425,2103553,2103681,2103809,2103937,2102561,2102465,2098337,2103169,2103297,2103425,2103553,2103681]),new Uint32Array([2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,2102561,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([10537410,10497539,2148866,2148930,2148994,0,6291456,2149058,2209537,2194977,2148865,2148993,2148930,10497635,10497731,10497827]),new Uint32Array([2162977,2097633,2097633,2097633,2097633,2134561,2134561,2134561,2134561,2097153,2097153,2097153,2097153,2134945,2134945,2134945]),new Uint32Array([0,2244001,2244033,10632673,10632673,10491329,10491425,10632705,10632737,2141857,2141921,2244161,2244193,2244225,2244257,2210049]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2102017,2100385,2098049,2223681,2125345,2125537,2223713,2100353,2102049,2098145,2102177,2098017,2100481,2100705,2150369,2150433]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2162818,2163842,2163906,2137026,2138082,2162626,2139810,2160066,2160130,2163970,2160194,2164034,2160322,2141378,2138306,2160386]),new Uint32Array([2124771,2124867,2124963,2106436,2125059,2125155,2125251,2101861,2106564,2102018,2102021,2106690,2106692,2098052,2125347,2125443]),new Uint32Array([2212225,6291456,2212257,6291456,2212289,6291456,2212321,6291456,2212353,6291456,2212385,6291456,2212417,6291456,2212449,6291456]),new Uint32Array([2164034,2160386,2164098,2133218,2164162,2160770,2164418,2134082,2164482,2134754,2164546,2162050,2140514,2097666,2138018,2164290]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150274,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,6291456,23068672,23068672,6291456,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2223841,6291456,2223873,6291456,2223905,6291456,2223937,6291456,2223969,6291456,2202369,6291456,2224001,6291456,2224033,6291456]),new Uint32Array([10506947,10507043,10507139,10507235,10507331,10507427,10507523,10507619,10507715,10507811,10507907,10508003,10508099,10508195,10508291,10508387]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2147010,2147074,2147138,2147202,2147266,2147330,2147394,2147458,2147010,2147074,2147138,2147202,2147266,2147330,2147394,2147458]),new Uint32Array([2204769,6291456,2204801,6291456,2204833,6291456,2204865,6291456,2204897,6291456,2204929,6291456,2204961,6291456,2204993,6291456]),new Uint32Array([2136291,2136387,2136483,2136579,2136579,2136675,2136675,2136771,2136771,2136867,2107715,2136963,2137059,2137155,2133443,2137251]),new Uint32Array([2200801,6291456,2200833,6291456,2200865,6291456,2200897,6291456,2200929,6291456,2200961,6291456,2200993,6291456,2201025,6291456]),new Uint32Array([23068672,18885986,23068672,23068672,23068672,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([2127202,2153602,2153666,2129250,2153730,2153794,2153858,2153922,2107235,2107204,2153986,2154050,2154114,2154178,2154242,2107522]),new Uint32Array([2254689,2254721,2185858,2185922,2254753,2185986,2254785,2186050,2254817,2254849,2239937,2186114,2186178,2254881,2186242,2254913]),new Uint32Array([2243745,2243745,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2195201,2195233,2148929,2195265,2144097,2195297,2195329,2153665,2195361,2195393,2195425,2195457,2195489,2195265,2195521,2195553]),new Uint32Array([0,2107649,2097729,2107809,0,2097601,2162977,2107745,2135137,2097505,0,2097185,2097697,2137633,2097633,2097441]),new Uint32Array([6291456,0,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2141667,2141763,2097284,2107588,2107716,2107844,2107972,2097444,2097604,2097155,10485778,10486344,2108100,6291456,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,23068672,6291456,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,6291456,6291456,23068672,23068672,23068672,6291456,0,0,0,0,0]),new Uint32Array([2098081,2101249,2100833,2122561,2100097,2122657,2105089,2097985,2100161,2123233,2123329,2100897,2101601,2100129,2101121,2152801]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456]),new Uint32Array([2107298,2156226,2128803,2156290,2153858,2128899,2128995,2156354,0,2129091,2156418,2156482,2156546,2156610,2129187,2129283]),new Uint32Array([6291456,2192385,2192417,2192449,6291456,2192481,6291456,2192513,2192545,6291456,6291456,6291456,2192577,6291456,6291456,6291456]),new Uint32Array([2195585,2195617,2195649,2195681,2149185,2245729,2195201,2195265,2195297,2195617,2195489,2195457,2148609,2195105,2195137,2195169]),new Uint32Array([2248193,2248225,2248257,2248289,2248321,2248353,2248353,2240737,2248385,2248417,2248449,2248481,2238913,2248513,2248545,2248577]),new Uint32Array([23068672,6291456,23068672,23068672,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2180674,2180738,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2107329,2114145,2110049,2114337,2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,2098209,2112993]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,0,0,0,0,0,0,6291456,0]),new Uint32Array([2141187,2141283,2141379,2140899,2135427,2134467,2141475,2141571,0,0,0,0,0,0,0,0]),new Uint32Array([2235265,2235297,2235329,2235361,2235393,2235425,2235457,2235489,2235521,2235553,2235585,2235617,2235649,2235681,2235713,2230561]),new Uint32Array([0,0,23068672,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2108228,2098372]),new Uint32Array([10504163,10504259,10504355,10504451,10504547,10504643,10504739,10504835,10504931,10505027,10505123,10505219,10505315,10505411,10505507,10505603]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2099332,2099524,2099334,2099526,2099718]),new Uint32Array([10505699,10505795,10505891,10505987,10506083,10506179,10506275,10506371,10506467,10506563,10506659,10506755,10506851,10492868,10492996,0]),new Uint32Array([2231457,2231489,2231521,2231553,2217377,2231585,2231617,2231649,2231681,2231713,2231745,2231777,2231809,2231841,2231873,2231905]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2243233,2243233,2243265,2243265,2243297,2243297,2243329,2243329,2243361,2243361,2243393,2243393,2243425,2243425,2243457,2243457]),new Uint32Array([2195297,2195489,2195521,6291456,2195265,2195201,6291456,2196193,6291456,2195521,2196225,6291456,6291456,2196257,2196289,2196321]),new Uint32Array([2216033,2216065,2216097,2216129,2119521,2119425,2216161,2216193,2216225,2216257,2216289,2216321,2216353,2216385,2216417,2216449]),new Uint32Array([2247521,2247553,2246689,2247585,2247617,2240641,2238785,2238817,2240673,2247649,2247681,2232993,2247713,2238849,2247745,2247777]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([0,0,2097729,0,0,0,0,2107745,0,2097505,0,2097185,0,2137633,2097633,2097441]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2208705,2208737,2208769,2208801,2208833,2208865,0,0]),new Uint32Array([6291456,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,2111811,6291456,6291456,0,0,0,0]),new Uint32Array([2191873,2107297,2098305,2110337,2194753,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2219969,2220001,2220033,2220065,2220097,2220129,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2239169,2230337,2153377,2250753,2250785,2250817,2250849,2250881,2183362,2250913,2250945,2250977,2251009,2251041,2183426,2251073]),new Uint32Array([2148609,2195105,2195137,2195169,2195201,2195233,2148929,2195265,2144097,2195297,2195329,2153665,2195361,2195393,2195425,2195457]),new Uint32Array([2193889,6291456,2193921,6291456,2193953,6291456,2193985,6291456,2194017,6291456,2194049,6291456,2194081,6291456,2194113,6291456]),new Uint32Array([2182594,2182658,2249025,2249057,2249089,2249121,2249153,2249185,0,2249217,2249249,2249249,2182722,2249281,2249313,2232865]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2098209,2188801,2112993,6291456]),new Uint32Array([2140035,2140131,2140227,2140323,2136099,2136291,2140419,2140515,2140611,2140707,2140803,2140899,2140803,2140611,2140995,2141091]),new Uint32Array([6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,23068672,0,23068672,23068672,0,23068672]),new Uint32Array([2115201,2115297,2098209,2112993,2107233,2098241,2110209,2110273,2107553,2113569,2102625,2113761,2107201,2107297,2107329,2114145]),new Uint32Array([2195457,2195489,0,2195521,2195553,2195585,2195617,2195649,2195681,2149185,2195713,2195745,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,2194337,6291456,2194369,2194401,2194433,2194465,6291456,2194497,6291456,2194529,6291456,2194561,6291456,2194593,6291456]),new Uint32Array([2126530,2126626,2125731,2125827,2125923,2126019,2126115,2126211,2126307,2126403,2126499,2126595,2126691,2126787,2126883,2126979]),new Uint32Array([2100385,2098049,2223681,2125345,2125537,2223713,2100353,2102049,2098145,2102177,2098017,2100481,2223745,2223777,2223809,2152322]),new Uint32Array([2097281,2107649,2097729,2107809,2097377,2097601,2162977,2107745,2135137,2097505,0,2097185,2097697,2137633,2097633,2097441]),new Uint32Array([23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2206049,6291456,2206081,6291456,2206113,6291456,2206145,6291456,2206177,6291456,2206209,6291456,2206241,6291456,2206273,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2196865,2196897,2196929,2196961,2196993,2197025,2197057,2197089,2197121,2197153,2197185,2197217,2197249,2197281,2197313,2197345]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,0,0,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2226497,6291456,2226529,6291456,6291456,6291456,2226561,6291456,2226593,6291456,2226625,6291456,2226657,6291456,2226689,6291456]),new Uint32Array([2198529,6291456,2198561,6291456,2198593,6291456,2198625,6291456,2198657,6291456,2198689,6291456,2198721,6291456,2198753,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2178626,2178690,2178754,2178818,2178882,2178946,2179010,2179074,2179138,2179202,2179266,2179330,2179394,2179458,2179522,2179586]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456]),new Uint32Array([2195489,2195521,2195521,2195553,2195585,2195617,2195649,2195681,2149185,2245729,2195201,2195265,2195297,2195617,2195489,2195457]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2226177,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2226209,6291456,2226241,6291456,2226273,2226305,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,2213665]),new Uint32Array([2224801,6291456,2224833,6291456,2224865,6291456,2224897,6291456,2224929,6291456,2224961,6291456,2197697,2197761,23068672,23068672]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,6291456,0,0,0,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([10508483,10508579,10508675,10508771,10508867,10508963,10509059,10509155,10509251,10509347,10509443,10509539,10509635,10509731,10509827,10509923]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2104132,6291456,6291456,6291456]),new Uint32Array([2110273,2204161,2204193,2204225,2191937,2191905,2204257,2204289,2204321,2204353,2204385,2204417,2204449,2204481,2192033,2204513]),new Uint32Array([2234849,2233377,2234881,2234913,2234945,2234977,2235009,2235041,2152321,2235073,2232865,2235105,2235137,2235169,2235201,2235233]),new Uint32Array([0,0,2107553,0,0,2113761,2107201,0,0,2114145,2110049,2114337,2114433,0,2098305,2110177]),new Uint32Array([2119905,2107073,2120097,2107169,2120289,2120385,2120481,2120577,2120673,2223201,2223233,2214753,2223265,2223297,2223329,2223361]),new Uint32Array([2114337,2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,10633025,10633281,10633057,10633569,10632673]),new Uint32Array([0,2201057,2201089,2201121,2201153,2144129,2201185,2201217,2201249,2201281,2201313,2157345,2201345,2157473,2201377,2201409]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0,0,0,0,6291456,0,0]),new Uint32Array([2138338,2165250,2165314,2165378,2165442,2134658,2134562,2165506,2134754,2165570,2165634,2165698,2165762,2134658,2134562,2165506]),new Uint32Array([2168962,2169026,2169090,2169154,2169218,2169282,2169346,2169410,2169474,2169538,2169602,2169666,2169730,2169794,2169858,2169922]),new Uint32Array([2240449,2240481,2240513,2240545,2240577,2240609,2240641,2240673,2238881,2240705,2240737,2240769,2238017,2240801,2240833,2240865]),new Uint32Array([0,0,2221185,2221217,2221249,2221281,2221313,2221345,0,0,2221377,2221409,2221441,0,0,0]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2134082,2134370,2164226,2134466,2161026,2134946,2135042,2161090,2161154,2161218,2135426,2107906,2161282,2135714,2161346,2161410]),new Uint32Array([2214625,2214657,2214689,2214721,2153473,2214753,2214785,2214817,2214849,2214881,2214913,2214945,2214977,2215009,2215041,2215073]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2202145,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2209153,2209185,2209217,2209249,2209281,2209313,0,0]),new Uint32Array([2125539,2106820,2152898,2125635,2106948,2152962,2102181,2100483,2125762,2125858,2125954,2126050,2126146,2126242,2126338,2126434]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,0,0,0,0,0,0,0,10485857]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([2257409,2187842,2257441,2257473,2257505,2257537,2187906,2187970,2257569,2257601,2257633,2188034,2257665,2188098,2242561,2242561]),new Uint32Array([2237633,2248609,2248641,2248673,2248705,2248737,2248769,2248801,2248833,2182530,2248865,2248897,2248929,2245921,2248961,2248993]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2245217,2245249,2245281,10531522,2245313,2245345,2245377,0,2245409,2245441,2245473,2245505,2245537,2245569,2245601,0]),new Uint32Array([2207169,6291456,2207201,6291456,2207233,6291456,2207265,6291456,2207297,6291456,2207329,6291456,2207361,6291456,2207393,6291456]),new Uint32Array([23068672,23068672,23068672,18923778,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,18923842,23068672,23068672]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([10520771,10520867,10520963,10521059,2162882,2162946,2160194,2163010,2160002,2160258,2107650,2163074,2160386,2163138,2160450,2160514]),new Uint32Array([2224321,6291456,2224353,6291456,2224385,6291456,2224417,6291456,2224449,6291456,2224481,6291456,2224513,6291456,6291456,23068672]),new Uint32Array([2206305,6291456,2206337,6291456,2206369,6291456,2206401,6291456,2206433,6291456,2206465,6291456,2206497,6291456,2206529,6291456]),new Uint32Array([2218945,2218977,2219009,2219041,2219073,2219105,2219137,2219169,2219201,2219233,2219265,2219297,2219329,2219361,2219393,2219425]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2133442,2134306,2137826,2137634,2162242,2138018,2164290,2162434,2137442,2164354,2139042,2133666,2160930,2137026,2097506,2160194]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0]),new Uint32Array([2102561,2102465,2098337,2103169,2103297,2103425,2103553,2103681,2103809,2103937,0,0,0,0,0,0]),new Uint32Array([2135713,2136001,2136001,2136001,2136001,2136097,2136097,2136097,2136097,2107617,2107617,2107617,2107617,2097185,2097185,2097185]),new Uint32Array([2168450,2168514,2168578,2168642,2168706,2168770,2168834,2168898,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2187010,2187074,2256033,2256065,2231617,2256097,2256129,2256161,2256193,2256225,2256257,2242145,2256289,2256321,2256353,0]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([0,0,2220801,2220833,2220865,2220897,2220929,2220961,0,0,2220993,2221025,2221057,2221089,2221121,2221153]),new Uint32Array([0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2189825,6291456,2189857,6291456,2189889,6291456,2189921,6291456,2189953,6291456,2189985,6291456,2190017,6291456,2190049,6291456]),new Uint32Array([2098209,2112993,2107233,2098241,2110209,2110273,2107553,2113569,2102625,2113761,2107201,2107297,2107329,2114145,2110049,2114337]),new Uint32Array([0,0,0,0,0,0,0,23068672,0,0,0,0,2144962,2145026,0,2145090]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2134370,2134466,2161026,2134946,2135042,2161090,2161154,2135138,2161218,2135426,2107906,2161282,2135714,2161346,2161410,2136002]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2202049,6291456,6291456,6291456]),new Uint32Array([2102625,2113761,2107201,2107297,2107329,2114145,2110049,2114337,2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337]),new Uint32Array([2199521,6291456,2199553,6291456,2199585,6291456,2199617,6291456,2199649,6291456,2199681,6291456,2199713,6291456,2199745,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456]),new Uint32Array([2251937,2251969,2239297,2183618,2252001,2252033,2252065,2242625,2252097,2252129,2252161,2252193,2183682,2252225,2252257,2252289]),new Uint32Array([2205281,6291456,2205313,6291456,2205345,6291456,2205377,6291456,2205409,6291456,2205441,6291456,2205473,6291456,2205505,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2207425,6291456,2207457,6291456,2207489,6291456,2207521,6291456,2207553,6291456,2207585,6291456,2207617,6291456,2207649,6291456]),new Uint32Array([2210081,2244289,2244321,2244353,2244385,6291456,6291456,10633025,10633057,10538114,10538114,10538114,10538114,10632673,10632673,10632673]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2202177,2202209,2202241,2202273,2202305,2202337,0,0]),new Uint32Array([2195617,2195649,2102625,2098177,2110145,2102593,2195105,2195137,2195489,2195617,2195649,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,23068672,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,2145794,2145858,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,23068672,23068672]),new Uint32Array([2157890,2157954,2158018,2158082,2158146,2158210,2158274,0,2158338,2158402,2158466,2158530,2158594,0,2158658,0]),new Uint32Array([2243617,2243617,2243617,2243617,2243649,2243649,2243681,2243681,2243681,2243681,2243713,2243713,2243713,2243713,2141729,2141729]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,2098209,2112993,2107233,2098241,2110209,2110273]),new Uint32Array([2236673,2236705,2236737,2236769,2236801,2236833,2236865,2236897,2236929,2218625,2236961,2236993,2237025,2237057,2237089,2237121]),new Uint32Array([2234337,2234369,2234401,2234433,2234465,2234497,2234529,2234561,2234593,2234625,2234657,2234689,2234721,2234753,2234785,2234817]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2213249,6291456,2213281,6291456,2213313,6291456,2213345,6291456,2213377,6291456,2213409,6291456,2213441,6291456,2213473,6291456]),new Uint32Array([2225697,6291456,2225729,6291456,2225761,6291456,2225793,6291456,2225825,6291456,2225857,6291456,2225889,6291456,2225921,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2207937,6291456,2207969,6291456,2208001,6291456,2208033,6291456,2208065,6291456,2208097,6291456,2208129,6291456,2208161,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2110145,2102593,2115009,2110337,2115201,2115297,2098209,2112993,2107233,2098241,0,2110273,0,2113569,2102625,2113761]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2195201,2195233,2148929,2195265,2144097,2195297,2195329,2153665,2195361,2195393,2195425,2195457,2195489,2195521,2195521,2195553]),new Uint32Array([6291456,6291456,2118369,2118465,2118561,2118657,2222817,2222849,2222881,2222913,2213857,2222945,2222977,2223009,2223041,2213953]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,2115585,2220289,2220321,2115681,2220353,2220385,2115777,2220417,2115873,2220449,2220481,2220513,2220545,2220577,2220609]),new Uint32Array([2115009,2110337,2115201,2115297,2098209,2112993,0,2098241,2110209,2110273,2107553,0,0,2113761,2107201,2107297]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([0,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2152642,2152706,2101381,2106180,2101541,2124099,2101701,2152770,2124195,2124291,2124387,2124483,2124579,2106308,2124675,2152834]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,6291456,6291456,14680064]),new Uint32Array([6291456,2209921,6291456,6291456,6291456,6291456,6291456,10537986,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2200545,6291456,2200577,6291456,2200609,6291456,2200641,6291456,2200673,6291456,2200705,6291456,2200737,6291456,2200769,6291456]),new Uint32Array([2127586,2127555,2127651,2127747,2127843,2154306,2154370,2154434,2154498,2154562,2154626,2154690,2127938,2128034,2128130,2127939]),new Uint32Array([2097152,0,0,0,2097152,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2198145,6291456,2198177,6291456,2198209,6291456,2198241,6291456,2198273,6291456,2198305,6291456,2198337,6291456,2198369,6291456]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([2110177,2110145,2115009,2098209,2203841,2203873,2203905,2112993,2098241,2110209,2191745,2191777,2203937,2107553,6291456,2107201]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2224545,6291456,2224577,6291456,2224609,6291456,2224641,6291456,2224673,6291456,2224705,6291456,2224737,6291456,2224769,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([0,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2174530,2174594,2174658,2174722,2174786,2174850,2174914,2174978,2175042,2175106,2175170,2175234,2175298,2175362,2175426,2175490]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672,23068672,0,0]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([2238369,6291456,2238401,6291456,6291456,2238433,2238465,6291456,6291456,6291456,2238497,2238529,2238561,2238593,2238625,2238657]),new Uint32Array([10501475,10501571,10501667,10501763,10501859,10501955,10502051,10502147,10502243,10502339,10502435,10502531,10502627,10502723,10502819,10502915]),new Uint32Array([10633121,10633153,10598561,2244577,10633217,10633249,10504033,0,10633281,10633313,10633345,10633377,0,0,0,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0]),new Uint32Array([2242785,2157761,2158081,2158145,2158529,2158593,2242817,2159105,2159169,10598561,2157634,2157698,2131779,2131875,2157762,2157826]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([18886305,18885921,23068672,18886273,18885890,18921313,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18874368]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,23068672,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2211617,6291456,2211649,2211681,2211713,6291456,6291456,2211745,6291456,2211777,6291456,2211809,6291456,2203873,2204449,2203841]),new Uint32Array([0,2097153,2136097,0,2134561,0,0,2133153,0,2134945,0,2135713,0,2243585,0,2245825]),new Uint32Array([2176578,2176642,2176706,2176770,2176834,2176898,2176962,2177026,2177090,2177154,2177218,2177282,2177346,2177410,2177474,2177538]),new Uint32Array([2127075,2127171,2153026,2153090,2127267,2153154,2153218,2127362,2127363,2127459,2153282,2153346,2153410,2153474,2153538,2107076]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147521,2147585,2147649,2147713,2147777,2147841,2147905,2147969]),new Uint32Array([2131586,2131618,2131714,2131587,2131683,2157122,2157122,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2143298,2190497,6291456,2190529,6291456,2190561,6291456,2190593,6291456,2143362,2190625,6291456,2190657,6291456,2190689,6291456]),new Uint32Array([0,0,2227201,6291456,2227233,2204609,2227265,2227297,6291456,2227329,6291456,0,0,0,0,0]),new Uint32Array([2169986,2170050,2170114,2170178,2170242,2170306,2170370,2170434,2170498,2170562,2170626,2170690,2170754,2170818,2170882,2170946]),new Uint32Array([2210625,2210657,2210689,2210721,2210753,2210785,2210817,2210849,2210881,2210913,2210945,2210977,2211009,2211041,2211073,2211105]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,0,0,6291456,6291456]),new Uint32Array([2213505,6291456,2213537,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2213569,6291456,2213601,6291456,23068672]),new Uint32Array([2215585,2245857,2245889,2152449,2118465,2245921,2245953,2223009,2245985,2246017,2246049,2235713,2246081,2246113,2246145,2246177]),new Uint32Array([2136290,2136674,2097666,2097186,2097474,2097698,2107714,2133442,2134306,2133730,2133634,2137826,2137634,2162242,2138018,2162306]),new Uint32Array([2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,2181506,2129154,2181570,2143106,2141955,2181634]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,23068672,0,0,0,0,23068672]),new Uint32Array([2228513,2228545,2228577,2228609,2228641,2228673,2228705,2228737,2228769,2228801,2228833,2228865,2228897,2228929,2228961,2228993]),new Uint32Array([2219617,2231937,2231969,2232001,2232033,2232065,2232097,2232129,2232161,2232193,2232225,2232257,2232289,2232321,2232353,2232385]),new Uint32Array([2107649,2107649,2107649,2244865,2244865,2132833,2132833,2132833,2132833,2160705,2160705,2160705,2160705,2097729,2097729,2097729]),new Uint32Array([2246785,2246817,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([2138499,2138595,2138691,2138787,2138883,2138979,2139075,2139171,2139267,2139363,2139459,2139555,2139651,2139747,2139843,2139939]),new Uint32Array([2202881,2202913,2202945,2202977,2203009,2203041,2203073,2203105,2203137,2203169,2203201,2203233,2203265,2203297,2203329,2203361]),new Uint32Array([2252641,2239329,2236033,2252673,2252705,2252737,2184066,2252769,2252801,2252833,2252865,2241473,2252897,2184130,2252929,2252961]),new Uint32Array([10569441,2243905,0,0,10583521,10503969,10538177,10538049,2244001,10491329,10491425,10632705,10632737,2141857,2141921,10633089]),new Uint32Array([2150018,2110179,2150082,6291456,2115297,6291456,2149185,6291456,2115297,6291456,2107201,2188769,2112993,2107233,6291456,2110209]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2097152,2097152,2097152,2097152,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2171266,2171330,2171394,2171458,2171522,2171586,2171650,2171714,2171778,2171842,2171906,2171970,2172034,2172098,2172162,2172226]),new Uint32Array([2212481,6291456,2212513,6291456,2212545,6291456,2212577,6291456,2212609,6291456,2212641,6291456,2212673,6291456,2212705,6291456]),new Uint32Array([10485857,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10497250,6291456,2098209,6291456,6291456,2097152,6291456,10531522]),new Uint32Array([2193633,6291456,2193665,6291456,2193697,6291456,2193729,6291456,2193761,6291456,2193793,6291456,2193825,6291456,2193857,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,6291456,6291456,0,0,0,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2100961,2123873,2223617,2098113,2123393,2104929,2223649,2105761,2123713,2123809,2124257,2101377,2101697,2124865,2101857,2102017]),new Uint32Array([2239649,2120577,2239681,2239713,2239745,2239777,2239809,2234529,2239841,2239873,2239905,2239937,2239969,2240001,2240001,2240033]),new Uint32Array([2143170,6291456,2143234,2143234,2190337,6291456,2190369,6291456,6291456,2190401,6291456,2190433,6291456,2190465,6291456,2143298]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2206561,6291456,2206593,6291456,2206625,6291456,2206657,6291456,2206689,6291456,2206721,6291456,2206753,6291456,2206785,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,2191457,2191489,6291456,2191521,6291456,2191553,2191585,6291456,2191617,2191649,2191681,6291456,6291456,2191713,2191745]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2204097,2107233,2204129,2189121,2203937]),new Uint32Array([2136001,2097153,2136097,2107681,2134561,2132833,2160705,2133153,2162689,2134945,2161217,2135713,2245761,2243585,2245793,2245825]),new Uint32Array([0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2102625,2113761,2107201,2107297,2107329,0,2110049,0,0,0,2098305,2110177,2110145,2102593,2115009,2110337]),new Uint32Array([2255681,2255713,2255745,2255777,2186690,2186754,2186818,2255809,2255841,2255873,2255905,2186882,2255937,2186946,2255969,2256001]),new Uint32Array([2226721,6291456,2226753,6291456,2226785,6291456,2226817,6291456,2226849,6291456,2194625,2203937,2204193,2226881,2204257,6291456]),new Uint32Array([2242337,2240225,2242369,2242401,2242433,2242465,2242497,2240289,2238305,2242529,2240321,2242561,2240353,2242593,2220097,2156738]),new Uint32Array([0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2253313,2241569,2253345,2184450,2253377,2253409,2184514,2184578,2253441,2253473,2253505,2253537,2253569,2253569,2253601,2253633]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456]),new Uint32Array([2240065,2240097,2240129,2240161,2240193,2240225,2240257,2238433,2240289,2240321,2240353,2240385,2156674,2240417,0,0]),new Uint32Array([2173314,2173378,2173442,2173506,2173570,2173634,2173698,2173762,2173826,2173890,2173954,2174018,2174082,2174146,2174210,2174274]),new Uint32Array([2115585,2115681,2115777,2115873,2115969,2116065,2116161,2116257,2116353,2116449,2116545,2116641,2116737,2116833,2116929,2117025]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456]),new Uint32Array([2189121,2189153,2189185,2189217,2189249,2189281,2189313,6291456,2189345,2189377,2189409,2189441,2189473,2189505,2189537,4240258]),new Uint32Array([2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,2098209,2112993,2107233,2098241,2110209,2110273,2107553,2113569]),new Uint32Array([2135043,2135139,2135139,2135235,2135331,2135427,2135523,2135523,2135619,2135715,2135811,2135907,2136003,2136003,2136099,2136195]),new Uint32Array([10503395,10503491,10503587,10503683,10503779,10503875,2098209,2112993,2107233,2098241,2110209,2110273,2107553,2113569,2102625,2113761]),new Uint32Array([6291456,6291456,2225217,6291456,2225249,6291456,2225281,6291456,2225313,6291456,2225345,6291456,2225377,6291456,2225409,6291456]),new Uint32Array([18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2181698,2181762,2181826,6291456,6291456,6291456]),new Uint32Array([2103650,2103778,2103906,2104034,10500611,10500707,10500803,10500899,10500995,10501091,10501187,10501283,10501379,10491332,10491460,10491588]),new Uint32Array([23068672,23068672,18923906,23068672,23068672,23068672,23068672,18923970,23068672,23068672,23068672,23068672,18924034,23068672,23068672,23068672]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2251105,2251137,2251169,2251201,2251233,2251265,2251297,2251329,2239201,2251361,2183490,2251393,2251425,2251457,2251489,2239265]),new Uint32Array([2194785,6291456,2194817,6291456,2194849,6291456,2194881,6291456,0,0,10532674,6291456,6291456,6291456,10583521,2194945]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2136002,2141282,2161602,2136098,2161858,2161922,2161986,2162050,2140514,2136578,2136290,2136674,2097666,2097346,2097698,2107714]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2193377,6291456,2193409,6291456,2193441,6291456,2193473,6291456,2193505,6291456,2193537,6291456,2193569,6291456,2193601,6291456]),new Uint32Array([2130051,2130147,2130243,2130339,2130435,2130531,2130627,2130723,2130819,2130915,2131011,2131107,2131203,2131299,2131395,2131491]),new Uint32Array([0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2205025,6291456,2205057,6291456,2205089,6291456,2205121,6291456,2205153,6291456,2205185,6291456,2205217,6291456,2205249,6291456]),new Uint32Array([2197889,6291456,2197921,6291456,2197953,6291456,2197985,6291456,2198017,6291456,2198049,6291456,2198081,6291456,2198113,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2111907,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2159746,2159746,2159810,2159810,2159874,2159874,2159938,2159938,2159938,2160002,2160002,2160002,2108129,2108129,2108129,2108129]),new Uint32Array([2134945,2135137,2135137,2135137,2135137,2161217,2161217,2161217,2161217,2097441,2097441,2097441,2097441,2135713,2135713,2135713]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2225441,6291456,2225473,6291456,2225505,6291456,2225537,6291456,2225569,6291456,2225601,6291456,2225633,6291456,2225665,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2224065,6291456,2224097,6291456,2224129,6291456,2224161,6291456,2224193,6291456,2224225,6291456,2224257,6291456,2224289,6291456]),new Uint32Array([2199777,6291456,2199809,6291456,2199841,6291456,2199873,6291456,2199905,6291456,2199937,6291456,2199969,6291456,2200001,6291456]),new Uint32Array([2107329,2114145,2110049,2114337,2114433,0,2098305,2110177,2110145,2102593,2115009,2110337,2115201,0,2098209,2112993]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2205537,6291456,2205569,6291456,2205601,6291456,2205633,6291456,2205665,6291456,2205697,6291456,2205729,6291456,2205761,6291456]),new Uint32Array([2156802,2156866,2242625,2242657,2242689,2156930,2156994,2157058,2242721,2242753,0,0,0,0,0,0]),new Uint32Array([2211969,6291456,2212001,6291456,2212033,6291456,2212065,6291456,2212097,6291456,2212129,6291456,2212161,6291456,2212193,6291456]),new Uint32Array([2110209,2110273,2107553,2113569,2102625,2113761,2107201,2107297,2107329,2114145,2110049,2114337,2114433,2098177,2098305,2110177]),new Uint32Array([2136001,2097153,2136097,0,2134561,2132833,2160705,2133153,0,2134945,2161217,2135713,2245761,0,2245793,0]),new Uint32Array([2181954,2182018,2100897,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,2209697,6291456,6291456,6291456,6291456,2209729,2209761,2209793,2195073,2209825,10498211,10497251,10598465]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220833,2220865,2220897,2220929,2220961,2220993,2221025,2221057,2221089,2221121,2221153,2221185,2221217,2221249,2221281,2221313]),new Uint32Array([6291456,23068672,6291456,2145666,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,6291456]),new Uint32Array([2190721,6291456,2190753,6291456,2190785,6291456,2190817,6291456,2190849,6291456,2190881,6291456,2190913,6291456,2190945,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456]),new Uint32Array([2215105,2215137,2215169,2215201,2215233,2215265,2215297,2215329,2215361,2215393,2215425,2215457,2215489,2215521,2215553,2215585]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0]),new Uint32Array([0,2107649,2097729,0,2097377,0,0,2107745,2135137,2097505,2107617,0,2097697,2137633,2097633,2097441]),new Uint32Array([2206817,6291456,2206849,6291456,2206881,6291456,2206913,6291456,2206945,6291456,2206977,6291456,2207009,6291456,2207041,6291456]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([2134754,2164482,2164546,2135138,2133890,2133794,2139266,2134658,2134562,2165506,2135138,2161218,2165826,2165826,6291456,6291456]),new Uint32Array([2257697,2188162,2257729,2257761,2257793,2257825,2257857,2257889,2257921,2188226,2242593,2257953,2257985,2258017,2258049,2258081]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2114337,2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,10632705,10633601,10632737,10633633,2245057]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2195425,2195457,2195489,2195265,2195521,2195553,2195585,2195617,2195649,2195681,2149185,2245697,2148609,2195105,2195137,2195169]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456])],e=new Uint16Array([656,656,605,162,48,207,7,2,147,147,666,339,396,696,98,98,317,557,386,672,641,744,179,4,679,32,124,441,285,270,215,380,713,667,475,167,484,98,98,98,98,98,98,35,98,366,471,98,249,249,249,249,630,249,249,708,233,13,483,98,248,73,194,462,244,491,400,98,98,98,717,612,166,496,176,129,331,565,727,295,284,608,425,516,381,117,98,98,128,611,249,86,418,98,439,571,683,645,98,98,340,249,98,169,98,98,98,98,98,178,749,98,499,29,98,249,678,98,98,98,98,98,79,488,98,98,340,30,98,69,190,712,98,173,134,147,147,147,98,292,738,619,37,249,286,98,98,736,249,265,390,98,469,479,85,508,53,559,186,305,695,479,85,395,181,111,683,631,389,421,85,125,320,710,186,523,227,479,85,125,465,96,186,738,453,132,669,62,293,434,683,134,466,139,85,578,165,460,186,638,143,139,85,251,165,450,186,602,676,139,98,185,618,254,186,98,410,146,98,115,256,545,683,203,604,98,98,743,163,581,147,147,350,98,63,335,402,577,147,147,563,277,98,436,72,187,27,205,426,538,704,273,104,134,147,147,98,98,340,446,98,312,498,221,535,398,147,147,276,98,98,526,98,98,98,98,98,712,604,98,98,98,98,98,98,98,98,98,98,98,98,98,373,430,98,98,373,98,98,412,722,81,98,98,98,722,98,98,98,313,98,341,98,750,98,98,98,98,98,574,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,604,341,98,98,98,98,98,123,490,374,98,759,98,38,490,433,98,98,98,267,249,600,750,750,327,750,98,98,98,98,98,123,234,98,9,98,98,98,98,592,98,712,627,627,723,98,499,571,98,98,581,98,750,588,98,98,98,568,98,98,98,157,249,142,750,750,499,249,298,147,147,147,544,98,98,531,290,98,340,554,561,98,761,98,98,98,79,226,98,98,531,620,517,98,98,98,235,322,658,43,738,131,126,437,98,98,477,309,614,164,575,90,98,681,511,252,249,249,249,150,423,716,570,730,324,489,542,675,752,180,537,572,217,589,223,279,264,468,636,291,528,118,58,367,422,106,21,222,406,107,737,40,388,606,530,269,120,188,610,193,246,321,213,98,147,249,249,298,336,238,661,323,102,211,231,231,470,98,98,98,98,98,98,98,98,98,138,719,98,98,369,98,98,98,98,98,98,98,98,98,98,98,392,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,597,147,134,147,160,703,171,149,51,699,74,558,405,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,510,98,98,98,98,98,98,153,98,98,98,98,98,417,98,98,98,98,98,98,98,98,98,640,98,546,98,98,98,98,98,98,274,644,82,98,98,712,632,34,732,415,665,349,28,586,646,140,98,98,518,98,98,98,505,613,98,597,225,225,225,225,249,249,98,98,98,98,98,184,147,147,98,197,98,98,98,98,98,289,189,259,525,747,342,463,8,54,365,151,19,543,299,472,147,147,363,98,347,201,604,98,98,98,98,114,98,98,98,98,98,56,556,98,98,598,11,742,362,355,337,596,98,98,98,98,757,98,456,458,420,509,77,154,693,64,200,514,344,351,110,133,670,486,391,112,307,603,414,529,485,635,427,609,333,88,224,440,359,714,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,341,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,341,98,98,98,597,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,581,147,419,726,541,296,616,506,98,98,98,98,98,607,98,98,378,700,724,587,172,504,208,495,686,45,642,147,147,247,297,98,493,750,98,98,98,738,741,98,98,531,746,750,249,384,98,98,137,98,175,527,98,341,286,98,98,709,639,501,668,712,98,98,310,497,49,135,98,288,98,98,98,304,448,281,340,314,705,680,225,98,98,113,174,255,25,652,306,16,98,98,622,750,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,757,98,566,98,98,581,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,23,92,316,459,653,141,206,161,371,584,512,452,168,6,583,219,353,109,624,145,41,671,691,521,33,399,260,155,687,731,147,147,637,387,628,579,89,394,338,177,461,83,580,429,507,60,195,720,100,245,562,26,648,262,540,80,218,413,240,524,711,547,416,84,136,278,519,755,147,375,148,698,424,382,657,478,451,147,147,435,701,59,249,408,573,660,626,358,253,654,42,407,721,550,301,303,346,199,287,515,250,758,158,438,0,411,598,258,555,522,536,147,492,98,81,24,499,499,147,147,98,98,98,98,98,98,98,134,447,98,98,590,98,98,98,98,712,341,710,147,147,98,98,68,147,147,147,147,147,147,147,147,98,341,98,98,98,710,268,581,98,98,228,98,134,98,98,352,98,70,98,98,615,592,147,147,311,328,551,98,98,98,98,98,98,499,750,520,643,75,98,581,98,98,738,98,98,98,356,147,147,147,147,147,147,147,147,147,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,597,98,592,738,147,147,147,147,147,147,147,147,147,93,98,98,156,98,546,98,98,98,712,638,147,147,147,98,15,98,690,98,650,147,147,147,147,98,98,98,280,98,715,98,98,202,144,98,651,123,123,98,98,98,98,147,147,98,98,706,597,98,98,98,385,98,364,98,629,98,242,47,147,147,147,147,147,98,98,98,98,123,147,147,147,664,50,692,282,98,98,98,300,98,98,241,750,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,712,98,98,101,507,147,147,147,147,98,98,738,98,79,78,147,147,147,147,147,98,581,147,98,597,561,98,98,39,718,715,98,754,561,98,98,593,507,98,123,750,561,98,175,748,108,98,98,480,561,98,98,709,368,98,604,571,98,421,99,745,147,147,147,147,65,70,750,98,98,376,209,750,674,479,85,576,465,553,122,214,147,147,147,147,147,147,147,147,98,98,98,694,119,294,507,147,98,98,98,249,159,750,147,147,147,147,147,147,147,147,147,147,98,98,376,198,268,560,147,147,98,98,98,249,325,750,341,147,98,98,340,548,750,147,147,147,98,313,627,98,147,147,147,147,147,147,147,147,147,147,147,147,98,98,99,5,147,147,147,147,147,147,621,403,98,98,98,326,677,329,98,343,444,750,147,147,147,147,585,98,98,409,46,147,539,98,98,237,729,567,98,98,347,454,184,147,98,98,98,123,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,85,98,376,401,592,98,341,98,98,688,308,497,147,147,147,147,503,98,98,481,494,750,66,98,601,230,750,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,263,147,147,147,147,147,147,147,147,147,147,147,710,98,98,98,532,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,750,147,147,147,147,147,147,98,98,98,98,98,98,712,571,98,98,98,98,98,98,98,98,98,98,98,98,757,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,712,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,597,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,123,98,712,501,147,147,147,147,147,147,98,499,94,98,98,98,119,592,14,421,95,98,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,634,370,98,98,98,134,147,147,147,147,147,147,98,98,98,98,275,52,249,249,673,561,147,147,147,147,662,334,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,738,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,592,147,147,123,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,712,147,147,147,184,18,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,581,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,98,98,98,98,134,341,123,318,663,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,592,98,98,725,98,98,455,1,753,623,98,398,457,116,98,123,147,98,98,98,98,216,147,147,147,147,147,147,147,147,147,98,757,98,98,98,98,98,597,98,123,147,147,147,147,147,147,147,147,558,582,243,20,449,71,697,564,482,261,513,591,105,558,582,243,599,728,239,22,684,354,97,733,319,74,558,582,243,20,449,239,697,564,482,97,733,319,74,558,582,243,191,361,182,121,103,760,595,442,431,272,87,383,170,474,502,474,183,257,348,404,229,212,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,249,249,249,345,249,249,617,668,594,739,611,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,401,393,266,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,341,718,501,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,99,650,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,98,98,98,98,98,98,98,98,98,98,332,497,147,147,500,31,445,98,192,501,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,604,98,98,98,571,147,147,147,147,604,98,98,499,147,147,147,147,147,147,147,147,147,147,147,147,204,682,357,330,467,633,751,734,487,152,432,152,147,147,147,507,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,581,98,98,98,98,98,98,757,712,604,604,604,98,592,377,625,360,558,649,98,702,98,98,91,499,147,147,147,683,98,735,647,302,283,76,655,592,147,147,147,147,147,147,147,147,147,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,738,341,341,98,98,98,98,98,98,98,757,98,98,98,98,98,123,581,147,581,98,98,98,738,750,98,98,738,98,499,507,147,147,147,147,98,98,98,98,98,98,98,85,98,98,98,98,492,98,98,98,98,98,98,98,98,757,499,315,597,98,123,597,184,597,147,147,98,98,98,98,98,98,98,98,98,740,98,98,134,147,147,549,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,499,147,147,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,571,98,98,98,98,98,98,98,98,98,98,98,98,98,499,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,507,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,710,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,10,44,464,17,443,534,476,127,220,379,3,473,707,61,569,236,659,12,689,397,232,57,196,428,130,36,685,552,55,210,372,533,756,67,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147]);function r(r){return r>=196608?r>=917760&&r<=917999?18874368:0:t[e[r>>4]][15&r]}return{mapStr:"صلى الله عليه وسلمجل جلالهキロメートルrad∕s2𝅘𝅥𝅮𝅘𝅥𝅯𝅘𝅥𝅰𝅘𝅥𝅱𝅘𝅥𝅲𝆹𝅥𝅮𝆺𝅥𝅮𝆹𝅥𝅯𝆺𝅥𝅯エスクードキログラムキロワットグラムトンクルゼイロサンチームパーセントピアストルファラッドブッシェルヘクタールマンションミリバールレントゲン′′′′1⁄10viii(10)(11)(12)(13)(14)(15)(16)(17)(18)(19)(20)∫∫∫∫(오전)(오후)アパートアルファアンペアイニングエーカーカラットカロリーキュリーギルダークローネサイクルシリングバーレルフィートポイントマイクロミクロンメガトンリットルルーブル株式会社kcalm∕s2c∕kgاكبرمحمدصلعمرسولریال𝅗𝅥1⁄41⁄23⁄4 ̈́ྲཱྀླཱྀ ̈͂ ̓̀ ̓́ ̓͂ ̔̀ ̔́ ̔͂ ̈̀‵‵‵a/ca/sc/oc/utelfax1⁄71⁄91⁄32⁄31⁄52⁄53⁄54⁄51⁄65⁄61⁄83⁄85⁄87⁄8xii0⁄3∮∮∮(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)(v)(w)(x)(y)(z)::====(ᄀ)(ᄂ)(ᄃ)(ᄅ)(ᄆ)(ᄇ)(ᄉ)(ᄋ)(ᄌ)(ᄎ)(ᄏ)(ᄐ)(ᄑ)(ᄒ)(가)(나)(다)(라)(마)(바)(사)(아)(자)(차)(카)(타)(파)(하)(주)(一)(二)(三)(四)(五)(六)(七)(八)(九)(十)(月)(火)(水)(木)(金)(土)(日)(株)(有)(社)(名)(特)(財)(祝)(労)(代)(呼)(学)(監)(企)(資)(協)(祭)(休)(自)(至)pte10月11月12月ergltdアールインチウォンオンスオームカイリガロンガンマギニーケースコルナコーポセンチダースノットハイツパーツピクルフランペニヒヘルツペンスページベータボルトポンドホールホーンマイルマッハマルクヤードヤールユアンルピー10点11点12点13点14点15点16点17点18点19点20点21点22点23点24点hpabardm2dm3khzmhzghzthzmm2cm2km2mm3cm3km3kpampagpalogmilmolppmv∕ma∕m10日11日12日13日14日15日16日17日18日19日20日21日22日23日24日25日26日27日28日29日30日31日galffifflשּׁשּׂ ٌّ ٍّ َّ ُّ ِّ ّٰـَّـُّـِّتجمتحجتحمتخمتمجتمحتمخجمححميحمىسحجسجحسجىسمحسمجسممصححصممشحمشجيشمخشممضحىضخمطمحطممطميعجمعممعمىغممغميغمىفخمقمحقمملحملحيلحىلججلخملمحمحجمحيمجحمجممخممجخهمجهممنحمنحىنجمنجىنمينمىيممبخيتجيتجىتخيتخىتميتمىجميجحىجمىسخىصحيشحيضحيلجيلمييحييجييميمميقمينحيعميكمينجحمخيلجمكممجحيحجيمجيفميبحيسخينجيصلےقلے〔s〕ppv〔本〕〔三〕〔二〕〔安〕〔点〕〔打〕〔盗〕〔勝〕〔敗〕 ̄ ́ ̧ssi̇ijl·ʼndžljnjdz ̆ ̇ ̊ ̨ ̃ ̋ ιեւاٴوٴۇٴيٴक़ख़ग़ज़ड़ढ़फ़य़ড়ঢ়য়ਲ਼ਸ਼ਖ਼ਗ਼ਜ਼ਫ਼ଡ଼ଢ଼ําໍາຫນຫມགྷཌྷདྷབྷཛྷཀྵཱཱིུྲྀླྀྒྷྜྷྡྷྦྷྫྷྐྵaʾἀιἁιἂιἃιἄιἅιἆιἇιἠιἡιἢιἣιἤιἥιἦιἧιὠιὡιὢιὣιὤιὥιὦιὧιὰιαιάιᾶι ͂ὴιηιήιῆιὼιωιώιῶι ̳!! ̅???!!?rs°c°fnosmtmivix⫝̸ ゙ ゚よりコト333435참고주의363738394042444546474849503月4月5月6月7月8月9月hgev令和ギガデシドルナノピコビルペソホンリラレムdaauovpciu平成昭和大正明治naμakakbmbgbpfnfμfμgmgμlmldlklfmnmμmpsnsμsmsnvμvkvpwnwμwmwkwkωmωbqcccddbgyhainkkktlnlxphprsrsvwb𤋮𢡊𢡄𣏕𥉉𥳐𧻓stմնմեմիվնմխיִײַשׁשׂאַאָאּבּגּדּהּוּזּטּיּךּכּלּמּנּסּףּפּצּקּרּתּוֹבֿכֿפֿאלئائەئوئۇئۆئۈئېئىئجئحئمئيبجبمبىبيتىتيثجثمثىثيخحضجضمطحظمغجفجفحفىفيقحقىقيكاكجكحكخكلكىكينخنىنيهجهىهييىذٰرٰىٰئرئزئنبزبنترتزتنثرثزثنمانرنزننيريزئخئهبهتهصخنههٰثهسهشهطىطيعىعيغىغيسىسيشىشيصىصيضىضيشخشرسرصرضراً ًـًـّ ْـْلآلألإ𐐨𐐩𐐪𐐫𐐬𐐭𐐮𐐯𐐰𐐱𐐲𐐳𐐴𐐵𐐶𐐷𐐸𐐹𐐺𐐻𐐼𐐽𐐾𐐿𐑀𐑁𐑂𐑃𐑄𐑅𐑆𐑇𐑈𐑉𐑊𐑋𐑌𐑍𐑎𐑏𐓘𐓙𐓚𐓛𐓜𐓝𐓞𐓟𐓠𐓡𐓢𐓣𐓤𐓥𐓦𐓧𐓨𐓩𐓪𐓫𐓬𐓭𐓮𐓯𐓰𐓱𐓲𐓳𐓴𐓵𐓶𐓷𐓸𐓹𐓺𐓻𐳀𐳁𐳂𐳃𐳄𐳅𐳆𐳇𐳈𐳉𐳊𐳋𐳌𐳍𐳎𐳏𐳐𐳑𐳒𐳓𐳔𐳕𐳖𐳗𐳘𐳙𐳚𐳛𐳜𐳝𐳞𐳟𐳠𐳡𐳢𐳣𐳤𐳥𐳦𐳧𐳨𐳩𐳪𐳫𐳬𐳭𐳮𐳯𐳰𐳱𐳲𑣀𑣁𑣂𑣃𑣄𑣅𑣆𑣇𑣈𑣉𑣊𑣋𑣌𑣍𑣎𑣏𑣐𑣑𑣒𑣓𑣔𑣕𑣖𑣗𑣘𑣙𑣚𑣛𑣜𑣝𑣞𑣟𖹠𖹡𖹢𖹣𖹤𖹥𖹦𖹧𖹨𖹩𖹪𖹫𖹬𖹭𖹮𖹯𖹰𖹱𖹲𖹳𖹴𖹵𖹶𖹷𖹸𖹹𖹺𖹻𖹼𖹽𖹾𖹿𞤢𞤣𞤤𞤥𞤦𞤧𞤨𞤩𞤪𞤫𞤬𞤭𞤮𞤯𞤰𞤱𞤲𞤳𞤴𞤵𞤶𞤷𞤸𞤹𞤺𞤻𞤼𞤽𞤾𞤿𞥀𞥁𞥂𞥃0,1,2,3,4,5,6,7,8,9,wzhvsdwcmcmdmrdjほかココ𠄢𠘺𠔜𠕋𩇟𠨬𠭣𡓤𡚨𡛪𡧈𡬘𡷤𡷦𢆃𪎒𢌱𣊸𦇚𢛔𢬌𢯱𣀊𣏃𣑭𣚣𣢧𣪍𡴋𣫺𣲼𣴞𣻑𣽞𣾎𠔥𤉣𤘈𤜵𤠔𤰶𤲒𢆟𤾡𤾸𥁄𥃳𥃲𥄙𥄳𥐝𥘦𥚚𥛅𥥼𥪧𥮫𥲀𥾆𦈨𦉇𦋙𦌾𦓚𦔣𦖨𣍟𦞧𦞵𣎓𣎜𦬼𦰶𦵫𦳕𧏊𦼬𦾱𧃒𧙧𧢮𧥦𧲨𧼯𠠄𠣞𨗒𨗭𨜮𨯺𨵷𩅅𩈚𩐊𩒖𩖶𩬰𪃎𪄅𪈎𪊑𪘀àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįĵķĺļľłńņňŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷÿźżɓƃƅɔƈɖɗƌǝəɛƒɠɣɩɨƙɯɲɵơƣƥʀƨʃƭʈưʊʋƴƶʒƹƽǎǐǒǔǖǘǚǜǟǡǣǥǧǩǫǭǯǵƕƿǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟƞȣȥȧȩȫȭȯȱȳⱥȼƚⱦɂƀʉʌɇɉɋɍɏɦɹɻʁʕͱͳʹͷ;ϳέίόύβγδεζθκλνξοπρστυφχψϊϋϗϙϛϝϟϡϣϥϧϩϫϭϯϸϻͻͼͽѐёђѓєѕіїјљњћќѝўџабвгдежзийклмнопрстуфхцчшщъыьэюяѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧԩԫԭԯաբգդզէըթժլծկհձղճյշոչպջռստրցփքօֆ་ⴧⴭნᏰᏱᏲᏳᏴᏵꙋაბგდევზთიკლმოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶჷჸჹჺჽჾჿɐɑᴂɜᴖᴗᴝᴥɒɕɟɡɥɪᵻʝɭᶅʟɱɰɳɴɸʂƫᴜʐʑḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿἐἑἒἓἔἕἰἱἲἳἴἵἶἷὀὁὂὃὄὅὑὓὕὗᾰᾱὲΐῐῑὶΰῠῡὺῥ`ὸ‐+−∑〈〉ⰰⰱⰲⰳⰴⰵⰶⰷⰸⰹⰺⰻⰼⰽⰾⰿⱀⱁⱂⱃⱄⱅⱆⱇⱈⱉⱊⱋⱌⱍⱎⱏⱐⱑⱒⱓⱔⱕⱖⱗⱘⱙⱚⱛⱜⱝⱞⱡɫᵽɽⱨⱪⱬⱳⱶȿɀⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳬⳮⳳⵡ母龟丨丶丿乙亅亠人儿入冂冖冫几凵刀力勹匕匚匸卜卩厂厶又口囗士夂夊夕女子宀寸小尢尸屮山巛工己巾干幺广廴廾弋弓彐彡彳心戈戶手支攴文斗斤方无曰欠止歹殳毋比毛氏气爪父爻爿片牙牛犬玄玉瓜瓦甘生用田疋疒癶白皮皿目矛矢石示禸禾穴立竹米糸缶网羊羽老而耒耳聿肉臣臼舌舛舟艮色艸虍虫血行衣襾見角言谷豆豕豸貝赤走足身車辛辰辵邑酉釆里長門阜隶隹雨靑非面革韋韭音頁風飛食首香馬骨高髟鬥鬯鬲鬼魚鳥鹵鹿麥麻黃黍黑黹黽鼎鼓鼠鼻齊齒龍龜龠.〒卄卅ᄁᆪᆬᆭᄄᆰᆱᆲᆳᆴᆵᄚᄈᄡᄊ짜ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵᄔᄕᇇᇈᇌᇎᇓᇗᇙᄜᇝᇟᄝᄞᄠᄢᄣᄧᄩᄫᄬᄭᄮᄯᄲᄶᅀᅇᅌᇱᇲᅗᅘᅙᆄᆅᆈᆑᆒᆔᆞᆡ上中下甲丙丁天地問幼箏우秘男適優印注項写左右医宗夜テヌモヨヰヱヲꙁꙃꙅꙇꙉꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꚙꚛꜣꜥꜧꜩꜫꜭꜯꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯꝺꝼᵹꝿꞁꞃꞅꞇꞌꞑꞓꞗꞙꞛꞝꞟꞡꞣꞥꞧꞩɬʞʇꭓꞵꞷꞹꞻꞽꞿꟃꞔᶎꟈꟊꟶꬷꭒʍᎠᎡᎢᎣᎤᎥᎦᎧᎨᎩᎪᎫᎬᎭᎮᎯᎰᎱᎲᎳᎴᎵᎶᎷᎸᎹᎺᎻᎼᎽᎾᎿᏀᏁᏂᏃᏄᏅᏆᏇᏈᏉᏊᏋᏌᏍᏎᏏᏐᏑᏒᏓᏔᏕᏖᏗᏘᏙᏚᏛᏜᏝᏞᏟᏠᏡᏢᏣᏤᏥᏦᏧᏨᏩᏪᏫᏬᏭᏮᏯ豈更賈滑串句契喇奈懶癩羅蘿螺裸邏樂洛烙珞落酪駱亂卵欄爛蘭鸞嵐濫藍襤拉臘蠟廊朗浪狼郎來冷勞擄櫓爐盧蘆虜路露魯鷺碌祿綠菉錄論壟弄籠聾牢磊賂雷壘屢樓淚漏累縷陋勒肋凜凌稜綾菱陵讀拏諾丹寧怒率異北磻便復不泌數索參塞省葉說殺沈拾若掠略亮兩凉梁糧良諒量勵呂廬旅濾礪閭驪麗黎曆歷轢年憐戀撚漣煉璉秊練聯輦蓮連鍊列劣咽烈裂廉念捻殮簾獵囹嶺怜玲瑩羚聆鈴零靈領例禮醴隸惡了僚寮尿料燎療蓼遼暈阮劉杻柳流溜琉留硫紐類戮陸倫崙淪輪律慄栗隆利吏履易李梨泥理痢罹裏裡離匿溺吝燐璘藺隣鱗麟林淋臨笠粒狀炙識什茶刺切度拓糖宅洞暴輻降廓兀嗀塚晴凞猪益礼神祥福靖精蘒諸逸都飯飼館鶴郞隷侮僧免勉勤卑喝嘆器塀墨層悔慨憎懲敏既暑梅海渚漢煮爫琢碑祉祈祐祖禍禎穀突節縉繁署者臭艹著褐視謁謹賓贈辶難響頻恵舘並况全侀充冀勇勺啕喙嗢墳奄奔婢嬨廒廙彩徭惘慎愈慠戴揄搜摒敖望杖滛滋瀞瞧爵犯瑱甆画瘝瘟盛直睊着磌窱类絛缾荒華蝹襁覆調請諭變輸遲醙鉶陼韛頋鬒㮝䀘䀹齃龎עםٱٻپڀٺٿٹڤڦڄڃچڇڍڌڎڈژڑکگڳڱںڻۀہھۓڭۋۅۉ、〖〗—–_{}【】《》「」『』[]#&*-<>\\$%@ءؤة\"'^|~⦅⦆・ゥャ¢£¬¦¥₩│←↑→↓■○ıȷ∇∂ٮڡٯ字双多解交映無前後再新初終販声吹演投捕遊指禁空合満申割営配得可丽丸乁你侻倂偺備像㒞兔兤具㒹內冗冤仌冬刃㓟刻剆剷㔕包匆卉博即卽卿灰及叟叫叱吆咞吸呈周咢哶唐啓啣善喫喳嗂圖圗噑噴壮城埴堍型堲報墬売壷夆夢奢姬娛娧姘婦㛮嬈嬾寃寘寳寿将㞁屠峀岍嵃嵮嵫嵼巡巢㠯巽帨帽幩㡢㡼庰庳庶舁弢㣇形彫㣣徚忍志忹悁㤺㤜惇慈慌慺憲憤憯懞戛扝抱拔捐挽拼捨掃揤搢揅掩㨮摩摾撝摷㩬敬旣書晉㬙㬈㫤冒冕最暜肭䏙朡杞杓㭉柺枅桒梎栟椔楂榣槪檨櫛㰘次歔㱎歲殟殻汎沿泍汧洖派浩浸涅洴港湮㴳滇淹潮濆瀹瀛㶖灊災灷炭煅熜爨牐犀犕獺王㺬玥㺸瑇瑜璅瓊㼛甤甾瘐㿼䀈眞真瞋䁆䂖硎䃣秫䄯穊穏䈂篆築䈧糒䊠糨糣紀絣䌁緇縂繅䌴䍙罺羕翺聠聰䏕育脃䐋脾媵舄辞䑫芑芋芝劳花芳芽苦茝荣莭茣莽菧荓菊菌菜䔫蓱蓳蔖蕤䕝䕡䕫虐虧虩蚩蚈蜎蛢蜨蝫螆蟡蠁䗹衠裗裞䘵裺㒻䚾䛇誠貫賁贛起跋趼跰軔邔郱鄑鄛鈸鋗鋘鉼鏹鐕開䦕閷䧦雃嶲霣䩮䩶韠䪲頩飢䬳餩馧駂駾䯎鱀鳽䳎䳭鵧䳸䵖黾鼅鼏鼖",mapChar:r}}))})(a),function(t,e){!function(e,n){t.exports=n(r.default,a.exports)}(0,(function(t,e){function r(r,n,i){const o=[],s=t.ucs2.decode(r);for(let r=0;r<s.length;r++){const a=s[r],u=t.ucs2.encode([s[r]]),h=e.mapChar(a),l=h>>23,c=h>>21&3,f=h>>5&65535,d=31&h,p=e.mapStr.substr(f,d);if(0===c||n&&1&l)throw new Error("Illegal char "+u);1===c?o.push(p):2===c?o.push(i?p:u):3===c&&o.push(u)}return o.join("").normalize("NFC")}function n(e,n,o){void 0===o&&(o=!1);let s=r(e,o,n).split(".");return s=s.map((function(e){return e.startsWith("xn--")?i(e=t.decode(e.substring(4)),o,!1):i(e,o,n),e})),s.join(".")}function i(t,n,i){if("-"===t[2]&&"-"===t[3])throw new Error("Failed to validate "+t);if(t.startsWith("-")||t.endsWith("-"))throw new Error("Failed to validate "+t);if(t.includes("."))throw new Error("Failed to validate "+t);if(r(t,n,i)!==t)throw new Error("Failed to validate "+t);const o=t.codePointAt(0);if(e.mapChar(o)&2<<23)throw new Error("Label contains illegal character: "+o)}function o(e,r){void 0===r&&(r={});const i=!("transitional"in r)||r.transitional,o="useStd3ASCII"in r&&r.useStd3ASCII,s="verifyDnsLength"in r&&r.verifyDnsLength,a=n(e,i,o).split(".").map(t.toASCII),u=a.join(".");let h;if(s){if(u.length<1||u.length>253)throw new Error("DNS name has wrong length: "+u);for(h=0;h<a.length;h++){const t=a[h];if(t.length<1||t.length>63)throw new Error("DNS label has wrong length: "+t)}}return u}function s(t){const e=Array.isArray(t);e||(t=[t]);const r={IDN:[],PC:[]};return t.forEach((t=>{let e,n;try{e=o(t,{transitional:!t.match(/\.(?:be|ca|de|fr|pm|re|swiss|tf|wf|yt)\.?$/)}),n={PC:e,IDN:a(e)}}catch(e){n={PC:t,IDN:t}}r.PC.push(n.PC),r.IDN.push(n.IDN)})),e?r:{IDN:r.IDN[0],PC:r.PC[0]}}function a(t,e){return void 0===e&&(e={}),n(t,!1,"useStd3ASCII"in e&&e.useStd3ASCII)}return{toUnicode:a,toAscii:o,convert:s}}))}(s);var u=i.exports.keccak_256,h=s.exports;function l(t){for(var e="",r=0;r<32;r++)e+="00";var n=c(t);if(n){var i=n.split(".");for(r=i.length-1;r>=0;r--){var o=u(i[r]);e=u(new tt(e+o,"hex"))}}return"0x"+e}function c(t){return t?h.toUnicode(t,{useStd3ASCII:!0,transitional:!1}):t}return{hash:l,normalize:c}}(Lu)})),qu=function(t){this.value=t},Vu=Object.defineProperty({EnumType:qu},"__esModule",{value:!0}),Gu=function(){function t(t){this.value=t}return t.prototype.toJSON=function(){return"$"+this.value},t}(),Hu=Object.defineProperty({VariableType:Gu},"__esModule",{value:!0}),Qu=u((function(t,e){function r(t){if(t instanceof Vu.EnumType)return t.value;if(t instanceof Hu.VariableType)return"$"+t.value;if("object"!=typeof t||null===t)return JSON.stringify(t);if(Array.isArray(t))return"["+t.map((function(t){return r(t)})).join(", ")+"]";var e=Object.keys(t).map((function(e){return e+": "+r(t[e])})).join(", ");return"{"+e+"}"}function n(t,r){return-1==e.configFields.indexOf(t)&&-1==r.indexOf(t)}function i(t,e,o,s){Object.keys(t).filter((function(t){return n(t,s.ignoreFields)})).forEach((function(a){var u=t[a];if("object"==typeof u){if(Array.isArray(u)&&!(u=u.find((function(t){return t&&"object"==typeof t}))))return void o.push([""+a,e]);var h=Object.keys(u).filter((function(t){return n(t,s.ignoreFields)})).length>0,l="object"==typeof u.__args&&Object.keys(u.__args).length>0,c="object"==typeof u.__directives,f=u.__all_on instanceof Array,d="object"==typeof u.__on,p=""+a;if("string"==typeof u.__name&&(p=p+" "+u.__name),"string"==typeof u.__aliasFor&&(p=p+": "+u.__aliasFor),"object"==typeof u.__variables&&Object.keys(u.__variables).length>0)p=p+" ("+function(t){var e=[];for(var r in t)e.push("$"+r+": "+t[r]);return e.join(", ")}(u.__variables)+")";else if(l||c){var m="",y="";c&&(y=Object.entries(u.__directives).map((function(t){var e;return"@"+function(t){var e=Object.keys(t)[0],n=t[e];if("boolean"==typeof n||"object"==typeof n&&0===Object.keys(n).length)return e;if("object"==typeof n){var i=[];for(var o in n){var s=r(n[o]).replace(/"/g,"");i.push(o+": "+s)}return e+"("+i.join(", ")+")"}throw new Error("Unsupported type for directive: "+typeof n+". Types allowed: object, boolean.\nOffending object: "+JSON.stringify(t))}(((e={})[t[0]]=t[1],e))})).join(" ")),l&&(m="("+function(t){var e=[];for(var n in t)e.push(n+": "+r(t[n]));return e.join(", ")}(u.__args)+")"),p=p+" "+m+(c&&l?" ":"")+y}if(o.push([p+(h||d||f?" {":""),e]),i(u,e+1,o,s),f&&u.__all_on.forEach((function(t){o.push(["..."+t,e+1])})),d)(u.__on instanceof Array?u.__on:[u.__on]).forEach((function(t){var r=t.__typeName;o.push(["... on "+r+" {",e+1]),i(t,e+2,o,s),o.push(["}",e+1])}));(h||d||f)&&o.push(["}",e])}else(!0===s.includeFalsyKeys||u)&&o.push([""+a,e])}))}Object.defineProperty(e,"__esModule",{value:!0}),e.configFields=["__args","__alias","__aliasFor","__variables","__directives","__on","__all_on","__typeName","__name"],e.jsonToGraphQLQuery=function(t,e){if(void 0===e&&(e={}),!t||"object"!=typeof t)throw new Error("query object not specified");if(0==Object.keys(t).length)throw new Error("query object has no data");e.ignoreFields instanceof Array||(e.ignoreFields=[]);var r=[];i(t,0,r,e);var n="";return r.forEach((function(t){var r=t[0],i=t[1];e.pretty?(n&&(n+="\n"),n+=function(t){return Array(4*t+1).join(" ")}(i)+r):(n&&(n+=" "),n+=r)})),n}})),Ku=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}(Qu),e.EnumType=Vu.EnumType,e.VariableType=Hu.VariableType})),Zu=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class r{}e._CodeOrName=r,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends r{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class i extends r{constructor(t){super(),this._items="string"==typeof t?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const t=this._items[0];return""===t||'""'===t}get str(){var t;return null!==(t=this._str)&&void 0!==t?t:this._str=this._items.reduce(((t,e)=>`${t}${e}`),"")}get names(){var t;return null!==(t=this._names)&&void 0!==t?t:this._names=this._items.reduce(((t,e)=>(e instanceof n&&(t[e.str]=(t[e.str]||0)+1),t)),{})}}function o(t,...e){const r=[t[0]];let n=0;for(;n<e.length;)u(r,e[n]),r.push(t[++n]);return new i(r)}e._Code=i,e.nil=new i(""),e._=o;const s=new i("+");function a(t,...e){const r=[l(t[0])];let n=0;for(;n<e.length;)r.push(s),u(r,e[n]),r.push(s,l(t[++n]));return function(t){let e=1;for(;e<t.length-1;){if(t[e]===s){const r=h(t[e-1],t[e+1]);if(void 0!==r){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}(r),new i(r)}function u(t,e){e instanceof i?t.push(...e._items):e instanceof n?t.push(e):t.push(function(t){return"number"==typeof t||"boolean"==typeof t||null===t?t:l(Array.isArray(t)?t.join(","):t)}(e))}function h(t,e){if('""'===e)return t;if('""'===t)return e;if("string"==typeof t){if(e instanceof n||'"'!==t[t.length-1])return;return"string"!=typeof e?`${t.slice(0,-1)}${e}"`:'"'===e[0]?t.slice(0,-1)+e.slice(1):void 0}return"string"!=typeof e||'"'!==e[0]||t instanceof n?void 0:`"${t}${e.slice(1)}`}function l(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=a,e.addCodeArg=u,e.strConcat=function(t,e){return e.emptyStr()?t:t.emptyStr()?e:a`${t}${e}`},e.stringify=function(t){return new i(l(t))},e.safeStringify=l,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new i(`.${t}`):o`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new i(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(t){return new i(t.toString())}})),Wu=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;class r extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}}var n;!function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"}(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new Zu.Name("const"),let:new Zu.Name("let"),var:new Zu.Name("var")};class i{constructor({prefixes:t,parent:e}={}){this._names={},this._prefixes=t,this._parent=e}toName(t){return t instanceof Zu.Name?t:this.name(t)}name(t){return new Zu.Name(this._newName(t))}_newName(t){return`${t}${(this._names[t]||this._nameGroup(t)).index++}`}_nameGroup(t){var e,r;if((null===(r=null===(e=this._parent)||void 0===e?void 0:e._prefixes)||void 0===r?void 0:r.has(t))||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}}e.Scope=i;class o extends Zu.Name{constructor(t,e){super(e),this.prefix=t}setValue(t,{property:e,itemIndex:r}){this.value=t,this.scopePath=Zu._`.${new Zu.Name(e)}[${r}]`}}e.ValueScopeName=o;const s=Zu._`\n`;e.ValueScope=class extends i{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?s:Zu.nil}}get(){return this._scope}name(t){return new o(t,this._newName(t))}value(t,e){var r;if(void 0===e.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(t),{prefix:i}=n,o=null!==(r=e.key)&&void 0!==r?r:e.ref;let s=this._values[i];if(s){const t=s.get(o);if(t)return t}else s=this._values[i]=new Map;s.set(o,n);const a=this._scope[i]||(this._scope[i]=[]),u=a.length;return a[u]=e.ref,n.setValue(e,{property:i,itemIndex:u}),n}getValue(t,e){const r=this._values[t];if(r)return r.get(e)}scopeRefs(t,e=this._values){return this._reduceValues(e,(e=>{if(void 0===e.scopePath)throw new Error(`CodeGen: name "${e}" has no value`);return Zu._`${t}${e.scopePath}`}))}scopeCode(t=this._values,e,r){return this._reduceValues(t,(t=>{if(void 0===t.value)throw new Error(`CodeGen: name "${t}" has no value`);return t.value.code}),e,r)}_reduceValues(t,i,o={},s){let a=Zu.nil;for(const u in t){const h=t[u];if(!h)continue;const l=o[u]=o[u]||new Map;h.forEach((t=>{if(l.has(t))return;l.set(t,n.Started);let o=i(t);if(o){const r=this.opts.es5?e.varKinds.var:e.varKinds.const;a=Zu._`${a}${r} ${t} = ${o};${this.opts._n}`}else{if(!(o=null==s?void 0:s(t)))throw new r(t);a=Zu._`${a}${o}${this.opts._n}`}l.set(t,n.Completed)}))}return a}}})),Ju=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;var r=Zu;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var n=Wu;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return n.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return n.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return n.varKinds}}),e.operators={GT:new Zu._Code(">"),GTE:new Zu._Code(">="),LT:new Zu._Code("<"),LTE:new Zu._Code("<="),EQ:new Zu._Code("==="),NEQ:new Zu._Code("!=="),NOT:new Zu._Code("!"),OR:new Zu._Code("||"),AND:new Zu._Code("&&"),ADD:new Zu._Code("+")};class i{optimizeNodes(){return this}optimizeNames(t,e){return this}}class o extends i{constructor(t,e,r){super(),this.varKind=t,this.name=e,this.rhs=r}render({es5:t,_n:e}){const r=t?Wu.varKinds.var:this.varKind,n=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${n};`+e}optimizeNames(t,e){if(t[this.name.str])return this.rhs&&(this.rhs=S(this.rhs,t,e)),this}get names(){return this.rhs instanceof Zu._CodeOrName?this.rhs.names:{}}}class s extends i{constructor(t,e,r){super(),this.lhs=t,this.rhs=e,this.sideEffects=r}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,e){if(!(this.lhs instanceof Zu.Name)||t[this.lhs.str]||this.sideEffects)return this.rhs=S(this.rhs,t,e),this}get names(){return N(this.lhs instanceof Zu.Name?{}:{...this.lhs.names},this.rhs)}}class a extends s{constructor(t,e,r,n){super(t,r,n),this.op=e}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}}class u extends i{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}}class h extends i{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}}class l extends i{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}}class c extends i{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,e){return this.code=S(this.code,t,e),this}get names(){return this.code instanceof Zu._CodeOrName?this.code.names:{}}}class f extends i{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce(((e,r)=>e+r.render(t)),"")}optimizeNodes(){const{nodes:t}=this;let e=t.length;for(;e--;){const r=t[e].optimizeNodes();Array.isArray(r)?t.splice(e,1,...r):r?t[e]=r:t.splice(e,1)}return t.length>0?this:void 0}optimizeNames(t,e){const{nodes:r}=this;let n=r.length;for(;n--;){const i=r[n];i.optimizeNames(t,e)||(U(t,i.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((t,e)=>x(t,e.names)),{})}}class d extends f{render(t){return"{"+t._n+super.render(t)+"}"+t._n}}class p extends f{}class m extends d{}m.kind="else";class y extends d{constructor(t,e){super(e),this.condition=t}render(t){let e=`if(${this.condition})`+super.render(t);return this.else&&(e+="else "+this.else.render(t)),e}optimizeNodes(){super.optimizeNodes();const t=this.condition;if(!0===t)return this.nodes;let e=this.else;if(e){const t=e.optimizeNodes();e=this.else=Array.isArray(t)?new m(t):t}return e?!1===t?e instanceof y?e:e.nodes:this.nodes.length?this:new y(P(t),e instanceof y?[e]:e.nodes):!1!==t&&this.nodes.length?this:void 0}optimizeNames(t,e){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(t,e),super.optimizeNames(t,e)||this.else)return this.condition=S(this.condition,t,e),this}get names(){const t=super.names;return N(t,this.condition),this.else&&x(t,this.else.names),t}}y.kind="if";class g extends d{}g.kind="for";class v extends g{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,e){if(super.optimizeNames(t,e))return this.iteration=S(this.iteration,t,e),this}get names(){return x(super.names,this.iteration.names)}}class w extends g{constructor(t,e,r,n){super(),this.varKind=t,this.name=e,this.from=r,this.to=n}render(t){const e=t.es5?Wu.varKinds.var:this.varKind,{name:r,from:n,to:i}=this;return`for(${e} ${r}=${n}; ${r}<${i}; ${r}++)`+super.render(t)}get names(){const t=N(super.names,this.from);return N(t,this.to)}}class b extends g{constructor(t,e,r,n){super(),this.loop=t,this.varKind=e,this.name=r,this.iterable=n}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,e){if(super.optimizeNames(t,e))return this.iterable=S(this.iterable,t,e),this}get names(){return x(super.names,this.iterable.names)}}class A extends d{constructor(t,e,r){super(),this.name=t,this.args=e,this.async=r}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}A.kind="func";class _ extends f{render(t){return"return "+super.render(t)}}_.kind="return";class E extends d{render(t){let e="try"+super.render(t);return this.catch&&(e+=this.catch.render(t)),this.finally&&(e+=this.finally.render(t)),e}optimizeNodes(){var t,e;return super.optimizeNodes(),null===(t=this.catch)||void 0===t||t.optimizeNodes(),null===(e=this.finally)||void 0===e||e.optimizeNodes(),this}optimizeNames(t,e){var r,n;return super.optimizeNames(t,e),null===(r=this.catch)||void 0===r||r.optimizeNames(t,e),null===(n=this.finally)||void 0===n||n.optimizeNames(t,e),this}get names(){const t=super.names;return this.catch&&x(t,this.catch.names),this.finally&&x(t,this.finally.names),t}}class M extends d{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}M.kind="catch";class k extends d{render(t){return"finally"+super.render(t)}}k.kind="finally";function x(t,e){for(const r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function N(t,e){return e instanceof Zu._CodeOrName?x(t,e.names):t}function S(t,e,r){return t instanceof Zu.Name?i(t):(n=t)instanceof Zu._Code&&n._items.some((t=>t instanceof Zu.Name&&1===e[t.str]&&void 0!==r[t.str]))?new Zu._Code(t._items.reduce(((t,e)=>(e instanceof Zu.Name&&(e=i(e)),e instanceof Zu._Code?t.push(...e._items):t.push(e),t)),[])):t;var n;function i(t){const n=r[t.str];return void 0===n||1!==e[t.str]?t:(delete e[t.str],n)}}function U(t,e){for(const r in e)t[r]=(t[r]||0)-(e[r]||0)}function P(t){return"boolean"==typeof t||"number"==typeof t||null===t?!t:Zu._`!${C(t)}`}e.CodeGen=class{constructor(t,e={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...e,_n:e.lines?"\n":""},this._extScope=t,this._scope=new Wu.Scope({parent:t}),this._nodes=[new p]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,e){const r=this._extScope.value(t,e);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(t,e){return this._extScope.getValue(t,e)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,e,r,n){const i=this._scope.toName(e);return void 0!==r&&n&&(this._constants[i.str]=r),this._leafNode(new o(t,i,r)),i}const(t,e,r){return this._def(Wu.varKinds.const,t,e,r)}let(t,e,r){return this._def(Wu.varKinds.let,t,e,r)}var(t,e,r){return this._def(Wu.varKinds.var,t,e,r)}assign(t,e,r){return this._leafNode(new s(t,e,r))}add(t,r){return this._leafNode(new a(t,e.operators.ADD,r))}code(t){return"function"==typeof t?t():t!==Zu.nil&&this._leafNode(new c(t)),this}object(...t){const e=["{"];for(const[r,n]of t)e.length>1&&e.push(","),e.push(r),(r!==n||this.opts.es5)&&(e.push(":"),(0,Zu.addCodeArg)(e,n));return e.push("}"),new Zu._Code(e)}if(t,e,r){if(this._blockNode(new y(t)),e&&r)this.code(e).else().code(r).endIf();else if(e)this.code(e).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new y(t))}else(){return this._elseNode(new m)}endIf(){return this._endBlockNode(y,m)}_for(t,e){return this._blockNode(t),e&&this.code(e).endFor(),this}for(t,e){return this._for(new v(t),e)}forRange(t,e,r,n,i=(this.opts.es5?Wu.varKinds.var:Wu.varKinds.let)){const o=this._scope.toName(t);return this._for(new w(i,o,e,r),(()=>n(o)))}forOf(t,e,r,n=Wu.varKinds.const){const i=this._scope.toName(t);if(this.opts.es5){const t=e instanceof Zu.Name?e:this.var("_arr",e);return this.forRange("_i",0,Zu._`${t}.length`,(e=>{this.var(i,Zu._`${t}[${e}]`),r(i)}))}return this._for(new b("of",n,i,e),(()=>r(i)))}forIn(t,e,r,n=(this.opts.es5?Wu.varKinds.var:Wu.varKinds.const)){if(this.opts.ownProperties)return this.forOf(t,Zu._`Object.keys(${e})`,r);const i=this._scope.toName(t);return this._for(new b("in",n,i,e),(()=>r(i)))}endFor(){return this._endBlockNode(g)}label(t){return this._leafNode(new u(t))}break(t){return this._leafNode(new h(t))}return(t){const e=new _;if(this._blockNode(e),this.code(t),1!==e.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(_)}try(t,e,r){if(!e&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new E;if(this._blockNode(n),this.code(t),e){const t=this.name("e");this._currNode=n.catch=new M(t),e(t)}return r&&(this._currNode=n.finally=new k,this.code(r)),this._endBlockNode(M,k)}throw(t){return this._leafNode(new l(t))}block(t,e){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(e),this}endBlock(t){const e=this._blockStarts.pop();if(void 0===e)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-e;if(r<0||void 0!==t&&r!==t)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${t} expected`);return this._nodes.length=e,this}func(t,e=Zu.nil,r,n){return this._blockNode(new A(t,e,r)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(A)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,e){const r=this._currNode;if(r instanceof t||e&&r instanceof e)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${e?`${t.kind}/${e.kind}`:t.kind}"`)}_elseNode(t){const e=this._currNode;if(!(e instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=e.else=t,this}get _root(){return this._nodes[0]}get _currNode(){const t=this._nodes;return t[t.length-1]}set _currNode(t){const e=this._nodes;e[e.length-1]=t}},e.not=P;const T=I(e.operators.AND);e.and=function(...t){return t.reduce(T)};const R=I(e.operators.OR);function I(t){return(e,r)=>e===Zu.nil?r:r===Zu.nil?e:Zu._`${C(e)} ${t} ${C(r)}`}function C(t){return t instanceof Zu.Name?t:Zu._`(${t})`}e.or=function(...t){return t.reduce(R)}})),Xu=u((function(t,e){function r(t,e=t.schema){const{opts:r,self:n}=t;if(!r.strictSchema)return;if("boolean"==typeof e)return;const i=n.RULES.keywords;for(const r in e)i[r]||c(t,`unknown keyword: "${r}"`)}function n(t,e){if("boolean"==typeof t)return!t;for(const r in t)if(e[r])return!0;return!1}function i(t){return"number"==typeof t?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}function o(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function s({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){return(i,o,s,a)=>{const u=void 0===s?o:s instanceof Ju.Name?(o instanceof Ju.Name?t(i,o,s):e(i,o,s),s):o instanceof Ju.Name?(e(i,s,o),o):r(o,s);return a!==Ju.Name||u instanceof Ju.Name?u:n(i,u)}}function a(t,e){if(!0===e)return t.var("props",!0);const r=t.var("props",Ju._`{}`);return void 0!==e&&u(t,r,e),r}function u(t,e,r){Object.keys(r).forEach((r=>t.assign(Ju._`${e}${(0,Ju.getProperty)(r)}`,!0)))}Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0,e.toHash=function(t){const e={};for(const r of t)e[r]=!0;return e},e.alwaysValidSchema=function(t,e){return"boolean"==typeof e?e:0===Object.keys(e).length||(r(t,e),!n(e,t.self.RULES.all))},e.checkUnknownRules=r,e.schemaHasRules=n,e.schemaHasRulesButRef=function(t,e){if("boolean"==typeof t)return!t;for(const r in t)if("$ref"!==r&&e.all[r])return!0;return!1},e.schemaRefOrVal=function({topSchemaRef:t,schemaPath:e},r,n,i){if(!i){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return Ju._`${r}`}return Ju._`${t}${e}${(0,Ju.getProperty)(n)}`},e.unescapeFragment=function(t){return o(decodeURIComponent(t))},e.escapeFragment=function(t){return encodeURIComponent(i(t))},e.escapeJsonPointer=i,e.unescapeJsonPointer=o,e.eachItem=function(t,e){if(Array.isArray(t))for(const r of t)e(r);else e(t)},e.mergeEvaluated={props:s({mergeNames:(t,e,r)=>t.if(Ju._`${r} !== true && ${e} !== undefined`,(()=>{t.if(Ju._`${e} === true`,(()=>t.assign(r,!0)),(()=>t.assign(r,Ju._`${r} || {}`).code(Ju._`Object.assign(${r}, ${e})`)))})),mergeToName:(t,e,r)=>t.if(Ju._`${r} !== true`,(()=>{!0===e?t.assign(r,!0):(t.assign(r,Ju._`${r} || {}`),u(t,r,e))})),mergeValues:(t,e)=>!0===t||{...t,...e},resultToName:a}),items:s({mergeNames:(t,e,r)=>t.if(Ju._`${r} !== true && ${e} !== undefined`,(()=>t.assign(r,Ju._`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`))),mergeToName:(t,e,r)=>t.if(Ju._`${r} !== true`,(()=>t.assign(r,!0===e||Ju._`${r} > ${e} ? ${r} : ${e}`))),mergeValues:(t,e)=>!0===t||Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})},e.evaluatedPropsToName=a,e.setEvaluated=u;const h={};var l;function c(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,!0===r)throw new Error(e);t.self.logger.warn(e)}}e.useFunc=function(t,e){return t.scopeValue("func",{ref:e,code:h[e.code]||(h[e.code]=new Zu._Code(e.code))})},function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"}(l=e.Type||(e.Type={})),e.getErrorPath=function(t,e,r){if(t instanceof Ju.Name){const n=e===l.Num;return r?n?Ju._`"[" + ${t} + "]"`:Ju._`"['" + ${t} + "']"`:n?Ju._`"/" + ${t}`:Ju._`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Ju.getProperty)(t).toString():"/"+i(t)},e.checkStrictMode=c}));var Yu={data:new Ju.Name("data"),valCxt:new Ju.Name("valCxt"),instancePath:new Ju.Name("instancePath"),parentData:new Ju.Name("parentData"),parentDataProperty:new Ju.Name("parentDataProperty"),rootData:new Ju.Name("rootData"),dynamicAnchors:new Ju.Name("dynamicAnchors"),vErrors:new Ju.Name("vErrors"),errors:new Ju.Name("errors"),this:new Ju.Name("this"),self:new Ju.Name("self"),scope:new Ju.Name("scope"),json:new Ju.Name("json"),jsonPos:new Ju.Name("jsonPos"),jsonLen:new Ju.Name("jsonLen"),jsonPart:new Ju.Name("jsonPart")},th=Object.defineProperty({default:Yu},"__esModule",{value:!0}),eh=u((function(t,e){function r(t,e){const r=t.const("err",e);t.if(Ju._`${th.default.vErrors} === null`,(()=>t.assign(th.default.vErrors,Ju._`[${r}]`)),Ju._`${th.default.vErrors}.push(${r})`),t.code(Ju._`${th.default.errors}++`)}function n(t,e){const{gen:r,validateName:n,schemaEnv:i}=t;i.$async?r.throw(Ju._`new ${t.ValidationError}(${e})`):(r.assign(Ju._`${n}.errors`,e),r.return(!1))}Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0,e.keywordError={message:({keyword:t})=>Ju.str`must pass "${t}" keyword validation`},e.keyword$DataError={message:({keyword:t,schemaType:e})=>e?Ju.str`"${t}" keyword must be ${e} ($data)`:Ju.str`"${t}" keyword is invalid ($data)`},e.reportError=function(t,i=e.keywordError,s,a){const{it:u}=t,{gen:h,compositeRule:l,allErrors:c}=u,f=o(t,i,s);(null!=a?a:l||c)?r(h,f):n(u,Ju._`[${f}]`)},e.reportExtraError=function(t,i=e.keywordError,s){const{it:a}=t,{gen:u,compositeRule:h,allErrors:l}=a;r(u,o(t,i,s)),h||l||n(a,th.default.vErrors)},e.resetErrorsCount=function(t,e){t.assign(th.default.errors,e),t.if(Ju._`${th.default.vErrors} !== null`,(()=>t.if(e,(()=>t.assign(Ju._`${th.default.vErrors}.length`,e)),(()=>t.assign(th.default.vErrors,null)))))},e.extendErrors=function({gen:t,keyword:e,schemaValue:r,data:n,errsCount:i,it:o}){if(void 0===i)throw new Error("ajv implementation error");const s=t.name("err");t.forRange("i",i,th.default.errors,(i=>{t.const(s,Ju._`${th.default.vErrors}[${i}]`),t.if(Ju._`${s}.instancePath === undefined`,(()=>t.assign(Ju._`${s}.instancePath`,(0,Ju.strConcat)(th.default.instancePath,o.errorPath)))),t.assign(Ju._`${s}.schemaPath`,Ju.str`${o.errSchemaPath}/${e}`),o.opts.verbose&&(t.assign(Ju._`${s}.schema`,r),t.assign(Ju._`${s}.data`,n))}))};const i={keyword:new Ju.Name("keyword"),schemaPath:new Ju.Name("schemaPath"),params:new Ju.Name("params"),propertyName:new Ju.Name("propertyName"),message:new Ju.Name("message"),schema:new Ju.Name("schema"),parentSchema:new Ju.Name("parentSchema")};function o(t,e,r){const{createErrors:n}=t.it;return!1===n?Ju._`{}`:function(t,e,r={}){const{gen:n,it:o}=t,u=[s(o,r),a(t,r)];return function(t,{params:e,message:r},n){const{keyword:o,data:s,schemaValue:a,it:u}=t,{opts:h,propertyName:l,topSchemaRef:c,schemaPath:f}=u;n.push([i.keyword,o],[i.params,"function"==typeof e?e(t):e||Ju._`{}`]),h.messages&&n.push([i.message,"function"==typeof r?r(t):r]);h.verbose&&n.push([i.schema,a],[i.parentSchema,Ju._`${c}${f}`],[th.default.data,s]);l&&n.push([i.propertyName,l])}(t,e,u),n.object(...u)}(t,e,r)}function s({errorPath:t},{instancePath:e}){const r=e?Ju.str`${t}${(0,Xu.getErrorPath)(e,Xu.Type.Str)}`:t;return[th.default.instancePath,(0,Ju.strConcat)(th.default.instancePath,r)]}function a({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:n}){let o=n?e:Ju.str`${e}/${t}`;return r&&(o=Ju.str`${o}${(0,Xu.getErrorPath)(r,Xu.Type.Str)}`),[i.schemaPath,o]}})),rh=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.boolOrEmptySchema=e.topBoolOrEmptySchema=void 0;const r={message:"boolean schema is false"};function n(t,e){const{gen:n,data:i}=t,o={gen:n,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,eh.reportError)(o,r,void 0,e)}e.topBoolOrEmptySchema=function(t){const{gen:e,schema:r,validateName:i}=t;!1===r?n(t,!1):"object"==typeof r&&!0===r.$async?e.return(th.default.data):(e.assign(Ju._`${i}.errors`,null),e.return(!0))},e.boolOrEmptySchema=function(t,e){const{gen:r,schema:i}=t;!1===i?(r.var(e,!1),n(t)):r.var(e,!0)}})),nh=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getRules=e.isJSONType=void 0;const r=new Set(["string","number","integer","boolean","null","object","array"]);e.isJSONType=function(t){return"string"==typeof t&&r.has(t)},e.getRules=function(){const t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}})),ih=u((function(t,e){function r(t,e){return e.rules.some((e=>n(t,e)))}function n(t,e){var r;return void 0!==t[e.keyword]||(null===(r=e.definition.implements)||void 0===r?void 0:r.some((e=>void 0!==t[e])))}Object.defineProperty(e,"__esModule",{value:!0}),e.shouldUseRule=e.shouldUseGroup=e.schemaHasRulesForType=void 0,e.schemaHasRulesForType=function({schema:t,self:e},n){const i=e.RULES.types[n];return i&&!0!==i&&r(t,i)},e.shouldUseGroup=r,e.shouldUseRule=n})),oh=u((function(t,e){var r;function n(t){const e=Array.isArray(t)?t:t?[t]:[];if(e.every(nh.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0,function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"}(r=e.DataType||(e.DataType={})),e.getSchemaTypes=function(t){const e=n(t.type);if(e.includes("null")){if(!1===t.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&void 0!==t.nullable)throw new Error('"nullable" cannot be used without "type"');!0===t.nullable&&e.push("null")}return e},e.getJSONTypes=n,e.coerceAndCheckDataType=function(t,e){const{gen:n,data:o,opts:a}=t,h=function(t,e){return e?t.filter((t=>i.has(t)||"array"===e&&"array"===t)):[]}(e,a.coerceTypes),l=e.length>0&&!(0===h.length&&1===e.length&&(0,ih.schemaHasRulesForType)(t,e[0]));if(l){const l=s(e,o,a.strictNumbers,r.Wrong);n.if(l,(()=>{h.length?function(t,e,r){const{gen:n,data:o,opts:a}=t,h=n.let("dataType",Ju._`typeof ${o}`),l=n.let("coerced",Ju._`undefined`);"array"===a.coerceTypes&&n.if(Ju._`${h} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,(()=>n.assign(o,Ju._`${o}[0]`).assign(h,Ju._`typeof ${o}`).if(s(e,o,a.strictNumbers),(()=>n.assign(l,o)))));n.if(Ju._`${l} !== undefined`);for(const t of r)(i.has(t)||"array"===t&&"array"===a.coerceTypes)&&c(t);function c(t){switch(t){case"string":return void n.elseIf(Ju._`${h} == "number" || ${h} == "boolean"`).assign(l,Ju._`"" + ${o}`).elseIf(Ju._`${o} === null`).assign(l,Ju._`""`);case"number":return void n.elseIf(Ju._`${h} == "boolean" || ${o} === null
|
|
26
|
+
!function(t){!function(){var e="object"==typeof window?window:{};!e.JS_SHA3_NO_NODE_JS&&"object"==typeof be&&be.versions&&be.versions.node&&(e=n);for(var r=!e.JS_SHA3_NO_COMMON_JS&&t.exports,i="0123456789abcdef".split(""),o=[0,8,16,24],s=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],a=[224,256,384,512],u=["hex","buffer","arrayBuffer","array"],h=function(t,e,r){return function(n){return new A(t,e,t).update(n)[r]()}},l=function(t,e,r){return function(n,i){return new A(t,e,i).update(n)[r]()}},c=function(t,e){var r=h(t,e,"hex");r.create=function(){return new A(t,e,t)},r.update=function(t){return r.create().update(t)};for(var n=0;n<u.length;++n){var i=u[n];r[i]=h(t,e,i)}return r},f=function(t,e){var r=l(t,e,"hex");r.create=function(r){return new A(t,e,r)},r.update=function(t,e){return r.create(e).update(t)};for(var n=0;n<u.length;++n){var i=u[n];r[i]=l(t,e,i)}return r},d=[{name:"keccak",padding:[1,256,65536,16777216],bits:a,createMethod:c},{name:"sha3",padding:[6,1536,393216,100663296],bits:a,createMethod:c},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:f}],p={},m=[],y=0;y<d.length;++y)for(var g=d[y],v=g.bits,w=0;w<v.length;++w){var b=g.name+"_"+v[w];m.push(b),p[b]=g.createMethod(v[w],g.padding)}function A(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}A.prototype.update=function(t){var e="string"!=typeof t;e&&t.constructor===ArrayBuffer&&(t=new Uint8Array(t));for(var r,n,i=t.length,s=this.blocks,a=this.byteCount,u=this.blockCount,h=0,l=this.s;h<i;){if(this.reset)for(this.reset=!1,s[0]=this.block,r=1;r<u+1;++r)s[r]=0;if(e)for(r=this.start;h<i&&r<a;++h)s[r>>2]|=t[h]<<o[3&r++];else for(r=this.start;h<i&&r<a;++h)(n=t.charCodeAt(h))<128?s[r>>2]|=n<<o[3&r++]:n<2048?(s[r>>2]|=(192|n>>6)<<o[3&r++],s[r>>2]|=(128|63&n)<<o[3&r++]):n<55296||n>=57344?(s[r>>2]|=(224|n>>12)<<o[3&r++],s[r>>2]|=(128|n>>6&63)<<o[3&r++],s[r>>2]|=(128|63&n)<<o[3&r++]):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++h)),s[r>>2]|=(240|n>>18)<<o[3&r++],s[r>>2]|=(128|n>>12&63)<<o[3&r++],s[r>>2]|=(128|n>>6&63)<<o[3&r++],s[r>>2]|=(128|63&n)<<o[3&r++]);if(this.lastByteIndex=r,r>=a){for(this.start=r-a,this.block=s[u],r=0;r<u;++r)l[r]^=s[r];_(l),this.reset=!0}else this.start=r}return this},A.prototype.finalize=function(){var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,n=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;for(t[r-1]|=2147483648,e=0;e<r;++e)n[e]^=t[e];_(n)},A.prototype.toString=A.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,n=this.outputBlocks,o=this.extraBytes,s=0,a=0,u="";a<n;){for(s=0;s<e&&a<n;++s,++a)t=r[s],u+=i[t>>4&15]+i[15&t]+i[t>>12&15]+i[t>>8&15]+i[t>>20&15]+i[t>>16&15]+i[t>>28&15]+i[t>>24&15];a%e==0&&(_(r),s=0)}return o&&(t=r[s],o>0&&(u+=i[t>>4&15]+i[15&t]),o>1&&(u+=i[t>>12&15]+i[t>>8&15]),o>2&&(u+=i[t>>20&15]+i[t>>16&15])),u},A.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,a=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);for(var u=new Uint32Array(t);s<n;){for(o=0;o<e&&s<n;++o,++s)u[s]=r[o];s%e==0&&_(r)}return i&&(u[o]=r[o],t=t.slice(0,a)),t},A.prototype.buffer=A.prototype.arrayBuffer,A.prototype.digest=A.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,s=0,a=0,u=[];a<i;){for(s=0;s<r&&a<i;++s,++a)t=a<<2,e=n[s],u[t]=255&e,u[t+1]=e>>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;a%r==0&&_(n)}return o&&(t=a<<2,e=n[s],o>0&&(u[t]=255&e),o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u};var _=function(t){var e,r,n,i,o,a,u,h,l,c,f,d,p,m,y,g,v,w,b,A,_,E,M,k,x,N,S,U,P,T,R,C,I,$,O,F,B,j,D,L,z,q,V,G,H,Q,K,Z,W,J,Y,X,tt,et,rt,nt,it,ot,st,at,ut,ht,lt;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],u=t[3]^t[13]^t[23]^t[33]^t[43],h=t[4]^t[14]^t[24]^t[34]^t[44],l=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],f=t[7]^t[17]^t[27]^t[37]^t[47],e=(d=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|u>>>31),r=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(u<<1|a>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(h<<1|l>>>31),r=o^(l<<1|h>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=a^(c<<1|f>>>31),r=u^(f<<1|c>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=h^(d<<1|p>>>31),r=l^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=c^(i<<1|o>>>31),r=f^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],y=t[1],Q=t[11]<<4|t[10]>>>28,K=t[10]<<4|t[11]>>>28,U=t[20]<<3|t[21]>>>29,P=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,q=t[40]<<18|t[41]>>>14,V=t[41]<<18|t[40]>>>14,$=t[2]<<1|t[3]>>>31,O=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,v=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,W=t[23]<<10|t[22]>>>22,T=t[33]<<13|t[32]>>>19,R=t[32]<<13|t[33]>>>19,ht=t[42]<<2|t[43]>>>30,lt=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,F=t[14]<<6|t[15]>>>26,B=t[15]<<6|t[14]>>>26,w=t[25]<<11|t[24]>>>21,b=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,Y=t[35]<<15|t[34]>>>17,C=t[45]<<29|t[44]>>>3,I=t[44]<<29|t[45]>>>3,k=t[6]<<28|t[7]>>>4,x=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,j=t[26]<<25|t[27]>>>7,D=t[27]<<25|t[26]>>>7,A=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,X=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,G=t[8]<<27|t[9]>>>5,H=t[9]<<27|t[8]>>>5,N=t[18]<<20|t[19]>>>12,S=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,st=t[28]<<7|t[29]>>>25,L=t[38]<<8|t[39]>>>24,z=t[39]<<8|t[38]>>>24,E=t[48]<<14|t[49]>>>18,M=t[49]<<14|t[48]>>>18,t[0]=m^~g&w,t[1]=y^~v&b,t[10]=k^~N&U,t[11]=x^~S&P,t[20]=$^~F&j,t[21]=O^~B&D,t[30]=G^~Q&Z,t[31]=H^~K&W,t[40]=et^~nt&ot,t[41]=rt^~it&st,t[2]=g^~w&A,t[3]=v^~b&_,t[12]=N^~U&T,t[13]=S^~P&R,t[22]=F^~j&L,t[23]=B^~D&z,t[32]=Q^~Z&J,t[33]=K^~W&Y,t[42]=nt^~ot&at,t[43]=it^~st&ut,t[4]=w^~A&E,t[5]=b^~_&M,t[14]=U^~T&C,t[15]=P^~R&I,t[24]=j^~L&q,t[25]=D^~z&V,t[34]=Z^~J&X,t[35]=W^~Y&tt,t[44]=ot^~at&ht,t[45]=st^~ut<,t[6]=A^~E&m,t[7]=_^~M&y,t[16]=T^~C&k,t[17]=R^~I&x,t[26]=L^~q&$,t[27]=z^~V&O,t[36]=J^~X&G,t[37]=Y^~tt&H,t[46]=at^~ht&et,t[47]=ut^~lt&rt,t[8]=E^~m&g,t[9]=M^~y&v,t[18]=C^~k&N,t[19]=I^~x&S,t[28]=q^~$&F,t[29]=V^~O&B,t[38]=X^~G&Q,t[39]=tt^~H&K,t[48]=ht^~et&nt,t[49]=lt^~rt&it,t[0]^=s[n],t[1]^=s[n+1]};if(r)t.exports=p;else for(y=0;y<m.length;++y)e[m[y]]=p[m[y]]}()}(i);var s={exports:{}},a={exports:{}};(function(t,e){!function(e,r){t.exports=r()}(0,(function(){var t=[new Uint32Array([2101761,2100961,2123873,2223617,2098113,2123393,2104929,2223649,2105761,2123713,2123809,2124257,2101377,2101697,2124865,2101857]),new Uint32Array([2098374,2098566,2098758,2098950,2099142,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([2250401,2250433,2250465,2239073,2183298,2250497,2250529,2250561,2241121,2250561,2250593,2239137,2250625,2250657,2250689,2250721]),new Uint32Array([2191233,6291456,2191265,6291456,2191297,6291456,2191329,6291456,2191361,2191393,6291456,2191425,6291456,2143457,6291456,2098305]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,0,0,0,0]),new Uint32Array([2236225,2118849,2236257,2236289,2236321,2236353,2236385,2236417,2236449,2236481,2236513,2232929,2236545,2236577,2236609,2236641]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2216481,2216513,2216545,2216577,2216609,2216641,2216673,2216705,2216737,2216769,2216801,2216833,2216865,2216897,2216929,2216961]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,0,0,0,0,0]),new Uint32Array([2246849,2246881,2246913,2182082,2246945,2238689,2246977,2247009,2247041,2247073,2238721,2247105,2247137,2182146,2238753,2247169]),new Uint32Array([2220641,2115969,2116065,2220673,2220705,2116161,2220737,2116257,2116353,2220769,2116449,2116545,2116641,2116737,2116833,2220801]),new Uint32Array([2184194,2184258,2252993,2253025,2241505,2253057,2253089,2253121,2253153,2253185,2253217,2184322,2253249,2184386,2253281,0]),new Uint32Array([6291456,2148609,2195105,2195137,2195169,2195201,2195233,2148929,2195265,2144097,2195297,2195329,2153665,2195361,2195393,2195425]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2229537,2229569,2229601,2229633,2229665,2229697,2229729,2229761,2229793,2229825,2229857,2229889,2229921,2229953,2229985,2230017]),new Uint32Array([2247809,2247841,2247841,2247841,2182402,2247873,2247905,2247937,2182466,2247969,2248001,2248033,2248065,2248097,2248129,2248161]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2218465,2218497,2218529,2218561,2218593,2218625,2119713,2218657,2218689,2218721,2218753,2218785,2218817,2218849,2218881,2218913]),new Uint32Array([2115009,2110337,2115201,2115297,2098209,2112993,2107233,2098241,2110209,2110273,2107553,2113569,2102625,2113761,2107201,2107297]),new Uint32Array([2148034,2148098,2148162,2148226,2148290,2148354,2148418,2148482,2148034,2148098,2148162,2148226,2148290,2148354,2148418,2148482]),new Uint32Array([2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,2098209,2112993,0,2098241,2110209,2110273,2107553,0]),new Uint32Array([2230049,2230081,2218401,2230113,2230145,2230177,2230209,2220097,2220097,2230241,2119713,2230273,2230305,2230337,2230369,2230401]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,6291456]),new Uint32Array([2228001,2228033,2228065,2228097,2228129,2228161,2228193,2228225,2228257,2228289,2228321,2228353,2228385,2228417,2228449,2228481]),new Uint32Array([2141282,2161474,2161538,2161602,2136098,2161666,2161730,2161794,2161858,2161922,2161986,2162050,2140514,2162114,2162178,2136578]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2146242,6291456,6291456,6291456,0,0,0]),new Uint32Array([2212993,6291456,2213025,6291456,2213057,6291456,2213089,6291456,2213121,6291456,2213153,6291456,2213185,6291456,2213217,6291456]),new Uint32Array([6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,6291456]),new Uint32Array([2179650,2179714,2179778,2179842,2179906,2179970,2180034,2180098,2180162,2180226,2180290,2180354,2180418,2180482,2180546,2180610]),new Uint32Array([2191777,2191809,6291456,2191841,2191873,6291456,2191905,2191937,2191969,6291456,6291456,6291456,2192001,2192033,6291456,2192065]),new Uint32Array([2240897,2240929,2240961,2240993,2241025,2241057,2241089,2241121,2241153,2239137,2241185,2239169,2241217,2241249,2241281,2241313]),new Uint32Array([2204097,6291456,2211841,6291456,6291456,2211873,6291456,6291456,6291456,6291456,6291456,6291456,2113761,2102593,2211905,2211937]),new Uint32Array([2113569,2194625,2113761,2098177,2194657,2194689,2194721,2115009,2115201,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2255265,2255297,2255329,2255361,2255393,2255425,2255457,2186626,2233505,2255489,2255521,2255553,2255585,2255617,2255649,2240033]),new Uint32Array([23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([0,0,2149122,2149186,2149250,0,6291456,2149314,2209889,2195041,2149121,2149249,2149186,10531586,10497922,0]),new Uint32Array([2239169,2239201,2239233,2239265,2239297,2239329,2239361,2239393,2239425,2239457,2239489,2239521,2107169,2239553,2239585,2239617]),new Uint32Array([2097729,2107745,2107745,2107745,2107745,2133153,2133153,2133153,2133153,2107809,2107809,2162689,2162689,2107681,2107681,2162977]),new Uint32Array([2203393,2203425,2203457,2203489,2203521,2203553,2203585,2203617,2203649,2203681,2203713,0,0,2203745,2203777,2203809]),new Uint32Array([2247201,2247233,2182210,2247265,2247297,2246145,2182274,2247329,2247361,2247393,2247425,2240481,2182338,2214177,2247457,2247489]),new Uint32Array([2226913,2226945,2204321,2226977,2227009,6291456,2227041,6291456,2227073,6291456,2227105,6291456,2227137,6291456,2227169,6291456]),new Uint32Array([23068672,6291456,6291456,6291456,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([14680064,2098209,2112993,2107233,2098241,2110209,2110273,2107553,2113569,2102625,2113761,2107201,2107297,2107329,2114145,2110049]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([2172290,2172354,2172418,2172482,2172546,2172610,2172674,2172738,2172802,2172866,2172930,2172994,2173058,2173122,2173186,2173250]),new Uint32Array([10501859,10501955,10502051,10502147,10502243,10502339,10502435,10502531,10502627,10502723,10502819,10502915,10503011,10503107,10503203,10503299]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,6291456,0]),new Uint32Array([2216993,2217025,2217057,2217089,2217121,2217153,2217185,2217217,2217249,2217281,2217313,2217345,2217377,2217409,2217441,2217473]),new Uint32Array([2256385,2256417,2256449,2256481,2217953,2187138,2256513,2256545,2256577,2256609,2256641,2187202,2187266,2256673,2256705,2256737]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150530]),new Uint32Array([2241921,2254113,2185346,2239649,2185410,2185474,2238273,2254145,2254177,2239745,2254209,2254241,2185538,2185602,2185602,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2148033,2148097,2148161,2148225,2148289,2148353,2148417,2148481]),new Uint32Array([10569441,2243905,0,10503969,10583521,10538049,10538177,2243937,2243969,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,2243777,2243777,2243777,2243777,2144321,2144321,2159841,2159841,2159905,2159905,2144322,2243809,2243809]),new Uint32Array([2251521,2251553,2251585,2251617,2251649,2251681,2251713,2251745,2231233,2241377,2251777,2251809,2251841,2183554,2251873,2251905]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2117121,2117217,2117313,2117409,2117505,2117601,2117697,2117793,2117889,2117985,2118081,2118177,2150786,2150850,2223169,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2188290,2258113,2188354,2188418,2188482,2219681,2258145,2219809,2258177,2258209,2258241,2258273,2219969,2188546,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([2107233,2098241,2110209,2110273,2107553,0,2102625,2113761,2107201,2107297,2107329,2114145,2110049,2114337,2114433,2098177]),new Uint32Array([6291456,6291456,6291456,2145922,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2145986,6291456,6291456]),new Uint32Array([2195105,2195265,2195585,2195073,2195745,2195617,2195457,6291456,2195809,6291456,2195841,6291456,2195873,6291456,2195905,6291456]),new Uint32Array([2107201,2107297,2107329,2114145,2110049,2114337,2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297]),new Uint32Array([2171010,2171074,2171138,2171202,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2142051,2142147,2142243,2142339,2142435,2142531,2142627,2142723,2142819,0,0,0,0,0,0,0]),new Uint32Array([10510019,10510115,10510211,10510307,2223073,2223105,2215681,2223137,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2163202,2163266,2133218,2163330,2160578,2160642,2163394,2163458,2160770,2163522,2160834,2160898,2161474,2161538,2161666,2161730]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2211137,2211169,2211201,2211233,2211265,2211297,2211329,2211361,2211393,2211425,2211457,2211489,2211521,2211553,2211585,0]),new Uint32Array([2243457,2243457,2243489,2243489,2243489,2243489,2243521,2243521,2243521,2243521,2243553,2243553,2243553,2243553,2243585,2243585]),new Uint32Array([2137026,2097506,2132547,2132643,2132739,2164610,2164674,2164738,2164802,2164866,2164930,2164994,2165058,2165122,2165186,2134978]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2195329,2153665,2195361,2195393,2195425,2195457,2195489,2195521,2195521,2195553,2195585,2195617,2195649,2195681,2149185,2245729]),new Uint32Array([2154754,2154818,2154882,2154946,2141986,2155010,2155074,2129154,2155138,2129154,2155202,2155266,2155330,2155394,2155458,2155394]),new Uint32Array([2158722,2158786,0,2158850,2158914,0,2158978,2159042,2159106,2131778,2159170,2159234,2159298,2159362,2159426,2159490]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2197281,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2181890,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2230433,2230465,2230497,2230529,2230561,2230593,2230625,2230657,2230689,2230721,2230753,2230785,2230817,2230849,2230881,2230913]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,23068672,23068672,23068672,0,0,0,0,2145538,2145602,0,6291456]),new Uint32Array([2110049,2114337,2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,2098209,2112993,2107233,2098241]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672]),new Uint32Array([2160066,2160130,2160194,2160002,2160258,2160322,2141378,2138306,2160386,2160450,2160514,2132834,2132930,2133122,2133218,2160578]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,23068672,23068672,6291456,0,0]),new Uint32Array([2210017,6291456,6291456,6291456,6291456,2098241,2098241,2110209,2102625,2113761,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2195489,2195457,2148609,2195105,2195137,2195169,2195201,2195233,2148929,2195265,2144097,2195297,2195329,2153665,2195361,2195393]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2107201,2107297,2107329,2114145,0,2114337,2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297]),new Uint32Array([2147522,2147586,2147650,2147714,2147778,2147842,2147906,2147970,2147522,2147586,2147650,2147714,2147778,2147842,2147906,2147970]),new Uint32Array([6291456,6291456,6291456,2209569,0,0,6291456,6291456,2209601,2209633,2209665,2195009,0,10497923,10498019,10498115]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2238017,6291456,2238049,6291456,6291456,2238081,2238113,2238145,2238177,2238209,2238241,2238273,2238305,2238337,2217345,6291456]),new Uint32Array([2122018,2122114,2151746,2151810,2151874,2151938,2152002,2152066,2152130,2121891,2121987,2122083,2152194,2122179,2152258,2122275]),new Uint32Array([0,23068672,0,0,0,0,0,0,0,2145282,2145346,2145410,6291456,0,2145474,0]),new Uint32Array([2152386,2123139,2105412,2105540,2097986,2100261,2097990,2100421,2100323,2100581,2100741,2105668,2123235,2123331,2123427,2105796]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2225057,2227393,2211649,2227425]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,10538946,10539010,6291456,6291456,2150466]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0]),new Uint32Array([2099910,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2201857,2201889,2144161,2201921,2201953,2201985,2202017,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,2209345,0,2209377,0,2209409,0,2209441]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,10538178,10538242,10538306,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2195425,2195457,2195489,2195521,2195521,2195553,2195585,2195617,2195649,2195681,2149185,2245729,2195201,2195265,2195297,2195617]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0]),new Uint32Array([2192097,6291456,2192129,6291456,2192161,6291456,2192193,2192225,6291456,2192257,6291456,6291456,2192289,6291456,2192321,2192353]),new Uint32Array([6291456,0,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456]),new Uint32Array([2249345,2182786,2249377,2249409,0,2214913,2249441,2249473,2214977,2249505,2249537,2182850,2249569,2182914,2249601,2249633]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2144130,6291456,6291456,6291456,0,0,6291456,6291456,6291456]),new Uint32Array([2199041,6291456,2199073,6291456,2199105,6291456,2199137,6291456,2199169,6291456,2199201,6291456,2199233,6291456,2199265,6291456]),new Uint32Array([2186306,2254945,2254977,2255009,2255041,2255073,2255105,2186370,2186434,2186498,2186562,2250081,2255137,2255169,2255201,2255233]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,0,6291456,0,6291456,6291456]),new Uint32Array([2101249,2100833,2122561,2100097,2122657,2105089,2097985,2100161,2123233,2123329,2100897,2101601,2100129,2101121,2152801,2101761]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2136418,2134018,2134690,2138722,2138338,2165250,2165314,2165378,2165442,2134658,2134562,2165506,2134754,2165570,2165634,2165698]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2104130,2104131,6291456,2111906]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,2213633,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2232417,2232449,2232481,2232513,2232545,2232577,2232609,2232641,2232673,2232705,2232737,2232769,2230561,2232801,2232833,2232865]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672]),new Uint32Array([6291456,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2238689,2238721,2238753,2238785,2238817,2238849,2238881,2238913,2238945,2238977,2239009,2239041,2214977,2239073,2239105,2239137]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2134083,2134179,2134275,2134275,2134371,2134371,2134467,2134563,2134563,2134659,2134755,2134755,2134851,2134851,2134947,2135043]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,10501475,10501571,10501667,10501763]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2217953,2217985,2218017,2218049,2218081,2218113,2218145,2218177,2218209,2218241,2218273,2218305,2218337,2218369,2218401,2218433]),new Uint32Array([2136001,2097153,2136097,2107681,2134561,2132833,2160705,2133153,2162689,2134945,2161217,2135713,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,10503971,10504034,10504067,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2121795,2126786,2126882,2108514,2127074,2130818,2130914,2131010,2131106,2131202,2131298,2110722,2110626,2150594,2150658,2150722]),new Uint32Array([2234529,2242049,2239937,2242081,2242113,2242145,2242177,2242209,2240097,2242241,2238401,2242273,2240129,2232801,2242305,2240161]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,0,0,6291456,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([2245089,2220161,2244289,2244321,2243905,2245121,2223809,2101409,2106209,2245153,2101633,2122593,2245185,2105441,2101953,2100513]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2102465,2098337,2103169,2103297,2103425,2103553,2103681,2103809,2103937,2102530,2102882,2103010,2103138,2103266,2103394,2103522]),new Uint32Array([2233409,2218465,2233441,2233473,2233505,2233537,2233569,2233601,2233633,2233665,2233697,2233729,2233761,2233793,2233825,2233857]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2107329,2190625,2110049,2191553,2203969,2204001,2114337,2110177,2110145,2204033,2192001,2102593,2204065,2195105,2195137,2195169]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([2198401,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2198433,6291456,2198465,6291456,2198497,6291456]),new Uint32Array([2194145,6291456,2194177,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2194209,2194241,6291456,2194273,2194305,6291456]),new Uint32Array([2235745,2235777,2235809,2235841,2220065,2235873,2235905,2235937,2235969,2236001,2236033,2236065,2236097,2236129,2236161,2236193]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,2144194,2144258,2144322,2144386,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2195329,2153665,2195361,2195393,2195425,2195457,2195489,2195265,2195521,2195553,2195585,2195617,2195649,2195681,2149185,2245697]),new Uint32Array([10491716,10491844,10491972,10492100,10492228,10492356,10492484,10492612,0,0,0,0,0,0,0,0]),new Uint32Array([2225953,6291456,2225985,6291456,2226017,6291456,2226049,6291456,2226081,6291456,2226113,6291456,2226145,6291456,2226177,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,0,0,6291456,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2227457,6291456,6291456,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2198785,6291456,2198817,6291456,2198849,6291456,2198881,6291456,2198913,6291456,2198945,6291456,2198977,6291456,2199009,6291456]),new Uint32Array([2243105,2243105,2243137,2243137,2243137,2243137,2243169,2243169,2243169,2243169,2243201,2243201,2243201,2243201,2243233,2243233]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,6291456,23068672]),new Uint32Array([2190977,6291456,2191009,6291456,2191041,6291456,2191073,6291456,2191105,6291456,2191137,6291456,2191169,6291456,2191201,6291456]),new Uint32Array([2207073,6291456,2207105,6291456,2207137,6291456,6291456,6291456,6291456,6291456,2146946,2206305,6291456,6291456,2143106,6291456]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([2149185,2245697,2148609,2195105,2195137,2195169,2195201,2195233,2148929,2195265,2144097,2195297,2195329,2153665,2195361,2195393]),new Uint32Array([2195489,2195265,2195521,2195553,2195585,2195617,2195649,2195681,2149185,2245697,2148609,2195105,2195137,2195169,2195201,2195233]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,2146050,6291456,6291456,6291456,6291456,2146114,6291456,6291456,6291456,6291456,2146178,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2102340,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10485857]),new Uint32Array([2118369,2213761,2213793,2213825,2213857,2213889,2118465,2213921,2213953,2213985,2214017,2119041,2214049,2214081,2214113,2214145]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([2115009,2110337,2115201,2115297,2245633,2245665,0,0,2148609,2195105,2195137,2195169,2195201,2195233,2148929,2195265]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,0,0,0,0]),new Uint32Array([2102561,2102625,0,0,2103297,2103425,2103553,2103681,2103809,2103937,10598561,2209985,10504033,10491329,10491425,2114145]),new Uint32Array([2195937,6291456,2195969,6291456,2196001,6291456,2196033,6291456,2196065,6291456,2196097,6291456,2196129,6291456,2196161,6291456]),new Uint32Array([2243841,2243841,2243873,2243873,2159969,2159969,2159969,2159969,2097217,2097217,2159554,2159554,2159618,2159618,2159682,2159682]),new Uint32Array([2254273,2185666,2254305,2254337,2254369,2185730,2254401,2254433,2254465,2254497,2254529,2185794,2254561,2254593,2254625,2254657]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2213697]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2102561,2102465,2098337,2103169,2103297,2103425,2103553,2103681,2103809,2103937,10503969,10583521,10633217,10504033,10633249,10538177]),new Uint32Array([2118369,2118465,2118561,2118657,2118753,2118849,2118945,2119041,2119137,2119233,2119329,2119425,2119521,2119617,2119713,2119809]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,2220193,6291456,2119233,2220225,2220257,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,0,23068672,23068672,0,0,0,0,0,23068672,23068672,23068672,23068672]),new Uint32Array([0,0,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2097281,2107649,2097729,2107809,0,2097601,2162977,2107745,2135137,2097505,2107617,2097185,2097697,2137633,2097633,2097441]),new Uint32Array([0,23068672,23068672,18923522,23068672,18923586,18923650,18885955,18923714,18886051,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2232897,2232929,2232961,2232993,2233025,2233057,2233089,2233121,2233153,2233185,2233217,2233249,2233281,2233313,2233345,2233377]),new Uint32Array([2114337,2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([2226337,6291456,2226369,6291456,2226401,6291456,2226433,6291456,6291456,6291456,6291456,2226465,6291456,2204225,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2242305,2242337,2218177,2187330,2256769,2256801,2256833,2256865,2187394,2187458,2256897,2256929,2256961,2187522,2256993,2242369]),new Uint32Array([2110371,2110467,2102468,2110563,2110659,2110755,2110851,2110947,2111043,2111139,2111235,2111331,2111427,2111523,2111619,2102466]),new Uint32Array([2103297,2103425,2103553,2103681,2103809,2103937,2102561,2102465,2098337,2103169,2103297,2103425,2103553,2103681,2103809,2103937]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2149762,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2192897,6291456,2192929,6291456,2192961,6291456,2192993,6291456,2193025,6291456,2193057,6291456,2193089,6291456,2193121,6291456]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2207681,6291456,2207713,6291456,2207745,6291456,2207777,6291456,2207809,6291456,2207841,6291456,2207873,6291456,2207905,6291456]),new Uint32Array([2161794,2162050,2140514,2162114,2162178,2097666,2097186,2097474,2163586,2134306,2163650,2163714,2138018,2163778,2162306,2162370]),new Uint32Array([2237153,2237185,2237217,2237249,2237281,2237313,2237345,2217121,2237377,2237409,2237441,2237473,2237505,2237537,2237569,2237601]),new Uint32Array([2249665,2249697,2249729,2249761,2249793,2249825,2249857,2249889,2249921,2182978,2249953,2249985,2250017,2250049,2231201,2183042]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,2148546,2148610,2148674,0,6291456,2148738,2209473,2209505,2148545,2148673,2148610,10497634,2144097,10497634]),new Uint32Array([2208193,6291456,2208225,6291456,2208257,6291456,2208289,6291456,2208321,6291456,2208353,6291456,2208385,6291456,2208417,6291456]),new Uint32Array([2155522,2155586,0,2155650,2155714,2155778,2107460,0,2155842,2155906,2155970,2127170,2156034,2156098,2128130,2156162]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([2103809,2103937,2102561,2102465,2098337,2103169,2103297,2103425,2103553,2103681,2103809,2103937,2102561,2102465,2098337,2103169]),new Uint32Array([23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0]),new Uint32Array([2102625,2102626,2102627,2150146,2102593,2102594,2102595,2102596,2150210,2110337,2111714,2111715,2107297,2107233,2098241,2107329]),new Uint32Array([2241825,2185026,2185090,2185154,2185218,2253921,2253953,2253953,2241857,2242689,2253985,2254017,2254049,2185282,2254081,2231777]),new Uint32Array([0,0,0,0,10531586,10497251,2148673,2143329,2194977,2148993,2195009,0,2195041,0,2195073,2149249]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2196929,2196993,2197313,2197409,2197441,2197441,2197697,2197921,2202369,0,0,0,0,0,0,0]),new Uint32Array([2183746,2252321,2252353,2252385,2252417,2233409,2252449,2183810,2183874,2183938,2252481,2184002,2252513,2252545,2252577,2252609]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2102625,2102625,2107297,2107297,6291456,2114145,2149954,6291456,6291456,2114337,2114433,2098177,2098177,2098177,6291456,6291456]),new Uint32Array([2107233,2098241,2110209,2110273,2107553,2113569,2102625,2113761,2107201,2107297,2107329,2114145,2110049,2114337,2114433,2098177]),new Uint32Array([2164098,2132834,2132930,2133122,2133218,2164162,2160770,2133922,2132866,2132962,2107746,2133474,2133154,2133890,2133794,2139266]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([2107553,2113569,2102625,2113761,2107201,2107297,2107329,2114145,2110049,2114337,2114433,2098177,2098305,2110177,2110145,2102593]),new Uint32Array([2196353,2196385,2196417,2196449,2196481,2196513,2196545,2196577,2196609,2196641,2196673,2196705,2196737,2196769,2196801,2196833]),new Uint32Array([2160642,2160706,2160770,2160834,2160898,2133922,2132866,2132962,2107746,2133474,2160962,2133154,2133890,2133794,2139266,2134082]),new Uint32Array([2102561,2102465,2098337,2103169,2103297,2103425,2103553,2103681,2103809,2103937,10598561,2209985,10504033,10491329,10491425,0]),new Uint32Array([0,0,0,0,0,2227361,6291456,6291456,2190177,2190753,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,4292673,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2195777]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([10598465,2098209,2112993,2107233,2098241,2110209,2110273,2107553,2113569,2102625,2113761,2107201,2107297,2107329,2114145,2110049]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([2204545,2192065,2204577,2204609,2192257,2204641,2194401,2192385,2204673,2192417,2194433,2115297,2204705,2204737,2192513,2195265]),new Uint32Array([2244801,2166241,2166241,2166305,2166305,2244833,2244833,2166369,2166369,2159553,2159553,2159553,2159553,2097281,2097281,2107649]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2227489,2227521,2227553,2227585,2227617,2227649,2227681,2227713,2227745,2227777,2227809,2227841,2227873,2227905,2227937,2227969]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,23068672,0,0,0,0,23068672]),new Uint32Array([2148929,2195265,2144097,2195297,2195329,2153665,2195361,2195393,2195425,2195457,2195489,2195521,2195521,2195553,2195585,2195617]),new Uint32Array([2220641,2115969,2116065,2220673,2220705,2116161,2220737,2116257,2116353,2220769,2116449,2116545,2116641,2116737,2116833,0]),new Uint32Array([2214177,2214209,2214241,2214273,2214305,2214337,2214369,2119233,2214401,2214433,2214465,2214497,2214529,2214561,2214593,2119809]),new Uint32Array([2238113,2241633,2241665,2241697,2241729,2241761,2238145,2241793,2241825,2241857,2241889,2241921,2241953,2239809,2241985,2242017]),new Uint32Array([2110049,2114337,2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,2098209,0,2107233,2098241]),new Uint32Array([2162370,2162434,2137442,2162498,2162562,2139042,2133666,2160930,2137026,2162626,2139810,2162690,2162754,2162818,10520579,10520675]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147009,2147073,2147137,2147201,2147265,2147329,2147393,2147457]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2144450,2144514,2144578,2144642,2144706,2144770,2144834,2144898]),new Uint32Array([23068672,23068672,0,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,16777216,16777216,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2102338,2102339,6291456,2109698,2109699,6291456,6291456,6291456,6291456,10538050,6291456,10538114,6291456]),new Uint32Array([6291456,2192673,6291456,2192705,6291456,2192737,6291456,2192769,6291456,2192801,6291456,2192833,6291456,6291456,2192865,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2195585,2195617,2195649,2195681,2149185,2245697,2148609,2195105,2195137,2195169,2195201,2195233,2148929,2195265,2144097,2195297]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18924098,23068672,23068672,23068672,0,6291456,6291456]),new Uint32Array([2210113,2210145,2210177,2210209,2210241,2210273,2210305,2210337,2210369,2210401,2210433,2210465,2210497,2210529,2210561,2210593]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,23068672]),new Uint32Array([0,0,0,0,0,0,0,2202081,0,0,0,0,0,2202113,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2165762,2164610,2164674,2164738,2164802,2164866,2164930,2164994,2165058,2165122,2165186,2134978,2136418,2134018,2134690,2138722]),new Uint32Array([2208449,6291456,2208481,6291456,2208513,6291456,2208545,6291456,2208577,6291456,2208609,6291456,2208641,6291456,2208673,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2174338,2174402,2174466,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2218305,2142561,2246529,2246561,2246593,2246625,2120097,2119329,2246657,2246689,2246721,2246753,0,0,0,0]),new Uint32Array([2200289,6291456,2200321,6291456,2200353,6291456,2200385,6291456,2200417,6291456,2200449,6291456,2200481,6291456,2200513,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,2143426,2143426,2143426,2143490,2143490,2143490,2143554,2143554,2143554,2192609,6291456,2192641]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([10633377,2098209,2112993,2107233,2098241,2110209,2110273,2107553,2113569,2102625,2113761,2107201,2107297,2107329,2114145,2110049]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2213729,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2208897,2208929,2208961,2208993,2209025,2209057,2209089,2209121]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,0,0,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,23068672,6291456]),new Uint32Array([2200033,6291456,2200065,6291456,2200097,6291456,2200129,6291456,2200161,6291456,2200193,6291456,2200225,6291456,2200257,6291456]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,23068672,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2219457,2219489,2219521,2219553,2219585,2219617,2219649,2219681,2219713,2219745,2219777,2219809,2219841,2219873,2219905,2219937]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2097185,2097697,2097697,2097697,2097697,2137633,2137633,2137633,2137633,2097377,2097377,2097377,2097377,2097601,2097601,2097217]),new Uint32Array([2246209,2246241,2216577,2246273,2246305,2246337,2246369,2246401,2246433,2118369,2118561,2246465,2223457,2222849,2223489,2246497]),new Uint32Array([2097217,2097505,2097505,2097505,2097505,2166210,2166210,2166274,2166274,2166338,2166338,2097858,2097858,0,0,2097152]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0]),new Uint32Array([2229025,2229057,2229089,2229121,2229153,2229185,2229217,2229249,2229281,2229313,2229345,2229377,2229409,2229441,2229473,2229505]),new Uint32Array([2100901,2105924,2123523,2101123,2123619,2152450,2152514,2100674,2152578,2123715,2123811,2101061,2123907,2106052,2101221,2124003]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2098241,2110209,2191713,2107553,2113569,2102625,2113761,2107201,2107297,2107329,2114145,6291456,2110049,2193921,2114337,2098177]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2166402,2166466,2166530,2166594,2166658,2166722,2166786,2166850,2166914,2166978,2167042,2167106,2167170,2167234,2167298,2167362]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2230945,2230977,2231009,2231041,2231073,2231105,2231137,2231169,2231201,2231233,2231265,2231297,2231329,2231361,2231393,2231425]),new Uint32Array([2189569,6291456,2189601,6291456,2189633,6291456,2189665,6291456,2189697,6291456,2189729,6291456,2189761,6291456,2189793,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,23068672,23068672,6291456]),new Uint32Array([2110145,2102593,2115009,2110337,2115201,2115297,2098209,2112993,2107233,2098241,2110209,2110273,2107553,2113569,2102625,2113761]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,0,0]),new Uint32Array([2098209,2110209,2110049,2110337,2191745,2113569,2107201,2107297,2107329,2114145,2114337,2098305,2110177,0,0,0]),new Uint32Array([2202401,2202433,2202465,2202497,2202529,2202561,2202593,2202625,2202657,2202689,2202721,2202753,2202145,2202785,2202817,2202849]),new Uint32Array([2110209,2110273,0,2107329,2110049,2157761,2157953,2158017,2158081,2102625,6291456,2110275,2195457,2195137,2195137,2195457]),new Uint32Array([2205793,6291456,2205825,6291456,2205857,6291456,2205889,6291456,2205921,6291456,2205953,6291456,2205985,6291456,2206017,6291456]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,18874368,18874368,18874368,0,0]),new Uint32Array([2167426,2167490,2167554,2167618,2167682,2167746,2167810,2167874,2167938,2168002,2168066,2168130,2168194,2168258,2168322,2168386]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2136001,2097153,2136097,0,2134561,2132833,2160705,2133153,0,2134945,0,2135713,0,0,0,0]),new Uint32Array([0,2199297,6291456,2199329,6291456,2199361,6291456,2199393,6291456,2199425,6291456,2199457,6291456,2199489,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2128035,2127394,2128131,2128227,2128323,2127490,2128419,2107331,2107332,2127202,2128515,2128611,2128707,2098179,2098181,2098182]),new Uint32Array([23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,23068672,6291456,2145730,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,0,0]),new Uint32Array([10498403,10498499,2107233,2149826,6291456,10498595,10498691,2191777,6291456,2149890,2107553,2113569,2113569,2113569,2113569,2190177]),new Uint32Array([2222337,2222369,2222401,2222433,2222465,2222497,2222529,2222561,2222593,2222625,2222657,2222689,2222721,2222753,2222785,0]),new Uint32Array([2242977,2242977,2243009,2243009,2243009,2243009,2243041,2243041,2243041,2243041,2243073,2243073,2243073,2243073,2243105,2243105]),new Uint32Array([6291456,6291456,2098337,2103169,10531586,2153665,6291456,6291456,10531650,2102465,2110049,6291456,2108355,2108451,2108547,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([2215617,2215649,2215681,2215713,2215745,2215777,2215809,2119905,2215841,2119329,2119617,2215873,2215905,2215937,2215969,2216001]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,0,0,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2223393,2121537,2223425,2153505,2222817,2222849,2222881,2223457,2223489,2223521,2223553,2120961,2121057,2121153,2121249,2121345]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([0,10538049,10633505,10633089,10633313,10633345,10633121,10633537,10491329,10491425,10633153,10598561,10569441,2244577,2220161,10498433]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2195649,2195681,2149185,2245729,2195201,2195265,2195297,2195617,2195489,2195457,2195873,2195873,0,0,2102561,2102465]),new Uint32Array([2212737,6291456,2212769,6291456,2212801,6291456,2212833,6291456,2212865,6291456,2212897,6291456,2212929,6291456,2212961,6291456]),new Uint32Array([0,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456]),new Uint32Array([2223585,2150914,2150978,2151042,2151106,2151170,2108418,2151234,2150690,2151298,2151362,2151426,2151490,2151554,2151618,2151682]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2237633,2237665,2237697,2237729,2237761,2237793,2237825,2237857,2217921,2237889,2218017,2237921,2237953,2237985,6291456,6291456]),new Uint32Array([2115201,0,2098209,2112993,2107233,2098241,2110209,2110273,2107553,2113569,2102625,2113761,2107201,2107297,2107329,2114145]),new Uint32Array([2221825,2221857,2221889,2221921,2221953,2221985,2222017,2222049,2222081,2222113,2222145,2222177,2222209,2222241,2222273,2222305]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([0,2107649,2097729,0,2097377,0,0,2107745,0,2097505,2107617,2097185,2097697,2137633,2097633,2097441]),new Uint32Array([10554498,2165954,10520578,6291456,10520674,0,10520770,2132546,10520866,2132642,10520962,2132738,10521058,2166018,10554690,2166146]),new Uint32Array([2129506,2129602,2129698,2129794,2129890,2129986,2130082,2130178,2130274,2129379,2129475,2129571,2129667,2129763,2129859,2129955]),new Uint32Array([10503011,10503107,10503203,10503299,10503395,10503491,10503587,10503683,10503779,10503875,2141859,2107233,2098177,2155778,2181442,6291456]),new Uint32Array([2144097,2195297,2195329,2153665,2195361,2195393,2195425,2195457,2195489,2195265,2195521,2195553,2195585,2195617,2195649,2195681]),new Uint32Array([2221345,2221377,2221409,2221441,0,2221473,2221505,2221537,2221569,2221601,2221633,2221665,2221697,2221729,2221761,2221793]),new Uint32Array([10485857,6291456,2220161,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2217505,2217537,2217569,2121633,2121729,2217601,2217633,2217665,2217697,2217729,2217761,2217793,2217825,2217857,2217889,2217921]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10532290,10532354,10532418,10532482,10532546,10532610,6291456,6291456]),new Uint32Array([6291456,2148673,6291456,2194977,6291456,2148993,6291456,2195009,6291456,2195041,6291456,2195073,6291456,2149249,0,0]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,23068672,23068672]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064]),new Uint32Array([2177602,2177666,2177730,2177794,2177858,2177922,2177986,2178050,2178114,2178178,2178242,2178306,2178370,2178434,2178498,2178562]),new Uint32Array([2233889,2214753,2233921,2233953,2233985,2234017,2234049,2234081,2234113,2234145,2214241,2234177,2234209,2234241,2234273,2234305]),new Uint32Array([2187586,2187650,2257025,2257057,2257089,2187714,2257121,2257153,2257185,2257217,2257249,2257281,2257313,2187778,2257345,2257377]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2132835,2132931,2132931,2133027,2133123,2133219,2133315,2133411,2133507,2133507,2133603,2133699,2133795,2133891,2133987,2134083]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672]),new Uint32Array([0,10569410,10569474,10569538,10569602,10569666,10569730,10569794,10569858,10569922,10569986,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,2224993,6291456,2225025,6291456,2225057,6291456,2225089,6291456,2225121,6291456,2225153,6291456,2225185,6291456]),new Uint32Array([2215297,2183106,2183106,2250081,2250113,2250113,2250145,2183170,2183234,2250177,2250209,2250241,2250273,2250305,2250337,2250369]),new Uint32Array([6291456,2143618,2143618,2143618,2193153,6291456,2193185,2193217,2193249,6291456,2193281,6291456,2193313,6291456,2193345,6291456]),new Uint32Array([2201441,2201473,2201505,2201537,2157185,2201569,2157217,2201601,2201633,2201665,2201697,2201729,2201761,2201793,2157377,2201825]),new Uint32Array([0,0,2137347,2137443,2137539,2137635,2137731,2137827,2137827,2137923,2138019,2138115,2138211,2138211,2138307,2138403]),new Uint32Array([2195201,2195265,2195297,2195617,2195489,2195457,2148609,2195105,2195137,2195169,2195201,2195233,2148929,2195265,2144097,2195297]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2190081,6291456,2190113,6291456,2190145,6291456,2190177,6291456,2190209,6291456,2190241,6291456,2190273,6291456,2190305,6291456]),new Uint32Array([0,0,0,2157186,2157250,2157314,2157378,2157442,0,0,0,0,0,2157506,23068672,2157570]),new Uint32Array([10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,2097152,4194304,4194304,0,0]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2104516,2104644,2104772,2122371,2104900,2122467,2122563,2100101,2105028,2122659,2122755,2122851,2105156,2105284,2122947,2123043]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2210049,2210081,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2242849,2242849,2242881,2242881,2242881,2242881,2242913,2242913,2242913,2242913,2242945,2242945,2242945,2242945,2242977,2242977]),new Uint32Array([6291456,0,6291456,2145154,0,6291456,2145218,0,6291456,6291456,0,0,23068672,0,23068672,23068672]),new Uint32Array([2188609,2188641,2188673,2188705,2188737,2188769,2188801,2188833,2188865,2188897,2188929,2188961,2188993,2189025,2189057,2189089]),new Uint32Array([2241633,2253665,2253697,2253729,2253761,2184642,2253793,2184706,2232961,2184770,2253825,2184834,2184898,2184962,2253857,2253889]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([2241345,2238049,2231233,2241377,2241409,2215937,2233409,2236033,2241441,2241473,2239393,2241505,2239425,2241537,2241569,2241601]),new Uint32Array([2197377,2197409,2197441,2197473,2197505,2197537,2197569,2197601,2197633,2197665,2197697,2197729,2197761,2197793,2197825,2197857]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,0,23068672,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([2175554,2175618,2175682,2175746,2175810,2175874,2175938,2176002,2176066,2176130,2176194,2176258,2176322,2176386,2176450,2176514]),new Uint32Array([2098337,2103169,2103297,2103425,2103553,2103681,2103809,2103937,2102561,2102465,2098337,2103169,2103297,2103425,2103553,2103681]),new Uint32Array([2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,2102561,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([10537410,10497539,2148866,2148930,2148994,0,6291456,2149058,2209537,2194977,2148865,2148993,2148930,10497635,10497731,10497827]),new Uint32Array([2162977,2097633,2097633,2097633,2097633,2134561,2134561,2134561,2134561,2097153,2097153,2097153,2097153,2134945,2134945,2134945]),new Uint32Array([0,2244001,2244033,10632673,10632673,10491329,10491425,10632705,10632737,2141857,2141921,2244161,2244193,2244225,2244257,2210049]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2102017,2100385,2098049,2223681,2125345,2125537,2223713,2100353,2102049,2098145,2102177,2098017,2100481,2100705,2150369,2150433]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2162818,2163842,2163906,2137026,2138082,2162626,2139810,2160066,2160130,2163970,2160194,2164034,2160322,2141378,2138306,2160386]),new Uint32Array([2124771,2124867,2124963,2106436,2125059,2125155,2125251,2101861,2106564,2102018,2102021,2106690,2106692,2098052,2125347,2125443]),new Uint32Array([2212225,6291456,2212257,6291456,2212289,6291456,2212321,6291456,2212353,6291456,2212385,6291456,2212417,6291456,2212449,6291456]),new Uint32Array([2164034,2160386,2164098,2133218,2164162,2160770,2164418,2134082,2164482,2134754,2164546,2162050,2140514,2097666,2138018,2164290]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150274,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,6291456,23068672,23068672,6291456,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2223841,6291456,2223873,6291456,2223905,6291456,2223937,6291456,2223969,6291456,2202369,6291456,2224001,6291456,2224033,6291456]),new Uint32Array([10506947,10507043,10507139,10507235,10507331,10507427,10507523,10507619,10507715,10507811,10507907,10508003,10508099,10508195,10508291,10508387]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2147010,2147074,2147138,2147202,2147266,2147330,2147394,2147458,2147010,2147074,2147138,2147202,2147266,2147330,2147394,2147458]),new Uint32Array([2204769,6291456,2204801,6291456,2204833,6291456,2204865,6291456,2204897,6291456,2204929,6291456,2204961,6291456,2204993,6291456]),new Uint32Array([2136291,2136387,2136483,2136579,2136579,2136675,2136675,2136771,2136771,2136867,2107715,2136963,2137059,2137155,2133443,2137251]),new Uint32Array([2200801,6291456,2200833,6291456,2200865,6291456,2200897,6291456,2200929,6291456,2200961,6291456,2200993,6291456,2201025,6291456]),new Uint32Array([23068672,18885986,23068672,23068672,23068672,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([2127202,2153602,2153666,2129250,2153730,2153794,2153858,2153922,2107235,2107204,2153986,2154050,2154114,2154178,2154242,2107522]),new Uint32Array([2254689,2254721,2185858,2185922,2254753,2185986,2254785,2186050,2254817,2254849,2239937,2186114,2186178,2254881,2186242,2254913]),new Uint32Array([2243745,2243745,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2195201,2195233,2148929,2195265,2144097,2195297,2195329,2153665,2195361,2195393,2195425,2195457,2195489,2195265,2195521,2195553]),new Uint32Array([0,2107649,2097729,2107809,0,2097601,2162977,2107745,2135137,2097505,0,2097185,2097697,2137633,2097633,2097441]),new Uint32Array([6291456,0,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2141667,2141763,2097284,2107588,2107716,2107844,2107972,2097444,2097604,2097155,10485778,10486344,2108100,6291456,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,23068672,6291456,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,6291456,6291456,23068672,23068672,23068672,6291456,0,0,0,0,0]),new Uint32Array([2098081,2101249,2100833,2122561,2100097,2122657,2105089,2097985,2100161,2123233,2123329,2100897,2101601,2100129,2101121,2152801]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456]),new Uint32Array([2107298,2156226,2128803,2156290,2153858,2128899,2128995,2156354,0,2129091,2156418,2156482,2156546,2156610,2129187,2129283]),new Uint32Array([6291456,2192385,2192417,2192449,6291456,2192481,6291456,2192513,2192545,6291456,6291456,6291456,2192577,6291456,6291456,6291456]),new Uint32Array([2195585,2195617,2195649,2195681,2149185,2245729,2195201,2195265,2195297,2195617,2195489,2195457,2148609,2195105,2195137,2195169]),new Uint32Array([2248193,2248225,2248257,2248289,2248321,2248353,2248353,2240737,2248385,2248417,2248449,2248481,2238913,2248513,2248545,2248577]),new Uint32Array([23068672,6291456,23068672,23068672,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2180674,2180738,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2107329,2114145,2110049,2114337,2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,2098209,2112993]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,0,0,0,0,0,0,6291456,0]),new Uint32Array([2141187,2141283,2141379,2140899,2135427,2134467,2141475,2141571,0,0,0,0,0,0,0,0]),new Uint32Array([2235265,2235297,2235329,2235361,2235393,2235425,2235457,2235489,2235521,2235553,2235585,2235617,2235649,2235681,2235713,2230561]),new Uint32Array([0,0,23068672,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2108228,2098372]),new Uint32Array([10504163,10504259,10504355,10504451,10504547,10504643,10504739,10504835,10504931,10505027,10505123,10505219,10505315,10505411,10505507,10505603]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2099332,2099524,2099334,2099526,2099718]),new Uint32Array([10505699,10505795,10505891,10505987,10506083,10506179,10506275,10506371,10506467,10506563,10506659,10506755,10506851,10492868,10492996,0]),new Uint32Array([2231457,2231489,2231521,2231553,2217377,2231585,2231617,2231649,2231681,2231713,2231745,2231777,2231809,2231841,2231873,2231905]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2243233,2243233,2243265,2243265,2243297,2243297,2243329,2243329,2243361,2243361,2243393,2243393,2243425,2243425,2243457,2243457]),new Uint32Array([2195297,2195489,2195521,6291456,2195265,2195201,6291456,2196193,6291456,2195521,2196225,6291456,6291456,2196257,2196289,2196321]),new Uint32Array([2216033,2216065,2216097,2216129,2119521,2119425,2216161,2216193,2216225,2216257,2216289,2216321,2216353,2216385,2216417,2216449]),new Uint32Array([2247521,2247553,2246689,2247585,2247617,2240641,2238785,2238817,2240673,2247649,2247681,2232993,2247713,2238849,2247745,2247777]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([0,0,2097729,0,0,0,0,2107745,0,2097505,0,2097185,0,2137633,2097633,2097441]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2208705,2208737,2208769,2208801,2208833,2208865,0,0]),new Uint32Array([6291456,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,2111811,6291456,6291456,0,0,0,0]),new Uint32Array([2191873,2107297,2098305,2110337,2194753,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2219969,2220001,2220033,2220065,2220097,2220129,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2239169,2230337,2153377,2250753,2250785,2250817,2250849,2250881,2183362,2250913,2250945,2250977,2251009,2251041,2183426,2251073]),new Uint32Array([2148609,2195105,2195137,2195169,2195201,2195233,2148929,2195265,2144097,2195297,2195329,2153665,2195361,2195393,2195425,2195457]),new Uint32Array([2193889,6291456,2193921,6291456,2193953,6291456,2193985,6291456,2194017,6291456,2194049,6291456,2194081,6291456,2194113,6291456]),new Uint32Array([2182594,2182658,2249025,2249057,2249089,2249121,2249153,2249185,0,2249217,2249249,2249249,2182722,2249281,2249313,2232865]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2098209,2188801,2112993,6291456]),new Uint32Array([2140035,2140131,2140227,2140323,2136099,2136291,2140419,2140515,2140611,2140707,2140803,2140899,2140803,2140611,2140995,2141091]),new Uint32Array([6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,23068672,0,23068672,23068672,0,23068672]),new Uint32Array([2115201,2115297,2098209,2112993,2107233,2098241,2110209,2110273,2107553,2113569,2102625,2113761,2107201,2107297,2107329,2114145]),new Uint32Array([2195457,2195489,0,2195521,2195553,2195585,2195617,2195649,2195681,2149185,2195713,2195745,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,2194337,6291456,2194369,2194401,2194433,2194465,6291456,2194497,6291456,2194529,6291456,2194561,6291456,2194593,6291456]),new Uint32Array([2126530,2126626,2125731,2125827,2125923,2126019,2126115,2126211,2126307,2126403,2126499,2126595,2126691,2126787,2126883,2126979]),new Uint32Array([2100385,2098049,2223681,2125345,2125537,2223713,2100353,2102049,2098145,2102177,2098017,2100481,2223745,2223777,2223809,2152322]),new Uint32Array([2097281,2107649,2097729,2107809,2097377,2097601,2162977,2107745,2135137,2097505,0,2097185,2097697,2137633,2097633,2097441]),new Uint32Array([23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2206049,6291456,2206081,6291456,2206113,6291456,2206145,6291456,2206177,6291456,2206209,6291456,2206241,6291456,2206273,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2196865,2196897,2196929,2196961,2196993,2197025,2197057,2197089,2197121,2197153,2197185,2197217,2197249,2197281,2197313,2197345]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,0,0,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2226497,6291456,2226529,6291456,6291456,6291456,2226561,6291456,2226593,6291456,2226625,6291456,2226657,6291456,2226689,6291456]),new Uint32Array([2198529,6291456,2198561,6291456,2198593,6291456,2198625,6291456,2198657,6291456,2198689,6291456,2198721,6291456,2198753,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2178626,2178690,2178754,2178818,2178882,2178946,2179010,2179074,2179138,2179202,2179266,2179330,2179394,2179458,2179522,2179586]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456]),new Uint32Array([2195489,2195521,2195521,2195553,2195585,2195617,2195649,2195681,2149185,2245729,2195201,2195265,2195297,2195617,2195489,2195457]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2226177,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2226209,6291456,2226241,6291456,2226273,2226305,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,2213665]),new Uint32Array([2224801,6291456,2224833,6291456,2224865,6291456,2224897,6291456,2224929,6291456,2224961,6291456,2197697,2197761,23068672,23068672]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,6291456,0,0,0,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([10508483,10508579,10508675,10508771,10508867,10508963,10509059,10509155,10509251,10509347,10509443,10509539,10509635,10509731,10509827,10509923]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2104132,6291456,6291456,6291456]),new Uint32Array([2110273,2204161,2204193,2204225,2191937,2191905,2204257,2204289,2204321,2204353,2204385,2204417,2204449,2204481,2192033,2204513]),new Uint32Array([2234849,2233377,2234881,2234913,2234945,2234977,2235009,2235041,2152321,2235073,2232865,2235105,2235137,2235169,2235201,2235233]),new Uint32Array([0,0,2107553,0,0,2113761,2107201,0,0,2114145,2110049,2114337,2114433,0,2098305,2110177]),new Uint32Array([2119905,2107073,2120097,2107169,2120289,2120385,2120481,2120577,2120673,2223201,2223233,2214753,2223265,2223297,2223329,2223361]),new Uint32Array([2114337,2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,10633025,10633281,10633057,10633569,10632673]),new Uint32Array([0,2201057,2201089,2201121,2201153,2144129,2201185,2201217,2201249,2201281,2201313,2157345,2201345,2157473,2201377,2201409]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0,0,0,0,6291456,0,0]),new Uint32Array([2138338,2165250,2165314,2165378,2165442,2134658,2134562,2165506,2134754,2165570,2165634,2165698,2165762,2134658,2134562,2165506]),new Uint32Array([2168962,2169026,2169090,2169154,2169218,2169282,2169346,2169410,2169474,2169538,2169602,2169666,2169730,2169794,2169858,2169922]),new Uint32Array([2240449,2240481,2240513,2240545,2240577,2240609,2240641,2240673,2238881,2240705,2240737,2240769,2238017,2240801,2240833,2240865]),new Uint32Array([0,0,2221185,2221217,2221249,2221281,2221313,2221345,0,0,2221377,2221409,2221441,0,0,0]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2134082,2134370,2164226,2134466,2161026,2134946,2135042,2161090,2161154,2161218,2135426,2107906,2161282,2135714,2161346,2161410]),new Uint32Array([2214625,2214657,2214689,2214721,2153473,2214753,2214785,2214817,2214849,2214881,2214913,2214945,2214977,2215009,2215041,2215073]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2202145,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2209153,2209185,2209217,2209249,2209281,2209313,0,0]),new Uint32Array([2125539,2106820,2152898,2125635,2106948,2152962,2102181,2100483,2125762,2125858,2125954,2126050,2126146,2126242,2126338,2126434]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,0,0,0,0,0,0,0,10485857]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([2257409,2187842,2257441,2257473,2257505,2257537,2187906,2187970,2257569,2257601,2257633,2188034,2257665,2188098,2242561,2242561]),new Uint32Array([2237633,2248609,2248641,2248673,2248705,2248737,2248769,2248801,2248833,2182530,2248865,2248897,2248929,2245921,2248961,2248993]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2245217,2245249,2245281,10531522,2245313,2245345,2245377,0,2245409,2245441,2245473,2245505,2245537,2245569,2245601,0]),new Uint32Array([2207169,6291456,2207201,6291456,2207233,6291456,2207265,6291456,2207297,6291456,2207329,6291456,2207361,6291456,2207393,6291456]),new Uint32Array([23068672,23068672,23068672,18923778,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,18923842,23068672,23068672]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([10520771,10520867,10520963,10521059,2162882,2162946,2160194,2163010,2160002,2160258,2107650,2163074,2160386,2163138,2160450,2160514]),new Uint32Array([2224321,6291456,2224353,6291456,2224385,6291456,2224417,6291456,2224449,6291456,2224481,6291456,2224513,6291456,6291456,23068672]),new Uint32Array([2206305,6291456,2206337,6291456,2206369,6291456,2206401,6291456,2206433,6291456,2206465,6291456,2206497,6291456,2206529,6291456]),new Uint32Array([2218945,2218977,2219009,2219041,2219073,2219105,2219137,2219169,2219201,2219233,2219265,2219297,2219329,2219361,2219393,2219425]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2133442,2134306,2137826,2137634,2162242,2138018,2164290,2162434,2137442,2164354,2139042,2133666,2160930,2137026,2097506,2160194]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0]),new Uint32Array([2102561,2102465,2098337,2103169,2103297,2103425,2103553,2103681,2103809,2103937,0,0,0,0,0,0]),new Uint32Array([2135713,2136001,2136001,2136001,2136001,2136097,2136097,2136097,2136097,2107617,2107617,2107617,2107617,2097185,2097185,2097185]),new Uint32Array([2168450,2168514,2168578,2168642,2168706,2168770,2168834,2168898,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2187010,2187074,2256033,2256065,2231617,2256097,2256129,2256161,2256193,2256225,2256257,2242145,2256289,2256321,2256353,0]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([0,0,2220801,2220833,2220865,2220897,2220929,2220961,0,0,2220993,2221025,2221057,2221089,2221121,2221153]),new Uint32Array([0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2189825,6291456,2189857,6291456,2189889,6291456,2189921,6291456,2189953,6291456,2189985,6291456,2190017,6291456,2190049,6291456]),new Uint32Array([2098209,2112993,2107233,2098241,2110209,2110273,2107553,2113569,2102625,2113761,2107201,2107297,2107329,2114145,2110049,2114337]),new Uint32Array([0,0,0,0,0,0,0,23068672,0,0,0,0,2144962,2145026,0,2145090]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2134370,2134466,2161026,2134946,2135042,2161090,2161154,2135138,2161218,2135426,2107906,2161282,2135714,2161346,2161410,2136002]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2202049,6291456,6291456,6291456]),new Uint32Array([2102625,2113761,2107201,2107297,2107329,2114145,2110049,2114337,2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337]),new Uint32Array([2199521,6291456,2199553,6291456,2199585,6291456,2199617,6291456,2199649,6291456,2199681,6291456,2199713,6291456,2199745,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456]),new Uint32Array([2251937,2251969,2239297,2183618,2252001,2252033,2252065,2242625,2252097,2252129,2252161,2252193,2183682,2252225,2252257,2252289]),new Uint32Array([2205281,6291456,2205313,6291456,2205345,6291456,2205377,6291456,2205409,6291456,2205441,6291456,2205473,6291456,2205505,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2207425,6291456,2207457,6291456,2207489,6291456,2207521,6291456,2207553,6291456,2207585,6291456,2207617,6291456,2207649,6291456]),new Uint32Array([2210081,2244289,2244321,2244353,2244385,6291456,6291456,10633025,10633057,10538114,10538114,10538114,10538114,10632673,10632673,10632673]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2202177,2202209,2202241,2202273,2202305,2202337,0,0]),new Uint32Array([2195617,2195649,2102625,2098177,2110145,2102593,2195105,2195137,2195489,2195617,2195649,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,23068672,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,2145794,2145858,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,23068672,23068672]),new Uint32Array([2157890,2157954,2158018,2158082,2158146,2158210,2158274,0,2158338,2158402,2158466,2158530,2158594,0,2158658,0]),new Uint32Array([2243617,2243617,2243617,2243617,2243649,2243649,2243681,2243681,2243681,2243681,2243713,2243713,2243713,2243713,2141729,2141729]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,2098209,2112993,2107233,2098241,2110209,2110273]),new Uint32Array([2236673,2236705,2236737,2236769,2236801,2236833,2236865,2236897,2236929,2218625,2236961,2236993,2237025,2237057,2237089,2237121]),new Uint32Array([2234337,2234369,2234401,2234433,2234465,2234497,2234529,2234561,2234593,2234625,2234657,2234689,2234721,2234753,2234785,2234817]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2213249,6291456,2213281,6291456,2213313,6291456,2213345,6291456,2213377,6291456,2213409,6291456,2213441,6291456,2213473,6291456]),new Uint32Array([2225697,6291456,2225729,6291456,2225761,6291456,2225793,6291456,2225825,6291456,2225857,6291456,2225889,6291456,2225921,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2207937,6291456,2207969,6291456,2208001,6291456,2208033,6291456,2208065,6291456,2208097,6291456,2208129,6291456,2208161,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2110145,2102593,2115009,2110337,2115201,2115297,2098209,2112993,2107233,2098241,0,2110273,0,2113569,2102625,2113761]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2195201,2195233,2148929,2195265,2144097,2195297,2195329,2153665,2195361,2195393,2195425,2195457,2195489,2195521,2195521,2195553]),new Uint32Array([6291456,6291456,2118369,2118465,2118561,2118657,2222817,2222849,2222881,2222913,2213857,2222945,2222977,2223009,2223041,2213953]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,2115585,2220289,2220321,2115681,2220353,2220385,2115777,2220417,2115873,2220449,2220481,2220513,2220545,2220577,2220609]),new Uint32Array([2115009,2110337,2115201,2115297,2098209,2112993,0,2098241,2110209,2110273,2107553,0,0,2113761,2107201,2107297]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([0,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2152642,2152706,2101381,2106180,2101541,2124099,2101701,2152770,2124195,2124291,2124387,2124483,2124579,2106308,2124675,2152834]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,6291456,6291456,14680064]),new Uint32Array([6291456,2209921,6291456,6291456,6291456,6291456,6291456,10537986,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2200545,6291456,2200577,6291456,2200609,6291456,2200641,6291456,2200673,6291456,2200705,6291456,2200737,6291456,2200769,6291456]),new Uint32Array([2127586,2127555,2127651,2127747,2127843,2154306,2154370,2154434,2154498,2154562,2154626,2154690,2127938,2128034,2128130,2127939]),new Uint32Array([2097152,0,0,0,2097152,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2198145,6291456,2198177,6291456,2198209,6291456,2198241,6291456,2198273,6291456,2198305,6291456,2198337,6291456,2198369,6291456]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([2110177,2110145,2115009,2098209,2203841,2203873,2203905,2112993,2098241,2110209,2191745,2191777,2203937,2107553,6291456,2107201]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2224545,6291456,2224577,6291456,2224609,6291456,2224641,6291456,2224673,6291456,2224705,6291456,2224737,6291456,2224769,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([0,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2174530,2174594,2174658,2174722,2174786,2174850,2174914,2174978,2175042,2175106,2175170,2175234,2175298,2175362,2175426,2175490]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672,23068672,0,0]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([2238369,6291456,2238401,6291456,6291456,2238433,2238465,6291456,6291456,6291456,2238497,2238529,2238561,2238593,2238625,2238657]),new Uint32Array([10501475,10501571,10501667,10501763,10501859,10501955,10502051,10502147,10502243,10502339,10502435,10502531,10502627,10502723,10502819,10502915]),new Uint32Array([10633121,10633153,10598561,2244577,10633217,10633249,10504033,0,10633281,10633313,10633345,10633377,0,0,0,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0]),new Uint32Array([2242785,2157761,2158081,2158145,2158529,2158593,2242817,2159105,2159169,10598561,2157634,2157698,2131779,2131875,2157762,2157826]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([18886305,18885921,23068672,18886273,18885890,18921313,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18874368]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,23068672,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2211617,6291456,2211649,2211681,2211713,6291456,6291456,2211745,6291456,2211777,6291456,2211809,6291456,2203873,2204449,2203841]),new Uint32Array([0,2097153,2136097,0,2134561,0,0,2133153,0,2134945,0,2135713,0,2243585,0,2245825]),new Uint32Array([2176578,2176642,2176706,2176770,2176834,2176898,2176962,2177026,2177090,2177154,2177218,2177282,2177346,2177410,2177474,2177538]),new Uint32Array([2127075,2127171,2153026,2153090,2127267,2153154,2153218,2127362,2127363,2127459,2153282,2153346,2153410,2153474,2153538,2107076]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147521,2147585,2147649,2147713,2147777,2147841,2147905,2147969]),new Uint32Array([2131586,2131618,2131714,2131587,2131683,2157122,2157122,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2143298,2190497,6291456,2190529,6291456,2190561,6291456,2190593,6291456,2143362,2190625,6291456,2190657,6291456,2190689,6291456]),new Uint32Array([0,0,2227201,6291456,2227233,2204609,2227265,2227297,6291456,2227329,6291456,0,0,0,0,0]),new Uint32Array([2169986,2170050,2170114,2170178,2170242,2170306,2170370,2170434,2170498,2170562,2170626,2170690,2170754,2170818,2170882,2170946]),new Uint32Array([2210625,2210657,2210689,2210721,2210753,2210785,2210817,2210849,2210881,2210913,2210945,2210977,2211009,2211041,2211073,2211105]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,0,0,6291456,6291456]),new Uint32Array([2213505,6291456,2213537,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2213569,6291456,2213601,6291456,23068672]),new Uint32Array([2215585,2245857,2245889,2152449,2118465,2245921,2245953,2223009,2245985,2246017,2246049,2235713,2246081,2246113,2246145,2246177]),new Uint32Array([2136290,2136674,2097666,2097186,2097474,2097698,2107714,2133442,2134306,2133730,2133634,2137826,2137634,2162242,2138018,2162306]),new Uint32Array([2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,2181506,2129154,2181570,2143106,2141955,2181634]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,23068672,0,0,0,0,23068672]),new Uint32Array([2228513,2228545,2228577,2228609,2228641,2228673,2228705,2228737,2228769,2228801,2228833,2228865,2228897,2228929,2228961,2228993]),new Uint32Array([2219617,2231937,2231969,2232001,2232033,2232065,2232097,2232129,2232161,2232193,2232225,2232257,2232289,2232321,2232353,2232385]),new Uint32Array([2107649,2107649,2107649,2244865,2244865,2132833,2132833,2132833,2132833,2160705,2160705,2160705,2160705,2097729,2097729,2097729]),new Uint32Array([2246785,2246817,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([2138499,2138595,2138691,2138787,2138883,2138979,2139075,2139171,2139267,2139363,2139459,2139555,2139651,2139747,2139843,2139939]),new Uint32Array([2202881,2202913,2202945,2202977,2203009,2203041,2203073,2203105,2203137,2203169,2203201,2203233,2203265,2203297,2203329,2203361]),new Uint32Array([2252641,2239329,2236033,2252673,2252705,2252737,2184066,2252769,2252801,2252833,2252865,2241473,2252897,2184130,2252929,2252961]),new Uint32Array([10569441,2243905,0,0,10583521,10503969,10538177,10538049,2244001,10491329,10491425,10632705,10632737,2141857,2141921,10633089]),new Uint32Array([2150018,2110179,2150082,6291456,2115297,6291456,2149185,6291456,2115297,6291456,2107201,2188769,2112993,2107233,6291456,2110209]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2097152,2097152,2097152,2097152,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2171266,2171330,2171394,2171458,2171522,2171586,2171650,2171714,2171778,2171842,2171906,2171970,2172034,2172098,2172162,2172226]),new Uint32Array([2212481,6291456,2212513,6291456,2212545,6291456,2212577,6291456,2212609,6291456,2212641,6291456,2212673,6291456,2212705,6291456]),new Uint32Array([10485857,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10497250,6291456,2098209,6291456,6291456,2097152,6291456,10531522]),new Uint32Array([2193633,6291456,2193665,6291456,2193697,6291456,2193729,6291456,2193761,6291456,2193793,6291456,2193825,6291456,2193857,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,6291456,6291456,0,0,0,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2100961,2123873,2223617,2098113,2123393,2104929,2223649,2105761,2123713,2123809,2124257,2101377,2101697,2124865,2101857,2102017]),new Uint32Array([2239649,2120577,2239681,2239713,2239745,2239777,2239809,2234529,2239841,2239873,2239905,2239937,2239969,2240001,2240001,2240033]),new Uint32Array([2143170,6291456,2143234,2143234,2190337,6291456,2190369,6291456,6291456,2190401,6291456,2190433,6291456,2190465,6291456,2143298]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2206561,6291456,2206593,6291456,2206625,6291456,2206657,6291456,2206689,6291456,2206721,6291456,2206753,6291456,2206785,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,2191457,2191489,6291456,2191521,6291456,2191553,2191585,6291456,2191617,2191649,2191681,6291456,6291456,2191713,2191745]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2204097,2107233,2204129,2189121,2203937]),new Uint32Array([2136001,2097153,2136097,2107681,2134561,2132833,2160705,2133153,2162689,2134945,2161217,2135713,2245761,2243585,2245793,2245825]),new Uint32Array([0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2102625,2113761,2107201,2107297,2107329,0,2110049,0,0,0,2098305,2110177,2110145,2102593,2115009,2110337]),new Uint32Array([2255681,2255713,2255745,2255777,2186690,2186754,2186818,2255809,2255841,2255873,2255905,2186882,2255937,2186946,2255969,2256001]),new Uint32Array([2226721,6291456,2226753,6291456,2226785,6291456,2226817,6291456,2226849,6291456,2194625,2203937,2204193,2226881,2204257,6291456]),new Uint32Array([2242337,2240225,2242369,2242401,2242433,2242465,2242497,2240289,2238305,2242529,2240321,2242561,2240353,2242593,2220097,2156738]),new Uint32Array([0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2253313,2241569,2253345,2184450,2253377,2253409,2184514,2184578,2253441,2253473,2253505,2253537,2253569,2253569,2253601,2253633]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456]),new Uint32Array([2240065,2240097,2240129,2240161,2240193,2240225,2240257,2238433,2240289,2240321,2240353,2240385,2156674,2240417,0,0]),new Uint32Array([2173314,2173378,2173442,2173506,2173570,2173634,2173698,2173762,2173826,2173890,2173954,2174018,2174082,2174146,2174210,2174274]),new Uint32Array([2115585,2115681,2115777,2115873,2115969,2116065,2116161,2116257,2116353,2116449,2116545,2116641,2116737,2116833,2116929,2117025]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456]),new Uint32Array([2189121,2189153,2189185,2189217,2189249,2189281,2189313,6291456,2189345,2189377,2189409,2189441,2189473,2189505,2189537,4240258]),new Uint32Array([2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,2098209,2112993,2107233,2098241,2110209,2110273,2107553,2113569]),new Uint32Array([2135043,2135139,2135139,2135235,2135331,2135427,2135523,2135523,2135619,2135715,2135811,2135907,2136003,2136003,2136099,2136195]),new Uint32Array([10503395,10503491,10503587,10503683,10503779,10503875,2098209,2112993,2107233,2098241,2110209,2110273,2107553,2113569,2102625,2113761]),new Uint32Array([6291456,6291456,2225217,6291456,2225249,6291456,2225281,6291456,2225313,6291456,2225345,6291456,2225377,6291456,2225409,6291456]),new Uint32Array([18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2181698,2181762,2181826,6291456,6291456,6291456]),new Uint32Array([2103650,2103778,2103906,2104034,10500611,10500707,10500803,10500899,10500995,10501091,10501187,10501283,10501379,10491332,10491460,10491588]),new Uint32Array([23068672,23068672,18923906,23068672,23068672,23068672,23068672,18923970,23068672,23068672,23068672,23068672,18924034,23068672,23068672,23068672]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2251105,2251137,2251169,2251201,2251233,2251265,2251297,2251329,2239201,2251361,2183490,2251393,2251425,2251457,2251489,2239265]),new Uint32Array([2194785,6291456,2194817,6291456,2194849,6291456,2194881,6291456,0,0,10532674,6291456,6291456,6291456,10583521,2194945]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2136002,2141282,2161602,2136098,2161858,2161922,2161986,2162050,2140514,2136578,2136290,2136674,2097666,2097346,2097698,2107714]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2193377,6291456,2193409,6291456,2193441,6291456,2193473,6291456,2193505,6291456,2193537,6291456,2193569,6291456,2193601,6291456]),new Uint32Array([2130051,2130147,2130243,2130339,2130435,2130531,2130627,2130723,2130819,2130915,2131011,2131107,2131203,2131299,2131395,2131491]),new Uint32Array([0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2205025,6291456,2205057,6291456,2205089,6291456,2205121,6291456,2205153,6291456,2205185,6291456,2205217,6291456,2205249,6291456]),new Uint32Array([2197889,6291456,2197921,6291456,2197953,6291456,2197985,6291456,2198017,6291456,2198049,6291456,2198081,6291456,2198113,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2111907,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2159746,2159746,2159810,2159810,2159874,2159874,2159938,2159938,2159938,2160002,2160002,2160002,2108129,2108129,2108129,2108129]),new Uint32Array([2134945,2135137,2135137,2135137,2135137,2161217,2161217,2161217,2161217,2097441,2097441,2097441,2097441,2135713,2135713,2135713]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2225441,6291456,2225473,6291456,2225505,6291456,2225537,6291456,2225569,6291456,2225601,6291456,2225633,6291456,2225665,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2224065,6291456,2224097,6291456,2224129,6291456,2224161,6291456,2224193,6291456,2224225,6291456,2224257,6291456,2224289,6291456]),new Uint32Array([2199777,6291456,2199809,6291456,2199841,6291456,2199873,6291456,2199905,6291456,2199937,6291456,2199969,6291456,2200001,6291456]),new Uint32Array([2107329,2114145,2110049,2114337,2114433,0,2098305,2110177,2110145,2102593,2115009,2110337,2115201,0,2098209,2112993]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2205537,6291456,2205569,6291456,2205601,6291456,2205633,6291456,2205665,6291456,2205697,6291456,2205729,6291456,2205761,6291456]),new Uint32Array([2156802,2156866,2242625,2242657,2242689,2156930,2156994,2157058,2242721,2242753,0,0,0,0,0,0]),new Uint32Array([2211969,6291456,2212001,6291456,2212033,6291456,2212065,6291456,2212097,6291456,2212129,6291456,2212161,6291456,2212193,6291456]),new Uint32Array([2110209,2110273,2107553,2113569,2102625,2113761,2107201,2107297,2107329,2114145,2110049,2114337,2114433,2098177,2098305,2110177]),new Uint32Array([2136001,2097153,2136097,0,2134561,2132833,2160705,2133153,0,2134945,2161217,2135713,2245761,0,2245793,0]),new Uint32Array([2181954,2182018,2100897,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,2209697,6291456,6291456,6291456,6291456,2209729,2209761,2209793,2195073,2209825,10498211,10497251,10598465]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220833,2220865,2220897,2220929,2220961,2220993,2221025,2221057,2221089,2221121,2221153,2221185,2221217,2221249,2221281,2221313]),new Uint32Array([6291456,23068672,6291456,2145666,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,6291456]),new Uint32Array([2190721,6291456,2190753,6291456,2190785,6291456,2190817,6291456,2190849,6291456,2190881,6291456,2190913,6291456,2190945,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456]),new Uint32Array([2215105,2215137,2215169,2215201,2215233,2215265,2215297,2215329,2215361,2215393,2215425,2215457,2215489,2215521,2215553,2215585]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0]),new Uint32Array([0,2107649,2097729,0,2097377,0,0,2107745,2135137,2097505,2107617,0,2097697,2137633,2097633,2097441]),new Uint32Array([2206817,6291456,2206849,6291456,2206881,6291456,2206913,6291456,2206945,6291456,2206977,6291456,2207009,6291456,2207041,6291456]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([2134754,2164482,2164546,2135138,2133890,2133794,2139266,2134658,2134562,2165506,2135138,2161218,2165826,2165826,6291456,6291456]),new Uint32Array([2257697,2188162,2257729,2257761,2257793,2257825,2257857,2257889,2257921,2188226,2242593,2257953,2257985,2258017,2258049,2258081]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2114337,2114433,2098177,2098305,2110177,2110145,2102593,2115009,2110337,2115201,2115297,10632705,10633601,10632737,10633633,2245057]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2195425,2195457,2195489,2195265,2195521,2195553,2195585,2195617,2195649,2195681,2149185,2245697,2148609,2195105,2195137,2195169]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456])],e=new Uint16Array([656,656,605,162,48,207,7,2,147,147,666,339,396,696,98,98,317,557,386,672,641,744,179,4,679,32,124,441,285,270,215,380,713,667,475,167,484,98,98,98,98,98,98,35,98,366,471,98,249,249,249,249,630,249,249,708,233,13,483,98,248,73,194,462,244,491,400,98,98,98,717,612,166,496,176,129,331,565,727,295,284,608,425,516,381,117,98,98,128,611,249,86,418,98,439,571,683,645,98,98,340,249,98,169,98,98,98,98,98,178,749,98,499,29,98,249,678,98,98,98,98,98,79,488,98,98,340,30,98,69,190,712,98,173,134,147,147,147,98,292,738,619,37,249,286,98,98,736,249,265,390,98,469,479,85,508,53,559,186,305,695,479,85,395,181,111,683,631,389,421,85,125,320,710,186,523,227,479,85,125,465,96,186,738,453,132,669,62,293,434,683,134,466,139,85,578,165,460,186,638,143,139,85,251,165,450,186,602,676,139,98,185,618,254,186,98,410,146,98,115,256,545,683,203,604,98,98,743,163,581,147,147,350,98,63,335,402,577,147,147,563,277,98,436,72,187,27,205,426,538,704,273,104,134,147,147,98,98,340,446,98,312,498,221,535,398,147,147,276,98,98,526,98,98,98,98,98,712,604,98,98,98,98,98,98,98,98,98,98,98,98,98,373,430,98,98,373,98,98,412,722,81,98,98,98,722,98,98,98,313,98,341,98,750,98,98,98,98,98,574,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,604,341,98,98,98,98,98,123,490,374,98,759,98,38,490,433,98,98,98,267,249,600,750,750,327,750,98,98,98,98,98,123,234,98,9,98,98,98,98,592,98,712,627,627,723,98,499,571,98,98,581,98,750,588,98,98,98,568,98,98,98,157,249,142,750,750,499,249,298,147,147,147,544,98,98,531,290,98,340,554,561,98,761,98,98,98,79,226,98,98,531,620,517,98,98,98,235,322,658,43,738,131,126,437,98,98,477,309,614,164,575,90,98,681,511,252,249,249,249,150,423,716,570,730,324,489,542,675,752,180,537,572,217,589,223,279,264,468,636,291,528,118,58,367,422,106,21,222,406,107,737,40,388,606,530,269,120,188,610,193,246,321,213,98,147,249,249,298,336,238,661,323,102,211,231,231,470,98,98,98,98,98,98,98,98,98,138,719,98,98,369,98,98,98,98,98,98,98,98,98,98,98,392,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,597,147,134,147,160,703,171,149,51,699,74,558,405,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,510,98,98,98,98,98,98,153,98,98,98,98,98,417,98,98,98,98,98,98,98,98,98,640,98,546,98,98,98,98,98,98,274,644,82,98,98,712,632,34,732,415,665,349,28,586,646,140,98,98,518,98,98,98,505,613,98,597,225,225,225,225,249,249,98,98,98,98,98,184,147,147,98,197,98,98,98,98,98,289,189,259,525,747,342,463,8,54,365,151,19,543,299,472,147,147,363,98,347,201,604,98,98,98,98,114,98,98,98,98,98,56,556,98,98,598,11,742,362,355,337,596,98,98,98,98,757,98,456,458,420,509,77,154,693,64,200,514,344,351,110,133,670,486,391,112,307,603,414,529,485,635,427,609,333,88,224,440,359,714,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,341,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,341,98,98,98,597,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,581,147,419,726,541,296,616,506,98,98,98,98,98,607,98,98,378,700,724,587,172,504,208,495,686,45,642,147,147,247,297,98,493,750,98,98,98,738,741,98,98,531,746,750,249,384,98,98,137,98,175,527,98,341,286,98,98,709,639,501,668,712,98,98,310,497,49,135,98,288,98,98,98,304,448,281,340,314,705,680,225,98,98,113,174,255,25,652,306,16,98,98,622,750,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,757,98,566,98,98,581,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,23,92,316,459,653,141,206,161,371,584,512,452,168,6,583,219,353,109,624,145,41,671,691,521,33,399,260,155,687,731,147,147,637,387,628,579,89,394,338,177,461,83,580,429,507,60,195,720,100,245,562,26,648,262,540,80,218,413,240,524,711,547,416,84,136,278,519,755,147,375,148,698,424,382,657,478,451,147,147,435,701,59,249,408,573,660,626,358,253,654,42,407,721,550,301,303,346,199,287,515,250,758,158,438,0,411,598,258,555,522,536,147,492,98,81,24,499,499,147,147,98,98,98,98,98,98,98,134,447,98,98,590,98,98,98,98,712,341,710,147,147,98,98,68,147,147,147,147,147,147,147,147,98,341,98,98,98,710,268,581,98,98,228,98,134,98,98,352,98,70,98,98,615,592,147,147,311,328,551,98,98,98,98,98,98,499,750,520,643,75,98,581,98,98,738,98,98,98,356,147,147,147,147,147,147,147,147,147,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,597,98,592,738,147,147,147,147,147,147,147,147,147,93,98,98,156,98,546,98,98,98,712,638,147,147,147,98,15,98,690,98,650,147,147,147,147,98,98,98,280,98,715,98,98,202,144,98,651,123,123,98,98,98,98,147,147,98,98,706,597,98,98,98,385,98,364,98,629,98,242,47,147,147,147,147,147,98,98,98,98,123,147,147,147,664,50,692,282,98,98,98,300,98,98,241,750,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,712,98,98,101,507,147,147,147,147,98,98,738,98,79,78,147,147,147,147,147,98,581,147,98,597,561,98,98,39,718,715,98,754,561,98,98,593,507,98,123,750,561,98,175,748,108,98,98,480,561,98,98,709,368,98,604,571,98,421,99,745,147,147,147,147,65,70,750,98,98,376,209,750,674,479,85,576,465,553,122,214,147,147,147,147,147,147,147,147,98,98,98,694,119,294,507,147,98,98,98,249,159,750,147,147,147,147,147,147,147,147,147,147,98,98,376,198,268,560,147,147,98,98,98,249,325,750,341,147,98,98,340,548,750,147,147,147,98,313,627,98,147,147,147,147,147,147,147,147,147,147,147,147,98,98,99,5,147,147,147,147,147,147,621,403,98,98,98,326,677,329,98,343,444,750,147,147,147,147,585,98,98,409,46,147,539,98,98,237,729,567,98,98,347,454,184,147,98,98,98,123,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,85,98,376,401,592,98,341,98,98,688,308,497,147,147,147,147,503,98,98,481,494,750,66,98,601,230,750,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,263,147,147,147,147,147,147,147,147,147,147,147,710,98,98,98,532,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,750,147,147,147,147,147,147,98,98,98,98,98,98,712,571,98,98,98,98,98,98,98,98,98,98,98,98,757,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,712,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,597,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,123,98,712,501,147,147,147,147,147,147,98,499,94,98,98,98,119,592,14,421,95,98,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,634,370,98,98,98,134,147,147,147,147,147,147,98,98,98,98,275,52,249,249,673,561,147,147,147,147,662,334,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,738,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,592,147,147,123,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,712,147,147,147,184,18,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,581,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,98,98,98,98,134,341,123,318,663,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,592,98,98,725,98,98,455,1,753,623,98,398,457,116,98,123,147,98,98,98,98,216,147,147,147,147,147,147,147,147,147,98,757,98,98,98,98,98,597,98,123,147,147,147,147,147,147,147,147,558,582,243,20,449,71,697,564,482,261,513,591,105,558,582,243,599,728,239,22,684,354,97,733,319,74,558,582,243,20,449,239,697,564,482,97,733,319,74,558,582,243,191,361,182,121,103,760,595,442,431,272,87,383,170,474,502,474,183,257,348,404,229,212,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,249,249,249,345,249,249,617,668,594,739,611,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,401,393,266,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,341,718,501,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,99,650,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,98,98,98,98,98,98,98,98,98,98,332,497,147,147,500,31,445,98,192,501,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,604,98,98,98,571,147,147,147,147,604,98,98,499,147,147,147,147,147,147,147,147,147,147,147,147,204,682,357,330,467,633,751,734,487,152,432,152,147,147,147,507,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,581,98,98,98,98,98,98,757,712,604,604,604,98,592,377,625,360,558,649,98,702,98,98,91,499,147,147,147,683,98,735,647,302,283,76,655,592,147,147,147,147,147,147,147,147,147,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,738,341,341,98,98,98,98,98,98,98,757,98,98,98,98,98,123,581,147,581,98,98,98,738,750,98,98,738,98,499,507,147,147,147,147,98,98,98,98,98,98,98,85,98,98,98,98,492,98,98,98,98,98,98,98,98,757,499,315,597,98,123,597,184,597,147,147,98,98,98,98,98,98,98,98,98,740,98,98,134,147,147,549,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,499,147,147,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,571,98,98,98,98,98,98,98,98,98,98,98,98,98,499,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,507,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,710,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,10,44,464,17,443,534,476,127,220,379,3,473,707,61,569,236,659,12,689,397,232,57,196,428,130,36,685,552,55,210,372,533,756,67,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147]);function r(r){return r>=196608?r>=917760&&r<=917999?18874368:0:t[e[r>>4]][15&r]}return{mapStr:"صلى الله عليه وسلمجل جلالهキロメートルrad∕s2𝅘𝅥𝅮𝅘𝅥𝅯𝅘𝅥𝅰𝅘𝅥𝅱𝅘𝅥𝅲𝆹𝅥𝅮𝆺𝅥𝅮𝆹𝅥𝅯𝆺𝅥𝅯エスクードキログラムキロワットグラムトンクルゼイロサンチームパーセントピアストルファラッドブッシェルヘクタールマンションミリバールレントゲン′′′′1⁄10viii(10)(11)(12)(13)(14)(15)(16)(17)(18)(19)(20)∫∫∫∫(오전)(오후)アパートアルファアンペアイニングエーカーカラットカロリーキュリーギルダークローネサイクルシリングバーレルフィートポイントマイクロミクロンメガトンリットルルーブル株式会社kcalm∕s2c∕kgاكبرمحمدصلعمرسولریال𝅗𝅥1⁄41⁄23⁄4 ̈́ྲཱྀླཱྀ ̈͂ ̓̀ ̓́ ̓͂ ̔̀ ̔́ ̔͂ ̈̀‵‵‵a/ca/sc/oc/utelfax1⁄71⁄91⁄32⁄31⁄52⁄53⁄54⁄51⁄65⁄61⁄83⁄85⁄87⁄8xii0⁄3∮∮∮(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)(v)(w)(x)(y)(z)::====(ᄀ)(ᄂ)(ᄃ)(ᄅ)(ᄆ)(ᄇ)(ᄉ)(ᄋ)(ᄌ)(ᄎ)(ᄏ)(ᄐ)(ᄑ)(ᄒ)(가)(나)(다)(라)(마)(바)(사)(아)(자)(차)(카)(타)(파)(하)(주)(一)(二)(三)(四)(五)(六)(七)(八)(九)(十)(月)(火)(水)(木)(金)(土)(日)(株)(有)(社)(名)(特)(財)(祝)(労)(代)(呼)(学)(監)(企)(資)(協)(祭)(休)(自)(至)pte10月11月12月ergltdアールインチウォンオンスオームカイリガロンガンマギニーケースコルナコーポセンチダースノットハイツパーツピクルフランペニヒヘルツペンスページベータボルトポンドホールホーンマイルマッハマルクヤードヤールユアンルピー10点11点12点13点14点15点16点17点18点19点20点21点22点23点24点hpabardm2dm3khzmhzghzthzmm2cm2km2mm3cm3km3kpampagpalogmilmolppmv∕ma∕m10日11日12日13日14日15日16日17日18日19日20日21日22日23日24日25日26日27日28日29日30日31日galffifflשּׁשּׂ ٌّ ٍّ َّ ُّ ِّ ّٰـَّـُّـِّتجمتحجتحمتخمتمجتمحتمخجمححميحمىسحجسجحسجىسمحسمجسممصححصممشحمشجيشمخشممضحىضخمطمحطممطميعجمعممعمىغممغميغمىفخمقمحقمملحملحيلحىلججلخملمحمحجمحيمجحمجممخممجخهمجهممنحمنحىنجمنجىنمينمىيممبخيتجيتجىتخيتخىتميتمىجميجحىجمىسخىصحيشحيضحيلجيلمييحييجييميمميقمينحيعميكمينجحمخيلجمكممجحيحجيمجيفميبحيسخينجيصلےقلے〔s〕ppv〔本〕〔三〕〔二〕〔安〕〔点〕〔打〕〔盗〕〔勝〕〔敗〕 ̄ ́ ̧ssi̇ijl·ʼndžljnjdz ̆ ̇ ̊ ̨ ̃ ̋ ιեւاٴوٴۇٴيٴक़ख़ग़ज़ड़ढ़फ़य़ড়ঢ়য়ਲ਼ਸ਼ਖ਼ਗ਼ਜ਼ਫ਼ଡ଼ଢ଼ําໍາຫນຫມགྷཌྷདྷབྷཛྷཀྵཱཱིུྲྀླྀྒྷྜྷྡྷྦྷྫྷྐྵaʾἀιἁιἂιἃιἄιἅιἆιἇιἠιἡιἢιἣιἤιἥιἦιἧιὠιὡιὢιὣιὤιὥιὦιὧιὰιαιάιᾶι ͂ὴιηιήιῆιὼιωιώιῶι ̳!! ̅???!!?rs°c°fnosmtmivix⫝̸ ゙ ゚よりコト333435참고주의363738394042444546474849503月4月5月6月7月8月9月hgev令和ギガデシドルナノピコビルペソホンリラレムdaauovpciu平成昭和大正明治naμakakbmbgbpfnfμfμgmgμlmldlklfmnmμmpsnsμsmsnvμvkvpwnwμwmwkwkωmωbqcccddbgyhainkkktlnlxphprsrsvwb𤋮𢡊𢡄𣏕𥉉𥳐𧻓stմնմեմիվնմխיִײַשׁשׂאַאָאּבּגּדּהּוּזּטּיּךּכּלּמּנּסּףּפּצּקּרּתּוֹבֿכֿפֿאלئائەئوئۇئۆئۈئېئىئجئحئمئيبجبمبىبيتىتيثجثمثىثيخحضجضمطحظمغجفجفحفىفيقحقىقيكاكجكحكخكلكىكينخنىنيهجهىهييىذٰرٰىٰئرئزئنبزبنترتزتنثرثزثنمانرنزننيريزئخئهبهتهصخنههٰثهسهشهطىطيعىعيغىغيسىسيشىشيصىصيضىضيشخشرسرصرضراً ًـًـّ ْـْلآلألإ𐐨𐐩𐐪𐐫𐐬𐐭𐐮𐐯𐐰𐐱𐐲𐐳𐐴𐐵𐐶𐐷𐐸𐐹𐐺𐐻𐐼𐐽𐐾𐐿𐑀𐑁𐑂𐑃𐑄𐑅𐑆𐑇𐑈𐑉𐑊𐑋𐑌𐑍𐑎𐑏𐓘𐓙𐓚𐓛𐓜𐓝𐓞𐓟𐓠𐓡𐓢𐓣𐓤𐓥𐓦𐓧𐓨𐓩𐓪𐓫𐓬𐓭𐓮𐓯𐓰𐓱𐓲𐓳𐓴𐓵𐓶𐓷𐓸𐓹𐓺𐓻𐳀𐳁𐳂𐳃𐳄𐳅𐳆𐳇𐳈𐳉𐳊𐳋𐳌𐳍𐳎𐳏𐳐𐳑𐳒𐳓𐳔𐳕𐳖𐳗𐳘𐳙𐳚𐳛𐳜𐳝𐳞𐳟𐳠𐳡𐳢𐳣𐳤𐳥𐳦𐳧𐳨𐳩𐳪𐳫𐳬𐳭𐳮𐳯𐳰𐳱𐳲𑣀𑣁𑣂𑣃𑣄𑣅𑣆𑣇𑣈𑣉𑣊𑣋𑣌𑣍𑣎𑣏𑣐𑣑𑣒𑣓𑣔𑣕𑣖𑣗𑣘𑣙𑣚𑣛𑣜𑣝𑣞𑣟𖹠𖹡𖹢𖹣𖹤𖹥𖹦𖹧𖹨𖹩𖹪𖹫𖹬𖹭𖹮𖹯𖹰𖹱𖹲𖹳𖹴𖹵𖹶𖹷𖹸𖹹𖹺𖹻𖹼𖹽𖹾𖹿𞤢𞤣𞤤𞤥𞤦𞤧𞤨𞤩𞤪𞤫𞤬𞤭𞤮𞤯𞤰𞤱𞤲𞤳𞤴𞤵𞤶𞤷𞤸𞤹𞤺𞤻𞤼𞤽𞤾𞤿𞥀𞥁𞥂𞥃0,1,2,3,4,5,6,7,8,9,wzhvsdwcmcmdmrdjほかココ𠄢𠘺𠔜𠕋𩇟𠨬𠭣𡓤𡚨𡛪𡧈𡬘𡷤𡷦𢆃𪎒𢌱𣊸𦇚𢛔𢬌𢯱𣀊𣏃𣑭𣚣𣢧𣪍𡴋𣫺𣲼𣴞𣻑𣽞𣾎𠔥𤉣𤘈𤜵𤠔𤰶𤲒𢆟𤾡𤾸𥁄𥃳𥃲𥄙𥄳𥐝𥘦𥚚𥛅𥥼𥪧𥮫𥲀𥾆𦈨𦉇𦋙𦌾𦓚𦔣𦖨𣍟𦞧𦞵𣎓𣎜𦬼𦰶𦵫𦳕𧏊𦼬𦾱𧃒𧙧𧢮𧥦𧲨𧼯𠠄𠣞𨗒𨗭𨜮𨯺𨵷𩅅𩈚𩐊𩒖𩖶𩬰𪃎𪄅𪈎𪊑𪘀àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįĵķĺļľłńņňŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷÿźżɓƃƅɔƈɖɗƌǝəɛƒɠɣɩɨƙɯɲɵơƣƥʀƨʃƭʈưʊʋƴƶʒƹƽǎǐǒǔǖǘǚǜǟǡǣǥǧǩǫǭǯǵƕƿǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟƞȣȥȧȩȫȭȯȱȳⱥȼƚⱦɂƀʉʌɇɉɋɍɏɦɹɻʁʕͱͳʹͷ;ϳέίόύβγδεζθκλνξοπρστυφχψϊϋϗϙϛϝϟϡϣϥϧϩϫϭϯϸϻͻͼͽѐёђѓєѕіїјљњћќѝўџабвгдежзийклмнопрстуфхцчшщъыьэюяѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧԩԫԭԯաբգդզէըթժլծկհձղճյշոչպջռստրցփքօֆ་ⴧⴭნᏰᏱᏲᏳᏴᏵꙋაბგდევზთიკლმოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶჷჸჹჺჽჾჿɐɑᴂɜᴖᴗᴝᴥɒɕɟɡɥɪᵻʝɭᶅʟɱɰɳɴɸʂƫᴜʐʑḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿἐἑἒἓἔἕἰἱἲἳἴἵἶἷὀὁὂὃὄὅὑὓὕὗᾰᾱὲΐῐῑὶΰῠῡὺῥ`ὸ‐+−∑〈〉ⰰⰱⰲⰳⰴⰵⰶⰷⰸⰹⰺⰻⰼⰽⰾⰿⱀⱁⱂⱃⱄⱅⱆⱇⱈⱉⱊⱋⱌⱍⱎⱏⱐⱑⱒⱓⱔⱕⱖⱗⱘⱙⱚⱛⱜⱝⱞⱡɫᵽɽⱨⱪⱬⱳⱶȿɀⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳬⳮⳳⵡ母龟丨丶丿乙亅亠人儿入冂冖冫几凵刀力勹匕匚匸卜卩厂厶又口囗士夂夊夕女子宀寸小尢尸屮山巛工己巾干幺广廴廾弋弓彐彡彳心戈戶手支攴文斗斤方无曰欠止歹殳毋比毛氏气爪父爻爿片牙牛犬玄玉瓜瓦甘生用田疋疒癶白皮皿目矛矢石示禸禾穴立竹米糸缶网羊羽老而耒耳聿肉臣臼舌舛舟艮色艸虍虫血行衣襾見角言谷豆豕豸貝赤走足身車辛辰辵邑酉釆里長門阜隶隹雨靑非面革韋韭音頁風飛食首香馬骨高髟鬥鬯鬲鬼魚鳥鹵鹿麥麻黃黍黑黹黽鼎鼓鼠鼻齊齒龍龜龠.〒卄卅ᄁᆪᆬᆭᄄᆰᆱᆲᆳᆴᆵᄚᄈᄡᄊ짜ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵᄔᄕᇇᇈᇌᇎᇓᇗᇙᄜᇝᇟᄝᄞᄠᄢᄣᄧᄩᄫᄬᄭᄮᄯᄲᄶᅀᅇᅌᇱᇲᅗᅘᅙᆄᆅᆈᆑᆒᆔᆞᆡ上中下甲丙丁天地問幼箏우秘男適優印注項写左右医宗夜テヌモヨヰヱヲꙁꙃꙅꙇꙉꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꚙꚛꜣꜥꜧꜩꜫꜭꜯꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯꝺꝼᵹꝿꞁꞃꞅꞇꞌꞑꞓꞗꞙꞛꞝꞟꞡꞣꞥꞧꞩɬʞʇꭓꞵꞷꞹꞻꞽꞿꟃꞔᶎꟈꟊꟶꬷꭒʍᎠᎡᎢᎣᎤᎥᎦᎧᎨᎩᎪᎫᎬᎭᎮᎯᎰᎱᎲᎳᎴᎵᎶᎷᎸᎹᎺᎻᎼᎽᎾᎿᏀᏁᏂᏃᏄᏅᏆᏇᏈᏉᏊᏋᏌᏍᏎᏏᏐᏑᏒᏓᏔᏕᏖᏗᏘᏙᏚᏛᏜᏝᏞᏟᏠᏡᏢᏣᏤᏥᏦᏧᏨᏩᏪᏫᏬᏭᏮᏯ豈更賈滑串句契喇奈懶癩羅蘿螺裸邏樂洛烙珞落酪駱亂卵欄爛蘭鸞嵐濫藍襤拉臘蠟廊朗浪狼郎來冷勞擄櫓爐盧蘆虜路露魯鷺碌祿綠菉錄論壟弄籠聾牢磊賂雷壘屢樓淚漏累縷陋勒肋凜凌稜綾菱陵讀拏諾丹寧怒率異北磻便復不泌數索參塞省葉說殺沈拾若掠略亮兩凉梁糧良諒量勵呂廬旅濾礪閭驪麗黎曆歷轢年憐戀撚漣煉璉秊練聯輦蓮連鍊列劣咽烈裂廉念捻殮簾獵囹嶺怜玲瑩羚聆鈴零靈領例禮醴隸惡了僚寮尿料燎療蓼遼暈阮劉杻柳流溜琉留硫紐類戮陸倫崙淪輪律慄栗隆利吏履易李梨泥理痢罹裏裡離匿溺吝燐璘藺隣鱗麟林淋臨笠粒狀炙識什茶刺切度拓糖宅洞暴輻降廓兀嗀塚晴凞猪益礼神祥福靖精蘒諸逸都飯飼館鶴郞隷侮僧免勉勤卑喝嘆器塀墨層悔慨憎懲敏既暑梅海渚漢煮爫琢碑祉祈祐祖禍禎穀突節縉繁署者臭艹著褐視謁謹賓贈辶難響頻恵舘並况全侀充冀勇勺啕喙嗢墳奄奔婢嬨廒廙彩徭惘慎愈慠戴揄搜摒敖望杖滛滋瀞瞧爵犯瑱甆画瘝瘟盛直睊着磌窱类絛缾荒華蝹襁覆調請諭變輸遲醙鉶陼韛頋鬒㮝䀘䀹齃龎עםٱٻپڀٺٿٹڤڦڄڃچڇڍڌڎڈژڑکگڳڱںڻۀہھۓڭۋۅۉ、〖〗—–_{}【】《》「」『』[]#&*-<>\\$%@ءؤة\"'^|~⦅⦆・ゥャ¢£¬¦¥₩│←↑→↓■○ıȷ∇∂ٮڡٯ字双多解交映無前後再新初終販声吹演投捕遊指禁空合満申割営配得可丽丸乁你侻倂偺備像㒞兔兤具㒹內冗冤仌冬刃㓟刻剆剷㔕包匆卉博即卽卿灰及叟叫叱吆咞吸呈周咢哶唐啓啣善喫喳嗂圖圗噑噴壮城埴堍型堲報墬売壷夆夢奢姬娛娧姘婦㛮嬈嬾寃寘寳寿将㞁屠峀岍嵃嵮嵫嵼巡巢㠯巽帨帽幩㡢㡼庰庳庶舁弢㣇形彫㣣徚忍志忹悁㤺㤜惇慈慌慺憲憤憯懞戛扝抱拔捐挽拼捨掃揤搢揅掩㨮摩摾撝摷㩬敬旣書晉㬙㬈㫤冒冕最暜肭䏙朡杞杓㭉柺枅桒梎栟椔楂榣槪檨櫛㰘次歔㱎歲殟殻汎沿泍汧洖派浩浸涅洴港湮㴳滇淹潮濆瀹瀛㶖灊災灷炭煅熜爨牐犀犕獺王㺬玥㺸瑇瑜璅瓊㼛甤甾瘐㿼䀈眞真瞋䁆䂖硎䃣秫䄯穊穏䈂篆築䈧糒䊠糨糣紀絣䌁緇縂繅䌴䍙罺羕翺聠聰䏕育脃䐋脾媵舄辞䑫芑芋芝劳花芳芽苦茝荣莭茣莽菧荓菊菌菜䔫蓱蓳蔖蕤䕝䕡䕫虐虧虩蚩蚈蜎蛢蜨蝫螆蟡蠁䗹衠裗裞䘵裺㒻䚾䛇誠貫賁贛起跋趼跰軔邔郱鄑鄛鈸鋗鋘鉼鏹鐕開䦕閷䧦雃嶲霣䩮䩶韠䪲頩飢䬳餩馧駂駾䯎鱀鳽䳎䳭鵧䳸䵖黾鼅鼏鼖",mapChar:r}}))})(a),function(t,e){!function(e,n){t.exports=n(r.default,a.exports)}(0,(function(t,e){function r(r,n,i){const o=[],s=t.ucs2.decode(r);for(let r=0;r<s.length;r++){const a=s[r],u=t.ucs2.encode([s[r]]),h=e.mapChar(a),l=h>>23,c=h>>21&3,f=h>>5&65535,d=31&h,p=e.mapStr.substr(f,d);if(0===c||n&&1&l)throw new Error("Illegal char "+u);1===c?o.push(p):2===c?o.push(i?p:u):3===c&&o.push(u)}return o.join("").normalize("NFC")}function n(e,n,o){void 0===o&&(o=!1);let s=r(e,o,n).split(".");return s=s.map((function(e){return e.startsWith("xn--")?i(e=t.decode(e.substring(4)),o,!1):i(e,o,n),e})),s.join(".")}function i(t,n,i){if("-"===t[2]&&"-"===t[3])throw new Error("Failed to validate "+t);if(t.startsWith("-")||t.endsWith("-"))throw new Error("Failed to validate "+t);if(t.includes("."))throw new Error("Failed to validate "+t);if(r(t,n,i)!==t)throw new Error("Failed to validate "+t);const o=t.codePointAt(0);if(e.mapChar(o)&2<<23)throw new Error("Label contains illegal character: "+o)}function o(e,r){void 0===r&&(r={});const i=!("transitional"in r)||r.transitional,o="useStd3ASCII"in r&&r.useStd3ASCII,s="verifyDnsLength"in r&&r.verifyDnsLength,a=n(e,i,o).split(".").map(t.toASCII),u=a.join(".");let h;if(s){if(u.length<1||u.length>253)throw new Error("DNS name has wrong length: "+u);for(h=0;h<a.length;h++){const t=a[h];if(t.length<1||t.length>63)throw new Error("DNS label has wrong length: "+t)}}return u}function s(t){const e=Array.isArray(t);e||(t=[t]);const r={IDN:[],PC:[]};return t.forEach((t=>{let e,n;try{e=o(t,{transitional:!t.match(/\.(?:be|ca|de|fr|pm|re|swiss|tf|wf|yt)\.?$/)}),n={PC:e,IDN:a(e)}}catch(e){n={PC:t,IDN:t}}r.PC.push(n.PC),r.IDN.push(n.IDN)})),e?r:{IDN:r.IDN[0],PC:r.PC[0]}}function a(t,e){return void 0===e&&(e={}),n(t,!1,"useStd3ASCII"in e&&e.useStd3ASCII)}return{toUnicode:a,toAscii:o,convert:s}}))}(s);var u=i.exports.keccak_256,h=s.exports;function l(t){for(var e="",r=0;r<32;r++)e+="00";var n=c(t);if(n){var i=n.split(".");for(r=i.length-1;r>=0;r--){var o=u(i[r]);e=u(new tt(e+o,"hex"))}}return"0x"+e}function c(t){return t?h.toUnicode(t,{useStd3ASCII:!0,transitional:!1}):t}return{hash:l,normalize:c}}(Lu)})),qu=function(t){this.value=t},Vu=Object.defineProperty({EnumType:qu},"__esModule",{value:!0}),Gu=function(){function t(t){this.value=t}return t.prototype.toJSON=function(){return"$"+this.value},t}(),Hu=Object.defineProperty({VariableType:Gu},"__esModule",{value:!0}),Qu=u((function(t,e){function r(t){if(t instanceof Vu.EnumType)return t.value;if(t instanceof Hu.VariableType)return"$"+t.value;if("object"!=typeof t||null===t)return JSON.stringify(t);if(Array.isArray(t))return"["+t.map((function(t){return r(t)})).join(", ")+"]";var e=Object.keys(t).map((function(e){return e+": "+r(t[e])})).join(", ");return"{"+e+"}"}function n(t,r){return-1==e.configFields.indexOf(t)&&-1==r.indexOf(t)}function i(t,e,o,s){Object.keys(t).filter((function(t){return n(t,s.ignoreFields)})).forEach((function(a){var u=t[a];if("object"==typeof u){if(Array.isArray(u)&&!(u=u.find((function(t){return t&&"object"==typeof t}))))return void o.push([""+a,e]);var h=Object.keys(u).filter((function(t){return n(t,s.ignoreFields)})).length>0,l="object"==typeof u.__args&&Object.keys(u.__args).length>0,c="object"==typeof u.__directives,f=u.__all_on instanceof Array,d="object"==typeof u.__on,p=""+a;if("string"==typeof u.__name&&(p=p+" "+u.__name),"string"==typeof u.__aliasFor&&(p=p+": "+u.__aliasFor),"object"==typeof u.__variables&&Object.keys(u.__variables).length>0)p=p+" ("+function(t){var e=[];for(var r in t)e.push("$"+r+": "+t[r]);return e.join(", ")}(u.__variables)+")";else if(l||c){var m="",y="";c&&(y=Object.entries(u.__directives).map((function(t){var e;return"@"+function(t){var e=Object.keys(t)[0],n=t[e];if("boolean"==typeof n||"object"==typeof n&&0===Object.keys(n).length)return e;if("object"==typeof n){var i=[];for(var o in n){var s=r(n[o]).replace(/"/g,"");i.push(o+": "+s)}return e+"("+i.join(", ")+")"}throw new Error("Unsupported type for directive: "+typeof n+". Types allowed: object, boolean.\nOffending object: "+JSON.stringify(t))}(((e={})[t[0]]=t[1],e))})).join(" ")),l&&(m="("+function(t){var e=[];for(var n in t)e.push(n+": "+r(t[n]));return e.join(", ")}(u.__args)+")"),p=p+" "+m+(c&&l?" ":"")+y}if(o.push([p+(h||d||f?" {":""),e]),i(u,e+1,o,s),f&&u.__all_on.forEach((function(t){o.push(["..."+t,e+1])})),d)(u.__on instanceof Array?u.__on:[u.__on]).forEach((function(t){var r=t.__typeName;o.push(["... on "+r+" {",e+1]),i(t,e+2,o,s),o.push(["}",e+1])}));(h||d||f)&&o.push(["}",e])}else(!0===s.includeFalsyKeys||u)&&o.push([""+a,e])}))}Object.defineProperty(e,"__esModule",{value:!0}),e.configFields=["__args","__alias","__aliasFor","__variables","__directives","__on","__all_on","__typeName","__name"],e.jsonToGraphQLQuery=function(t,e){if(void 0===e&&(e={}),!t||"object"!=typeof t)throw new Error("query object not specified");if(0==Object.keys(t).length)throw new Error("query object has no data");e.ignoreFields instanceof Array||(e.ignoreFields=[]);var r=[];i(t,0,r,e);var n="";return r.forEach((function(t){var r=t[0],i=t[1];e.pretty?(n&&(n+="\n"),n+=function(t){return Array(4*t+1).join(" ")}(i)+r):(n&&(n+=" "),n+=r)})),n}})),Ku=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}(Qu),e.EnumType=Vu.EnumType,e.VariableType=Hu.VariableType})),Zu=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class r{}e._CodeOrName=r,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends r{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class i extends r{constructor(t){super(),this._items="string"==typeof t?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const t=this._items[0];return""===t||'""'===t}get str(){var t;return null!==(t=this._str)&&void 0!==t?t:this._str=this._items.reduce(((t,e)=>`${t}${e}`),"")}get names(){var t;return null!==(t=this._names)&&void 0!==t?t:this._names=this._items.reduce(((t,e)=>(e instanceof n&&(t[e.str]=(t[e.str]||0)+1),t)),{})}}function o(t,...e){const r=[t[0]];let n=0;for(;n<e.length;)u(r,e[n]),r.push(t[++n]);return new i(r)}e._Code=i,e.nil=new i(""),e._=o;const s=new i("+");function a(t,...e){const r=[l(t[0])];let n=0;for(;n<e.length;)r.push(s),u(r,e[n]),r.push(s,l(t[++n]));return function(t){let e=1;for(;e<t.length-1;){if(t[e]===s){const r=h(t[e-1],t[e+1]);if(void 0!==r){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}(r),new i(r)}function u(t,e){e instanceof i?t.push(...e._items):e instanceof n?t.push(e):t.push(function(t){return"number"==typeof t||"boolean"==typeof t||null===t?t:l(Array.isArray(t)?t.join(","):t)}(e))}function h(t,e){if('""'===e)return t;if('""'===t)return e;if("string"==typeof t){if(e instanceof n||'"'!==t[t.length-1])return;return"string"!=typeof e?`${t.slice(0,-1)}${e}"`:'"'===e[0]?t.slice(0,-1)+e.slice(1):void 0}return"string"!=typeof e||'"'!==e[0]||t instanceof n?void 0:`"${t}${e.slice(1)}`}function l(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=a,e.addCodeArg=u,e.strConcat=function(t,e){return e.emptyStr()?t:t.emptyStr()?e:a`${t}${e}`},e.stringify=function(t){return new i(l(t))},e.safeStringify=l,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new i(`.${t}`):o`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new i(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(t){return new i(t.toString())}})),Wu=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;class r extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}}var n;!function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"}(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new Zu.Name("const"),let:new Zu.Name("let"),var:new Zu.Name("var")};class i{constructor({prefixes:t,parent:e}={}){this._names={},this._prefixes=t,this._parent=e}toName(t){return t instanceof Zu.Name?t:this.name(t)}name(t){return new Zu.Name(this._newName(t))}_newName(t){return`${t}${(this._names[t]||this._nameGroup(t)).index++}`}_nameGroup(t){var e,r;if((null===(r=null===(e=this._parent)||void 0===e?void 0:e._prefixes)||void 0===r?void 0:r.has(t))||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}}e.Scope=i;class o extends Zu.Name{constructor(t,e){super(e),this.prefix=t}setValue(t,{property:e,itemIndex:r}){this.value=t,this.scopePath=Zu._`.${new Zu.Name(e)}[${r}]`}}e.ValueScopeName=o;const s=Zu._`\n`;e.ValueScope=class extends i{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?s:Zu.nil}}get(){return this._scope}name(t){return new o(t,this._newName(t))}value(t,e){var r;if(void 0===e.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(t),{prefix:i}=n,o=null!==(r=e.key)&&void 0!==r?r:e.ref;let s=this._values[i];if(s){const t=s.get(o);if(t)return t}else s=this._values[i]=new Map;s.set(o,n);const a=this._scope[i]||(this._scope[i]=[]),u=a.length;return a[u]=e.ref,n.setValue(e,{property:i,itemIndex:u}),n}getValue(t,e){const r=this._values[t];if(r)return r.get(e)}scopeRefs(t,e=this._values){return this._reduceValues(e,(e=>{if(void 0===e.scopePath)throw new Error(`CodeGen: name "${e}" has no value`);return Zu._`${t}${e.scopePath}`}))}scopeCode(t=this._values,e,r){return this._reduceValues(t,(t=>{if(void 0===t.value)throw new Error(`CodeGen: name "${t}" has no value`);return t.value.code}),e,r)}_reduceValues(t,i,o={},s){let a=Zu.nil;for(const u in t){const h=t[u];if(!h)continue;const l=o[u]=o[u]||new Map;h.forEach((t=>{if(l.has(t))return;l.set(t,n.Started);let o=i(t);if(o){const r=this.opts.es5?e.varKinds.var:e.varKinds.const;a=Zu._`${a}${r} ${t} = ${o};${this.opts._n}`}else{if(!(o=null==s?void 0:s(t)))throw new r(t);a=Zu._`${a}${o}${this.opts._n}`}l.set(t,n.Completed)}))}return a}}})),Ju=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;var r=Zu;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var n=Wu;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return n.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return n.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return n.varKinds}}),e.operators={GT:new Zu._Code(">"),GTE:new Zu._Code(">="),LT:new Zu._Code("<"),LTE:new Zu._Code("<="),EQ:new Zu._Code("==="),NEQ:new Zu._Code("!=="),NOT:new Zu._Code("!"),OR:new Zu._Code("||"),AND:new Zu._Code("&&"),ADD:new Zu._Code("+")};class i{optimizeNodes(){return this}optimizeNames(t,e){return this}}class o extends i{constructor(t,e,r){super(),this.varKind=t,this.name=e,this.rhs=r}render({es5:t,_n:e}){const r=t?Wu.varKinds.var:this.varKind,n=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${n};`+e}optimizeNames(t,e){if(t[this.name.str])return this.rhs&&(this.rhs=S(this.rhs,t,e)),this}get names(){return this.rhs instanceof Zu._CodeOrName?this.rhs.names:{}}}class s extends i{constructor(t,e,r){super(),this.lhs=t,this.rhs=e,this.sideEffects=r}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,e){if(!(this.lhs instanceof Zu.Name)||t[this.lhs.str]||this.sideEffects)return this.rhs=S(this.rhs,t,e),this}get names(){return N(this.lhs instanceof Zu.Name?{}:{...this.lhs.names},this.rhs)}}class a extends s{constructor(t,e,r,n){super(t,r,n),this.op=e}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}}class u extends i{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}}class h extends i{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}}class l extends i{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}}class c extends i{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,e){return this.code=S(this.code,t,e),this}get names(){return this.code instanceof Zu._CodeOrName?this.code.names:{}}}class f extends i{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce(((e,r)=>e+r.render(t)),"")}optimizeNodes(){const{nodes:t}=this;let e=t.length;for(;e--;){const r=t[e].optimizeNodes();Array.isArray(r)?t.splice(e,1,...r):r?t[e]=r:t.splice(e,1)}return t.length>0?this:void 0}optimizeNames(t,e){const{nodes:r}=this;let n=r.length;for(;n--;){const i=r[n];i.optimizeNames(t,e)||(U(t,i.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((t,e)=>x(t,e.names)),{})}}class d extends f{render(t){return"{"+t._n+super.render(t)+"}"+t._n}}class p extends f{}class m extends d{}m.kind="else";class y extends d{constructor(t,e){super(e),this.condition=t}render(t){let e=`if(${this.condition})`+super.render(t);return this.else&&(e+="else "+this.else.render(t)),e}optimizeNodes(){super.optimizeNodes();const t=this.condition;if(!0===t)return this.nodes;let e=this.else;if(e){const t=e.optimizeNodes();e=this.else=Array.isArray(t)?new m(t):t}return e?!1===t?e instanceof y?e:e.nodes:this.nodes.length?this:new y(P(t),e instanceof y?[e]:e.nodes):!1!==t&&this.nodes.length?this:void 0}optimizeNames(t,e){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(t,e),super.optimizeNames(t,e)||this.else)return this.condition=S(this.condition,t,e),this}get names(){const t=super.names;return N(t,this.condition),this.else&&x(t,this.else.names),t}}y.kind="if";class g extends d{}g.kind="for";class v extends g{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,e){if(super.optimizeNames(t,e))return this.iteration=S(this.iteration,t,e),this}get names(){return x(super.names,this.iteration.names)}}class w extends g{constructor(t,e,r,n){super(),this.varKind=t,this.name=e,this.from=r,this.to=n}render(t){const e=t.es5?Wu.varKinds.var:this.varKind,{name:r,from:n,to:i}=this;return`for(${e} ${r}=${n}; ${r}<${i}; ${r}++)`+super.render(t)}get names(){const t=N(super.names,this.from);return N(t,this.to)}}class b extends g{constructor(t,e,r,n){super(),this.loop=t,this.varKind=e,this.name=r,this.iterable=n}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,e){if(super.optimizeNames(t,e))return this.iterable=S(this.iterable,t,e),this}get names(){return x(super.names,this.iterable.names)}}class A extends d{constructor(t,e,r){super(),this.name=t,this.args=e,this.async=r}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}A.kind="func";class _ extends f{render(t){return"return "+super.render(t)}}_.kind="return";class E extends d{render(t){let e="try"+super.render(t);return this.catch&&(e+=this.catch.render(t)),this.finally&&(e+=this.finally.render(t)),e}optimizeNodes(){var t,e;return super.optimizeNodes(),null===(t=this.catch)||void 0===t||t.optimizeNodes(),null===(e=this.finally)||void 0===e||e.optimizeNodes(),this}optimizeNames(t,e){var r,n;return super.optimizeNames(t,e),null===(r=this.catch)||void 0===r||r.optimizeNames(t,e),null===(n=this.finally)||void 0===n||n.optimizeNames(t,e),this}get names(){const t=super.names;return this.catch&&x(t,this.catch.names),this.finally&&x(t,this.finally.names),t}}class M extends d{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}M.kind="catch";class k extends d{render(t){return"finally"+super.render(t)}}k.kind="finally";function x(t,e){for(const r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function N(t,e){return e instanceof Zu._CodeOrName?x(t,e.names):t}function S(t,e,r){return t instanceof Zu.Name?i(t):(n=t)instanceof Zu._Code&&n._items.some((t=>t instanceof Zu.Name&&1===e[t.str]&&void 0!==r[t.str]))?new Zu._Code(t._items.reduce(((t,e)=>(e instanceof Zu.Name&&(e=i(e)),e instanceof Zu._Code?t.push(...e._items):t.push(e),t)),[])):t;var n;function i(t){const n=r[t.str];return void 0===n||1!==e[t.str]?t:(delete e[t.str],n)}}function U(t,e){for(const r in e)t[r]=(t[r]||0)-(e[r]||0)}function P(t){return"boolean"==typeof t||"number"==typeof t||null===t?!t:Zu._`!${I(t)}`}e.CodeGen=class{constructor(t,e={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...e,_n:e.lines?"\n":""},this._extScope=t,this._scope=new Wu.Scope({parent:t}),this._nodes=[new p]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,e){const r=this._extScope.value(t,e);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(t,e){return this._extScope.getValue(t,e)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,e,r,n){const i=this._scope.toName(e);return void 0!==r&&n&&(this._constants[i.str]=r),this._leafNode(new o(t,i,r)),i}const(t,e,r){return this._def(Wu.varKinds.const,t,e,r)}let(t,e,r){return this._def(Wu.varKinds.let,t,e,r)}var(t,e,r){return this._def(Wu.varKinds.var,t,e,r)}assign(t,e,r){return this._leafNode(new s(t,e,r))}add(t,r){return this._leafNode(new a(t,e.operators.ADD,r))}code(t){return"function"==typeof t?t():t!==Zu.nil&&this._leafNode(new c(t)),this}object(...t){const e=["{"];for(const[r,n]of t)e.length>1&&e.push(","),e.push(r),(r!==n||this.opts.es5)&&(e.push(":"),(0,Zu.addCodeArg)(e,n));return e.push("}"),new Zu._Code(e)}if(t,e,r){if(this._blockNode(new y(t)),e&&r)this.code(e).else().code(r).endIf();else if(e)this.code(e).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new y(t))}else(){return this._elseNode(new m)}endIf(){return this._endBlockNode(y,m)}_for(t,e){return this._blockNode(t),e&&this.code(e).endFor(),this}for(t,e){return this._for(new v(t),e)}forRange(t,e,r,n,i=(this.opts.es5?Wu.varKinds.var:Wu.varKinds.let)){const o=this._scope.toName(t);return this._for(new w(i,o,e,r),(()=>n(o)))}forOf(t,e,r,n=Wu.varKinds.const){const i=this._scope.toName(t);if(this.opts.es5){const t=e instanceof Zu.Name?e:this.var("_arr",e);return this.forRange("_i",0,Zu._`${t}.length`,(e=>{this.var(i,Zu._`${t}[${e}]`),r(i)}))}return this._for(new b("of",n,i,e),(()=>r(i)))}forIn(t,e,r,n=(this.opts.es5?Wu.varKinds.var:Wu.varKinds.const)){if(this.opts.ownProperties)return this.forOf(t,Zu._`Object.keys(${e})`,r);const i=this._scope.toName(t);return this._for(new b("in",n,i,e),(()=>r(i)))}endFor(){return this._endBlockNode(g)}label(t){return this._leafNode(new u(t))}break(t){return this._leafNode(new h(t))}return(t){const e=new _;if(this._blockNode(e),this.code(t),1!==e.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(_)}try(t,e,r){if(!e&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new E;if(this._blockNode(n),this.code(t),e){const t=this.name("e");this._currNode=n.catch=new M(t),e(t)}return r&&(this._currNode=n.finally=new k,this.code(r)),this._endBlockNode(M,k)}throw(t){return this._leafNode(new l(t))}block(t,e){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(e),this}endBlock(t){const e=this._blockStarts.pop();if(void 0===e)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-e;if(r<0||void 0!==t&&r!==t)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${t} expected`);return this._nodes.length=e,this}func(t,e=Zu.nil,r,n){return this._blockNode(new A(t,e,r)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(A)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,e){const r=this._currNode;if(r instanceof t||e&&r instanceof e)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${e?`${t.kind}/${e.kind}`:t.kind}"`)}_elseNode(t){const e=this._currNode;if(!(e instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=e.else=t,this}get _root(){return this._nodes[0]}get _currNode(){const t=this._nodes;return t[t.length-1]}set _currNode(t){const e=this._nodes;e[e.length-1]=t}},e.not=P;const T=C(e.operators.AND);e.and=function(...t){return t.reduce(T)};const R=C(e.operators.OR);function C(t){return(e,r)=>e===Zu.nil?r:r===Zu.nil?e:Zu._`${I(e)} ${t} ${I(r)}`}function I(t){return t instanceof Zu.Name?t:Zu._`(${t})`}e.or=function(...t){return t.reduce(R)}})),Yu=u((function(t,e){function r(t,e=t.schema){const{opts:r,self:n}=t;if(!r.strictSchema)return;if("boolean"==typeof e)return;const i=n.RULES.keywords;for(const r in e)i[r]||c(t,`unknown keyword: "${r}"`)}function n(t,e){if("boolean"==typeof t)return!t;for(const r in t)if(e[r])return!0;return!1}function i(t){return"number"==typeof t?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}function o(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function s({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){return(i,o,s,a)=>{const u=void 0===s?o:s instanceof Ju.Name?(o instanceof Ju.Name?t(i,o,s):e(i,o,s),s):o instanceof Ju.Name?(e(i,s,o),o):r(o,s);return a!==Ju.Name||u instanceof Ju.Name?u:n(i,u)}}function a(t,e){if(!0===e)return t.var("props",!0);const r=t.var("props",Ju._`{}`);return void 0!==e&&u(t,r,e),r}function u(t,e,r){Object.keys(r).forEach((r=>t.assign(Ju._`${e}${(0,Ju.getProperty)(r)}`,!0)))}Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0,e.toHash=function(t){const e={};for(const r of t)e[r]=!0;return e},e.alwaysValidSchema=function(t,e){return"boolean"==typeof e?e:0===Object.keys(e).length||(r(t,e),!n(e,t.self.RULES.all))},e.checkUnknownRules=r,e.schemaHasRules=n,e.schemaHasRulesButRef=function(t,e){if("boolean"==typeof t)return!t;for(const r in t)if("$ref"!==r&&e.all[r])return!0;return!1},e.schemaRefOrVal=function({topSchemaRef:t,schemaPath:e},r,n,i){if(!i){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return Ju._`${r}`}return Ju._`${t}${e}${(0,Ju.getProperty)(n)}`},e.unescapeFragment=function(t){return o(decodeURIComponent(t))},e.escapeFragment=function(t){return encodeURIComponent(i(t))},e.escapeJsonPointer=i,e.unescapeJsonPointer=o,e.eachItem=function(t,e){if(Array.isArray(t))for(const r of t)e(r);else e(t)},e.mergeEvaluated={props:s({mergeNames:(t,e,r)=>t.if(Ju._`${r} !== true && ${e} !== undefined`,(()=>{t.if(Ju._`${e} === true`,(()=>t.assign(r,!0)),(()=>t.assign(r,Ju._`${r} || {}`).code(Ju._`Object.assign(${r}, ${e})`)))})),mergeToName:(t,e,r)=>t.if(Ju._`${r} !== true`,(()=>{!0===e?t.assign(r,!0):(t.assign(r,Ju._`${r} || {}`),u(t,r,e))})),mergeValues:(t,e)=>!0===t||{...t,...e},resultToName:a}),items:s({mergeNames:(t,e,r)=>t.if(Ju._`${r} !== true && ${e} !== undefined`,(()=>t.assign(r,Ju._`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`))),mergeToName:(t,e,r)=>t.if(Ju._`${r} !== true`,(()=>t.assign(r,!0===e||Ju._`${r} > ${e} ? ${r} : ${e}`))),mergeValues:(t,e)=>!0===t||Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})},e.evaluatedPropsToName=a,e.setEvaluated=u;const h={};var l;function c(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,!0===r)throw new Error(e);t.self.logger.warn(e)}}e.useFunc=function(t,e){return t.scopeValue("func",{ref:e,code:h[e.code]||(h[e.code]=new Zu._Code(e.code))})},function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"}(l=e.Type||(e.Type={})),e.getErrorPath=function(t,e,r){if(t instanceof Ju.Name){const n=e===l.Num;return r?n?Ju._`"[" + ${t} + "]"`:Ju._`"['" + ${t} + "']"`:n?Ju._`"/" + ${t}`:Ju._`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Ju.getProperty)(t).toString():"/"+i(t)},e.checkStrictMode=c}));var Xu={data:new Ju.Name("data"),valCxt:new Ju.Name("valCxt"),instancePath:new Ju.Name("instancePath"),parentData:new Ju.Name("parentData"),parentDataProperty:new Ju.Name("parentDataProperty"),rootData:new Ju.Name("rootData"),dynamicAnchors:new Ju.Name("dynamicAnchors"),vErrors:new Ju.Name("vErrors"),errors:new Ju.Name("errors"),this:new Ju.Name("this"),self:new Ju.Name("self"),scope:new Ju.Name("scope"),json:new Ju.Name("json"),jsonPos:new Ju.Name("jsonPos"),jsonLen:new Ju.Name("jsonLen"),jsonPart:new Ju.Name("jsonPart")},th=Object.defineProperty({default:Xu},"__esModule",{value:!0}),eh=u((function(t,e){function r(t,e){const r=t.const("err",e);t.if(Ju._`${th.default.vErrors} === null`,(()=>t.assign(th.default.vErrors,Ju._`[${r}]`)),Ju._`${th.default.vErrors}.push(${r})`),t.code(Ju._`${th.default.errors}++`)}function n(t,e){const{gen:r,validateName:n,schemaEnv:i}=t;i.$async?r.throw(Ju._`new ${t.ValidationError}(${e})`):(r.assign(Ju._`${n}.errors`,e),r.return(!1))}Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0,e.keywordError={message:({keyword:t})=>Ju.str`must pass "${t}" keyword validation`},e.keyword$DataError={message:({keyword:t,schemaType:e})=>e?Ju.str`"${t}" keyword must be ${e} ($data)`:Ju.str`"${t}" keyword is invalid ($data)`},e.reportError=function(t,i=e.keywordError,s,a){const{it:u}=t,{gen:h,compositeRule:l,allErrors:c}=u,f=o(t,i,s);(null!=a?a:l||c)?r(h,f):n(u,Ju._`[${f}]`)},e.reportExtraError=function(t,i=e.keywordError,s){const{it:a}=t,{gen:u,compositeRule:h,allErrors:l}=a;r(u,o(t,i,s)),h||l||n(a,th.default.vErrors)},e.resetErrorsCount=function(t,e){t.assign(th.default.errors,e),t.if(Ju._`${th.default.vErrors} !== null`,(()=>t.if(e,(()=>t.assign(Ju._`${th.default.vErrors}.length`,e)),(()=>t.assign(th.default.vErrors,null)))))},e.extendErrors=function({gen:t,keyword:e,schemaValue:r,data:n,errsCount:i,it:o}){if(void 0===i)throw new Error("ajv implementation error");const s=t.name("err");t.forRange("i",i,th.default.errors,(i=>{t.const(s,Ju._`${th.default.vErrors}[${i}]`),t.if(Ju._`${s}.instancePath === undefined`,(()=>t.assign(Ju._`${s}.instancePath`,(0,Ju.strConcat)(th.default.instancePath,o.errorPath)))),t.assign(Ju._`${s}.schemaPath`,Ju.str`${o.errSchemaPath}/${e}`),o.opts.verbose&&(t.assign(Ju._`${s}.schema`,r),t.assign(Ju._`${s}.data`,n))}))};const i={keyword:new Ju.Name("keyword"),schemaPath:new Ju.Name("schemaPath"),params:new Ju.Name("params"),propertyName:new Ju.Name("propertyName"),message:new Ju.Name("message"),schema:new Ju.Name("schema"),parentSchema:new Ju.Name("parentSchema")};function o(t,e,r){const{createErrors:n}=t.it;return!1===n?Ju._`{}`:function(t,e,r={}){const{gen:n,it:o}=t,u=[s(o,r),a(t,r)];return function(t,{params:e,message:r},n){const{keyword:o,data:s,schemaValue:a,it:u}=t,{opts:h,propertyName:l,topSchemaRef:c,schemaPath:f}=u;n.push([i.keyword,o],[i.params,"function"==typeof e?e(t):e||Ju._`{}`]),h.messages&&n.push([i.message,"function"==typeof r?r(t):r]);h.verbose&&n.push([i.schema,a],[i.parentSchema,Ju._`${c}${f}`],[th.default.data,s]);l&&n.push([i.propertyName,l])}(t,e,u),n.object(...u)}(t,e,r)}function s({errorPath:t},{instancePath:e}){const r=e?Ju.str`${t}${(0,Yu.getErrorPath)(e,Yu.Type.Str)}`:t;return[th.default.instancePath,(0,Ju.strConcat)(th.default.instancePath,r)]}function a({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:n}){let o=n?e:Ju.str`${e}/${t}`;return r&&(o=Ju.str`${o}${(0,Yu.getErrorPath)(r,Yu.Type.Str)}`),[i.schemaPath,o]}})),rh=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.boolOrEmptySchema=e.topBoolOrEmptySchema=void 0;const r={message:"boolean schema is false"};function n(t,e){const{gen:n,data:i}=t,o={gen:n,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,eh.reportError)(o,r,void 0,e)}e.topBoolOrEmptySchema=function(t){const{gen:e,schema:r,validateName:i}=t;!1===r?n(t,!1):"object"==typeof r&&!0===r.$async?e.return(th.default.data):(e.assign(Ju._`${i}.errors`,null),e.return(!0))},e.boolOrEmptySchema=function(t,e){const{gen:r,schema:i}=t;!1===i?(r.var(e,!1),n(t)):r.var(e,!0)}})),nh=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getRules=e.isJSONType=void 0;const r=new Set(["string","number","integer","boolean","null","object","array"]);e.isJSONType=function(t){return"string"==typeof t&&r.has(t)},e.getRules=function(){const t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}})),ih=u((function(t,e){function r(t,e){return e.rules.some((e=>n(t,e)))}function n(t,e){var r;return void 0!==t[e.keyword]||(null===(r=e.definition.implements)||void 0===r?void 0:r.some((e=>void 0!==t[e])))}Object.defineProperty(e,"__esModule",{value:!0}),e.shouldUseRule=e.shouldUseGroup=e.schemaHasRulesForType=void 0,e.schemaHasRulesForType=function({schema:t,self:e},n){const i=e.RULES.types[n];return i&&!0!==i&&r(t,i)},e.shouldUseGroup=r,e.shouldUseRule=n})),oh=u((function(t,e){var r;function n(t){const e=Array.isArray(t)?t:t?[t]:[];if(e.every(nh.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0,function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"}(r=e.DataType||(e.DataType={})),e.getSchemaTypes=function(t){const e=n(t.type);if(e.includes("null")){if(!1===t.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&void 0!==t.nullable)throw new Error('"nullable" cannot be used without "type"');!0===t.nullable&&e.push("null")}return e},e.getJSONTypes=n,e.coerceAndCheckDataType=function(t,e){const{gen:n,data:o,opts:a}=t,h=function(t,e){return e?t.filter((t=>i.has(t)||"array"===e&&"array"===t)):[]}(e,a.coerceTypes),l=e.length>0&&!(0===h.length&&1===e.length&&(0,ih.schemaHasRulesForType)(t,e[0]));if(l){const l=s(e,o,a.strictNumbers,r.Wrong);n.if(l,(()=>{h.length?function(t,e,r){const{gen:n,data:o,opts:a}=t,h=n.let("dataType",Ju._`typeof ${o}`),l=n.let("coerced",Ju._`undefined`);"array"===a.coerceTypes&&n.if(Ju._`${h} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,(()=>n.assign(o,Ju._`${o}[0]`).assign(h,Ju._`typeof ${o}`).if(s(e,o,a.strictNumbers),(()=>n.assign(l,o)))));n.if(Ju._`${l} !== undefined`);for(const t of r)(i.has(t)||"array"===t&&"array"===a.coerceTypes)&&c(t);function c(t){switch(t){case"string":return void n.elseIf(Ju._`${h} == "number" || ${h} == "boolean"`).assign(l,Ju._`"" + ${o}`).elseIf(Ju._`${o} === null`).assign(l,Ju._`""`);case"number":return void n.elseIf(Ju._`${h} == "boolean" || ${o} === null
|
|
27
27
|
|| (${h} == "string" && ${o} && ${o} == +${o})`).assign(l,Ju._`+${o}`);case"integer":return void n.elseIf(Ju._`${h} === "boolean" || ${o} === null
|
|
28
28
|
|| (${h} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(l,Ju._`+${o}`);case"boolean":return void n.elseIf(Ju._`${o} === "false" || ${o} === 0 || ${o} === null`).assign(l,!1).elseIf(Ju._`${o} === "true" || ${o} === 1`).assign(l,!0);case"null":return n.elseIf(Ju._`${o} === "" || ${o} === 0 || ${o} === false`),void n.assign(l,null);case"array":n.elseIf(Ju._`${h} === "string" || ${h} === "number"
|
|
29
|
-
|| ${h} === "boolean" || ${o} === null`).assign(l,Ju._`[${o}]`)}}n.else(),u(t),n.endIf(),n.if(Ju._`${l} !== undefined`,(()=>{n.assign(o,l),function({gen:t,parentData:e,parentDataProperty:r},n){t.if(Ju._`${e} !== undefined`,(()=>t.assign(Ju._`${e}[${r}]`,n)))}(t,l)}))}(t,e,h):u(t)}))}return l};const i=new Set(["string","number","integer","boolean","null"]);function o(t,e,n,i=r.Correct){const o=i===r.Correct?Ju.operators.EQ:Ju.operators.NEQ;let s;switch(t){case"null":return Ju._`${e} ${o} null`;case"array":s=Ju._`Array.isArray(${e})`;break;case"object":s=Ju._`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":s=a(Ju._`!(${e} % 1) && !isNaN(${e})`);break;case"number":s=a();break;default:return Ju._`typeof ${e} ${o} ${t}`}return i===r.Correct?s:(0,Ju.not)(s);function a(t=Ju.nil){return(0,Ju.and)(Ju._`typeof ${e} == "number"`,t,n?Ju._`isFinite(${e})`:Ju.nil)}}function s(t,e,r,n){if(1===t.length)return o(t[0],e,r,n);let i;const s=(0,Xu.toHash)(t);if(s.array&&s.object){const t=Ju._`typeof ${e} != "object"`;i=s.null?t:Ju._`!${e} || ${t}`,delete s.null,delete s.array,delete s.object}else i=Ju.nil;s.number&&delete s.integer;for(const t in s)i=(0,Ju.and)(i,o(t,e,r,n));return i}e.checkDataType=o,e.checkDataTypes=s;const a={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>"string"==typeof t?Ju._`{type: ${t}}`:Ju._`{type: ${e}}`};function u(t){const e=function(t){const{gen:e,data:r,schema:n}=t,i=(0,Xu.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:t}}(t);(0,eh.reportError)(e,a)}e.reportTypeError=u})),sh=u((function(t,e){function r(t,e,r){const{gen:n,compositeRule:i,data:o,opts:s}=t;if(void 0===r)return;const a=Ju._`${o}${(0,Ju.getProperty)(e)}`;if(i)return void(0,Xu.checkStrictMode)(t,`default is ignored for: ${a}`);let u=Ju._`${a} === undefined`;"empty"===s.useDefaults&&(u=Ju._`${u} || ${a} === null || ${a} === ""`),n.if(u,Ju._`${a} = ${(0,Ju.stringify)(r)}`)}Object.defineProperty(e,"__esModule",{value:!0}),e.assignDefaults=void 0,e.assignDefaults=function(t,e){const{properties:n,items:i}=t.schema;if("object"===e&&n)for(const e in n)r(t,e,n[e].default);else"array"===e&&Array.isArray(i)&&i.forEach(((e,n)=>r(t,n,e.default)))}})),ah=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateUnion=e.validateArray=e.usePattern=e.callValidateCode=e.schemaProperties=e.allSchemaProperties=e.noPropertyInData=e.propertyInData=e.isOwnProperty=e.hasPropFunc=e.reportMissingProp=e.checkMissingProp=e.checkReportMissingProp=void 0;const r=Xu;function n(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:Ju._`Object.prototype.hasOwnProperty`})}function i(t,e,r){return Ju._`${n(t)}.call(${e}, ${r})`}function o(t,e,r,n){const o=Ju._`${e}${(0,Ju.getProperty)(r)} === undefined`;return n?(0,Ju.or)(o,(0,Ju.not)(i(t,e,r))):o}function s(t){return t?Object.keys(t).filter((t=>"__proto__"!==t)):[]}e.checkReportMissingProp=function(t,e){const{gen:r,data:n,it:i}=t;r.if(o(r,n,e,i.opts.ownProperties),(()=>{t.setParams({missingProperty:Ju._`${e}`},!0),t.error()}))},e.checkMissingProp=function({gen:t,data:e,it:{opts:r}},n,i){return(0,Ju.or)(...n.map((n=>(0,Ju.and)(o(t,e,n,r.ownProperties),Ju._`${i} = ${n}`))))},e.reportMissingProp=function(t,e){t.setParams({missingProperty:e},!0),t.error()},e.hasPropFunc=n,e.isOwnProperty=i,e.propertyInData=function(t,e,r,n){const o=Ju._`${e}${(0,Ju.getProperty)(r)} !== undefined`;return n?Ju._`${o} && ${i(t,e,r)}`:o},e.noPropertyInData=o,e.allSchemaProperties=s,e.schemaProperties=function(t,e){return s(e).filter((r=>!(0,Xu.alwaysValidSchema)(t,e[r])))},e.callValidateCode=function({schemaCode:t,data:e,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},a,u,h){const l=h?Ju._`${t}, ${e}, ${n}${i}`:e,c=[[th.default.instancePath,(0,Ju.strConcat)(th.default.instancePath,o)],[th.default.parentData,s.parentData],[th.default.parentDataProperty,s.parentDataProperty],[th.default.rootData,th.default.rootData]];s.opts.dynamicRef&&c.push([th.default.dynamicAnchors,th.default.dynamicAnchors]);const f=Ju._`${l}, ${r.object(...c)}`;return u!==Ju.nil?Ju._`${a}.call(${u}, ${f})`:Ju._`${a}(${f})`};const a=Ju._`new RegExp`;e.usePattern=function({gen:t,it:{opts:e}},n){const i=e.unicodeRegExp?"u":"",{regExp:o}=e.code,s=o(n,i);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:Ju._`${"new RegExp"===o.code?a:(0,r.useFunc)(t,o)}(${n}, ${i})`})},e.validateArray=function(t){const{gen:e,data:r,keyword:n,it:i}=t,o=e.name("valid");if(i.allErrors){const t=e.let("valid",!0);return s((()=>e.assign(t,!1))),t}return e.var(o,!0),s((()=>e.break())),o;function s(i){const s=e.const("len",Ju._`${r}.length`);e.forRange("i",0,s,(r=>{t.subschema({keyword:n,dataProp:r,dataPropType:Xu.Type.Num},o),e.if((0,Ju.not)(o),i)}))}},e.validateUnion=function(t){const{gen:e,schema:r,keyword:n,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((t=>(0,Xu.alwaysValidSchema)(i,t)))&&!i.opts.unevaluated)return;const o=e.let("valid",!1),s=e.name("_valid");e.block((()=>r.forEach(((r,i)=>{const a=t.subschema({keyword:n,schemaProp:i,compositeRule:!0},s);e.assign(o,Ju._`${o} || ${s}`);t.mergeValidEvaluated(a,s)||e.if((0,Ju.not)(o))})))),t.result(o,(()=>t.reset()),(()=>t.error(!0)))}})),uh=u((function(t,e){function r(t){const{gen:e,data:r,it:n}=t;e.if(n.parentData,(()=>e.assign(r,Ju._`${n.parentData}[${n.parentDataProperty}]`)))}function n(t,e,r){if(void 0===r)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,Ju.stringify)(r)})}Object.defineProperty(e,"__esModule",{value:!0}),e.validateKeywordUsage=e.validSchemaType=e.funcKeywordCode=e.macroKeywordCode=void 0,e.macroKeywordCode=function(t,e){const{gen:r,keyword:i,schema:o,parentSchema:s,it:a}=t,u=e.macro.call(a.self,o,s,a),h=n(r,i,u);!1!==a.opts.validateSchema&&a.self.validateSchema(u,!0);const l=r.name("valid");t.subschema({schema:u,schemaPath:Ju.nil,errSchemaPath:`${a.errSchemaPath}/${i}`,topSchemaRef:h,compositeRule:!0},l),t.pass(l,(()=>t.error(!0)))},e.funcKeywordCode=function(t,e){var i;const{gen:o,keyword:s,schema:a,parentSchema:u,$data:h,it:l}=t;!function({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}(l,e);const c=!h&&e.compile?e.compile.call(l.self,a,u,l):e.validate,f=n(o,s,c),d=o.let("valid");function p(r=(e.async?Ju._`await `:Ju.nil)){const n=l.opts.passContext?th.default.this:th.default.self,i=!("compile"in e&&!h||!1===e.schema);o.assign(d,Ju._`${r}${(0,ah.callValidateCode)(t,f,n,i)}`,e.modifying)}function m(t){var r;o.if((0,Ju.not)(null!==(r=e.valid)&&void 0!==r?r:d),t)}t.block$data(d,(function(){if(!1===e.errors)p(),e.modifying&&r(t),m((()=>t.error()));else{const n=e.async?function(){const t=o.let("ruleErrs",null);return o.try((()=>p(Ju._`await `)),(e=>o.assign(d,!1).if(Ju._`${e} instanceof ${l.ValidationError}`,(()=>o.assign(t,Ju._`${e}.errors`)),(()=>o.throw(e))))),t}():function(){const t=Ju._`${f}.errors`;return o.assign(t,null),p(Ju.nil),t}();e.modifying&&r(t),m((()=>function(t,e){const{gen:r}=t;r.if(Ju._`Array.isArray(${e})`,(()=>{r.assign(th.default.vErrors,Ju._`${th.default.vErrors} === null ? ${e} : ${th.default.vErrors}.concat(${e})`).assign(th.default.errors,Ju._`${th.default.vErrors}.length`),(0,eh.extendErrors)(t)}),(()=>t.error()))}(t,n)))}})),t.ok(null!==(i=e.valid)&&void 0!==i?i:d)},e.validSchemaType=function(t,e,r=!1){return!e.length||e.some((e=>"array"===e?Array.isArray(t):"object"===e?t&&"object"==typeof t&&!Array.isArray(t):typeof t==e||r&&void 0===t))},e.validateKeywordUsage=function({schema:t,opts:e,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const s=i.dependencies;if(null==s?void 0:s.some((e=>!Object.prototype.hasOwnProperty.call(t,e))))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema){if(!i.validateSchema(t[o])){const t=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if("log"!==e.validateSchema)throw new Error(t);r.logger.error(t)}}}})),hh=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendSubschemaMode=e.extendSubschemaData=e.getSubschema=void 0,e.getSubschema=function(t,{keyword:e,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:s}){if(void 0!==e&&void 0!==n)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==e){const n=t.schema[e];return void 0===r?{schema:n,schemaPath:Ju._`${t.schemaPath}${(0,Ju.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:n[r],schemaPath:Ju._`${t.schemaPath}${(0,Ju.getProperty)(e)}${(0,Ju.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,Xu.escapeFragment)(r)}`}}if(void 0!==n){if(void 0===i||void 0===o||void 0===s)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')},e.extendSubschemaData=function(t,e,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:s}){if(void 0!==i&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:a}=e;if(void 0!==r){const{errorPath:i,dataPathArr:o,opts:s}=e;u(a.let("data",Ju._`${e.data}${(0,Ju.getProperty)(r)}`,!0)),t.errorPath=Ju.str`${i}${(0,Xu.getErrorPath)(r,n,s.jsPropertySyntax)}`,t.parentDataProperty=Ju._`${r}`,t.dataPathArr=[...o,t.parentDataProperty]}if(void 0!==i){u(i instanceof Ju.Name?i:a.let("data",i,!0)),void 0!==s&&(t.propertyName=s)}function u(r){t.data=r,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,r]}o&&(t.dataTypes=o)},e.extendSubschemaMode=function(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){void 0!==n&&(t.compositeRule=n),void 0!==i&&(t.createErrors=i),void 0!==o&&(t.allErrors=o),t.jtdDiscriminator=e,t.jtdMetadata=r}})),lh=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(i=n;0!=i--;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var s=o[i];if(!t(e[s],r[s]))return!1}return!0}return e!=e&&r!=r},ch=u((function(t){var e=t.exports=function(t,e,n){"function"==typeof e&&(n=e,e={}),r(e,"function"==typeof(n=e.cb||n)?n:n.pre||function(){},n.post||function(){},t,"",t)};function r(t,n,i,o,s,a,u,h,l,c){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var f in n(o,s,a,u,h,l,c),o){var d=o[f];if(Array.isArray(d)){if(f in e.arrayKeywords)for(var p=0;p<d.length;p++)r(t,n,i,d[p],s+"/"+f+"/"+p,a,s,f,o,p)}else if(f in e.propsKeywords){if(d&&"object"==typeof d)for(var m in d)r(t,n,i,d[m],s+"/"+f+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),a,s,f,o,m)}else(f in e.keywords||t.allKeys&&!(f in e.skipKeywords))&&r(t,n,i,d,s+"/"+f,a,s,f,o)}i(o,s,a,u,h,l,c)}}e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}})),fh=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getSchemaRefs=e.resolveUrl=e.normalizeId=e._getFullPath=e.getFullPath=e.inlineRef=void 0;const r=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);e.inlineRef=function(t,e=!0){return"boolean"==typeof t||(!0===e?!i(t):!!e&&o(t)<=e)};const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function i(t){for(const e in t){if(n.has(e))return!0;const r=t[e];if(Array.isArray(r)&&r.some(i))return!0;if("object"==typeof r&&i(r))return!0}return!1}function o(t){let e=0;for(const n in t){if("$ref"===n)return 1/0;if(e++,!r.has(n)&&("object"==typeof t[n]&&(0,Xu.eachItem)(t[n],(t=>e+=o(t))),e===1/0))return 1/0}return e}function s(t,e="",r){!1!==r&&(e=h(e));const n=t.parse(e);return a(t,n)}function a(t,e){return t.serialize(e).split("#")[0]+"#"}e.getFullPath=s,e._getFullPath=a;const u=/#\/?$/;function h(t){return t?t.replace(u,""):""}e.normalizeId=h,e.resolveUrl=function(t,e,r){return r=h(r),t.resolve(e,r)};const l=/^[a-z_][-a-z0-9._]*$/i;e.getSchemaRefs=function(t,e){if("boolean"==typeof t)return{};const{schemaId:r,uriResolver:n}=this.opts,i=h(t[r]||e),o={"":i},a=s(n,i,!1),u={},c=new Set;return ch(t,{allKeys:!0},((t,e,n,i)=>{if(void 0===i)return;const s=a+e;let p=o[i];function m(e){const r=this.opts.uriResolver.resolve;if(e=h(p?r(p,e):e),c.has(e))throw d(e);c.add(e);let n=this.refs[e];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?f(t,n.schema,e):e!==h(s)&&("#"===e[0]?(f(t,u[e],e),u[e]=t):this.refs[e]=s),e}function y(t){if("string"==typeof t){if(!l.test(t))throw new Error(`invalid anchor "${t}"`);m.call(this,`#${t}`)}}"string"==typeof t[r]&&(p=m.call(this,t[r])),y.call(this,t.$anchor),y.call(this,t.$dynamicAnchor),o[e]=p})),u;function f(t,e,r){if(void 0!==e&&!lh(t,e))throw d(r)}function d(t){return new Error(`reference "${t}" resolves to more than one schema`)}}})),dh=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getData=e.KeywordCxt=e.validateFunctionCode=void 0;const r=oh;function n({gen:t,validateName:e,schema:r,schemaEnv:n,opts:o},s){o.code.es5?t.func(e,Ju._`${th.default.data}, ${th.default.valCxt}`,n.$async,(()=>{t.code(Ju._`"use strict"; ${i(r,o)}`),function(t,e){t.if(th.default.valCxt,(()=>{t.var(th.default.instancePath,Ju._`${th.default.valCxt}.${th.default.instancePath}`),t.var(th.default.parentData,Ju._`${th.default.valCxt}.${th.default.parentData}`),t.var(th.default.parentDataProperty,Ju._`${th.default.valCxt}.${th.default.parentDataProperty}`),t.var(th.default.rootData,Ju._`${th.default.valCxt}.${th.default.rootData}`),e.dynamicRef&&t.var(th.default.dynamicAnchors,Ju._`${th.default.valCxt}.${th.default.dynamicAnchors}`)}),(()=>{t.var(th.default.instancePath,Ju._`""`),t.var(th.default.parentData,Ju._`undefined`),t.var(th.default.parentDataProperty,Ju._`undefined`),t.var(th.default.rootData,th.default.data),e.dynamicRef&&t.var(th.default.dynamicAnchors,Ju._`{}`)}))}(t,o),t.code(s)})):t.func(e,Ju._`${th.default.data}, ${function(t){return Ju._`{${th.default.instancePath}="", ${th.default.parentData}, ${th.default.parentDataProperty}, ${th.default.rootData}=${th.default.data}${t.dynamicRef?Ju._`, ${th.default.dynamicAnchors}={}`:Ju.nil}}={}`}(o)}`,n.$async,(()=>t.code(i(r,o)).code(s)))}function i(t,e){const r="object"==typeof t&&t[e.schemaId];return r&&(e.code.source||e.code.process)?Ju._`/*# sourceURL=${r} */`:Ju.nil}function o(t,e){a(t)&&(u(t),s(t))?function(t,e){const{schema:r,gen:n,opts:i}=t;i.$comment&&r.$comment&&l(t);(function(t){const e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,fh.resolveUrl)(t.opts.uriResolver,t.baseId,e))})(t),function(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}(t);const o=n.const("_errs",th.default.errors);h(t,o),n.var(e,Ju._`${o} === ${th.default.errors}`)}(t,e):(0,rh.boolOrEmptySchema)(t,e)}function s({schema:t,self:e}){if("boolean"==typeof t)return!t;for(const r in t)if(e.RULES.all[r])return!0;return!1}function a(t){return"boolean"!=typeof t.schema}function u(t){(0,Xu.checkUnknownRules)(t),function(t){const{schema:e,errSchemaPath:r,opts:n,self:i}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,Xu.schemaHasRulesButRef)(e,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(t)}function h(t,e){if(t.opts.jtd)return c(t,[],!1,e);const r=(0,oh.getSchemaTypes)(t.schema);c(t,r,!(0,oh.coerceAndCheckDataType)(t,r),e)}function l({gen:t,schemaEnv:e,schema:r,errSchemaPath:n,opts:i}){const o=r.$comment;if(!0===i.$comment)t.code(Ju._`${th.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const r=Ju.str`${n}/$comment`,i=t.scopeValue("root",{ref:e.root});t.code(Ju._`${th.default.self}.opts.$comment(${o}, ${r}, ${i}.schema)`)}}function c(t,e,n,i){const{gen:o,schema:s,data:a,allErrors:u,opts:h,self:l}=t,{RULES:c}=l;function y(l){(0,ih.shouldUseGroup)(s,l)&&(l.type?(o.if((0,r.checkDataType)(l.type,a,h.strictNumbers)),f(t,l),1===e.length&&e[0]===l.type&&n&&(o.else(),(0,r.reportTypeError)(t)),o.endIf()):f(t,l),u||o.if(Ju._`${th.default.errors} === ${i||0}`))}!s.$ref||!h.ignoreKeywordsWithRef&&(0,Xu.schemaHasRulesButRef)(s,c)?(h.jtd||function(t,e){if(t.schemaEnv.meta||!t.opts.strictTypes)return;(function(t,e){if(!e.length)return;if(!t.dataTypes.length)return void(t.dataTypes=e);e.forEach((e=>{p(t.dataTypes,e)||m(t,`type "${e}" not allowed by context "${t.dataTypes.join(",")}"`)})),t.dataTypes=t.dataTypes.filter((t=>p(e,t)))})(t,e),t.opts.allowUnionTypes||function(t,e){e.length>1&&(2!==e.length||!e.includes("null"))&&m(t,"use allowUnionTypes to allow union type keyword")}(t,e);!function(t,e){const r=t.self.RULES.all;for(const n in r){const i=r[n];if("object"==typeof i&&(0,ih.shouldUseRule)(t.schema,i)){const{type:r}=i.definition;r.length&&!r.some((t=>d(e,t)))&&m(t,`missing type "${r.join(",")}" for keyword "${n}"`)}}}(t,t.dataTypes)}(t,e),o.block((()=>{for(const t of c.rules)y(t);y(c.post)}))):o.block((()=>g(t,"$ref",c.all.$ref.definition)))}function f(t,e){const{gen:r,schema:n,opts:{useDefaults:i}}=t;i&&(0,sh.assignDefaults)(t,e.type),r.block((()=>{for(const r of e.rules)(0,ih.shouldUseRule)(n,r)&&g(t,r.keyword,r.definition,e.type)}))}function d(t,e){return t.includes(e)||"number"===e&&t.includes("integer")}function p(t,e){return t.includes(e)||"integer"===e&&t.includes("number")}function m(t,e){e+=` at "${t.schemaEnv.baseId+t.errSchemaPath}" (strictTypes)`,(0,Xu.checkStrictMode)(t,e,t.opts.strictTypes)}e.validateFunctionCode=function(t){a(t)&&(u(t),s(t))?function(t){const{schema:e,opts:r,gen:i}=t;n(t,(()=>{r.$comment&&e.$comment&&l(t),function(t){const{schema:e,opts:r}=t;void 0!==e.default&&r.useDefaults&&r.strictSchema&&(0,Xu.checkStrictMode)(t,"default is ignored in the schema root")}(t),i.let(th.default.vErrors,null),i.let(th.default.errors,0),r.unevaluated&&function(t){const{gen:e,validateName:r}=t;t.evaluated=e.const("evaluated",Ju._`${r}.evaluated`),e.if(Ju._`${t.evaluated}.dynamicProps`,(()=>e.assign(Ju._`${t.evaluated}.props`,Ju._`undefined`))),e.if(Ju._`${t.evaluated}.dynamicItems`,(()=>e.assign(Ju._`${t.evaluated}.items`,Ju._`undefined`)))}(t),h(t),function(t){const{gen:e,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=t;r.$async?e.if(Ju._`${th.default.errors} === 0`,(()=>e.return(th.default.data)),(()=>e.throw(Ju._`new ${i}(${th.default.vErrors})`))):(e.assign(Ju._`${n}.errors`,th.default.vErrors),o.unevaluated&&function({gen:t,evaluated:e,props:r,items:n}){r instanceof Ju.Name&&t.assign(Ju._`${e}.props`,r);n instanceof Ju.Name&&t.assign(Ju._`${e}.items`,n)}(t),e.return(Ju._`${th.default.errors} === 0`))}(t)}))}(t):n(t,(()=>(0,rh.topBoolOrEmptySchema)(t)))};class y{constructor(t,e,r){if((0,uh.validateKeywordUsage)(t,e,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=e.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Xu.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=e.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=e,this.$data)this.schemaCode=t.gen.const("vSchema",b(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,uh.validSchemaType)(this.schema,e.schemaType,e.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(e.schemaType)}`);("code"in e?e.trackErrors:!1!==e.errors)&&(this.errsCount=t.gen.const("_errs",th.default.errors))}result(t,e,r){this.failResult((0,Ju.not)(t),e,r)}failResult(t,e,r){this.gen.if(t),r?r():this.error(),e?(this.gen.else(),e(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,e){this.failResult((0,Ju.not)(t),void 0,e)}fail(t){if(void 0===t)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:e}=this;this.fail(Ju._`${e} !== undefined && (${(0,Ju.or)(this.invalid$data(),t)})`)}error(t,e,r){if(e)return this.setParams(e),this._error(t,r),void this.setParams({});this._error(t,r)}_error(t,e){(t?eh.reportExtraError:eh.reportError)(this,this.def.error,e)}$dataError(){(0,eh.reportError)(this,this.def.$dataError||eh.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,eh.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,e){e?Object.assign(this.params,t):this.params=t}block$data(t,e,r=Ju.nil){this.gen.block((()=>{this.check$data(t,r),e()}))}check$data(t=Ju.nil,e=Ju.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:i,def:o}=this;r.if((0,Ju.or)(Ju._`${n} === undefined`,e)),t!==Ju.nil&&r.assign(t,!0),(i.length||o.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),t!==Ju.nil&&r.assign(t,!1)),r.else()}invalid$data(){const{gen:t,schemaCode:e,schemaType:n,def:i,it:o}=this;return(0,Ju.or)(function(){if(n.length){if(!(e instanceof Ju.Name))throw new Error("ajv implementation error");const t=Array.isArray(n)?n:[n];return Ju._`${(0,r.checkDataTypes)(t,e,o.opts.strictNumbers,r.DataType.Wrong)}`}return Ju.nil}(),function(){if(i.validateSchema){const r=t.scopeValue("validate$data",{ref:i.validateSchema});return Ju._`!${r}(${e})`}return Ju.nil}())}subschema(t,e){const r=(0,hh.getSubschema)(this.it,t);(0,hh.extendSubschemaData)(r,this.it,t),(0,hh.extendSubschemaMode)(r,t);const n={...this.it,...r,items:void 0,props:void 0};return o(n,e),n}mergeEvaluated(t,e){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==t.props&&(r.props=Xu.mergeEvaluated.props(n,t.props,r.props,e)),!0!==r.items&&void 0!==t.items&&(r.items=Xu.mergeEvaluated.items(n,t.items,r.items,e)))}mergeValidEvaluated(t,e){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(e,(()=>this.mergeEvaluated(t,Ju.Name))),!0}}function g(t,e,r,n){const i=new y(t,r,e);"code"in r?r.code(i,n):i.$data&&r.validate?(0,uh.funcKeywordCode)(i,r):"macro"in r?(0,uh.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,uh.funcKeywordCode)(i,r)}e.KeywordCxt=y;const v=/^\/(?:[^~]|~0|~1)*$/,w=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function b(t,{dataLevel:e,dataNames:r,dataPathArr:n}){let i,o;if(""===t)return th.default.rootData;if("/"===t[0]){if(!v.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t,o=th.default.rootData}else{const s=w.exec(t);if(!s)throw new Error(`Invalid JSON-pointer: ${t}`);const a=+s[1];if(i=s[2],"#"===i){if(a>=e)throw new Error(u("property/index",a));return n[e-a]}if(a>e)throw new Error(u("data",a));if(o=r[e-a],!i)return o}let s=o;const a=i.split("/");for(const t of a)t&&(o=Ju._`${o}${(0,Ju.getProperty)((0,Xu.unescapeJsonPointer)(t))}`,s=Ju._`${s} && ${o}`);return s;function u(t,r){return`Cannot access ${t} ${r} levels up, current level is ${e}`}}e.getData=b}));class ph extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}var mh=ph,yh=Object.defineProperty({default:mh},"__esModule",{value:!0});class gh extends Error{constructor(t,e,r,n){super(n||`can't resolve reference ${r} from id ${e}`),this.missingRef=(0,fh.resolveUrl)(t,e,r),this.missingSchema=(0,fh.normalizeId)((0,fh.getFullPath)(t,this.missingRef))}}var vh=gh,wh=Object.defineProperty({default:vh},"__esModule",{value:!0}),bh=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.resolveSchema=e.getCompilingSchema=e.resolveRef=e.compileSchema=e.SchemaEnv=void 0;class r{constructor(t){var e;let r;this.refs={},this.dynamicAnchors={},"object"==typeof t.schema&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=null!==(e=t.baseId)&&void 0!==e?e:(0,fh.normalizeId)(null==r?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function n(t){const e=o.call(this,t);if(e)return e;const r=(0,fh.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new Ju.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s});let u;t.$async&&(u=a.scopeValue("Error",{ref:yh.default,code:Ju._`require("ajv/dist/runtime/validation_error").default`}));const h=a.scopeName("validate");t.validateName=h;const l={gen:a,allErrors:this.opts.allErrors,data:th.default.data,parentData:th.default.parentData,parentDataProperty:th.default.parentDataProperty,dataNames:[th.default.data],dataPathArr:[Ju.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",!0===this.opts.code.source?{ref:t.schema,code:(0,Ju.stringify)(t.schema)}:{ref:t.schema}),validateName:h,ValidationError:u,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:Ju.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:Ju._`""`,opts:this.opts,self:this};let c;try{this._compilations.add(t),(0,dh.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);const e=a.toString();c=`${a.scopeRefs(th.default.scope)}return ${e}`,this.opts.code.process&&(c=this.opts.code.process(c,t));const r=new Function(`${th.default.self}`,`${th.default.scope}`,c)(this,this.scope.get());if(this.scope.value(h,{ref:r}),r.errors=null,r.schema=t.schema,r.schemaEnv=t,t.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:h,validateCode:e,scopeValues:a._values}),this.opts.unevaluated){const{props:t,items:e}=l;r.evaluated={props:t instanceof Ju.Name?void 0:t,items:e instanceof Ju.Name?void 0:e,dynamicProps:t instanceof Ju.Name,dynamicItems:e instanceof Ju.Name},r.source&&(r.source.evaluated=(0,Ju.stringify)(r.evaluated))}return t.validate=r,t}catch(e){throw delete t.validate,delete t.validateName,c&&this.logger.error("Error compiling schema, function code:",c),e}finally{this._compilations.delete(t)}}function i(t){return(0,fh.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:n.call(this,t)}function o(t){for(const n of this._compilations)if(r=t,(e=n).schema===r.schema&&e.root===r.root&&e.baseId===r.baseId)return n;var e,r}function s(t,e){let r;for(;"string"==typeof(r=this.refs[e]);)e=r;return r||this.schemas[e]||a.call(this,t,e)}function a(t,e){const i=this.opts.uriResolver.parse(e),o=(0,fh._getFullPath)(this.opts.uriResolver,i);let s=(0,fh.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&o===s)return h.call(this,i,t);const u=(0,fh.normalizeId)(o),l=this.refs[u]||this.schemas[u];if("string"==typeof l){const e=a.call(this,t,l);if("object"!=typeof(null==e?void 0:e.schema))return;return h.call(this,i,e)}if("object"==typeof(null==l?void 0:l.schema)){if(l.validate||n.call(this,l),u===(0,fh.normalizeId)(e)){const{schema:e}=l,{schemaId:n}=this.opts,i=e[n];return i&&(s=(0,fh.resolveUrl)(this.opts.uriResolver,s,i)),new r({schema:e,schemaId:n,root:t,baseId:s})}return h.call(this,i,l)}}e.SchemaEnv=r,e.compileSchema=n,e.resolveRef=function(t,e,n){var o;n=(0,fh.resolveUrl)(this.opts.uriResolver,e,n);const a=t.refs[n];if(a)return a;let u=s.call(this,t,n);if(void 0===u){const i=null===(o=t.localRefs)||void 0===o?void 0:o[n],{schemaId:s}=this.opts;i&&(u=new r({schema:i,schemaId:s,root:t,baseId:e}))}return void 0!==u?t.refs[n]=i.call(this,u):void 0},e.getCompilingSchema=o,e.resolveSchema=a;const u=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function h(t,{baseId:e,schema:n,root:i}){var o;if("/"!==(null===(o=t.fragment)||void 0===o?void 0:o[0]))return;for(const r of t.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const t=n[(0,Xu.unescapeFragment)(r)];if(void 0===t)return;const i="object"==typeof(n=t)&&n[this.opts.schemaId];!u.has(r)&&i&&(e=(0,fh.resolveUrl)(this.opts.uriResolver,e,i))}let s;if("boolean"!=typeof n&&n.$ref&&!(0,Xu.schemaHasRulesButRef)(n,this.RULES)){const t=(0,fh.resolveUrl)(this.opts.uriResolver,e,n.$ref);s=a.call(this,i,t)}const{schemaId:h}=this.opts;return s=s||new r({schema:n,schemaId:h,root:i,baseId:e}),s.schema!==s.root.schema?s:void 0}})),Ah={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},_h=u((function(t,e){!function(t){function e(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];if(e.length>1){e[0]=e[0].slice(0,-1);for(var n=e.length-1,i=1;i<n;++i)e[i]=e[i].slice(1,-1);return e[n]=e[n].slice(1),e.join("")}return e[0]}function r(t){return"(?:"+t+")"}function n(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).split(" ").pop().split("]").shift().toLowerCase()}function i(t){return t.toUpperCase()}function o(t){return null!=t?t instanceof Array?t:"number"!=typeof t.length||t.split||t.setInterval||t.call?[t]:Array.prototype.slice.call(t):[]}function s(t,e){var r=t;if(e)for(var n in e)r[n]=e[n];return r}function a(t){var n="[A-Za-z]",i="[0-9]",o=e(i,"[A-Fa-f]"),s=r(r("%[EFef]"+o+"%"+o+o+"%"+o+o)+"|"+r("%[89A-Fa-f]"+o+"%"+o+o)+"|"+r("%"+o+o)),a="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",u=e("[\\:\\/\\?\\#\\[\\]\\@]",a),h=t?"[\\uE000-\\uF8FF]":"[]",l=e(n,i,"[\\-\\.\\_\\~]",t?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),c=(r(n+e(n,i,"[\\+\\-\\.]")+"*"),r(r(s+"|"+e(l,a,"[\\:]"))+"*"),r(r("25[0-5]")+"|"+r("2[0-4]"+i)+"|"+r("1"+i+i)+"|"+r("0?[1-9]"+i)+"|0?0?"+i)),f=r(c+"\\."+c+"\\."+c+"\\."+c),d=r(o+"{1,4}"),p=r(r(d+"\\:"+d)+"|"+f),m=r(r(d+"\\:")+"{6}"+p),y=r("\\:\\:"+r(d+"\\:")+"{5}"+p),g=r(r(d)+"?\\:\\:"+r(d+"\\:")+"{4}"+p),v=r(r(r(d+"\\:")+"{0,1}"+d)+"?\\:\\:"+r(d+"\\:")+"{3}"+p),w=r(r(r(d+"\\:")+"{0,2}"+d)+"?\\:\\:"+r(d+"\\:")+"{2}"+p),b=r(r(r(d+"\\:")+"{0,3}"+d)+"?\\:\\:"+d+"\\:"+p),A=r(r(r(d+"\\:")+"{0,4}"+d)+"?\\:\\:"+p),_=r(r(r(d+"\\:")+"{0,5}"+d)+"?\\:\\:"+d),E=r(r(r(d+"\\:")+"{0,6}"+d)+"?\\:\\:"),M=r([m,y,g,v,w,b,A,_,E].join("|")),k=r(r(l+"|"+s)+"+"),x=(r("[vV]"+o+"+\\."+e(l,a,"[\\:]")+"+"),r(r(s+"|"+e(l,a))+"*"),r(s+"|"+e(l,a,"[\\:\\@]")));return r(r(s+"|"+e(l,a,"[\\@]"))+"+"),r(r(x+"|"+e("[\\/\\?]",h))+"*"),{NOT_SCHEME:new RegExp(e("[^]",n,i,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",l,a),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",l,a),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",l,a),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",l,a),"g"),NOT_QUERY:new RegExp(e("[^\\%]",l,a,"[\\:\\@\\/\\?]",h),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",l,a,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",l,a),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",l,u),"g"),PCT_ENCODED:new RegExp(s,"g"),IPV4ADDRESS:new RegExp("^("+f+")$"),IPV6ADDRESS:new RegExp("^\\[?("+M+")"+r(r("\\%25|\\%(?!"+o+"{2})")+"("+k+")")+"?\\]?$")}}var u=a(!1),h=a(!0),l=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)},f=2147483647,d=36,p=1,m=26,y=38,g=700,v=72,w=128,b="-",A=/^xn--/,_=/[^\0-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,M={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=d-p,x=Math.floor,N=String.fromCharCode;function S(t){throw new RangeError(M[t])}function U(t,e){for(var r=[],n=t.length;n--;)r[n]=e(t[n]);return r}function P(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+U((t=t.replace(E,".")).split("."),e).join(".")}function T(t){for(var e=[],r=0,n=t.length;r<n;){var i=t.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=t.charCodeAt(r++);56320==(64512&o)?e.push(((1023&i)<<10)+(1023&o)+65536):(e.push(i),r--)}else e.push(i)}return e}var R=function(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:d},I=function(t,e){return t+22+75*(t<26)-((0!=e)<<5)},C=function(t,e,r){var n=0;for(t=r?x(t/g):t>>1,t+=x(t/e);t>k*m>>1;n+=d)t=x(t/k);return x(n+(k+1)*t/(t+y))},$=function(t){var e=[],r=t.length,n=0,i=w,o=v,s=t.lastIndexOf(b);s<0&&(s=0);for(var a=0;a<s;++a)t.charCodeAt(a)>=128&&S("not-basic"),e.push(t.charCodeAt(a));for(var u=s>0?s+1:0;u<r;){for(var h=n,l=1,c=d;;c+=d){u>=r&&S("invalid-input");var y=R(t.charCodeAt(u++));(y>=d||y>x((f-n)/l))&&S("overflow"),n+=y*l;var g=c<=o?p:c>=o+m?m:c-o;if(y<g)break;var A=d-g;l>x(f/A)&&S("overflow"),l*=A}var _=e.length+1;o=C(n-h,_,0==h),x(n/_)>f-i&&S("overflow"),i+=x(n/_),n%=_,e.splice(n++,0,i)}return String.fromCodePoint.apply(String,e)},O=function(t){var e=[],r=(t=T(t)).length,n=w,i=0,o=v,s=!0,a=!1,u=void 0;try{for(var h,l=t[Symbol.iterator]();!(s=(h=l.next()).done);s=!0){var c=h.value;c<128&&e.push(N(c))}}catch(t){a=!0,u=t}finally{try{!s&&l.return&&l.return()}finally{if(a)throw u}}var y=e.length,g=y;for(y&&e.push(b);g<r;){var A=f,_=!0,E=!1,M=void 0;try{for(var k,U=t[Symbol.iterator]();!(_=(k=U.next()).done);_=!0){var P=k.value;P>=n&&P<A&&(A=P)}}catch(t){E=!0,M=t}finally{try{!_&&U.return&&U.return()}finally{if(E)throw M}}var R=g+1;A-n>x((f-i)/R)&&S("overflow"),i+=(A-n)*R,n=A;var $=!0,O=!1,F=void 0;try{for(var B,j=t[Symbol.iterator]();!($=(B=j.next()).done);$=!0){var D=B.value;if(D<n&&++i>f&&S("overflow"),D==n){for(var L=i,z=d;;z+=d){var q=z<=o?p:z>=o+m?m:z-o;if(L<q)break;var V=L-q,G=d-q;e.push(N(I(q+V%G,0))),L=x(V/G)}e.push(N(I(L,0))),o=C(i,R,g==y),i=0,++g}}}catch(t){O=!0,F=t}finally{try{!$&&j.return&&j.return()}finally{if(O)throw F}}++i,++n}return e.join("")},F=function(t){return P(t,(function(t){return A.test(t)?$(t.slice(4).toLowerCase()):t}))},B=function(t){return P(t,(function(t){return _.test(t)?"xn--"+O(t):t}))},j={version:"2.1.0",ucs2:{decode:T,encode:function(t){return String.fromCodePoint.apply(String,c(t))}},decode:$,encode:O,toASCII:B,toUnicode:F},D={};function L(t){var e=t.charCodeAt(0);return e<16?"%0"+e.toString(16).toUpperCase():e<128?"%"+e.toString(16).toUpperCase():e<2048?"%"+(e>>6|192).toString(16).toUpperCase()+"%"+(63&e|128).toString(16).toUpperCase():"%"+(e>>12|224).toString(16).toUpperCase()+"%"+(e>>6&63|128).toString(16).toUpperCase()+"%"+(63&e|128).toString(16).toUpperCase()}function z(t){for(var e="",r=0,n=t.length;r<n;){var i=parseInt(t.substr(r+1,2),16);if(i<128)e+=String.fromCharCode(i),r+=3;else if(i>=194&&i<224){if(n-r>=6){var o=parseInt(t.substr(r+4,2),16);e+=String.fromCharCode((31&i)<<6|63&o)}else e+=t.substr(r,6);r+=6}else if(i>=224){if(n-r>=9){var s=parseInt(t.substr(r+4,2),16),a=parseInt(t.substr(r+7,2),16);e+=String.fromCharCode((15&i)<<12|(63&s)<<6|63&a)}else e+=t.substr(r,9);r+=9}else e+=t.substr(r,3),r+=3}return e}function q(t,e){function r(t){var r=z(t);return r.match(e.UNRESERVED)?r:t}return t.scheme&&(t.scheme=String(t.scheme).replace(e.PCT_ENCODED,r).toLowerCase().replace(e.NOT_SCHEME,"")),void 0!==t.userinfo&&(t.userinfo=String(t.userinfo).replace(e.PCT_ENCODED,r).replace(e.NOT_USERINFO,L).replace(e.PCT_ENCODED,i)),void 0!==t.host&&(t.host=String(t.host).replace(e.PCT_ENCODED,r).toLowerCase().replace(e.NOT_HOST,L).replace(e.PCT_ENCODED,i)),void 0!==t.path&&(t.path=String(t.path).replace(e.PCT_ENCODED,r).replace(t.scheme?e.NOT_PATH:e.NOT_PATH_NOSCHEME,L).replace(e.PCT_ENCODED,i)),void 0!==t.query&&(t.query=String(t.query).replace(e.PCT_ENCODED,r).replace(e.NOT_QUERY,L).replace(e.PCT_ENCODED,i)),void 0!==t.fragment&&(t.fragment=String(t.fragment).replace(e.PCT_ENCODED,r).replace(e.NOT_FRAGMENT,L).replace(e.PCT_ENCODED,i)),t}function V(t){return t.replace(/^0*(.*)/,"$1")||"0"}function G(t,e){var r=t.match(e.IPV4ADDRESS)||[],n=l(r,2)[1];return n?n.split(".").map(V).join("."):t}function H(t,e){var r=t.match(e.IPV6ADDRESS)||[],n=l(r,3),i=n[1],o=n[2];if(i){for(var s=i.toLowerCase().split("::").reverse(),a=l(s,2),u=a[0],h=a[1],c=h?h.split(":").map(V):[],f=u.split(":").map(V),d=e.IPV4ADDRESS.test(f[f.length-1]),p=d?7:8,m=f.length-p,y=Array(p),g=0;g<p;++g)y[g]=c[g]||f[m+g]||"";d&&(y[p-1]=G(y[p-1],e));var v=y.reduce((function(t,e,r){if(!e||"0"===e){var n=t[t.length-1];n&&n.index+n.length===r?n.length++:t.push({index:r,length:1})}return t}),[]),w=v.sort((function(t,e){return e.length-t.length}))[0],b=void 0;if(w&&w.length>1){var A=y.slice(0,w.index),_=y.slice(w.index+w.length);b=A.join(":")+"::"+_.join(":")}else b=y.join(":");return o&&(b+="%"+o),b}return t}var Q=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,K=void 0==="".match(/(){0}/)[1];function Z(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==e.iri?h:u;"suffix"===e.reference&&(t=(e.scheme?e.scheme+":":"")+"//"+t);var i=t.match(Q);if(i){K?(r.scheme=i[1],r.userinfo=i[3],r.host=i[4],r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=i[7],r.fragment=i[8],isNaN(r.port)&&(r.port=i[5])):(r.scheme=i[1]||void 0,r.userinfo=-1!==t.indexOf("@")?i[3]:void 0,r.host=-1!==t.indexOf("//")?i[4]:void 0,r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=-1!==t.indexOf("?")?i[7]:void 0,r.fragment=-1!==t.indexOf("#")?i[8]:void 0,isNaN(r.port)&&(r.port=t.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),r.host&&(r.host=H(G(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",e.reference&&"suffix"!==e.reference&&e.reference!==r.reference&&(r.error=r.error||"URI is not a "+e.reference+" reference.");var o=D[(e.scheme||r.scheme||"").toLowerCase()];if(e.unicodeSupport||o&&o.unicodeSupport)q(r,n);else{if(r.host&&(e.domainHost||o&&o.domainHost))try{r.host=j.toASCII(r.host.replace(n.PCT_ENCODED,z).toLowerCase())}catch(t){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+t}q(r,u)}o&&o.parse&&o.parse(r,e)}else r.error=r.error||"URI can not be parsed.";return r}function W(t,e){var r=!1!==e.iri?h:u,n=[];return void 0!==t.userinfo&&(n.push(t.userinfo),n.push("@")),void 0!==t.host&&n.push(H(G(String(t.host),r),r).replace(r.IPV6ADDRESS,(function(t,e,r){return"["+e+(r?"%25"+r:"")+"]"}))),"number"!=typeof t.port&&"string"!=typeof t.port||(n.push(":"),n.push(String(t.port))),n.length?n.join(""):void 0}var J=/^\.\.?\//,X=/^\/\.(\/|$)/,Y=/^\/\.\.(\/|$)/,tt=/^\/?(?:.|\n)*?(?=\/|$)/;function et(t){for(var e=[];t.length;)if(t.match(J))t=t.replace(J,"");else if(t.match(X))t=t.replace(X,"/");else if(t.match(Y))t=t.replace(Y,"/"),e.pop();else if("."===t||".."===t)t="";else{var r=t.match(tt);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];t=t.slice(n.length),e.push(n)}return e.join("")}function rt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.iri?h:u,n=[],i=D[(e.scheme||t.scheme||"").toLowerCase()];if(i&&i.serialize&&i.serialize(t,e),t.host)if(r.IPV6ADDRESS.test(t.host));else if(e.domainHost||i&&i.domainHost)try{t.host=e.iri?j.toUnicode(t.host):j.toASCII(t.host.replace(r.PCT_ENCODED,z).toLowerCase())}catch(r){t.error=t.error||"Host's domain name can not be converted to "+(e.iri?"Unicode":"ASCII")+" via punycode: "+r}q(t,r),"suffix"!==e.reference&&t.scheme&&(n.push(t.scheme),n.push(":"));var o=W(t,e);if(void 0!==o&&("suffix"!==e.reference&&n.push("//"),n.push(o),t.path&&"/"!==t.path.charAt(0)&&n.push("/")),void 0!==t.path){var s=t.path;e.absolutePath||i&&i.absolutePath||(s=et(s)),void 0===o&&(s=s.replace(/^\/\//,"/%2F")),n.push(s)}return void 0!==t.query&&(n.push("?"),n.push(t.query)),void 0!==t.fragment&&(n.push("#"),n.push(t.fragment)),n.join("")}function nt(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(t=Z(rt(t,r),r),e=Z(rt(e,r),r)),!(r=r||{}).tolerant&&e.scheme?(n.scheme=e.scheme,n.userinfo=e.userinfo,n.host=e.host,n.port=e.port,n.path=et(e.path||""),n.query=e.query):(void 0!==e.userinfo||void 0!==e.host||void 0!==e.port?(n.userinfo=e.userinfo,n.host=e.host,n.port=e.port,n.path=et(e.path||""),n.query=e.query):(e.path?("/"===e.path.charAt(0)?n.path=et(e.path):(void 0===t.userinfo&&void 0===t.host&&void 0===t.port||t.path?t.path?n.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:n.path=e.path:n.path="/"+e.path,n.path=et(n.path)),n.query=e.query):(n.path=t.path,void 0!==e.query?n.query=e.query:n.query=t.query),n.userinfo=t.userinfo,n.host=t.host,n.port=t.port),n.scheme=t.scheme),n.fragment=e.fragment,n}function it(t,e,r){var n=s({scheme:"null"},r);return rt(nt(Z(t,n),Z(e,n),n,!0),n)}function ot(t,e){return"string"==typeof t?t=rt(Z(t,e),e):"object"===n(t)&&(t=Z(rt(t,e),e)),t}function st(t,e,r){return"string"==typeof t?t=rt(Z(t,r),r):"object"===n(t)&&(t=rt(t,r)),"string"==typeof e?e=rt(Z(e,r),r):"object"===n(e)&&(e=rt(e,r)),t===e}function at(t,e){return t&&t.toString().replace(e&&e.iri?h.ESCAPE:u.ESCAPE,L)}function ut(t,e){return t&&t.toString().replace(e&&e.iri?h.PCT_ENCODED:u.PCT_ENCODED,z)}var ht={scheme:"http",domainHost:!0,parse:function(t,e){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t},serialize:function(t,e){var r="https"===String(t.scheme).toLowerCase();return t.port!==(r?443:80)&&""!==t.port||(t.port=void 0),t.path||(t.path="/"),t}},lt={scheme:"https",domainHost:ht.domainHost,parse:ht.parse,serialize:ht.serialize};function ct(t){return"boolean"==typeof t.secure?t.secure:"wss"===String(t.scheme).toLowerCase()}var ft={scheme:"ws",domainHost:!0,parse:function(t,e){var r=t;return r.secure=ct(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(t,e){if(t.port!==(ct(t)?443:80)&&""!==t.port||(t.port=void 0),"boolean"==typeof t.secure&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){var r=t.resourceName.split("?"),n=l(r,2),i=n[0],o=n[1];t.path=i&&"/"!==i?i:void 0,t.query=o,t.resourceName=void 0}return t.fragment=void 0,t}},dt={scheme:"wss",domainHost:ft.domainHost,parse:ft.parse,serialize:ft.serialize},pt={},mt="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",yt="[0-9A-Fa-f]",gt=r(r("%[EFef]"+yt+"%"+yt+yt+"%"+yt+yt)+"|"+r("%[89A-Fa-f]"+yt+"%"+yt+yt)+"|"+r("%"+yt+yt)),vt="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",wt=e("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),bt="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",At=new RegExp(mt,"g"),_t=new RegExp(gt,"g"),Et=new RegExp(e("[^]",vt,"[\\.]",'[\\"]',wt),"g"),Mt=new RegExp(e("[^]",mt,bt),"g"),kt=Mt;function xt(t){var e=z(t);return e.match(At)?e:t}var Nt={scheme:"mailto",parse:function(t,e){var r=t,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var i=!1,o={},s=r.query.split("&"),a=0,u=s.length;a<u;++a){var h=s[a].split("=");switch(h[0]){case"to":for(var l=h[1].split(","),c=0,f=l.length;c<f;++c)n.push(l[c]);break;case"subject":r.subject=ut(h[1],e);break;case"body":r.body=ut(h[1],e);break;default:i=!0,o[ut(h[0],e)]=ut(h[1],e)}}i&&(r.headers=o)}r.query=void 0;for(var d=0,p=n.length;d<p;++d){var m=n[d].split("@");if(m[0]=ut(m[0]),e.unicodeSupport)m[1]=ut(m[1],e).toLowerCase();else try{m[1]=j.toASCII(ut(m[1],e).toLowerCase())}catch(t){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+t}n[d]=m.join("@")}return r},serialize:function(t,e){var r=t,n=o(t.to);if(n){for(var s=0,a=n.length;s<a;++s){var u=String(n[s]),h=u.lastIndexOf("@"),l=u.slice(0,h).replace(_t,xt).replace(_t,i).replace(Et,L),c=u.slice(h+1);try{c=e.iri?j.toUnicode(c):j.toASCII(ut(c,e).toLowerCase())}catch(t){r.error=r.error||"Email address's domain name can not be converted to "+(e.iri?"Unicode":"ASCII")+" via punycode: "+t}n[s]=l+"@"+c}r.path=n.join(",")}var f=t.headers=t.headers||{};t.subject&&(f.subject=t.subject),t.body&&(f.body=t.body);var d=[];for(var p in f)f[p]!==pt[p]&&d.push(p.replace(_t,xt).replace(_t,i).replace(Mt,L)+"="+f[p].replace(_t,xt).replace(_t,i).replace(kt,L));return d.length&&(r.query=d.join("&")),r}},St=/^([^\:]+)\:(.*)/,Ut={scheme:"urn",parse:function(t,e){var r=t.path&&t.path.match(St),n=t;if(r){var i=e.scheme||n.scheme||"urn",o=r[1].toLowerCase(),s=r[2],a=i+":"+(e.nid||o),u=D[a];n.nid=o,n.nss=s,n.path=void 0,u&&(n=u.parse(n,e))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(t,e){var r=e.scheme||t.scheme||"urn",n=t.nid,i=r+":"+(e.nid||n),o=D[i];o&&(t=o.serialize(t,e));var s=t,a=t.nss;return s.path=(n||e.nid)+":"+a,s}},Pt=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Tt={scheme:"urn:uuid",parse:function(t,e){var r=t;return r.uuid=r.nss,r.nss=void 0,e.tolerant||r.uuid&&r.uuid.match(Pt)||(r.error=r.error||"UUID is not valid."),r},serialize:function(t,e){var r=t;return r.nss=(t.uuid||"").toLowerCase(),r}};D[ht.scheme]=ht,D[lt.scheme]=lt,D[ft.scheme]=ft,D[dt.scheme]=dt,D[Nt.scheme]=Nt,D[Ut.scheme]=Ut,D[Tt.scheme]=Tt,t.SCHEMES=D,t.pctEncChar=L,t.pctDecChars=z,t.parse=Z,t.removeDotSegments=et,t.serialize=rt,t.resolveComponents=nt,t.resolve=it,t.normalize=ot,t.equal=st,t.escapeComponent=at,t.unescapeComponent=ut,Object.defineProperty(t,"__esModule",{value:!0})}(e)}));_h.code='require("ajv/dist/runtime/uri").default';var Eh=_h,Mh=Object.defineProperty({default:Eh},"__esModule",{value:!0}),kh=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0,Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return dh.KeywordCxt}}),Object.defineProperty(e,"_",{enumerable:!0,get:function(){return Ju._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return Ju.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return Ju.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return Ju.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return Ju.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return Ju.CodeGen}});const r=Ju,n=(t,e)=>new RegExp(t,e);n.code="new RegExp";const i=["removeAdditional","useDefaults","coerceTypes"],o=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),s={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},a={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function u(t){var e,r,i,o,s,a,u,h,l,c,f,d,p,m,y,g,v,w,b,A,_,E,M,k,x;const N=t.strict,S=null===(e=t.code)||void 0===e?void 0:e.optimize,U=!0===S||void 0===S?1:S||0,P=null!==(i=null===(r=t.code)||void 0===r?void 0:r.regExp)&&void 0!==i?i:n,T=null!==(o=t.uriResolver)&&void 0!==o?o:Mh.default;return{strictSchema:null===(a=null!==(s=t.strictSchema)&&void 0!==s?s:N)||void 0===a||a,strictNumbers:null===(h=null!==(u=t.strictNumbers)&&void 0!==u?u:N)||void 0===h||h,strictTypes:null!==(c=null!==(l=t.strictTypes)&&void 0!==l?l:N)&&void 0!==c?c:"log",strictTuples:null!==(d=null!==(f=t.strictTuples)&&void 0!==f?f:N)&&void 0!==d?d:"log",strictRequired:null!==(m=null!==(p=t.strictRequired)&&void 0!==p?p:N)&&void 0!==m&&m,code:t.code?{...t.code,optimize:U,regExp:P}:{optimize:U,regExp:P},loopRequired:null!==(y=t.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(g=t.loopEnum)&&void 0!==g?g:200,meta:null===(v=t.meta)||void 0===v||v,messages:null===(w=t.messages)||void 0===w||w,inlineRefs:null===(b=t.inlineRefs)||void 0===b||b,schemaId:null!==(A=t.schemaId)&&void 0!==A?A:"$id",addUsedSchema:null===(_=t.addUsedSchema)||void 0===_||_,validateSchema:null===(E=t.validateSchema)||void 0===E||E,validateFormats:null===(M=t.validateFormats)||void 0===M||M,unicodeRegExp:null===(k=t.unicodeRegExp)||void 0===k||k,int32range:null===(x=t.int32range)||void 0===x||x,uriResolver:T}}class h{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...u(t)};const{es5:e,lines:n}=this.opts.code;this.scope=new r.ValueScope({scope:{},prefixes:o,es5:e,lines:n}),this.logger=function(t){if(!1===t)return y;if(void 0===t)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}(t.logger);const i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,nh.getRules)(),l.call(this,s,t,"NOT SUPPORTED"),l.call(this,a,t,"DEPRECATED","warn"),this._metaOpts=m.call(this),t.formats&&d.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&p.call(this,t.keywords),"object"==typeof t.meta&&this.addMetaSchema(t.meta),f.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:t,meta:e,schemaId:r}=this.opts;let n=Ah;"id"===r&&(n={...Ah},n.id=n.$id,delete n.$id),e&&t&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:t,schemaId:e}=this.opts;return this.opts.defaultMeta="object"==typeof t?t[e]||t:void 0}validate(t,e){let r;if("string"==typeof t){if(r=this.getSchema(t),!r)throw new Error(`no schema with key or ref "${t}"`)}else r=this.compile(t);const n=r(e);return"$async"in r||(this.errors=r.errors),n}compile(t,e){const r=this._addSchema(t,e);return r.validate||this._compileSchemaEnv(r)}compileAsync(t,e){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,t,e);async function n(t,e){await i.call(this,t.$schema);const r=this._addSchema(t,e);return r.validate||o.call(this,r)}async function i(t){t&&!this.getSchema(t)&&await n.call(this,{$ref:t},!0)}async function o(t){try{return this._compileSchemaEnv(t)}catch(e){if(!(e instanceof wh.default))throw e;return s.call(this,e),await a.call(this,e.missingSchema),o.call(this,t)}}function s({missingSchema:t,missingRef:e}){if(this.refs[t])throw new Error(`AnySchema ${t} is loaded but ${e} cannot be resolved`)}async function a(t){const r=await u.call(this,t);this.refs[t]||await i.call(this,r.$schema),this.refs[t]||this.addSchema(r,t,e)}async function u(t){const e=this._loading[t];if(e)return e;try{return await(this._loading[t]=r(t))}finally{delete this._loading[t]}}}addSchema(t,e,r,n=this.opts.validateSchema){if(Array.isArray(t)){for(const e of t)this.addSchema(e,void 0,r,n);return this}let i;if("object"==typeof t){const{schemaId:e}=this.opts;if(i=t[e],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${e} must be string`)}return e=(0,fh.normalizeId)(e||i),this._checkUnique(e),this.schemas[e]=this._addSchema(t,r,e,n,!0),this}addMetaSchema(t,e,r=this.opts.validateSchema){return this.addSchema(t,e,!0,r),this}validateSchema(t,e){if("boolean"==typeof t)return!0;let r;if(r=t.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,t);if(!n&&e){const t="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(t);this.logger.error(t)}return n}getSchema(t){let e;for(;"string"==typeof(e=c.call(this,t));)t=e;if(void 0===e){const{schemaId:r}=this.opts,n=new bh.SchemaEnv({schema:{},schemaId:r});if(e=bh.resolveSchema.call(this,n,t),!e)return;this.refs[t]=e}return e.validate||this._compileSchemaEnv(e)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const e=c.call(this,t);return"object"==typeof e&&this._cache.delete(e.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{const e=t;this._cache.delete(e);let r=t[this.opts.schemaId];return r&&(r=(0,fh.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(const e of t)this.addKeyword(e);return this}addKeyword(t,e){let r;if("string"==typeof t)r=t,"object"==typeof e&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),e.keyword=r);else{if("object"!=typeof t||void 0!==e)throw new Error("invalid addKeywords parameters");if(r=(e=t).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(v.call(this,r,e),!e)return(0,Xu.eachItem)(r,(t=>w.call(this,t))),this;A.call(this,e);const n={...e,type:(0,oh.getJSONTypes)(e.type),schemaType:(0,oh.getJSONTypes)(e.schemaType)};return(0,Xu.eachItem)(r,0===n.type.length?t=>w.call(this,t,n):t=>n.type.forEach((e=>w.call(this,t,n,e)))),this}getKeyword(t){const e=this.RULES.all[t];return"object"==typeof e?e.definition:!!e}removeKeyword(t){const{RULES:e}=this;delete e.keywords[t],delete e.all[t];for(const r of e.rules){const e=r.rules.findIndex((e=>e.keyword===t));e>=0&&r.rules.splice(e,1)}return this}addFormat(t,e){return"string"==typeof e&&(e=new RegExp(e)),this.formats[t]=e,this}errorsText(t=this.errors,{separator:e=", ",dataVar:r="data"}={}){return t&&0!==t.length?t.map((t=>`${r}${t.instancePath} ${t.message}`)).reduce(((t,r)=>t+e+r)):"No errors"}$dataMetaSchema(t,e){const r=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(const n of e){const e=n.split("/").slice(1);let i=t;for(const t of e)i=i[t];for(const t in r){const e=r[t];if("object"!=typeof e)continue;const{$data:n}=e.definition,o=i[t];n&&o&&(i[t]=E(o))}}return t}_removeAllSchemas(t,e){for(const r in t){const n=t[r];e&&!e.test(r)||("string"==typeof n?delete t[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete t[r]))}}_addSchema(t,e,r,n=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;const{schemaId:s}=this.opts;if("object"==typeof t)o=t[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof t)throw new Error("schema must be object or boolean")}let a=this._cache.get(t);if(void 0!==a)return a;r=(0,fh.normalizeId)(o||r);const u=fh.getSchemaRefs.call(this,t,r);return a=new bh.SchemaEnv({schema:t,schemaId:s,meta:e,baseId:r,localRefs:u}),this._cache.set(a.schema,a),i&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=a),n&&this.validateSchema(t,!0),a}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):bh.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){const e=this.opts;this.opts=this._metaOpts;try{bh.compileSchema.call(this,t)}finally{this.opts=e}}}function l(t,e,r,n="error"){for(const i in t){const o=i;o in e&&this.logger[n](`${r}: option ${i}. ${t[o]}`)}}function c(t){return t=(0,fh.normalizeId)(t),this.schemas[t]||this.refs[t]}function f(){const t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(const e in t)this.addSchema(t[e],e)}function d(){for(const t in this.opts.formats){const e=this.opts.formats[t];e&&this.addFormat(t,e)}}function p(t){if(Array.isArray(t))this.addVocabulary(t);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const e in t){const r=t[e];r.keyword||(r.keyword=e),this.addKeyword(r)}}}function m(){const t={...this.opts};for(const e of i)delete t[e];return t}e.default=h,h.ValidationError=yh.default,h.MissingRefError=wh.default;const y={log(){},warn(){},error(){}};const g=/^[a-z_$][a-z0-9_$:-]*$/i;function v(t,e){const{RULES:r}=this;if((0,Xu.eachItem)(t,(t=>{if(r.keywords[t])throw new Error(`Keyword ${t} is already defined`);if(!g.test(t))throw new Error(`Keyword ${t} has invalid name`)})),e&&e.$data&&!("code"in e)&&!("validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function w(t,e,r){var n;const i=null==e?void 0:e.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let s=i?o.post:o.rules.find((({type:t})=>t===r));if(s||(s={type:r,rules:[]},o.rules.push(s)),o.keywords[t]=!0,!e)return;const a={keyword:t,definition:{...e,type:(0,oh.getJSONTypes)(e.type),schemaType:(0,oh.getJSONTypes)(e.schemaType)}};e.before?b.call(this,s,a,e.before):s.rules.push(a),o.all[t]=a,null===(n=e.implements)||void 0===n||n.forEach((t=>this.addKeyword(t)))}function b(t,e,r){const n=t.rules.findIndex((t=>t.keyword===r));n>=0?t.rules.splice(n,0,e):(t.rules.push(e),this.logger.warn(`rule ${r} is not defined`))}function A(t){let{metaSchema:e}=t;void 0!==e&&(t.$data&&this.opts.$data&&(e=E(e)),t.validateSchema=this.compile(e,!0))}const _={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function E(t){return{anyOf:[t,_]}}}));var xh={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}},Nh=Object.defineProperty({default:xh},"__esModule",{value:!0}),Sh=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.callRef=e.getValidate=void 0;const r={keyword:"$ref",schemaType:"string",code(t){const{gen:e,schema:r,it:o}=t,{baseId:s,schemaEnv:a,validateName:u,opts:h,self:l}=o,{root:c}=a;if(("#"===r||"#/"===r)&&s===c.baseId)return function(){if(a===c)return i(t,u,a,a.$async);const r=e.scopeValue("root",{ref:c});return i(t,Ju._`${r}.validate`,c,c.$async)}();const f=bh.resolveRef.call(l,c,s,r);if(void 0===f)throw new wh.default(o.opts.uriResolver,s,r);return f instanceof bh.SchemaEnv?function(e){const r=n(t,e);i(t,r,e,e.$async)}(f):function(n){const i=e.scopeValue("schema",!0===h.code.source?{ref:n,code:(0,Ju.stringify)(n)}:{ref:n}),o=e.name("valid"),s=t.subschema({schema:n,dataTypes:[],schemaPath:Ju.nil,topSchemaRef:i,errSchemaPath:r},o);t.mergeEvaluated(s),t.ok(o)}(f)}};function n(t,e){const{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):Ju._`${r.scopeValue("wrapper",{ref:e})}.validate`}function i(t,e,r,n){const{gen:i,it:o}=t,{allErrors:s,schemaEnv:a,opts:u}=o,h=u.passContext?th.default.this:Ju.nil;function l(t){const e=Ju._`${t}.errors`;i.assign(th.default.vErrors,Ju._`${th.default.vErrors} === null ? ${e} : ${th.default.vErrors}.concat(${e})`),i.assign(th.default.errors,Ju._`${th.default.vErrors}.length`)}function c(t){var e;if(!o.opts.unevaluated)return;const n=null===(e=null==r?void 0:r.validate)||void 0===e?void 0:e.evaluated;if(!0!==o.props)if(n&&!n.dynamicProps)void 0!==n.props&&(o.props=Xu.mergeEvaluated.props(i,n.props,o.props));else{const e=i.var("props",Ju._`${t}.evaluated.props`);o.props=Xu.mergeEvaluated.props(i,e,o.props,Ju.Name)}if(!0!==o.items)if(n&&!n.dynamicItems)void 0!==n.items&&(o.items=Xu.mergeEvaluated.items(i,n.items,o.items));else{const e=i.var("items",Ju._`${t}.evaluated.items`);o.items=Xu.mergeEvaluated.items(i,e,o.items,Ju.Name)}}n?function(){if(!a.$async)throw new Error("async schema referenced by sync schema");const r=i.let("valid");i.try((()=>{i.code(Ju._`await ${(0,ah.callValidateCode)(t,e,h)}`),c(e),s||i.assign(r,!0)}),(t=>{i.if(Ju._`!(${t} instanceof ${o.ValidationError})`,(()=>i.throw(t))),l(t),s||i.assign(r,!1)})),t.ok(r)}():t.result((0,ah.callValidateCode)(t,e,h),(()=>c(e)),(()=>l(e)))}e.getValidate=n,e.callRef=i,e.default=r}));var Uh=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Nh.default,Sh.default],Ph=Object.defineProperty({default:Uh},"__esModule",{value:!0});const Th=Ju.operators,Rh={maximum:{okStr:"<=",ok:Th.LTE,fail:Th.GT},minimum:{okStr:">=",ok:Th.GTE,fail:Th.LT},exclusiveMaximum:{okStr:"<",ok:Th.LT,fail:Th.GTE},exclusiveMinimum:{okStr:">",ok:Th.GT,fail:Th.LTE}},Ih={message:({keyword:t,schemaCode:e})=>Ju.str`must be ${Rh[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>Ju._`{comparison: ${Rh[t].okStr}, limit: ${e}}`},Ch={keyword:Object.keys(Rh),type:"number",schemaType:"number",$data:!0,error:Ih,code(t){const{keyword:e,data:r,schemaCode:n}=t;t.fail$data(Ju._`${r} ${Rh[e].fail} ${n} || isNaN(${r})`)}};var $h=Ch,Oh=Object.defineProperty({default:$h},"__esModule",{value:!0});var Fh={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:t})=>Ju.str`must be multiple of ${t}`,params:({schemaCode:t})=>Ju._`{multipleOf: ${t}}`},code(t){const{gen:e,data:r,schemaCode:n,it:i}=t,o=i.opts.multipleOfPrecision,s=e.let("res"),a=o?Ju._`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:Ju._`${s} !== parseInt(${s})`;t.fail$data(Ju._`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}},Bh=Object.defineProperty({default:Fh},"__esModule",{value:!0});function jh(t){const e=t.length;let r,n=0,i=0;for(;i<e;)n++,r=t.charCodeAt(i++),r>=55296&&r<=56319&&i<e&&(r=t.charCodeAt(i),56320==(64512&r)&&i++);return n}var Dh=jh;jh.code='require("ajv/dist/runtime/ucs2length").default';var Lh=Object.defineProperty({default:Dh},"__esModule",{value:!0});const zh={message({keyword:t,schemaCode:e}){const r="maxLength"===t?"more":"fewer";return Ju.str`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>Ju._`{limit: ${t}}`},qh={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:zh,code(t){const{keyword:e,data:r,schemaCode:n,it:i}=t,o="maxLength"===e?Ju.operators.GT:Ju.operators.LT,s=!1===i.opts.unicode?Ju._`${r}.length`:Ju._`${(0,Xu.useFunc)(t.gen,Lh.default)}(${r})`;t.fail$data(Ju._`${s} ${o} ${n}`)}};var Vh=qh,Gh=Object.defineProperty({default:Vh},"__esModule",{value:!0});var Hh={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:t})=>Ju.str`must match pattern "${t}"`,params:({schemaCode:t})=>Ju._`{pattern: ${t}}`},code(t){const{data:e,$data:r,schema:n,schemaCode:i,it:o}=t,s=o.opts.unicodeRegExp?"u":"",a=r?Ju._`(new RegExp(${i}, ${s}))`:(0,ah.usePattern)(t,n);t.fail$data(Ju._`!${a}.test(${e})`)}},Qh=Object.defineProperty({default:Hh},"__esModule",{value:!0});const Kh={message({keyword:t,schemaCode:e}){const r="maxProperties"===t?"more":"fewer";return Ju.str`must NOT have ${r} than ${e} properties`},params:({schemaCode:t})=>Ju._`{limit: ${t}}`},Zh={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Kh,code(t){const{keyword:e,data:r,schemaCode:n}=t,i="maxProperties"===e?Ju.operators.GT:Ju.operators.LT;t.fail$data(Ju._`Object.keys(${r}).length ${i} ${n}`)}};var Wh=Zh,Jh=Object.defineProperty({default:Wh},"__esModule",{value:!0});var Xh={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:t}})=>Ju.str`must have required property '${t}'`,params:({params:{missingProperty:t}})=>Ju._`{missingProperty: ${t}}`},code(t){const{gen:e,schema:r,schemaCode:n,data:i,$data:o,it:s}=t,{opts:a}=s;if(!o&&0===r.length)return;const u=r.length>=a.loopRequired;if(s.allErrors?function(){if(u||o)t.block$data(Ju.nil,h);else for(const e of r)(0,ah.checkReportMissingProp)(t,e)}():function(){const s=e.let("missing");if(u||o){const r=e.let("valid",!0);t.block$data(r,(()=>function(r,o){t.setParams({missingProperty:r}),e.forOf(r,n,(()=>{e.assign(o,(0,ah.propertyInData)(e,i,r,a.ownProperties)),e.if((0,Ju.not)(o),(()=>{t.error(),e.break()}))}),Ju.nil)}(s,r))),t.ok(r)}else e.if((0,ah.checkMissingProp)(t,r,s)),(0,ah.reportMissingProp)(t,s),e.else()}(),a.strictRequired){const e=t.parentSchema.properties,{definedProperties:n}=t.it;for(const t of r)if(void 0===(null==e?void 0:e[t])&&!n.has(t)){const e=`required property "${t}" is not defined at "${s.schemaEnv.baseId+s.errSchemaPath}" (strictRequired)`;(0,Xu.checkStrictMode)(s,e,s.opts.strictRequired)}}function h(){e.forOf("prop",n,(r=>{t.setParams({missingProperty:r}),e.if((0,ah.noPropertyInData)(e,i,r,a.ownProperties),(()=>t.error()))}))}}},Yh=Object.defineProperty({default:Xh},"__esModule",{value:!0});const tl={message({keyword:t,schemaCode:e}){const r="maxItems"===t?"more":"fewer";return Ju.str`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>Ju._`{limit: ${t}}`},el={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:tl,code(t){const{keyword:e,data:r,schemaCode:n}=t,i="maxItems"===e?Ju.operators.GT:Ju.operators.LT;t.fail$data(Ju._`${r}.length ${i} ${n}`)}};var rl=el,nl=Object.defineProperty({default:rl},"__esModule",{value:!0});lh.code='require("ajv/dist/runtime/equal").default';var il=lh,ol=Object.defineProperty({default:il},"__esModule",{value:!0});var sl={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:t,j:e}})=>Ju.str`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>Ju._`{i: ${t}, j: ${e}}`},code(t){const{gen:e,data:r,$data:n,schema:i,parentSchema:o,schemaCode:s,it:a}=t;if(!n&&!i)return;const u=e.let("valid"),h=o.items?(0,oh.getSchemaTypes)(o.items):[];function l(n,i){const o=e.name("item"),s=(0,oh.checkDataTypes)(h,o,a.opts.strictNumbers,oh.DataType.Wrong),l=e.const("indices",Ju._`{}`);e.for(Ju._`;${n}--;`,(()=>{e.let(o,Ju._`${r}[${n}]`),e.if(s,Ju._`continue`),h.length>1&&e.if(Ju._`typeof ${o} == "string"`,Ju._`${o} += "_"`),e.if(Ju._`typeof ${l}[${o}] == "number"`,(()=>{e.assign(i,Ju._`${l}[${o}]`),t.error(),e.assign(u,!1).break()})).code(Ju._`${l}[${o}] = ${n}`)}))}function c(n,i){const o=(0,Xu.useFunc)(e,ol.default),s=e.name("outer");e.label(s).for(Ju._`;${n}--;`,(()=>e.for(Ju._`${i} = ${n}; ${i}--;`,(()=>e.if(Ju._`${o}(${r}[${n}], ${r}[${i}])`,(()=>{t.error(),e.assign(u,!1).break(s)}))))))}t.block$data(u,(function(){const n=e.let("i",Ju._`${r}.length`),i=e.let("j");t.setParams({i:n,j:i}),e.assign(u,!0),e.if(Ju._`${n} > 1`,(()=>(h.length>0&&!h.some((t=>"object"===t||"array"===t))?l:c)(n,i)))}),Ju._`${s} === false`),t.ok(u)}},al=Object.defineProperty({default:sl},"__esModule",{value:!0});var ul={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:t})=>Ju._`{allowedValue: ${t}}`},code(t){const{gen:e,data:r,$data:n,schemaCode:i,schema:o}=t;n||o&&"object"==typeof o?t.fail$data(Ju._`!${(0,Xu.useFunc)(e,ol.default)}(${r}, ${i})`):t.fail(Ju._`${o} !== ${r}`)}},hl=Object.defineProperty({default:ul},"__esModule",{value:!0});var ll={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:t})=>Ju._`{allowedValues: ${t}}`},code(t){const{gen:e,data:r,$data:n,schema:i,schemaCode:o,it:s}=t;if(!n&&0===i.length)throw new Error("enum must have non-empty array");const a=i.length>=s.opts.loopEnum;let u;const h=()=>null!=u?u:u=(0,Xu.useFunc)(e,ol.default);let l;if(a||n)l=e.let("valid"),t.block$data(l,(function(){e.assign(l,!1),e.forOf("v",o,(t=>e.if(Ju._`${h()}(${r}, ${t})`,(()=>e.assign(l,!0).break()))))}));else{if(!Array.isArray(i))throw new Error("ajv implementation error");const t=e.const("vSchema",o);l=(0,Ju.or)(...i.map(((e,n)=>function(t,e){const n=i[e];return"object"==typeof n&&null!==n?Ju._`${h()}(${r}, ${t}[${e}])`:Ju._`${r} === ${n}`}(t,n))))}t.pass(l)}},cl=Object.defineProperty({default:ll},"__esModule",{value:!0});var fl=[Oh.default,Bh.default,Gh.default,Qh.default,Jh.default,Yh.default,nl.default,al.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},hl.default,cl.default],dl=Object.defineProperty({default:fl},"__esModule",{value:!0}),pl=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateAdditionalItems=void 0;const r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:t}})=>Ju.str`must NOT have more than ${t} items`,params:({params:{len:t}})=>Ju._`{limit: ${t}}`},code(t){const{parentSchema:e,it:r}=t,{items:i}=e;Array.isArray(i)?n(t,i):(0,Xu.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function n(t,e){const{gen:r,schema:n,data:i,keyword:o,it:s}=t;s.items=!0;const a=r.const("len",Ju._`${i}.length`);if(!1===n)t.setParams({len:e.length}),t.pass(Ju._`${a} <= ${e.length}`);else if("object"==typeof n&&!(0,Xu.alwaysValidSchema)(s,n)){const n=r.var("valid",Ju._`${a} <= ${e.length}`);r.if((0,Ju.not)(n),(()=>function(n){r.forRange("i",e.length,a,(e=>{t.subschema({keyword:o,dataProp:e,dataPropType:Xu.Type.Num},n),s.allErrors||r.if((0,Ju.not)(n),(()=>r.break()))}))}(n))),t.ok(n)}}e.validateAdditionalItems=n,e.default=r})),ml=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateTuple=void 0;const r={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){const{schema:e,it:r}=t;if(Array.isArray(e))return n(t,"additionalItems",e);r.items=!0,(0,Xu.alwaysValidSchema)(r,e)||t.ok((0,ah.validateArray)(t))}};function n(t,e,r=t.schema){const{gen:n,parentSchema:i,data:o,keyword:s,it:a}=t;!function(t){const{opts:n,errSchemaPath:i}=a,o=r.length,u=o===t.minItems&&(o===t.maxItems||!1===t[e]);if(n.strictTuples&&!u){const t=`"${s}" is ${o}-tuple, but minItems or maxItems/${e} are not specified or different at path "${i}"`;(0,Xu.checkStrictMode)(a,t,n.strictTuples)}}(i),a.opts.unevaluated&&r.length&&!0!==a.items&&(a.items=Xu.mergeEvaluated.items(n,r.length,a.items));const u=n.name("valid"),h=n.const("len",Ju._`${o}.length`);r.forEach(((e,r)=>{(0,Xu.alwaysValidSchema)(a,e)||(n.if(Ju._`${h} > ${r}`,(()=>t.subschema({keyword:s,schemaProp:r,dataProp:r},u))),t.ok(u))}))}e.validateTuple=n,e.default=r}));var yl={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,ml.validateTuple)(t,"items")},gl=Object.defineProperty({default:yl},"__esModule",{value:!0});const vl={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:t}})=>Ju.str`must NOT have more than ${t} items`,params:({params:{len:t}})=>Ju._`{limit: ${t}}`},code(t){const{schema:e,parentSchema:r,it:n}=t,{prefixItems:i}=r;n.items=!0,(0,Xu.alwaysValidSchema)(n,e)||(i?(0,pl.validateAdditionalItems)(t,i):t.ok((0,ah.validateArray)(t)))}};var wl=vl,bl=Object.defineProperty({default:wl},"__esModule",{value:!0});var Al={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:t,max:e}})=>void 0===e?Ju.str`must contain at least ${t} valid item(s)`:Ju.str`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>void 0===e?Ju._`{minContains: ${t}}`:Ju._`{minContains: ${t}, maxContains: ${e}}`},code(t){const{gen:e,schema:r,parentSchema:n,data:i,it:o}=t;let s,a;const{minContains:u,maxContains:h}=n;o.opts.next?(s=void 0===u?1:u,a=h):s=1;const l=e.const("len",Ju._`${i}.length`);if(t.setParams({min:s,max:a}),void 0===a&&0===s)return void(0,Xu.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==a&&s>a)return(0,Xu.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),void t.fail();if((0,Xu.alwaysValidSchema)(o,r)){let e=Ju._`${l} >= ${s}`;return void 0!==a&&(e=Ju._`${e} && ${l} <= ${a}`),void t.pass(e)}o.items=!0;const c=e.name("valid");function f(){const t=e.name("_valid"),r=e.let("count",0);d(t,(()=>e.if(t,(()=>function(t){e.code(Ju._`${t}++`),void 0===a?e.if(Ju._`${t} >= ${s}`,(()=>e.assign(c,!0).break())):(e.if(Ju._`${t} > ${a}`,(()=>e.assign(c,!1).break())),1===s?e.assign(c,!0):e.if(Ju._`${t} >= ${s}`,(()=>e.assign(c,!0))))}(r)))))}function d(r,n){e.forRange("i",0,l,(e=>{t.subschema({keyword:"contains",dataProp:e,dataPropType:Xu.Type.Num,compositeRule:!0},r),n()}))}void 0===a&&1===s?d(c,(()=>e.if(c,(()=>e.break())))):0===s?(e.let(c,!0),void 0!==a&&e.if(Ju._`${i}.length > 0`,f)):(e.let(c,!1),f()),t.result(c,(()=>t.reset()))}},_l=Object.defineProperty({default:Al},"__esModule",{value:!0}),El=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0,e.error={message:({params:{property:t,depsCount:e,deps:r}})=>{const n=1===e?"property":"properties";return Ju.str`must have ${n} ${r} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:r,missingProperty:n}})=>Ju._`{property: ${t},
|
|
29
|
+
|| ${h} === "boolean" || ${o} === null`).assign(l,Ju._`[${o}]`)}}n.else(),u(t),n.endIf(),n.if(Ju._`${l} !== undefined`,(()=>{n.assign(o,l),function({gen:t,parentData:e,parentDataProperty:r},n){t.if(Ju._`${e} !== undefined`,(()=>t.assign(Ju._`${e}[${r}]`,n)))}(t,l)}))}(t,e,h):u(t)}))}return l};const i=new Set(["string","number","integer","boolean","null"]);function o(t,e,n,i=r.Correct){const o=i===r.Correct?Ju.operators.EQ:Ju.operators.NEQ;let s;switch(t){case"null":return Ju._`${e} ${o} null`;case"array":s=Ju._`Array.isArray(${e})`;break;case"object":s=Ju._`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":s=a(Ju._`!(${e} % 1) && !isNaN(${e})`);break;case"number":s=a();break;default:return Ju._`typeof ${e} ${o} ${t}`}return i===r.Correct?s:(0,Ju.not)(s);function a(t=Ju.nil){return(0,Ju.and)(Ju._`typeof ${e} == "number"`,t,n?Ju._`isFinite(${e})`:Ju.nil)}}function s(t,e,r,n){if(1===t.length)return o(t[0],e,r,n);let i;const s=(0,Yu.toHash)(t);if(s.array&&s.object){const t=Ju._`typeof ${e} != "object"`;i=s.null?t:Ju._`!${e} || ${t}`,delete s.null,delete s.array,delete s.object}else i=Ju.nil;s.number&&delete s.integer;for(const t in s)i=(0,Ju.and)(i,o(t,e,r,n));return i}e.checkDataType=o,e.checkDataTypes=s;const a={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>"string"==typeof t?Ju._`{type: ${t}}`:Ju._`{type: ${e}}`};function u(t){const e=function(t){const{gen:e,data:r,schema:n}=t,i=(0,Yu.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:t}}(t);(0,eh.reportError)(e,a)}e.reportTypeError=u})),sh=u((function(t,e){function r(t,e,r){const{gen:n,compositeRule:i,data:o,opts:s}=t;if(void 0===r)return;const a=Ju._`${o}${(0,Ju.getProperty)(e)}`;if(i)return void(0,Yu.checkStrictMode)(t,`default is ignored for: ${a}`);let u=Ju._`${a} === undefined`;"empty"===s.useDefaults&&(u=Ju._`${u} || ${a} === null || ${a} === ""`),n.if(u,Ju._`${a} = ${(0,Ju.stringify)(r)}`)}Object.defineProperty(e,"__esModule",{value:!0}),e.assignDefaults=void 0,e.assignDefaults=function(t,e){const{properties:n,items:i}=t.schema;if("object"===e&&n)for(const e in n)r(t,e,n[e].default);else"array"===e&&Array.isArray(i)&&i.forEach(((e,n)=>r(t,n,e.default)))}})),ah=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateUnion=e.validateArray=e.usePattern=e.callValidateCode=e.schemaProperties=e.allSchemaProperties=e.noPropertyInData=e.propertyInData=e.isOwnProperty=e.hasPropFunc=e.reportMissingProp=e.checkMissingProp=e.checkReportMissingProp=void 0;const r=Yu;function n(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:Ju._`Object.prototype.hasOwnProperty`})}function i(t,e,r){return Ju._`${n(t)}.call(${e}, ${r})`}function o(t,e,r,n){const o=Ju._`${e}${(0,Ju.getProperty)(r)} === undefined`;return n?(0,Ju.or)(o,(0,Ju.not)(i(t,e,r))):o}function s(t){return t?Object.keys(t).filter((t=>"__proto__"!==t)):[]}e.checkReportMissingProp=function(t,e){const{gen:r,data:n,it:i}=t;r.if(o(r,n,e,i.opts.ownProperties),(()=>{t.setParams({missingProperty:Ju._`${e}`},!0),t.error()}))},e.checkMissingProp=function({gen:t,data:e,it:{opts:r}},n,i){return(0,Ju.or)(...n.map((n=>(0,Ju.and)(o(t,e,n,r.ownProperties),Ju._`${i} = ${n}`))))},e.reportMissingProp=function(t,e){t.setParams({missingProperty:e},!0),t.error()},e.hasPropFunc=n,e.isOwnProperty=i,e.propertyInData=function(t,e,r,n){const o=Ju._`${e}${(0,Ju.getProperty)(r)} !== undefined`;return n?Ju._`${o} && ${i(t,e,r)}`:o},e.noPropertyInData=o,e.allSchemaProperties=s,e.schemaProperties=function(t,e){return s(e).filter((r=>!(0,Yu.alwaysValidSchema)(t,e[r])))},e.callValidateCode=function({schemaCode:t,data:e,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},a,u,h){const l=h?Ju._`${t}, ${e}, ${n}${i}`:e,c=[[th.default.instancePath,(0,Ju.strConcat)(th.default.instancePath,o)],[th.default.parentData,s.parentData],[th.default.parentDataProperty,s.parentDataProperty],[th.default.rootData,th.default.rootData]];s.opts.dynamicRef&&c.push([th.default.dynamicAnchors,th.default.dynamicAnchors]);const f=Ju._`${l}, ${r.object(...c)}`;return u!==Ju.nil?Ju._`${a}.call(${u}, ${f})`:Ju._`${a}(${f})`};const a=Ju._`new RegExp`;e.usePattern=function({gen:t,it:{opts:e}},n){const i=e.unicodeRegExp?"u":"",{regExp:o}=e.code,s=o(n,i);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:Ju._`${"new RegExp"===o.code?a:(0,r.useFunc)(t,o)}(${n}, ${i})`})},e.validateArray=function(t){const{gen:e,data:r,keyword:n,it:i}=t,o=e.name("valid");if(i.allErrors){const t=e.let("valid",!0);return s((()=>e.assign(t,!1))),t}return e.var(o,!0),s((()=>e.break())),o;function s(i){const s=e.const("len",Ju._`${r}.length`);e.forRange("i",0,s,(r=>{t.subschema({keyword:n,dataProp:r,dataPropType:Yu.Type.Num},o),e.if((0,Ju.not)(o),i)}))}},e.validateUnion=function(t){const{gen:e,schema:r,keyword:n,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((t=>(0,Yu.alwaysValidSchema)(i,t)))&&!i.opts.unevaluated)return;const o=e.let("valid",!1),s=e.name("_valid");e.block((()=>r.forEach(((r,i)=>{const a=t.subschema({keyword:n,schemaProp:i,compositeRule:!0},s);e.assign(o,Ju._`${o} || ${s}`);t.mergeValidEvaluated(a,s)||e.if((0,Ju.not)(o))})))),t.result(o,(()=>t.reset()),(()=>t.error(!0)))}})),uh=u((function(t,e){function r(t){const{gen:e,data:r,it:n}=t;e.if(n.parentData,(()=>e.assign(r,Ju._`${n.parentData}[${n.parentDataProperty}]`)))}function n(t,e,r){if(void 0===r)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,Ju.stringify)(r)})}Object.defineProperty(e,"__esModule",{value:!0}),e.validateKeywordUsage=e.validSchemaType=e.funcKeywordCode=e.macroKeywordCode=void 0,e.macroKeywordCode=function(t,e){const{gen:r,keyword:i,schema:o,parentSchema:s,it:a}=t,u=e.macro.call(a.self,o,s,a),h=n(r,i,u);!1!==a.opts.validateSchema&&a.self.validateSchema(u,!0);const l=r.name("valid");t.subschema({schema:u,schemaPath:Ju.nil,errSchemaPath:`${a.errSchemaPath}/${i}`,topSchemaRef:h,compositeRule:!0},l),t.pass(l,(()=>t.error(!0)))},e.funcKeywordCode=function(t,e){var i;const{gen:o,keyword:s,schema:a,parentSchema:u,$data:h,it:l}=t;!function({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}(l,e);const c=!h&&e.compile?e.compile.call(l.self,a,u,l):e.validate,f=n(o,s,c),d=o.let("valid");function p(r=(e.async?Ju._`await `:Ju.nil)){const n=l.opts.passContext?th.default.this:th.default.self,i=!("compile"in e&&!h||!1===e.schema);o.assign(d,Ju._`${r}${(0,ah.callValidateCode)(t,f,n,i)}`,e.modifying)}function m(t){var r;o.if((0,Ju.not)(null!==(r=e.valid)&&void 0!==r?r:d),t)}t.block$data(d,(function(){if(!1===e.errors)p(),e.modifying&&r(t),m((()=>t.error()));else{const n=e.async?function(){const t=o.let("ruleErrs",null);return o.try((()=>p(Ju._`await `)),(e=>o.assign(d,!1).if(Ju._`${e} instanceof ${l.ValidationError}`,(()=>o.assign(t,Ju._`${e}.errors`)),(()=>o.throw(e))))),t}():function(){const t=Ju._`${f}.errors`;return o.assign(t,null),p(Ju.nil),t}();e.modifying&&r(t),m((()=>function(t,e){const{gen:r}=t;r.if(Ju._`Array.isArray(${e})`,(()=>{r.assign(th.default.vErrors,Ju._`${th.default.vErrors} === null ? ${e} : ${th.default.vErrors}.concat(${e})`).assign(th.default.errors,Ju._`${th.default.vErrors}.length`),(0,eh.extendErrors)(t)}),(()=>t.error()))}(t,n)))}})),t.ok(null!==(i=e.valid)&&void 0!==i?i:d)},e.validSchemaType=function(t,e,r=!1){return!e.length||e.some((e=>"array"===e?Array.isArray(t):"object"===e?t&&"object"==typeof t&&!Array.isArray(t):typeof t==e||r&&void 0===t))},e.validateKeywordUsage=function({schema:t,opts:e,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const s=i.dependencies;if(null==s?void 0:s.some((e=>!Object.prototype.hasOwnProperty.call(t,e))))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema){if(!i.validateSchema(t[o])){const t=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if("log"!==e.validateSchema)throw new Error(t);r.logger.error(t)}}}})),hh=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendSubschemaMode=e.extendSubschemaData=e.getSubschema=void 0,e.getSubschema=function(t,{keyword:e,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:s}){if(void 0!==e&&void 0!==n)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==e){const n=t.schema[e];return void 0===r?{schema:n,schemaPath:Ju._`${t.schemaPath}${(0,Ju.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:n[r],schemaPath:Ju._`${t.schemaPath}${(0,Ju.getProperty)(e)}${(0,Ju.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,Yu.escapeFragment)(r)}`}}if(void 0!==n){if(void 0===i||void 0===o||void 0===s)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')},e.extendSubschemaData=function(t,e,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:s}){if(void 0!==i&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:a}=e;if(void 0!==r){const{errorPath:i,dataPathArr:o,opts:s}=e;u(a.let("data",Ju._`${e.data}${(0,Ju.getProperty)(r)}`,!0)),t.errorPath=Ju.str`${i}${(0,Yu.getErrorPath)(r,n,s.jsPropertySyntax)}`,t.parentDataProperty=Ju._`${r}`,t.dataPathArr=[...o,t.parentDataProperty]}if(void 0!==i){u(i instanceof Ju.Name?i:a.let("data",i,!0)),void 0!==s&&(t.propertyName=s)}function u(r){t.data=r,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,r]}o&&(t.dataTypes=o)},e.extendSubschemaMode=function(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){void 0!==n&&(t.compositeRule=n),void 0!==i&&(t.createErrors=i),void 0!==o&&(t.allErrors=o),t.jtdDiscriminator=e,t.jtdMetadata=r}})),lh=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(i=n;0!=i--;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var s=o[i];if(!t(e[s],r[s]))return!1}return!0}return e!=e&&r!=r},ch=u((function(t){var e=t.exports=function(t,e,n){"function"==typeof e&&(n=e,e={}),r(e,"function"==typeof(n=e.cb||n)?n:n.pre||function(){},n.post||function(){},t,"",t)};function r(t,n,i,o,s,a,u,h,l,c){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var f in n(o,s,a,u,h,l,c),o){var d=o[f];if(Array.isArray(d)){if(f in e.arrayKeywords)for(var p=0;p<d.length;p++)r(t,n,i,d[p],s+"/"+f+"/"+p,a,s,f,o,p)}else if(f in e.propsKeywords){if(d&&"object"==typeof d)for(var m in d)r(t,n,i,d[m],s+"/"+f+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),a,s,f,o,m)}else(f in e.keywords||t.allKeys&&!(f in e.skipKeywords))&&r(t,n,i,d,s+"/"+f,a,s,f,o)}i(o,s,a,u,h,l,c)}}e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}})),fh=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getSchemaRefs=e.resolveUrl=e.normalizeId=e._getFullPath=e.getFullPath=e.inlineRef=void 0;const r=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);e.inlineRef=function(t,e=!0){return"boolean"==typeof t||(!0===e?!i(t):!!e&&o(t)<=e)};const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function i(t){for(const e in t){if(n.has(e))return!0;const r=t[e];if(Array.isArray(r)&&r.some(i))return!0;if("object"==typeof r&&i(r))return!0}return!1}function o(t){let e=0;for(const n in t){if("$ref"===n)return 1/0;if(e++,!r.has(n)&&("object"==typeof t[n]&&(0,Yu.eachItem)(t[n],(t=>e+=o(t))),e===1/0))return 1/0}return e}function s(t,e="",r){!1!==r&&(e=h(e));const n=t.parse(e);return a(t,n)}function a(t,e){return t.serialize(e).split("#")[0]+"#"}e.getFullPath=s,e._getFullPath=a;const u=/#\/?$/;function h(t){return t?t.replace(u,""):""}e.normalizeId=h,e.resolveUrl=function(t,e,r){return r=h(r),t.resolve(e,r)};const l=/^[a-z_][-a-z0-9._]*$/i;e.getSchemaRefs=function(t,e){if("boolean"==typeof t)return{};const{schemaId:r,uriResolver:n}=this.opts,i=h(t[r]||e),o={"":i},a=s(n,i,!1),u={},c=new Set;return ch(t,{allKeys:!0},((t,e,n,i)=>{if(void 0===i)return;const s=a+e;let p=o[i];function m(e){const r=this.opts.uriResolver.resolve;if(e=h(p?r(p,e):e),c.has(e))throw d(e);c.add(e);let n=this.refs[e];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?f(t,n.schema,e):e!==h(s)&&("#"===e[0]?(f(t,u[e],e),u[e]=t):this.refs[e]=s),e}function y(t){if("string"==typeof t){if(!l.test(t))throw new Error(`invalid anchor "${t}"`);m.call(this,`#${t}`)}}"string"==typeof t[r]&&(p=m.call(this,t[r])),y.call(this,t.$anchor),y.call(this,t.$dynamicAnchor),o[e]=p})),u;function f(t,e,r){if(void 0!==e&&!lh(t,e))throw d(r)}function d(t){return new Error(`reference "${t}" resolves to more than one schema`)}}})),dh=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getData=e.KeywordCxt=e.validateFunctionCode=void 0;const r=oh;function n({gen:t,validateName:e,schema:r,schemaEnv:n,opts:o},s){o.code.es5?t.func(e,Ju._`${th.default.data}, ${th.default.valCxt}`,n.$async,(()=>{t.code(Ju._`"use strict"; ${i(r,o)}`),function(t,e){t.if(th.default.valCxt,(()=>{t.var(th.default.instancePath,Ju._`${th.default.valCxt}.${th.default.instancePath}`),t.var(th.default.parentData,Ju._`${th.default.valCxt}.${th.default.parentData}`),t.var(th.default.parentDataProperty,Ju._`${th.default.valCxt}.${th.default.parentDataProperty}`),t.var(th.default.rootData,Ju._`${th.default.valCxt}.${th.default.rootData}`),e.dynamicRef&&t.var(th.default.dynamicAnchors,Ju._`${th.default.valCxt}.${th.default.dynamicAnchors}`)}),(()=>{t.var(th.default.instancePath,Ju._`""`),t.var(th.default.parentData,Ju._`undefined`),t.var(th.default.parentDataProperty,Ju._`undefined`),t.var(th.default.rootData,th.default.data),e.dynamicRef&&t.var(th.default.dynamicAnchors,Ju._`{}`)}))}(t,o),t.code(s)})):t.func(e,Ju._`${th.default.data}, ${function(t){return Ju._`{${th.default.instancePath}="", ${th.default.parentData}, ${th.default.parentDataProperty}, ${th.default.rootData}=${th.default.data}${t.dynamicRef?Ju._`, ${th.default.dynamicAnchors}={}`:Ju.nil}}={}`}(o)}`,n.$async,(()=>t.code(i(r,o)).code(s)))}function i(t,e){const r="object"==typeof t&&t[e.schemaId];return r&&(e.code.source||e.code.process)?Ju._`/*# sourceURL=${r} */`:Ju.nil}function o(t,e){a(t)&&(u(t),s(t))?function(t,e){const{schema:r,gen:n,opts:i}=t;i.$comment&&r.$comment&&l(t);(function(t){const e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,fh.resolveUrl)(t.opts.uriResolver,t.baseId,e))})(t),function(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}(t);const o=n.const("_errs",th.default.errors);h(t,o),n.var(e,Ju._`${o} === ${th.default.errors}`)}(t,e):(0,rh.boolOrEmptySchema)(t,e)}function s({schema:t,self:e}){if("boolean"==typeof t)return!t;for(const r in t)if(e.RULES.all[r])return!0;return!1}function a(t){return"boolean"!=typeof t.schema}function u(t){(0,Yu.checkUnknownRules)(t),function(t){const{schema:e,errSchemaPath:r,opts:n,self:i}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,Yu.schemaHasRulesButRef)(e,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(t)}function h(t,e){if(t.opts.jtd)return c(t,[],!1,e);const r=(0,oh.getSchemaTypes)(t.schema);c(t,r,!(0,oh.coerceAndCheckDataType)(t,r),e)}function l({gen:t,schemaEnv:e,schema:r,errSchemaPath:n,opts:i}){const o=r.$comment;if(!0===i.$comment)t.code(Ju._`${th.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const r=Ju.str`${n}/$comment`,i=t.scopeValue("root",{ref:e.root});t.code(Ju._`${th.default.self}.opts.$comment(${o}, ${r}, ${i}.schema)`)}}function c(t,e,n,i){const{gen:o,schema:s,data:a,allErrors:u,opts:h,self:l}=t,{RULES:c}=l;function y(l){(0,ih.shouldUseGroup)(s,l)&&(l.type?(o.if((0,r.checkDataType)(l.type,a,h.strictNumbers)),f(t,l),1===e.length&&e[0]===l.type&&n&&(o.else(),(0,r.reportTypeError)(t)),o.endIf()):f(t,l),u||o.if(Ju._`${th.default.errors} === ${i||0}`))}!s.$ref||!h.ignoreKeywordsWithRef&&(0,Yu.schemaHasRulesButRef)(s,c)?(h.jtd||function(t,e){if(t.schemaEnv.meta||!t.opts.strictTypes)return;(function(t,e){if(!e.length)return;if(!t.dataTypes.length)return void(t.dataTypes=e);e.forEach((e=>{p(t.dataTypes,e)||m(t,`type "${e}" not allowed by context "${t.dataTypes.join(",")}"`)})),t.dataTypes=t.dataTypes.filter((t=>p(e,t)))})(t,e),t.opts.allowUnionTypes||function(t,e){e.length>1&&(2!==e.length||!e.includes("null"))&&m(t,"use allowUnionTypes to allow union type keyword")}(t,e);!function(t,e){const r=t.self.RULES.all;for(const n in r){const i=r[n];if("object"==typeof i&&(0,ih.shouldUseRule)(t.schema,i)){const{type:r}=i.definition;r.length&&!r.some((t=>d(e,t)))&&m(t,`missing type "${r.join(",")}" for keyword "${n}"`)}}}(t,t.dataTypes)}(t,e),o.block((()=>{for(const t of c.rules)y(t);y(c.post)}))):o.block((()=>g(t,"$ref",c.all.$ref.definition)))}function f(t,e){const{gen:r,schema:n,opts:{useDefaults:i}}=t;i&&(0,sh.assignDefaults)(t,e.type),r.block((()=>{for(const r of e.rules)(0,ih.shouldUseRule)(n,r)&&g(t,r.keyword,r.definition,e.type)}))}function d(t,e){return t.includes(e)||"number"===e&&t.includes("integer")}function p(t,e){return t.includes(e)||"integer"===e&&t.includes("number")}function m(t,e){e+=` at "${t.schemaEnv.baseId+t.errSchemaPath}" (strictTypes)`,(0,Yu.checkStrictMode)(t,e,t.opts.strictTypes)}e.validateFunctionCode=function(t){a(t)&&(u(t),s(t))?function(t){const{schema:e,opts:r,gen:i}=t;n(t,(()=>{r.$comment&&e.$comment&&l(t),function(t){const{schema:e,opts:r}=t;void 0!==e.default&&r.useDefaults&&r.strictSchema&&(0,Yu.checkStrictMode)(t,"default is ignored in the schema root")}(t),i.let(th.default.vErrors,null),i.let(th.default.errors,0),r.unevaluated&&function(t){const{gen:e,validateName:r}=t;t.evaluated=e.const("evaluated",Ju._`${r}.evaluated`),e.if(Ju._`${t.evaluated}.dynamicProps`,(()=>e.assign(Ju._`${t.evaluated}.props`,Ju._`undefined`))),e.if(Ju._`${t.evaluated}.dynamicItems`,(()=>e.assign(Ju._`${t.evaluated}.items`,Ju._`undefined`)))}(t),h(t),function(t){const{gen:e,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=t;r.$async?e.if(Ju._`${th.default.errors} === 0`,(()=>e.return(th.default.data)),(()=>e.throw(Ju._`new ${i}(${th.default.vErrors})`))):(e.assign(Ju._`${n}.errors`,th.default.vErrors),o.unevaluated&&function({gen:t,evaluated:e,props:r,items:n}){r instanceof Ju.Name&&t.assign(Ju._`${e}.props`,r);n instanceof Ju.Name&&t.assign(Ju._`${e}.items`,n)}(t),e.return(Ju._`${th.default.errors} === 0`))}(t)}))}(t):n(t,(()=>(0,rh.topBoolOrEmptySchema)(t)))};class y{constructor(t,e,r){if((0,uh.validateKeywordUsage)(t,e,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=e.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Yu.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=e.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=e,this.$data)this.schemaCode=t.gen.const("vSchema",b(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,uh.validSchemaType)(this.schema,e.schemaType,e.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(e.schemaType)}`);("code"in e?e.trackErrors:!1!==e.errors)&&(this.errsCount=t.gen.const("_errs",th.default.errors))}result(t,e,r){this.failResult((0,Ju.not)(t),e,r)}failResult(t,e,r){this.gen.if(t),r?r():this.error(),e?(this.gen.else(),e(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,e){this.failResult((0,Ju.not)(t),void 0,e)}fail(t){if(void 0===t)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:e}=this;this.fail(Ju._`${e} !== undefined && (${(0,Ju.or)(this.invalid$data(),t)})`)}error(t,e,r){if(e)return this.setParams(e),this._error(t,r),void this.setParams({});this._error(t,r)}_error(t,e){(t?eh.reportExtraError:eh.reportError)(this,this.def.error,e)}$dataError(){(0,eh.reportError)(this,this.def.$dataError||eh.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,eh.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,e){e?Object.assign(this.params,t):this.params=t}block$data(t,e,r=Ju.nil){this.gen.block((()=>{this.check$data(t,r),e()}))}check$data(t=Ju.nil,e=Ju.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:i,def:o}=this;r.if((0,Ju.or)(Ju._`${n} === undefined`,e)),t!==Ju.nil&&r.assign(t,!0),(i.length||o.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),t!==Ju.nil&&r.assign(t,!1)),r.else()}invalid$data(){const{gen:t,schemaCode:e,schemaType:n,def:i,it:o}=this;return(0,Ju.or)(function(){if(n.length){if(!(e instanceof Ju.Name))throw new Error("ajv implementation error");const t=Array.isArray(n)?n:[n];return Ju._`${(0,r.checkDataTypes)(t,e,o.opts.strictNumbers,r.DataType.Wrong)}`}return Ju.nil}(),function(){if(i.validateSchema){const r=t.scopeValue("validate$data",{ref:i.validateSchema});return Ju._`!${r}(${e})`}return Ju.nil}())}subschema(t,e){const r=(0,hh.getSubschema)(this.it,t);(0,hh.extendSubschemaData)(r,this.it,t),(0,hh.extendSubschemaMode)(r,t);const n={...this.it,...r,items:void 0,props:void 0};return o(n,e),n}mergeEvaluated(t,e){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==t.props&&(r.props=Yu.mergeEvaluated.props(n,t.props,r.props,e)),!0!==r.items&&void 0!==t.items&&(r.items=Yu.mergeEvaluated.items(n,t.items,r.items,e)))}mergeValidEvaluated(t,e){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(e,(()=>this.mergeEvaluated(t,Ju.Name))),!0}}function g(t,e,r,n){const i=new y(t,r,e);"code"in r?r.code(i,n):i.$data&&r.validate?(0,uh.funcKeywordCode)(i,r):"macro"in r?(0,uh.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,uh.funcKeywordCode)(i,r)}e.KeywordCxt=y;const v=/^\/(?:[^~]|~0|~1)*$/,w=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function b(t,{dataLevel:e,dataNames:r,dataPathArr:n}){let i,o;if(""===t)return th.default.rootData;if("/"===t[0]){if(!v.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t,o=th.default.rootData}else{const s=w.exec(t);if(!s)throw new Error(`Invalid JSON-pointer: ${t}`);const a=+s[1];if(i=s[2],"#"===i){if(a>=e)throw new Error(u("property/index",a));return n[e-a]}if(a>e)throw new Error(u("data",a));if(o=r[e-a],!i)return o}let s=o;const a=i.split("/");for(const t of a)t&&(o=Ju._`${o}${(0,Ju.getProperty)((0,Yu.unescapeJsonPointer)(t))}`,s=Ju._`${s} && ${o}`);return s;function u(t,r){return`Cannot access ${t} ${r} levels up, current level is ${e}`}}e.getData=b}));class ph extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}var mh=ph,yh=Object.defineProperty({default:mh},"__esModule",{value:!0});class gh extends Error{constructor(t,e,r,n){super(n||`can't resolve reference ${r} from id ${e}`),this.missingRef=(0,fh.resolveUrl)(t,e,r),this.missingSchema=(0,fh.normalizeId)((0,fh.getFullPath)(t,this.missingRef))}}var vh=gh,wh=Object.defineProperty({default:vh},"__esModule",{value:!0}),bh=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.resolveSchema=e.getCompilingSchema=e.resolveRef=e.compileSchema=e.SchemaEnv=void 0;class r{constructor(t){var e;let r;this.refs={},this.dynamicAnchors={},"object"==typeof t.schema&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=null!==(e=t.baseId)&&void 0!==e?e:(0,fh.normalizeId)(null==r?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function n(t){const e=o.call(this,t);if(e)return e;const r=(0,fh.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new Ju.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s});let u;t.$async&&(u=a.scopeValue("Error",{ref:yh.default,code:Ju._`require("ajv/dist/runtime/validation_error").default`}));const h=a.scopeName("validate");t.validateName=h;const l={gen:a,allErrors:this.opts.allErrors,data:th.default.data,parentData:th.default.parentData,parentDataProperty:th.default.parentDataProperty,dataNames:[th.default.data],dataPathArr:[Ju.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",!0===this.opts.code.source?{ref:t.schema,code:(0,Ju.stringify)(t.schema)}:{ref:t.schema}),validateName:h,ValidationError:u,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:Ju.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:Ju._`""`,opts:this.opts,self:this};let c;try{this._compilations.add(t),(0,dh.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);const e=a.toString();c=`${a.scopeRefs(th.default.scope)}return ${e}`,this.opts.code.process&&(c=this.opts.code.process(c,t));const r=new Function(`${th.default.self}`,`${th.default.scope}`,c)(this,this.scope.get());if(this.scope.value(h,{ref:r}),r.errors=null,r.schema=t.schema,r.schemaEnv=t,t.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:h,validateCode:e,scopeValues:a._values}),this.opts.unevaluated){const{props:t,items:e}=l;r.evaluated={props:t instanceof Ju.Name?void 0:t,items:e instanceof Ju.Name?void 0:e,dynamicProps:t instanceof Ju.Name,dynamicItems:e instanceof Ju.Name},r.source&&(r.source.evaluated=(0,Ju.stringify)(r.evaluated))}return t.validate=r,t}catch(e){throw delete t.validate,delete t.validateName,c&&this.logger.error("Error compiling schema, function code:",c),e}finally{this._compilations.delete(t)}}function i(t){return(0,fh.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:n.call(this,t)}function o(t){for(const n of this._compilations)if(r=t,(e=n).schema===r.schema&&e.root===r.root&&e.baseId===r.baseId)return n;var e,r}function s(t,e){let r;for(;"string"==typeof(r=this.refs[e]);)e=r;return r||this.schemas[e]||a.call(this,t,e)}function a(t,e){const i=this.opts.uriResolver.parse(e),o=(0,fh._getFullPath)(this.opts.uriResolver,i);let s=(0,fh.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&o===s)return h.call(this,i,t);const u=(0,fh.normalizeId)(o),l=this.refs[u]||this.schemas[u];if("string"==typeof l){const e=a.call(this,t,l);if("object"!=typeof(null==e?void 0:e.schema))return;return h.call(this,i,e)}if("object"==typeof(null==l?void 0:l.schema)){if(l.validate||n.call(this,l),u===(0,fh.normalizeId)(e)){const{schema:e}=l,{schemaId:n}=this.opts,i=e[n];return i&&(s=(0,fh.resolveUrl)(this.opts.uriResolver,s,i)),new r({schema:e,schemaId:n,root:t,baseId:s})}return h.call(this,i,l)}}e.SchemaEnv=r,e.compileSchema=n,e.resolveRef=function(t,e,n){var o;n=(0,fh.resolveUrl)(this.opts.uriResolver,e,n);const a=t.refs[n];if(a)return a;let u=s.call(this,t,n);if(void 0===u){const i=null===(o=t.localRefs)||void 0===o?void 0:o[n],{schemaId:s}=this.opts;i&&(u=new r({schema:i,schemaId:s,root:t,baseId:e}))}return void 0!==u?t.refs[n]=i.call(this,u):void 0},e.getCompilingSchema=o,e.resolveSchema=a;const u=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function h(t,{baseId:e,schema:n,root:i}){var o;if("/"!==(null===(o=t.fragment)||void 0===o?void 0:o[0]))return;for(const r of t.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const t=n[(0,Yu.unescapeFragment)(r)];if(void 0===t)return;const i="object"==typeof(n=t)&&n[this.opts.schemaId];!u.has(r)&&i&&(e=(0,fh.resolveUrl)(this.opts.uriResolver,e,i))}let s;if("boolean"!=typeof n&&n.$ref&&!(0,Yu.schemaHasRulesButRef)(n,this.RULES)){const t=(0,fh.resolveUrl)(this.opts.uriResolver,e,n.$ref);s=a.call(this,i,t)}const{schemaId:h}=this.opts;return s=s||new r({schema:n,schemaId:h,root:i,baseId:e}),s.schema!==s.root.schema?s:void 0}})),Ah={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},_h=u((function(t,e){!function(t){function e(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];if(e.length>1){e[0]=e[0].slice(0,-1);for(var n=e.length-1,i=1;i<n;++i)e[i]=e[i].slice(1,-1);return e[n]=e[n].slice(1),e.join("")}return e[0]}function r(t){return"(?:"+t+")"}function n(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).split(" ").pop().split("]").shift().toLowerCase()}function i(t){return t.toUpperCase()}function o(t){return null!=t?t instanceof Array?t:"number"!=typeof t.length||t.split||t.setInterval||t.call?[t]:Array.prototype.slice.call(t):[]}function s(t,e){var r=t;if(e)for(var n in e)r[n]=e[n];return r}function a(t){var n="[A-Za-z]",i="[0-9]",o=e(i,"[A-Fa-f]"),s=r(r("%[EFef]"+o+"%"+o+o+"%"+o+o)+"|"+r("%[89A-Fa-f]"+o+"%"+o+o)+"|"+r("%"+o+o)),a="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",u=e("[\\:\\/\\?\\#\\[\\]\\@]",a),h=t?"[\\uE000-\\uF8FF]":"[]",l=e(n,i,"[\\-\\.\\_\\~]",t?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),c=(r(n+e(n,i,"[\\+\\-\\.]")+"*"),r(r(s+"|"+e(l,a,"[\\:]"))+"*"),r(r("25[0-5]")+"|"+r("2[0-4]"+i)+"|"+r("1"+i+i)+"|"+r("0?[1-9]"+i)+"|0?0?"+i)),f=r(c+"\\."+c+"\\."+c+"\\."+c),d=r(o+"{1,4}"),p=r(r(d+"\\:"+d)+"|"+f),m=r(r(d+"\\:")+"{6}"+p),y=r("\\:\\:"+r(d+"\\:")+"{5}"+p),g=r(r(d)+"?\\:\\:"+r(d+"\\:")+"{4}"+p),v=r(r(r(d+"\\:")+"{0,1}"+d)+"?\\:\\:"+r(d+"\\:")+"{3}"+p),w=r(r(r(d+"\\:")+"{0,2}"+d)+"?\\:\\:"+r(d+"\\:")+"{2}"+p),b=r(r(r(d+"\\:")+"{0,3}"+d)+"?\\:\\:"+d+"\\:"+p),A=r(r(r(d+"\\:")+"{0,4}"+d)+"?\\:\\:"+p),_=r(r(r(d+"\\:")+"{0,5}"+d)+"?\\:\\:"+d),E=r(r(r(d+"\\:")+"{0,6}"+d)+"?\\:\\:"),M=r([m,y,g,v,w,b,A,_,E].join("|")),k=r(r(l+"|"+s)+"+"),x=(r("[vV]"+o+"+\\."+e(l,a,"[\\:]")+"+"),r(r(s+"|"+e(l,a))+"*"),r(s+"|"+e(l,a,"[\\:\\@]")));return r(r(s+"|"+e(l,a,"[\\@]"))+"+"),r(r(x+"|"+e("[\\/\\?]",h))+"*"),{NOT_SCHEME:new RegExp(e("[^]",n,i,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",l,a),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",l,a),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",l,a),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",l,a),"g"),NOT_QUERY:new RegExp(e("[^\\%]",l,a,"[\\:\\@\\/\\?]",h),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",l,a,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",l,a),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",l,u),"g"),PCT_ENCODED:new RegExp(s,"g"),IPV4ADDRESS:new RegExp("^("+f+")$"),IPV6ADDRESS:new RegExp("^\\[?("+M+")"+r(r("\\%25|\\%(?!"+o+"{2})")+"("+k+")")+"?\\]?$")}}var u=a(!1),h=a(!0),l=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)},f=2147483647,d=36,p=1,m=26,y=38,g=700,v=72,w=128,b="-",A=/^xn--/,_=/[^\0-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,M={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=d-p,x=Math.floor,N=String.fromCharCode;function S(t){throw new RangeError(M[t])}function U(t,e){for(var r=[],n=t.length;n--;)r[n]=e(t[n]);return r}function P(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+U((t=t.replace(E,".")).split("."),e).join(".")}function T(t){for(var e=[],r=0,n=t.length;r<n;){var i=t.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=t.charCodeAt(r++);56320==(64512&o)?e.push(((1023&i)<<10)+(1023&o)+65536):(e.push(i),r--)}else e.push(i)}return e}var R=function(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:d},C=function(t,e){return t+22+75*(t<26)-((0!=e)<<5)},I=function(t,e,r){var n=0;for(t=r?x(t/g):t>>1,t+=x(t/e);t>k*m>>1;n+=d)t=x(t/k);return x(n+(k+1)*t/(t+y))},$=function(t){var e=[],r=t.length,n=0,i=w,o=v,s=t.lastIndexOf(b);s<0&&(s=0);for(var a=0;a<s;++a)t.charCodeAt(a)>=128&&S("not-basic"),e.push(t.charCodeAt(a));for(var u=s>0?s+1:0;u<r;){for(var h=n,l=1,c=d;;c+=d){u>=r&&S("invalid-input");var y=R(t.charCodeAt(u++));(y>=d||y>x((f-n)/l))&&S("overflow"),n+=y*l;var g=c<=o?p:c>=o+m?m:c-o;if(y<g)break;var A=d-g;l>x(f/A)&&S("overflow"),l*=A}var _=e.length+1;o=I(n-h,_,0==h),x(n/_)>f-i&&S("overflow"),i+=x(n/_),n%=_,e.splice(n++,0,i)}return String.fromCodePoint.apply(String,e)},O=function(t){var e=[],r=(t=T(t)).length,n=w,i=0,o=v,s=!0,a=!1,u=void 0;try{for(var h,l=t[Symbol.iterator]();!(s=(h=l.next()).done);s=!0){var c=h.value;c<128&&e.push(N(c))}}catch(t){a=!0,u=t}finally{try{!s&&l.return&&l.return()}finally{if(a)throw u}}var y=e.length,g=y;for(y&&e.push(b);g<r;){var A=f,_=!0,E=!1,M=void 0;try{for(var k,U=t[Symbol.iterator]();!(_=(k=U.next()).done);_=!0){var P=k.value;P>=n&&P<A&&(A=P)}}catch(t){E=!0,M=t}finally{try{!_&&U.return&&U.return()}finally{if(E)throw M}}var R=g+1;A-n>x((f-i)/R)&&S("overflow"),i+=(A-n)*R,n=A;var $=!0,O=!1,F=void 0;try{for(var B,j=t[Symbol.iterator]();!($=(B=j.next()).done);$=!0){var D=B.value;if(D<n&&++i>f&&S("overflow"),D==n){for(var L=i,z=d;;z+=d){var q=z<=o?p:z>=o+m?m:z-o;if(L<q)break;var V=L-q,G=d-q;e.push(N(C(q+V%G,0))),L=x(V/G)}e.push(N(C(L,0))),o=I(i,R,g==y),i=0,++g}}}catch(t){O=!0,F=t}finally{try{!$&&j.return&&j.return()}finally{if(O)throw F}}++i,++n}return e.join("")},F=function(t){return P(t,(function(t){return A.test(t)?$(t.slice(4).toLowerCase()):t}))},B=function(t){return P(t,(function(t){return _.test(t)?"xn--"+O(t):t}))},j={version:"2.1.0",ucs2:{decode:T,encode:function(t){return String.fromCodePoint.apply(String,c(t))}},decode:$,encode:O,toASCII:B,toUnicode:F},D={};function L(t){var e=t.charCodeAt(0);return e<16?"%0"+e.toString(16).toUpperCase():e<128?"%"+e.toString(16).toUpperCase():e<2048?"%"+(e>>6|192).toString(16).toUpperCase()+"%"+(63&e|128).toString(16).toUpperCase():"%"+(e>>12|224).toString(16).toUpperCase()+"%"+(e>>6&63|128).toString(16).toUpperCase()+"%"+(63&e|128).toString(16).toUpperCase()}function z(t){for(var e="",r=0,n=t.length;r<n;){var i=parseInt(t.substr(r+1,2),16);if(i<128)e+=String.fromCharCode(i),r+=3;else if(i>=194&&i<224){if(n-r>=6){var o=parseInt(t.substr(r+4,2),16);e+=String.fromCharCode((31&i)<<6|63&o)}else e+=t.substr(r,6);r+=6}else if(i>=224){if(n-r>=9){var s=parseInt(t.substr(r+4,2),16),a=parseInt(t.substr(r+7,2),16);e+=String.fromCharCode((15&i)<<12|(63&s)<<6|63&a)}else e+=t.substr(r,9);r+=9}else e+=t.substr(r,3),r+=3}return e}function q(t,e){function r(t){var r=z(t);return r.match(e.UNRESERVED)?r:t}return t.scheme&&(t.scheme=String(t.scheme).replace(e.PCT_ENCODED,r).toLowerCase().replace(e.NOT_SCHEME,"")),void 0!==t.userinfo&&(t.userinfo=String(t.userinfo).replace(e.PCT_ENCODED,r).replace(e.NOT_USERINFO,L).replace(e.PCT_ENCODED,i)),void 0!==t.host&&(t.host=String(t.host).replace(e.PCT_ENCODED,r).toLowerCase().replace(e.NOT_HOST,L).replace(e.PCT_ENCODED,i)),void 0!==t.path&&(t.path=String(t.path).replace(e.PCT_ENCODED,r).replace(t.scheme?e.NOT_PATH:e.NOT_PATH_NOSCHEME,L).replace(e.PCT_ENCODED,i)),void 0!==t.query&&(t.query=String(t.query).replace(e.PCT_ENCODED,r).replace(e.NOT_QUERY,L).replace(e.PCT_ENCODED,i)),void 0!==t.fragment&&(t.fragment=String(t.fragment).replace(e.PCT_ENCODED,r).replace(e.NOT_FRAGMENT,L).replace(e.PCT_ENCODED,i)),t}function V(t){return t.replace(/^0*(.*)/,"$1")||"0"}function G(t,e){var r=t.match(e.IPV4ADDRESS)||[],n=l(r,2)[1];return n?n.split(".").map(V).join("."):t}function H(t,e){var r=t.match(e.IPV6ADDRESS)||[],n=l(r,3),i=n[1],o=n[2];if(i){for(var s=i.toLowerCase().split("::").reverse(),a=l(s,2),u=a[0],h=a[1],c=h?h.split(":").map(V):[],f=u.split(":").map(V),d=e.IPV4ADDRESS.test(f[f.length-1]),p=d?7:8,m=f.length-p,y=Array(p),g=0;g<p;++g)y[g]=c[g]||f[m+g]||"";d&&(y[p-1]=G(y[p-1],e));var v=y.reduce((function(t,e,r){if(!e||"0"===e){var n=t[t.length-1];n&&n.index+n.length===r?n.length++:t.push({index:r,length:1})}return t}),[]),w=v.sort((function(t,e){return e.length-t.length}))[0],b=void 0;if(w&&w.length>1){var A=y.slice(0,w.index),_=y.slice(w.index+w.length);b=A.join(":")+"::"+_.join(":")}else b=y.join(":");return o&&(b+="%"+o),b}return t}var Q=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,K=void 0==="".match(/(){0}/)[1];function Z(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==e.iri?h:u;"suffix"===e.reference&&(t=(e.scheme?e.scheme+":":"")+"//"+t);var i=t.match(Q);if(i){K?(r.scheme=i[1],r.userinfo=i[3],r.host=i[4],r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=i[7],r.fragment=i[8],isNaN(r.port)&&(r.port=i[5])):(r.scheme=i[1]||void 0,r.userinfo=-1!==t.indexOf("@")?i[3]:void 0,r.host=-1!==t.indexOf("//")?i[4]:void 0,r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=-1!==t.indexOf("?")?i[7]:void 0,r.fragment=-1!==t.indexOf("#")?i[8]:void 0,isNaN(r.port)&&(r.port=t.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),r.host&&(r.host=H(G(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",e.reference&&"suffix"!==e.reference&&e.reference!==r.reference&&(r.error=r.error||"URI is not a "+e.reference+" reference.");var o=D[(e.scheme||r.scheme||"").toLowerCase()];if(e.unicodeSupport||o&&o.unicodeSupport)q(r,n);else{if(r.host&&(e.domainHost||o&&o.domainHost))try{r.host=j.toASCII(r.host.replace(n.PCT_ENCODED,z).toLowerCase())}catch(t){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+t}q(r,u)}o&&o.parse&&o.parse(r,e)}else r.error=r.error||"URI can not be parsed.";return r}function W(t,e){var r=!1!==e.iri?h:u,n=[];return void 0!==t.userinfo&&(n.push(t.userinfo),n.push("@")),void 0!==t.host&&n.push(H(G(String(t.host),r),r).replace(r.IPV6ADDRESS,(function(t,e,r){return"["+e+(r?"%25"+r:"")+"]"}))),"number"!=typeof t.port&&"string"!=typeof t.port||(n.push(":"),n.push(String(t.port))),n.length?n.join(""):void 0}var J=/^\.\.?\//,Y=/^\/\.(\/|$)/,X=/^\/\.\.(\/|$)/,tt=/^\/?(?:.|\n)*?(?=\/|$)/;function et(t){for(var e=[];t.length;)if(t.match(J))t=t.replace(J,"");else if(t.match(Y))t=t.replace(Y,"/");else if(t.match(X))t=t.replace(X,"/"),e.pop();else if("."===t||".."===t)t="";else{var r=t.match(tt);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];t=t.slice(n.length),e.push(n)}return e.join("")}function rt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.iri?h:u,n=[],i=D[(e.scheme||t.scheme||"").toLowerCase()];if(i&&i.serialize&&i.serialize(t,e),t.host)if(r.IPV6ADDRESS.test(t.host));else if(e.domainHost||i&&i.domainHost)try{t.host=e.iri?j.toUnicode(t.host):j.toASCII(t.host.replace(r.PCT_ENCODED,z).toLowerCase())}catch(r){t.error=t.error||"Host's domain name can not be converted to "+(e.iri?"Unicode":"ASCII")+" via punycode: "+r}q(t,r),"suffix"!==e.reference&&t.scheme&&(n.push(t.scheme),n.push(":"));var o=W(t,e);if(void 0!==o&&("suffix"!==e.reference&&n.push("//"),n.push(o),t.path&&"/"!==t.path.charAt(0)&&n.push("/")),void 0!==t.path){var s=t.path;e.absolutePath||i&&i.absolutePath||(s=et(s)),void 0===o&&(s=s.replace(/^\/\//,"/%2F")),n.push(s)}return void 0!==t.query&&(n.push("?"),n.push(t.query)),void 0!==t.fragment&&(n.push("#"),n.push(t.fragment)),n.join("")}function nt(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(t=Z(rt(t,r),r),e=Z(rt(e,r),r)),!(r=r||{}).tolerant&&e.scheme?(n.scheme=e.scheme,n.userinfo=e.userinfo,n.host=e.host,n.port=e.port,n.path=et(e.path||""),n.query=e.query):(void 0!==e.userinfo||void 0!==e.host||void 0!==e.port?(n.userinfo=e.userinfo,n.host=e.host,n.port=e.port,n.path=et(e.path||""),n.query=e.query):(e.path?("/"===e.path.charAt(0)?n.path=et(e.path):(void 0===t.userinfo&&void 0===t.host&&void 0===t.port||t.path?t.path?n.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:n.path=e.path:n.path="/"+e.path,n.path=et(n.path)),n.query=e.query):(n.path=t.path,void 0!==e.query?n.query=e.query:n.query=t.query),n.userinfo=t.userinfo,n.host=t.host,n.port=t.port),n.scheme=t.scheme),n.fragment=e.fragment,n}function it(t,e,r){var n=s({scheme:"null"},r);return rt(nt(Z(t,n),Z(e,n),n,!0),n)}function ot(t,e){return"string"==typeof t?t=rt(Z(t,e),e):"object"===n(t)&&(t=Z(rt(t,e),e)),t}function st(t,e,r){return"string"==typeof t?t=rt(Z(t,r),r):"object"===n(t)&&(t=rt(t,r)),"string"==typeof e?e=rt(Z(e,r),r):"object"===n(e)&&(e=rt(e,r)),t===e}function at(t,e){return t&&t.toString().replace(e&&e.iri?h.ESCAPE:u.ESCAPE,L)}function ut(t,e){return t&&t.toString().replace(e&&e.iri?h.PCT_ENCODED:u.PCT_ENCODED,z)}var ht={scheme:"http",domainHost:!0,parse:function(t,e){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t},serialize:function(t,e){var r="https"===String(t.scheme).toLowerCase();return t.port!==(r?443:80)&&""!==t.port||(t.port=void 0),t.path||(t.path="/"),t}},lt={scheme:"https",domainHost:ht.domainHost,parse:ht.parse,serialize:ht.serialize};function ct(t){return"boolean"==typeof t.secure?t.secure:"wss"===String(t.scheme).toLowerCase()}var ft={scheme:"ws",domainHost:!0,parse:function(t,e){var r=t;return r.secure=ct(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(t,e){if(t.port!==(ct(t)?443:80)&&""!==t.port||(t.port=void 0),"boolean"==typeof t.secure&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){var r=t.resourceName.split("?"),n=l(r,2),i=n[0],o=n[1];t.path=i&&"/"!==i?i:void 0,t.query=o,t.resourceName=void 0}return t.fragment=void 0,t}},dt={scheme:"wss",domainHost:ft.domainHost,parse:ft.parse,serialize:ft.serialize},pt={},mt="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",yt="[0-9A-Fa-f]",gt=r(r("%[EFef]"+yt+"%"+yt+yt+"%"+yt+yt)+"|"+r("%[89A-Fa-f]"+yt+"%"+yt+yt)+"|"+r("%"+yt+yt)),vt="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",wt=e("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),bt="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",At=new RegExp(mt,"g"),_t=new RegExp(gt,"g"),Et=new RegExp(e("[^]",vt,"[\\.]",'[\\"]',wt),"g"),Mt=new RegExp(e("[^]",mt,bt),"g"),kt=Mt;function xt(t){var e=z(t);return e.match(At)?e:t}var Nt={scheme:"mailto",parse:function(t,e){var r=t,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var i=!1,o={},s=r.query.split("&"),a=0,u=s.length;a<u;++a){var h=s[a].split("=");switch(h[0]){case"to":for(var l=h[1].split(","),c=0,f=l.length;c<f;++c)n.push(l[c]);break;case"subject":r.subject=ut(h[1],e);break;case"body":r.body=ut(h[1],e);break;default:i=!0,o[ut(h[0],e)]=ut(h[1],e)}}i&&(r.headers=o)}r.query=void 0;for(var d=0,p=n.length;d<p;++d){var m=n[d].split("@");if(m[0]=ut(m[0]),e.unicodeSupport)m[1]=ut(m[1],e).toLowerCase();else try{m[1]=j.toASCII(ut(m[1],e).toLowerCase())}catch(t){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+t}n[d]=m.join("@")}return r},serialize:function(t,e){var r=t,n=o(t.to);if(n){for(var s=0,a=n.length;s<a;++s){var u=String(n[s]),h=u.lastIndexOf("@"),l=u.slice(0,h).replace(_t,xt).replace(_t,i).replace(Et,L),c=u.slice(h+1);try{c=e.iri?j.toUnicode(c):j.toASCII(ut(c,e).toLowerCase())}catch(t){r.error=r.error||"Email address's domain name can not be converted to "+(e.iri?"Unicode":"ASCII")+" via punycode: "+t}n[s]=l+"@"+c}r.path=n.join(",")}var f=t.headers=t.headers||{};t.subject&&(f.subject=t.subject),t.body&&(f.body=t.body);var d=[];for(var p in f)f[p]!==pt[p]&&d.push(p.replace(_t,xt).replace(_t,i).replace(Mt,L)+"="+f[p].replace(_t,xt).replace(_t,i).replace(kt,L));return d.length&&(r.query=d.join("&")),r}},St=/^([^\:]+)\:(.*)/,Ut={scheme:"urn",parse:function(t,e){var r=t.path&&t.path.match(St),n=t;if(r){var i=e.scheme||n.scheme||"urn",o=r[1].toLowerCase(),s=r[2],a=i+":"+(e.nid||o),u=D[a];n.nid=o,n.nss=s,n.path=void 0,u&&(n=u.parse(n,e))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(t,e){var r=e.scheme||t.scheme||"urn",n=t.nid,i=r+":"+(e.nid||n),o=D[i];o&&(t=o.serialize(t,e));var s=t,a=t.nss;return s.path=(n||e.nid)+":"+a,s}},Pt=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Tt={scheme:"urn:uuid",parse:function(t,e){var r=t;return r.uuid=r.nss,r.nss=void 0,e.tolerant||r.uuid&&r.uuid.match(Pt)||(r.error=r.error||"UUID is not valid."),r},serialize:function(t,e){var r=t;return r.nss=(t.uuid||"").toLowerCase(),r}};D[ht.scheme]=ht,D[lt.scheme]=lt,D[ft.scheme]=ft,D[dt.scheme]=dt,D[Nt.scheme]=Nt,D[Ut.scheme]=Ut,D[Tt.scheme]=Tt,t.SCHEMES=D,t.pctEncChar=L,t.pctDecChars=z,t.parse=Z,t.removeDotSegments=et,t.serialize=rt,t.resolveComponents=nt,t.resolve=it,t.normalize=ot,t.equal=st,t.escapeComponent=at,t.unescapeComponent=ut,Object.defineProperty(t,"__esModule",{value:!0})}(e)}));_h.code='require("ajv/dist/runtime/uri").default';var Eh=_h,Mh=Object.defineProperty({default:Eh},"__esModule",{value:!0}),kh=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0,Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return dh.KeywordCxt}}),Object.defineProperty(e,"_",{enumerable:!0,get:function(){return Ju._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return Ju.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return Ju.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return Ju.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return Ju.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return Ju.CodeGen}});const r=Ju,n=(t,e)=>new RegExp(t,e);n.code="new RegExp";const i=["removeAdditional","useDefaults","coerceTypes"],o=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),s={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},a={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function u(t){var e,r,i,o,s,a,u,h,l,c,f,d,p,m,y,g,v,w,b,A,_,E,M,k,x;const N=t.strict,S=null===(e=t.code)||void 0===e?void 0:e.optimize,U=!0===S||void 0===S?1:S||0,P=null!==(i=null===(r=t.code)||void 0===r?void 0:r.regExp)&&void 0!==i?i:n,T=null!==(o=t.uriResolver)&&void 0!==o?o:Mh.default;return{strictSchema:null===(a=null!==(s=t.strictSchema)&&void 0!==s?s:N)||void 0===a||a,strictNumbers:null===(h=null!==(u=t.strictNumbers)&&void 0!==u?u:N)||void 0===h||h,strictTypes:null!==(c=null!==(l=t.strictTypes)&&void 0!==l?l:N)&&void 0!==c?c:"log",strictTuples:null!==(d=null!==(f=t.strictTuples)&&void 0!==f?f:N)&&void 0!==d?d:"log",strictRequired:null!==(m=null!==(p=t.strictRequired)&&void 0!==p?p:N)&&void 0!==m&&m,code:t.code?{...t.code,optimize:U,regExp:P}:{optimize:U,regExp:P},loopRequired:null!==(y=t.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(g=t.loopEnum)&&void 0!==g?g:200,meta:null===(v=t.meta)||void 0===v||v,messages:null===(w=t.messages)||void 0===w||w,inlineRefs:null===(b=t.inlineRefs)||void 0===b||b,schemaId:null!==(A=t.schemaId)&&void 0!==A?A:"$id",addUsedSchema:null===(_=t.addUsedSchema)||void 0===_||_,validateSchema:null===(E=t.validateSchema)||void 0===E||E,validateFormats:null===(M=t.validateFormats)||void 0===M||M,unicodeRegExp:null===(k=t.unicodeRegExp)||void 0===k||k,int32range:null===(x=t.int32range)||void 0===x||x,uriResolver:T}}class h{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...u(t)};const{es5:e,lines:n}=this.opts.code;this.scope=new r.ValueScope({scope:{},prefixes:o,es5:e,lines:n}),this.logger=function(t){if(!1===t)return y;if(void 0===t)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}(t.logger);const i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,nh.getRules)(),l.call(this,s,t,"NOT SUPPORTED"),l.call(this,a,t,"DEPRECATED","warn"),this._metaOpts=m.call(this),t.formats&&d.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&p.call(this,t.keywords),"object"==typeof t.meta&&this.addMetaSchema(t.meta),f.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:t,meta:e,schemaId:r}=this.opts;let n=Ah;"id"===r&&(n={...Ah},n.id=n.$id,delete n.$id),e&&t&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:t,schemaId:e}=this.opts;return this.opts.defaultMeta="object"==typeof t?t[e]||t:void 0}validate(t,e){let r;if("string"==typeof t){if(r=this.getSchema(t),!r)throw new Error(`no schema with key or ref "${t}"`)}else r=this.compile(t);const n=r(e);return"$async"in r||(this.errors=r.errors),n}compile(t,e){const r=this._addSchema(t,e);return r.validate||this._compileSchemaEnv(r)}compileAsync(t,e){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,t,e);async function n(t,e){await i.call(this,t.$schema);const r=this._addSchema(t,e);return r.validate||o.call(this,r)}async function i(t){t&&!this.getSchema(t)&&await n.call(this,{$ref:t},!0)}async function o(t){try{return this._compileSchemaEnv(t)}catch(e){if(!(e instanceof wh.default))throw e;return s.call(this,e),await a.call(this,e.missingSchema),o.call(this,t)}}function s({missingSchema:t,missingRef:e}){if(this.refs[t])throw new Error(`AnySchema ${t} is loaded but ${e} cannot be resolved`)}async function a(t){const r=await u.call(this,t);this.refs[t]||await i.call(this,r.$schema),this.refs[t]||this.addSchema(r,t,e)}async function u(t){const e=this._loading[t];if(e)return e;try{return await(this._loading[t]=r(t))}finally{delete this._loading[t]}}}addSchema(t,e,r,n=this.opts.validateSchema){if(Array.isArray(t)){for(const e of t)this.addSchema(e,void 0,r,n);return this}let i;if("object"==typeof t){const{schemaId:e}=this.opts;if(i=t[e],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${e} must be string`)}return e=(0,fh.normalizeId)(e||i),this._checkUnique(e),this.schemas[e]=this._addSchema(t,r,e,n,!0),this}addMetaSchema(t,e,r=this.opts.validateSchema){return this.addSchema(t,e,!0,r),this}validateSchema(t,e){if("boolean"==typeof t)return!0;let r;if(r=t.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,t);if(!n&&e){const t="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(t);this.logger.error(t)}return n}getSchema(t){let e;for(;"string"==typeof(e=c.call(this,t));)t=e;if(void 0===e){const{schemaId:r}=this.opts,n=new bh.SchemaEnv({schema:{},schemaId:r});if(e=bh.resolveSchema.call(this,n,t),!e)return;this.refs[t]=e}return e.validate||this._compileSchemaEnv(e)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const e=c.call(this,t);return"object"==typeof e&&this._cache.delete(e.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{const e=t;this._cache.delete(e);let r=t[this.opts.schemaId];return r&&(r=(0,fh.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(const e of t)this.addKeyword(e);return this}addKeyword(t,e){let r;if("string"==typeof t)r=t,"object"==typeof e&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),e.keyword=r);else{if("object"!=typeof t||void 0!==e)throw new Error("invalid addKeywords parameters");if(r=(e=t).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(v.call(this,r,e),!e)return(0,Yu.eachItem)(r,(t=>w.call(this,t))),this;A.call(this,e);const n={...e,type:(0,oh.getJSONTypes)(e.type),schemaType:(0,oh.getJSONTypes)(e.schemaType)};return(0,Yu.eachItem)(r,0===n.type.length?t=>w.call(this,t,n):t=>n.type.forEach((e=>w.call(this,t,n,e)))),this}getKeyword(t){const e=this.RULES.all[t];return"object"==typeof e?e.definition:!!e}removeKeyword(t){const{RULES:e}=this;delete e.keywords[t],delete e.all[t];for(const r of e.rules){const e=r.rules.findIndex((e=>e.keyword===t));e>=0&&r.rules.splice(e,1)}return this}addFormat(t,e){return"string"==typeof e&&(e=new RegExp(e)),this.formats[t]=e,this}errorsText(t=this.errors,{separator:e=", ",dataVar:r="data"}={}){return t&&0!==t.length?t.map((t=>`${r}${t.instancePath} ${t.message}`)).reduce(((t,r)=>t+e+r)):"No errors"}$dataMetaSchema(t,e){const r=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(const n of e){const e=n.split("/").slice(1);let i=t;for(const t of e)i=i[t];for(const t in r){const e=r[t];if("object"!=typeof e)continue;const{$data:n}=e.definition,o=i[t];n&&o&&(i[t]=E(o))}}return t}_removeAllSchemas(t,e){for(const r in t){const n=t[r];e&&!e.test(r)||("string"==typeof n?delete t[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete t[r]))}}_addSchema(t,e,r,n=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;const{schemaId:s}=this.opts;if("object"==typeof t)o=t[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof t)throw new Error("schema must be object or boolean")}let a=this._cache.get(t);if(void 0!==a)return a;r=(0,fh.normalizeId)(o||r);const u=fh.getSchemaRefs.call(this,t,r);return a=new bh.SchemaEnv({schema:t,schemaId:s,meta:e,baseId:r,localRefs:u}),this._cache.set(a.schema,a),i&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=a),n&&this.validateSchema(t,!0),a}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):bh.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){const e=this.opts;this.opts=this._metaOpts;try{bh.compileSchema.call(this,t)}finally{this.opts=e}}}function l(t,e,r,n="error"){for(const i in t){const o=i;o in e&&this.logger[n](`${r}: option ${i}. ${t[o]}`)}}function c(t){return t=(0,fh.normalizeId)(t),this.schemas[t]||this.refs[t]}function f(){const t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(const e in t)this.addSchema(t[e],e)}function d(){for(const t in this.opts.formats){const e=this.opts.formats[t];e&&this.addFormat(t,e)}}function p(t){if(Array.isArray(t))this.addVocabulary(t);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const e in t){const r=t[e];r.keyword||(r.keyword=e),this.addKeyword(r)}}}function m(){const t={...this.opts};for(const e of i)delete t[e];return t}e.default=h,h.ValidationError=yh.default,h.MissingRefError=wh.default;const y={log(){},warn(){},error(){}};const g=/^[a-z_$][a-z0-9_$:-]*$/i;function v(t,e){const{RULES:r}=this;if((0,Yu.eachItem)(t,(t=>{if(r.keywords[t])throw new Error(`Keyword ${t} is already defined`);if(!g.test(t))throw new Error(`Keyword ${t} has invalid name`)})),e&&e.$data&&!("code"in e)&&!("validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function w(t,e,r){var n;const i=null==e?void 0:e.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let s=i?o.post:o.rules.find((({type:t})=>t===r));if(s||(s={type:r,rules:[]},o.rules.push(s)),o.keywords[t]=!0,!e)return;const a={keyword:t,definition:{...e,type:(0,oh.getJSONTypes)(e.type),schemaType:(0,oh.getJSONTypes)(e.schemaType)}};e.before?b.call(this,s,a,e.before):s.rules.push(a),o.all[t]=a,null===(n=e.implements)||void 0===n||n.forEach((t=>this.addKeyword(t)))}function b(t,e,r){const n=t.rules.findIndex((t=>t.keyword===r));n>=0?t.rules.splice(n,0,e):(t.rules.push(e),this.logger.warn(`rule ${r} is not defined`))}function A(t){let{metaSchema:e}=t;void 0!==e&&(t.$data&&this.opts.$data&&(e=E(e)),t.validateSchema=this.compile(e,!0))}const _={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function E(t){return{anyOf:[t,_]}}}));var xh={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}},Nh=Object.defineProperty({default:xh},"__esModule",{value:!0}),Sh=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.callRef=e.getValidate=void 0;const r={keyword:"$ref",schemaType:"string",code(t){const{gen:e,schema:r,it:o}=t,{baseId:s,schemaEnv:a,validateName:u,opts:h,self:l}=o,{root:c}=a;if(("#"===r||"#/"===r)&&s===c.baseId)return function(){if(a===c)return i(t,u,a,a.$async);const r=e.scopeValue("root",{ref:c});return i(t,Ju._`${r}.validate`,c,c.$async)}();const f=bh.resolveRef.call(l,c,s,r);if(void 0===f)throw new wh.default(o.opts.uriResolver,s,r);return f instanceof bh.SchemaEnv?function(e){const r=n(t,e);i(t,r,e,e.$async)}(f):function(n){const i=e.scopeValue("schema",!0===h.code.source?{ref:n,code:(0,Ju.stringify)(n)}:{ref:n}),o=e.name("valid"),s=t.subschema({schema:n,dataTypes:[],schemaPath:Ju.nil,topSchemaRef:i,errSchemaPath:r},o);t.mergeEvaluated(s),t.ok(o)}(f)}};function n(t,e){const{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):Ju._`${r.scopeValue("wrapper",{ref:e})}.validate`}function i(t,e,r,n){const{gen:i,it:o}=t,{allErrors:s,schemaEnv:a,opts:u}=o,h=u.passContext?th.default.this:Ju.nil;function l(t){const e=Ju._`${t}.errors`;i.assign(th.default.vErrors,Ju._`${th.default.vErrors} === null ? ${e} : ${th.default.vErrors}.concat(${e})`),i.assign(th.default.errors,Ju._`${th.default.vErrors}.length`)}function c(t){var e;if(!o.opts.unevaluated)return;const n=null===(e=null==r?void 0:r.validate)||void 0===e?void 0:e.evaluated;if(!0!==o.props)if(n&&!n.dynamicProps)void 0!==n.props&&(o.props=Yu.mergeEvaluated.props(i,n.props,o.props));else{const e=i.var("props",Ju._`${t}.evaluated.props`);o.props=Yu.mergeEvaluated.props(i,e,o.props,Ju.Name)}if(!0!==o.items)if(n&&!n.dynamicItems)void 0!==n.items&&(o.items=Yu.mergeEvaluated.items(i,n.items,o.items));else{const e=i.var("items",Ju._`${t}.evaluated.items`);o.items=Yu.mergeEvaluated.items(i,e,o.items,Ju.Name)}}n?function(){if(!a.$async)throw new Error("async schema referenced by sync schema");const r=i.let("valid");i.try((()=>{i.code(Ju._`await ${(0,ah.callValidateCode)(t,e,h)}`),c(e),s||i.assign(r,!0)}),(t=>{i.if(Ju._`!(${t} instanceof ${o.ValidationError})`,(()=>i.throw(t))),l(t),s||i.assign(r,!1)})),t.ok(r)}():t.result((0,ah.callValidateCode)(t,e,h),(()=>c(e)),(()=>l(e)))}e.getValidate=n,e.callRef=i,e.default=r}));var Uh=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Nh.default,Sh.default],Ph=Object.defineProperty({default:Uh},"__esModule",{value:!0});const Th=Ju.operators,Rh={maximum:{okStr:"<=",ok:Th.LTE,fail:Th.GT},minimum:{okStr:">=",ok:Th.GTE,fail:Th.LT},exclusiveMaximum:{okStr:"<",ok:Th.LT,fail:Th.GTE},exclusiveMinimum:{okStr:">",ok:Th.GT,fail:Th.LTE}},Ch={message:({keyword:t,schemaCode:e})=>Ju.str`must be ${Rh[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>Ju._`{comparison: ${Rh[t].okStr}, limit: ${e}}`},Ih={keyword:Object.keys(Rh),type:"number",schemaType:"number",$data:!0,error:Ch,code(t){const{keyword:e,data:r,schemaCode:n}=t;t.fail$data(Ju._`${r} ${Rh[e].fail} ${n} || isNaN(${r})`)}};var $h=Ih,Oh=Object.defineProperty({default:$h},"__esModule",{value:!0});var Fh={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:t})=>Ju.str`must be multiple of ${t}`,params:({schemaCode:t})=>Ju._`{multipleOf: ${t}}`},code(t){const{gen:e,data:r,schemaCode:n,it:i}=t,o=i.opts.multipleOfPrecision,s=e.let("res"),a=o?Ju._`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:Ju._`${s} !== parseInt(${s})`;t.fail$data(Ju._`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}},Bh=Object.defineProperty({default:Fh},"__esModule",{value:!0});function jh(t){const e=t.length;let r,n=0,i=0;for(;i<e;)n++,r=t.charCodeAt(i++),r>=55296&&r<=56319&&i<e&&(r=t.charCodeAt(i),56320==(64512&r)&&i++);return n}var Dh=jh;jh.code='require("ajv/dist/runtime/ucs2length").default';var Lh=Object.defineProperty({default:Dh},"__esModule",{value:!0});const zh={message({keyword:t,schemaCode:e}){const r="maxLength"===t?"more":"fewer";return Ju.str`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>Ju._`{limit: ${t}}`},qh={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:zh,code(t){const{keyword:e,data:r,schemaCode:n,it:i}=t,o="maxLength"===e?Ju.operators.GT:Ju.operators.LT,s=!1===i.opts.unicode?Ju._`${r}.length`:Ju._`${(0,Yu.useFunc)(t.gen,Lh.default)}(${r})`;t.fail$data(Ju._`${s} ${o} ${n}`)}};var Vh=qh,Gh=Object.defineProperty({default:Vh},"__esModule",{value:!0});var Hh={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:t})=>Ju.str`must match pattern "${t}"`,params:({schemaCode:t})=>Ju._`{pattern: ${t}}`},code(t){const{data:e,$data:r,schema:n,schemaCode:i,it:o}=t,s=o.opts.unicodeRegExp?"u":"",a=r?Ju._`(new RegExp(${i}, ${s}))`:(0,ah.usePattern)(t,n);t.fail$data(Ju._`!${a}.test(${e})`)}},Qh=Object.defineProperty({default:Hh},"__esModule",{value:!0});const Kh={message({keyword:t,schemaCode:e}){const r="maxProperties"===t?"more":"fewer";return Ju.str`must NOT have ${r} than ${e} properties`},params:({schemaCode:t})=>Ju._`{limit: ${t}}`},Zh={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Kh,code(t){const{keyword:e,data:r,schemaCode:n}=t,i="maxProperties"===e?Ju.operators.GT:Ju.operators.LT;t.fail$data(Ju._`Object.keys(${r}).length ${i} ${n}`)}};var Wh=Zh,Jh=Object.defineProperty({default:Wh},"__esModule",{value:!0});var Yh={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:t}})=>Ju.str`must have required property '${t}'`,params:({params:{missingProperty:t}})=>Ju._`{missingProperty: ${t}}`},code(t){const{gen:e,schema:r,schemaCode:n,data:i,$data:o,it:s}=t,{opts:a}=s;if(!o&&0===r.length)return;const u=r.length>=a.loopRequired;if(s.allErrors?function(){if(u||o)t.block$data(Ju.nil,h);else for(const e of r)(0,ah.checkReportMissingProp)(t,e)}():function(){const s=e.let("missing");if(u||o){const r=e.let("valid",!0);t.block$data(r,(()=>function(r,o){t.setParams({missingProperty:r}),e.forOf(r,n,(()=>{e.assign(o,(0,ah.propertyInData)(e,i,r,a.ownProperties)),e.if((0,Ju.not)(o),(()=>{t.error(),e.break()}))}),Ju.nil)}(s,r))),t.ok(r)}else e.if((0,ah.checkMissingProp)(t,r,s)),(0,ah.reportMissingProp)(t,s),e.else()}(),a.strictRequired){const e=t.parentSchema.properties,{definedProperties:n}=t.it;for(const t of r)if(void 0===(null==e?void 0:e[t])&&!n.has(t)){const e=`required property "${t}" is not defined at "${s.schemaEnv.baseId+s.errSchemaPath}" (strictRequired)`;(0,Yu.checkStrictMode)(s,e,s.opts.strictRequired)}}function h(){e.forOf("prop",n,(r=>{t.setParams({missingProperty:r}),e.if((0,ah.noPropertyInData)(e,i,r,a.ownProperties),(()=>t.error()))}))}}},Xh=Object.defineProperty({default:Yh},"__esModule",{value:!0});const tl={message({keyword:t,schemaCode:e}){const r="maxItems"===t?"more":"fewer";return Ju.str`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>Ju._`{limit: ${t}}`},el={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:tl,code(t){const{keyword:e,data:r,schemaCode:n}=t,i="maxItems"===e?Ju.operators.GT:Ju.operators.LT;t.fail$data(Ju._`${r}.length ${i} ${n}`)}};var rl=el,nl=Object.defineProperty({default:rl},"__esModule",{value:!0});lh.code='require("ajv/dist/runtime/equal").default';var il=lh,ol=Object.defineProperty({default:il},"__esModule",{value:!0});var sl={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:t,j:e}})=>Ju.str`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>Ju._`{i: ${t}, j: ${e}}`},code(t){const{gen:e,data:r,$data:n,schema:i,parentSchema:o,schemaCode:s,it:a}=t;if(!n&&!i)return;const u=e.let("valid"),h=o.items?(0,oh.getSchemaTypes)(o.items):[];function l(n,i){const o=e.name("item"),s=(0,oh.checkDataTypes)(h,o,a.opts.strictNumbers,oh.DataType.Wrong),l=e.const("indices",Ju._`{}`);e.for(Ju._`;${n}--;`,(()=>{e.let(o,Ju._`${r}[${n}]`),e.if(s,Ju._`continue`),h.length>1&&e.if(Ju._`typeof ${o} == "string"`,Ju._`${o} += "_"`),e.if(Ju._`typeof ${l}[${o}] == "number"`,(()=>{e.assign(i,Ju._`${l}[${o}]`),t.error(),e.assign(u,!1).break()})).code(Ju._`${l}[${o}] = ${n}`)}))}function c(n,i){const o=(0,Yu.useFunc)(e,ol.default),s=e.name("outer");e.label(s).for(Ju._`;${n}--;`,(()=>e.for(Ju._`${i} = ${n}; ${i}--;`,(()=>e.if(Ju._`${o}(${r}[${n}], ${r}[${i}])`,(()=>{t.error(),e.assign(u,!1).break(s)}))))))}t.block$data(u,(function(){const n=e.let("i",Ju._`${r}.length`),i=e.let("j");t.setParams({i:n,j:i}),e.assign(u,!0),e.if(Ju._`${n} > 1`,(()=>(h.length>0&&!h.some((t=>"object"===t||"array"===t))?l:c)(n,i)))}),Ju._`${s} === false`),t.ok(u)}},al=Object.defineProperty({default:sl},"__esModule",{value:!0});var ul={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:t})=>Ju._`{allowedValue: ${t}}`},code(t){const{gen:e,data:r,$data:n,schemaCode:i,schema:o}=t;n||o&&"object"==typeof o?t.fail$data(Ju._`!${(0,Yu.useFunc)(e,ol.default)}(${r}, ${i})`):t.fail(Ju._`${o} !== ${r}`)}},hl=Object.defineProperty({default:ul},"__esModule",{value:!0});var ll={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:t})=>Ju._`{allowedValues: ${t}}`},code(t){const{gen:e,data:r,$data:n,schema:i,schemaCode:o,it:s}=t;if(!n&&0===i.length)throw new Error("enum must have non-empty array");const a=i.length>=s.opts.loopEnum;let u;const h=()=>null!=u?u:u=(0,Yu.useFunc)(e,ol.default);let l;if(a||n)l=e.let("valid"),t.block$data(l,(function(){e.assign(l,!1),e.forOf("v",o,(t=>e.if(Ju._`${h()}(${r}, ${t})`,(()=>e.assign(l,!0).break()))))}));else{if(!Array.isArray(i))throw new Error("ajv implementation error");const t=e.const("vSchema",o);l=(0,Ju.or)(...i.map(((e,n)=>function(t,e){const n=i[e];return"object"==typeof n&&null!==n?Ju._`${h()}(${r}, ${t}[${e}])`:Ju._`${r} === ${n}`}(t,n))))}t.pass(l)}},cl=Object.defineProperty({default:ll},"__esModule",{value:!0});var fl=[Oh.default,Bh.default,Gh.default,Qh.default,Jh.default,Xh.default,nl.default,al.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},hl.default,cl.default],dl=Object.defineProperty({default:fl},"__esModule",{value:!0}),pl=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateAdditionalItems=void 0;const r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:t}})=>Ju.str`must NOT have more than ${t} items`,params:({params:{len:t}})=>Ju._`{limit: ${t}}`},code(t){const{parentSchema:e,it:r}=t,{items:i}=e;Array.isArray(i)?n(t,i):(0,Yu.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function n(t,e){const{gen:r,schema:n,data:i,keyword:o,it:s}=t;s.items=!0;const a=r.const("len",Ju._`${i}.length`);if(!1===n)t.setParams({len:e.length}),t.pass(Ju._`${a} <= ${e.length}`);else if("object"==typeof n&&!(0,Yu.alwaysValidSchema)(s,n)){const n=r.var("valid",Ju._`${a} <= ${e.length}`);r.if((0,Ju.not)(n),(()=>function(n){r.forRange("i",e.length,a,(e=>{t.subschema({keyword:o,dataProp:e,dataPropType:Yu.Type.Num},n),s.allErrors||r.if((0,Ju.not)(n),(()=>r.break()))}))}(n))),t.ok(n)}}e.validateAdditionalItems=n,e.default=r})),ml=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateTuple=void 0;const r={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){const{schema:e,it:r}=t;if(Array.isArray(e))return n(t,"additionalItems",e);r.items=!0,(0,Yu.alwaysValidSchema)(r,e)||t.ok((0,ah.validateArray)(t))}};function n(t,e,r=t.schema){const{gen:n,parentSchema:i,data:o,keyword:s,it:a}=t;!function(t){const{opts:n,errSchemaPath:i}=a,o=r.length,u=o===t.minItems&&(o===t.maxItems||!1===t[e]);if(n.strictTuples&&!u){const t=`"${s}" is ${o}-tuple, but minItems or maxItems/${e} are not specified or different at path "${i}"`;(0,Yu.checkStrictMode)(a,t,n.strictTuples)}}(i),a.opts.unevaluated&&r.length&&!0!==a.items&&(a.items=Yu.mergeEvaluated.items(n,r.length,a.items));const u=n.name("valid"),h=n.const("len",Ju._`${o}.length`);r.forEach(((e,r)=>{(0,Yu.alwaysValidSchema)(a,e)||(n.if(Ju._`${h} > ${r}`,(()=>t.subschema({keyword:s,schemaProp:r,dataProp:r},u))),t.ok(u))}))}e.validateTuple=n,e.default=r}));var yl={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,ml.validateTuple)(t,"items")},gl=Object.defineProperty({default:yl},"__esModule",{value:!0});const vl={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:t}})=>Ju.str`must NOT have more than ${t} items`,params:({params:{len:t}})=>Ju._`{limit: ${t}}`},code(t){const{schema:e,parentSchema:r,it:n}=t,{prefixItems:i}=r;n.items=!0,(0,Yu.alwaysValidSchema)(n,e)||(i?(0,pl.validateAdditionalItems)(t,i):t.ok((0,ah.validateArray)(t)))}};var wl=vl,bl=Object.defineProperty({default:wl},"__esModule",{value:!0});var Al={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:t,max:e}})=>void 0===e?Ju.str`must contain at least ${t} valid item(s)`:Ju.str`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>void 0===e?Ju._`{minContains: ${t}}`:Ju._`{minContains: ${t}, maxContains: ${e}}`},code(t){const{gen:e,schema:r,parentSchema:n,data:i,it:o}=t;let s,a;const{minContains:u,maxContains:h}=n;o.opts.next?(s=void 0===u?1:u,a=h):s=1;const l=e.const("len",Ju._`${i}.length`);if(t.setParams({min:s,max:a}),void 0===a&&0===s)return void(0,Yu.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==a&&s>a)return(0,Yu.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),void t.fail();if((0,Yu.alwaysValidSchema)(o,r)){let e=Ju._`${l} >= ${s}`;return void 0!==a&&(e=Ju._`${e} && ${l} <= ${a}`),void t.pass(e)}o.items=!0;const c=e.name("valid");function f(){const t=e.name("_valid"),r=e.let("count",0);d(t,(()=>e.if(t,(()=>function(t){e.code(Ju._`${t}++`),void 0===a?e.if(Ju._`${t} >= ${s}`,(()=>e.assign(c,!0).break())):(e.if(Ju._`${t} > ${a}`,(()=>e.assign(c,!1).break())),1===s?e.assign(c,!0):e.if(Ju._`${t} >= ${s}`,(()=>e.assign(c,!0))))}(r)))))}function d(r,n){e.forRange("i",0,l,(e=>{t.subschema({keyword:"contains",dataProp:e,dataPropType:Yu.Type.Num,compositeRule:!0},r),n()}))}void 0===a&&1===s?d(c,(()=>e.if(c,(()=>e.break())))):0===s?(e.let(c,!0),void 0!==a&&e.if(Ju._`${i}.length > 0`,f)):(e.let(c,!1),f()),t.result(c,(()=>t.reset()))}},_l=Object.defineProperty({default:Al},"__esModule",{value:!0}),El=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0,e.error={message:({params:{property:t,depsCount:e,deps:r}})=>{const n=1===e?"property":"properties";return Ju.str`must have ${n} ${r} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:r,missingProperty:n}})=>Ju._`{property: ${t},
|
|
30
30
|
missingProperty: ${n},
|
|
31
31
|
depsCount: ${e},
|
|
32
|
-
deps: ${r}}`};const r={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(t){const[e,r]=function({schema:t}){const e={},r={};for(const n in t){if("__proto__"===n)continue;(Array.isArray(t[n])?e:r)[n]=t[n]}return[e,r]}(t);n(t,e),i(t,r)}};function n(t,e=t.schema){const{gen:r,data:n,it:i}=t;if(0===Object.keys(e).length)return;const o=r.let("missing");for(const s in e){const a=e[s];if(0===a.length)continue;const u=(0,ah.propertyInData)(r,n,s,i.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),i.allErrors?r.if(u,(()=>{for(const e of a)(0,ah.checkReportMissingProp)(t,e)})):(r.if(Ju._`${u} && (${(0,ah.checkMissingProp)(t,a,o)})`),(0,ah.reportMissingProp)(t,o),r.else())}}function i(t,e=t.schema){const{gen:r,data:n,keyword:i,it:o}=t,s=r.name("valid");for(const a in e)(0,Xu.alwaysValidSchema)(o,e[a])||(r.if((0,ah.propertyInData)(r,n,a,o.opts.ownProperties),(()=>{const e=t.subschema({keyword:i,schemaProp:a},s);t.mergeValidEvaluated(e,s)}),(()=>r.var(s,!0))),t.ok(s))}e.validatePropertyDeps=n,e.validateSchemaDeps=i,e.default=r}));const Ml={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:t})=>Ju._`{propertyName: ${t.propertyName}}`},code(t){const{gen:e,schema:r,data:n,it:i}=t;if((0,Xu.alwaysValidSchema)(i,r))return;const o=e.name("valid");e.forIn("key",n,(r=>{t.setParams({propertyName:r}),t.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},o),e.if((0,Ju.not)(o),(()=>{t.error(!0),i.allErrors||e.break()}))})),t.ok(o)}};var kl=Ml,xl=Object.defineProperty({default:kl},"__esModule",{value:!0});const Nl={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:t})=>Ju._`{additionalProperty: ${t.additionalProperty}}`},code(t){const{gen:e,schema:r,parentSchema:n,data:i,errsCount:o,it:s}=t;if(!o)throw new Error("ajv implementation error");const{allErrors:a,opts:u}=s;if(s.props=!0,"all"!==u.removeAdditional&&(0,Xu.alwaysValidSchema)(s,r))return;const h=(0,ah.allSchemaProperties)(n.properties),l=(0,ah.allSchemaProperties)(n.patternProperties);function c(t){e.code(Ju._`delete ${i}[${t}]`)}function f(n){if("all"===u.removeAdditional||u.removeAdditional&&!1===r)c(n);else{if(!1===r)return t.setParams({additionalProperty:n}),t.error(),void(a||e.break());if("object"==typeof r&&!(0,Xu.alwaysValidSchema)(s,r)){const r=e.name("valid");"failing"===u.removeAdditional?(d(n,r,!1),e.if((0,Ju.not)(r),(()=>{t.reset(),c(n)}))):(d(n,r),a||e.if((0,Ju.not)(r),(()=>e.break())))}}}function d(e,r,n){const i={keyword:"additionalProperties",dataProp:e,dataPropType:Xu.Type.Str};!1===n&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(i,r)}e.forIn("key",i,(r=>{h.length||l.length?e.if(function(r){let i;if(h.length>8){const t=(0,Xu.schemaRefOrVal)(s,n.properties,"properties");i=(0,ah.isOwnProperty)(e,t,r)}else i=h.length?(0,Ju.or)(...h.map((t=>Ju._`${r} === ${t}`))):Ju.nil;return l.length&&(i=(0,Ju.or)(i,...l.map((e=>Ju._`${(0,ah.usePattern)(t,e)}.test(${r})`)))),(0,Ju.not)(i)}(r),(()=>f(r))):f(r)})),t.ok(Ju._`${o} === ${th.default.errors}`)}};var Sl=Nl,Ul=Object.defineProperty({default:Sl},"__esModule",{value:!0});const Pl={keyword:"properties",type:"object",schemaType:"object",code(t){const{gen:e,schema:r,parentSchema:n,data:i,it:o}=t;"all"===o.opts.removeAdditional&&void 0===n.additionalProperties&&Ul.default.code(new dh.KeywordCxt(o,Ul.default,"additionalProperties"));const s=(0,ah.allSchemaProperties)(r);for(const t of s)o.definedProperties.add(t);o.opts.unevaluated&&s.length&&!0!==o.props&&(o.props=Xu.mergeEvaluated.props(e,(0,Xu.toHash)(s),o.props));const a=s.filter((t=>!(0,Xu.alwaysValidSchema)(o,r[t])));if(0===a.length)return;const u=e.name("valid");for(const r of a)h(r)?l(r):(e.if((0,ah.propertyInData)(e,i,r,o.opts.ownProperties)),l(r),o.allErrors||e.else().var(u,!0),e.endIf()),t.it.definedProperties.add(r),t.ok(u);function h(t){return o.opts.useDefaults&&!o.compositeRule&&void 0!==r[t].default}function l(e){t.subschema({keyword:"properties",schemaProp:e,dataProp:e},u)}}};var Tl=Pl,Rl=Object.defineProperty({default:Tl},"__esModule",{value:!0});const Il=Xu,Cl={keyword:"patternProperties",type:"object",schemaType:"object",code(t){const{gen:e,schema:r,data:n,parentSchema:i,it:o}=t,{opts:s}=o,a=(0,ah.allSchemaProperties)(r),u=a.filter((t=>(0,Xu.alwaysValidSchema)(o,r[t])));if(0===a.length||u.length===a.length&&(!o.opts.unevaluated||!0===o.props))return;const h=s.strictSchema&&!s.allowMatchingProperties&&i.properties,l=e.name("valid");!0===o.props||o.props instanceof Ju.Name||(o.props=(0,Il.evaluatedPropsToName)(e,o.props));const{props:c}=o;function f(t){for(const e in h)new RegExp(t).test(e)&&(0,Xu.checkStrictMode)(o,`property ${e} matches pattern ${t} (use allowMatchingProperties)`)}function d(r){e.forIn("key",n,(n=>{e.if(Ju._`${(0,ah.usePattern)(t,r)}.test(${n})`,(()=>{const i=u.includes(r);i||t.subschema({keyword:"patternProperties",schemaProp:r,dataProp:n,dataPropType:Il.Type.Str},l),o.opts.unevaluated&&!0!==c?e.assign(Ju._`${c}[${n}]`,!0):i||o.allErrors||e.if((0,Ju.not)(l),(()=>e.break()))}))}))}!function(){for(const t of a)h&&f(t),o.allErrors?d(t):(e.var(l,!0),d(t),e.if(l))}()}};var $l=Cl,Ol=Object.defineProperty({default:$l},"__esModule",{value:!0});var Fl={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:e,schema:r,it:n}=t;if((0,Xu.alwaysValidSchema)(n,r))return void t.fail();const i=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),t.failResult(i,(()=>t.reset()),(()=>t.error()))},error:{message:"must NOT be valid"}},Bl=Object.defineProperty({default:Fl},"__esModule",{value:!0});var jl={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ah.validateUnion,error:{message:"must match a schema in anyOf"}},Dl=Object.defineProperty({default:jl},"__esModule",{value:!0});var Ll={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:t})=>Ju._`{passingSchemas: ${t.passing}}`},code(t){const{gen:e,schema:r,parentSchema:n,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;const o=r,s=e.let("valid",!1),a=e.let("passing",null),u=e.name("_valid");t.setParams({passing:a}),e.block((function(){o.forEach(((r,n)=>{let o;(0,Xu.alwaysValidSchema)(i,r)?e.var(u,!0):o=t.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},u),n>0&&e.if(Ju._`${u} && ${s}`).assign(s,!1).assign(a,Ju._`[${a}, ${n}]`).else(),e.if(u,(()=>{e.assign(s,!0),e.assign(a,n),o&&t.mergeEvaluated(o,Ju.Name)}))}))})),t.result(s,(()=>t.reset()),(()=>t.error(!0)))}},zl=Object.defineProperty({default:Ll},"__esModule",{value:!0});var ql={keyword:"allOf",schemaType:"array",code(t){const{gen:e,schema:r,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=e.name("valid");r.forEach(((e,r)=>{if((0,Xu.alwaysValidSchema)(n,e))return;const o=t.subschema({keyword:"allOf",schemaProp:r},i);t.ok(i),t.mergeEvaluated(o)}))}},Vl=Object.defineProperty({default:ql},"__esModule",{value:!0});const Gl={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:t})=>Ju.str`must match "${t.ifClause}" schema`,params:({params:t})=>Ju._`{failingKeyword: ${t.ifClause}}`},code(t){const{gen:e,parentSchema:r,it:n}=t;void 0===r.then&&void 0===r.else&&(0,Xu.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=Hl(n,"then"),o=Hl(n,"else");if(!i&&!o)return;const s=e.let("valid",!0),a=e.name("_valid");if(function(){const e=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(e)}(),t.reset(),i&&o){const r=e.let("ifClause");t.setParams({ifClause:r}),e.if(a,u("then",r),u("else",r))}else i?e.if(a,u("then")):e.if((0,Ju.not)(a),u("else"));function u(r,n){return()=>{const i=t.subschema({keyword:r},a);e.assign(s,a),t.mergeValidEvaluated(i,s),n?e.assign(n,Ju._`${r}`):t.setParams({ifClause:r})}}t.pass(s,(()=>t.error(!0)))}};function Hl(t,e){const r=t.schema[e];return void 0!==r&&!(0,Xu.alwaysValidSchema)(t,r)}var Ql=Gl,Kl=Object.defineProperty({default:Ql},"__esModule",{value:!0});const Zl={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){void 0===e.if&&(0,Xu.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};var Wl=Zl,Jl=Object.defineProperty({default:Wl},"__esModule",{value:!0});var Xl=function(t=!1){const e=[Bl.default,Dl.default,zl.default,Vl.default,Kl.default,Jl.default,xl.default,Ul.default,El.default,Rl.default,Ol.default];return t?e.push(gl.default,bl.default):e.push(pl.default,ml.default),e.push(_l.default),e},Yl=Object.defineProperty({default:Xl},"__esModule",{value:!0});const tc={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:t})=>Ju.str`must match format "${t}"`,params:({schemaCode:t})=>Ju._`{format: ${t}}`},code(t,e){const{gen:r,data:n,$data:i,schema:o,schemaCode:s,it:a}=t,{opts:u,errSchemaPath:h,schemaEnv:l,self:c}=a;u.validateFormats&&(i?function(){const i=r.scopeValue("formats",{ref:c.formats,code:u.code.formats}),o=r.const("fDef",Ju._`${i}[${s}]`),a=r.let("fType"),h=r.let("format");r.if(Ju._`typeof ${o} == "object" && !(${o} instanceof RegExp)`,(()=>r.assign(a,Ju._`${o}.type || "string"`).assign(h,Ju._`${o}.validate`)),(()=>r.assign(a,Ju._`"string"`).assign(h,o))),t.fail$data((0,Ju.or)(!1===u.strictSchema?Ju.nil:Ju._`${s} && !${h}`,function(){const t=l.$async?Ju._`(${o}.async ? await ${h}(${n}) : ${h}(${n}))`:Ju._`${h}(${n})`,r=Ju._`(typeof ${h} == "function" ? ${t} : ${h}.test(${n}))`;return Ju._`${h} && ${h} !== true && ${a} === ${e} && !${r}`}()))}():function(){const i=c.formats[o];if(!i)return void function(){if(!1===u.strictSchema)return void c.logger.warn(t());throw new Error(t());function t(){return`unknown format "${o}" ignored in schema at path "${h}"`}}();if(!0===i)return;const[s,a,f]=function(t){const e=t instanceof RegExp?(0,Ju.regexpCode)(t):u.code.formats?Ju._`${u.code.formats}${(0,Ju.getProperty)(o)}`:void 0,n=r.scopeValue("formats",{key:o,ref:t,code:e});if("object"==typeof t&&!(t instanceof RegExp))return[t.type||"string",t.validate,Ju._`${n}.validate`];return["string",t,n]}(i);s===e&&t.pass(function(){if("object"==typeof i&&!(i instanceof RegExp)&&i.async){if(!l.$async)throw new Error("async format in sync schema");return Ju._`await ${f}(${n})`}return"function"==typeof a?Ju._`${f}(${n})`:Ju._`${f}.test(${n})`}())}())}};var ec=tc;var rc=[Object.defineProperty({default:ec},"__esModule",{value:!0}).default],nc=Object.defineProperty({default:rc},"__esModule",{value:!0}),ic=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.contentVocabulary=e.metadataVocabulary=void 0,e.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],e.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]}));var oc=[Ph.default,dl.default,(0,Yl.default)(),nc.default,ic.metadataVocabulary,ic.contentVocabulary],sc=Object.defineProperty({default:oc},"__esModule",{value:!0}),ac=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))}));const uc={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:t,tagName:e}})=>t===ac.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>Ju._`{error: ${t}, tag: ${r}, tagValue: ${e}}`},code(t){const{gen:e,data:r,schema:n,parentSchema:i,it:o}=t,{oneOf:s}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");const a=n.propertyName;if("string"!=typeof a)throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");const u=e.let("valid",!1),h=e.const("tag",Ju._`${r}${(0,Ju.getProperty)(a)}`);function l(r){const n=e.name("valid"),i=t.subschema({keyword:"oneOf",schemaProp:r},n);return t.mergeEvaluated(i,Ju.Name),n}e.if(Ju._`typeof ${h} == "string"`,(()=>function(){const r=function(){var t;const e={},r=u(i);let n=!0;for(let e=0;e<s.length;e++){let i=s[e];(null==i?void 0:i.$ref)&&!(0,Xu.schemaHasRulesButRef)(i,o.self.RULES)&&(i=bh.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,null==i?void 0:i.$ref),i instanceof bh.SchemaEnv&&(i=i.schema));const l=null===(t=null==i?void 0:i.properties)||void 0===t?void 0:t[a];if("object"!=typeof l)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);n=n&&(r||u(i)),h(l,e)}if(!n)throw new Error(`discriminator: "${a}" must be required`);return e;function u({required:t}){return Array.isArray(t)&&t.includes(a)}function h(t,e){if(t.const)l(t.const,e);else{if(!t.enum)throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`);for(const r of t.enum)l(r,e)}}function l(t,r){if("string"!=typeof t||t in e)throw new Error(`discriminator: "${a}" values must be unique strings`);e[t]=r}}();e.if(!1);for(const t in r)e.elseIf(Ju._`${h} === ${t}`),e.assign(u,l(r[t]));e.else(),t.error(!1,{discrError:ac.DiscrError.Mapping,tag:h,tagName:a}),e.endIf()}()),(()=>t.error(!1,{discrError:ac.DiscrError.Tag,tag:h,tagName:a}))),t.ok(u)}};var hc=uc,lc=Object.defineProperty({default:hc},"__esModule",{value:!0}),cc={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0},fc=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const r=["/properties"],n="http://json-schema.org/draft-07/schema";class i extends kh.default{_addVocabularies(){super._addVocabularies(),sc.default.forEach((t=>this.addVocabulary(t))),this.opts.discriminator&&this.addKeyword(lc.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const t=this.opts.$data?this.$dataMetaSchema(cc,r):cc;this.addMetaSchema(t,n,!1),this.refs["http://json-schema.org/schema"]=n}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(n)?n:void 0)}}t.exports=e=i,Object.defineProperty(e,"__esModule",{value:!0}),e.default=i,Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return dh.KeywordCxt}}),Object.defineProperty(e,"_",{enumerable:!0,get:function(){return Ju._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return Ju.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return Ju.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return Ju.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return Ju.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return Ju.CodeGen}})})),dc=s(fc),pc=u((function(t,e){function r(t,e){return{validate:t,compare:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0,e.fullFormats={date:r(o,s),time:r(u,h),"date-time":r((function(t){const e=t.split(l);return 2===e.length&&o(e[0])&&u(e[1],!0)}),c),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(t){return f.test(t)&&d.test(t)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function(t){if(y.test(t))return!1;try{return new RegExp(t),!0}catch(t){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(t){return p.lastIndex=0,p.test(t)},int32:{type:"number",validate:function(t){return Number.isInteger(t)&&t<=2147483647&&t>=-2147483648}},int64:{type:"number",validate:function(t){return Number.isInteger(t)}},float:{type:"number",validate:m},double:{type:"number",validate:m},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:r(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:r(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,h),"date-time":r(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,c),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(t){const e=n.exec(t);if(!e)return!1;const r=+e[1],o=+e[2],s=+e[3];return o>=1&&o<=12&&s>=1&&s<=(2===o&&function(t){return t%4==0&&(t%100!=0||t%400==0)}(r)?29:i[o])}function s(t,e){if(t&&e)return t>e?1:t<e?-1:0}const a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function u(t,e){const r=a.exec(t);if(!r)return!1;const n=+r[1],i=+r[2],o=+r[3],s=r[5];return(n<=23&&i<=59&&o<=59||23===n&&59===i&&60===o)&&(!e||""!==s)}function h(t,e){if(!t||!e)return;const r=a.exec(t),n=a.exec(e);return r&&n?(t=r[1]+r[2]+r[3]+(r[4]||""))>(e=n[1]+n[2]+n[3]+(n[4]||""))?1:t<e?-1:0:void 0}const l=/t|\s/i;function c(t,e){if(!t||!e)return;const[r,n]=t.split(l),[i,o]=e.split(l),a=s(r,i);return void 0!==a?a||h(n,o):void 0}const f=/\/|:/,d=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;const p=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function m(){return!0}const y=/[^\\]\\Z/})),mc=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const r=Ju.operators,n={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},i={message:({keyword:t,schemaCode:e})=>Ju.str`should be ${n[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>Ju._`{comparison: ${n[t].okStr}, limit: ${e}}`};e.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:i,code(t){const{gen:e,data:r,schemaCode:i,keyword:o,it:s}=t,{opts:a,self:u}=s;if(!a.validateFormats)return;const h=new fc.KeywordCxt(s,u.RULES.all.format.definition,"format");function l(t){return Ju._`${t}.compare(${r}, ${i}) ${n[o].fail} 0`}h.$data?function(){const r=e.scopeValue("formats",{ref:u.formats,code:a.code.formats}),n=e.const("fmt",Ju._`${r}[${h.schemaCode}]`);t.fail$data(Ju.or(Ju._`typeof ${n} != "object"`,Ju._`${n} instanceof RegExp`,Ju._`typeof ${n}.compare != "function"`,l(n)))}():function(){const r=h.schema,n=u.formats[r];if(!n||!0===n)return;if("object"!=typeof n||n instanceof RegExp||"function"!=typeof n.compare)throw new Error(`"${o}": format "${r}" does not define "compare" function`);const i=e.scopeValue("formats",{key:r,ref:n,code:a.code.formats?Ju._`${a.code.formats}${Ju.getProperty(r)}`:void 0});t.fail$data(l(i))}()},dependencies:["format"]};e.default=t=>(t.addKeyword(e.formatLimitDefinition),t)})),yc=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const r=new Ju.Name("fullFormats"),n=new Ju.Name("fastFormats"),i=(t,e={keywords:!0})=>{if(Array.isArray(e))return o(t,e,pc.fullFormats,r),t;const[i,s]="fast"===e.mode?[pc.fastFormats,n]:[pc.fullFormats,r];return o(t,e.formats||pc.formatNames,i,s),e.keywords&&mc.default(t),t};function o(t,e,r,n){var i,o;null!==(i=(o=t.opts.code).formats)&&void 0!==i||(o.formats=Ju._`require("ajv-formats/dist/formats").${n}`);for(const n of e)t.addFormat(n,r[n])}i.get=(t,e="full")=>{const r=("fast"===e?pc.fastFormats:pc.fullFormats)[t];if(!r)throw new Error(`Unknown format "${t}"`);return r},t.exports=e=i,Object.defineProperty(e,"__esModule",{value:!0}),e.default=i})),gc=s(yc),vc="__lodash_hash_undefined__",wc="[object Function]",bc="[object GeneratorFunction]",Ac=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_c=/^\w*$/,Ec=/^\./,Mc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kc=/\\(\\)?/g,xc=/^\[object .+?Constructor\]$/,Nc=/^(?:0|[1-9]\d*)$/,Sc="object"==typeof o&&o&&o.Object===Object&&o,Uc="object"==typeof self&&self&&self.Object===Object&&self,Pc=Sc||Uc||Function("return this")();var Tc,Rc=Array.prototype,Ic=Function.prototype,Cc=Object.prototype,$c=Pc["__core-js_shared__"],Oc=(Tc=/[^.]+$/.exec($c&&$c.keys&&$c.keys.IE_PROTO||""))?"Symbol(src)_1."+Tc:"",Fc=Ic.toString,Bc=Cc.hasOwnProperty,jc=Cc.toString,Dc=RegExp("^"+Fc.call(Bc).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lc=Pc.Symbol,zc=Rc.splice,qc=ef(Pc,"Map"),Vc=ef(Object,"create"),Gc=Lc?Lc.prototype:void 0,Hc=Gc?Gc.toString:void 0;function Qc(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Kc(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Zc(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Wc(t,e,r){var n=t[e];Bc.call(t,e)&&af(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function Jc(t,e){for(var r=t.length;r--;)if(af(t[r][0],e))return r;return-1}function Xc(t){if(!hf(t)||(e=t,Oc&&Oc in e))return!1;var e,r=function(t){var e=hf(t)?jc.call(t):"";return e==wc||e==bc}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?Dc:xc;return r.test(function(t){if(null!=t){try{return Fc.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function Yc(t,e,r,n){if(!hf(t))return t;e=function(t,e){if(uf(t))return!1;var r=typeof t;if("number"==r||"symbol"==r||"boolean"==r||null==t||lf(t))return!0;return _c.test(t)||!Ac.test(t)||null!=e&&t in Object(e)}(e,t)?[e]:function(t){return uf(t)?t:nf(t)}(e);for(var i=-1,o=e.length,s=o-1,a=t;null!=a&&++i<o;){var u=of(e[i]),h=r;if(i!=s){var l=a[u];void 0===(h=n?n(l,u,a):void 0)&&(h=hf(l)?l:rf(e[i+1])?[]:{})}Wc(a,u,h),a=a[u]}return t}function tf(t,e){var r=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?r["string"==typeof e?"string":"hash"]:r.map}function ef(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Xc(r)?r:void 0}function rf(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||Nc.test(t))&&t>-1&&t%1==0&&t<e}Qc.prototype.clear=function(){this.__data__=Vc?Vc(null):{}},Qc.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Qc.prototype.get=function(t){var e=this.__data__;if(Vc){var r=e[t];return r===vc?void 0:r}return Bc.call(e,t)?e[t]:void 0},Qc.prototype.has=function(t){var e=this.__data__;return Vc?void 0!==e[t]:Bc.call(e,t)},Qc.prototype.set=function(t,e){return this.__data__[t]=Vc&&void 0===e?vc:e,this},Kc.prototype.clear=function(){this.__data__=[]},Kc.prototype.delete=function(t){var e=this.__data__,r=Jc(e,t);return!(r<0)&&(r==e.length-1?e.pop():zc.call(e,r,1),!0)},Kc.prototype.get=function(t){var e=this.__data__,r=Jc(e,t);return r<0?void 0:e[r][1]},Kc.prototype.has=function(t){return Jc(this.__data__,t)>-1},Kc.prototype.set=function(t,e){var r=this.__data__,n=Jc(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},Zc.prototype.clear=function(){this.__data__={hash:new Qc,map:new(qc||Kc),string:new Qc}},Zc.prototype.delete=function(t){return tf(this,t).delete(t)},Zc.prototype.get=function(t){return tf(this,t).get(t)},Zc.prototype.has=function(t){return tf(this,t).has(t)},Zc.prototype.set=function(t,e){return tf(this,t).set(t,e),this};var nf=sf((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(lf(t))return Hc?Hc.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var r=[];return Ec.test(t)&&r.push(""),t.replace(Mc,(function(t,e,n,i){r.push(n?i.replace(kc,"$1"):e||t)})),r}));function of(t){if("string"==typeof t||lf(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function sf(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s),s};return r.cache=new(sf.Cache||Zc),r}function af(t,e){return t===e||t!=t&&e!=e}sf.Cache=Zc;var uf=Array.isArray;function hf(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function lf(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==jc.call(t)}var cf=function(t,e,r){return null==t?t:Yc(t,e,r)},ff=function(){function t(t,e,r,n){this.options={},this.calls=[],this.paths=[],this.network=t,this.provider=e,this.abi=r,this.options=n||{}}return t.prototype.call=function(t,e,r,n){return this.calls.push([e,r,n]),this.paths.push(t),this},t.prototype.execute=function(t){return e(this,void 0,void 0,(function(){var e,n=this;return r(this,(function(r){switch(r.label){case 0:return e=t||{},[4,ap(this.network,this.provider,this.abi,this.calls,this.options)];case 1:return r.sent().forEach((function(t,r){return cf(e,n.paths[r],t.length>1?t:t[0])})),this.calls=[],this.paths=[],[2,e]}}))}))},t}(),df={};setInterval((function(){return df={}}),36e5);const pf=new b("networks/5.6.4");function mf(t){const e=function(e,r){null==r&&(r={});const n=[];if(e.InfuraProvider&&"-"!==r.infura)try{n.push(new e.InfuraProvider(t,r.infura))}catch(t){}if(e.EtherscanProvider&&"-"!==r.etherscan)try{n.push(new e.EtherscanProvider(t,r.etherscan))}catch(t){}if(e.AlchemyProvider&&"-"!==r.alchemy)try{n.push(new e.AlchemyProvider(t,r.alchemy))}catch(t){}if(e.PocketProvider&&"-"!==r.pocket){const i=["goerli","ropsten","rinkeby"];try{const o=new e.PocketProvider(t,r.pocket);o.network&&-1===i.indexOf(o.network.name)&&n.push(o)}catch(t){}}if(e.CloudflareProvider&&"-"!==r.cloudflare)try{n.push(new e.CloudflareProvider(t))}catch(t){}if(e.AnkrProvider&&"-"!==r.ankr)try{const i=["ropsten"],o=new e.AnkrProvider(t,r.ankr);o.network&&-1===i.indexOf(o.network.name)&&n.push(o)}catch(t){}if(0===n.length)return null;if(e.FallbackProvider){let i=1;return null!=r.quorum?i=r.quorum:"homestead"===t&&(i=2),new e.FallbackProvider(n,i)}return n[0]};return e.renetwork=function(t){return mf(t)},e}function yf(t,e){const r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(t,e):null};return r.renetwork=function(e){return yf(t,e)},r}const gf={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:mf("homestead")},vf={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:mf("ropsten")},wf={chainId:63,name:"classicMordor",_defaultProvider:yf("https://www.ethercluster.com/mordor","classicMordor")},bf={unspecified:{chainId:0,name:"unspecified"},homestead:gf,mainnet:gf,morden:{chainId:2,name:"morden"},ropsten:vf,testnet:vf,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:mf("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:mf("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:mf("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},classic:{chainId:61,name:"classic",_defaultProvider:yf("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:wf,classicTestnet:wf,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:yf("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:mf("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:mf("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function Af(t){t=atob(t);const e=[];for(let r=0;r<t.length;r++)e.push(t.charCodeAt(r));return N(e)}function _f(t){t=N(t);let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}class Ef{constructor(t){mr(this,"alphabet",t),mr(this,"base",t.length),mr(this,"_alphabetMap",{}),mr(this,"_leader",t.charAt(0));for(let e=0;e<t.length;e++)this._alphabetMap[t.charAt(e)]=e}encode(t){let e=N(t);if(0===e.length)return"";let r=[0];for(let t=0;t<e.length;++t){let n=e[t];for(let t=0;t<r.length;++t)n+=r[t]<<8,r[t]=n%this.base,n=n/this.base|0;for(;n>0;)r.push(n%this.base),n=n/this.base|0}let n="";for(let t=0;0===e[t]&&t<e.length-1;++t)n+=this._leader;for(let t=r.length-1;t>=0;--t)n+=this.alphabet[r[t]];return n}decode(t){if("string"!=typeof t)throw new TypeError("Expected String");let e=[];if(0===t.length)return new Uint8Array(e);e.push(0);for(let r=0;r<t.length;r++){let n=this._alphabetMap[t[r]];if(void 0===n)throw new Error("Non-base"+this.base+" character");let i=n;for(let t=0;t<e.length;++t)i+=e[t]*this.base,e[t]=255&i,i>>=8;for(;i>0;)e.push(255&i),i>>=8}for(let r=0;t[r]===this._leader&&r<t.length-1;++r)e.push(0);return N(new Uint8Array(e.reverse()))}}new Ef("abcdefghijklmnopqrstuvwxyz234567");const Mf=new Ef("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");new b("sha2/5.6.1");function kf(t){return"0x"+fs.sha256().update(N(t)).digest("hex")}var xf=window&&window.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};function Nf(t,e){return xf(this,void 0,void 0,(function*(){null==e&&(e={});const r={method:e.method||"GET",headers:e.headers||{},body:e.body||void 0};!0!==e.skipFetchSetup&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client");const n=yield fetch(t,r),i=yield n.arrayBuffer(),o={};return n.headers.forEach?n.headers.forEach(((t,e)=>{o[e.toLowerCase()]=t})):n.headers.keys().forEach((t=>{o[t.toLowerCase()]=n.headers.get(t)})),{headers:o,statusCode:n.status,statusMessage:n.statusText,body:N(new Uint8Array(i))}}))}var Sf=window&&window.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const Uf=new b("web/5.6.1");function Pf(t){return new Promise((e=>{setTimeout(e,t)}))}function Tf(t,e){if(null==t)return null;if("string"==typeof t)return t;if(M(t)){if(e&&("text"===e.split("/")[0]||"application/json"===e.split(";")[0].trim()))try{return En(t)}catch(t){}return R(t)}return t}function Rf(t,e,r){let n=null;if(null!=e){n=An(e);const r="string"==typeof t?{url:t}:vr(t);if(r.headers){0!==Object.keys(r.headers).filter((t=>"content-type"===t.toLowerCase())).length||(r.headers=vr(r.headers),r.headers["content-type"]="application/json")}else r.headers={"content-type":"application/json"};t=r}return function(t,e,r){const n="object"==typeof t&&null!=t.throttleLimit?t.throttleLimit:12;Uf.assertArgument(n>0&&n%1==0,"invalid connection throttle limit","connection.throttleLimit",n);const i="object"==typeof t?t.throttleCallback:null,o="object"==typeof t&&"number"==typeof t.throttleSlotInterval?t.throttleSlotInterval:100;Uf.assertArgument(o>0&&o%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o);const s="object"==typeof t&&!!t.errorPassThrough,a={};let u=null;const h={method:"GET"};let l=!1,c=12e4;if("string"==typeof t)u=t;else if("object"==typeof t){if(null!=t&&null!=t.url||Uf.throwArgumentError("missing URL","connection.url",t),u=t.url,"number"==typeof t.timeout&&t.timeout>0&&(c=t.timeout),t.headers)for(const e in t.headers)a[e.toLowerCase()]={key:e,value:String(t.headers[e])},["if-none-match","if-modified-since"].indexOf(e.toLowerCase())>=0&&(l=!0);if(h.allowGzip=!!t.allowGzip,null!=t.user&&null!=t.password){"https:"!==u.substring(0,6)&&!0!==t.allowInsecureAuthentication&&Uf.throwError("basic authentication requires a secure https url",b.errors.INVALID_ARGUMENT,{argument:"url",url:u,user:t.user,password:"[REDACTED]"});const e=t.user+":"+t.password;a.authorization={key:"Authorization",value:"Basic "+_f(An(e))}}null!=t.skipFetchSetup&&(h.skipFetchSetup=!!t.skipFetchSetup)}const f=new RegExp("^data:([a-z0-9-]+/[a-z0-9-]+);base64,(.*)$","i"),d=u?u.match(f):null;if(d)try{const t={statusCode:200,statusMessage:"OK",headers:{"content-type":d[1]},body:Af(d[2])};let e=t.body;return r&&(e=r(t.body,t)),Promise.resolve(e)}catch(t){Uf.throwError("processing response error",b.errors.SERVER_ERROR,{body:Tf(d[1],d[2]),error:t,requestBody:null,requestMethod:"GET",url:u})}e&&(h.method="POST",h.body=e,null==a["content-type"]&&(a["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==a["content-length"]&&(a["content-length"]={key:"Content-Length",value:String(e.length)}));const p={};Object.keys(a).forEach((t=>{const e=a[t];p[e.key]=e.value})),h.headers=p;const m=function(){let t=null;return{promise:new Promise((function(e,r){c&&(t=setTimeout((()=>{null!=t&&(t=null,r(Uf.makeError("timeout",b.errors.TIMEOUT,{requestBody:Tf(h.body,p["content-type"]),requestMethod:h.method,timeout:c,url:u})))}),c))})),cancel:function(){null!=t&&(clearTimeout(t),t=null)}}}(),y=function(){return Sf(this,void 0,void 0,(function*(){for(let t=0;t<n;t++){let e=null;try{if(e=yield Nf(u,h),t<n)if(301===e.statusCode||302===e.statusCode){const t=e.headers.location||"";if("GET"===h.method&&t.match(/^https:/)){u=e.headers.location;continue}}else if(429===e.statusCode){let r=!0;if(i&&(r=yield i(t,u)),r){let r=0;const n=e.headers["retry-after"];r="string"==typeof n&&n.match(/^[1-9][0-9]*$/)?1e3*parseInt(n):o*parseInt(String(Math.random()*Math.pow(2,t))),yield Pf(r);continue}}}catch(t){e=t.response,null==e&&(m.cancel(),Uf.throwError("missing response",b.errors.SERVER_ERROR,{requestBody:Tf(h.body,p["content-type"]),requestMethod:h.method,serverError:t,url:u}))}let a=e.body;if(l&&304===e.statusCode?a=null:!s&&(e.statusCode<200||e.statusCode>=300)&&(m.cancel(),Uf.throwError("bad response",b.errors.SERVER_ERROR,{status:e.statusCode,headers:e.headers,body:Tf(a,e.headers?e.headers["content-type"]:null),requestBody:Tf(h.body,p["content-type"]),requestMethod:h.method,url:u})),r)try{const t=yield r(a,e);return m.cancel(),t}catch(r){if(r.throttleRetry&&t<n){let e=!0;if(i&&(e=yield i(t,u)),e){const e=o*parseInt(String(Math.random()*Math.pow(2,t)));yield Pf(e);continue}}m.cancel(),Uf.throwError("processing response error",b.errors.SERVER_ERROR,{body:Tf(a,e.headers?e.headers["content-type"]:null),error:r,requestBody:Tf(h.body,p["content-type"]),requestMethod:h.method,url:u})}return m.cancel(),a}return Uf.throwError("failed response",b.errors.SERVER_ERROR,{requestBody:Tf(h.body,p["content-type"]),requestMethod:h.method,url:u})}))}();return Promise.race([m.promise,y])}(t,n,((t,e)=>{let n=null;if(null!=t)try{n=JSON.parse(En(t))}catch(e){Uf.throwError("invalid JSON",b.errors.SERVER_ERROR,{body:t,error:e})}return r&&(n=r(n,e)),n}))}function If(t,e){return e||(e={}),null==(e=vr(e)).floor&&(e.floor=0),null==e.ceiling&&(e.ceiling=1e4),null==e.interval&&(e.interval=250),new Promise((function(r,n){let i=null,o=!1;const s=()=>!o&&(o=!0,i&&clearTimeout(i),!0);e.timeout&&(i=setTimeout((()=>{s()&&n(new Error("timeout"))}),e.timeout));const a=e.retryLimit;let u=0;!function i(){return t().then((function(t){if(void 0!==t)s()&&r(t);else if(e.oncePoll)e.oncePoll.once("poll",i);else if(e.onceBlock)e.onceBlock.once("block",i);else if(!o){if(u++,u>a)return void(s()&&n(new Error("retry limit reached")));let t=e.interval*parseInt(String(Math.random()*Math.pow(2,u)));t<e.floor&&(t=e.floor),t>e.ceiling&&(t=e.ceiling),setTimeout(i,t)}return null}),(function(t){s()&&n(t)}))}()}))}for(var Cf="qpzry9x8gf2tvdw0s3jn54khce6mua7l",$f={},Of=0;Of<Cf.length;Of++){var Ff=Cf.charAt(Of);if(void 0!==$f[Ff])throw new TypeError(Ff+" is ambiguous");$f[Ff]=Of}function Bf(t){var e=t>>25;return(33554431&t)<<5^996825010&-(e>>0&1)^642813549&-(e>>1&1)^513874426&-(e>>2&1)^1027748829&-(e>>3&1)^705979059&-(e>>4&1)}function jf(t){for(var e=1,r=0;r<t.length;++r){var n=t.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+t+")";e=Bf(e)^n>>5}for(e=Bf(e),r=0;r<t.length;++r){var i=t.charCodeAt(r);e=Bf(e)^31&i}return e}function Df(t,e){if(e=e||90,t.length<8)return t+" too short";if(t.length>e)return"Exceeds length limit";var r=t.toLowerCase(),n=t.toUpperCase();if(t!==r&&t!==n)return"Mixed-case string "+t;var i=(t=r).lastIndexOf("1");if(-1===i)return"No separator character for "+t;if(0===i)return"Missing prefix for "+t;var o=t.slice(0,i),s=t.slice(i+1);if(s.length<6)return"Data too short";var a=jf(o);if("string"==typeof a)return a;for(var u=[],h=0;h<s.length;++h){var l=s.charAt(h),c=$f[l];if(void 0===c)return"Unknown character "+l;a=Bf(a)^c,h+6>=s.length||u.push(c)}return 1!==a?"Invalid checksum for "+t:{prefix:o,words:u}}function Lf(t,e,r,n){for(var i=0,o=0,s=(1<<r)-1,a=[],u=0;u<t.length;++u)for(i=i<<e|t[u],o+=e;o>=r;)o-=r,a.push(i>>o&s);if(n)o>0&&a.push(i<<r-o&s);else{if(o>=e)return"Excess padding";if(i<<r-o&s)return"Non-zero padding"}return a}var zf={decodeUnsafe:function(){var t=Df.apply(null,arguments);if("object"==typeof t)return t},decode:function(t){var e=Df.apply(null,arguments);if("object"==typeof e)return e;throw new Error(e)},encode:function(t,e,r){if(r=r||90,t.length+7+e.length>r)throw new TypeError("Exceeds length limit");var n=jf(t=t.toLowerCase());if("string"==typeof n)throw new Error(n);for(var i=t+"1",o=0;o<e.length;++o){var s=e[o];if(s>>5!=0)throw new Error("Non 5-bit word");n=Bf(n)^s,i+=Cf.charAt(s)}for(o=0;o<6;++o)n=Bf(n);for(n^=1,o=0;o<6;++o){i+=Cf.charAt(n>>5*(5-o)&31)}return i},toWordsUnsafe:function(t){var e=Lf(t,8,5,!0);if(Array.isArray(e))return e},toWords:function(t){var e=Lf(t,8,5,!0);if(Array.isArray(e))return e;throw new Error(e)},fromWordsUnsafe:function(t){var e=Lf(t,5,8,!1);if(Array.isArray(e))return e},fromWords:function(t){var e=Lf(t,5,8,!1);if(Array.isArray(e))return e;throw new Error(e)}};const qf="providers/5.6.8",Vf=new b(qf);class Gf{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const t={},e=this.address.bind(this),r=this.bigNumber.bind(this),n=this.blockTag.bind(this),i=this.data.bind(this),o=this.hash.bind(this),s=this.hex.bind(this),a=this.number.bind(this),u=this.type.bind(this);return t.transaction={hash:o,type:u,accessList:Gf.allowNull(this.accessList.bind(this),null),blockHash:Gf.allowNull(o,null),blockNumber:Gf.allowNull(a,null),transactionIndex:Gf.allowNull(a,null),confirmations:Gf.allowNull(a,null),from:e,gasPrice:Gf.allowNull(r),maxPriorityFeePerGas:Gf.allowNull(r),maxFeePerGas:Gf.allowNull(r),gasLimit:r,to:Gf.allowNull(e,null),value:r,nonce:a,data:i,r:Gf.allowNull(this.uint256),s:Gf.allowNull(this.uint256),v:Gf.allowNull(a),creates:Gf.allowNull(e,null),raw:Gf.allowNull(i)},t.transactionRequest={from:Gf.allowNull(e),nonce:Gf.allowNull(a),gasLimit:Gf.allowNull(r),gasPrice:Gf.allowNull(r),maxPriorityFeePerGas:Gf.allowNull(r),maxFeePerGas:Gf.allowNull(r),to:Gf.allowNull(e),value:Gf.allowNull(r),data:Gf.allowNull((t=>this.data(t,!0))),type:Gf.allowNull(a),accessList:Gf.allowNull(this.accessList.bind(this),null)},t.receiptLog={transactionIndex:a,blockNumber:a,transactionHash:o,address:e,topics:Gf.arrayOf(o),data:i,logIndex:a,blockHash:o},t.receipt={to:Gf.allowNull(this.address,null),from:Gf.allowNull(this.address,null),contractAddress:Gf.allowNull(e,null),transactionIndex:a,root:Gf.allowNull(s),gasUsed:r,logsBloom:Gf.allowNull(i),blockHash:o,transactionHash:o,logs:Gf.arrayOf(this.receiptLog.bind(this)),blockNumber:a,confirmations:Gf.allowNull(a,null),cumulativeGasUsed:r,effectiveGasPrice:Gf.allowNull(r),status:Gf.allowNull(a),type:u},t.block={hash:Gf.allowNull(o),parentHash:o,number:a,timestamp:a,nonce:Gf.allowNull(s),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:Gf.allowNull(e),extraData:i,transactions:Gf.allowNull(Gf.arrayOf(o)),baseFeePerGas:Gf.allowNull(r)},t.blockWithTransactions=vr(t.block),t.blockWithTransactions.transactions=Gf.allowNull(Gf.arrayOf(this.transactionResponse.bind(this))),t.filter={fromBlock:Gf.allowNull(n,void 0),toBlock:Gf.allowNull(n,void 0),blockHash:Gf.allowNull(o,void 0),address:Gf.allowNull(e,void 0),topics:Gf.allowNull(this.topics.bind(this),void 0)},t.filterLog={blockNumber:Gf.allowNull(a),blockHash:Gf.allowNull(o),transactionIndex:a,removed:Gf.allowNull(this.boolean.bind(this)),address:e,data:Gf.allowFalsish(i,"0x"),topics:Gf.arrayOf(o),transactionHash:o,logIndex:a},t}accessList(t){return aa(t||[])}number(t){return"0x"===t?0:Ht.from(t).toNumber()}type(t){return"0x"===t||null==t?0:Ht.from(t).toNumber()}bigNumber(t){return Ht.from(t)}boolean(t){if("boolean"==typeof t)return t;if("string"==typeof t){if("true"===(t=t.toLowerCase()))return!0;if("false"===t)return!1}throw new Error("invalid boolean - "+t)}hex(t,e){return"string"==typeof t&&(e||"0x"===t.substring(0,2)||(t="0x"+t),P(t))?t.toLowerCase():Vf.throwArgumentError("invalid hash","value",t)}data(t,e){const r=this.hex(t,e);if(r.length%2!=0)throw new Error("invalid data; odd-length - "+t);return r}address(t){return $e(t)}callAddress(t){if(!P(t,32))return null;const e=$e(C(t,12));return"0x0000000000000000000000000000000000000000"===e?null:e}contractAddress(t){return Fe(t)}blockTag(t){if(null==t)return"latest";if("earliest"===t)return"0x0";if("latest"===t||"pending"===t)return t;if("number"==typeof t||P(t))return O(t);throw new Error("invalid blockTag")}hash(t,e){const r=this.hex(t,e);return 32!==I(r)?Vf.throwArgumentError("invalid hash","value",t):r}difficulty(t){if(null==t)return null;const e=Ht.from(t);try{return e.toNumber()}catch(t){}return null}uint256(t){if(!P(t))throw new Error("invalid uint256");return F(t,32)}_block(t,e){null!=t.author&&null==t.miner&&(t.miner=t.author);const r=null!=t._difficulty?t._difficulty:t.difficulty,n=Gf.check(e,t);return n._difficulty=null==r?null:Ht.from(r),n}block(t){return this._block(t,this.formats.block)}blockWithTransactions(t){return this._block(t,this.formats.blockWithTransactions)}transactionRequest(t){return Gf.check(this.formats.transactionRequest,t)}transactionResponse(t){null!=t.gas&&null==t.gasLimit&&(t.gasLimit=t.gas),t.to&&Ht.from(t.to).isZero()&&(t.to="0x0000000000000000000000000000000000000000"),null!=t.input&&null==t.data&&(t.data=t.input),null==t.to&&null==t.creates&&(t.creates=this.contractAddress(t)),1!==t.type&&2!==t.type||null!=t.accessList||(t.accessList=[]);const e=Gf.check(this.formats.transaction,t);if(null!=t.chainId){let r=t.chainId;P(r)&&(r=Ht.from(r).toNumber()),e.chainId=r}else{let r=t.networkId;null==r&&null==e.v&&(r=t.chainId),P(r)&&(r=Ht.from(r).toNumber()),"number"!=typeof r&&null!=e.v&&(r=(e.v-35)/2,r<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),e.chainId=r}return e.blockHash&&"x"===e.blockHash.replace(/0/g,"")&&(e.blockHash=null),e}transaction(t){return fa(t)}receiptLog(t){return Gf.check(this.formats.receiptLog,t)}receipt(t){const e=Gf.check(this.formats.receipt,t);if(null!=e.root)if(e.root.length<=4){const t=Ht.from(e.root).toNumber();0===t||1===t?(null!=e.status&&e.status!==t&&Vf.throwArgumentError("alt-root-status/status mismatch","value",{root:e.root,status:e.status}),e.status=t,delete e.root):Vf.throwArgumentError("invalid alt-root-status","value.root",e.root)}else 66!==e.root.length&&Vf.throwArgumentError("invalid root hash","value.root",e.root);return null!=e.status&&(e.byzantium=!0),e}topics(t){return Array.isArray(t)?t.map((t=>this.topics(t))):null!=t?this.hash(t,!0):null}filter(t){return Gf.check(this.formats.filter,t)}filterLog(t){return Gf.check(this.formats.filterLog,t)}static check(t,e){const r={};for(const n in t)try{const i=t[n](e[n]);void 0!==i&&(r[n]=i)}catch(t){throw t.checkKey=n,t.checkValue=e[n],t}return r}static allowNull(t,e){return function(r){return null==r?e:t(r)}}static allowFalsish(t,e){return function(r){return r?t(r):e}}static arrayOf(t){return function(e){if(!Array.isArray(e))throw new Error("not an array");const r=[];return e.forEach((function(e){r.push(t(e))})),r}}}var Hf=window&&window.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const Qf=new b(qf);function Kf(t){return null==t?"null":(32!==I(t)&&Qf.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function Zf(t){for(t=t.slice();t.length>0&&null==t[t.length-1];)t.pop();return t.map((t=>{if(Array.isArray(t)){const e={};t.forEach((t=>{e[Kf(t)]=!0}));const r=Object.keys(e);return r.sort(),r.join("|")}return Kf(t)})).join("&")}function Wf(t){if("string"==typeof t){if(32===I(t=t.toLowerCase()))return"tx:"+t;if(-1===t.indexOf(":"))return t}else{if(Array.isArray(t))return"filter:*:"+Zf(t);if(bi.isForkEvent(t))throw Qf.warn("not implemented"),new Error("not implemented");if(t&&"object"==typeof t)return"filter:"+(t.address||"*")+":"+Zf(t.topics||[])}throw new Error("invalid event - "+t)}function Jf(){return(new Date).getTime()}function Xf(t){return new Promise((e=>{setTimeout(e,t)}))}const Yf=["block","network","pending","poll"];class td{constructor(t,e,r){mr(this,"tag",t),mr(this,"listener",e),mr(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const t=this.tag.split(":");return"tx"!==t[0]?null:t[1]}get filter(){const t=this.tag.split(":");if("filter"!==t[0])return null;const e=t[1],r=""===(n=t[2])?[]:n.split(/&/g).map((t=>{if(""===t)return[];const e=t.split("|").map((t=>"null"===t?null:t));return 1===e.length?e[0]:e}));var n;const i={};return r.length>0&&(i.topics=r),e&&"*"!==e&&(i.address=e),i}pollable(){return this.tag.indexOf(":")>=0||Yf.indexOf(this.tag)>=0}}const ed={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function rd(t){return F(Ht.from(t).toHexString(),32)}function nd(t){return Mf.encode(S([t,C(kf(kf(t)),0,4)]))}const id=new RegExp("^(ipfs)://(.*)$","i"),od=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),id,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function sd(t,e){try{return En(ad(t,e))}catch(t){}return null}function ad(t,e){if("0x"===t)return null;const r=Ht.from(C(t,e,e+32)).toNumber(),n=Ht.from(C(t,r,r+32)).toNumber();return C(t,r+32,r+32+n)}function ud(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):Qf.throwArgumentError("unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}function hd(t){const e=N(t);if(e.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(e,32-e.length),r}function ld(t){if(t.length%32==0)return t;const e=new Uint8Array(32*Math.ceil(t.length/32));return e.set(t),e}function cd(t){const e=[];let r=0;for(let n=0;n<t.length;n++)e.push(null),r+=32;for(let n=0;n<t.length;n++){const i=N(t[n]);e[n]=hd(r),e.push(hd(i.length)),e.push(ld(i)),r+=32+32*Math.ceil(i.length/32)}return $(e)}class fd{constructor(t,e,r,n){mr(this,"provider",t),mr(this,"name",r),mr(this,"address",t.formatter.address(e)),mr(this,"_resolvedAddress",n)}supportsWildcard(){return this._supportsEip2544||(this._supportsEip2544=this.provider.call({to:this.address,data:"0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"}).then((t=>Ht.from(t).eq(1))).catch((t=>{if(t.code===b.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,t}))),this._supportsEip2544}_fetch(t,e){return Hf(this,void 0,void 0,(function*(){const r={to:this.address,ccipReadEnabled:!0,data:$([t,Qn(this.name),e||"0x"])};let n=!1;var i;(yield this.supportsWildcard())&&(n=!0,r.data=$(["0x9061b923",cd([(i=this.name,R(S(i.split(".").map((t=>{const e=An("_"+$n(t));return e[0]=e.length-1,e}))))+"00"),r.data])]));try{let t=yield this.provider.call(r);return N(t).length%32==4&&Qf.throwError("resolver threw error",b.errors.CALL_EXCEPTION,{transaction:r,data:t}),n&&(t=ad(t,0)),t}catch(t){if(t.code===b.errors.CALL_EXCEPTION)return null;throw t}}))}_fetchBytes(t,e){return Hf(this,void 0,void 0,(function*(){const r=yield this._fetch(t,e);return null!=r?ad(r,0):null}))}_getAddress(t,e){const r=ed[String(t)];if(null==r&&Qf.throwError(`unsupported coin type: ${t}`,b.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`}),"eth"===r.ilk)return this.provider.formatter.address(e);const n=N(e);if(null!=r.p2pkh){const t=e.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(t){const e=parseInt(t[1],16);if(t[2].length===2*e&&e>=1&&e<=75)return nd(S([[r.p2pkh],"0x"+t[2]]))}}if(null!=r.p2sh){const t=e.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(t){const e=parseInt(t[1],16);if(t[2].length===2*e&&e>=1&&e<=75)return nd(S([[r.p2sh],"0x"+t[2]]))}}if(null!=r.prefix){const t=n[1];let e=n[0];if(0===e?20!==t&&32!==t&&(e=-1):e=-1,e>=0&&n.length===2+t&&t>=1&&t<=75){const t=zf.toWords(n.slice(2));return t.unshift(e),zf.encode(r.prefix,t)}}return null}getAddress(t){return Hf(this,void 0,void 0,(function*(){if(null==t&&(t=60),60===t)try{const t=yield this._fetch("0x3b3b57de");return"0x"===t||"0x0000000000000000000000000000000000000000000000000000000000000000"===t?null:this.provider.formatter.callAddress(t)}catch(t){if(t.code===b.errors.CALL_EXCEPTION)return null;throw t}const e=yield this._fetchBytes("0xf1cb7e06",rd(t));if(null==e||"0x"===e)return null;const r=this._getAddress(t,e);return null==r&&Qf.throwError("invalid or unsupported coin data",b.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`,coinType:t,data:e}),r}))}getAvatar(){return Hf(this,void 0,void 0,(function*(){const t=[{type:"name",content:this.name}];try{const e=yield this.getText("avatar");if(null==e)return null;for(let r=0;r<od.length;r++){const n=e.match(od[r]);if(null==n)continue;const i=n[1].toLowerCase();switch(i){case"https":return t.push({type:"url",content:e}),{linkage:t,url:e};case"data":return t.push({type:"data",content:e}),{linkage:t,url:e};case"ipfs":return t.push({type:"ipfs",content:e}),{linkage:t,url:ud(e)};case"erc721":case"erc1155":{const r="erc721"===i?"0xc87b56dd":"0x0e89341c";t.push({type:i,content:e});const o=this._resolvedAddress||(yield this.getAddress()),s=(n[2]||"").split("/");if(2!==s.length)return null;const a=yield this.provider.formatter.address(s[0]),u=F(Ht.from(s[1]).toHexString(),32);if("erc721"===i){const e=this.provider.formatter.callAddress(yield this.provider.call({to:a,data:$(["0x6352211e",u])}));if(o!==e)return null;t.push({type:"owner",content:e})}else if("erc1155"===i){const e=Ht.from(yield this.provider.call({to:a,data:$(["0x00fdd58e",F(o,32),u])}));if(e.isZero())return null;t.push({type:"balance",content:e.toString()})}const h={to:this.provider.formatter.address(s[0]),data:$([r,u])};let l=sd(yield this.provider.call(h),0);if(null==l)return null;t.push({type:"metadata-url-base",content:l}),"erc1155"===i&&(l=l.replace("{id}",u.substring(2)),t.push({type:"metadata-url-expanded",content:l})),l.match(/^ipfs:/i)&&(l=ud(l)),t.push({type:"metadata-url",content:l});const c=yield Rf(l);if(!c)return null;t.push({type:"metadata",content:JSON.stringify(c)});let f=c.image;if("string"!=typeof f)return null;if(f.match(/^(https:\/\/|data:)/i));else{if(null==f.match(id))return null;t.push({type:"url-ipfs",content:f}),f=ud(f)}return t.push({type:"url",content:f}),{linkage:t,url:f}}}}}catch(t){}return null}))}getContentHash(){return Hf(this,void 0,void 0,(function*(){const t=yield this._fetchBytes("0xbc1c58d1");if(null==t||"0x"===t)return null;const e=t.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(e){const t=parseInt(e[3],16);if(e[4].length===2*t)return"ipfs://"+Mf.encode("0x"+e[1])}const r=t.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){const t=parseInt(r[3],16);if(r[4].length===2*t)return"ipns://"+Mf.encode("0x"+r[1])}const n=t.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&64===n[1].length)return"bzz://"+n[1];const i=t.match(/^0x90b2c605([0-9a-f]*)$/);if(i&&68===i[1].length){const t={"=":"","+":"-","/":"_"};return"sia://"+_f("0x"+i[1]).replace(/[=+\/]/g,(e=>t[e]))}return Qf.throwError("invalid or unsupported content hash data",b.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:t})}))}getText(t){return Hf(this,void 0,void 0,(function*(){let e=An(t);e=S([rd(64),rd(e.length),e]),e.length%32!=0&&(e=S([e,F("0x",32-t.length%32)]));const r=yield this._fetchBytes("0x59d1d43c",R(e));return null==r||"0x"===r?null:En(r)}))}}let dd=null,pd=1;class md extends Ai{constructor(t){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),mr(this,"anyNetwork","any"===t),this.anyNetwork&&(t=this.detectNetwork()),t instanceof Promise)this._networkPromise=t,t.catch((t=>{})),this._ready().catch((t=>{}));else{const e=yr(new.target,"getNetwork")(t);e?(mr(this,"_network",e),this.emit("network",e,null)):Qf.throwArgumentError("invalid network","network",t)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return Hf(this,void 0,void 0,(function*(){if(null==this._network){let t=null;if(this._networkPromise)try{t=yield this._networkPromise}catch(t){}null==t&&(t=yield this.detectNetwork()),t||Qf.throwError("no network detected",b.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:mr(this,"_network",t),this.emit("network",t,null))}return this._network}))}get ready(){return If((()=>this._ready().then((t=>t),(t=>{if(t.code!==b.errors.NETWORK_ERROR||"noNetwork"!==t.event)throw t}))))}static getFormatter(){return null==dd&&(dd=new Gf),dd}static getNetwork(t){return function(t){if(null==t)return null;if("number"==typeof t){for(const e in bf){const r=bf[e];if(r.chainId===t)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:t,name:"unknown"}}if("string"==typeof t){const e=bf[t];return null==e?null:{name:e.name,chainId:e.chainId,ensAddress:e.ensAddress,_defaultProvider:e._defaultProvider||null}}const e=bf[t.name];if(!e)return"number"!=typeof t.chainId&&pf.throwArgumentError("invalid network chainId","network",t),t;0!==t.chainId&&t.chainId!==e.chainId&&pf.throwArgumentError("network chainId mismatch","network",t);let r=t._defaultProvider||null;var n;return null==r&&e._defaultProvider&&(r=(n=e._defaultProvider)&&"function"==typeof n.renetwork?e._defaultProvider.renetwork(t):e._defaultProvider),{name:t.name,chainId:e.chainId,ensAddress:t.ensAddress||e.ensAddress||null,_defaultProvider:r}}(null==t?"homestead":t)}ccipReadFetch(t,e,r){return Hf(this,void 0,void 0,(function*(){if(this.disableCcipRead||0===r.length)return null;const n=t.to.toLowerCase(),i=e.toLowerCase(),o=[];for(let t=0;t<r.length;t++){const e=r[t],s=e.replace("{sender}",n).replace("{data}",i),a=e.indexOf("{data}")>=0?null:JSON.stringify({data:i,sender:n}),u=yield Rf({url:s,errorPassThrough:!0},a,((t,e)=>(t.status=e.statusCode,t)));if(u.data)return u.data;const h=u.message||"unknown error";if(u.status>=400&&u.status<500)return Qf.throwError(`response not found during CCIP fetch: ${h}`,b.errors.SERVER_ERROR,{url:e,errorMessage:h});o.push(h)}return Qf.throwError(`error encountered during CCIP fetch: ${o.map((t=>JSON.stringify(t))).join(", ")}`,b.errors.SERVER_ERROR,{urls:r,errorMessages:o})}))}_getInternalBlockNumber(t){return Hf(this,void 0,void 0,(function*(){if(yield this._ready(),t>0)for(;this._internalBlockNumber;){const e=this._internalBlockNumber;try{const r=yield e;if(Jf()-r.respTime<=t)return r.blockNumber;break}catch(t){if(this._internalBlockNumber===e)break}}const e=Jf(),r=gr({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((t=>null),(t=>t))}).then((({blockNumber:t,networkError:n})=>{if(n)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),n;const i=Jf();return(t=Ht.from(t).toNumber())<this._maxInternalBlockNumber&&(t=this._maxInternalBlockNumber),this._maxInternalBlockNumber=t,this._setFastBlockNumber(t),{blockNumber:t,reqTime:e,respTime:i}}));return this._internalBlockNumber=r,r.catch((t=>{this._internalBlockNumber===r&&(this._internalBlockNumber=null)})),(yield r).blockNumber}))}poll(){return Hf(this,void 0,void 0,(function*(){const t=pd++,e=[];let r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(t){return void this.emit("error",t)}if(this._setFastBlockNumber(r),this.emit("poll",t,r),r!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)Qf.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",Qf.makeError("network block skew detected",b.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let t=this._emitted.block+1;t<=r;t++)this.emit("block",t);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach((t=>{if("block"===t)return;const e=this._emitted[t];"pending"!==e&&r-e>12&&delete this._emitted[t]}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach((t=>{switch(t.type){case"tx":{const r=t.hash;let n=this.getTransactionReceipt(r).then((t=>t&&null!=t.blockNumber?(this._emitted["t:"+r]=t.blockNumber,this.emit(r,t),null):null)).catch((t=>{this.emit("error",t)}));e.push(n);break}case"filter":if(!t._inflight){t._inflight=!0;const n=t.filter;n.fromBlock=t._lastBlockNumber+1,n.toBlock=r,n.toBlock-this._maxFilterBlockRange>n.fromBlock&&(n.fromBlock=n.toBlock-this._maxFilterBlockRange);const i=this.getLogs(n).then((e=>{t._inflight=!1,0!==e.length&&e.forEach((e=>{e.blockNumber>t._lastBlockNumber&&(t._lastBlockNumber=e.blockNumber),this._emitted["b:"+e.blockHash]=e.blockNumber,this._emitted["t:"+e.transactionHash]=e.blockNumber,this.emit(n,e)}))})).catch((e=>{this.emit("error",e),t._inflight=!1}));e.push(i)}}})),this._lastBlockNumber=r,Promise.all(e).then((()=>{this.emit("didPoll",t)})).catch((t=>{this.emit("error",t)}))}else this.emit("didPoll",t)}))}resetEventsBlock(t){this._lastBlockNumber=t-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return Hf(this,void 0,void 0,(function*(){return Qf.throwError("provider does not support network detection",b.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})}))}getNetwork(){return Hf(this,void 0,void 0,(function*(){const t=yield this._ready(),e=yield this.detectNetwork();if(t.chainId!==e.chainId){if(this.anyNetwork)return this._network=e,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",e,t),yield Xf(0),this._network;const r=Qf.makeError("underlying network changed",b.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:e});throw this.emit("error",r),r}return t}))}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then((t=>{this._setFastBlockNumber(t)}),(t=>{})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(t){t&&!this._poller?(this._poller=setInterval((()=>{this.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((()=>{this.poll(),this._bootstrapPoll=setTimeout((()=>{this._poller||this.poll(),this._bootstrapPoll=null}),this.pollingInterval)}),0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(t){if("number"!=typeof t||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval((()=>{this.poll()}),this._pollingInterval))}_getFastBlockNumber(){const t=Jf();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then((t=>((null==this._fastBlockNumber||t>this._fastBlockNumber)&&(this._fastBlockNumber=t),this._fastBlockNumber)))),this._fastBlockNumberPromise}_setFastBlockNumber(t){null!=this._fastBlockNumber&&t<this._fastBlockNumber||(this._fastQueryDate=Jf(),(null==this._fastBlockNumber||t>this._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))}waitForTransaction(t,e,r){return Hf(this,void 0,void 0,(function*(){return this._waitForTransaction(t,null==e?1:e,r||0,null)}))}_waitForTransaction(t,e,r,n){return Hf(this,void 0,void 0,(function*(){const i=yield this.getTransactionReceipt(t);return(i?i.confirmations:0)>=e?i:new Promise(((i,o)=>{const s=[];let a=!1;const u=function(){return!!a||(a=!0,s.forEach((t=>{t()})),!1)},h=t=>{t.confirmations<e||u()||i(t)};if(this.on(t,h),s.push((()=>{this.removeListener(t,h)})),n){let r=n.startBlock,i=null;const h=s=>Hf(this,void 0,void 0,(function*(){a||(yield Xf(1e3),this.getTransactionCount(n.from).then((l=>Hf(this,void 0,void 0,(function*(){if(!a){if(l<=n.nonce)r=s;else{{const e=yield this.getTransaction(t);if(e&&null!=e.blockNumber)return}for(null==i&&(i=r-3,i<n.startBlock&&(i=n.startBlock));i<=s;){if(a)return;const r=yield this.getBlockWithTransactions(i);for(let i=0;i<r.transactions.length;i++){const s=r.transactions[i];if(s.hash===t)return;if(s.from===n.from&&s.nonce===n.nonce){if(a)return;const r=yield this.waitForTransaction(s.hash,e);if(u())return;let i="replaced";return s.data===n.data&&s.to===n.to&&s.value.eq(n.value)?i="repriced":"0x"===s.data&&s.from===s.to&&s.value.isZero()&&(i="cancelled"),void o(Qf.makeError("transaction was replaced",b.errors.TRANSACTION_REPLACED,{cancelled:"replaced"===i||"cancelled"===i,reason:i,replacement:this._wrapTransaction(s),hash:t,receipt:r}))}}i++}}a||this.once("block",h)}}))),(t=>{a||this.once("block",h)})))}));if(a)return;this.once("block",h),s.push((()=>{this.removeListener("block",h)}))}if("number"==typeof r&&r>0){const t=setTimeout((()=>{u()||o(Qf.makeError("timeout exceeded",b.errors.TIMEOUT,{timeout:r}))}),r);t.unref&&t.unref(),s.push((()=>{clearTimeout(t)}))}}))}))}getBlockNumber(){return Hf(this,void 0,void 0,(function*(){return this._getInternalBlockNumber(0)}))}getGasPrice(){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield this.perform("getGasPrice",{});try{return Ht.from(t)}catch(e){return Qf.throwError("bad result from backend",b.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e})}}))}getBalance(t,e){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield gr({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),n=yield this.perform("getBalance",r);try{return Ht.from(n)}catch(t){return Qf.throwError("bad result from backend",b.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:t})}}))}getTransactionCount(t,e){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield gr({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),n=yield this.perform("getTransactionCount",r);try{return Ht.from(n).toNumber()}catch(t){return Qf.throwError("bad result from backend",b.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:t})}}))}getCode(t,e){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield gr({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),n=yield this.perform("getCode",r);try{return R(n)}catch(t){return Qf.throwError("bad result from backend",b.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:t})}}))}getStorageAt(t,e,r){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield gr({address:this._getAddress(t),blockTag:this._getBlockTag(r),position:Promise.resolve(e).then((t=>O(t)))}),i=yield this.perform("getStorageAt",n);try{return R(i)}catch(t){return Qf.throwError("bad result from backend",b.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:i,error:t})}}))}_wrapTransaction(t,e,r){if(null!=e&&32!==I(e))throw new Error("invalid response - sendTransaction");const n=t;return null!=e&&t.hash!==e&&Qf.throwError("Transaction hash mismatch from Provider.sendTransaction.",b.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:e}),n.wait=(e,n)=>Hf(this,void 0,void 0,(function*(){let i;null==e&&(e=1),null==n&&(n=0),0!==e&&null!=r&&(i={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:r});const o=yield this._waitForTransaction(t.hash,e,n,i);return null==o&&0===e?null:(this._emitted["t:"+t.hash]=o.blockNumber,0===o.status&&Qf.throwError("transaction failed",b.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:o}),o)})),n}sendTransaction(t){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield Promise.resolve(t).then((t=>R(t))),r=this.formatter.transaction(t);null==r.confirmations&&(r.confirmations=0);const n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const t=yield this.perform("sendTransaction",{signedTransaction:e});return this._wrapTransaction(r,t,n)}catch(t){throw t.transaction=r,t.transactionHash=r.hash,t}}))}_getTransactionRequest(t){return Hf(this,void 0,void 0,(function*(){const e=yield t,r={};return["from","to"].forEach((t=>{null!=e[t]&&(r[t]=Promise.resolve(e[t]).then((t=>t?this._getAddress(t):null)))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((t=>{null!=e[t]&&(r[t]=Promise.resolve(e[t]).then((t=>t?Ht.from(t):null)))})),["type"].forEach((t=>{null!=e[t]&&(r[t]=Promise.resolve(e[t]).then((t=>null!=t?t:null)))})),e.accessList&&(r.accessList=this.formatter.accessList(e.accessList)),["data"].forEach((t=>{null!=e[t]&&(r[t]=Promise.resolve(e[t]).then((t=>t?R(t):null)))})),this.formatter.transactionRequest(yield gr(r))}))}_getFilter(t){return Hf(this,void 0,void 0,(function*(){t=yield t;const e={};return null!=t.address&&(e.address=this._getAddress(t.address)),["blockHash","topics"].forEach((r=>{null!=t[r]&&(e[r]=t[r])})),["fromBlock","toBlock"].forEach((r=>{null!=t[r]&&(e[r]=this._getBlockTag(t[r]))})),this.formatter.filter(yield gr(e))}))}_call(t,e,r){return Hf(this,void 0,void 0,(function*(){r>=10&&Qf.throwError("CCIP read exceeded maximum redirections",b.errors.SERVER_ERROR,{redirects:r,transaction:t});const n=t.to,i=yield this.perform("call",{transaction:t,blockTag:e});if(r>=0&&"latest"===e&&null!=n&&"0x556f1830"===i.substring(0,10)&&I(i)%32==4)try{const o=C(i,4),s=C(o,0,32);Ht.from(s).eq(n)||Qf.throwError("CCIP Read sender did not match",b.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:i});const a=[],u=Ht.from(C(o,32,64)).toNumber(),h=Ht.from(C(o,u,u+32)).toNumber(),l=C(o,u+32);for(let e=0;e<h;e++){const r=sd(l,32*e);null==r&&Qf.throwError("CCIP Read contained corrupt URL string",b.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:i}),a.push(r)}const c=ad(o,64);Ht.from(C(o,100,128)).isZero()||Qf.throwError("CCIP Read callback selector included junk",b.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:i});const f=C(o,96,100),d=ad(o,128),p=yield this.ccipReadFetch(t,c,a);null==p&&Qf.throwError("CCIP Read disabled or provided no URLs",b.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:i});const m={to:n,data:$([f,cd([p,d])])};return this._call(m,e,r+1)}catch(t){if(t.code===b.errors.SERVER_ERROR)throw t}try{return R(i)}catch(r){return Qf.throwError("bad result from backend",b.errors.SERVER_ERROR,{method:"call",params:{transaction:t,blockTag:e},result:i,error:r})}}))}call(t,e){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield gr({transaction:this._getTransactionRequest(t),blockTag:this._getBlockTag(e),ccipReadEnabled:Promise.resolve(t.ccipReadEnabled)});return this._call(r.transaction,r.blockTag,r.ccipReadEnabled?0:-1)}))}estimateGas(t){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield gr({transaction:this._getTransactionRequest(t)}),r=yield this.perform("estimateGas",e);try{return Ht.from(r)}catch(t){return Qf.throwError("bad result from backend",b.errors.SERVER_ERROR,{method:"estimateGas",params:e,result:r,error:t})}}))}_getAddress(t){return Hf(this,void 0,void 0,(function*(){"string"!=typeof(t=yield t)&&Qf.throwArgumentError("invalid address or ENS name","name",t);const e=yield this.resolveName(t);return null==e&&Qf.throwError("ENS name not configured",b.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(t)})`}),e}))}_getBlock(t,e){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork(),t=yield t;let r=-128;const n={includeTransactions:!!e};if(P(t,32))n.blockHash=t;else try{n.blockTag=yield this._getBlockTag(t),P(n.blockTag)&&(r=parseInt(n.blockTag.substring(2),16))}catch(e){Qf.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",t)}return If((()=>Hf(this,void 0,void 0,(function*(){const t=yield this.perform("getBlock",n);if(null==t)return null!=n.blockHash&&null==this._emitted["b:"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?null:void 0;if(e){let e=null;for(let r=0;r<t.transactions.length;r++){const n=t.transactions[r];if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){null==e&&(e=yield this._getInternalBlockNumber(100+2*this.pollingInterval));let t=e-n.blockNumber+1;t<=0&&(t=1),n.confirmations=t}}const r=this.formatter.blockWithTransactions(t);return r.transactions=r.transactions.map((t=>this._wrapTransaction(t))),r}return this.formatter.block(t)}))),{oncePoll:this})}))}getBlock(t){return this._getBlock(t,!1)}getBlockWithTransactions(t){return this._getBlock(t,!0)}getTransaction(t){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return If((()=>Hf(this,void 0,void 0,(function*(){const r=yield this.perform("getTransaction",e);if(null==r)return null==this._emitted["t:"+t]?null:void 0;const n=this.formatter.transactionResponse(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let t=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;t<=0&&(t=1),n.confirmations=t}return this._wrapTransaction(n)}))),{oncePoll:this})}))}getTransactionReceipt(t){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return If((()=>Hf(this,void 0,void 0,(function*(){const r=yield this.perform("getTransactionReceipt",e);if(null==r)return null==this._emitted["t:"+t]?null:void 0;if(null==r.blockHash)return;const n=this.formatter.receipt(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let t=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;t<=0&&(t=1),n.confirmations=t}return n}))),{oncePoll:this})}))}getLogs(t){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield gr({filter:this._getFilter(t)}),r=yield this.perform("getLogs",e);return r.forEach((t=>{null==t.removed&&(t.removed=!1)})),Gf.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)}))}getEtherPrice(){return Hf(this,void 0,void 0,(function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})}))}_getBlockTag(t){return Hf(this,void 0,void 0,(function*(){if("number"==typeof(t=yield t)&&t<0){t%1&&Qf.throwArgumentError("invalid BlockTag","blockTag",t);let e=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return e+=t,e<0&&(e=0),this.formatter.blockTag(e)}return this.formatter.blockTag(t)}))}getResolver(t){return Hf(this,void 0,void 0,(function*(){let e=t;for(;;){if(""===e||"."===e)return null;if("eth"!==t&&"eth"===e)return null;const r=yield this._getResolver(e,"getResolver");if(null!=r){const n=new fd(this,r,t);return e===t||(yield n.supportsWildcard())?n:null}e=e.split(".").slice(1).join(".")}}))}_getResolver(t,e){return Hf(this,void 0,void 0,(function*(){null==e&&(e="ENS");const r=yield this.getNetwork();r.ensAddress||Qf.throwError("network does not support ENS",b.errors.UNSUPPORTED_OPERATION,{operation:e,network:r.name});try{const e=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+Qn(t).substring(2)});return this.formatter.callAddress(e)}catch(t){}return null}))}resolveName(t){return Hf(this,void 0,void 0,(function*(){t=yield t;try{return Promise.resolve(this.formatter.address(t))}catch(e){if(P(t))throw e}"string"!=typeof t&&Qf.throwArgumentError("invalid ENS name","name",t);const e=yield this.getResolver(t);return e?yield e.getAddress():null}))}lookupAddress(t){return Hf(this,void 0,void 0,(function*(){t=yield t;const e=(t=this.formatter.address(t)).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(e,"lookupAddress");if(null==r)return null;const n=sd(yield this.call({to:r,data:"0x691f3431"+Qn(e).substring(2)}),0);return(yield this.resolveName(n))!=t?null:n}))}getAvatar(t){return Hf(this,void 0,void 0,(function*(){let e=null;if(P(t)){const r=this.formatter.address(t).substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(r,"getAvatar");if(!n)return null;e=new fd(this,n,r);try{const t=yield e.getAvatar();if(t)return t.url}catch(t){if(t.code!==b.errors.CALL_EXCEPTION)throw t}try{const t=sd(yield this.call({to:n,data:"0x691f3431"+Qn(r).substring(2)}),0);e=yield this.getResolver(t)}catch(t){if(t.code!==b.errors.CALL_EXCEPTION)throw t;return null}}else if(e=yield this.getResolver(t),!e)return null;const r=yield e.getAvatar();return null==r?null:r.url}))}perform(t,e){return Qf.throwError(t+" not implemented",b.errors.NOT_IMPLEMENTED,{operation:t})}_startEvent(t){this.polling=this._events.filter((t=>t.pollable())).length>0}_stopEvent(t){this.polling=this._events.filter((t=>t.pollable())).length>0}_addEventListener(t,e,r){const n=new td(Wf(t),e,r);return this._events.push(n),this._startEvent(n),this}on(t,e){return this._addEventListener(t,e,!1)}once(t,e){return this._addEventListener(t,e,!0)}emit(t,...e){let r=!1,n=[],i=Wf(t);return this._events=this._events.filter((t=>t.tag!==i||(setTimeout((()=>{t.listener.apply(this,e)}),0),r=!0,!t.once||(n.push(t),!1)))),n.forEach((t=>{this._stopEvent(t)})),r}listenerCount(t){if(!t)return this._events.length;let e=Wf(t);return this._events.filter((t=>t.tag===e)).length}listeners(t){if(null==t)return this._events.map((t=>t.listener));let e=Wf(t);return this._events.filter((t=>t.tag===e)).map((t=>t.listener))}off(t,e){if(null==e)return this.removeAllListeners(t);const r=[];let n=!1,i=Wf(t);return this._events=this._events.filter((t=>t.tag!==i||t.listener!=e||(!!n||(n=!0,r.push(t),!1)))),r.forEach((t=>{this._stopEvent(t)})),this}removeAllListeners(t){let e=[];if(null==t)e=this._events,this._events=[];else{const r=Wf(t);this._events=this._events.filter((t=>t.tag!==r||(e.push(t),!1)))}return e.forEach((t=>{this._stopEvent(t)})),this}}var yd=window&&window.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const gd=new b(qf),vd=["call","estimateGas"];function wd(t,e){if(null==t)return null;if("string"==typeof t.message&&t.message.match("reverted")){const r=P(t.data)?t.data:null;if(!e||r)return{message:t.message,data:r}}if("object"==typeof t){for(const r in t){const n=wd(t[r],e);if(n)return n}return null}if("string"==typeof t)try{return wd(JSON.parse(t),e)}catch(t){}return null}function bd(t,e,r){const n=r.transaction||r.signedTransaction;if("call"===t){const t=wd(e,!0);if(t)return t.data;gd.throwError("missing revert data in call exception; Transaction reverted without a reason string",b.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:e})}if("estimateGas"===t){let r=wd(e.body,!1);null==r&&(r=wd(e,!1)),r&&gd.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",b.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:t,transaction:n,error:e})}let i=e.message;throw e.code===b.errors.SERVER_ERROR&&e.error&&"string"==typeof e.error.message?i=e.error.message:"string"==typeof e.body?i=e.body:"string"==typeof e.responseText&&(i=e.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit/i)&&gd.throwError("insufficient funds for intrinsic transaction cost",b.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:n}),i.match(/nonce (is )?too low/i)&&gd.throwError("nonce has already been used",b.errors.NONCE_EXPIRED,{error:e,method:t,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&gd.throwError("replacement fee too low",b.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:n}),i.match(/only replay-protected/i)&&gd.throwError("legacy pre-eip-155 transactions not supported",b.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:n}),vd.indexOf(t)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted/)&&gd.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",b.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:n}),e}function Ad(t){return new Promise((function(e){setTimeout(e,t)}))}function _d(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}function Ed(t){return t?t.toLowerCase():t}const Md={};class kd extends xi{constructor(t,e,r){if(super(),t!==Md)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");mr(this,"provider",e),null==r&&(r=0),"string"==typeof r?(mr(this,"_address",this.provider.formatter.address(r)),mr(this,"_index",null)):"number"==typeof r?(mr(this,"_index",r),mr(this,"_address",null)):gd.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(t){return gd.throwError("cannot alter JSON-RPC Signer connection",b.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new xd(Md,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((t=>(t.length<=this._index&&gd.throwError("unknown account #"+this._index,b.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(t[this._index]))))}sendUncheckedTransaction(t){t=vr(t);const e=this.getAddress().then((t=>(t&&(t=t.toLowerCase()),t)));if(null==t.gasLimit){const r=vr(t);r.from=e,t.gasLimit=this.provider.estimateGas(r)}return null!=t.to&&(t.to=Promise.resolve(t.to).then((t=>yd(this,void 0,void 0,(function*(){if(null==t)return null;const e=yield this.provider.resolveName(t);return null==e&&gd.throwArgumentError("provided ENS name resolves to null","tx.to",t),e}))))),gr({tx:gr(t),sender:e}).then((({tx:e,sender:r})=>{null!=e.from?e.from.toLowerCase()!==r&&gd.throwArgumentError("from address mismatch","transaction",t):e.from=r;const n=this.provider.constructor.hexlifyTransaction(e,{from:!0});return this.provider.send("eth_sendTransaction",[n]).then((t=>t),(t=>bd("sendTransaction",t,n)))}))}signTransaction(t){return gd.throwError("signing transactions is unsupported",b.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(t){return yd(this,void 0,void 0,(function*(){const e=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(t);try{return yield If((()=>yd(this,void 0,void 0,(function*(){const t=yield this.provider.getTransaction(r);if(null!==t)return this.provider._wrapTransaction(t,r,e)}))),{oncePoll:this.provider})}catch(t){throw t.transactionHash=r,t}}))}signMessage(t){return yd(this,void 0,void 0,(function*(){const e="string"==typeof t?An(t):t,r=yield this.getAddress();return yield this.provider.send("personal_sign",[R(e),r.toLowerCase()])}))}_legacySignMessage(t){return yd(this,void 0,void 0,(function*(){const e="string"==typeof t?An(t):t,r=yield this.getAddress();return yield this.provider.send("eth_sign",[r.toLowerCase(),R(e)])}))}_signTypedData(t,e,r){return yd(this,void 0,void 0,(function*(){const n=yield hi.resolveNames(t,e,r,(t=>this.provider.resolveName(t))),i=yield this.getAddress();return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(hi.getPayload(n.domain,e,n.value))])}))}unlock(t){return yd(this,void 0,void 0,(function*(){const e=this.provider,r=yield this.getAddress();return e.send("personal_unlockAccount",[r.toLowerCase(),t,null])}))}}class xd extends kd{sendTransaction(t){return this.sendUncheckedTransaction(t).then((t=>({hash:t,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:e=>this.provider.waitForTransaction(t,e)})))}}const Nd={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class Sd extends md{constructor(t,e){let r=e;null==r&&(r=new Promise(((t,e)=>{setTimeout((()=>{this.detectNetwork().then((e=>{t(e)}),(t=>{e(t)}))}),0)}))),super(r),t||(t=yr(this.constructor,"defaultUrl")()),mr(this,"connection","string"==typeof t?Object.freeze({url:t}):Object.freeze(vr(t))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((()=>{this._cache.detectNetwork=null}),0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return yd(this,void 0,void 0,(function*(){yield Ad(0);let t=null;try{t=yield this.send("eth_chainId",[])}catch(e){try{t=yield this.send("net_version",[])}catch(t){}}if(null!=t){const e=yr(this.constructor,"getNetwork");try{return e(Ht.from(t).toNumber())}catch(e){return gd.throwError("could not detect network",b.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:e})}}return gd.throwError("could not detect network",b.errors.NETWORK_ERROR,{event:"noNetwork"})}))}getSigner(t){return new kd(Md,this,t)}getUncheckedSigner(t){return this.getSigner(t).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then((t=>t.map((t=>this.formatter.address(t)))))}send(t,e){const r={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:_r(r),provider:this});const n=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(n&&this._cache[t])return this._cache[t];const i=Rf(this.connection,JSON.stringify(r),_d).then((t=>(this.emit("debug",{action:"response",request:r,response:t,provider:this}),t)),(t=>{throw this.emit("debug",{action:"response",error:t,request:r,provider:this}),t}));return n&&(this._cache[t]=i,setTimeout((()=>{this._cache[t]=null}),0)),i}prepareRequest(t,e){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[Ed(e.address),e.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[Ed(e.address),e.blockTag]];case"getCode":return["eth_getCode",[Ed(e.address),e.blockTag]];case"getStorageAt":return["eth_getStorageAt",[Ed(e.address),F(e.position,32),e.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[e.signedTransaction]];case"getBlock":return e.blockTag?["eth_getBlockByNumber",[e.blockTag,!!e.includeTransactions]]:e.blockHash?["eth_getBlockByHash",[e.blockHash,!!e.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[e.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[e.transactionHash]];case"call":return["eth_call",[yr(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0}),e.blockTag]];case"estimateGas":return["eth_estimateGas",[yr(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0})]];case"getLogs":return e.filter&&null!=e.filter.address&&(e.filter.address=Ed(e.filter.address)),["eth_getLogs",[e.filter]]}return null}perform(t,e){return yd(this,void 0,void 0,(function*(){if("call"===t||"estimateGas"===t){const t=e.transaction;if(t&&null!=t.type&&Ht.from(t.type).isZero()&&null==t.maxFeePerGas&&null==t.maxPriorityFeePerGas){const r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((e=vr(e)).transaction=vr(t),delete e.transaction.type)}}const r=this.prepareRequest(t,e);null==r&&gd.throwError(t+" not implemented",b.errors.NOT_IMPLEMENTED,{operation:t});try{return yield this.send(r[0],r[1])}catch(r){return bd(t,r,e)}}))}_startEvent(t){"pending"===t.tag&&this._startPending(),super._startEvent(t)}_startPending(){if(null!=this._pendingFilter)return;const t=this,e=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=e,e.then((function(r){return function n(){t.send("eth_getFilterChanges",[r]).then((function(r){if(t._pendingFilter!=e)return null;let n=Promise.resolve();return r.forEach((function(e){t._emitted["t:"+e.toLowerCase()]="pending",n=n.then((function(){return t.getTransaction(e).then((function(e){return t.emit("pending",e),null}))}))})),n.then((function(){return Ad(1e3)}))})).then((function(){if(t._pendingFilter==e)return setTimeout((function(){n()}),0),null;t.send("eth_uninstallFilter",[r])})).catch((t=>{}))}(),r})).catch((t=>{}))}_stopEvent(t){"pending"===t.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(t)}static hexlifyTransaction(t,e){const r=vr(Nd);if(e)for(const t in e)e[t]&&(r[t]=!0);!function(t,e){t&&"object"==typeof t||pr.throwArgumentError("invalid object","object",t),Object.keys(t).forEach((r=>{e[r]||pr.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)}))}(t,r);const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(e){if(null==t[e])return;const r=O(Ht.from(t[e]));"gasLimit"===e&&(e="gas"),n[e]=r})),["from","to","data"].forEach((function(e){null!=t[e]&&(n[e]=R(t[e]))})),t.accessList&&(n.accessList=aa(t.accessList)),n}}var Ud=window&&window.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const Pd=new b(qf);class Td extends Sd{detectNetwork(){const t=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return Ud(this,void 0,void 0,(function*(){let e=this.network;return null==e&&(e=yield t.detectNetwork.call(this),e||Pd.throwError("no network detected",b.errors.UNKNOWN_ERROR,{}),null==this._network&&(mr(this,"_network",e),this.emit("network",e,null))),e}))}}var Rd={};function Id(t){var e="https://rpc.snapshot.org/"+t;return Rd[t]||(Rd[t]=new Td({url:e,timeout:25e3,allowGzip:!0},Number(t))),Rd[t]}window&&window.__awaiter;new b("wallet/5.6.2");function Cd(t,e,r,n){return ia(hi.hash(t,e,r),n)}function $d(t,n,i,o){return e(this,void 0,void 0,(function(){var e,s,a,u;return r(this,(function(r){switch(r.label){case 0:s="0x1626ba7e",a="function isValidSignature(bytes32 _hash, bytes memory _signature) public view returns (bytes4 magicValue)",r.label=1;case 1:return r.trys.push([1,3,,4]),[4,sp(o,[a],[t,"isValidSignature",[N(i),n]])];case 2:return e=r.sent(),[3,4];case 3:if((u=r.sent()).message.startsWith("missing revert data in call exception"))return[2,!1];throw u;case 4:return[2,e.toLowerCase()===s.toLowerCase()]}}))}))}function Od(t,n,i,o){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return e="0x20c13b0b","function isValidSignature(bytes _hash, bytes memory _signature) public view returns (bytes4 magicValue)",[4,sp(o,["function isValidSignature(bytes _hash, bytes memory _signature) public view returns (bytes4 magicValue)"],[t,"isValidSignature",[N(i),n]])];case 1:return[2,r.sent().toLowerCase()===e.toLowerCase()]}}))}))}function Fd(t,n,i,o){return void 0===o&&(o="1"),e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return e=Id(o),[4,$d(t,n,i,e)];case 1:return r.sent()?[2,!0]:[4,Od(t,n,i,e)];case 2:return[2,r.sent()]}}))}))}function Bd(t){var e=t.domain,r=t.types,n=t.message;return hi.hash(e,r,n)}var jd=["cloudflare-ipfs.com","cf-ipfs.com","ipfs.io","ipfs.fleek.co","gateway.pinata.cloud","dweb.link","ipfs.infura.io"],Dd={1:{key:"1",name:"Ethereum Mainnet",chainId:1,network:"homestead",multicall:"0xeefba1e63905ef1d7acba5a8513c70307c1ce441",ensResolvers:["0x231b0Ee14048e9dCcD1d247744d114a4EB5E8E63","0x4976fb03C32e5B8cfe2b6cCB31c09Ba78EBaBa41"],ensNameWrapper:"0xD4416b13d2b3a9aBae7AcD5D6C2BbDBE25686401",rpc:["https://rpc.ankr.com/eth",{url:"https://api-geth-archive.ankr.com",user:"balancer_user",password:"balancerAnkr20201015"},"https://speedy-nodes-nyc.moralis.io/b9aed21e7bb7bdeb35972c9a/eth/mainnet/archive","https://apis.ankr.com/e62bc219f9c9462b8749defe472d2dc5/6106d4a3ec1d1bcc87ec72158f8fd089/eth/archive/main","https://eth-archival.gateway.pokt.network/v1/5f76124fb90218002e9ce985","https://eth-mainnet.alchemyapi.io/v2/4bdDVB5QAaorY2UE-GBUbM2yQB3QJqzv"],light:["https://cloudflare-eth.com"],ws:["wss://eth-mainnet.ws.alchemyapi.io/v2/4bdDVB5QAaorY2UE-GBUbM2yQB3QJqzv"],explorer:{url:"https://etherscan.io",apiUrl:"https://api.etherscan.io"},start:7929876,logo:"ipfs://QmR2UYZczmYa4s8mr9HZHci5AQwyAnwUW7tSUZz7KWF3sA"},5:{key:"5",name:"Ethereum Testnet Goerli",shortName:"Goerli",chainId:5,network:"goerli",testnet:!0,multicall:"0x77dca2c955b15e9de4dbbcf1246b4b85b651e50e",ensResolvers:["0xd7a4F6473f32aC2Af804B3686AE8F1932bC35750","0x4B1488B7a6B320d2D721406204aBc3eeAa9AD329"],ensNameWrapper:"0x114D4603199df73e7D157787f8778E21fCd13066",rpc:["https://eth-goerli.alchemyapi.io/v2/v4nqH_J-J3STit45Mm07TxuYexMHQsYZ"],explorer:{url:"https://goerli.etherscan.io",apiUrl:"https://api-goerli.etherscan.io"},start:743550,logo:"ipfs://QmR2UYZczmYa4s8mr9HZHci5AQwyAnwUW7tSUZz7KWF3sA"},7:{key:"7",name:"ThaiChain",chainId:7,network:"mainnet",multicall:"0xB9cb900E526e7Ad32A2f26f1fF6Dee63350fcDc5",rpc:["https://rpc.dome.cloud"],ws:["wss://ws.dome.cloud"],explorer:{url:"https://exp.tch.in.th"},logo:"ipfs://QmUcNN6ZMFEPLUw5WCknisSgs7nhWC5p992jSSsJVq34Eo"},8:{key:"8",name:"Ubiq Mainnet",chainId:8,network:"Ubiq mainnet",multicall:"0x6668750957e4083725926B71C41bDF1434C73262",rpc:["https://rpc.octano.dev"],ws:["wss://ws.octano.dev"],explorer:{url:"https://ubiqscan.io"},logo:"ipfs://Qmec3HLoN4QhwZAhw4XTi2aN8Wwmcko5hHN22sHARzb9tw"},10:{key:"10",name:"Optimism Mainnet",chainId:10,network:"Optimism mainnet",multicall:"0x35A6Cdb2C9AD4a45112df4a04147EB07dFA01aB7",rpc:["https://opt-mainnet.g.alchemy.com/v2/JzmIL4Q3jBj7it2duxLFeuCa9Wobmm7D"],explorer:{url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io"},start:657806,logo:"ipfs://QmfF4kwhGL8QosUXvgq2KWCmavhKBvwD6kbhs7L4p5ZAWb"},14:{key:"14",name:"Flare Mainnet",shortName:"Flare",chainId:14,network:"flare",multicall:"0x336897CAe2791048DA77EEa2A43BFB96342b9CE1",rpc:["https://flare-api.flare.network/ext/C/rpc"],explorer:{url:"https://flare-explorer.flare.network"},start:1702e3,logo:"ipfs://QmevAevHxRkK2zVct2Eu6Y7s38YC4SmiAiw9X7473pVtmL"},16:{key:"16",name:"Flare Testnet Coston",shortName:"Coston",chainId:16,network:"coston",testnet:!0,multicall:"0xF7aB82e5253F65496e21dF0dacfA6D5e765b4874",rpc:["https://coston-api.flare.network/ext/bc/C/rpc"],explorer:{url:"https://coston-explorer.flare.network"},start:4782058,logo:"ipfs://QmW7Ljv2eLQ1poRrhJBaVWJBF1TyfZ8QYxDeELRo6sssrj"},19:{key:"19",name:"Songbird Canary-Network",shortName:"Songbird",chainId:19,network:"songbird",multicall:"0x17032Ea9c3a13Ed337665145364c0d2aD1108c91",rpc:["https://songbird-api.flare.network/ext/C/rpc"],explorer:{url:"https://songbird-explorer.flare.network"},start:21807126,logo:"ipfs://QmXyvnrZY8FUxSULfnKKA99sAEkjAHtvhRx5WeHixgaEdu"},20:{key:"20",name:"Elastos Smart Chain",shortName:"ESC",chainId:20,network:"mainnet",multicall:"0x20205D3b6008bea1411bd4CaEA2D923FE231B6E5",rpc:["https://rpc.glidefinance.io","https://escrpc.elaphant.app"],explorer:{url:"https://esc.elastos.io"},start:7826070,logo:"ipfs://Qmd2muU2UHo5WsTxE9EpZZJeatimTT9GD4sEnHQe6i9wiA"},25:{key:"25",name:"Cronos Mainnet",shortName:"Cronos",chainId:25,network:"mainnet",multicall:"0x6F522a3982e8F9A50A2EDc9E46ed1A3aE2B3FD3a",rpc:["https://evm-cronos.crypto.org"],explorer:{url:"https://cronos.crypto.org/explorer"},start:4067,logo:"ipfs://QmfSJbtirJoa3Pt7o5Fdm85wbyw9V1hpzqLr5PQbdnfsAj"},30:{key:"30",name:"RSK Mainnet",chainId:30,network:"rsk mainnet",multicall:"0x4eeebb5580769ba6d26bfd07be636300076d1831",rpc:["https://public-node.rsk.co"],explorer:{url:"https://explorer.rsk.co"},start:2516442,logo:"ipfs://QmXTwpE1SqoNZmyY4c3fYWy6qUgQELsyWKbgJo2Pg6K6V9"},31:{key:"31",name:"RSK Testnet",chainId:31,network:"rsk testnet",testnet:!0,multicall:"0x4eeebb5580769ba6d26bfd07be636300076d1831",rpc:["https://public-node.testnet.rsk.co"],explorer:{url:"https://explorer.testnet.rsk.co"},start:1002369,logo:"ipfs://QmbpnJowePd9sDy8hrJv7LsTBkxksuJauw56Y7BqdMdzec"},36:{key:"36",name:"Dxchain Mainnet",shortName:"DXC",chainId:36,network:"mainnet",multicall:"0x49186b3b30922F89ca03B5f2bE7FFd8db9d0A761",rpc:["https://mainnet.dxchain.com"],explorer:{url:"https://dxscan.io"},start:207070,logo:"ipfs://QmYBup5bWoBfkaHntbcgW8Ji7ncad7f53deJ4Q55z4PNQs"},44:{key:"44",name:"Crab Network",shortName:"Crab",chainId:44,network:"mainnet",multicall:"0x4617D470F847Ce166019d19a7944049ebB017400",rpc:["https://crab-rpc.darwinia.network"],explorer:{url:"https://crab.subscan.io"},logo:"ipfs://QmTpySsG7rjLwuZX1Ep4ewGyVAyGrvCRC1oqEvU6oP1huf"},46:{key:"46",name:"Darwinia Network",shortName:"Darwinia",chainId:46,network:"mainnet",multicall:"0x67f9ae42EaA9a8aBf065D60ec6Ab3C1A11370607",rpc:["https://rpc.darwinia.network"],explorer:{url:"https://darwinia.subscan.io"},start:141853,logo:"ipfs://bafkreicf55maidhx46pyu3mwsshlr43xbewr6tkckkonh4nesbkp7krwkm"},50:{key:"50",name:"XDC.Network",shortName:"XDC",chainId:50,network:"mainnet",multicall:"0xc8160deb19559d93eadb82798ededce696ebcaf5",rpc:["https://snapshotrpc.blocksscan.io/","https://rpc.xinfin.network"],ws:["wss://ws.blocksscan.io"],explorer:{url:"http://xdc.blocksscan.io"},logo:"ipfs://QmaX3pqjWGg97bR6jjxvTopRkJVxrvwp6VB4jf1Lknq111"},51:{key:"51",name:"XDC Apothem.network",shortName:"XDC",chainId:51,network:"testnet",multicall:"0x3b353b02a8b42ee4222ea4be0836629b1f40c8db",rpc:["https://apothemrpc.blocksscan.io"],ws:["wss://apothemws.blocksscan.io"],explorer:{url:"http://apothem.blocksscan.io"},logo:"ipfs://QmaX3pqjWGg97bR6jjxvTopRkJVxrvwp6VB4jf1Lknq111"},56:{key:"56",name:"Binance Smart Chain Mainnet",shortName:"BSC",chainId:56,network:"mainnet",multicall:"0x1ee38d535d541c55c9dae27b12edf090c608e6fb",rpc:["https://speedy-nodes-nyc.moralis.io/b9aed21e7bb7bdeb35972c9a/bsc/mainnet/archive","https://rpc.ankr.com/bsc","https://bsc.getblock.io/mainnet/?api_key=91f8195f-bf46-488f-846a-73d6853790e7","https://bsc-private-dataseed1.nariox.org","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed1.binance.org"],explorer:{url:"https://bscscan.com"},start:461230,logo:"ipfs://QmWQaQ4Tv28DwA4DRKjSDJFWY9mZboGvuu77J8nh7kucxv"},58:{key:"58",name:"Ontology Mainnet",chainId:58,network:"mainnet",multicall:"0xce6292279bf688173B269Df080E14407470A9E60",rpc:["https://dappnode1.ont.io:10339","https://dappnode2.ont.io:10339","https://dappnode3.ont.io:10339","https://dappnode4.ont.io:10339"],explorer:{url:"https://explorer.ont.io/"},logo:"ipfs://Qme21sVqfwvrjkZHaeKaBH1F8AKPjbAV7vF7rH6akaLkU1"},61:{key:"61",name:"Ethereum Classic Mainnet",shortName:"Ethereum Classic",chainId:61,network:"mainnet",multicall:"0x51be3a92C56ae7E207C5b5Fd87F7798Ce82C1AC2",rpc:["https://www.ethercluster.com/etc"],explorer:{url:"https://blockscout.com/etc/mainnet"},logo:"ipfs://QmVegc28DvA7LjKUFysab81c9BSuN4wQVDQkRXyAtuEBis"},65:{key:"65",name:"OKExChain Testnet",shortName:"OEC Testnet",chainId:65,network:"oec testnet",testnet:!0,multicall:"0x04c68A7fB750ca0Ba232105B3b094926a0f77645",rpc:["https://exchaintestrpc.okex.org"],ws:["wss://exchaintestws.okex.org:8443"],explorer:{url:"https://www.oklink.com/okexchain-test"},start:5320359,logo:"ipfs://Qmd7dKnNwHRZ4HRCbCXUbkNV7gP28fGqPdjbHtjRtT9sQF"},66:{key:"66",name:"OKExChain Mainnet",shortName:"OEC Mainnet",chainId:66,network:"oec mainnet",multicall:"0x6EB187d8197Ac265c945b69f3c3064A6f3831866",rpc:["https://exchainrpc.okex.org"],ws:["wss://exchainws.okex.org:8443"],explorer:{url:"https://www.oklink.com/okexchain"},start:5076543,logo:"ipfs://Qmd7dKnNwHRZ4HRCbCXUbkNV7gP28fGqPdjbHtjRtT9sQF"},69:{key:"69",name:"Optimism Kovan",chainId:69,network:"Optimism testnet",testnet:!0,multicall:"0x28e9a2329aa6b675ca251a2ccaa7fb029c1e9bfb",rpc:["https://opt-kovan.g.alchemy.com/v2/JzmIL4Q3jBj7it2duxLFeuCa9Wobmm7D"],explorer:{url:"https://kovan-optimistic.etherscan.io"},start:882942,logo:"ipfs://QmfF4kwhGL8QosUXvgq2KWCmavhKBvwD6kbhs7L4p5ZAWb"},70:{key:"70",name:"Hoo Smart Chain Mainnet",shortName:"hsc",chainId:70,network:"Mainnet",multicall:"0xd4b794b89baccb70ef851830099bee4d69f19ebc",rpc:["https://http-mainnet2.hoosmartchain.com"],ws:["wss://ws-mainnet2.hoosmartchain.com"],explorer:{url:"https://hooscan.com"},start:404118,logo:"ipfs://QmNhFCVw5GDsu86sGchoRNvQjcr5GL79UJQ3xCHzdFbZYk"},74:{key:"74",name:"IDChain",shortName:"IDChain",chainId:74,network:"mainnet",multicall:"0x41d289c966D51342A515A19dE9c27d16079c94E0",rpc:["https://idchain.one/archive/rpc/","https://idchain.songadao.org/rpc"],explorer:{url:"https://explorer.idchain.one"},start:10780012,logo:"ipfs://QmXAKaNsyv6ctuRenYRJuZ1V4kn1eFwkUtjrjzX6jiKTqe"},80:{key:"80",name:"GeneChain",chainId:80,network:"Mainnet",multicall:"0x9e6ed491171A0D9089892aA5F14800f9f32038eb",rpc:["https://rpc.genechain.io"],explorer:{url:"https://scan.genechain.io"},logo:"ipfs://QmSV3LTGzE4159zLK4xJVDH5t8iKhY4peh7VAkjefawr2q"},81:{key:"81",name:"Shibuya Network",shortName:"Shibuya",chainId:81,network:"testnet",testnet:!0,multicall:"0x3E90A35839ff0Aa32992d33d861f24dC95BBf74d",rpc:["https://rpc.shibuya.astar.network:8545"],explorer:{url:"https://blockscout.com/shibuya"},start:856303,logo:"ipfs://QmZLQVsUqHBDXutu6ywTvcYXDZG2xBstMfHkfJSzUNpZsc"},82:{key:"82",name:"Meter Mainnet",shortName:"Meter",chainId:82,network:"mainnet",multicall:"0x579De77CAEd0614e3b158cb738fcD5131B9719Ae",rpc:["https://rpc.meter.io"],explorer:{url:"https://scan.meter.io"},start:4992871,logo:"ipfs://QmSZvT9w9eUDvV1YVaq3BKKEbubtNVqu1Rin44FuN4wz11"},87:{key:"87",name:"Nova Network",shortName:"Nova",chainId:87,network:"mainnet",multicall:"0x07f6b55a5dae24ac8011cc2cb815de8316e2b965",rpc:["https://dev.rpc.novanetwork.io/"],explorer:{url:"https://explorer.novanetwork.io/"},start:1081731,logo:"ipfs://QmTTamJ55YGQwMboq4aqf3JjTEy5WDtjo4GBRQ5VdsWA6U"},97:{key:"97",name:"Binance Smart Chain Testnet",shortName:"BSC Testnet",chainId:97,network:"testnet",testnet:!0,multicall:"0x8b54247c6BAe96A6ccAFa468ebae96c4D7445e46",rpc:["https://data-seed-prebsc-1-s1.binance.org:8545","https://speedy-nodes-nyc.moralis.io/f2963e29bec0de5787da3164/bsc/testnet/archive"],explorer:{url:"https://testnet.bscscan.com"},start:3599656,logo:"ipfs://QmWQaQ4Tv28DwA4DRKjSDJFWY9mZboGvuu77J8nh7kucxv"},99:{key:"99",name:"POA Core",shortName:"POA",chainId:99,network:"mainnet",multicall:"0x2754BB10580dFc6d8Ce6d6CA2939021A06923394",rpc:["https://core.poa.network"],explorer:{url:"https://blockscout.com/poa/core"},start:22543252,logo:"ipfs://QmZNFCQGA7qT4XJnPSH5NNYrqK6aFsfzZ1NzJwp5D4Tdjr"},100:{key:"100",name:"Gnosis Chain",shortName:"xDAI",chainId:100,network:"mainnet",multicall:"0xb5b692a88bdfc81ca69dcb1d924f59f0413a602a",rpc:["https://gno.getblock.io/mainnet/6c1d1e6e-75d9-452f-a863-a694bff93d5c/","https://xdai-archive.blockscout.com","https://poa-xdai.gateway.pokt.network/v1/5f76124fb90218002e9ce985","https://rpc.gnosischain.com"],light:["https://rpc.gnosischain.com"],ws:["wss://rpc.xdaichain.com/wss"],explorer:{url:"https://blockscout.com/poa/xdai"},start:4108192,logo:"ipfs://QmZeiy8Ax4133wzxUQM9ky8z5XFVf6YLFjJMmTWbWVniZR"},106:{key:"106",name:"Velas EVM Mainnet",shortName:"Velas",chainId:106,network:"mainnet",multicall:"0x597Cc7c49a8e0041d3A43ec8D7dc651b47879108",rpc:["https://evmexplorer.velas.com/rpc","https://explorer.velas.com/rpc"],ws:["wss://api.velas.com"],explorer:{url:"https://evmexplorer.velas.com"},start:141800,logo:"ipfs://QmNXiCXJxEeBd7ZYGYjPSMTSdbDd2nfodLC677gUfk9ku5"},108:{key:"108",name:"Thundercore Mainnet",chainId:108,network:"mainnet",multicall:"0x3017086deef56679e267f67f66c4415109b7a97f",rpc:["https://mainnet-rpc.thundercore.com/archived/SNAPSHOTEuR82a75fLYA"],explorer:{url:"https://viewblock.io/thundercore"},start:94425385,logo:"ipfs://bafkreifc5z5vtvqx2luzgateyvoocwpd2ifv2hwufxdnyl2a767wa6icli"},111:{key:"111",name:"Velas EVM Testnet",shortName:"Velas Testnet",chainId:111,network:"testnet",testnet:!0,multicall:"0x55a827538FbF41b7334Dd49001220597898Ad954",rpc:["https://evmexplorer.testnet.velas.com/rpc","https://explorer.testnet.velas.com/rpc"],ws:["wss://api.testnet.velas.com"],explorer:{url:"https://evmexplorer.testnet.velas.com"},start:1195129,logo:"ipfs://QmQFWn7JJLigUPvvp6uKg6EWikx7QeNxQ2vaCngU3Uthho"},119:{key:"119",name:"ENULS Mainnet",chainId:119,network:"mainnet",multicall:"0xd7d2Aa52f5491cB60ccD85b8c39935BF0baCd142",rpc:["https://evmapi.nuls.io/"],explorer:{url:"https://evmscan.nuls.io"},start:501318,logo:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy"},122:{key:"122",name:"Fuse Mainnet",shortName:"Fuse",chainId:122,network:"mainnet",multicall:"0x7a59441fb06666F6d2D766393d876945D06a169c",rpc:["https://explorer-node.fuse.io/","https://oefusefull1.liquify.info/"],explorer:{url:"https://explorer.fuse.io"},start:11923459,logo:"ipfs://QmXjWb64nako7voaVEifgdjAbDbswpTY8bghsiHpv8yWtb"},128:{key:"128",name:"Huobi Eco Chain Mainnet",shortName:"heco",chainId:128,network:"Mainnet",multicall:"0x37ab26db3df780e7026f3e767f65efb739f48d8e",rpc:["https://pub001.hg.network/rpc"],ws:["wss://pub001.hg.network/ws"],explorer:{url:"https://hecoinfo.com"},start:403225,logo:"ipfs://QmSJEdToMvmjqoPvVq7awwdMeYKhXUYZMBiax9yHtFGMSq"},137:{key:"137",name:"Polygon Mainnet",shortName:"Polygon",chainId:137,network:"mainnet",multicall:"0xCBca837161be50EfA5925bB9Cc77406468e76751",rpc:["https://rpc.ankr.com/polygon","https://speedy-nodes-nyc.moralis.io/b9aed21e7bb7bdeb35972c9a/polygon/mainnet/archive","https://speedy-nodes-nyc.moralis.io/f2963e29bec0de5787da3164/polygon/mainnet/archive","https://rpc-mainnet.maticvigil.com/v1/1cfd7598e5ba6dcf0b4db58e8be484badc6ea08e"],ws:["wss://ws-mainnet.matic.network"],explorer:{url:"https://polygonscan.com",apiUrl:"https://api.polygonscan.com"},start:9834491,logo:"ipfs://QmaGokGqgjknfa4xnXKnnwC5ZyXzUjQ7p6KEe4D8G5uFFE"},144:{key:"144",name:"PHI Network",shortName:"PHI",chainId:144,network:"mainnet",multicall:"0xc2f41B404a6757863AAeF49ff93039421acCd630",rpc:["https://connect.phi.network"],explorer:{url:"https://phiscan.com"},start:360030,logo:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a"},188:{key:"188",name:"Bytom Sidechain",shortName:"BMC",chainId:188,network:"mainnet",multicall:"0xDA09528B093246eC70139b657d3B7A3bd5F4C859",rpc:["https://mainnet.bmcchain.com/"],explorer:{url:"https://bmc.blockmeta.com/"},start:4720651,logo:"ipfs://bafkreiabhsxuq35pp4kmrbptdeypd6clhcy3ue7ydpppo6onoo4igcjqia"},246:{key:"246",name:"Energy Web Chain",shortName:"EWC",chainId:246,network:"mainnet",multicall:"0x0767F26d0D568aB61A98b279C0b28a4164A6f05e",rpc:["https://voting-rpc.carbonswap.exchange"],explorer:{url:"https://explorer.energyweb.org"},start:12086501,logo:"ipfs://Qmai7AGHgs8NpeGeXgbMZz7pS2i4kw44qubCJYGrZW2f3a"},250:{key:"250",name:"Fantom Opera",shortName:"fantom",chainId:250,network:"Mainnet",multicall:"0x7f6A10218264a22B4309F3896745687E712962a0",rpc:["https://rpc.ankr.com/fantom","https://rpc.ftm.tools","https://rpcapi.fantom.network"],explorer:{url:"https://ftmscan.com"},start:2497732,logo:"ipfs://QmVEgNeQDKnXygeGxfY9FywZpNGQu98ktZtRJ9bToYF6g7"},256:{key:"256",name:"Huobi Eco Chain Testnet",shortName:"heco",chainId:256,network:"testnet",testnet:!0,multicall:"0xC33994Eb943c61a8a59a918E2de65e03e4e385E0",rpc:["https://http-testnet.hecochain.com"],ws:["wss://ws-testnet.hecochain.com"],explorer:{url:"https://testnet.hecoinfo.com"},start:379560,logo:"ipfs://QmSJEdToMvmjqoPvVq7awwdMeYKhXUYZMBiax9yHtFGMSq"},269:{key:"269",name:"High Performance Blockchain Mainnet",shortName:"HPB",chainId:269,network:"mainnet",testnet:!1,multicall:"0x67D0f263aef2F6167FA77353695D75b582Ff4Bca",rpc:["https://hpbnode.com"],ws:["wss://ws.hpbnode.com"],explorer:{url:"https://hscan.org"},start:13960096,logo:"ipfs://QmU7f1MyRz8rLELFfypnWZQjGbDGYgZtC9rjw47jYMYrnu"},280:{key:"280",name:"zkSync 2 testnet",shortName:"zkSync2",chainId:280,network:"zkSync alpha testnet",testnet:!0,multicall:"0xD2CF10EF0b64B2C9B7147740AEda677d3EfeD2f8",rpc:["https://zksync2-testnet.zksync.dev"],explorer:{url:"https://zksync2-testnet.zkscan.io/"},start:1374275,logo:"ipfs://QmPDbdmwpEeenaLHAbqcAerXdH9Z4Gfd7gm9M8tbkkjcAS"},288:{key:"288",name:"Boba Mainnet",shortName:"Boba",chainId:288,network:"mainnet",multicall:"0xfb91c019D9F12A0f9c23B4762fa64A34F8daDb4A",rpc:["https://mainnet.boba.network/"],explorer:{url:"https://blockexplorer.boba.network"},start:74,logo:"ipfs://QmNc7QZFpPDue3Ef4SsuX55RHkqXxUxSyTCpoASeg2hW6d"},321:{key:"321",name:"KCC Mainnet",shortName:"KCC",chainId:321,network:"mainnet",multicall:"0xa64D6AFb48225BDA3259246cfb418c0b91de6D7a",rpc:["https://rpc-mainnet.kcc.network"],ws:["wss://rpc-ws-mainnet.kcc.network"],explorer:{url:"https://explorer.kcc.io"},start:1487453,logo:"ipfs://QmRdzYGhFRG8QLzMJahHrw3vETE2YZ9sywQbEkenSjKEvb"},324:{key:"324",name:"zkSync Era",shortName:"zkSync-era",chainId:324,network:"zkSync Era Mainnet",multicall:"0xF9cda624FBC7e059355ce98a31693d299FACd963",rpc:["https://mainnet.era.zksync.io"],explorer:{url:"https://explorer.zksync.io/"},start:3908235,logo:"ipfs://QmPDbdmwpEeenaLHAbqcAerXdH9Z4Gfd7gm9M8tbkkjcAS"},336:{key:"336",name:"Shiden Network",shortName:"Shiden",chainId:336,network:"mainnet",multicall:"0x3E90A35839ff0Aa32992d33d861f24dC95BBf74d",rpc:["https://rpc.shiden.astar.network:8545","https://shiden.api.onfinality.io/public"],explorer:{url:"https://blockscout.com/shiden"},start:1170016,logo:"ipfs://QmcqGQE4Sk73zXc3e91TUFFefKBVeaNgbxV141XkSNE4xj"},361:{key:"361",name:"Theta Mainnet",shortName:"Theta",chainId:361,network:"mainnet",multicall:"0xB48BbAD564Ceb6fB30cCea2Af248ccF6398aEab5",rpc:["https://eth-rpc-api.thetatoken.org/rpc"],explorer:{url:"https://explorer.thetatoken.org"},start:12559216,logo:"ipfs://QmcMP9s9mUqfT2SCiP75sZgAVVev7H7RQAKiSx9xWEDKwe"},369:{key:"369",name:"Pulsechain Mainnet",shortName:"Pulsechain",chainId:369,network:"mainnet",multicall:"0xdbdd0FD8B16F0092f306392b699D7fbddaA9011B",rpc:["https://rpc.pulsechain.com"],explorer:{url:"https://scan.pulsechain.com/"},start:17657774,logo:"ipfs://QmWUsiEWdejtHZ9B9981TYXn7Ds8C7fkB1S4h5rP3kCCZR"},416:{key:"416",name:"SX Network",shortName:"SX",chainId:416,network:"mainnet",multicall:"0x834a005DDCF990Ba1a79f259e840e58F2D14F49a",rpc:["https://rpc.sx.technology"],ws:["wss://rpc.sx.technology/ws"],explorer:{url:"https://explorer.sx.technology"},start:2680605,logo:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF"},499:{key:"499",name:"Rupaya",shortName:"RUPX",chainId:499,network:"mainnet",multicall:"0x7955FF653FfDBf13056FeAe227f655CfF5C194D5",rpc:["https://rpc.rupx.io"],ws:["wss://ws.rupx.io"],explorer:{url:"http://scan.rupx.io"},start:2762929,logo:"ipfs://QmXLZyAr6UNFQ4tkNwSyeNByFvzwYpwiNgV5vHuoxn74Rg"},534:{key:"534",name:"Candle",shortName:"CNDL",chainId:534,network:"mainnet",multicall:"0x4A21871491adC2C429F9903918C306c97dd295A3",rpc:["https://rpc.cndlchain.com","https://candle-rpc.com"],explorer:{url:"http://candleexplorer.com"},start:8e5,logo:"ipfs://Qmbe3ChumXNRfHcLsNBY2APRrGxkFWP68Nb35MaKMRfPye"},592:{key:"592",name:"Astar Network",shortName:"Astar",chainId:592,network:"mainnet",multicall:"0x3E90A35839ff0Aa32992d33d861f24dC95BBf74d",rpc:["https://astar.api.onfinality.io/public","https://rpc.astar.network:8545"],explorer:{url:"https://blockscout.com/astar"},start:366482,logo:"ipfs://QmZLQVsUqHBDXutu6ywTvcYXDZG2xBstMfHkfJSzUNpZsc"},595:{key:"595",name:"Acala Mandala Testnet",chainId:595,network:"testnet",testnet:!0,multicall:"0x8ce86f733024c1ccae2224f05c11fd50713d6f81",rpc:["https://tc7-eth.aca-dev.network"],explorer:{url:"https://blockscout.mandala.acala.network"},start:1335512,logo:"ipfs://QmY1ZYBUzb46Mto7G1GitQWfaqq6n8Q4WArxFBzhNdLqvg"},599:{key:"599",name:"Metis Testnet",chainId:599,network:"testnet",testnet:!0,multicall:"0x5A958c159F4AEA990b1195C44624B94dC0825470",rpc:["https://goerli.gateway.metisdevops.link"],explorer:{url:"https://goerli.explorer.metisdevops.link/"},start:1018715,logo:"ipfs://QmYeskHqrEvWHqeAuqett64LxfH52HUXZi2T9BAMmgKvBF"},647:{key:"647",name:"SX Network Testnet",shortName:"647",chainId:647,network:"testnet",testnet:!0,multicall:"0x750e0f8efD3c3cF41c4D8BB0355d659bCbc75dB9",rpc:["https://rpc.toronto.sx.technology"],ws:["wss://rpc.toronto.sx.technology/ws"],explorer:{url:"https://explorer.toronto.sx.technology"},start:14441039,logo:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF"},813:{key:"813",name:"Qitmeer Mainnet",shortName:"MEER",chainId:813,network:"mainnet",multicall:"0x55034b2cF530ae3A8fC1e2e4523F58496796610F",rpc:["https://evm-dataseed1.meerscan.io","https://evm-dataseed.meerscan.com","https://evm-dataseed2.meerscan.io","https://evm-dataseed3.meerscan.io"],explorer:{url:"https://evm.meerscan.io"},start:43317,logo:"ipfs://QmXvum7SNVaAqAc2jNzR1NpNZN1GGvNaKWydg8a1GEDQ7y"},841:{key:"841",name:"Taraxa Mainnet",shortName:"841",chainId:841,network:"mainnet",multicall:"0xFCe7a3121B42664AaD145712e1c2Bf2e38f60AA1",rpc:["https://rpc.mainnet.taraxa.io"],ws:["wss://ws.mainnet.taraxa.io"],explorer:{url:"https://mainnet.explorer.taraxa.io"},start:1515906,logo:"ipfs://Qmcc6ZCAGESMzZzoj5LsTVcCo2E35x3Ydk71uPJyov6Mwx"},842:{key:"842",name:"Taraxa Testnet",shortName:"842",chainId:842,network:"testnet",testnet:!0,multicall:"0x7749051abc57e1105941Ea3Eb2a3F873F300E861",rpc:["https://rpc.testnet.taraxa.io"],ws:["wss://ws.testnet.taraxa.io"],explorer:{url:"https://testnet.explorer.taraxa.io"},start:1462328,logo:"ipfs://Qmcc6ZCAGESMzZzoj5LsTVcCo2E35x3Ydk71uPJyov6Mwx"},888:{key:"888",name:"Wanchain",chainId:888,network:"mainnet",multicall:"0xba5934ab3056fca1fa458d30fbb3810c3eb5145f",rpc:["https://gwan-ssl.wandevs.org:56891"],ws:["wss://api.wanchain.org:8443/ws/v3/ddd16770c68f30350a21114802d5418eafe039b722de52b488e7eee1ee2cd73f"],explorer:{url:"https://www.wanscan.org"},start:11302663,logo:"ipfs://QmewFFN44rkxESFsHG8edaLt1znr62hjvZhGynfXqruzX3"},940:{key:"940",name:"PulseChain Testnet",shortName:"pulsechain",chainId:940,network:"Testnet",multicall:"0x5e67901C2Dd1915E9Ef49aF39B62C28DF8C2c529",rpc:["https://rpc.testnet.pulsedisco.net"],ws:["wss://ws.rpc.testnet.pulsedisco.net"],explorer:{url:"https://scan.v2.testnet.pulsechain.com"},start:15123138,logo:"ipfs://QmYqkn8pJUaV9KcEPYEvRPwgbfeozLEvcQ9aEwKNRUL3cR"},941:{key:"941",name:"PulseChain Testnet V2B",shortName:"pulsechain",chainId:941,network:"Testnet v2B",multicall:"0x959a437F1444DaDaC8aF997E71EAF0479c810267",rpc:["https://rpc.testnet.pulsedisco.net"],ws:["wss://ws.rpc.testnet.pulsedisco.net"],explorer:{url:"https://scan.v2b.testnet.pulsechain.com"},start:14473847,logo:"ipfs://QmYqkn8pJUaV9KcEPYEvRPwgbfeozLEvcQ9aEwKNRUL3cR"},1001:{key:"1001",name:"Klaytn Baobab Testnet",shortName:"Boabab",chainId:1001,network:"testnet",multicall:"0x40643B8Aeaaca0b87Ea1A1E596e64a0e14B1d244",rpc:["https://archive-en.baobab.klaytn.net"],ws:["wss://archive-en.baobab.klaytn.net/ws"],explorer:{url:"https://baobab.scope.klaytn.com/"},logo:"ipfs://QmYACyZcidcFtMo4Uf9H6ZKUxTP2TQPjGzNjcUjqYa64dt"},1002:{key:"1002",name:"KardiaChain Mainnet",shortName:"KAI",chainId:24,network:"mainnet",multicall:"0xd9c92F2287B7802A37eC9BEce96Aa65fb5f31E1b",rpc:["https://kai-internal.kardiachain.io"],explorer:{url:"https://explorer.kardiachain.io"},logo:"ipfs://QmVH3uyPQDcrPC1DMUWCb7HayMv1oMAiKehuWwP2C2fdgM"},1071:{key:"1071",name:"Shimmer EVM Testnet",shortName:"ShimmerEVM",chainId:1071,network:"testnet",testnet:!0,multicall:"0xb6d9a0849bA7a6FB565567A6013cFEb8d91A1688",rpc:["https://json-rpc.evm.testnet.shimmer.network/"],explorer:{url:"https://explorer.evm.testnet.shimmer.network/"},start:38066,logo:"ipfs://QmYGxmEhV6djksUk97pdE9TmL6DXm9KW8BP7pwUv8pqp8r"},1088:{key:"1088",name:"Metis",shortName:"metis",chainId:1088,network:"mainnet",multicall:"0xc39aBB6c4451089dE48Cffb013c39d3110530e5C",rpc:["https://andromeda.metis.io/?owner=1088"],explorer:{url:"https://andromeda-explorer.metis.io"},start:451,logo:"ipfs://QmYeskHqrEvWHqeAuqett64LxfH52HUXZi2T9BAMmgKvBF"},1116:{key:"1116",name:"Core Chain Mainnet ",shortName:"Core",chainId:1116,network:"mainnet",multicall:"0x024f0041b76B598c2A0a75004F8447FaF67BD004",rpc:["https://rpc.coredao.org/"],explorer:{url:"https://scan.coredao.org"},start:853908,logo:"ipfs://QmVctLQ44vhkwejja9DDjDYUdYgVRBEWs242mhd95SeM5q"},1234:{key:"1234",name:"Step Network",shortName:"stepnetwork",chainId:1234,network:"mainnet",multicall:"0x176CcFFbAB792Aaa0da7C430FE20a7106d969f66",rpc:["https://rpc.step.network"],explorer:{url:"https://stepscan.io"},start:22,logo:"ipfs://QmUj734i8ggjnKhaoA346cA7rEuE5GkV4aDXQ1EKaQWdEF"},1284:{key:"1284",name:"Moonbeam",shortName:"GLMR",chainId:1284,network:"mainnet",multicall:"0x83e3b61886770de2F64AAcaD2724ED4f08F7f36B",rpc:["https://rpc.api.moonbeam.network"],explorer:{url:"https://moonscan.io/"},start:171135,logo:"ipfs://QmWKTEK2pj5sBBbHnMHQbWgw6euVdBrk2Ligpi2chrWASk"},1285:{key:"1285",name:"Moonriver (Kusama)",shortName:"Moonriver",chainId:1285,network:"mainnet",multicall:"0x537004440ffFE1D4AE9F009031Fc2b0385FCA9F1",rpc:["https://rpc.api.moonriver.moonbeam.network"],explorer:{url:"https://blockscout.moonriver.moonbeam.network"},start:413539,logo:"ipfs://QmXtgPesL87Ejhq2Y7yxsaPYpf4RcnoTYPJWPcv6iiYhoi"},1287:{key:"1287",name:"Moonbase Alpha TestNet",shortName:"Moonbase",chainId:1287,network:"testnet",testnet:!0,multicall:"0xf09FD6B6FF3f41614b9d6be2166A0D07045A3A97",rpc:["https://rpc.testnet.moonbeam.network"],explorer:{url:"https://moonbase-blockscout.testnet.moonbeam.network"},start:859041,logo:"ipfs://QmeGbNTU2Jqwg8qLTMGW8n8HSi2VdgCncAaeGzLx6gYnD7"},1319:{key:"1319",name:"AITDChain Mainnet",shortName:"AITD",chainId:1319,network:"mainnet",multicall:"0x16e98974D30263252aa273dC8e3d1d48380845FB",rpc:["https://node.aitd.io"],explorer:{url:"http://aitd-explorer-new.aitd.io"},start:1893,logo:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy"},1663:{key:"1663",name:"Horizen Gobi Testnet",shortName:"Gobi",chainId:1663,network:"testnet",multicall:"0xC743e4910Bdd4e5aBacCA38F74cdA270281C5eef",rpc:["https://gobi-testnet.horizenlabs.io/ethv1"],explorer:{url:"https://gobi-explorer.horizen.io"},start:1,logo:"ipfs://QmUYQdsnkUoiDiQ3WaWrtH7fsc5yQDC7kZJCHmC2qWPTPt"},1701:{key:"1701",name:"Anytype EVM Chain",shortName:"AnytypeChain",chainId:1701,network:"mainnet",multicall:"0x4542a07dE7f8A1cEB85aEcBFD0d5338e9886EF49",rpc:["https://geth.anytype.io"],explorer:{url:"https://explorer.anytype.io"},start:1126886,logo:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG"},1818:{key:"1818",name:"Cubechain mainnet",shortName:"cube",chainId:1818,network:"mainnet",testnet:!1,multicall:"0x28d2ebdb36369db1c51355cdc0898754d1a1c3c5",rpc:["https://http-mainnet-archive.cube.network"],explorer:{url:"https://www.cubescan.network"},start:0,logo:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz"},1819:{key:"1819",name:"Cubechain testnet",shortName:"cube",chainId:1819,network:"testnet",testnet:!0,multicall:"0x5db2AB28beD8EBDDe5F7202F5a11fF7E78Ad1FB5",rpc:["https://http-testnet-archive.cube.network"],explorer:{url:"https://testnet.cubescan.network"},start:0,logo:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz"},2e3:{key:"2000",name:"Doge Chain",shortName:"dogechain",chainId:2e3,network:"mainnet",multicall:"0x6f9D3f3932B417bd4957585D236Cbc32b32C0BDc",rpc:["https://rpc.dogechain.dog"],explorer:{url:"https://explorer.dogechain.dog"},start:877115,logo:"ipfs://bafkreigovfh3pinsdih777issfgaflwu2yjzroljs2642gbvwikcd3nm4i"},2020:{key:"2020",name:"Public Mint",shortName:"publicmint",chainId:2020,network:"mainnet",multicall:"0x8De9F846d72Bd5CE7BC572994E5420d6CB047bF4",rpc:["https://rpc.publicmint.io:8545/"],explorer:{url:"https://explorer.publicmint.io"},start:19454413,logo:"ipfs://bafkreihh4y35xgshx7wbf7a2xj35do55f7lj4nhxqxtt5nqoohoojdvkki"},2109:{key:"2109",name:"Exosama Network",shortName:"EXN",chainId:2109,network:"mainnet",multicall:"0x2feFC828e2fEfdE0C9f7740919c6A9139F886067",rpc:["https://rpc.exosama.com"],explorer:{url:"https://explorer.exosama.com"},start:94085,logo:"ipfs://QmaQxfwpXYTomUd24PMx5tKjosupXcm99z1jL1XLq9LWBS"},2152:{key:"2152",name:"Findora Mainnet",shortName:"Findora",chainId:2152,network:"mainnet",multicall:"0xCF7D1e21CBe9bdEF235aef06C5d8051B3d4DF0f5",rpc:["https://archive.prod.findora.org:8545/"],explorer:{url:"https://evm.findorascan.io"},start:4219343,logo:"ipfs://QmXkneyRB6HbHTHRLCZpZqSsawiyJY7b2kZ2V8ydvKYAgv"},2400:{key:"2400",name:"TCG Verse Mainnet",shortName:"TCGV",chainId:2400,network:"mainnet",multicall:"0xceC65DEE0b5012F1b7321b2647681F997c7204FC",rpc:["https://rpc.tcgverse.xyz"],explorer:{url:"https://explorer.tcgverse.xyz"},start:57500,logo:"ipfs://bafkreidg4wpewve5mdxrofneqblydkrjl3oevtgpdf3fk3z3vjqam6ocoe"},2611:{key:"2611",name:"Redlight Mainnet",shortName:"REDLC",chainId:2611,network:"mainnet",multicall:"0x516C7A3F307eCb28F7F88AFfD31F26484c2e1BA2",rpc:["https://dataseed2.redlightscan.finance"],explorer:{url:"https://redlightscan.finance/"},start:6504228,logo:"ipfs://QmZDdFjM37M3Zn6aCAuBnRwnWYTzFMg8k2zhKedczwBb58"},4062:{key:"4062",name:"Nahmii N3 Testnet",shortName:"Nahmii",chainId:4062,network:"testnet",testnet:!0,multicall:"0x495Da6Fdad384f3FF733f860d63c4F9457D2a0b0",rpc:["https://ngeth.testnet.n3.nahmii.io"],explorer:{url:"https://explorer.testnet.n3.nahmii.io/"},start:2607889,logo:"ipfs://QmPXPCBho3kGLt5rhG9JGkKmzdtLvqZmJqGzzijVCuggWY"},4689:{key:"4689",name:"IoTeX Mainnet",shortName:"IoTeX",chainId:4689,network:"mainnet",multicall:"0x9c8B105c94282CDB0F3ecF27e3cfA96A35c07be6",rpc:["https://babel-api.mainnet.iotex.io"],explorer:{url:"https://iotexscan.io"},start:11533283,logo:"ipfs://QmNkr1UPcBYbvLp7d7Pk4eF3YCsHpaNkfusKZNtykL2EQC"},4690:{key:"4690",name:"IoTeX Testnet",shortName:"IoTeX",chainId:4690,network:"testnet",testnet:!0,multicall:"0x30aE8783d26aBE7Fbb9d83549CCb7430AE4A301F",rpc:["https://babel-api.testnet.iotex.io"],explorer:{url:"https://testnet.iotexscan.io"},start:8821493,logo:"ipfs://QmNkr1UPcBYbvLp7d7Pk4eF3YCsHpaNkfusKZNtykL2EQC"},5551:{key:"5551",name:"Nahmii Mainnet",shortName:"Nahmii",chainId:5551,network:"mainnet",multicall:"0x05911151467b9F42eD14f10ddE0c057347Fff714",rpc:["https://l2.nahmii.io"],explorer:{url:"https://explorer.nahmii.io"},start:4364,logo:"ipfs://QmPXPCBho3kGLt5rhG9JGkKmzdtLvqZmJqGzzijVCuggWY"},5555:{key:"5555",name:"Chain Verse Mainnet",shortName:"ChainVerse",chainId:5555,network:"ChainVerse",multicall:"0xcA11bde05977b3631167028862bE2a173976CA11",rpc:["https://rpc.chainverse.info"],explorer:{url:"https://explorer.chainverse.info"},logo:"ipfs://QmQyJt28h4wN3QHPXUQJQYQqGiFUD77han3zibZPzHbitk"},5851:{key:"5851",name:"Ontology Testnet",chainId:5851,network:"testnet",multicall:"0x381445710b5e73d34aF196c53A3D5cDa58EDBf7A",rpc:["https://polaris1.ont.io:10339","https://polaris2.ont.io:10339","https://polaris3.ont.io:10339","https://polaris4.ont.io:10339","https://polaris4.ont.io:10339","https://polaris5.ont.io:10339"],explorer:{url:"https://explorer.ont.io/testnet"},logo:"ipfs://Qme21sVqfwvrjkZHaeKaBH1F8AKPjbAV7vF7rH6akaLkU1"},6102:{key:"6102",name:"Cascadia Testnet",shortName:"Cascadia",chainId:6102,network:"testnet",multicall:"0x728989819bAD588F193563008E0a03E8cD6a3e4a",rpc:["https://testnet.cascadia.foundation"],explorer:{url:"https://explorer.cascadia.foundation"},testnet:!0,start:370457,logo:"ipfs://QmWkhZYhReYyaa5pQXj32hEGxoRcBqarFMcfQScELmjYQj"},7341:{key:"7341",name:"Shyft",shortName:"Shyft",chainId:7341,network:"mainnet",testnet:!1,multicall:"0xceb10e9133D771cA93c8002Be527A465E85381a2",rpc:["https://rpc.shyft.network"],explorer:{url:"https://bx.shyft.network"},start:3673983,logo:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi"},7363:{key:"7363",name:"DynoChain",shortName:"DND",chainId:7363,network:"mainnet",multicall:"0x70F9C674677Cb915042C11fcd4D3418A99aa7A3D",rpc:["https://rpc.dynochain.io"],explorer:{url:"https://dynoscan.io"},start:30900,logo:"ipfs://QmNkwQ9uyaNgtu9YZM48VmKqmFceQhCMPLF2vZy7mWvw4L"},7700:{key:"7700",name:"Canto",shortName:"Canto",chainId:7700,network:"mainnet",multicall:"0x9787792A1020B00fb65191754c3D87c89Bf36444",rpc:["https://canto.neobase.one"],explorer:{url:"https://evm.explorer.canto.io"},start:1683285,logo:"ipfs://QmVh5XRi7xN4UNw7SNKpEhjF1TsPXJnRyNkB4EuMVTVCB6"},8217:{key:"8217",name:"Klaytn Mainnet Cypress",shortName:"Cypress",chainId:8217,network:"mainnet",multicall:"0x5f5f0d1b9ff8b3dcace308e39b13b203354906e9",rpc:["https://archive-en.cypress.klaytn.net"],ws:["wss://archive-en.cypress.klaytn.net/ws"],explorer:{url:"https://scope.klaytn.com/"},logo:"ipfs://QmYACyZcidcFtMo4Uf9H6ZKUxTP2TQPjGzNjcUjqYa64dt"},9e3:{key:"9000",name:"Evmos Network Testnet",shortName:"Evmos Testnet",chainId:9e3,network:"testnet",testnet:!0,multicall:"0xbf84d77eb467c4aaa2988ac070cd119984c0aaa2",rpc:["https://eth.bd.evmos.dev:8545"],ws:["wss://eth.bd.evmos.dev:8546"],explorer:{url:"https://testnet.escan.live"},start:14929860,logo:"ipfs://QmVgkQTA8cbYMijWS8AN44xzwAEQvFc2dCpih1qK78ZRQW"},9001:{key:"9001",name:"Evmos Network",shortName:"Evmos",chainId:9001,network:"mainnet",testnet:!1,multicall:"0x37763d16f8dBf6F185368E0f256350cAb7E24b26",rpc:["https://eth.bd.evmos.org:8545"],ws:["wss://eth.bd.evmos.org:8546"],explorer:{url:"https://escan.live"},start:13959539,logo:"ipfs://QmVgkQTA8cbYMijWS8AN44xzwAEQvFc2dCpih1qK78ZRQW"},9052:{key:"9052",name:"Acrechain Mainnet",shortName:"Acrechain",chainId:9052,network:"mainnet",multicall:"0x6D7ce9f27f188cD042b20742DC95b0C75D5667bB",rpc:["https://evm.acrescan.com"],explorer:{url:"https://acrescout.mindheartsoul.org"},start:1759024,logo:"ipfs://QmbA6CE3G81mm4eDEBUezwcq2qdqEh1zEToG3MbJHirxQt"},1e4:{key:"10000",name:"smartBCH",shortName:"BCH",chainId:1e4,network:"mainnet",multicall:"0x1b38EBAd553f218e2962Cb1C0539Abb5d6A37774",rpc:["https://smartbch.greyh.at/"],explorer:{url:"https://www.smartscan.cash"},logo:"ipfs://QmWG1p7om4hZ4Yi4uQvDpxg4si7qVYhtppGbcDGrhVFvMd"},10243:{key:"10243",name:"Arthera Testnet",shortName:"Arthera_",chainId:10243,network:"testnet",testnet:!0,multicall:"0x27c7FC597aD2E81C4c1cA1769972f79DaF042Da7",rpc:["https://rpc-test.arthera.net"],explorer:{url:"https://explorer-test.arthera.net"},start:10523,logo:"ipfs://QmYQp3e52KjkT4bYdAvB6ACEEpXs2D8DozsDitaADRY2Ak"},11437:{key:"11437",name:"Shyft Testnet",shortName:"Shyft_",chainId:11437,network:"testnet",testnet:!0,multicall:"0x407159bAA564dA0c3b14D1215d8E2654cEEE73F4",rpc:["https://rpc.testnet.shyft.network"],explorer:{url:"https://bx.testnet.shyft.network"},start:2446296,logo:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi"},12321:{key:"12321",name:"Wennect Testnet",shortName:"Wennect",testnet:!0,chainId:12321,network:"testnet",multicall:"0x009c55698516Fe3C58105Fe9bBC5A33ECE7A92e4",rpc:["https://rpc.testnet.wennect.com"],explorer:{url:"https://explorer.testnet.wennect.com"},start:3606569,logo:"ipfs://bafkreieeo3cetehbkrxjrfzcdb2ym5qgs26cgcw6t633twnuzoqyohqo5m"},12357:{key:"12357",name:"REI Testnet",shortName:"REI",chainId:12357,network:"testnet",testnet:!0,multicall:"0x9eE9904815B80C39C1a27294E69a8626EAa7952d",rpc:["https://rpc-testnet.rei.network"],explorer:{url:"https://scan-test.rei.network/"},start:79516,logo:"ipfs://QmTogMDLmDgJjDjUKDHDuc2KVTVDbXf8bXJLFiVe8PRxgo"},16718:{key:"16718",name:"AirDAO Mainnet",chainId:16718,network:"mainnet",multicall:"0x25e81aC81A8B03389D78CB45faB78353aB528574",rpc:["https://network-archive.ambrosus.io"],ws:["wss://network-archive.ambrosus.io/ws"],explorer:{url:"https://airdao.io/explorer"},start:22922566,logo:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom"},22040:{key:"22040",name:"AirDAO Testnet",chainId:22040,network:"testnet",testnet:!0,multicall:"0x18f7BFad831D8ED9E16C4cD50D6041dD453Ca1EF",rpc:["https://network-archive.ambrosus-test.io"],ws:["wss://network-archive.ambrosus-test.io/ws"],explorer:{url:"https://testnet.airdao.io/explorer"},start:3368046,logo:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom"},32659:{key:"32659",name:"Fusion Mainnet",chainId:32659,network:"mainnet",multicall:"0xcd11d8666203a4ea1ecd89885dfe1d4e1a088dbb",rpc:["https://mainnet-archive.fusionnetwork.io"],ws:["wss://mainnet-archive.fusionnetwork.io"],explorer:{url:"https://fsnscan.com"},logo:"ipfs://QmRb6YCGdpQTQcdNTnBb5DUixGpjDp1wz6zoADJwQ7hyFq"},42161:{key:"42161",name:"Arbitrum One",chainId:42161,network:"Arbitrum mainnet",multicall:"0x7A7443F8c577d537f1d8cD4a629d40a3148Dd7ee",rpc:["https://rpc.ankr.com/arbitrum","https://speedy-nodes-nyc.moralis.io/9e03baabdc27be2a35bdec4a/arbitrum/mainnet","https://arb-mainnet.g.alchemy.com/v2/JDvtNGwnHhTltIwfnxQocKwKkCTKA1DL"],explorer:{url:"https://arbiscan.io"},start:256508,logo:"ipfs://QmWZ5SMRfvcK8tycsDqojQaSiKedgtVkS7CkZdxPgeCVsZ"},42170:{key:"42170",name:"Arbitrum Nova",chainId:42170,network:"Arbitrum Nova",multicall:"0x4E74EBd9CABff51cE9a43EFe059bA8c5A28E4A14",rpc:["https://nova.arbitrum.io/rpc","https://arbitrum-nova.public.blastapi.io"],explorer:{url:"https://nova.arbiscan.io/"},start:6006607,logo:"ipfs://bafkreie5xsqt3mrrwu7v32qpmmctibhzhgxf4emfzzddsdhdlfsa7fmplu"},42220:{key:"42220",name:"Celo Mainnet",shortName:"Celo",chainId:42220,network:"mainnet",multicall:"0xb8d0d2C1391eeB350d2Cd39EfABBaaEC297368D9",rpc:["https://celo.snapshot.org","https://forno.celo.org","https://celo-mainnet--rpc.datahub.figment.io/apikey/e892a66dc36e4d2d98a5d6406d609796/"],explorer:{url:"https://explorer.celo.org"},start:6599803,logo:"ipfs://QmS2tVJ7rdJRe1NHXAi2L86yCbUwVVrmB2mHQeNdJxvQti"},42262:{key:"42262",name:"Emerald",shortName:"Emerald",chainId:42262,network:"mainnet",multicall:"0xBD46A7DCD1fefA63A7746a5762A71635Ee0843A1",rpc:["https://emerald.oasis.dev"],explorer:{url:"https://explorer.emerald.oasis.dev"},start:176517,logo:"ipfs://QmQrZjZZyAcQmPXJM2cUh1KaaDeM8Sfcg3HnvZpBj8wTnG"},43113:{key:"43113",name:"Avalanche FUJI Testnet",chainId:43113,network:"testnet",testnet:!0,multicall:"0x984476ea55e32e785A9D8FF14329f99D74E3d2A2",rpc:["https://api.avax-test.network/ext/bc/C/rpc"],explorer:{url:"https://testnet.snowtrace.io"},start:10528153,logo:"ipfs://QmeS75uS7XLR8o8uUzhLRVYPX9vMFf4DXgKxQeCzyy7vM2"},43114:{key:"43114",name:"Avalanche",chainId:43114,network:"mainnet",multicall:"0x7E9985aE4C8248fdB07607648406a48C76e9e7eD",rpc:["https://nd-784-543-849.p2pify.com/aa7b29fc5fed65b34f0ee6b8de33f8c0/ext/bc/C/rpc","https://rpc.ankr.com/avalanche","https://api.avax.network/ext/bc/C/rpc"],explorer:{url:"https://snowtrace.io"},start:536483,logo:"ipfs://QmeS75uS7XLR8o8uUzhLRVYPX9vMFf4DXgKxQeCzyy7vM2"},43288:{key:"43288",name:"Boba Avax L2",shortName:"Boba-Avax",chainId:43288,network:"mainnet",multicall:"0x352E11Da7C12EA2440b079A335E67ff9219f6FfB",rpc:["https://replica.avax.boba.network","https://avax.boba.network"],explorer:{url:"https://blockexplorer.avax.boba.network/"},start:4832,logo:"ipfs://QmP1iuEynzcghrukQLfw7zh7BJwG3dJSwyZprqD4YHHsFD"},47805:{key:"47805",name:"REI Mainnet",chainId:47805,network:"mainnet",multicall:"0x9eE9904815B80C39C1a27294E69a8626EAa7952d",rpc:["https://rpc.rei.network"],explorer:{url:"https://scan.rei.network/"},start:1715902,logo:"ipfs://QmTogMDLmDgJjDjUKDHDuc2KVTVDbXf8bXJLFiVe8PRxgo"},53935:{key:"53935",name:"DFK Chain",chainId:53935,network:"mainnet",multicall:"0x5b24224dC16508DAD755756639E420817DD4c99E",rpc:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"],explorer:{url:"https://subnets.avax.network/defi-kingdoms/"},start:62,logo:"ipfs://QmZNkpVgPbuVbDcsi6arwH1om3456FGnwfDqYQJWUfHDEx"},59140:{key:"59140",name:"Linea Goerli testnet",shortName:"Linea Goerli",chainId:59140,network:"testnet",testnet:!0,multicall:"0xcA11bde05977b3631167028862bE2a173976CA11",rpc:["https://rpc.goerli.linea.build"],explorer:{url:"https://explorer.goerli.linea.build"},start:498623,logo:"ipfs://QmSwCnEeLoyMApQd1YfhmGvLt97bH5mLPoabjKqUSuQHHF"},60001:{key:"60001",name:"Thinkium Testnet Chain 1",shortName:"ThinkiumTest1",chainId:60001,network:"thinkiumtest1",multicall:"0xc49bc485d4f943b287edadbce45eb1a1220ffdfe",rpc:["https://test1.thinkiumrpc.net"],explorer:{url:"https://test1.thinkiumscan.net/"},start:323327,logo:"ipfs://QmRfiNT4tDhyxfpYcjNde4BMPPWEAygYNPdAaS9bra6aFC"},70001:{key:"70001",name:"Thinkium Mainnet Chain 1",shortName:"Thinkium1",chainId:70001,network:"thinkium1",multicall:"0xc49bc485d4f943b287edadbce45eb1a1220ffdfe",rpc:["https://proxy1.thinkiumrpc.net"],explorer:{url:"https://chain1.thinkiumscan.net/"},start:26677364,logo:"ipfs://QmRfiNT4tDhyxfpYcjNde4BMPPWEAygYNPdAaS9bra6aFC"},70002:{key:"70002",name:"Thinkium Mainnet Chain 2",shortName:"Thinkium2",chainId:70002,network:"thinkium2",multicall:"0xc49bc485d4f943b287edadbce45eb1a1220ffdfe",rpc:["https://proxy2.thinkiumrpc.net"],explorer:{url:"https://chain2.thinkiumscan.net/"},start:22124397,logo:"ipfs://QmRfiNT4tDhyxfpYcjNde4BMPPWEAygYNPdAaS9bra6aFC"},70103:{key:"70103",name:"Thinkium Mainnet Chain 103",shortName:"Thinkium103",chainId:70103,network:"thinkium103",multicall:"0xc49bc485d4f943b287edadbce45eb1a1220ffdfe",rpc:["https://proxy103.thinkiumrpc.net"],explorer:{url:"https://chain103.thinkiumscan.net/"},start:22090160,logo:"ipfs://QmRfiNT4tDhyxfpYcjNde4BMPPWEAygYNPdAaS9bra6aFC"},71401:{key:"71401",name:"Godwoken V1 Testnet",chainId:71401,network:"testnet",testnet:!0,multicall:"0xcA11bde05977b3631167028862bE2a173976CA11",rpc:["https://godwoken-testnet-v1.ckbapp.dev"],ws:["wss://godwoken-testnet-v1.ckbapp.dev/ws"],explorer:{url:"https://gw-explorer.nervosdao.community"},start:115283,logo:"ipfs://QmR6Q2CTds6Uwu8Euo7BKvFKAeg1AyVSxWzqCvyquDD7NF"},71402:{key:"71402",name:"Godwoken V1",chainId:71402,network:"mainnet",multicall:"0xcA11bde05977b3631167028862bE2a173976CA11",rpc:["https://v1.mainnet.godwoken.io/rpc"],ws:["wss://v1.mainnet.godwoken.io/ws"],explorer:{url:"https://gwscan.com"},start:15034,logo:"ipfs://QmR6Q2CTds6Uwu8Euo7BKvFKAeg1AyVSxWzqCvyquDD7NF"},80001:{key:"80001",name:"Matic Mumbai",chainId:80001,network:"testnet",testnet:!0,multicall:"0x08411ADd0b5AA8ee47563b146743C13b3556c9Cc",rpc:["https://speedy-nodes-nyc.moralis.io/9e03baabdc27be2a35bdec4a/polygon/mumbai/archive","https://rpc-mumbai.matic.today"],ws:["wss://ws-mumbai.matic.today"],explorer:{url:"https://mumbai.polygonscan.com",apiUrl:"https://api-mumbai.polygonscan.com"},start:12011090,logo:"ipfs://QmaGokGqgjknfa4xnXKnnwC5ZyXzUjQ7p6KEe4D8G5uFFE"},84531:{key:"84531",name:"Base Goerli Testnet",chainId:84531,network:"Base",testnet:!0,multicall:"0x0012989E982C2c473e36418384Ab707C72f2B782",rpc:["https://goerli.base.org"],explorer:{url:"https://goerli.basescan.org/"},start:1151797,logo:"ipfs://QmQqrze3W1uSYWq2cGSYDeDwtjGXohTjWPnQ87EVJGeq2P"},333888:{key:"333888",name:"Polis Sparta",shortName:"Sparta",chainId:333888,network:"testnet",testnet:!0,multicall:"0xA4c03972023d5f684d35eF1C541752490975383e",rpc:["https://sparta-rpc.polis.tech"],explorer:{url:"https://sparta-explorer.polis.tech"},logo:"ipfs://QmSiCni2Jn58WN74SyGNY1Aw5mSh9ypEfFULhjKxA7Tbpg"},333999:{key:"333999",name:"Polis Olympus",shortName:"Olympus",chainId:333999,network:"mainnet",multicall:"0x34b99C2a4a4620F10ac779c36b8c61F90FD61732",rpc:["https://rpc.polis.tech"],explorer:{url:"https://explorer.polis.tech"},start:1971,logo:"ipfs://QmSiCni2Jn58WN74SyGNY1Aw5mSh9ypEfFULhjKxA7Tbpg"},666666:{key:"666666",name:"Vision - Vpioneer Testnet",shortName:"Vpioneer",chainId:666666,network:"testnet",multicall:"0xb6E748D6632305E1c12D8369CC6B3eF4AA8A3c85",rpc:["https://vpioneer.infragrid.v.network/ethereum/compatible"],explorer:{url:"https://visionscan.org"},start:3369285,logo:"ipfs://QmXgGmxDAW2Mheum3WX7Q52Zi9hvE17Zp1pVtZbcVdThh4"},888888:{key:"888888",name:"Vision - Mainnet",shortName:"Vision",chainId:888888,network:"mainnet",multicall:"0x7a677A43eb6eEe4AB6c13872Abc04e1bA5CF88eD",rpc:["https://infragrid4snapshot.v.network/ethereum/compatible"],explorer:{url:"https://visionscan.org"},start:75909,logo:"ipfs://QmXgGmxDAW2Mheum3WX7Q52Zi9hvE17Zp1pVtZbcVdThh4"},9e5:{key:"900000",name:"Posichain Mainnet",shortName:"PSC",chainId:9e5,network:"mainnet",multicall:"0xbe779BaA9dC15Ef307bdf4dDb35440A0a421a89A",rpc:["https://api-a001.s0.posichain.org"],explorer:{url:"https://explorer.posichain.org"},start:2560501,logo:"ipfs://QmXqprM1TPafQFLirQ7dMPMgou1hoUGuCvHYSWU9g8ocv8"},11155111:{key:"11155111",name:"Sepolia",shortName:"Sepolia",chainId:11155111,network:"sepolia",testnet:!0,multicall:"0xcA11bde05977b3631167028862bE2a173976CA11",rpc:["https://sepolia.infura.io/v3/d26b4fd748814fe994b05899fd89e667"],explorer:{url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io"},start:751532,logo:"ipfs://QmR2UYZczmYa4s8mr9HZHci5AQwyAnwUW7tSUZz7KWF3sA"},278611351:{key:"278611351",name:"Razor SKALE Chain",shortName:"RazorSchain",chainId:278611351,network:"mainnet",multicall:"0x295762C6f27c33cD7ce58fB6667E841E4EA67ef1",rpc:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],explorer:{url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com/"},start:401478,logo:"ipfs://QmUdwAZJfyKGZnfPGDsCnNvGu123mdd57kTGj1Y3EWVuWK"},1313161554:{key:"1313161554",name:"Aurora Mainnet",shortName:"Aurora",chainId:1313161554,network:"mainnet",multicall:"0x32b50c286DEFd2932a0247b8bb940b78c063F16c",rpc:["https://mainnet.aurora.dev"],explorer:{url:"https://explorer.mainnet.aurora.dev"},start:57190533,logo:"ipfs://QmeRhsR1UPRTQCizdhmgr2XxphXebVKU5di97uCV2UMFpa"},16666e5:{key:"1666600000",name:"Harmony Mainnet",shortName:"HarmonyMainnet",chainId:16666e5,network:"mainnet",multicall:"0x9c31392D2e0229dC4Aa250F043d46B9E82074BF8",rpc:["https://a.api.s0.t.hmny.io"],ws:["wss://ws.s0.t.hmny.io"],explorer:{url:"https://explorer.harmony.one"},start:10911984,logo:"ipfs://QmNnGPr1CNvj12SSGzKARtUHv9FyEfE5nES73U4vBWQSJL"},16667e5:{key:"1666700000",name:"Harmony Testnet",shortName:"HarmonyTestnet",chainId:16667e5,network:"testnet",testnet:!0,multicall:"0x9923589503Fd205feE3d367DDFF2378f0F7dD2d4",rpc:["https://api.s0.b.hmny.io"],ws:["wss://ws.s0.b.hmny.io"],explorer:{url:"https://explorer.pops.one"},start:7521509,logo:"ipfs://QmNnGPr1CNvj12SSGzKARtUHv9FyEfE5nES73U4vBWQSJL"},11297108109:{key:"11297108109",name:"Palm Mainnet",shortName:"Palm",chainId:11297108109,network:"mainnet",multicall:"0xfFE2FF36c5b8D948f788a34f867784828aa7415D",rpc:["https://palm-mainnet.infura.io/v3/3a961d6501e54add9a41aa53f15de99b"],explorer:{url:"https://explorer.palm.io"},start:1172267,logo:"ipfs://QmaYQfjLfQpyRWZZZU1BE8X352rXEjNaNeahjvf1aHZrKY"},11297108099:{key:"11297108099",name:"Palm Testnet",shortName:"Palm",testnet:!0,chainId:11297108099,network:"testnet",multicall:"0x020D24E0b91Fa18Aade990dCEc7F21dcc8e5d174",rpc:["https://palm-testnet.infura.io/v3/e504875614714d3aac7061d4a197b190"],explorer:{url:"https://explorer.palm-uat.xyz/"},start:7282345,logo:"ipfs://QmRHB9TqMdVHY392vYiv8sTJ7VHShkq5FT6nS9fPuUNBf1"}},Ld={1:"https://subgrapher.snapshot.org/gateway.thegraph.com/api/0f15b42bdeff7a063a4e1757d7e2f99e/deployments/id/QmXZiV6S13ha6QXq4dmaM3TB4CHcDxBMvGexSNu9Kc28EH",5:"https://subgrapher.snapshot.org/api.thegraph.com/subgraphs/name/snapshot-labs/snapshot-goerli",10:"https://subgrapher.snapshot.org/api.thegraph.com/subgraphs/name/snapshot-labs/snapshot-optimism",56:"https://subgrapher.snapshot.org/api.thegraph.com/subgraphs/name/snapshot-labs/snapshot-binance-smart-chain",100:"https://subgrapher.snapshot.org/api.thegraph.com/subgraphs/name/snapshot-labs/snapshot-gnosis-chain",137:"https://subgrapher.snapshot.org/api.thegraph.com/subgraphs/name/snapshot-labs/snapshot-polygon",250:"https://subgrapher.snapshot.org/api.thegraph.com/subgraphs/name/snapshot-labs/snapshot-fantom",42161:"https://subgrapher.snapshot.org/api.thegraph.com/subgraphs/name/snapshot-labs/snapshot-arbitrum"},zd=function(){function t(t,e,r,n){this.proposal=t,this.votes=e,this.strategies=r,this.selected=n}return t.isValidChoice=function(t,e){return"number"==typeof t&&void 0!==(null==e?void 0:e[t-1])},t.prototype.getValidVotes=function(){var e=this;return this.votes.filter((function(r){return t.isValidChoice(r.choice,e.proposal.choices)}))},t.prototype.getScores=function(){var t=this;return this.proposal.choices.map((function(e,r){var n=t.getValidVotes().filter((function(t){return t.choice===r+1}));return n.reduce((function(t,e){return t+e.balance}),0)}))},t.prototype.getScoresByStrategy=function(){var t=this;return this.proposal.choices.map((function(e,r){var n=t.strategies.map((function(e,n){var i=t.getValidVotes().filter((function(t){return t.choice===r+1}));return i.reduce((function(t,e){return t+e.scores[n]}),0)}));return n}))},t.prototype.getScoresTotal=function(){return this.votes.reduce((function(t,e){return t+e.balance}),0)},t.prototype.getChoiceString=function(){return this.proposal.choices[this.selected-1]},t}(),qd=function(){function t(t,e,r,n){this.proposal=t,this.votes=e,this.strategies=r,this.selected=n}return t.isValidChoice=function(t,e){return Array.isArray(t)&&t.every((function(t){return void 0!==(null==e?void 0:e[t-1])}))&&t.length===new Set(t).size},t.prototype.getValidVotes=function(){var e=this;return this.votes.filter((function(r){return t.isValidChoice(r.choice,e.proposal.choices)}))},t.prototype.getScores=function(){var t=this;return this.proposal.choices.map((function(e,r){return t.getValidVotes().filter((function(t){return t.choice.includes(r+1)})).reduce((function(t,e){return t+e.balance}),0)}))},t.prototype.getScoresByStrategy=function(){var t=this;return this.proposal.choices.map((function(e,r){return t.strategies.map((function(e,n){return t.getValidVotes().filter((function(t){return t.choice.includes(r+1)})).reduce((function(t,e){return t+e.scores[n]}),0)}))}))},t.prototype.getScoresTotal=function(){return this.votes.reduce((function(t,e){return t+e.balance}),0)},t.prototype.getChoiceString=function(){var t=this;return this.selected?this.proposal.choices.filter((function(e,r){return t.selected.includes(r+1)})).join(", "):""},t}();function Vd(t,e){var r=t/e.reduce((function(t,e){return t+e}),0);return isNaN(r)?0:r}function Gd(t,e){return Math.sqrt(t*e)}function Hd(t){return t*t}function Qd(t,e){return t.map((function(t){return e*t}))}var Kd=function(){function t(t,e,r,n){this.proposal=t,this.votes=e,this.strategies=r,this.selected=n}return t.isValidChoice=function(t,e){return"object"==typeof t&&!Array.isArray(t)&&null!==t&&Object.keys(t).every((function(t){return void 0!==(null==e?void 0:e[Number(t)-1])}))&&Object.keys(t).length>0&&Object.values(t).every((function(t){return"number"==typeof t&&t>=0}))&&Object.values(t).some((function(t){return"number"==typeof t&&t>0}))},t.prototype.getValidVotes=function(){var e=this;return this.votes.filter((function(r){return t.isValidChoice(r.choice,e.proposal.choices)}))},t.prototype.getScores=function(){var t=this.getValidVotes(),e=this.getValidVotes().reduce((function(t,e){return t+e.balance}),0),r=this.proposal.choices.map((function(e,r){var n=t.map((function(t){return Gd(Vd(t.choice[r+1],Object.values(t.choice)),t.balance)})).reduce((function(t,e){return t+e}),0);return Hd(n)}));return Qd(r.map((function(t,e){return Vd(r[e],r)})),e)},t.prototype.getScoresByStrategy=function(){var t=this,e=this.getValidVotes(),r=this.getValidVotes().reduce((function(t,e){return t+e.balance}),0),n=this.proposal.choices.map((function(r,n){return t.strategies.map((function(t,r){return e.map((function(t){return Gd(Vd(t.choice[n+1],Object.values(t.choice)),t.scores[r])})).reduce((function(t,e){return t+e}),0)}))})).map((function(t){return t.map((function(t){return[Hd(t)]}))}));return n.map((function(e,i){return Qd(t.strategies.map((function(t,e){return Vd(n[i][e][0],n.flat(2))})),r)}))},t.prototype.getScoresTotal=function(){return this.votes.reduce((function(t,e){return t+e.balance}),0)},t.prototype.getChoiceString=function(){var t=this;return this.proposal.choices.map((function(e,r){if(t.selected[r+1]){var n=Vd(t.selected[r+1],Object.values(t.selected));return Math.round(1e3*n)/10+"% for "+e}})).filter((function(t){return null!=t})).join(", ")},t}();function Zd(t,e){var r=i(new Set(t.map((function(t){return t[0]})).flat())),o=Object.entries(t.reduce((function(t,e,r,i){var o=n(e,1)[0],s=i[r][1];t[o[0]][0]+=s;var a=i[r][2];return a.length>1?t[o[0]][1]=a.map((function(e,r){return e+t[o[0]][1][r]||e})):t[o[0]][1]=[t[o[0]][1].concat(a).reduce((function(t,e){return t+e}),0)],t}),Object.assign.apply(Object,i([{}],r.map((function(t){var e;return(e={})[t]=[0,[]],e})))))),s=o.map((function(t){return[t[0],t[1][0]]})),a=n(s.reduce((function(t,e){var r=n(t,2),i=r[0],o=r[1],s=n(e,2),a=s[0],u=s[1];return u>o?[a,u]:[i,o]}),["?",-1/0]),2),u=(a[0],a[1]),h=n(s.reduce((function(t,e){var r=n(t,2),i=r[0],o=r[1],s=n(e,2),a=s[0],u=s[1];return u<o?[a,u]:[i,o]}),["?",1/0]),2),l=h[0],c=(h[1],o.sort((function(t,e){return e[1][0]-t[1][0]}))),f=t.map((function(t){return t[1]})).reduce((function(t,e){return t+e}),0);return e.push({round:e.length+1,sortedByHighest:c}),u>f/2||c.length<3?e:Zd(t.map((function(t){return[t[0].filter((function(t){return t!=l})),t[1],t[2]]})).filter((function(t){return t[0].length>0})),e)}function Wd(t){var e=Zd(t.map((function(t){return[t.choice,t.balance,t.scores]})),[]);return e[e.length-1].sortedByHighest}function Jd(t,e){var r=Wd(t);return e.choices.map((function(t,e){return r.filter((function(t){return Number(t[0])===e+1})).reduce((function(t,e){return t+e[1][0]}),0)}))}var Xd=function(){function t(t,e,r,n){this.proposal=t,this.votes=e,this.strategies=r,this.selected=n}return t.isValidChoice=function(t,e){return Array.isArray(t)&&t.every((function(t){return void 0!==(null==e?void 0:e[t-1])}))&&t.length===new Set(t).size&&t.length>0&&t.length===e.length},t.prototype.getValidVotes=function(){var e=this;return this.votes.filter((function(r){return t.isValidChoice(r.choice,e.proposal.choices)}))},t.prototype.getScores=function(){return Jd(this.getValidVotes(),this.proposal)},t.prototype.getScoresByStrategy=function(){var t=this,e=Wd(this.getValidVotes());return this.proposal.choices.map((function(r,n){return t.strategies.map((function(t,r){return e.filter((function(t){return Number(t[0])===n+1})).reduce((function(t,e){return t+e[1][1][r]}),0)}))}))},t.prototype.getScoresTotal=function(){return Jd(this.votes,this.proposal).reduce((function(t,e){return t+e}))},t.prototype.getChoiceString=function(){var t=this;return this.selected.map((function(e){if(t.proposal.choices[e-1])return t.proposal.choices[e-1]})).map((function(t,e){return"("+dp(e+1)+") "+t})).join(", ")},t}();function Yd(t,e,r){var n=r.reduce((function(t,e){return t+e}),0),i=e[t]/n*100;return isNaN(i)?0:i}function tp(t,e,r){return Yd(t+1,e,Object.values(e))/100*r}var ep=function(){function t(t,e,r,n){this.proposal=t,this.votes=e,this.strategies=r,this.selected=n}return t.isValidChoice=function(t,e){return"object"==typeof t&&!Array.isArray(t)&&null!==t&&Object.keys(t).every((function(t){return void 0!==(null==e?void 0:e[Number(t)-1])}))&&Object.keys(t).length>0&&Object.values(t).every((function(t){return"number"==typeof t&&t>=0}))&&Object.values(t).some((function(t){return"number"==typeof t&&t>0}))},t.prototype.getValidVotes=function(){var e=this;return this.votes.filter((function(r){return t.isValidChoice(r.choice,e.proposal.choices)}))},t.prototype.getScores=function(){var t=this,e=this.proposal.choices.map((function(e,r){return t.getValidVotes().map((function(t){return tp(r,t.choice,t.balance)})).reduce((function(t,e){return t+e}),0)})),r=this.getValidVotes().reduce((function(t,e){return t+e.balance}),0);return e.map((function(t,r){return Yd(r,e,e)})).map((function(t){return r/100*t}))},t.prototype.getScoresByStrategy=function(){var t=this,e=this.proposal.choices.map((function(e,r){return t.strategies.map((function(e,n){return t.getValidVotes().map((function(t){return tp(r,t.choice,t.scores[n])})).reduce((function(t,e){return t+e}),0)}))})).map((function(t){return t.map((function(t){return[t]}))})),r=this.getValidVotes().reduce((function(t,e){return t+e.balance}),0);return e.map((function(n,i){return t.strategies.map((function(t,r){return Yd(0,e[i][r],e.flat(2))})).map((function(t){return[r/100*t]})).flat()}))},t.prototype.getScoresTotal=function(){return this.votes.reduce((function(t,e){return t+e.balance}),0)},t.prototype.getChoiceString=function(){var t=this;return this.proposal.choices.map((function(e,r){if(t.selected[r+1])return Math.round(10*Yd(r+1,t.selected,Object.values(t.selected)))/10+"% for "+e})).filter((function(t){return null!=t})).join(", ")},t}(),rp={"single-choice":zd,approval:qd,quadratic:Kd,"ranked-choice":Xd,weighted:ep,basic:zd},np=Ld,ip=["function text(bytes32 node, string calldata key) external view returns (string memory)"],op=new dc({allErrors:!0,allowUnionTypes:!0,$data:!0});function sp(t,n,o,s){return e(this,void 0,void 0,(function(){var e,a,u;return r(this,(function(r){switch(r.label){case 0:e=new xa(o[0],n,t),r.label=1;case 1:return r.trys.push([1,3,,4]),a=o[2]||[],[4,e[o[1]].apply(e,i(a,[s||{}]))];case 2:return[2,r.sent()];case 3:return u=r.sent(),[2,Promise.reject(u)];case 4:return[2]}}))}))}function ap(t,i,o,s,a){return e(this,void 0,void 0,(function(){var e,u,h,l,c,f,d;return r(this,(function(r){switch(r.label){case 0:e=["function aggregate(tuple(address target, bytes callData)[] calls) view returns (uint256 blockNumber, bytes[] returnData)"],u=new xa(Dd[t].multicall,e,i),h=new gi(o),r.label=1;case 1:return r.trys.push([1,3,,4]),l=(null==a?void 0:a.limit)||500,(null==a?void 0:a.limit)&&delete a.limit,c=Math.ceil(s.length/l),f=[],Array.from(Array(c)).forEach((function(t,e){var r=s.slice(l*e,l*(e+1));f.push(u.aggregate(r.map((function(t){return[t[0].toLowerCase(),h.encodeFunctionData(t[1],t[2])]})),a||{}))})),[4,Promise.all(f)];case 2:return[2,r.sent().reduce((function(t,e){var r=n(e,2)[1];return t.concat(r)}),[]).map((function(t,e){return h.decodeFunctionResult(s[e][1],t)}))];case 3:return d=r.sent(),[2,Promise.reject(d)];case 4:return[2]}}))}))}function up(n,i,o){return void 0===o&&(o={}),e(this,void 0,void 0,(function(){var e,s;return r(this,(function(r){switch(r.label){case 0:return[4,l(n,{method:"POST",headers:t({Accept:"application/json","Content-Type":"application/json"},null==o?void 0:o.headers),body:JSON.stringify({query:Ku.jsonToGraphQLQuery({query:i})})})];case 1:return[4,(e=r.sent()).text()];case 2:s=r.sent();try{s=JSON.parse(s)}catch(t){throw new Error("Errors found in subgraphRequest: URL: "+n+", Status: "+e.status+", Response: "+s)}if(s.errors)throw new Error("Errors found in subgraphRequest: URL: "+n+", Status: "+e.status+", Response: "+JSON.stringify(s.errors));return[2,s.data||{}]}}))}))}function hp(t,e){void 0===e&&(e=jd[0]);var r="https://"+e;if(!t)return null;if(!(t.startsWith("ipfs://")||t.startsWith("ipns://")||t.startsWith("https://")||t.startsWith("http://")))return r+"/ipfs/"+t;var n=t.split("://")[0];return"ipfs"===n?t.replace("ipfs://",r+"/ipfs/"):"ipns"===n?t.replace("ipns://",r+"/ipns/"):t}function lp(t,n,i){return void 0===i&&(i="1"),e(this,void 0,void 0,(function(){var e,o,s;return r(this,(function(r){switch(r.label){case 0:return e=Dd[i].ensResolvers||Dd[1].ensResolvers,o=zu.hash(zu.normalize(t)),s=Id(i),[4,ap(i,s,ip,e.map((function(t){return[t,"text",[o,n]]})))];case 1:return[2,r.sent().flat().find((function(t){return t}))||""]}}))}))}function cp(t,n){return void 0===n&&(n="1"),e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,lp(t,"snapshot",n)];case 1:return[2,r.sent()];case 2:return e=r.sent(),console.log(e),[2,null];case 3:return[2]}}))}))}function fp(t,n){return void 0===n&&(n="1"),e(this,void 0,void 0,(function(){var e,i,o,s,a;return r(this,(function(r){switch(r.label){case 0:return"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",e=Id(n),i=new xa("0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",["function owner(bytes32) view returns (address)"],e),o=Dd[n].ensNameWrapper,s=zu.hash(zu.normalize(t)),[4,i.owner(s)];case 1:return(a=r.sent())!==o?[3,3]:[4,new xa(o,["function ownerOf(uint256) view returns (address)"],e).ownerOf(s)];case 2:a=r.sent(),r.label=3;case 3:return[2,a]}}))}))}function dp(t){var e=["th","st","nd","rd"],r=t%100;return t+(e[(r-20)%10]||e[r]||e[0])}gc(op),op.addFormat("address",{validate:function(t){try{return Oe(t)}catch(t){return!1}}}),op.addFormat("long",{validate:function(){return!0}}),op.addFormat("ethValue",{validate:function(t){if(!t.match(/^([0-9]|[1-9][0-9]+)(\.[0-9]+)?$/))return!1;try{return function(t,e){if("string"!=typeof t&&gu.throwArgumentError("value must be a string","value",t),"string"==typeof e){const t=vu.indexOf(e);-1!==t&&(e=3*t)}fu(t,null!=e?e:18)}(t,18),!0}catch(t){return!1}}}),op.addFormat("customUrl",{type:"string",validate:function(t){return!t.length||(t.startsWith("http://")||t.startsWith("https://")||t.startsWith("ipfs://")||t.startsWith("ipns://")||t.startsWith("snapshot://"))}});var pp={call:sp,multicall:ap,subgraphRequest:up,ipfsGet:function(t,n,i){return void 0===i&&(i="ipfs"),e(this,void 0,void 0,(function(){return r(this,(function(e){return[2,l("https://"+t+"/"+i+"/"+n).then((function(t){return t.json()}))]}))}))},getUrl:hp,getJSON:function(t){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){return e=hp(t),[2,l(e).then((function(t){return t.json()}))]}))}))},sendTransaction:function(t,n,o,s,a,u){return void 0===u&&(u={}),e(this,void 0,void 0,(function(){var e,h,l;return r(this,(function(r){switch(r.label){case 0:return e=t.getSigner(),h=new xa(n,o,t),[4,(l=h.connect(e))[s].apply(l,i(a,[u]))];case 1:return[2,r.sent()]}}))}))},getScores:function(t,n,i,o,s,a){return void 0===s&&(s="latest"),void 0===a&&(a="https://score.snapshot.org/api/scores"),e(this,void 0,void 0,(function(){var e,u;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),e={space:t,network:i,snapshot:s,strategies:n,addresses:o},[4,l(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({params:e})})];case 1:return[4,r.sent().json()];case 2:return[2,r.sent().result.scores];case 3:return u=r.sent(),[2,Promise.reject(u)];case 4:return[2]}}))}))},getVp:function(t,n,i,o,s,a,u){return e(this,void 0,void 0,(function(){var e,h;return r(this,(function(r){switch(r.label){case 0:return u||(u={}),u.url||(u.url="https://score.snapshot.org"),e={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",method:"get_vp",params:{address:t,network:n,strategies:i,snapshot:o,space:s,delegation:a},id:null})},[4,l(u.url,e)];case 1:return[4,r.sent().json()];case 2:return(h=r.sent()).error?[2,Promise.reject(h.error)]:h.result?[2,h.result]:[2]}}))}))},validateSchema:function(t,e){var r=op.compile(t),n=r(e);return n||r.errors},getEnsTextRecord:lp,getSpaceUri:cp,getEnsOwner:fp,getSpaceController:function(t,n){return void 0===n&&(n="1"),e(this,void 0,void 0,(function(){var e,i,o,s;return r(this,(function(r){switch(r.label){case 0:return[4,cp(t,n)];case 1:if(e=r.sent()){if(Oe(e))return[2,e];if(i=e.split("/"),o=i.includes("testnet")?5:4,s=i[o],Oe(s))return[2,s]}return[4,fp(t,n)];case 2:return[2,r.sent()]}}))}))},getDelegatesBySpace:function(t,n,i){return void 0===i&&(i="latest"),e(this,void 0,void 0,(function(){var e,o,s,a,u,h,l;return r(this,(function(r){switch(r.label){case 0:if(!Ld[t])return[2,Promise.reject("Delegation subgraph not available for network "+t)];e=["",n],n.includes(".eth")&&e.push(n.replace(".eth","")),s=[],a=0,u={delegations:{__args:{where:{space_in:e},first:o=1e3,skip:0},delegator:!0,space:!0,delegate:!0}},"latest"!==i&&(u.delegations.__args.block={number:i}),r.label=1;case 1:return u.delegations.__args.skip=a*o,[4,up(Ld[t],u)];case 2:return h=r.sent(),l=h.delegations||[],s=s.concat(l),a++,l.length<o?[3,3]:[3,1];case 3:return[2,s]}}))}))},clone:function(t){return JSON.parse(JSON.stringify(t))},sleep:function(t){return e(this,void 0,void 0,(function(){return r(this,(function(e){return[2,new Promise((function(e){setTimeout(e,t)}))]}))}))},getNumberWithOrdinal:dp,voting:rp,getProvider:Id,signMessage:function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return n=R(new Buffer(n,"utf8")),[4,t.send("personal_sign",[n,i])];case 1:return[2,e.sent()]}}))}))},getBlockNumber:function(t){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t.getBlockNumber()];case 1:return e=r.sent(),[2,parseInt(e)];case 2:return r.sent(),[2,Promise.reject()];case 3:return[2]}}))}))},Multicaller:ff,getSnapshots:function(t,n,i,o){return e(this,void 0,void 0,(function(){var e,s,a,u,h;return r(this,(function(r){switch(r.label){case 0:return e=t+"-"+n+"-"+o.join("-"),df[e]?[2,df[e]]:(s={},o.forEach((function(t){return s[t]="latest"})),"latest"===n?[2,s]:(s[t]=n,a=Object.keys(s).filter((function(e){return t!==e})),0===a.length?[2,s]:[4,i.getBlock(n)]));case 1:return u=r.sent(),h={blocks:{__args:{where:{ts:u.timestamp,network_in:a}},network:!0,number:!0}},"https://blockfinder.snapshot.org",[4,up("https://blockfinder.snapshot.org",h)];case 2:return r.sent().blocks.forEach((function(t){return s[t.network]=t.number})),df[e]=s,[2,s]}}))}))},getHash:Bd,verify:function(t,n,i,o){return void 0===o&&(o="1"),e(this,void 0,void 0,(function(){var e,s,a,u,h;return r(this,(function(r){switch(r.label){case 0:e=i.domain,s=i.types,a=i.message,u=Bd(i);try{if(h=Cd(e,s,a,n),t===h)return[2,!0]}catch(t){}return[4,Fd(t,n,u,o)];case 1:return[2,r.sent()]}}))}))},validate:function(t,n,i,o,s,a,u){return e(this,void 0,void 0,(function(){var e,h;return r(this,(function(r){switch(r.label){case 0:return u||(u={}),u.url||(u.url="https://score.snapshot.org"),e={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",method:"validate",params:{validation:t,author:n,space:i,network:o,snapshot:s,params:a},id:null})},[4,l(u.url,e)];case 1:return[4,r.sent().json()];case 2:return(h=r.sent()).error?[2,Promise.reject(h.error)]:[2,h.result]}}))}))},SNAPSHOT_SUBGRAPH_URL:np};return{Client:sr,Client712:sr,schemas:fr,utils:pp}}));
|
|
32
|
+
deps: ${r}}`};const r={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(t){const[e,r]=function({schema:t}){const e={},r={};for(const n in t){if("__proto__"===n)continue;(Array.isArray(t[n])?e:r)[n]=t[n]}return[e,r]}(t);n(t,e),i(t,r)}};function n(t,e=t.schema){const{gen:r,data:n,it:i}=t;if(0===Object.keys(e).length)return;const o=r.let("missing");for(const s in e){const a=e[s];if(0===a.length)continue;const u=(0,ah.propertyInData)(r,n,s,i.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),i.allErrors?r.if(u,(()=>{for(const e of a)(0,ah.checkReportMissingProp)(t,e)})):(r.if(Ju._`${u} && (${(0,ah.checkMissingProp)(t,a,o)})`),(0,ah.reportMissingProp)(t,o),r.else())}}function i(t,e=t.schema){const{gen:r,data:n,keyword:i,it:o}=t,s=r.name("valid");for(const a in e)(0,Yu.alwaysValidSchema)(o,e[a])||(r.if((0,ah.propertyInData)(r,n,a,o.opts.ownProperties),(()=>{const e=t.subschema({keyword:i,schemaProp:a},s);t.mergeValidEvaluated(e,s)}),(()=>r.var(s,!0))),t.ok(s))}e.validatePropertyDeps=n,e.validateSchemaDeps=i,e.default=r}));const Ml={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:t})=>Ju._`{propertyName: ${t.propertyName}}`},code(t){const{gen:e,schema:r,data:n,it:i}=t;if((0,Yu.alwaysValidSchema)(i,r))return;const o=e.name("valid");e.forIn("key",n,(r=>{t.setParams({propertyName:r}),t.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},o),e.if((0,Ju.not)(o),(()=>{t.error(!0),i.allErrors||e.break()}))})),t.ok(o)}};var kl=Ml,xl=Object.defineProperty({default:kl},"__esModule",{value:!0});const Nl={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:t})=>Ju._`{additionalProperty: ${t.additionalProperty}}`},code(t){const{gen:e,schema:r,parentSchema:n,data:i,errsCount:o,it:s}=t;if(!o)throw new Error("ajv implementation error");const{allErrors:a,opts:u}=s;if(s.props=!0,"all"!==u.removeAdditional&&(0,Yu.alwaysValidSchema)(s,r))return;const h=(0,ah.allSchemaProperties)(n.properties),l=(0,ah.allSchemaProperties)(n.patternProperties);function c(t){e.code(Ju._`delete ${i}[${t}]`)}function f(n){if("all"===u.removeAdditional||u.removeAdditional&&!1===r)c(n);else{if(!1===r)return t.setParams({additionalProperty:n}),t.error(),void(a||e.break());if("object"==typeof r&&!(0,Yu.alwaysValidSchema)(s,r)){const r=e.name("valid");"failing"===u.removeAdditional?(d(n,r,!1),e.if((0,Ju.not)(r),(()=>{t.reset(),c(n)}))):(d(n,r),a||e.if((0,Ju.not)(r),(()=>e.break())))}}}function d(e,r,n){const i={keyword:"additionalProperties",dataProp:e,dataPropType:Yu.Type.Str};!1===n&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(i,r)}e.forIn("key",i,(r=>{h.length||l.length?e.if(function(r){let i;if(h.length>8){const t=(0,Yu.schemaRefOrVal)(s,n.properties,"properties");i=(0,ah.isOwnProperty)(e,t,r)}else i=h.length?(0,Ju.or)(...h.map((t=>Ju._`${r} === ${t}`))):Ju.nil;return l.length&&(i=(0,Ju.or)(i,...l.map((e=>Ju._`${(0,ah.usePattern)(t,e)}.test(${r})`)))),(0,Ju.not)(i)}(r),(()=>f(r))):f(r)})),t.ok(Ju._`${o} === ${th.default.errors}`)}};var Sl=Nl,Ul=Object.defineProperty({default:Sl},"__esModule",{value:!0});const Pl={keyword:"properties",type:"object",schemaType:"object",code(t){const{gen:e,schema:r,parentSchema:n,data:i,it:o}=t;"all"===o.opts.removeAdditional&&void 0===n.additionalProperties&&Ul.default.code(new dh.KeywordCxt(o,Ul.default,"additionalProperties"));const s=(0,ah.allSchemaProperties)(r);for(const t of s)o.definedProperties.add(t);o.opts.unevaluated&&s.length&&!0!==o.props&&(o.props=Yu.mergeEvaluated.props(e,(0,Yu.toHash)(s),o.props));const a=s.filter((t=>!(0,Yu.alwaysValidSchema)(o,r[t])));if(0===a.length)return;const u=e.name("valid");for(const r of a)h(r)?l(r):(e.if((0,ah.propertyInData)(e,i,r,o.opts.ownProperties)),l(r),o.allErrors||e.else().var(u,!0),e.endIf()),t.it.definedProperties.add(r),t.ok(u);function h(t){return o.opts.useDefaults&&!o.compositeRule&&void 0!==r[t].default}function l(e){t.subschema({keyword:"properties",schemaProp:e,dataProp:e},u)}}};var Tl=Pl,Rl=Object.defineProperty({default:Tl},"__esModule",{value:!0});const Cl=Yu,Il={keyword:"patternProperties",type:"object",schemaType:"object",code(t){const{gen:e,schema:r,data:n,parentSchema:i,it:o}=t,{opts:s}=o,a=(0,ah.allSchemaProperties)(r),u=a.filter((t=>(0,Yu.alwaysValidSchema)(o,r[t])));if(0===a.length||u.length===a.length&&(!o.opts.unevaluated||!0===o.props))return;const h=s.strictSchema&&!s.allowMatchingProperties&&i.properties,l=e.name("valid");!0===o.props||o.props instanceof Ju.Name||(o.props=(0,Cl.evaluatedPropsToName)(e,o.props));const{props:c}=o;function f(t){for(const e in h)new RegExp(t).test(e)&&(0,Yu.checkStrictMode)(o,`property ${e} matches pattern ${t} (use allowMatchingProperties)`)}function d(r){e.forIn("key",n,(n=>{e.if(Ju._`${(0,ah.usePattern)(t,r)}.test(${n})`,(()=>{const i=u.includes(r);i||t.subschema({keyword:"patternProperties",schemaProp:r,dataProp:n,dataPropType:Cl.Type.Str},l),o.opts.unevaluated&&!0!==c?e.assign(Ju._`${c}[${n}]`,!0):i||o.allErrors||e.if((0,Ju.not)(l),(()=>e.break()))}))}))}!function(){for(const t of a)h&&f(t),o.allErrors?d(t):(e.var(l,!0),d(t),e.if(l))}()}};var $l=Il,Ol=Object.defineProperty({default:$l},"__esModule",{value:!0});var Fl={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:e,schema:r,it:n}=t;if((0,Yu.alwaysValidSchema)(n,r))return void t.fail();const i=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),t.failResult(i,(()=>t.reset()),(()=>t.error()))},error:{message:"must NOT be valid"}},Bl=Object.defineProperty({default:Fl},"__esModule",{value:!0});var jl={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ah.validateUnion,error:{message:"must match a schema in anyOf"}},Dl=Object.defineProperty({default:jl},"__esModule",{value:!0});var Ll={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:t})=>Ju._`{passingSchemas: ${t.passing}}`},code(t){const{gen:e,schema:r,parentSchema:n,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;const o=r,s=e.let("valid",!1),a=e.let("passing",null),u=e.name("_valid");t.setParams({passing:a}),e.block((function(){o.forEach(((r,n)=>{let o;(0,Yu.alwaysValidSchema)(i,r)?e.var(u,!0):o=t.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},u),n>0&&e.if(Ju._`${u} && ${s}`).assign(s,!1).assign(a,Ju._`[${a}, ${n}]`).else(),e.if(u,(()=>{e.assign(s,!0),e.assign(a,n),o&&t.mergeEvaluated(o,Ju.Name)}))}))})),t.result(s,(()=>t.reset()),(()=>t.error(!0)))}},zl=Object.defineProperty({default:Ll},"__esModule",{value:!0});var ql={keyword:"allOf",schemaType:"array",code(t){const{gen:e,schema:r,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=e.name("valid");r.forEach(((e,r)=>{if((0,Yu.alwaysValidSchema)(n,e))return;const o=t.subschema({keyword:"allOf",schemaProp:r},i);t.ok(i),t.mergeEvaluated(o)}))}},Vl=Object.defineProperty({default:ql},"__esModule",{value:!0});const Gl={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:t})=>Ju.str`must match "${t.ifClause}" schema`,params:({params:t})=>Ju._`{failingKeyword: ${t.ifClause}}`},code(t){const{gen:e,parentSchema:r,it:n}=t;void 0===r.then&&void 0===r.else&&(0,Yu.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=Hl(n,"then"),o=Hl(n,"else");if(!i&&!o)return;const s=e.let("valid",!0),a=e.name("_valid");if(function(){const e=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(e)}(),t.reset(),i&&o){const r=e.let("ifClause");t.setParams({ifClause:r}),e.if(a,u("then",r),u("else",r))}else i?e.if(a,u("then")):e.if((0,Ju.not)(a),u("else"));function u(r,n){return()=>{const i=t.subschema({keyword:r},a);e.assign(s,a),t.mergeValidEvaluated(i,s),n?e.assign(n,Ju._`${r}`):t.setParams({ifClause:r})}}t.pass(s,(()=>t.error(!0)))}};function Hl(t,e){const r=t.schema[e];return void 0!==r&&!(0,Yu.alwaysValidSchema)(t,r)}var Ql=Gl,Kl=Object.defineProperty({default:Ql},"__esModule",{value:!0});const Zl={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){void 0===e.if&&(0,Yu.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};var Wl=Zl,Jl=Object.defineProperty({default:Wl},"__esModule",{value:!0});var Yl=function(t=!1){const e=[Bl.default,Dl.default,zl.default,Vl.default,Kl.default,Jl.default,xl.default,Ul.default,El.default,Rl.default,Ol.default];return t?e.push(gl.default,bl.default):e.push(pl.default,ml.default),e.push(_l.default),e},Xl=Object.defineProperty({default:Yl},"__esModule",{value:!0});const tc={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:t})=>Ju.str`must match format "${t}"`,params:({schemaCode:t})=>Ju._`{format: ${t}}`},code(t,e){const{gen:r,data:n,$data:i,schema:o,schemaCode:s,it:a}=t,{opts:u,errSchemaPath:h,schemaEnv:l,self:c}=a;u.validateFormats&&(i?function(){const i=r.scopeValue("formats",{ref:c.formats,code:u.code.formats}),o=r.const("fDef",Ju._`${i}[${s}]`),a=r.let("fType"),h=r.let("format");r.if(Ju._`typeof ${o} == "object" && !(${o} instanceof RegExp)`,(()=>r.assign(a,Ju._`${o}.type || "string"`).assign(h,Ju._`${o}.validate`)),(()=>r.assign(a,Ju._`"string"`).assign(h,o))),t.fail$data((0,Ju.or)(!1===u.strictSchema?Ju.nil:Ju._`${s} && !${h}`,function(){const t=l.$async?Ju._`(${o}.async ? await ${h}(${n}) : ${h}(${n}))`:Ju._`${h}(${n})`,r=Ju._`(typeof ${h} == "function" ? ${t} : ${h}.test(${n}))`;return Ju._`${h} && ${h} !== true && ${a} === ${e} && !${r}`}()))}():function(){const i=c.formats[o];if(!i)return void function(){if(!1===u.strictSchema)return void c.logger.warn(t());throw new Error(t());function t(){return`unknown format "${o}" ignored in schema at path "${h}"`}}();if(!0===i)return;const[s,a,f]=function(t){const e=t instanceof RegExp?(0,Ju.regexpCode)(t):u.code.formats?Ju._`${u.code.formats}${(0,Ju.getProperty)(o)}`:void 0,n=r.scopeValue("formats",{key:o,ref:t,code:e});if("object"==typeof t&&!(t instanceof RegExp))return[t.type||"string",t.validate,Ju._`${n}.validate`];return["string",t,n]}(i);s===e&&t.pass(function(){if("object"==typeof i&&!(i instanceof RegExp)&&i.async){if(!l.$async)throw new Error("async format in sync schema");return Ju._`await ${f}(${n})`}return"function"==typeof a?Ju._`${f}(${n})`:Ju._`${f}.test(${n})`}())}())}};var ec=tc;var rc=[Object.defineProperty({default:ec},"__esModule",{value:!0}).default],nc=Object.defineProperty({default:rc},"__esModule",{value:!0}),ic=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.contentVocabulary=e.metadataVocabulary=void 0,e.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],e.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]}));var oc=[Ph.default,dl.default,(0,Xl.default)(),nc.default,ic.metadataVocabulary,ic.contentVocabulary],sc=Object.defineProperty({default:oc},"__esModule",{value:!0}),ac=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))}));const uc={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:t,tagName:e}})=>t===ac.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>Ju._`{error: ${t}, tag: ${r}, tagValue: ${e}}`},code(t){const{gen:e,data:r,schema:n,parentSchema:i,it:o}=t,{oneOf:s}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");const a=n.propertyName;if("string"!=typeof a)throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");const u=e.let("valid",!1),h=e.const("tag",Ju._`${r}${(0,Ju.getProperty)(a)}`);function l(r){const n=e.name("valid"),i=t.subschema({keyword:"oneOf",schemaProp:r},n);return t.mergeEvaluated(i,Ju.Name),n}e.if(Ju._`typeof ${h} == "string"`,(()=>function(){const r=function(){var t;const e={},r=u(i);let n=!0;for(let e=0;e<s.length;e++){let i=s[e];(null==i?void 0:i.$ref)&&!(0,Yu.schemaHasRulesButRef)(i,o.self.RULES)&&(i=bh.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,null==i?void 0:i.$ref),i instanceof bh.SchemaEnv&&(i=i.schema));const l=null===(t=null==i?void 0:i.properties)||void 0===t?void 0:t[a];if("object"!=typeof l)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);n=n&&(r||u(i)),h(l,e)}if(!n)throw new Error(`discriminator: "${a}" must be required`);return e;function u({required:t}){return Array.isArray(t)&&t.includes(a)}function h(t,e){if(t.const)l(t.const,e);else{if(!t.enum)throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`);for(const r of t.enum)l(r,e)}}function l(t,r){if("string"!=typeof t||t in e)throw new Error(`discriminator: "${a}" values must be unique strings`);e[t]=r}}();e.if(!1);for(const t in r)e.elseIf(Ju._`${h} === ${t}`),e.assign(u,l(r[t]));e.else(),t.error(!1,{discrError:ac.DiscrError.Mapping,tag:h,tagName:a}),e.endIf()}()),(()=>t.error(!1,{discrError:ac.DiscrError.Tag,tag:h,tagName:a}))),t.ok(u)}};var hc=uc,lc=Object.defineProperty({default:hc},"__esModule",{value:!0}),cc={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0},fc=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const r=["/properties"],n="http://json-schema.org/draft-07/schema";class i extends kh.default{_addVocabularies(){super._addVocabularies(),sc.default.forEach((t=>this.addVocabulary(t))),this.opts.discriminator&&this.addKeyword(lc.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const t=this.opts.$data?this.$dataMetaSchema(cc,r):cc;this.addMetaSchema(t,n,!1),this.refs["http://json-schema.org/schema"]=n}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(n)?n:void 0)}}t.exports=e=i,Object.defineProperty(e,"__esModule",{value:!0}),e.default=i,Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return dh.KeywordCxt}}),Object.defineProperty(e,"_",{enumerable:!0,get:function(){return Ju._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return Ju.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return Ju.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return Ju.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return Ju.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return Ju.CodeGen}})})),dc=s(fc),pc=u((function(t,e){function r(t,e){return{validate:t,compare:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0,e.fullFormats={date:r(o,s),time:r(u,h),"date-time":r((function(t){const e=t.split(l);return 2===e.length&&o(e[0])&&u(e[1],!0)}),c),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(t){return f.test(t)&&d.test(t)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function(t){if(y.test(t))return!1;try{return new RegExp(t),!0}catch(t){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(t){return p.lastIndex=0,p.test(t)},int32:{type:"number",validate:function(t){return Number.isInteger(t)&&t<=2147483647&&t>=-2147483648}},int64:{type:"number",validate:function(t){return Number.isInteger(t)}},float:{type:"number",validate:m},double:{type:"number",validate:m},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:r(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:r(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,h),"date-time":r(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,c),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(t){const e=n.exec(t);if(!e)return!1;const r=+e[1],o=+e[2],s=+e[3];return o>=1&&o<=12&&s>=1&&s<=(2===o&&function(t){return t%4==0&&(t%100!=0||t%400==0)}(r)?29:i[o])}function s(t,e){if(t&&e)return t>e?1:t<e?-1:0}const a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function u(t,e){const r=a.exec(t);if(!r)return!1;const n=+r[1],i=+r[2],o=+r[3],s=r[5];return(n<=23&&i<=59&&o<=59||23===n&&59===i&&60===o)&&(!e||""!==s)}function h(t,e){if(!t||!e)return;const r=a.exec(t),n=a.exec(e);return r&&n?(t=r[1]+r[2]+r[3]+(r[4]||""))>(e=n[1]+n[2]+n[3]+(n[4]||""))?1:t<e?-1:0:void 0}const l=/t|\s/i;function c(t,e){if(!t||!e)return;const[r,n]=t.split(l),[i,o]=e.split(l),a=s(r,i);return void 0!==a?a||h(n,o):void 0}const f=/\/|:/,d=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;const p=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function m(){return!0}const y=/[^\\]\\Z/})),mc=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const r=Ju.operators,n={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},i={message:({keyword:t,schemaCode:e})=>Ju.str`should be ${n[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>Ju._`{comparison: ${n[t].okStr}, limit: ${e}}`};e.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:i,code(t){const{gen:e,data:r,schemaCode:i,keyword:o,it:s}=t,{opts:a,self:u}=s;if(!a.validateFormats)return;const h=new fc.KeywordCxt(s,u.RULES.all.format.definition,"format");function l(t){return Ju._`${t}.compare(${r}, ${i}) ${n[o].fail} 0`}h.$data?function(){const r=e.scopeValue("formats",{ref:u.formats,code:a.code.formats}),n=e.const("fmt",Ju._`${r}[${h.schemaCode}]`);t.fail$data(Ju.or(Ju._`typeof ${n} != "object"`,Ju._`${n} instanceof RegExp`,Ju._`typeof ${n}.compare != "function"`,l(n)))}():function(){const r=h.schema,n=u.formats[r];if(!n||!0===n)return;if("object"!=typeof n||n instanceof RegExp||"function"!=typeof n.compare)throw new Error(`"${o}": format "${r}" does not define "compare" function`);const i=e.scopeValue("formats",{key:r,ref:n,code:a.code.formats?Ju._`${a.code.formats}${Ju.getProperty(r)}`:void 0});t.fail$data(l(i))}()},dependencies:["format"]};e.default=t=>(t.addKeyword(e.formatLimitDefinition),t)})),yc=u((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const r=new Ju.Name("fullFormats"),n=new Ju.Name("fastFormats"),i=(t,e={keywords:!0})=>{if(Array.isArray(e))return o(t,e,pc.fullFormats,r),t;const[i,s]="fast"===e.mode?[pc.fastFormats,n]:[pc.fullFormats,r];return o(t,e.formats||pc.formatNames,i,s),e.keywords&&mc.default(t),t};function o(t,e,r,n){var i,o;null!==(i=(o=t.opts.code).formats)&&void 0!==i||(o.formats=Ju._`require("ajv-formats/dist/formats").${n}`);for(const n of e)t.addFormat(n,r[n])}i.get=(t,e="full")=>{const r=("fast"===e?pc.fastFormats:pc.fullFormats)[t];if(!r)throw new Error(`Unknown format "${t}"`);return r},t.exports=e=i,Object.defineProperty(e,"__esModule",{value:!0}),e.default=i})),gc=s(yc),vc="__lodash_hash_undefined__",wc="[object Function]",bc="[object GeneratorFunction]",Ac=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_c=/^\w*$/,Ec=/^\./,Mc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kc=/\\(\\)?/g,xc=/^\[object .+?Constructor\]$/,Nc=/^(?:0|[1-9]\d*)$/,Sc="object"==typeof o&&o&&o.Object===Object&&o,Uc="object"==typeof self&&self&&self.Object===Object&&self,Pc=Sc||Uc||Function("return this")();var Tc,Rc=Array.prototype,Cc=Function.prototype,Ic=Object.prototype,$c=Pc["__core-js_shared__"],Oc=(Tc=/[^.]+$/.exec($c&&$c.keys&&$c.keys.IE_PROTO||""))?"Symbol(src)_1."+Tc:"",Fc=Cc.toString,Bc=Ic.hasOwnProperty,jc=Ic.toString,Dc=RegExp("^"+Fc.call(Bc).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lc=Pc.Symbol,zc=Rc.splice,qc=ef(Pc,"Map"),Vc=ef(Object,"create"),Gc=Lc?Lc.prototype:void 0,Hc=Gc?Gc.toString:void 0;function Qc(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Kc(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Zc(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Wc(t,e,r){var n=t[e];Bc.call(t,e)&&af(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function Jc(t,e){for(var r=t.length;r--;)if(af(t[r][0],e))return r;return-1}function Yc(t){if(!hf(t)||(e=t,Oc&&Oc in e))return!1;var e,r=function(t){var e=hf(t)?jc.call(t):"";return e==wc||e==bc}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?Dc:xc;return r.test(function(t){if(null!=t){try{return Fc.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function Xc(t,e,r,n){if(!hf(t))return t;e=function(t,e){if(uf(t))return!1;var r=typeof t;if("number"==r||"symbol"==r||"boolean"==r||null==t||lf(t))return!0;return _c.test(t)||!Ac.test(t)||null!=e&&t in Object(e)}(e,t)?[e]:function(t){return uf(t)?t:nf(t)}(e);for(var i=-1,o=e.length,s=o-1,a=t;null!=a&&++i<o;){var u=of(e[i]),h=r;if(i!=s){var l=a[u];void 0===(h=n?n(l,u,a):void 0)&&(h=hf(l)?l:rf(e[i+1])?[]:{})}Wc(a,u,h),a=a[u]}return t}function tf(t,e){var r=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?r["string"==typeof e?"string":"hash"]:r.map}function ef(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Yc(r)?r:void 0}function rf(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||Nc.test(t))&&t>-1&&t%1==0&&t<e}Qc.prototype.clear=function(){this.__data__=Vc?Vc(null):{}},Qc.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Qc.prototype.get=function(t){var e=this.__data__;if(Vc){var r=e[t];return r===vc?void 0:r}return Bc.call(e,t)?e[t]:void 0},Qc.prototype.has=function(t){var e=this.__data__;return Vc?void 0!==e[t]:Bc.call(e,t)},Qc.prototype.set=function(t,e){return this.__data__[t]=Vc&&void 0===e?vc:e,this},Kc.prototype.clear=function(){this.__data__=[]},Kc.prototype.delete=function(t){var e=this.__data__,r=Jc(e,t);return!(r<0)&&(r==e.length-1?e.pop():zc.call(e,r,1),!0)},Kc.prototype.get=function(t){var e=this.__data__,r=Jc(e,t);return r<0?void 0:e[r][1]},Kc.prototype.has=function(t){return Jc(this.__data__,t)>-1},Kc.prototype.set=function(t,e){var r=this.__data__,n=Jc(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},Zc.prototype.clear=function(){this.__data__={hash:new Qc,map:new(qc||Kc),string:new Qc}},Zc.prototype.delete=function(t){return tf(this,t).delete(t)},Zc.prototype.get=function(t){return tf(this,t).get(t)},Zc.prototype.has=function(t){return tf(this,t).has(t)},Zc.prototype.set=function(t,e){return tf(this,t).set(t,e),this};var nf=sf((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(lf(t))return Hc?Hc.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var r=[];return Ec.test(t)&&r.push(""),t.replace(Mc,(function(t,e,n,i){r.push(n?i.replace(kc,"$1"):e||t)})),r}));function of(t){if("string"==typeof t||lf(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function sf(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s),s};return r.cache=new(sf.Cache||Zc),r}function af(t,e){return t===e||t!=t&&e!=e}sf.Cache=Zc;var uf=Array.isArray;function hf(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function lf(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==jc.call(t)}var cf=function(t,e,r){return null==t?t:Xc(t,e,r)},ff=function(){function t(t,e,r,n){this.options={},this.calls=[],this.paths=[],this.network=t,this.provider=e,this.abi=r,this.options=n||{}}return t.prototype.call=function(t,e,r,n){return this.calls.push([e,r,n]),this.paths.push(t),this},t.prototype.execute=function(t){return e(this,void 0,void 0,(function(){var e,n=this;return r(this,(function(r){switch(r.label){case 0:return e=t||{},[4,ap(this.network,this.provider,this.abi,this.calls,this.options)];case 1:return r.sent().forEach((function(t,r){return cf(e,n.paths[r],t.length>1?t:t[0])})),this.calls=[],this.paths=[],[2,e]}}))}))},t}(),df={};setInterval((function(){return df={}}),36e5);const pf=new b("networks/5.6.4");function mf(t){const e=function(e,r){null==r&&(r={});const n=[];if(e.InfuraProvider&&"-"!==r.infura)try{n.push(new e.InfuraProvider(t,r.infura))}catch(t){}if(e.EtherscanProvider&&"-"!==r.etherscan)try{n.push(new e.EtherscanProvider(t,r.etherscan))}catch(t){}if(e.AlchemyProvider&&"-"!==r.alchemy)try{n.push(new e.AlchemyProvider(t,r.alchemy))}catch(t){}if(e.PocketProvider&&"-"!==r.pocket){const i=["goerli","ropsten","rinkeby"];try{const o=new e.PocketProvider(t,r.pocket);o.network&&-1===i.indexOf(o.network.name)&&n.push(o)}catch(t){}}if(e.CloudflareProvider&&"-"!==r.cloudflare)try{n.push(new e.CloudflareProvider(t))}catch(t){}if(e.AnkrProvider&&"-"!==r.ankr)try{const i=["ropsten"],o=new e.AnkrProvider(t,r.ankr);o.network&&-1===i.indexOf(o.network.name)&&n.push(o)}catch(t){}if(0===n.length)return null;if(e.FallbackProvider){let i=1;return null!=r.quorum?i=r.quorum:"homestead"===t&&(i=2),new e.FallbackProvider(n,i)}return n[0]};return e.renetwork=function(t){return mf(t)},e}function yf(t,e){const r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(t,e):null};return r.renetwork=function(e){return yf(t,e)},r}const gf={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:mf("homestead")},vf={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:mf("ropsten")},wf={chainId:63,name:"classicMordor",_defaultProvider:yf("https://www.ethercluster.com/mordor","classicMordor")},bf={unspecified:{chainId:0,name:"unspecified"},homestead:gf,mainnet:gf,morden:{chainId:2,name:"morden"},ropsten:vf,testnet:vf,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:mf("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:mf("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:mf("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},classic:{chainId:61,name:"classic",_defaultProvider:yf("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:wf,classicTestnet:wf,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:yf("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:mf("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:mf("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function Af(t){t=atob(t);const e=[];for(let r=0;r<t.length;r++)e.push(t.charCodeAt(r));return N(e)}function _f(t){t=N(t);let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}class Ef{constructor(t){mr(this,"alphabet",t),mr(this,"base",t.length),mr(this,"_alphabetMap",{}),mr(this,"_leader",t.charAt(0));for(let e=0;e<t.length;e++)this._alphabetMap[t.charAt(e)]=e}encode(t){let e=N(t);if(0===e.length)return"";let r=[0];for(let t=0;t<e.length;++t){let n=e[t];for(let t=0;t<r.length;++t)n+=r[t]<<8,r[t]=n%this.base,n=n/this.base|0;for(;n>0;)r.push(n%this.base),n=n/this.base|0}let n="";for(let t=0;0===e[t]&&t<e.length-1;++t)n+=this._leader;for(let t=r.length-1;t>=0;--t)n+=this.alphabet[r[t]];return n}decode(t){if("string"!=typeof t)throw new TypeError("Expected String");let e=[];if(0===t.length)return new Uint8Array(e);e.push(0);for(let r=0;r<t.length;r++){let n=this._alphabetMap[t[r]];if(void 0===n)throw new Error("Non-base"+this.base+" character");let i=n;for(let t=0;t<e.length;++t)i+=e[t]*this.base,e[t]=255&i,i>>=8;for(;i>0;)e.push(255&i),i>>=8}for(let r=0;t[r]===this._leader&&r<t.length-1;++r)e.push(0);return N(new Uint8Array(e.reverse()))}}new Ef("abcdefghijklmnopqrstuvwxyz234567");const Mf=new Ef("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");new b("sha2/5.6.1");function kf(t){return"0x"+fs.sha256().update(N(t)).digest("hex")}var xf=window&&window.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};function Nf(t,e){return xf(this,void 0,void 0,(function*(){null==e&&(e={});const r={method:e.method||"GET",headers:e.headers||{},body:e.body||void 0};!0!==e.skipFetchSetup&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client");const n=yield fetch(t,r),i=yield n.arrayBuffer(),o={};return n.headers.forEach?n.headers.forEach(((t,e)=>{o[e.toLowerCase()]=t})):n.headers.keys().forEach((t=>{o[t.toLowerCase()]=n.headers.get(t)})),{headers:o,statusCode:n.status,statusMessage:n.statusText,body:N(new Uint8Array(i))}}))}var Sf=window&&window.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const Uf=new b("web/5.6.1");function Pf(t){return new Promise((e=>{setTimeout(e,t)}))}function Tf(t,e){if(null==t)return null;if("string"==typeof t)return t;if(M(t)){if(e&&("text"===e.split("/")[0]||"application/json"===e.split(";")[0].trim()))try{return En(t)}catch(t){}return R(t)}return t}function Rf(t,e,r){let n=null;if(null!=e){n=An(e);const r="string"==typeof t?{url:t}:vr(t);if(r.headers){0!==Object.keys(r.headers).filter((t=>"content-type"===t.toLowerCase())).length||(r.headers=vr(r.headers),r.headers["content-type"]="application/json")}else r.headers={"content-type":"application/json"};t=r}return function(t,e,r){const n="object"==typeof t&&null!=t.throttleLimit?t.throttleLimit:12;Uf.assertArgument(n>0&&n%1==0,"invalid connection throttle limit","connection.throttleLimit",n);const i="object"==typeof t?t.throttleCallback:null,o="object"==typeof t&&"number"==typeof t.throttleSlotInterval?t.throttleSlotInterval:100;Uf.assertArgument(o>0&&o%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o);const s="object"==typeof t&&!!t.errorPassThrough,a={};let u=null;const h={method:"GET"};let l=!1,c=12e4;if("string"==typeof t)u=t;else if("object"==typeof t){if(null!=t&&null!=t.url||Uf.throwArgumentError("missing URL","connection.url",t),u=t.url,"number"==typeof t.timeout&&t.timeout>0&&(c=t.timeout),t.headers)for(const e in t.headers)a[e.toLowerCase()]={key:e,value:String(t.headers[e])},["if-none-match","if-modified-since"].indexOf(e.toLowerCase())>=0&&(l=!0);if(h.allowGzip=!!t.allowGzip,null!=t.user&&null!=t.password){"https:"!==u.substring(0,6)&&!0!==t.allowInsecureAuthentication&&Uf.throwError("basic authentication requires a secure https url",b.errors.INVALID_ARGUMENT,{argument:"url",url:u,user:t.user,password:"[REDACTED]"});const e=t.user+":"+t.password;a.authorization={key:"Authorization",value:"Basic "+_f(An(e))}}null!=t.skipFetchSetup&&(h.skipFetchSetup=!!t.skipFetchSetup)}const f=new RegExp("^data:([a-z0-9-]+/[a-z0-9-]+);base64,(.*)$","i"),d=u?u.match(f):null;if(d)try{const t={statusCode:200,statusMessage:"OK",headers:{"content-type":d[1]},body:Af(d[2])};let e=t.body;return r&&(e=r(t.body,t)),Promise.resolve(e)}catch(t){Uf.throwError("processing response error",b.errors.SERVER_ERROR,{body:Tf(d[1],d[2]),error:t,requestBody:null,requestMethod:"GET",url:u})}e&&(h.method="POST",h.body=e,null==a["content-type"]&&(a["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==a["content-length"]&&(a["content-length"]={key:"Content-Length",value:String(e.length)}));const p={};Object.keys(a).forEach((t=>{const e=a[t];p[e.key]=e.value})),h.headers=p;const m=function(){let t=null;return{promise:new Promise((function(e,r){c&&(t=setTimeout((()=>{null!=t&&(t=null,r(Uf.makeError("timeout",b.errors.TIMEOUT,{requestBody:Tf(h.body,p["content-type"]),requestMethod:h.method,timeout:c,url:u})))}),c))})),cancel:function(){null!=t&&(clearTimeout(t),t=null)}}}(),y=function(){return Sf(this,void 0,void 0,(function*(){for(let t=0;t<n;t++){let e=null;try{if(e=yield Nf(u,h),t<n)if(301===e.statusCode||302===e.statusCode){const t=e.headers.location||"";if("GET"===h.method&&t.match(/^https:/)){u=e.headers.location;continue}}else if(429===e.statusCode){let r=!0;if(i&&(r=yield i(t,u)),r){let r=0;const n=e.headers["retry-after"];r="string"==typeof n&&n.match(/^[1-9][0-9]*$/)?1e3*parseInt(n):o*parseInt(String(Math.random()*Math.pow(2,t))),yield Pf(r);continue}}}catch(t){e=t.response,null==e&&(m.cancel(),Uf.throwError("missing response",b.errors.SERVER_ERROR,{requestBody:Tf(h.body,p["content-type"]),requestMethod:h.method,serverError:t,url:u}))}let a=e.body;if(l&&304===e.statusCode?a=null:!s&&(e.statusCode<200||e.statusCode>=300)&&(m.cancel(),Uf.throwError("bad response",b.errors.SERVER_ERROR,{status:e.statusCode,headers:e.headers,body:Tf(a,e.headers?e.headers["content-type"]:null),requestBody:Tf(h.body,p["content-type"]),requestMethod:h.method,url:u})),r)try{const t=yield r(a,e);return m.cancel(),t}catch(r){if(r.throttleRetry&&t<n){let e=!0;if(i&&(e=yield i(t,u)),e){const e=o*parseInt(String(Math.random()*Math.pow(2,t)));yield Pf(e);continue}}m.cancel(),Uf.throwError("processing response error",b.errors.SERVER_ERROR,{body:Tf(a,e.headers?e.headers["content-type"]:null),error:r,requestBody:Tf(h.body,p["content-type"]),requestMethod:h.method,url:u})}return m.cancel(),a}return Uf.throwError("failed response",b.errors.SERVER_ERROR,{requestBody:Tf(h.body,p["content-type"]),requestMethod:h.method,url:u})}))}();return Promise.race([m.promise,y])}(t,n,((t,e)=>{let n=null;if(null!=t)try{n=JSON.parse(En(t))}catch(e){Uf.throwError("invalid JSON",b.errors.SERVER_ERROR,{body:t,error:e})}return r&&(n=r(n,e)),n}))}function Cf(t,e){return e||(e={}),null==(e=vr(e)).floor&&(e.floor=0),null==e.ceiling&&(e.ceiling=1e4),null==e.interval&&(e.interval=250),new Promise((function(r,n){let i=null,o=!1;const s=()=>!o&&(o=!0,i&&clearTimeout(i),!0);e.timeout&&(i=setTimeout((()=>{s()&&n(new Error("timeout"))}),e.timeout));const a=e.retryLimit;let u=0;!function i(){return t().then((function(t){if(void 0!==t)s()&&r(t);else if(e.oncePoll)e.oncePoll.once("poll",i);else if(e.onceBlock)e.onceBlock.once("block",i);else if(!o){if(u++,u>a)return void(s()&&n(new Error("retry limit reached")));let t=e.interval*parseInt(String(Math.random()*Math.pow(2,u)));t<e.floor&&(t=e.floor),t>e.ceiling&&(t=e.ceiling),setTimeout(i,t)}return null}),(function(t){s()&&n(t)}))}()}))}for(var If="qpzry9x8gf2tvdw0s3jn54khce6mua7l",$f={},Of=0;Of<If.length;Of++){var Ff=If.charAt(Of);if(void 0!==$f[Ff])throw new TypeError(Ff+" is ambiguous");$f[Ff]=Of}function Bf(t){var e=t>>25;return(33554431&t)<<5^996825010&-(e>>0&1)^642813549&-(e>>1&1)^513874426&-(e>>2&1)^1027748829&-(e>>3&1)^705979059&-(e>>4&1)}function jf(t){for(var e=1,r=0;r<t.length;++r){var n=t.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+t+")";e=Bf(e)^n>>5}for(e=Bf(e),r=0;r<t.length;++r){var i=t.charCodeAt(r);e=Bf(e)^31&i}return e}function Df(t,e){if(e=e||90,t.length<8)return t+" too short";if(t.length>e)return"Exceeds length limit";var r=t.toLowerCase(),n=t.toUpperCase();if(t!==r&&t!==n)return"Mixed-case string "+t;var i=(t=r).lastIndexOf("1");if(-1===i)return"No separator character for "+t;if(0===i)return"Missing prefix for "+t;var o=t.slice(0,i),s=t.slice(i+1);if(s.length<6)return"Data too short";var a=jf(o);if("string"==typeof a)return a;for(var u=[],h=0;h<s.length;++h){var l=s.charAt(h),c=$f[l];if(void 0===c)return"Unknown character "+l;a=Bf(a)^c,h+6>=s.length||u.push(c)}return 1!==a?"Invalid checksum for "+t:{prefix:o,words:u}}function Lf(t,e,r,n){for(var i=0,o=0,s=(1<<r)-1,a=[],u=0;u<t.length;++u)for(i=i<<e|t[u],o+=e;o>=r;)o-=r,a.push(i>>o&s);if(n)o>0&&a.push(i<<r-o&s);else{if(o>=e)return"Excess padding";if(i<<r-o&s)return"Non-zero padding"}return a}var zf={decodeUnsafe:function(){var t=Df.apply(null,arguments);if("object"==typeof t)return t},decode:function(t){var e=Df.apply(null,arguments);if("object"==typeof e)return e;throw new Error(e)},encode:function(t,e,r){if(r=r||90,t.length+7+e.length>r)throw new TypeError("Exceeds length limit");var n=jf(t=t.toLowerCase());if("string"==typeof n)throw new Error(n);for(var i=t+"1",o=0;o<e.length;++o){var s=e[o];if(s>>5!=0)throw new Error("Non 5-bit word");n=Bf(n)^s,i+=If.charAt(s)}for(o=0;o<6;++o)n=Bf(n);for(n^=1,o=0;o<6;++o){i+=If.charAt(n>>5*(5-o)&31)}return i},toWordsUnsafe:function(t){var e=Lf(t,8,5,!0);if(Array.isArray(e))return e},toWords:function(t){var e=Lf(t,8,5,!0);if(Array.isArray(e))return e;throw new Error(e)},fromWordsUnsafe:function(t){var e=Lf(t,5,8,!1);if(Array.isArray(e))return e},fromWords:function(t){var e=Lf(t,5,8,!1);if(Array.isArray(e))return e;throw new Error(e)}};const qf="providers/5.6.8",Vf=new b(qf);class Gf{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const t={},e=this.address.bind(this),r=this.bigNumber.bind(this),n=this.blockTag.bind(this),i=this.data.bind(this),o=this.hash.bind(this),s=this.hex.bind(this),a=this.number.bind(this),u=this.type.bind(this);return t.transaction={hash:o,type:u,accessList:Gf.allowNull(this.accessList.bind(this),null),blockHash:Gf.allowNull(o,null),blockNumber:Gf.allowNull(a,null),transactionIndex:Gf.allowNull(a,null),confirmations:Gf.allowNull(a,null),from:e,gasPrice:Gf.allowNull(r),maxPriorityFeePerGas:Gf.allowNull(r),maxFeePerGas:Gf.allowNull(r),gasLimit:r,to:Gf.allowNull(e,null),value:r,nonce:a,data:i,r:Gf.allowNull(this.uint256),s:Gf.allowNull(this.uint256),v:Gf.allowNull(a),creates:Gf.allowNull(e,null),raw:Gf.allowNull(i)},t.transactionRequest={from:Gf.allowNull(e),nonce:Gf.allowNull(a),gasLimit:Gf.allowNull(r),gasPrice:Gf.allowNull(r),maxPriorityFeePerGas:Gf.allowNull(r),maxFeePerGas:Gf.allowNull(r),to:Gf.allowNull(e),value:Gf.allowNull(r),data:Gf.allowNull((t=>this.data(t,!0))),type:Gf.allowNull(a),accessList:Gf.allowNull(this.accessList.bind(this),null)},t.receiptLog={transactionIndex:a,blockNumber:a,transactionHash:o,address:e,topics:Gf.arrayOf(o),data:i,logIndex:a,blockHash:o},t.receipt={to:Gf.allowNull(this.address,null),from:Gf.allowNull(this.address,null),contractAddress:Gf.allowNull(e,null),transactionIndex:a,root:Gf.allowNull(s),gasUsed:r,logsBloom:Gf.allowNull(i),blockHash:o,transactionHash:o,logs:Gf.arrayOf(this.receiptLog.bind(this)),blockNumber:a,confirmations:Gf.allowNull(a,null),cumulativeGasUsed:r,effectiveGasPrice:Gf.allowNull(r),status:Gf.allowNull(a),type:u},t.block={hash:Gf.allowNull(o),parentHash:o,number:a,timestamp:a,nonce:Gf.allowNull(s),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:Gf.allowNull(e),extraData:i,transactions:Gf.allowNull(Gf.arrayOf(o)),baseFeePerGas:Gf.allowNull(r)},t.blockWithTransactions=vr(t.block),t.blockWithTransactions.transactions=Gf.allowNull(Gf.arrayOf(this.transactionResponse.bind(this))),t.filter={fromBlock:Gf.allowNull(n,void 0),toBlock:Gf.allowNull(n,void 0),blockHash:Gf.allowNull(o,void 0),address:Gf.allowNull(e,void 0),topics:Gf.allowNull(this.topics.bind(this),void 0)},t.filterLog={blockNumber:Gf.allowNull(a),blockHash:Gf.allowNull(o),transactionIndex:a,removed:Gf.allowNull(this.boolean.bind(this)),address:e,data:Gf.allowFalsish(i,"0x"),topics:Gf.arrayOf(o),transactionHash:o,logIndex:a},t}accessList(t){return aa(t||[])}number(t){return"0x"===t?0:Ht.from(t).toNumber()}type(t){return"0x"===t||null==t?0:Ht.from(t).toNumber()}bigNumber(t){return Ht.from(t)}boolean(t){if("boolean"==typeof t)return t;if("string"==typeof t){if("true"===(t=t.toLowerCase()))return!0;if("false"===t)return!1}throw new Error("invalid boolean - "+t)}hex(t,e){return"string"==typeof t&&(e||"0x"===t.substring(0,2)||(t="0x"+t),P(t))?t.toLowerCase():Vf.throwArgumentError("invalid hash","value",t)}data(t,e){const r=this.hex(t,e);if(r.length%2!=0)throw new Error("invalid data; odd-length - "+t);return r}address(t){return $e(t)}callAddress(t){if(!P(t,32))return null;const e=$e(I(t,12));return"0x0000000000000000000000000000000000000000"===e?null:e}contractAddress(t){return Fe(t)}blockTag(t){if(null==t)return"latest";if("earliest"===t)return"0x0";if("latest"===t||"pending"===t)return t;if("number"==typeof t||P(t))return O(t);throw new Error("invalid blockTag")}hash(t,e){const r=this.hex(t,e);return 32!==C(r)?Vf.throwArgumentError("invalid hash","value",t):r}difficulty(t){if(null==t)return null;const e=Ht.from(t);try{return e.toNumber()}catch(t){}return null}uint256(t){if(!P(t))throw new Error("invalid uint256");return F(t,32)}_block(t,e){null!=t.author&&null==t.miner&&(t.miner=t.author);const r=null!=t._difficulty?t._difficulty:t.difficulty,n=Gf.check(e,t);return n._difficulty=null==r?null:Ht.from(r),n}block(t){return this._block(t,this.formats.block)}blockWithTransactions(t){return this._block(t,this.formats.blockWithTransactions)}transactionRequest(t){return Gf.check(this.formats.transactionRequest,t)}transactionResponse(t){null!=t.gas&&null==t.gasLimit&&(t.gasLimit=t.gas),t.to&&Ht.from(t.to).isZero()&&(t.to="0x0000000000000000000000000000000000000000"),null!=t.input&&null==t.data&&(t.data=t.input),null==t.to&&null==t.creates&&(t.creates=this.contractAddress(t)),1!==t.type&&2!==t.type||null!=t.accessList||(t.accessList=[]);const e=Gf.check(this.formats.transaction,t);if(null!=t.chainId){let r=t.chainId;P(r)&&(r=Ht.from(r).toNumber()),e.chainId=r}else{let r=t.networkId;null==r&&null==e.v&&(r=t.chainId),P(r)&&(r=Ht.from(r).toNumber()),"number"!=typeof r&&null!=e.v&&(r=(e.v-35)/2,r<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),e.chainId=r}return e.blockHash&&"x"===e.blockHash.replace(/0/g,"")&&(e.blockHash=null),e}transaction(t){return fa(t)}receiptLog(t){return Gf.check(this.formats.receiptLog,t)}receipt(t){const e=Gf.check(this.formats.receipt,t);if(null!=e.root)if(e.root.length<=4){const t=Ht.from(e.root).toNumber();0===t||1===t?(null!=e.status&&e.status!==t&&Vf.throwArgumentError("alt-root-status/status mismatch","value",{root:e.root,status:e.status}),e.status=t,delete e.root):Vf.throwArgumentError("invalid alt-root-status","value.root",e.root)}else 66!==e.root.length&&Vf.throwArgumentError("invalid root hash","value.root",e.root);return null!=e.status&&(e.byzantium=!0),e}topics(t){return Array.isArray(t)?t.map((t=>this.topics(t))):null!=t?this.hash(t,!0):null}filter(t){return Gf.check(this.formats.filter,t)}filterLog(t){return Gf.check(this.formats.filterLog,t)}static check(t,e){const r={};for(const n in t)try{const i=t[n](e[n]);void 0!==i&&(r[n]=i)}catch(t){throw t.checkKey=n,t.checkValue=e[n],t}return r}static allowNull(t,e){return function(r){return null==r?e:t(r)}}static allowFalsish(t,e){return function(r){return r?t(r):e}}static arrayOf(t){return function(e){if(!Array.isArray(e))throw new Error("not an array");const r=[];return e.forEach((function(e){r.push(t(e))})),r}}}var Hf=window&&window.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const Qf=new b(qf);function Kf(t){return null==t?"null":(32!==C(t)&&Qf.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function Zf(t){for(t=t.slice();t.length>0&&null==t[t.length-1];)t.pop();return t.map((t=>{if(Array.isArray(t)){const e={};t.forEach((t=>{e[Kf(t)]=!0}));const r=Object.keys(e);return r.sort(),r.join("|")}return Kf(t)})).join("&")}function Wf(t){if("string"==typeof t){if(32===C(t=t.toLowerCase()))return"tx:"+t;if(-1===t.indexOf(":"))return t}else{if(Array.isArray(t))return"filter:*:"+Zf(t);if(bi.isForkEvent(t))throw Qf.warn("not implemented"),new Error("not implemented");if(t&&"object"==typeof t)return"filter:"+(t.address||"*")+":"+Zf(t.topics||[])}throw new Error("invalid event - "+t)}function Jf(){return(new Date).getTime()}function Yf(t){return new Promise((e=>{setTimeout(e,t)}))}const Xf=["block","network","pending","poll"];class td{constructor(t,e,r){mr(this,"tag",t),mr(this,"listener",e),mr(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const t=this.tag.split(":");return"tx"!==t[0]?null:t[1]}get filter(){const t=this.tag.split(":");if("filter"!==t[0])return null;const e=t[1],r=""===(n=t[2])?[]:n.split(/&/g).map((t=>{if(""===t)return[];const e=t.split("|").map((t=>"null"===t?null:t));return 1===e.length?e[0]:e}));var n;const i={};return r.length>0&&(i.topics=r),e&&"*"!==e&&(i.address=e),i}pollable(){return this.tag.indexOf(":")>=0||Xf.indexOf(this.tag)>=0}}const ed={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function rd(t){return F(Ht.from(t).toHexString(),32)}function nd(t){return Mf.encode(S([t,I(kf(kf(t)),0,4)]))}const id=new RegExp("^(ipfs)://(.*)$","i"),od=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),id,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function sd(t,e){try{return En(ad(t,e))}catch(t){}return null}function ad(t,e){if("0x"===t)return null;const r=Ht.from(I(t,e,e+32)).toNumber(),n=Ht.from(I(t,r,r+32)).toNumber();return I(t,r+32,r+32+n)}function ud(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):Qf.throwArgumentError("unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}function hd(t){const e=N(t);if(e.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(e,32-e.length),r}function ld(t){if(t.length%32==0)return t;const e=new Uint8Array(32*Math.ceil(t.length/32));return e.set(t),e}function cd(t){const e=[];let r=0;for(let n=0;n<t.length;n++)e.push(null),r+=32;for(let n=0;n<t.length;n++){const i=N(t[n]);e[n]=hd(r),e.push(hd(i.length)),e.push(ld(i)),r+=32+32*Math.ceil(i.length/32)}return $(e)}class fd{constructor(t,e,r,n){mr(this,"provider",t),mr(this,"name",r),mr(this,"address",t.formatter.address(e)),mr(this,"_resolvedAddress",n)}supportsWildcard(){return this._supportsEip2544||(this._supportsEip2544=this.provider.call({to:this.address,data:"0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"}).then((t=>Ht.from(t).eq(1))).catch((t=>{if(t.code===b.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,t}))),this._supportsEip2544}_fetch(t,e){return Hf(this,void 0,void 0,(function*(){const r={to:this.address,ccipReadEnabled:!0,data:$([t,Qn(this.name),e||"0x"])};let n=!1;var i;(yield this.supportsWildcard())&&(n=!0,r.data=$(["0x9061b923",cd([(i=this.name,R(S(i.split(".").map((t=>{const e=An("_"+$n(t));return e[0]=e.length-1,e}))))+"00"),r.data])]));try{let t=yield this.provider.call(r);return N(t).length%32==4&&Qf.throwError("resolver threw error",b.errors.CALL_EXCEPTION,{transaction:r,data:t}),n&&(t=ad(t,0)),t}catch(t){if(t.code===b.errors.CALL_EXCEPTION)return null;throw t}}))}_fetchBytes(t,e){return Hf(this,void 0,void 0,(function*(){const r=yield this._fetch(t,e);return null!=r?ad(r,0):null}))}_getAddress(t,e){const r=ed[String(t)];if(null==r&&Qf.throwError(`unsupported coin type: ${t}`,b.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`}),"eth"===r.ilk)return this.provider.formatter.address(e);const n=N(e);if(null!=r.p2pkh){const t=e.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(t){const e=parseInt(t[1],16);if(t[2].length===2*e&&e>=1&&e<=75)return nd(S([[r.p2pkh],"0x"+t[2]]))}}if(null!=r.p2sh){const t=e.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(t){const e=parseInt(t[1],16);if(t[2].length===2*e&&e>=1&&e<=75)return nd(S([[r.p2sh],"0x"+t[2]]))}}if(null!=r.prefix){const t=n[1];let e=n[0];if(0===e?20!==t&&32!==t&&(e=-1):e=-1,e>=0&&n.length===2+t&&t>=1&&t<=75){const t=zf.toWords(n.slice(2));return t.unshift(e),zf.encode(r.prefix,t)}}return null}getAddress(t){return Hf(this,void 0,void 0,(function*(){if(null==t&&(t=60),60===t)try{const t=yield this._fetch("0x3b3b57de");return"0x"===t||"0x0000000000000000000000000000000000000000000000000000000000000000"===t?null:this.provider.formatter.callAddress(t)}catch(t){if(t.code===b.errors.CALL_EXCEPTION)return null;throw t}const e=yield this._fetchBytes("0xf1cb7e06",rd(t));if(null==e||"0x"===e)return null;const r=this._getAddress(t,e);return null==r&&Qf.throwError("invalid or unsupported coin data",b.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`,coinType:t,data:e}),r}))}getAvatar(){return Hf(this,void 0,void 0,(function*(){const t=[{type:"name",content:this.name}];try{const e=yield this.getText("avatar");if(null==e)return null;for(let r=0;r<od.length;r++){const n=e.match(od[r]);if(null==n)continue;const i=n[1].toLowerCase();switch(i){case"https":return t.push({type:"url",content:e}),{linkage:t,url:e};case"data":return t.push({type:"data",content:e}),{linkage:t,url:e};case"ipfs":return t.push({type:"ipfs",content:e}),{linkage:t,url:ud(e)};case"erc721":case"erc1155":{const r="erc721"===i?"0xc87b56dd":"0x0e89341c";t.push({type:i,content:e});const o=this._resolvedAddress||(yield this.getAddress()),s=(n[2]||"").split("/");if(2!==s.length)return null;const a=yield this.provider.formatter.address(s[0]),u=F(Ht.from(s[1]).toHexString(),32);if("erc721"===i){const e=this.provider.formatter.callAddress(yield this.provider.call({to:a,data:$(["0x6352211e",u])}));if(o!==e)return null;t.push({type:"owner",content:e})}else if("erc1155"===i){const e=Ht.from(yield this.provider.call({to:a,data:$(["0x00fdd58e",F(o,32),u])}));if(e.isZero())return null;t.push({type:"balance",content:e.toString()})}const h={to:this.provider.formatter.address(s[0]),data:$([r,u])};let l=sd(yield this.provider.call(h),0);if(null==l)return null;t.push({type:"metadata-url-base",content:l}),"erc1155"===i&&(l=l.replace("{id}",u.substring(2)),t.push({type:"metadata-url-expanded",content:l})),l.match(/^ipfs:/i)&&(l=ud(l)),t.push({type:"metadata-url",content:l});const c=yield Rf(l);if(!c)return null;t.push({type:"metadata",content:JSON.stringify(c)});let f=c.image;if("string"!=typeof f)return null;if(f.match(/^(https:\/\/|data:)/i));else{if(null==f.match(id))return null;t.push({type:"url-ipfs",content:f}),f=ud(f)}return t.push({type:"url",content:f}),{linkage:t,url:f}}}}}catch(t){}return null}))}getContentHash(){return Hf(this,void 0,void 0,(function*(){const t=yield this._fetchBytes("0xbc1c58d1");if(null==t||"0x"===t)return null;const e=t.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(e){const t=parseInt(e[3],16);if(e[4].length===2*t)return"ipfs://"+Mf.encode("0x"+e[1])}const r=t.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){const t=parseInt(r[3],16);if(r[4].length===2*t)return"ipns://"+Mf.encode("0x"+r[1])}const n=t.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&64===n[1].length)return"bzz://"+n[1];const i=t.match(/^0x90b2c605([0-9a-f]*)$/);if(i&&68===i[1].length){const t={"=":"","+":"-","/":"_"};return"sia://"+_f("0x"+i[1]).replace(/[=+\/]/g,(e=>t[e]))}return Qf.throwError("invalid or unsupported content hash data",b.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:t})}))}getText(t){return Hf(this,void 0,void 0,(function*(){let e=An(t);e=S([rd(64),rd(e.length),e]),e.length%32!=0&&(e=S([e,F("0x",32-t.length%32)]));const r=yield this._fetchBytes("0x59d1d43c",R(e));return null==r||"0x"===r?null:En(r)}))}}let dd=null,pd=1;class md extends Ai{constructor(t){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),mr(this,"anyNetwork","any"===t),this.anyNetwork&&(t=this.detectNetwork()),t instanceof Promise)this._networkPromise=t,t.catch((t=>{})),this._ready().catch((t=>{}));else{const e=yr(new.target,"getNetwork")(t);e?(mr(this,"_network",e),this.emit("network",e,null)):Qf.throwArgumentError("invalid network","network",t)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return Hf(this,void 0,void 0,(function*(){if(null==this._network){let t=null;if(this._networkPromise)try{t=yield this._networkPromise}catch(t){}null==t&&(t=yield this.detectNetwork()),t||Qf.throwError("no network detected",b.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:mr(this,"_network",t),this.emit("network",t,null))}return this._network}))}get ready(){return Cf((()=>this._ready().then((t=>t),(t=>{if(t.code!==b.errors.NETWORK_ERROR||"noNetwork"!==t.event)throw t}))))}static getFormatter(){return null==dd&&(dd=new Gf),dd}static getNetwork(t){return function(t){if(null==t)return null;if("number"==typeof t){for(const e in bf){const r=bf[e];if(r.chainId===t)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:t,name:"unknown"}}if("string"==typeof t){const e=bf[t];return null==e?null:{name:e.name,chainId:e.chainId,ensAddress:e.ensAddress,_defaultProvider:e._defaultProvider||null}}const e=bf[t.name];if(!e)return"number"!=typeof t.chainId&&pf.throwArgumentError("invalid network chainId","network",t),t;0!==t.chainId&&t.chainId!==e.chainId&&pf.throwArgumentError("network chainId mismatch","network",t);let r=t._defaultProvider||null;var n;return null==r&&e._defaultProvider&&(r=(n=e._defaultProvider)&&"function"==typeof n.renetwork?e._defaultProvider.renetwork(t):e._defaultProvider),{name:t.name,chainId:e.chainId,ensAddress:t.ensAddress||e.ensAddress||null,_defaultProvider:r}}(null==t?"homestead":t)}ccipReadFetch(t,e,r){return Hf(this,void 0,void 0,(function*(){if(this.disableCcipRead||0===r.length)return null;const n=t.to.toLowerCase(),i=e.toLowerCase(),o=[];for(let t=0;t<r.length;t++){const e=r[t],s=e.replace("{sender}",n).replace("{data}",i),a=e.indexOf("{data}")>=0?null:JSON.stringify({data:i,sender:n}),u=yield Rf({url:s,errorPassThrough:!0},a,((t,e)=>(t.status=e.statusCode,t)));if(u.data)return u.data;const h=u.message||"unknown error";if(u.status>=400&&u.status<500)return Qf.throwError(`response not found during CCIP fetch: ${h}`,b.errors.SERVER_ERROR,{url:e,errorMessage:h});o.push(h)}return Qf.throwError(`error encountered during CCIP fetch: ${o.map((t=>JSON.stringify(t))).join(", ")}`,b.errors.SERVER_ERROR,{urls:r,errorMessages:o})}))}_getInternalBlockNumber(t){return Hf(this,void 0,void 0,(function*(){if(yield this._ready(),t>0)for(;this._internalBlockNumber;){const e=this._internalBlockNumber;try{const r=yield e;if(Jf()-r.respTime<=t)return r.blockNumber;break}catch(t){if(this._internalBlockNumber===e)break}}const e=Jf(),r=gr({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((t=>null),(t=>t))}).then((({blockNumber:t,networkError:n})=>{if(n)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),n;const i=Jf();return(t=Ht.from(t).toNumber())<this._maxInternalBlockNumber&&(t=this._maxInternalBlockNumber),this._maxInternalBlockNumber=t,this._setFastBlockNumber(t),{blockNumber:t,reqTime:e,respTime:i}}));return this._internalBlockNumber=r,r.catch((t=>{this._internalBlockNumber===r&&(this._internalBlockNumber=null)})),(yield r).blockNumber}))}poll(){return Hf(this,void 0,void 0,(function*(){const t=pd++,e=[];let r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(t){return void this.emit("error",t)}if(this._setFastBlockNumber(r),this.emit("poll",t,r),r!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)Qf.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",Qf.makeError("network block skew detected",b.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let t=this._emitted.block+1;t<=r;t++)this.emit("block",t);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach((t=>{if("block"===t)return;const e=this._emitted[t];"pending"!==e&&r-e>12&&delete this._emitted[t]}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach((t=>{switch(t.type){case"tx":{const r=t.hash;let n=this.getTransactionReceipt(r).then((t=>t&&null!=t.blockNumber?(this._emitted["t:"+r]=t.blockNumber,this.emit(r,t),null):null)).catch((t=>{this.emit("error",t)}));e.push(n);break}case"filter":if(!t._inflight){t._inflight=!0;const n=t.filter;n.fromBlock=t._lastBlockNumber+1,n.toBlock=r,n.toBlock-this._maxFilterBlockRange>n.fromBlock&&(n.fromBlock=n.toBlock-this._maxFilterBlockRange);const i=this.getLogs(n).then((e=>{t._inflight=!1,0!==e.length&&e.forEach((e=>{e.blockNumber>t._lastBlockNumber&&(t._lastBlockNumber=e.blockNumber),this._emitted["b:"+e.blockHash]=e.blockNumber,this._emitted["t:"+e.transactionHash]=e.blockNumber,this.emit(n,e)}))})).catch((e=>{this.emit("error",e),t._inflight=!1}));e.push(i)}}})),this._lastBlockNumber=r,Promise.all(e).then((()=>{this.emit("didPoll",t)})).catch((t=>{this.emit("error",t)}))}else this.emit("didPoll",t)}))}resetEventsBlock(t){this._lastBlockNumber=t-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return Hf(this,void 0,void 0,(function*(){return Qf.throwError("provider does not support network detection",b.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})}))}getNetwork(){return Hf(this,void 0,void 0,(function*(){const t=yield this._ready(),e=yield this.detectNetwork();if(t.chainId!==e.chainId){if(this.anyNetwork)return this._network=e,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",e,t),yield Yf(0),this._network;const r=Qf.makeError("underlying network changed",b.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:e});throw this.emit("error",r),r}return t}))}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then((t=>{this._setFastBlockNumber(t)}),(t=>{})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(t){t&&!this._poller?(this._poller=setInterval((()=>{this.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((()=>{this.poll(),this._bootstrapPoll=setTimeout((()=>{this._poller||this.poll(),this._bootstrapPoll=null}),this.pollingInterval)}),0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(t){if("number"!=typeof t||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval((()=>{this.poll()}),this._pollingInterval))}_getFastBlockNumber(){const t=Jf();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then((t=>((null==this._fastBlockNumber||t>this._fastBlockNumber)&&(this._fastBlockNumber=t),this._fastBlockNumber)))),this._fastBlockNumberPromise}_setFastBlockNumber(t){null!=this._fastBlockNumber&&t<this._fastBlockNumber||(this._fastQueryDate=Jf(),(null==this._fastBlockNumber||t>this._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))}waitForTransaction(t,e,r){return Hf(this,void 0,void 0,(function*(){return this._waitForTransaction(t,null==e?1:e,r||0,null)}))}_waitForTransaction(t,e,r,n){return Hf(this,void 0,void 0,(function*(){const i=yield this.getTransactionReceipt(t);return(i?i.confirmations:0)>=e?i:new Promise(((i,o)=>{const s=[];let a=!1;const u=function(){return!!a||(a=!0,s.forEach((t=>{t()})),!1)},h=t=>{t.confirmations<e||u()||i(t)};if(this.on(t,h),s.push((()=>{this.removeListener(t,h)})),n){let r=n.startBlock,i=null;const h=s=>Hf(this,void 0,void 0,(function*(){a||(yield Yf(1e3),this.getTransactionCount(n.from).then((l=>Hf(this,void 0,void 0,(function*(){if(!a){if(l<=n.nonce)r=s;else{{const e=yield this.getTransaction(t);if(e&&null!=e.blockNumber)return}for(null==i&&(i=r-3,i<n.startBlock&&(i=n.startBlock));i<=s;){if(a)return;const r=yield this.getBlockWithTransactions(i);for(let i=0;i<r.transactions.length;i++){const s=r.transactions[i];if(s.hash===t)return;if(s.from===n.from&&s.nonce===n.nonce){if(a)return;const r=yield this.waitForTransaction(s.hash,e);if(u())return;let i="replaced";return s.data===n.data&&s.to===n.to&&s.value.eq(n.value)?i="repriced":"0x"===s.data&&s.from===s.to&&s.value.isZero()&&(i="cancelled"),void o(Qf.makeError("transaction was replaced",b.errors.TRANSACTION_REPLACED,{cancelled:"replaced"===i||"cancelled"===i,reason:i,replacement:this._wrapTransaction(s),hash:t,receipt:r}))}}i++}}a||this.once("block",h)}}))),(t=>{a||this.once("block",h)})))}));if(a)return;this.once("block",h),s.push((()=>{this.removeListener("block",h)}))}if("number"==typeof r&&r>0){const t=setTimeout((()=>{u()||o(Qf.makeError("timeout exceeded",b.errors.TIMEOUT,{timeout:r}))}),r);t.unref&&t.unref(),s.push((()=>{clearTimeout(t)}))}}))}))}getBlockNumber(){return Hf(this,void 0,void 0,(function*(){return this._getInternalBlockNumber(0)}))}getGasPrice(){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield this.perform("getGasPrice",{});try{return Ht.from(t)}catch(e){return Qf.throwError("bad result from backend",b.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e})}}))}getBalance(t,e){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield gr({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),n=yield this.perform("getBalance",r);try{return Ht.from(n)}catch(t){return Qf.throwError("bad result from backend",b.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:t})}}))}getTransactionCount(t,e){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield gr({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),n=yield this.perform("getTransactionCount",r);try{return Ht.from(n).toNumber()}catch(t){return Qf.throwError("bad result from backend",b.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:t})}}))}getCode(t,e){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield gr({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),n=yield this.perform("getCode",r);try{return R(n)}catch(t){return Qf.throwError("bad result from backend",b.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:t})}}))}getStorageAt(t,e,r){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield gr({address:this._getAddress(t),blockTag:this._getBlockTag(r),position:Promise.resolve(e).then((t=>O(t)))}),i=yield this.perform("getStorageAt",n);try{return R(i)}catch(t){return Qf.throwError("bad result from backend",b.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:i,error:t})}}))}_wrapTransaction(t,e,r){if(null!=e&&32!==C(e))throw new Error("invalid response - sendTransaction");const n=t;return null!=e&&t.hash!==e&&Qf.throwError("Transaction hash mismatch from Provider.sendTransaction.",b.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:e}),n.wait=(e,n)=>Hf(this,void 0,void 0,(function*(){let i;null==e&&(e=1),null==n&&(n=0),0!==e&&null!=r&&(i={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:r});const o=yield this._waitForTransaction(t.hash,e,n,i);return null==o&&0===e?null:(this._emitted["t:"+t.hash]=o.blockNumber,0===o.status&&Qf.throwError("transaction failed",b.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:o}),o)})),n}sendTransaction(t){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield Promise.resolve(t).then((t=>R(t))),r=this.formatter.transaction(t);null==r.confirmations&&(r.confirmations=0);const n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const t=yield this.perform("sendTransaction",{signedTransaction:e});return this._wrapTransaction(r,t,n)}catch(t){throw t.transaction=r,t.transactionHash=r.hash,t}}))}_getTransactionRequest(t){return Hf(this,void 0,void 0,(function*(){const e=yield t,r={};return["from","to"].forEach((t=>{null!=e[t]&&(r[t]=Promise.resolve(e[t]).then((t=>t?this._getAddress(t):null)))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((t=>{null!=e[t]&&(r[t]=Promise.resolve(e[t]).then((t=>t?Ht.from(t):null)))})),["type"].forEach((t=>{null!=e[t]&&(r[t]=Promise.resolve(e[t]).then((t=>null!=t?t:null)))})),e.accessList&&(r.accessList=this.formatter.accessList(e.accessList)),["data"].forEach((t=>{null!=e[t]&&(r[t]=Promise.resolve(e[t]).then((t=>t?R(t):null)))})),this.formatter.transactionRequest(yield gr(r))}))}_getFilter(t){return Hf(this,void 0,void 0,(function*(){t=yield t;const e={};return null!=t.address&&(e.address=this._getAddress(t.address)),["blockHash","topics"].forEach((r=>{null!=t[r]&&(e[r]=t[r])})),["fromBlock","toBlock"].forEach((r=>{null!=t[r]&&(e[r]=this._getBlockTag(t[r]))})),this.formatter.filter(yield gr(e))}))}_call(t,e,r){return Hf(this,void 0,void 0,(function*(){r>=10&&Qf.throwError("CCIP read exceeded maximum redirections",b.errors.SERVER_ERROR,{redirects:r,transaction:t});const n=t.to,i=yield this.perform("call",{transaction:t,blockTag:e});if(r>=0&&"latest"===e&&null!=n&&"0x556f1830"===i.substring(0,10)&&C(i)%32==4)try{const o=I(i,4),s=I(o,0,32);Ht.from(s).eq(n)||Qf.throwError("CCIP Read sender did not match",b.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:i});const a=[],u=Ht.from(I(o,32,64)).toNumber(),h=Ht.from(I(o,u,u+32)).toNumber(),l=I(o,u+32);for(let e=0;e<h;e++){const r=sd(l,32*e);null==r&&Qf.throwError("CCIP Read contained corrupt URL string",b.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:i}),a.push(r)}const c=ad(o,64);Ht.from(I(o,100,128)).isZero()||Qf.throwError("CCIP Read callback selector included junk",b.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:i});const f=I(o,96,100),d=ad(o,128),p=yield this.ccipReadFetch(t,c,a);null==p&&Qf.throwError("CCIP Read disabled or provided no URLs",b.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:i});const m={to:n,data:$([f,cd([p,d])])};return this._call(m,e,r+1)}catch(t){if(t.code===b.errors.SERVER_ERROR)throw t}try{return R(i)}catch(r){return Qf.throwError("bad result from backend",b.errors.SERVER_ERROR,{method:"call",params:{transaction:t,blockTag:e},result:i,error:r})}}))}call(t,e){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield gr({transaction:this._getTransactionRequest(t),blockTag:this._getBlockTag(e),ccipReadEnabled:Promise.resolve(t.ccipReadEnabled)});return this._call(r.transaction,r.blockTag,r.ccipReadEnabled?0:-1)}))}estimateGas(t){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield gr({transaction:this._getTransactionRequest(t)}),r=yield this.perform("estimateGas",e);try{return Ht.from(r)}catch(t){return Qf.throwError("bad result from backend",b.errors.SERVER_ERROR,{method:"estimateGas",params:e,result:r,error:t})}}))}_getAddress(t){return Hf(this,void 0,void 0,(function*(){"string"!=typeof(t=yield t)&&Qf.throwArgumentError("invalid address or ENS name","name",t);const e=yield this.resolveName(t);return null==e&&Qf.throwError("ENS name not configured",b.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(t)})`}),e}))}_getBlock(t,e){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork(),t=yield t;let r=-128;const n={includeTransactions:!!e};if(P(t,32))n.blockHash=t;else try{n.blockTag=yield this._getBlockTag(t),P(n.blockTag)&&(r=parseInt(n.blockTag.substring(2),16))}catch(e){Qf.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",t)}return Cf((()=>Hf(this,void 0,void 0,(function*(){const t=yield this.perform("getBlock",n);if(null==t)return null!=n.blockHash&&null==this._emitted["b:"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?null:void 0;if(e){let e=null;for(let r=0;r<t.transactions.length;r++){const n=t.transactions[r];if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){null==e&&(e=yield this._getInternalBlockNumber(100+2*this.pollingInterval));let t=e-n.blockNumber+1;t<=0&&(t=1),n.confirmations=t}}const r=this.formatter.blockWithTransactions(t);return r.transactions=r.transactions.map((t=>this._wrapTransaction(t))),r}return this.formatter.block(t)}))),{oncePoll:this})}))}getBlock(t){return this._getBlock(t,!1)}getBlockWithTransactions(t){return this._getBlock(t,!0)}getTransaction(t){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return Cf((()=>Hf(this,void 0,void 0,(function*(){const r=yield this.perform("getTransaction",e);if(null==r)return null==this._emitted["t:"+t]?null:void 0;const n=this.formatter.transactionResponse(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let t=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;t<=0&&(t=1),n.confirmations=t}return this._wrapTransaction(n)}))),{oncePoll:this})}))}getTransactionReceipt(t){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return Cf((()=>Hf(this,void 0,void 0,(function*(){const r=yield this.perform("getTransactionReceipt",e);if(null==r)return null==this._emitted["t:"+t]?null:void 0;if(null==r.blockHash)return;const n=this.formatter.receipt(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let t=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;t<=0&&(t=1),n.confirmations=t}return n}))),{oncePoll:this})}))}getLogs(t){return Hf(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield gr({filter:this._getFilter(t)}),r=yield this.perform("getLogs",e);return r.forEach((t=>{null==t.removed&&(t.removed=!1)})),Gf.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)}))}getEtherPrice(){return Hf(this,void 0,void 0,(function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})}))}_getBlockTag(t){return Hf(this,void 0,void 0,(function*(){if("number"==typeof(t=yield t)&&t<0){t%1&&Qf.throwArgumentError("invalid BlockTag","blockTag",t);let e=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return e+=t,e<0&&(e=0),this.formatter.blockTag(e)}return this.formatter.blockTag(t)}))}getResolver(t){return Hf(this,void 0,void 0,(function*(){let e=t;for(;;){if(""===e||"."===e)return null;if("eth"!==t&&"eth"===e)return null;const r=yield this._getResolver(e,"getResolver");if(null!=r){const n=new fd(this,r,t);return e===t||(yield n.supportsWildcard())?n:null}e=e.split(".").slice(1).join(".")}}))}_getResolver(t,e){return Hf(this,void 0,void 0,(function*(){null==e&&(e="ENS");const r=yield this.getNetwork();r.ensAddress||Qf.throwError("network does not support ENS",b.errors.UNSUPPORTED_OPERATION,{operation:e,network:r.name});try{const e=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+Qn(t).substring(2)});return this.formatter.callAddress(e)}catch(t){}return null}))}resolveName(t){return Hf(this,void 0,void 0,(function*(){t=yield t;try{return Promise.resolve(this.formatter.address(t))}catch(e){if(P(t))throw e}"string"!=typeof t&&Qf.throwArgumentError("invalid ENS name","name",t);const e=yield this.getResolver(t);return e?yield e.getAddress():null}))}lookupAddress(t){return Hf(this,void 0,void 0,(function*(){t=yield t;const e=(t=this.formatter.address(t)).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(e,"lookupAddress");if(null==r)return null;const n=sd(yield this.call({to:r,data:"0x691f3431"+Qn(e).substring(2)}),0);return(yield this.resolveName(n))!=t?null:n}))}getAvatar(t){return Hf(this,void 0,void 0,(function*(){let e=null;if(P(t)){const r=this.formatter.address(t).substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(r,"getAvatar");if(!n)return null;e=new fd(this,n,r);try{const t=yield e.getAvatar();if(t)return t.url}catch(t){if(t.code!==b.errors.CALL_EXCEPTION)throw t}try{const t=sd(yield this.call({to:n,data:"0x691f3431"+Qn(r).substring(2)}),0);e=yield this.getResolver(t)}catch(t){if(t.code!==b.errors.CALL_EXCEPTION)throw t;return null}}else if(e=yield this.getResolver(t),!e)return null;const r=yield e.getAvatar();return null==r?null:r.url}))}perform(t,e){return Qf.throwError(t+" not implemented",b.errors.NOT_IMPLEMENTED,{operation:t})}_startEvent(t){this.polling=this._events.filter((t=>t.pollable())).length>0}_stopEvent(t){this.polling=this._events.filter((t=>t.pollable())).length>0}_addEventListener(t,e,r){const n=new td(Wf(t),e,r);return this._events.push(n),this._startEvent(n),this}on(t,e){return this._addEventListener(t,e,!1)}once(t,e){return this._addEventListener(t,e,!0)}emit(t,...e){let r=!1,n=[],i=Wf(t);return this._events=this._events.filter((t=>t.tag!==i||(setTimeout((()=>{t.listener.apply(this,e)}),0),r=!0,!t.once||(n.push(t),!1)))),n.forEach((t=>{this._stopEvent(t)})),r}listenerCount(t){if(!t)return this._events.length;let e=Wf(t);return this._events.filter((t=>t.tag===e)).length}listeners(t){if(null==t)return this._events.map((t=>t.listener));let e=Wf(t);return this._events.filter((t=>t.tag===e)).map((t=>t.listener))}off(t,e){if(null==e)return this.removeAllListeners(t);const r=[];let n=!1,i=Wf(t);return this._events=this._events.filter((t=>t.tag!==i||t.listener!=e||(!!n||(n=!0,r.push(t),!1)))),r.forEach((t=>{this._stopEvent(t)})),this}removeAllListeners(t){let e=[];if(null==t)e=this._events,this._events=[];else{const r=Wf(t);this._events=this._events.filter((t=>t.tag!==r||(e.push(t),!1)))}return e.forEach((t=>{this._stopEvent(t)})),this}}var yd=window&&window.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const gd=new b(qf),vd=["call","estimateGas"];function wd(t,e){if(null==t)return null;if("string"==typeof t.message&&t.message.match("reverted")){const r=P(t.data)?t.data:null;if(!e||r)return{message:t.message,data:r}}if("object"==typeof t){for(const r in t){const n=wd(t[r],e);if(n)return n}return null}if("string"==typeof t)try{return wd(JSON.parse(t),e)}catch(t){}return null}function bd(t,e,r){const n=r.transaction||r.signedTransaction;if("call"===t){const t=wd(e,!0);if(t)return t.data;gd.throwError("missing revert data in call exception; Transaction reverted without a reason string",b.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:e})}if("estimateGas"===t){let r=wd(e.body,!1);null==r&&(r=wd(e,!1)),r&&gd.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",b.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:t,transaction:n,error:e})}let i=e.message;throw e.code===b.errors.SERVER_ERROR&&e.error&&"string"==typeof e.error.message?i=e.error.message:"string"==typeof e.body?i=e.body:"string"==typeof e.responseText&&(i=e.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit/i)&&gd.throwError("insufficient funds for intrinsic transaction cost",b.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:n}),i.match(/nonce (is )?too low/i)&&gd.throwError("nonce has already been used",b.errors.NONCE_EXPIRED,{error:e,method:t,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&gd.throwError("replacement fee too low",b.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:n}),i.match(/only replay-protected/i)&&gd.throwError("legacy pre-eip-155 transactions not supported",b.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:n}),vd.indexOf(t)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted/)&&gd.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",b.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:n}),e}function Ad(t){return new Promise((function(e){setTimeout(e,t)}))}function _d(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}function Ed(t){return t?t.toLowerCase():t}const Md={};class kd extends xi{constructor(t,e,r){if(super(),t!==Md)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");mr(this,"provider",e),null==r&&(r=0),"string"==typeof r?(mr(this,"_address",this.provider.formatter.address(r)),mr(this,"_index",null)):"number"==typeof r?(mr(this,"_index",r),mr(this,"_address",null)):gd.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(t){return gd.throwError("cannot alter JSON-RPC Signer connection",b.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new xd(Md,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((t=>(t.length<=this._index&&gd.throwError("unknown account #"+this._index,b.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(t[this._index]))))}sendUncheckedTransaction(t){t=vr(t);const e=this.getAddress().then((t=>(t&&(t=t.toLowerCase()),t)));if(null==t.gasLimit){const r=vr(t);r.from=e,t.gasLimit=this.provider.estimateGas(r)}return null!=t.to&&(t.to=Promise.resolve(t.to).then((t=>yd(this,void 0,void 0,(function*(){if(null==t)return null;const e=yield this.provider.resolveName(t);return null==e&&gd.throwArgumentError("provided ENS name resolves to null","tx.to",t),e}))))),gr({tx:gr(t),sender:e}).then((({tx:e,sender:r})=>{null!=e.from?e.from.toLowerCase()!==r&&gd.throwArgumentError("from address mismatch","transaction",t):e.from=r;const n=this.provider.constructor.hexlifyTransaction(e,{from:!0});return this.provider.send("eth_sendTransaction",[n]).then((t=>t),(t=>bd("sendTransaction",t,n)))}))}signTransaction(t){return gd.throwError("signing transactions is unsupported",b.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(t){return yd(this,void 0,void 0,(function*(){const e=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(t);try{return yield Cf((()=>yd(this,void 0,void 0,(function*(){const t=yield this.provider.getTransaction(r);if(null!==t)return this.provider._wrapTransaction(t,r,e)}))),{oncePoll:this.provider})}catch(t){throw t.transactionHash=r,t}}))}signMessage(t){return yd(this,void 0,void 0,(function*(){const e="string"==typeof t?An(t):t,r=yield this.getAddress();return yield this.provider.send("personal_sign",[R(e),r.toLowerCase()])}))}_legacySignMessage(t){return yd(this,void 0,void 0,(function*(){const e="string"==typeof t?An(t):t,r=yield this.getAddress();return yield this.provider.send("eth_sign",[r.toLowerCase(),R(e)])}))}_signTypedData(t,e,r){return yd(this,void 0,void 0,(function*(){const n=yield hi.resolveNames(t,e,r,(t=>this.provider.resolveName(t))),i=yield this.getAddress();return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(hi.getPayload(n.domain,e,n.value))])}))}unlock(t){return yd(this,void 0,void 0,(function*(){const e=this.provider,r=yield this.getAddress();return e.send("personal_unlockAccount",[r.toLowerCase(),t,null])}))}}class xd extends kd{sendTransaction(t){return this.sendUncheckedTransaction(t).then((t=>({hash:t,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:e=>this.provider.waitForTransaction(t,e)})))}}const Nd={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class Sd extends md{constructor(t,e){let r=e;null==r&&(r=new Promise(((t,e)=>{setTimeout((()=>{this.detectNetwork().then((e=>{t(e)}),(t=>{e(t)}))}),0)}))),super(r),t||(t=yr(this.constructor,"defaultUrl")()),mr(this,"connection","string"==typeof t?Object.freeze({url:t}):Object.freeze(vr(t))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((()=>{this._cache.detectNetwork=null}),0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return yd(this,void 0,void 0,(function*(){yield Ad(0);let t=null;try{t=yield this.send("eth_chainId",[])}catch(e){try{t=yield this.send("net_version",[])}catch(t){}}if(null!=t){const e=yr(this.constructor,"getNetwork");try{return e(Ht.from(t).toNumber())}catch(e){return gd.throwError("could not detect network",b.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:e})}}return gd.throwError("could not detect network",b.errors.NETWORK_ERROR,{event:"noNetwork"})}))}getSigner(t){return new kd(Md,this,t)}getUncheckedSigner(t){return this.getSigner(t).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then((t=>t.map((t=>this.formatter.address(t)))))}send(t,e){const r={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:_r(r),provider:this});const n=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(n&&this._cache[t])return this._cache[t];const i=Rf(this.connection,JSON.stringify(r),_d).then((t=>(this.emit("debug",{action:"response",request:r,response:t,provider:this}),t)),(t=>{throw this.emit("debug",{action:"response",error:t,request:r,provider:this}),t}));return n&&(this._cache[t]=i,setTimeout((()=>{this._cache[t]=null}),0)),i}prepareRequest(t,e){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[Ed(e.address),e.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[Ed(e.address),e.blockTag]];case"getCode":return["eth_getCode",[Ed(e.address),e.blockTag]];case"getStorageAt":return["eth_getStorageAt",[Ed(e.address),F(e.position,32),e.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[e.signedTransaction]];case"getBlock":return e.blockTag?["eth_getBlockByNumber",[e.blockTag,!!e.includeTransactions]]:e.blockHash?["eth_getBlockByHash",[e.blockHash,!!e.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[e.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[e.transactionHash]];case"call":return["eth_call",[yr(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0}),e.blockTag]];case"estimateGas":return["eth_estimateGas",[yr(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0})]];case"getLogs":return e.filter&&null!=e.filter.address&&(e.filter.address=Ed(e.filter.address)),["eth_getLogs",[e.filter]]}return null}perform(t,e){return yd(this,void 0,void 0,(function*(){if("call"===t||"estimateGas"===t){const t=e.transaction;if(t&&null!=t.type&&Ht.from(t.type).isZero()&&null==t.maxFeePerGas&&null==t.maxPriorityFeePerGas){const r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((e=vr(e)).transaction=vr(t),delete e.transaction.type)}}const r=this.prepareRequest(t,e);null==r&&gd.throwError(t+" not implemented",b.errors.NOT_IMPLEMENTED,{operation:t});try{return yield this.send(r[0],r[1])}catch(r){return bd(t,r,e)}}))}_startEvent(t){"pending"===t.tag&&this._startPending(),super._startEvent(t)}_startPending(){if(null!=this._pendingFilter)return;const t=this,e=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=e,e.then((function(r){return function n(){t.send("eth_getFilterChanges",[r]).then((function(r){if(t._pendingFilter!=e)return null;let n=Promise.resolve();return r.forEach((function(e){t._emitted["t:"+e.toLowerCase()]="pending",n=n.then((function(){return t.getTransaction(e).then((function(e){return t.emit("pending",e),null}))}))})),n.then((function(){return Ad(1e3)}))})).then((function(){if(t._pendingFilter==e)return setTimeout((function(){n()}),0),null;t.send("eth_uninstallFilter",[r])})).catch((t=>{}))}(),r})).catch((t=>{}))}_stopEvent(t){"pending"===t.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(t)}static hexlifyTransaction(t,e){const r=vr(Nd);if(e)for(const t in e)e[t]&&(r[t]=!0);!function(t,e){t&&"object"==typeof t||pr.throwArgumentError("invalid object","object",t),Object.keys(t).forEach((r=>{e[r]||pr.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)}))}(t,r);const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(e){if(null==t[e])return;const r=O(Ht.from(t[e]));"gasLimit"===e&&(e="gas"),n[e]=r})),["from","to","data"].forEach((function(e){null!=t[e]&&(n[e]=R(t[e]))})),t.accessList&&(n.accessList=aa(t.accessList)),n}}var Ud=window&&window.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};const Pd=new b(qf);class Td extends Sd{detectNetwork(){const t=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return Ud(this,void 0,void 0,(function*(){let e=this.network;return null==e&&(e=yield t.detectNetwork.call(this),e||Pd.throwError("no network detected",b.errors.UNKNOWN_ERROR,{}),null==this._network&&(mr(this,"_network",e),this.emit("network",e,null))),e}))}}var Rd={};function Cd(t){var e="https://rpc.snapshot.org/"+t;return Rd[t]||(Rd[t]=new Td({url:e,timeout:25e3,allowGzip:!0},Number(t))),Rd[t]}window&&window.__awaiter;new b("wallet/5.6.2");function Id(t,e,r,n){return ia(hi.hash(t,e,r),n)}function $d(t,n,i,o){return e(this,void 0,void 0,(function(){var e,s,a,u;return r(this,(function(r){switch(r.label){case 0:s="0x1626ba7e",a="function isValidSignature(bytes32 _hash, bytes memory _signature) public view returns (bytes4 magicValue)",r.label=1;case 1:return r.trys.push([1,3,,4]),[4,sp(o,[a],[t,"isValidSignature",[N(i),n]])];case 2:return e=r.sent(),[3,4];case 3:if((u=r.sent()).message.startsWith("missing revert data in call exception"))return[2,!1];throw u;case 4:return[2,e.toLowerCase()===s.toLowerCase()]}}))}))}function Od(t,n,i,o){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return e="0x20c13b0b","function isValidSignature(bytes _hash, bytes memory _signature) public view returns (bytes4 magicValue)",[4,sp(o,["function isValidSignature(bytes _hash, bytes memory _signature) public view returns (bytes4 magicValue)"],[t,"isValidSignature",[N(i),n]])];case 1:return[2,r.sent().toLowerCase()===e.toLowerCase()]}}))}))}function Fd(t,n,i,o){return void 0===o&&(o="1"),e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return e=Cd(o),[4,$d(t,n,i,e)];case 1:return r.sent()?[2,!0]:[4,Od(t,n,i,e)];case 2:return[2,r.sent()]}}))}))}function Bd(t){var e=t.domain,r=t.types,n=t.message;return hi.hash(e,r,n)}var jd=["cloudflare-ipfs.com","cf-ipfs.com","ipfs.io","ipfs.fleek.co","gateway.pinata.cloud","dweb.link","ipfs.infura.io"],Dd={1:{key:"1",name:"Ethereum Mainnet",chainId:1,network:"homestead",multicall:"0xeefba1e63905ef1d7acba5a8513c70307c1ce441",ensResolvers:["0x231b0Ee14048e9dCcD1d247744d114a4EB5E8E63","0x4976fb03C32e5B8cfe2b6cCB31c09Ba78EBaBa41"],ensNameWrapper:"0xD4416b13d2b3a9aBae7AcD5D6C2BbDBE25686401",rpc:["https://rpc.ankr.com/eth",{url:"https://api-geth-archive.ankr.com",user:"balancer_user",password:"balancerAnkr20201015"},"https://speedy-nodes-nyc.moralis.io/b9aed21e7bb7bdeb35972c9a/eth/mainnet/archive","https://apis.ankr.com/e62bc219f9c9462b8749defe472d2dc5/6106d4a3ec1d1bcc87ec72158f8fd089/eth/archive/main","https://eth-archival.gateway.pokt.network/v1/5f76124fb90218002e9ce985","https://eth-mainnet.alchemyapi.io/v2/4bdDVB5QAaorY2UE-GBUbM2yQB3QJqzv"],light:["https://cloudflare-eth.com"],ws:["wss://eth-mainnet.ws.alchemyapi.io/v2/4bdDVB5QAaorY2UE-GBUbM2yQB3QJqzv"],explorer:{url:"https://etherscan.io",apiUrl:"https://api.etherscan.io"},start:7929876,logo:"ipfs://QmR2UYZczmYa4s8mr9HZHci5AQwyAnwUW7tSUZz7KWF3sA"},5:{key:"5",name:"Ethereum Testnet Goerli",shortName:"Goerli",chainId:5,network:"goerli",testnet:!0,multicall:"0x77dca2c955b15e9de4dbbcf1246b4b85b651e50e",ensResolvers:["0xd7a4F6473f32aC2Af804B3686AE8F1932bC35750","0x4B1488B7a6B320d2D721406204aBc3eeAa9AD329"],ensNameWrapper:"0x114D4603199df73e7D157787f8778E21fCd13066",rpc:["https://eth-goerli.alchemyapi.io/v2/v4nqH_J-J3STit45Mm07TxuYexMHQsYZ"],explorer:{url:"https://goerli.etherscan.io",apiUrl:"https://api-goerli.etherscan.io"},start:743550,logo:"ipfs://QmR2UYZczmYa4s8mr9HZHci5AQwyAnwUW7tSUZz7KWF3sA"},7:{key:"7",name:"ThaiChain",chainId:7,network:"mainnet",multicall:"0xB9cb900E526e7Ad32A2f26f1fF6Dee63350fcDc5",rpc:["https://rpc.dome.cloud"],ws:["wss://ws.dome.cloud"],explorer:{url:"https://exp.tch.in.th"},logo:"ipfs://QmUcNN6ZMFEPLUw5WCknisSgs7nhWC5p992jSSsJVq34Eo"},8:{key:"8",name:"Ubiq Mainnet",chainId:8,network:"Ubiq mainnet",multicall:"0x6668750957e4083725926B71C41bDF1434C73262",rpc:["https://rpc.octano.dev"],ws:["wss://ws.octano.dev"],explorer:{url:"https://ubiqscan.io"},logo:"ipfs://Qmec3HLoN4QhwZAhw4XTi2aN8Wwmcko5hHN22sHARzb9tw"},10:{key:"10",name:"Optimism Mainnet",chainId:10,network:"Optimism mainnet",multicall:"0x35A6Cdb2C9AD4a45112df4a04147EB07dFA01aB7",rpc:["https://opt-mainnet.g.alchemy.com/v2/JzmIL4Q3jBj7it2duxLFeuCa9Wobmm7D"],explorer:{url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io"},start:657806,logo:"ipfs://QmfF4kwhGL8QosUXvgq2KWCmavhKBvwD6kbhs7L4p5ZAWb"},14:{key:"14",name:"Flare Mainnet",shortName:"Flare",chainId:14,network:"flare",multicall:"0x336897CAe2791048DA77EEa2A43BFB96342b9CE1",rpc:["https://flare-api.flare.network/ext/C/rpc"],explorer:{url:"https://flare-explorer.flare.network"},start:1702e3,logo:"ipfs://QmevAevHxRkK2zVct2Eu6Y7s38YC4SmiAiw9X7473pVtmL"},16:{key:"16",name:"Flare Testnet Coston",shortName:"Coston",chainId:16,network:"coston",testnet:!0,multicall:"0xF7aB82e5253F65496e21dF0dacfA6D5e765b4874",rpc:["https://coston-api.flare.network/ext/bc/C/rpc"],explorer:{url:"https://coston-explorer.flare.network"},start:4782058,logo:"ipfs://QmW7Ljv2eLQ1poRrhJBaVWJBF1TyfZ8QYxDeELRo6sssrj"},19:{key:"19",name:"Songbird Canary-Network",shortName:"Songbird",chainId:19,network:"songbird",multicall:"0x17032Ea9c3a13Ed337665145364c0d2aD1108c91",rpc:["https://songbird-api.flare.network/ext/C/rpc"],explorer:{url:"https://songbird-explorer.flare.network"},start:21807126,logo:"ipfs://QmXyvnrZY8FUxSULfnKKA99sAEkjAHtvhRx5WeHixgaEdu"},20:{key:"20",name:"Elastos Smart Chain",shortName:"ESC",chainId:20,network:"mainnet",multicall:"0x20205D3b6008bea1411bd4CaEA2D923FE231B6E5",rpc:["https://rpc.glidefinance.io","https://escrpc.elaphant.app"],explorer:{url:"https://esc.elastos.io"},start:7826070,logo:"ipfs://Qmd2muU2UHo5WsTxE9EpZZJeatimTT9GD4sEnHQe6i9wiA"},25:{key:"25",name:"Cronos Mainnet",shortName:"Cronos",chainId:25,network:"mainnet",multicall:"0x6F522a3982e8F9A50A2EDc9E46ed1A3aE2B3FD3a",rpc:["https://evm-cronos.crypto.org"],explorer:{url:"https://cronos.crypto.org/explorer"},start:4067,logo:"ipfs://QmfSJbtirJoa3Pt7o5Fdm85wbyw9V1hpzqLr5PQbdnfsAj"},30:{key:"30",name:"RSK Mainnet",chainId:30,network:"rsk mainnet",multicall:"0x4eeebb5580769ba6d26bfd07be636300076d1831",rpc:["https://public-node.rsk.co"],explorer:{url:"https://explorer.rsk.co"},start:2516442,logo:"ipfs://QmXTwpE1SqoNZmyY4c3fYWy6qUgQELsyWKbgJo2Pg6K6V9"},31:{key:"31",name:"RSK Testnet",chainId:31,network:"rsk testnet",testnet:!0,multicall:"0x4eeebb5580769ba6d26bfd07be636300076d1831",rpc:["https://public-node.testnet.rsk.co"],explorer:{url:"https://explorer.testnet.rsk.co"},start:1002369,logo:"ipfs://QmbpnJowePd9sDy8hrJv7LsTBkxksuJauw56Y7BqdMdzec"},36:{key:"36",name:"Dxchain Mainnet",shortName:"DXC",chainId:36,network:"mainnet",multicall:"0x49186b3b30922F89ca03B5f2bE7FFd8db9d0A761",rpc:["https://mainnet.dxchain.com"],explorer:{url:"https://dxscan.io"},start:207070,logo:"ipfs://QmYBup5bWoBfkaHntbcgW8Ji7ncad7f53deJ4Q55z4PNQs"},44:{key:"44",name:"Crab Network",shortName:"Crab",chainId:44,network:"mainnet",multicall:"0x4617D470F847Ce166019d19a7944049ebB017400",rpc:["https://crab-rpc.darwinia.network"],explorer:{url:"https://crab.subscan.io"},logo:"ipfs://QmTpySsG7rjLwuZX1Ep4ewGyVAyGrvCRC1oqEvU6oP1huf"},46:{key:"46",name:"Darwinia Network",shortName:"Darwinia",chainId:46,network:"mainnet",multicall:"0x67f9ae42EaA9a8aBf065D60ec6Ab3C1A11370607",rpc:["https://rpc.darwinia.network"],explorer:{url:"https://darwinia.subscan.io"},start:141853,logo:"ipfs://bafkreicf55maidhx46pyu3mwsshlr43xbewr6tkckkonh4nesbkp7krwkm"},50:{key:"50",name:"XDC.Network",shortName:"XDC",chainId:50,network:"mainnet",multicall:"0xc8160deb19559d93eadb82798ededce696ebcaf5",rpc:["https://snapshotrpc.blocksscan.io/","https://rpc.xinfin.network"],ws:["wss://ws.blocksscan.io"],explorer:{url:"http://xdc.blocksscan.io"},logo:"ipfs://QmaX3pqjWGg97bR6jjxvTopRkJVxrvwp6VB4jf1Lknq111"},51:{key:"51",name:"XDC Apothem.network",shortName:"XDC",chainId:51,network:"testnet",multicall:"0x3b353b02a8b42ee4222ea4be0836629b1f40c8db",rpc:["https://apothemrpc.blocksscan.io"],ws:["wss://apothemws.blocksscan.io"],explorer:{url:"http://apothem.blocksscan.io"},logo:"ipfs://QmaX3pqjWGg97bR6jjxvTopRkJVxrvwp6VB4jf1Lknq111"},56:{key:"56",name:"Binance Smart Chain Mainnet",shortName:"BSC",chainId:56,network:"mainnet",multicall:"0x1ee38d535d541c55c9dae27b12edf090c608e6fb",rpc:["https://speedy-nodes-nyc.moralis.io/b9aed21e7bb7bdeb35972c9a/bsc/mainnet/archive","https://rpc.ankr.com/bsc","https://bsc.getblock.io/mainnet/?api_key=91f8195f-bf46-488f-846a-73d6853790e7","https://bsc-private-dataseed1.nariox.org","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed1.binance.org"],explorer:{url:"https://bscscan.com"},start:461230,logo:"ipfs://QmWQaQ4Tv28DwA4DRKjSDJFWY9mZboGvuu77J8nh7kucxv"},58:{key:"58",name:"Ontology Mainnet",chainId:58,network:"mainnet",multicall:"0xce6292279bf688173B269Df080E14407470A9E60",rpc:["https://dappnode1.ont.io:10339","https://dappnode2.ont.io:10339","https://dappnode3.ont.io:10339","https://dappnode4.ont.io:10339"],explorer:{url:"https://explorer.ont.io/"},logo:"ipfs://Qme21sVqfwvrjkZHaeKaBH1F8AKPjbAV7vF7rH6akaLkU1"},61:{key:"61",name:"Ethereum Classic Mainnet",shortName:"Ethereum Classic",chainId:61,network:"mainnet",multicall:"0x51be3a92C56ae7E207C5b5Fd87F7798Ce82C1AC2",rpc:["https://www.ethercluster.com/etc"],explorer:{url:"https://blockscout.com/etc/mainnet"},logo:"ipfs://QmVegc28DvA7LjKUFysab81c9BSuN4wQVDQkRXyAtuEBis"},65:{key:"65",name:"OKExChain Testnet",shortName:"OEC Testnet",chainId:65,network:"oec testnet",testnet:!0,multicall:"0x04c68A7fB750ca0Ba232105B3b094926a0f77645",rpc:["https://exchaintestrpc.okex.org"],ws:["wss://exchaintestws.okex.org:8443"],explorer:{url:"https://www.oklink.com/okexchain-test"},start:5320359,logo:"ipfs://Qmd7dKnNwHRZ4HRCbCXUbkNV7gP28fGqPdjbHtjRtT9sQF"},66:{key:"66",name:"OKExChain Mainnet",shortName:"OEC Mainnet",chainId:66,network:"oec mainnet",multicall:"0x6EB187d8197Ac265c945b69f3c3064A6f3831866",rpc:["https://exchainrpc.okex.org"],ws:["wss://exchainws.okex.org:8443"],explorer:{url:"https://www.oklink.com/okexchain"},start:5076543,logo:"ipfs://Qmd7dKnNwHRZ4HRCbCXUbkNV7gP28fGqPdjbHtjRtT9sQF"},69:{key:"69",name:"Optimism Kovan",chainId:69,network:"Optimism testnet",testnet:!0,multicall:"0x28e9a2329aa6b675ca251a2ccaa7fb029c1e9bfb",rpc:["https://opt-kovan.g.alchemy.com/v2/JzmIL4Q3jBj7it2duxLFeuCa9Wobmm7D"],explorer:{url:"https://kovan-optimistic.etherscan.io"},start:882942,logo:"ipfs://QmfF4kwhGL8QosUXvgq2KWCmavhKBvwD6kbhs7L4p5ZAWb"},70:{key:"70",name:"Hoo Smart Chain Mainnet",shortName:"hsc",chainId:70,network:"Mainnet",multicall:"0xd4b794b89baccb70ef851830099bee4d69f19ebc",rpc:["https://http-mainnet2.hoosmartchain.com"],ws:["wss://ws-mainnet2.hoosmartchain.com"],explorer:{url:"https://hooscan.com"},start:404118,logo:"ipfs://QmNhFCVw5GDsu86sGchoRNvQjcr5GL79UJQ3xCHzdFbZYk"},74:{key:"74",name:"IDChain",shortName:"IDChain",chainId:74,network:"mainnet",multicall:"0x41d289c966D51342A515A19dE9c27d16079c94E0",rpc:["https://idchain.one/archive/rpc/","https://idchain.songadao.org/rpc"],explorer:{url:"https://explorer.idchain.one"},start:10780012,logo:"ipfs://QmXAKaNsyv6ctuRenYRJuZ1V4kn1eFwkUtjrjzX6jiKTqe"},80:{key:"80",name:"GeneChain",chainId:80,network:"Mainnet",multicall:"0x9e6ed491171A0D9089892aA5F14800f9f32038eb",rpc:["https://rpc.genechain.io"],explorer:{url:"https://scan.genechain.io"},logo:"ipfs://QmSV3LTGzE4159zLK4xJVDH5t8iKhY4peh7VAkjefawr2q"},81:{key:"81",name:"Shibuya Network",shortName:"Shibuya",chainId:81,network:"testnet",testnet:!0,multicall:"0x3E90A35839ff0Aa32992d33d861f24dC95BBf74d",rpc:["https://rpc.shibuya.astar.network:8545"],explorer:{url:"https://blockscout.com/shibuya"},start:856303,logo:"ipfs://QmZLQVsUqHBDXutu6ywTvcYXDZG2xBstMfHkfJSzUNpZsc"},82:{key:"82",name:"Meter Mainnet",shortName:"Meter",chainId:82,network:"mainnet",multicall:"0x579De77CAEd0614e3b158cb738fcD5131B9719Ae",rpc:["https://rpc.meter.io"],explorer:{url:"https://scan.meter.io"},start:4992871,logo:"ipfs://QmSZvT9w9eUDvV1YVaq3BKKEbubtNVqu1Rin44FuN4wz11"},87:{key:"87",name:"Nova Network",shortName:"Nova",chainId:87,network:"mainnet",multicall:"0x07f6b55a5dae24ac8011cc2cb815de8316e2b965",rpc:["https://dev.rpc.novanetwork.io/"],explorer:{url:"https://explorer.novanetwork.io/"},start:1081731,logo:"ipfs://QmTTamJ55YGQwMboq4aqf3JjTEy5WDtjo4GBRQ5VdsWA6U"},97:{key:"97",name:"Binance Smart Chain Testnet",shortName:"BSC Testnet",chainId:97,network:"testnet",testnet:!0,multicall:"0x8b54247c6BAe96A6ccAFa468ebae96c4D7445e46",rpc:["https://data-seed-prebsc-1-s1.binance.org:8545","https://speedy-nodes-nyc.moralis.io/f2963e29bec0de5787da3164/bsc/testnet/archive"],explorer:{url:"https://testnet.bscscan.com"},start:3599656,logo:"ipfs://QmWQaQ4Tv28DwA4DRKjSDJFWY9mZboGvuu77J8nh7kucxv"},99:{key:"99",name:"POA Core",shortName:"POA",chainId:99,network:"mainnet",multicall:"0x2754BB10580dFc6d8Ce6d6CA2939021A06923394",rpc:["https://core.poa.network"],explorer:{url:"https://blockscout.com/poa/core"},start:22543252,logo:"ipfs://QmZNFCQGA7qT4XJnPSH5NNYrqK6aFsfzZ1NzJwp5D4Tdjr"},100:{key:"100",name:"Gnosis Chain",shortName:"xDAI",chainId:100,network:"mainnet",multicall:"0xb5b692a88bdfc81ca69dcb1d924f59f0413a602a",rpc:["https://gno.getblock.io/mainnet/6c1d1e6e-75d9-452f-a863-a694bff93d5c/","https://xdai-archive.blockscout.com","https://poa-xdai.gateway.pokt.network/v1/5f76124fb90218002e9ce985","https://rpc.gnosischain.com"],light:["https://rpc.gnosischain.com"],ws:["wss://rpc.xdaichain.com/wss"],explorer:{url:"https://blockscout.com/poa/xdai"},start:4108192,logo:"ipfs://QmZeiy8Ax4133wzxUQM9ky8z5XFVf6YLFjJMmTWbWVniZR"},106:{key:"106",name:"Velas EVM Mainnet",shortName:"Velas",chainId:106,network:"mainnet",multicall:"0x597Cc7c49a8e0041d3A43ec8D7dc651b47879108",rpc:["https://evmexplorer.velas.com/rpc","https://explorer.velas.com/rpc"],ws:["wss://api.velas.com"],explorer:{url:"https://evmexplorer.velas.com"},start:141800,logo:"ipfs://QmNXiCXJxEeBd7ZYGYjPSMTSdbDd2nfodLC677gUfk9ku5"},108:{key:"108",name:"Thundercore Mainnet",chainId:108,network:"mainnet",multicall:"0x3017086deef56679e267f67f66c4415109b7a97f",rpc:["https://mainnet-rpc.thundercore.com/archived/SNAPSHOTEuR82a75fLYA"],explorer:{url:"https://viewblock.io/thundercore"},start:94425385,logo:"ipfs://bafkreifc5z5vtvqx2luzgateyvoocwpd2ifv2hwufxdnyl2a767wa6icli"},111:{key:"111",name:"Velas EVM Testnet",shortName:"Velas Testnet",chainId:111,network:"testnet",testnet:!0,multicall:"0x55a827538FbF41b7334Dd49001220597898Ad954",rpc:["https://evmexplorer.testnet.velas.com/rpc","https://explorer.testnet.velas.com/rpc"],ws:["wss://api.testnet.velas.com"],explorer:{url:"https://evmexplorer.testnet.velas.com"},start:1195129,logo:"ipfs://QmQFWn7JJLigUPvvp6uKg6EWikx7QeNxQ2vaCngU3Uthho"},119:{key:"119",name:"ENULS Mainnet",chainId:119,network:"mainnet",multicall:"0xd7d2Aa52f5491cB60ccD85b8c39935BF0baCd142",rpc:["https://evmapi.nuls.io/"],explorer:{url:"https://evmscan.nuls.io"},start:501318,logo:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy"},122:{key:"122",name:"Fuse Mainnet",shortName:"Fuse",chainId:122,network:"mainnet",multicall:"0x7a59441fb06666F6d2D766393d876945D06a169c",rpc:["https://explorer-node.fuse.io/","https://oefusefull1.liquify.info/"],explorer:{url:"https://explorer.fuse.io"},start:11923459,logo:"ipfs://QmXjWb64nako7voaVEifgdjAbDbswpTY8bghsiHpv8yWtb"},128:{key:"128",name:"Huobi Eco Chain Mainnet",shortName:"heco",chainId:128,network:"Mainnet",multicall:"0x37ab26db3df780e7026f3e767f65efb739f48d8e",rpc:["https://pub001.hg.network/rpc"],ws:["wss://pub001.hg.network/ws"],explorer:{url:"https://hecoinfo.com"},start:403225,logo:"ipfs://QmSJEdToMvmjqoPvVq7awwdMeYKhXUYZMBiax9yHtFGMSq"},137:{key:"137",name:"Polygon Mainnet",shortName:"Polygon",chainId:137,network:"mainnet",multicall:"0xCBca837161be50EfA5925bB9Cc77406468e76751",rpc:["https://rpc.ankr.com/polygon","https://speedy-nodes-nyc.moralis.io/b9aed21e7bb7bdeb35972c9a/polygon/mainnet/archive","https://speedy-nodes-nyc.moralis.io/f2963e29bec0de5787da3164/polygon/mainnet/archive","https://rpc-mainnet.maticvigil.com/v1/1cfd7598e5ba6dcf0b4db58e8be484badc6ea08e"],ws:["wss://ws-mainnet.matic.network"],explorer:{url:"https://polygonscan.com",apiUrl:"https://api.polygonscan.com"},start:9834491,logo:"ipfs://QmaGokGqgjknfa4xnXKnnwC5ZyXzUjQ7p6KEe4D8G5uFFE"},144:{key:"144",name:"PHI Network",shortName:"PHI",chainId:144,network:"mainnet",multicall:"0xc2f41B404a6757863AAeF49ff93039421acCd630",rpc:["https://connect.phi.network"],explorer:{url:"https://phiscan.com"},start:360030,logo:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a"},188:{key:"188",name:"Bytom Sidechain",shortName:"BMC",chainId:188,network:"mainnet",multicall:"0xDA09528B093246eC70139b657d3B7A3bd5F4C859",rpc:["https://mainnet.bmcchain.com/"],explorer:{url:"https://bmc.blockmeta.com/"},start:4720651,logo:"ipfs://bafkreiabhsxuq35pp4kmrbptdeypd6clhcy3ue7ydpppo6onoo4igcjqia"},246:{key:"246",name:"Energy Web Chain",shortName:"EWC",chainId:246,network:"mainnet",multicall:"0x0767F26d0D568aB61A98b279C0b28a4164A6f05e",rpc:["https://voting-rpc.carbonswap.exchange"],explorer:{url:"https://explorer.energyweb.org"},start:12086501,logo:"ipfs://Qmai7AGHgs8NpeGeXgbMZz7pS2i4kw44qubCJYGrZW2f3a"},250:{key:"250",name:"Fantom Opera",shortName:"fantom",chainId:250,network:"Mainnet",multicall:"0x7f6A10218264a22B4309F3896745687E712962a0",rpc:["https://rpc.ankr.com/fantom","https://rpc.ftm.tools","https://rpcapi.fantom.network"],explorer:{url:"https://ftmscan.com"},start:2497732,logo:"ipfs://QmVEgNeQDKnXygeGxfY9FywZpNGQu98ktZtRJ9bToYF6g7"},256:{key:"256",name:"Huobi Eco Chain Testnet",shortName:"heco",chainId:256,network:"testnet",testnet:!0,multicall:"0xC33994Eb943c61a8a59a918E2de65e03e4e385E0",rpc:["https://http-testnet.hecochain.com"],ws:["wss://ws-testnet.hecochain.com"],explorer:{url:"https://testnet.hecoinfo.com"},start:379560,logo:"ipfs://QmSJEdToMvmjqoPvVq7awwdMeYKhXUYZMBiax9yHtFGMSq"},269:{key:"269",name:"High Performance Blockchain Mainnet",shortName:"HPB",chainId:269,network:"mainnet",testnet:!1,multicall:"0x67D0f263aef2F6167FA77353695D75b582Ff4Bca",rpc:["https://hpbnode.com"],ws:["wss://ws.hpbnode.com"],explorer:{url:"https://hscan.org"},start:13960096,logo:"ipfs://QmU7f1MyRz8rLELFfypnWZQjGbDGYgZtC9rjw47jYMYrnu"},280:{key:"280",name:"zkSync Era Testnet",shortName:"zkSync testnet",chainId:280,network:"zkSync alpha testnet",testnet:!0,multicall:"0xbDAd32d600915cB70576D3d935d49bFf3C9cB0CF",rpc:["https://testnet.era.zksync.dev"],explorer:{url:"https://goerli.explorer.zksync.io/"},start:9012429,logo:"ipfs://bafkreih6y7ri7h667cwxe5miisxghfheiidtbw2747y75stoxt3gp3a2yy"},288:{key:"288",name:"Boba Mainnet",shortName:"Boba",chainId:288,network:"mainnet",multicall:"0xfb91c019D9F12A0f9c23B4762fa64A34F8daDb4A",rpc:["https://mainnet.boba.network/"],explorer:{url:"https://blockexplorer.boba.network"},start:74,logo:"ipfs://QmNc7QZFpPDue3Ef4SsuX55RHkqXxUxSyTCpoASeg2hW6d"},321:{key:"321",name:"KCC Mainnet",shortName:"KCC",chainId:321,network:"mainnet",multicall:"0xa64D6AFb48225BDA3259246cfb418c0b91de6D7a",rpc:["https://rpc-mainnet.kcc.network"],ws:["wss://rpc-ws-mainnet.kcc.network"],explorer:{url:"https://explorer.kcc.io"},start:1487453,logo:"ipfs://QmRdzYGhFRG8QLzMJahHrw3vETE2YZ9sywQbEkenSjKEvb"},324:{key:"324",name:"zkSync Era",shortName:"zkSync-era",chainId:324,network:"zkSync Era Mainnet",multicall:"0xF9cda624FBC7e059355ce98a31693d299FACd963",rpc:["https://mainnet.era.zksync.io"],explorer:{url:"https://explorer.zksync.io/"},start:3908235,logo:"ipfs://bafkreih6y7ri7h667cwxe5miisxghfheiidtbw2747y75stoxt3gp3a2yy"},336:{key:"336",name:"Shiden Network",shortName:"Shiden",chainId:336,network:"mainnet",multicall:"0x3E90A35839ff0Aa32992d33d861f24dC95BBf74d",rpc:["https://rpc.shiden.astar.network:8545","https://shiden.api.onfinality.io/public"],explorer:{url:"https://blockscout.com/shiden"},start:1170016,logo:"ipfs://QmcqGQE4Sk73zXc3e91TUFFefKBVeaNgbxV141XkSNE4xj"},361:{key:"361",name:"Theta Mainnet",shortName:"Theta",chainId:361,network:"mainnet",multicall:"0xB48BbAD564Ceb6fB30cCea2Af248ccF6398aEab5",rpc:["https://eth-rpc-api.thetatoken.org/rpc"],explorer:{url:"https://explorer.thetatoken.org"},start:12559216,logo:"ipfs://QmcMP9s9mUqfT2SCiP75sZgAVVev7H7RQAKiSx9xWEDKwe"},369:{key:"369",name:"Pulsechain Mainnet",shortName:"Pulsechain",chainId:369,network:"mainnet",multicall:"0xdbdd0FD8B16F0092f306392b699D7fbddaA9011B",rpc:["https://rpc.pulsechain.com"],explorer:{url:"https://scan.pulsechain.com/"},start:17657774,logo:"ipfs://QmWUsiEWdejtHZ9B9981TYXn7Ds8C7fkB1S4h5rP3kCCZR"},416:{key:"416",name:"SX Network",shortName:"SX",chainId:416,network:"mainnet",multicall:"0x834a005DDCF990Ba1a79f259e840e58F2D14F49a",rpc:["https://rpc.sx.technology"],ws:["wss://rpc.sx.technology/ws"],explorer:{url:"https://explorer.sx.technology"},start:2680605,logo:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF"},499:{key:"499",name:"Rupaya",shortName:"RUPX",chainId:499,network:"mainnet",multicall:"0x7955FF653FfDBf13056FeAe227f655CfF5C194D5",rpc:["https://rpc.rupx.io"],ws:["wss://ws.rupx.io"],explorer:{url:"http://scan.rupx.io"},start:2762929,logo:"ipfs://QmXLZyAr6UNFQ4tkNwSyeNByFvzwYpwiNgV5vHuoxn74Rg"},534:{key:"534",name:"Candle",shortName:"CNDL",chainId:534,network:"mainnet",multicall:"0x4A21871491adC2C429F9903918C306c97dd295A3",rpc:["https://rpc.cndlchain.com","https://candle-rpc.com"],explorer:{url:"http://candleexplorer.com"},start:8e5,logo:"ipfs://Qmbe3ChumXNRfHcLsNBY2APRrGxkFWP68Nb35MaKMRfPye"},592:{key:"592",name:"Astar Network",shortName:"Astar",chainId:592,network:"mainnet",multicall:"0x3E90A35839ff0Aa32992d33d861f24dC95BBf74d",rpc:["https://astar.api.onfinality.io/public","https://rpc.astar.network:8545"],explorer:{url:"https://blockscout.com/astar"},start:366482,logo:"ipfs://QmZLQVsUqHBDXutu6ywTvcYXDZG2xBstMfHkfJSzUNpZsc"},595:{key:"595",name:"Acala Mandala Testnet",chainId:595,network:"testnet",testnet:!0,multicall:"0x8ce86f733024c1ccae2224f05c11fd50713d6f81",rpc:["https://tc7-eth.aca-dev.network"],explorer:{url:"https://blockscout.mandala.acala.network"},start:1335512,logo:"ipfs://QmY1ZYBUzb46Mto7G1GitQWfaqq6n8Q4WArxFBzhNdLqvg"},599:{key:"599",name:"Metis Testnet",chainId:599,network:"testnet",testnet:!0,multicall:"0x5A958c159F4AEA990b1195C44624B94dC0825470",rpc:["https://goerli.gateway.metisdevops.link"],explorer:{url:"https://goerli.explorer.metisdevops.link/"},start:1018715,logo:"ipfs://QmYeskHqrEvWHqeAuqett64LxfH52HUXZi2T9BAMmgKvBF"},647:{key:"647",name:"SX Network Testnet",shortName:"647",chainId:647,network:"testnet",testnet:!0,multicall:"0x750e0f8efD3c3cF41c4D8BB0355d659bCbc75dB9",rpc:["https://rpc.toronto.sx.technology"],ws:["wss://rpc.toronto.sx.technology/ws"],explorer:{url:"https://explorer.toronto.sx.technology"},start:14441039,logo:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF"},813:{key:"813",name:"Qitmeer Mainnet",shortName:"MEER",chainId:813,network:"mainnet",multicall:"0x55034b2cF530ae3A8fC1e2e4523F58496796610F",rpc:["https://evm-dataseed1.meerscan.io","https://evm-dataseed.meerscan.com","https://evm-dataseed2.meerscan.io","https://evm-dataseed3.meerscan.io"],explorer:{url:"https://evm.meerscan.io"},start:43317,logo:"ipfs://QmXvum7SNVaAqAc2jNzR1NpNZN1GGvNaKWydg8a1GEDQ7y"},841:{key:"841",name:"Taraxa Mainnet",shortName:"841",chainId:841,network:"mainnet",multicall:"0xFCe7a3121B42664AaD145712e1c2Bf2e38f60AA1",rpc:["https://rpc.mainnet.taraxa.io"],ws:["wss://ws.mainnet.taraxa.io"],explorer:{url:"https://mainnet.explorer.taraxa.io"},start:1515906,logo:"ipfs://Qmcc6ZCAGESMzZzoj5LsTVcCo2E35x3Ydk71uPJyov6Mwx"},842:{key:"842",name:"Taraxa Testnet",shortName:"842",chainId:842,network:"testnet",testnet:!0,multicall:"0x7749051abc57e1105941Ea3Eb2a3F873F300E861",rpc:["https://rpc.testnet.taraxa.io"],ws:["wss://ws.testnet.taraxa.io"],explorer:{url:"https://testnet.explorer.taraxa.io"},start:1462328,logo:"ipfs://Qmcc6ZCAGESMzZzoj5LsTVcCo2E35x3Ydk71uPJyov6Mwx"},888:{key:"888",name:"Wanchain",chainId:888,network:"mainnet",multicall:"0xba5934ab3056fca1fa458d30fbb3810c3eb5145f",rpc:["https://gwan-ssl.wandevs.org:56891"],ws:["wss://api.wanchain.org:8443/ws/v3/ddd16770c68f30350a21114802d5418eafe039b722de52b488e7eee1ee2cd73f"],explorer:{url:"https://www.wanscan.org"},start:11302663,logo:"ipfs://QmewFFN44rkxESFsHG8edaLt1znr62hjvZhGynfXqruzX3"},940:{key:"940",name:"PulseChain Testnet",shortName:"pulsechain",chainId:940,network:"Testnet",multicall:"0x5e67901C2Dd1915E9Ef49aF39B62C28DF8C2c529",rpc:["https://rpc.testnet.pulsedisco.net"],ws:["wss://ws.rpc.testnet.pulsedisco.net"],explorer:{url:"https://scan.v2.testnet.pulsechain.com"},start:15123138,logo:"ipfs://QmYqkn8pJUaV9KcEPYEvRPwgbfeozLEvcQ9aEwKNRUL3cR"},941:{key:"941",name:"PulseChain Testnet V2B",shortName:"pulsechain",chainId:941,network:"Testnet v2B",multicall:"0x959a437F1444DaDaC8aF997E71EAF0479c810267",rpc:["https://rpc.testnet.pulsedisco.net"],ws:["wss://ws.rpc.testnet.pulsedisco.net"],explorer:{url:"https://scan.v2b.testnet.pulsechain.com"},start:14473847,logo:"ipfs://QmYqkn8pJUaV9KcEPYEvRPwgbfeozLEvcQ9aEwKNRUL3cR"},1001:{key:"1001",name:"Klaytn Baobab Testnet",shortName:"Boabab",chainId:1001,network:"testnet",multicall:"0x40643B8Aeaaca0b87Ea1A1E596e64a0e14B1d244",rpc:["https://archive-en.baobab.klaytn.net"],ws:["wss://archive-en.baobab.klaytn.net/ws"],explorer:{url:"https://baobab.scope.klaytn.com/"},logo:"ipfs://QmYACyZcidcFtMo4Uf9H6ZKUxTP2TQPjGzNjcUjqYa64dt"},1002:{key:"1002",name:"KardiaChain Mainnet",shortName:"KAI",chainId:24,network:"mainnet",multicall:"0xd9c92F2287B7802A37eC9BEce96Aa65fb5f31E1b",rpc:["https://kai-internal.kardiachain.io"],explorer:{url:"https://explorer.kardiachain.io"},logo:"ipfs://QmVH3uyPQDcrPC1DMUWCb7HayMv1oMAiKehuWwP2C2fdgM"},1071:{key:"1071",name:"Shimmer EVM Testnet",shortName:"ShimmerEVM",chainId:1071,network:"testnet",testnet:!0,multicall:"0xb6d9a0849bA7a6FB565567A6013cFEb8d91A1688",rpc:["https://json-rpc.evm.testnet.shimmer.network/"],explorer:{url:"https://explorer.evm.testnet.shimmer.network/"},start:38066,logo:"ipfs://QmYGxmEhV6djksUk97pdE9TmL6DXm9KW8BP7pwUv8pqp8r"},1088:{key:"1088",name:"Metis",shortName:"metis",chainId:1088,network:"mainnet",multicall:"0xc39aBB6c4451089dE48Cffb013c39d3110530e5C",rpc:["https://andromeda.metis.io/?owner=1088"],explorer:{url:"https://andromeda-explorer.metis.io"},start:451,logo:"ipfs://QmYeskHqrEvWHqeAuqett64LxfH52HUXZi2T9BAMmgKvBF"},1116:{key:"1116",name:"Core Chain Mainnet ",shortName:"Core",chainId:1116,network:"mainnet",multicall:"0x024f0041b76B598c2A0a75004F8447FaF67BD004",rpc:["https://rpc.coredao.org/"],explorer:{url:"https://scan.coredao.org"},start:853908,logo:"ipfs://QmVctLQ44vhkwejja9DDjDYUdYgVRBEWs242mhd95SeM5q"},1234:{key:"1234",name:"Step Network",shortName:"stepnetwork",chainId:1234,network:"mainnet",multicall:"0x176CcFFbAB792Aaa0da7C430FE20a7106d969f66",rpc:["https://rpc.step.network"],explorer:{url:"https://stepscan.io"},start:22,logo:"ipfs://QmUj734i8ggjnKhaoA346cA7rEuE5GkV4aDXQ1EKaQWdEF"},1284:{key:"1284",name:"Moonbeam",shortName:"GLMR",chainId:1284,network:"mainnet",multicall:"0x83e3b61886770de2F64AAcaD2724ED4f08F7f36B",rpc:["https://rpc.api.moonbeam.network"],explorer:{url:"https://moonscan.io/"},start:171135,logo:"ipfs://QmWKTEK2pj5sBBbHnMHQbWgw6euVdBrk2Ligpi2chrWASk"},1285:{key:"1285",name:"Moonriver (Kusama)",shortName:"Moonriver",chainId:1285,network:"mainnet",multicall:"0x537004440ffFE1D4AE9F009031Fc2b0385FCA9F1",rpc:["https://rpc.api.moonriver.moonbeam.network"],explorer:{url:"https://blockscout.moonriver.moonbeam.network"},start:413539,logo:"ipfs://QmXtgPesL87Ejhq2Y7yxsaPYpf4RcnoTYPJWPcv6iiYhoi"},1287:{key:"1287",name:"Moonbase Alpha TestNet",shortName:"Moonbase",chainId:1287,network:"testnet",testnet:!0,multicall:"0xf09FD6B6FF3f41614b9d6be2166A0D07045A3A97",rpc:["https://rpc.testnet.moonbeam.network"],explorer:{url:"https://moonbase-blockscout.testnet.moonbeam.network"},start:859041,logo:"ipfs://QmeGbNTU2Jqwg8qLTMGW8n8HSi2VdgCncAaeGzLx6gYnD7"},1319:{key:"1319",name:"AITDChain Mainnet",shortName:"AITD",chainId:1319,network:"mainnet",multicall:"0x16e98974D30263252aa273dC8e3d1d48380845FB",rpc:["https://node.aitd.io"],explorer:{url:"http://aitd-explorer-new.aitd.io"},start:1893,logo:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy"},1559:{key:"1559",name:"Tenet",shortName:"tenet",chainId:1559,network:"mainnet",multicall:"0xcCB3F00bE353950E4C08501ac8Af48765EAAa738",rpc:[],explorer:{url:"https://tenetscan.io"},start:944415,logo:"ipfs://Qmc1gqjWTzNo4pyFSGtQuCu7kRSZZBUVybtTjHn2nNEEPA"},1663:{key:"1663",name:"Horizen Gobi Testnet",shortName:"Gobi",chainId:1663,network:"testnet",multicall:"0xC743e4910Bdd4e5aBacCA38F74cdA270281C5eef",rpc:["https://gobi-testnet.horizenlabs.io/ethv1"],explorer:{url:"https://gobi-explorer.horizen.io"},start:1,logo:"ipfs://QmUYQdsnkUoiDiQ3WaWrtH7fsc5yQDC7kZJCHmC2qWPTPt"},1701:{key:"1701",name:"Anytype EVM Chain",shortName:"AnytypeChain",chainId:1701,network:"mainnet",multicall:"0x4542a07dE7f8A1cEB85aEcBFD0d5338e9886EF49",rpc:["https://geth.anytype.io"],explorer:{url:"https://explorer.anytype.io"},start:1126886,logo:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG"},1818:{key:"1818",name:"Cubechain mainnet",shortName:"cube",chainId:1818,network:"mainnet",testnet:!1,multicall:"0x28d2ebdb36369db1c51355cdc0898754d1a1c3c5",rpc:["https://http-mainnet-archive.cube.network"],explorer:{url:"https://www.cubescan.network"},start:0,logo:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz"},1819:{key:"1819",name:"Cubechain testnet",shortName:"cube",chainId:1819,network:"testnet",testnet:!0,multicall:"0x5db2AB28beD8EBDDe5F7202F5a11fF7E78Ad1FB5",rpc:["https://http-testnet-archive.cube.network"],explorer:{url:"https://testnet.cubescan.network"},start:0,logo:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz"},2e3:{key:"2000",name:"Doge Chain",shortName:"dogechain",chainId:2e3,network:"mainnet",multicall:"0x6f9D3f3932B417bd4957585D236Cbc32b32C0BDc",rpc:["https://rpc.dogechain.dog"],explorer:{url:"https://explorer.dogechain.dog"},start:877115,logo:"ipfs://bafkreigovfh3pinsdih777issfgaflwu2yjzroljs2642gbvwikcd3nm4i"},2020:{key:"2020",name:"Public Mint",shortName:"publicmint",chainId:2020,network:"mainnet",multicall:"0x8De9F846d72Bd5CE7BC572994E5420d6CB047bF4",rpc:["https://rpc.publicmint.io:8545/"],explorer:{url:"https://explorer.publicmint.io"},start:19454413,logo:"ipfs://bafkreihh4y35xgshx7wbf7a2xj35do55f7lj4nhxqxtt5nqoohoojdvkki"},2109:{key:"2109",name:"Exosama Network",shortName:"EXN",chainId:2109,network:"mainnet",multicall:"0x2feFC828e2fEfdE0C9f7740919c6A9139F886067",rpc:["https://rpc.exosama.com"],explorer:{url:"https://explorer.exosama.com"},start:94085,logo:"ipfs://QmaQxfwpXYTomUd24PMx5tKjosupXcm99z1jL1XLq9LWBS"},2152:{key:"2152",name:"Findora Mainnet",shortName:"Findora",chainId:2152,network:"mainnet",multicall:"0xCF7D1e21CBe9bdEF235aef06C5d8051B3d4DF0f5",rpc:["https://archive.prod.findora.org:8545/"],explorer:{url:"https://evm.findorascan.io"},start:4219343,logo:"ipfs://QmXkneyRB6HbHTHRLCZpZqSsawiyJY7b2kZ2V8ydvKYAgv"},2400:{key:"2400",name:"TCG Verse Mainnet",shortName:"TCGV",chainId:2400,network:"mainnet",multicall:"0xceC65DEE0b5012F1b7321b2647681F997c7204FC",rpc:["https://rpc.tcgverse.xyz"],explorer:{url:"https://explorer.tcgverse.xyz"},start:57500,logo:"ipfs://bafkreidg4wpewve5mdxrofneqblydkrjl3oevtgpdf3fk3z3vjqam6ocoe"},2611:{key:"2611",name:"Redlight Mainnet",shortName:"REDLC",chainId:2611,network:"mainnet",multicall:"0x516C7A3F307eCb28F7F88AFfD31F26484c2e1BA2",rpc:["https://dataseed2.redlightscan.finance"],explorer:{url:"https://redlightscan.finance/"},start:6504228,logo:"ipfs://QmZDdFjM37M3Zn6aCAuBnRwnWYTzFMg8k2zhKedczwBb58"},4062:{key:"4062",name:"Nahmii N3 Testnet",shortName:"Nahmii",chainId:4062,network:"testnet",testnet:!0,multicall:"0x495Da6Fdad384f3FF733f860d63c4F9457D2a0b0",rpc:["https://ngeth.testnet.n3.nahmii.io"],explorer:{url:"https://explorer.testnet.n3.nahmii.io/"},start:2607889,logo:"ipfs://QmPXPCBho3kGLt5rhG9JGkKmzdtLvqZmJqGzzijVCuggWY"},4689:{key:"4689",name:"IoTeX Mainnet",shortName:"IoTeX",chainId:4689,network:"mainnet",multicall:"0x9c8B105c94282CDB0F3ecF27e3cfA96A35c07be6",rpc:["https://babel-api.mainnet.iotex.io"],explorer:{url:"https://iotexscan.io"},start:11533283,logo:"ipfs://QmNkr1UPcBYbvLp7d7Pk4eF3YCsHpaNkfusKZNtykL2EQC"},4690:{key:"4690",name:"IoTeX Testnet",shortName:"IoTeX",chainId:4690,network:"testnet",testnet:!0,multicall:"0x30aE8783d26aBE7Fbb9d83549CCb7430AE4A301F",rpc:["https://babel-api.testnet.iotex.io"],explorer:{url:"https://testnet.iotexscan.io"},start:8821493,logo:"ipfs://QmNkr1UPcBYbvLp7d7Pk4eF3YCsHpaNkfusKZNtykL2EQC"},5551:{key:"5551",name:"Nahmii Mainnet",shortName:"Nahmii",chainId:5551,network:"mainnet",multicall:"0x05911151467b9F42eD14f10ddE0c057347Fff714",rpc:["https://l2.nahmii.io"],explorer:{url:"https://explorer.nahmii.io"},start:4364,logo:"ipfs://QmPXPCBho3kGLt5rhG9JGkKmzdtLvqZmJqGzzijVCuggWY"},5555:{key:"5555",name:"Chain Verse Mainnet",shortName:"ChainVerse",chainId:5555,network:"ChainVerse",multicall:"0xcA11bde05977b3631167028862bE2a173976CA11",rpc:["https://rpc.chainverse.info"],explorer:{url:"https://explorer.chainverse.info"},logo:"ipfs://QmQyJt28h4wN3QHPXUQJQYQqGiFUD77han3zibZPzHbitk"},5851:{key:"5851",name:"Ontology Testnet",chainId:5851,network:"testnet",multicall:"0x381445710b5e73d34aF196c53A3D5cDa58EDBf7A",rpc:["https://polaris1.ont.io:10339","https://polaris2.ont.io:10339","https://polaris3.ont.io:10339","https://polaris4.ont.io:10339","https://polaris4.ont.io:10339","https://polaris5.ont.io:10339"],explorer:{url:"https://explorer.ont.io/testnet"},logo:"ipfs://Qme21sVqfwvrjkZHaeKaBH1F8AKPjbAV7vF7rH6akaLkU1"},6102:{key:"6102",name:"Cascadia Testnet",shortName:"Cascadia",chainId:6102,network:"testnet",multicall:"0x728989819bAD588F193563008E0a03E8cD6a3e4a",rpc:["https://testnet.cascadia.foundation"],explorer:{url:"https://explorer.cascadia.foundation"},testnet:!0,start:370457,logo:"ipfs://QmWkhZYhReYyaa5pQXj32hEGxoRcBqarFMcfQScELmjYQj"},7341:{key:"7341",name:"Shyft",shortName:"Shyft",chainId:7341,network:"mainnet",testnet:!1,multicall:"0xceb10e9133D771cA93c8002Be527A465E85381a2",rpc:["https://rpc.shyft.network"],explorer:{url:"https://bx.shyft.network"},start:3673983,logo:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi"},7363:{key:"7363",name:"DynoChain",shortName:"DND",chainId:7363,network:"mainnet",multicall:"0x70F9C674677Cb915042C11fcd4D3418A99aa7A3D",rpc:["https://rpc.dynochain.io"],explorer:{url:"https://dynoscan.io"},start:30900,logo:"ipfs://QmNkwQ9uyaNgtu9YZM48VmKqmFceQhCMPLF2vZy7mWvw4L"},7700:{key:"7700",name:"Canto",shortName:"Canto",chainId:7700,network:"mainnet",multicall:"0x9787792A1020B00fb65191754c3D87c89Bf36444",rpc:["https://canto.neobase.one"],explorer:{url:"https://evm.explorer.canto.io"},start:1683285,logo:"ipfs://QmVh5XRi7xN4UNw7SNKpEhjF1TsPXJnRyNkB4EuMVTVCB6"},8217:{key:"8217",name:"Klaytn Mainnet Cypress",shortName:"Cypress",chainId:8217,network:"mainnet",multicall:"0x5f5f0d1b9ff8b3dcace308e39b13b203354906e9",rpc:["https://archive-en.cypress.klaytn.net"],ws:["wss://archive-en.cypress.klaytn.net/ws"],explorer:{url:"https://scope.klaytn.com/"},logo:"ipfs://QmYACyZcidcFtMo4Uf9H6ZKUxTP2TQPjGzNjcUjqYa64dt"},9e3:{key:"9000",name:"Evmos Network Testnet",shortName:"Evmos Testnet",chainId:9e3,network:"testnet",testnet:!0,multicall:"0xbf84d77eb467c4aaa2988ac070cd119984c0aaa2",rpc:["https://eth.bd.evmos.dev:8545"],ws:["wss://eth.bd.evmos.dev:8546"],explorer:{url:"https://testnet.escan.live"},start:14929860,logo:"ipfs://QmVgkQTA8cbYMijWS8AN44xzwAEQvFc2dCpih1qK78ZRQW"},9001:{key:"9001",name:"Evmos Network",shortName:"Evmos",chainId:9001,network:"mainnet",testnet:!1,multicall:"0x37763d16f8dBf6F185368E0f256350cAb7E24b26",rpc:["https://eth.bd.evmos.org:8545"],ws:["wss://eth.bd.evmos.org:8546"],explorer:{url:"https://escan.live"},start:13959539,logo:"ipfs://QmVgkQTA8cbYMijWS8AN44xzwAEQvFc2dCpih1qK78ZRQW"},9052:{key:"9052",name:"Acrechain Mainnet",shortName:"Acrechain",chainId:9052,network:"mainnet",multicall:"0x6D7ce9f27f188cD042b20742DC95b0C75D5667bB",rpc:["https://evm.acrescan.com"],explorer:{url:"https://acrescout.mindheartsoul.org"},start:1759024,logo:"ipfs://QmbA6CE3G81mm4eDEBUezwcq2qdqEh1zEToG3MbJHirxQt"},1e4:{key:"10000",name:"smartBCH",shortName:"BCH",chainId:1e4,network:"mainnet",multicall:"0x1b38EBAd553f218e2962Cb1C0539Abb5d6A37774",rpc:["https://smartbch.greyh.at/"],explorer:{url:"https://www.smartscan.cash"},logo:"ipfs://QmWG1p7om4hZ4Yi4uQvDpxg4si7qVYhtppGbcDGrhVFvMd"},10243:{key:"10243",name:"Arthera Testnet",shortName:"Arthera_",chainId:10243,network:"testnet",testnet:!0,multicall:"0x27c7FC597aD2E81C4c1cA1769972f79DaF042Da7",rpc:["https://rpc-test.arthera.net"],explorer:{url:"https://explorer-test.arthera.net"},start:10523,logo:"ipfs://QmYQp3e52KjkT4bYdAvB6ACEEpXs2D8DozsDitaADRY2Ak"},11437:{key:"11437",name:"Shyft Testnet",shortName:"Shyft_",chainId:11437,network:"testnet",testnet:!0,multicall:"0x407159bAA564dA0c3b14D1215d8E2654cEEE73F4",rpc:["https://rpc.testnet.shyft.network"],explorer:{url:"https://bx.testnet.shyft.network"},start:2446296,logo:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi"},12321:{key:"12321",name:"Wennect Testnet",shortName:"Wennect",testnet:!0,chainId:12321,network:"testnet",multicall:"0x009c55698516Fe3C58105Fe9bBC5A33ECE7A92e4",rpc:["https://rpc.testnet.wennect.com"],explorer:{url:"https://explorer.testnet.wennect.com"},start:3606569,logo:"ipfs://bafkreieeo3cetehbkrxjrfzcdb2ym5qgs26cgcw6t633twnuzoqyohqo5m"},12357:{key:"12357",name:"REI Testnet",shortName:"REI",chainId:12357,network:"testnet",testnet:!0,multicall:"0x9eE9904815B80C39C1a27294E69a8626EAa7952d",rpc:["https://rpc-testnet.rei.network"],explorer:{url:"https://scan-test.rei.network/"},start:79516,logo:"ipfs://QmTogMDLmDgJjDjUKDHDuc2KVTVDbXf8bXJLFiVe8PRxgo"},16718:{key:"16718",name:"AirDAO Mainnet",chainId:16718,network:"mainnet",multicall:"0x25e81aC81A8B03389D78CB45faB78353aB528574",rpc:["https://network-archive.ambrosus.io"],ws:["wss://network-archive.ambrosus.io/ws"],explorer:{url:"https://airdao.io/explorer"},start:22922566,logo:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom"},22040:{key:"22040",name:"AirDAO Testnet",chainId:22040,network:"testnet",testnet:!0,multicall:"0x18f7BFad831D8ED9E16C4cD50D6041dD453Ca1EF",rpc:["https://network-archive.ambrosus-test.io"],ws:["wss://network-archive.ambrosus-test.io/ws"],explorer:{url:"https://testnet.airdao.io/explorer"},start:3368046,logo:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom"},32659:{key:"32659",name:"Fusion Mainnet",chainId:32659,network:"mainnet",multicall:"0xcd11d8666203a4ea1ecd89885dfe1d4e1a088dbb",rpc:["https://mainnet-archive.fusionnetwork.io"],ws:["wss://mainnet-archive.fusionnetwork.io"],explorer:{url:"https://fsnscan.com"},logo:"ipfs://QmRb6YCGdpQTQcdNTnBb5DUixGpjDp1wz6zoADJwQ7hyFq"},42161:{key:"42161",name:"Arbitrum One",chainId:42161,network:"Arbitrum mainnet",multicall:"0x7A7443F8c577d537f1d8cD4a629d40a3148Dd7ee",rpc:["https://rpc.ankr.com/arbitrum","https://speedy-nodes-nyc.moralis.io/9e03baabdc27be2a35bdec4a/arbitrum/mainnet","https://arb-mainnet.g.alchemy.com/v2/JDvtNGwnHhTltIwfnxQocKwKkCTKA1DL"],explorer:{url:"https://arbiscan.io"},start:256508,logo:"ipfs://QmWZ5SMRfvcK8tycsDqojQaSiKedgtVkS7CkZdxPgeCVsZ"},42170:{key:"42170",name:"Arbitrum Nova",chainId:42170,network:"Arbitrum Nova",multicall:"0x4E74EBd9CABff51cE9a43EFe059bA8c5A28E4A14",rpc:["https://nova.arbitrum.io/rpc","https://arbitrum-nova.public.blastapi.io"],explorer:{url:"https://nova.arbiscan.io/"},start:6006607,logo:"ipfs://bafkreie5xsqt3mrrwu7v32qpmmctibhzhgxf4emfzzddsdhdlfsa7fmplu"},42220:{key:"42220",name:"Celo Mainnet",shortName:"Celo",chainId:42220,network:"mainnet",multicall:"0xb8d0d2C1391eeB350d2Cd39EfABBaaEC297368D9",rpc:["https://celo.snapshot.org","https://forno.celo.org","https://celo-mainnet--rpc.datahub.figment.io/apikey/e892a66dc36e4d2d98a5d6406d609796/"],explorer:{url:"https://explorer.celo.org"},start:6599803,logo:"ipfs://QmS2tVJ7rdJRe1NHXAi2L86yCbUwVVrmB2mHQeNdJxvQti"},42262:{key:"42262",name:"Emerald",shortName:"Emerald",chainId:42262,network:"mainnet",multicall:"0xBD46A7DCD1fefA63A7746a5762A71635Ee0843A1",rpc:["https://emerald.oasis.dev"],explorer:{url:"https://explorer.emerald.oasis.dev"},start:176517,logo:"ipfs://QmQrZjZZyAcQmPXJM2cUh1KaaDeM8Sfcg3HnvZpBj8wTnG"},43113:{key:"43113",name:"Avalanche FUJI Testnet",chainId:43113,network:"testnet",testnet:!0,multicall:"0x984476ea55e32e785A9D8FF14329f99D74E3d2A2",rpc:["https://api.avax-test.network/ext/bc/C/rpc"],explorer:{url:"https://testnet.snowtrace.io"},start:10528153,logo:"ipfs://QmeS75uS7XLR8o8uUzhLRVYPX9vMFf4DXgKxQeCzyy7vM2"},43114:{key:"43114",name:"Avalanche",chainId:43114,network:"mainnet",multicall:"0x7E9985aE4C8248fdB07607648406a48C76e9e7eD",rpc:["https://nd-784-543-849.p2pify.com/aa7b29fc5fed65b34f0ee6b8de33f8c0/ext/bc/C/rpc","https://rpc.ankr.com/avalanche","https://api.avax.network/ext/bc/C/rpc"],explorer:{url:"https://snowtrace.io"},start:536483,logo:"ipfs://QmeS75uS7XLR8o8uUzhLRVYPX9vMFf4DXgKxQeCzyy7vM2"},43288:{key:"43288",name:"Boba Avax L2",shortName:"Boba-Avax",chainId:43288,network:"mainnet",multicall:"0x352E11Da7C12EA2440b079A335E67ff9219f6FfB",rpc:["https://replica.avax.boba.network","https://avax.boba.network"],explorer:{url:"https://blockexplorer.avax.boba.network/"},start:4832,logo:"ipfs://QmP1iuEynzcghrukQLfw7zh7BJwG3dJSwyZprqD4YHHsFD"},47805:{key:"47805",name:"REI Mainnet",chainId:47805,network:"mainnet",multicall:"0x9eE9904815B80C39C1a27294E69a8626EAa7952d",rpc:["https://rpc.rei.network"],explorer:{url:"https://scan.rei.network/"},start:1715902,logo:"ipfs://QmTogMDLmDgJjDjUKDHDuc2KVTVDbXf8bXJLFiVe8PRxgo"},53935:{key:"53935",name:"DFK Chain",chainId:53935,network:"mainnet",multicall:"0x5b24224dC16508DAD755756639E420817DD4c99E",rpc:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"],explorer:{url:"https://subnets.avax.network/defi-kingdoms/"},start:62,logo:"ipfs://QmZNkpVgPbuVbDcsi6arwH1om3456FGnwfDqYQJWUfHDEx"},59140:{key:"59140",name:"Linea Goerli testnet",shortName:"Linea Goerli",chainId:59140,network:"testnet",testnet:!0,multicall:"0xcA11bde05977b3631167028862bE2a173976CA11",rpc:["https://rpc.goerli.linea.build"],explorer:{url:"https://explorer.goerli.linea.build"},start:498623,logo:"ipfs://QmSwCnEeLoyMApQd1YfhmGvLt97bH5mLPoabjKqUSuQHHF"},60001:{key:"60001",name:"Thinkium Testnet Chain 1",shortName:"ThinkiumTest1",chainId:60001,network:"thinkiumtest1",multicall:"0xc49bc485d4f943b287edadbce45eb1a1220ffdfe",rpc:["https://test1.thinkiumrpc.net"],explorer:{url:"https://test1.thinkiumscan.net/"},start:323327,logo:"ipfs://QmRfiNT4tDhyxfpYcjNde4BMPPWEAygYNPdAaS9bra6aFC"},70001:{key:"70001",name:"Thinkium Mainnet Chain 1",shortName:"Thinkium1",chainId:70001,network:"thinkium1",multicall:"0xc49bc485d4f943b287edadbce45eb1a1220ffdfe",rpc:["https://proxy1.thinkiumrpc.net"],explorer:{url:"https://chain1.thinkiumscan.net/"},start:26677364,logo:"ipfs://QmRfiNT4tDhyxfpYcjNde4BMPPWEAygYNPdAaS9bra6aFC"},70002:{key:"70002",name:"Thinkium Mainnet Chain 2",shortName:"Thinkium2",chainId:70002,network:"thinkium2",multicall:"0xc49bc485d4f943b287edadbce45eb1a1220ffdfe",rpc:["https://proxy2.thinkiumrpc.net"],explorer:{url:"https://chain2.thinkiumscan.net/"},start:22124397,logo:"ipfs://QmRfiNT4tDhyxfpYcjNde4BMPPWEAygYNPdAaS9bra6aFC"},70103:{key:"70103",name:"Thinkium Mainnet Chain 103",shortName:"Thinkium103",chainId:70103,network:"thinkium103",multicall:"0xc49bc485d4f943b287edadbce45eb1a1220ffdfe",rpc:["https://proxy103.thinkiumrpc.net"],explorer:{url:"https://chain103.thinkiumscan.net/"},start:22090160,logo:"ipfs://QmRfiNT4tDhyxfpYcjNde4BMPPWEAygYNPdAaS9bra6aFC"},71401:{key:"71401",name:"Godwoken V1 Testnet",chainId:71401,network:"testnet",testnet:!0,multicall:"0xcA11bde05977b3631167028862bE2a173976CA11",rpc:["https://godwoken-testnet-v1.ckbapp.dev"],ws:["wss://godwoken-testnet-v1.ckbapp.dev/ws"],explorer:{url:"https://gw-explorer.nervosdao.community"},start:115283,logo:"ipfs://QmR6Q2CTds6Uwu8Euo7BKvFKAeg1AyVSxWzqCvyquDD7NF"},71402:{key:"71402",name:"Godwoken V1",chainId:71402,network:"mainnet",multicall:"0xcA11bde05977b3631167028862bE2a173976CA11",rpc:["https://v1.mainnet.godwoken.io/rpc"],ws:["wss://v1.mainnet.godwoken.io/ws"],explorer:{url:"https://gwscan.com"},start:15034,logo:"ipfs://QmR6Q2CTds6Uwu8Euo7BKvFKAeg1AyVSxWzqCvyquDD7NF"},80001:{key:"80001",name:"Matic Mumbai",chainId:80001,network:"testnet",testnet:!0,multicall:"0x08411ADd0b5AA8ee47563b146743C13b3556c9Cc",rpc:["https://speedy-nodes-nyc.moralis.io/9e03baabdc27be2a35bdec4a/polygon/mumbai/archive","https://rpc-mumbai.matic.today"],ws:["wss://ws-mumbai.matic.today"],explorer:{url:"https://mumbai.polygonscan.com",apiUrl:"https://api-mumbai.polygonscan.com"},start:12011090,logo:"ipfs://QmaGokGqgjknfa4xnXKnnwC5ZyXzUjQ7p6KEe4D8G5uFFE"},84531:{key:"84531",name:"Base Goerli Testnet",chainId:84531,network:"Base",testnet:!0,multicall:"0x0012989E982C2c473e36418384Ab707C72f2B782",rpc:["https://goerli.base.org"],explorer:{url:"https://goerli.basescan.org/"},start:1151797,logo:"ipfs://QmQqrze3W1uSYWq2cGSYDeDwtjGXohTjWPnQ87EVJGeq2P"},333888:{key:"333888",name:"Polis Sparta",shortName:"Sparta",chainId:333888,network:"testnet",testnet:!0,multicall:"0xA4c03972023d5f684d35eF1C541752490975383e",rpc:["https://sparta-rpc.polis.tech"],explorer:{url:"https://sparta-explorer.polis.tech"},logo:"ipfs://QmSiCni2Jn58WN74SyGNY1Aw5mSh9ypEfFULhjKxA7Tbpg"},333999:{key:"333999",name:"Polis Olympus",shortName:"Olympus",chainId:333999,network:"mainnet",multicall:"0x34b99C2a4a4620F10ac779c36b8c61F90FD61732",rpc:["https://rpc.polis.tech"],explorer:{url:"https://explorer.polis.tech"},start:1971,logo:"ipfs://QmSiCni2Jn58WN74SyGNY1Aw5mSh9ypEfFULhjKxA7Tbpg"},666666:{key:"666666",name:"Vision - Vpioneer Testnet",shortName:"Vpioneer",chainId:666666,network:"testnet",multicall:"0xb6E748D6632305E1c12D8369CC6B3eF4AA8A3c85",rpc:["https://vpioneer.infragrid.v.network/ethereum/compatible"],explorer:{url:"https://visionscan.org"},start:3369285,logo:"ipfs://QmXgGmxDAW2Mheum3WX7Q52Zi9hvE17Zp1pVtZbcVdThh4"},888888:{key:"888888",name:"Vision - Mainnet",shortName:"Vision",chainId:888888,network:"mainnet",multicall:"0x7a677A43eb6eEe4AB6c13872Abc04e1bA5CF88eD",rpc:["https://infragrid4snapshot.v.network/ethereum/compatible"],explorer:{url:"https://visionscan.org"},start:75909,logo:"ipfs://QmXgGmxDAW2Mheum3WX7Q52Zi9hvE17Zp1pVtZbcVdThh4"},9e5:{key:"900000",name:"Posichain Mainnet",shortName:"PSC",chainId:9e5,network:"mainnet",multicall:"0xbe779BaA9dC15Ef307bdf4dDb35440A0a421a89A",rpc:["https://api-a001.s0.posichain.org"],explorer:{url:"https://explorer.posichain.org"},start:2560501,logo:"ipfs://QmXqprM1TPafQFLirQ7dMPMgou1hoUGuCvHYSWU9g8ocv8"},11155111:{key:"11155111",name:"Sepolia",shortName:"Sepolia",chainId:11155111,network:"sepolia",testnet:!0,multicall:"0xcA11bde05977b3631167028862bE2a173976CA11",rpc:["https://sepolia.infura.io/v3/d26b4fd748814fe994b05899fd89e667"],explorer:{url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io"},start:751532,logo:"ipfs://QmR2UYZczmYa4s8mr9HZHci5AQwyAnwUW7tSUZz7KWF3sA"},278611351:{key:"278611351",name:"Razor SKALE Chain",shortName:"RazorSchain",chainId:278611351,network:"mainnet",multicall:"0x295762C6f27c33cD7ce58fB6667E841E4EA67ef1",rpc:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],explorer:{url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com/"},start:401478,logo:"ipfs://QmUdwAZJfyKGZnfPGDsCnNvGu123mdd57kTGj1Y3EWVuWK"},1313161554:{key:"1313161554",name:"Aurora Mainnet",shortName:"Aurora",chainId:1313161554,network:"mainnet",multicall:"0x32b50c286DEFd2932a0247b8bb940b78c063F16c",rpc:["https://mainnet.aurora.dev"],explorer:{url:"https://explorer.mainnet.aurora.dev"},start:57190533,logo:"ipfs://QmeRhsR1UPRTQCizdhmgr2XxphXebVKU5di97uCV2UMFpa"},16666e5:{key:"1666600000",name:"Harmony Mainnet",shortName:"HarmonyMainnet",chainId:16666e5,network:"mainnet",multicall:"0x9c31392D2e0229dC4Aa250F043d46B9E82074BF8",rpc:["https://a.api.s0.t.hmny.io"],ws:["wss://ws.s0.t.hmny.io"],explorer:{url:"https://explorer.harmony.one"},start:10911984,logo:"ipfs://QmNnGPr1CNvj12SSGzKARtUHv9FyEfE5nES73U4vBWQSJL"},16667e5:{key:"1666700000",name:"Harmony Testnet",shortName:"HarmonyTestnet",chainId:16667e5,network:"testnet",testnet:!0,multicall:"0x9923589503Fd205feE3d367DDFF2378f0F7dD2d4",rpc:["https://api.s0.b.hmny.io"],ws:["wss://ws.s0.b.hmny.io"],explorer:{url:"https://explorer.pops.one"},start:7521509,logo:"ipfs://QmNnGPr1CNvj12SSGzKARtUHv9FyEfE5nES73U4vBWQSJL"},11297108109:{key:"11297108109",name:"Palm Mainnet",shortName:"Palm",chainId:11297108109,network:"mainnet",multicall:"0xfFE2FF36c5b8D948f788a34f867784828aa7415D",rpc:["https://palm-mainnet.infura.io/v3/3a961d6501e54add9a41aa53f15de99b"],explorer:{url:"https://explorer.palm.io"},start:1172267,logo:"ipfs://QmaYQfjLfQpyRWZZZU1BE8X352rXEjNaNeahjvf1aHZrKY"},11297108099:{key:"11297108099",name:"Palm Testnet",shortName:"Palm",testnet:!0,chainId:11297108099,network:"testnet",multicall:"0x020D24E0b91Fa18Aade990dCEc7F21dcc8e5d174",rpc:["https://palm-testnet.infura.io/v3/e504875614714d3aac7061d4a197b190"],explorer:{url:"https://explorer.palm-uat.xyz/"},start:7282345,logo:"ipfs://QmRHB9TqMdVHY392vYiv8sTJ7VHShkq5FT6nS9fPuUNBf1"}},Ld={1:"https://subgrapher.snapshot.org/gateway.thegraph.com/api/0f15b42bdeff7a063a4e1757d7e2f99e/deployments/id/QmXZiV6S13ha6QXq4dmaM3TB4CHcDxBMvGexSNu9Kc28EH",5:"https://subgrapher.snapshot.org/api.thegraph.com/subgraphs/name/snapshot-labs/snapshot-goerli",10:"https://subgrapher.snapshot.org/api.thegraph.com/subgraphs/name/snapshot-labs/snapshot-optimism",56:"https://subgrapher.snapshot.org/api.thegraph.com/subgraphs/name/snapshot-labs/snapshot-binance-smart-chain",100:"https://subgrapher.snapshot.org/api.thegraph.com/subgraphs/name/snapshot-labs/snapshot-gnosis-chain",137:"https://subgrapher.snapshot.org/api.thegraph.com/subgraphs/name/snapshot-labs/snapshot-polygon",250:"https://subgrapher.snapshot.org/api.thegraph.com/subgraphs/name/snapshot-labs/snapshot-fantom",42161:"https://subgrapher.snapshot.org/api.thegraph.com/subgraphs/name/snapshot-labs/snapshot-arbitrum"},zd=function(){function t(t,e,r,n){this.proposal=t,this.votes=e,this.strategies=r,this.selected=n}return t.isValidChoice=function(t,e){return"number"==typeof t&&void 0!==(null==e?void 0:e[t-1])},t.prototype.getValidVotes=function(){var e=this;return this.votes.filter((function(r){return t.isValidChoice(r.choice,e.proposal.choices)}))},t.prototype.getScores=function(){var t=this;return this.proposal.choices.map((function(e,r){var n=t.getValidVotes().filter((function(t){return t.choice===r+1}));return n.reduce((function(t,e){return t+e.balance}),0)}))},t.prototype.getScoresByStrategy=function(){var t=this;return this.proposal.choices.map((function(e,r){var n=t.strategies.map((function(e,n){var i=t.getValidVotes().filter((function(t){return t.choice===r+1}));return i.reduce((function(t,e){return t+e.scores[n]}),0)}));return n}))},t.prototype.getScoresTotal=function(){return this.votes.reduce((function(t,e){return t+e.balance}),0)},t.prototype.getChoiceString=function(){return this.proposal.choices[this.selected-1]},t}(),qd=function(){function t(t,e,r,n){this.proposal=t,this.votes=e,this.strategies=r,this.selected=n}return t.isValidChoice=function(t,e){return Array.isArray(t)&&t.every((function(t){return void 0!==(null==e?void 0:e[t-1])}))&&t.length===new Set(t).size},t.prototype.getValidVotes=function(){var e=this;return this.votes.filter((function(r){return t.isValidChoice(r.choice,e.proposal.choices)}))},t.prototype.getScores=function(){var t=this;return this.proposal.choices.map((function(e,r){return t.getValidVotes().filter((function(t){return t.choice.includes(r+1)})).reduce((function(t,e){return t+e.balance}),0)}))},t.prototype.getScoresByStrategy=function(){var t=this;return this.proposal.choices.map((function(e,r){return t.strategies.map((function(e,n){return t.getValidVotes().filter((function(t){return t.choice.includes(r+1)})).reduce((function(t,e){return t+e.scores[n]}),0)}))}))},t.prototype.getScoresTotal=function(){return this.votes.reduce((function(t,e){return t+e.balance}),0)},t.prototype.getChoiceString=function(){var t=this;return this.selected?this.proposal.choices.filter((function(e,r){return t.selected.includes(r+1)})).join(", "):""},t}();function Vd(t,e){var r=t/e.reduce((function(t,e){return t+e}),0);return isNaN(r)?0:r}function Gd(t,e){return Math.sqrt(t*e)}function Hd(t){return t*t}function Qd(t,e){return t.map((function(t){return e*t}))}var Kd=function(){function t(t,e,r,n){this.proposal=t,this.votes=e,this.strategies=r,this.selected=n}return t.isValidChoice=function(t,e){return"object"==typeof t&&!Array.isArray(t)&&null!==t&&Object.keys(t).every((function(t){return void 0!==(null==e?void 0:e[Number(t)-1])}))&&Object.keys(t).length>0&&Object.values(t).every((function(t){return"number"==typeof t&&t>=0}))&&Object.values(t).some((function(t){return"number"==typeof t&&t>0}))},t.prototype.getValidVotes=function(){var e=this;return this.votes.filter((function(r){return t.isValidChoice(r.choice,e.proposal.choices)}))},t.prototype.getScores=function(){var t=this.getValidVotes(),e=this.getValidVotes().reduce((function(t,e){return t+e.balance}),0),r=this.proposal.choices.map((function(e,r){var n=t.map((function(t){return Gd(Vd(t.choice[r+1],Object.values(t.choice)),t.balance)})).reduce((function(t,e){return t+e}),0);return Hd(n)}));return Qd(r.map((function(t,e){return Vd(r[e],r)})),e)},t.prototype.getScoresByStrategy=function(){var t=this,e=this.getValidVotes(),r=this.getValidVotes().reduce((function(t,e){return t+e.balance}),0),n=this.proposal.choices.map((function(r,n){return t.strategies.map((function(t,r){return e.map((function(t){return Gd(Vd(t.choice[n+1],Object.values(t.choice)),t.scores[r])})).reduce((function(t,e){return t+e}),0)}))})).map((function(t){return t.map((function(t){return[Hd(t)]}))}));return n.map((function(e,i){return Qd(t.strategies.map((function(t,e){return Vd(n[i][e][0],n.flat(2))})),r)}))},t.prototype.getScoresTotal=function(){return this.votes.reduce((function(t,e){return t+e.balance}),0)},t.prototype.getChoiceString=function(){var t=this;return this.proposal.choices.map((function(e,r){if(t.selected[r+1]){var n=Vd(t.selected[r+1],Object.values(t.selected));return Math.round(1e3*n)/10+"% for "+e}})).filter((function(t){return null!=t})).join(", ")},t}();function Zd(t,e){var r=i(new Set(t.map((function(t){return t[0]})).flat())),o=Object.entries(t.reduce((function(t,e,r,i){var o=n(e,1)[0],s=i[r][1];t[o[0]][0]+=s;var a=i[r][2];return a.length>1?t[o[0]][1]=a.map((function(e,r){return e+t[o[0]][1][r]||e})):t[o[0]][1]=[t[o[0]][1].concat(a).reduce((function(t,e){return t+e}),0)],t}),Object.assign.apply(Object,i([{}],r.map((function(t){var e;return(e={})[t]=[0,[]],e})))))),s=o.map((function(t){return[t[0],t[1][0]]})),a=n(s.reduce((function(t,e){var r=n(t,2),i=r[0],o=r[1],s=n(e,2),a=s[0],u=s[1];return u>o?[a,u]:[i,o]}),["?",-1/0]),2),u=(a[0],a[1]),h=n(s.reduce((function(t,e){var r=n(t,2),i=r[0],o=r[1],s=n(e,2),a=s[0],u=s[1];return u<o?[a,u]:[i,o]}),["?",1/0]),2),l=h[0],c=(h[1],o.sort((function(t,e){return e[1][0]-t[1][0]}))),f=t.map((function(t){return t[1]})).reduce((function(t,e){return t+e}),0);return e.push({round:e.length+1,sortedByHighest:c}),u>f/2||c.length<3?e:Zd(t.map((function(t){return[t[0].filter((function(t){return t!=l})),t[1],t[2]]})).filter((function(t){return t[0].length>0})),e)}function Wd(t){var e=Zd(t.map((function(t){return[t.choice,t.balance,t.scores]})),[]);return e[e.length-1].sortedByHighest}function Jd(t,e){var r=Wd(t);return e.choices.map((function(t,e){return r.filter((function(t){return Number(t[0])===e+1})).reduce((function(t,e){return t+e[1][0]}),0)}))}var Yd=function(){function t(t,e,r,n){this.proposal=t,this.votes=e,this.strategies=r,this.selected=n}return t.isValidChoice=function(t,e){return Array.isArray(t)&&t.every((function(t){return void 0!==(null==e?void 0:e[t-1])}))&&t.length===new Set(t).size&&t.length>0&&t.length===e.length},t.prototype.getValidVotes=function(){var e=this;return this.votes.filter((function(r){return t.isValidChoice(r.choice,e.proposal.choices)}))},t.prototype.getScores=function(){return Jd(this.getValidVotes(),this.proposal)},t.prototype.getScoresByStrategy=function(){var t=this,e=Wd(this.getValidVotes());return this.proposal.choices.map((function(r,n){return t.strategies.map((function(t,r){return e.filter((function(t){return Number(t[0])===n+1})).reduce((function(t,e){return t+e[1][1][r]}),0)}))}))},t.prototype.getScoresTotal=function(){return Jd(this.votes,this.proposal).reduce((function(t,e){return t+e}))},t.prototype.getChoiceString=function(){var t=this;return this.selected.map((function(e){if(t.proposal.choices[e-1])return t.proposal.choices[e-1]})).map((function(t,e){return"("+dp(e+1)+") "+t})).join(", ")},t}();function Xd(t,e,r){var n=r.reduce((function(t,e){return t+e}),0),i=e[t]/n*100;return isNaN(i)?0:i}function tp(t,e,r){return Xd(t+1,e,Object.values(e))/100*r}var ep=function(){function t(t,e,r,n){this.proposal=t,this.votes=e,this.strategies=r,this.selected=n}return t.isValidChoice=function(t,e){return"object"==typeof t&&!Array.isArray(t)&&null!==t&&Object.keys(t).every((function(t){return void 0!==(null==e?void 0:e[Number(t)-1])}))&&Object.keys(t).length>0&&Object.values(t).every((function(t){return"number"==typeof t&&t>=0}))&&Object.values(t).some((function(t){return"number"==typeof t&&t>0}))},t.prototype.getValidVotes=function(){var e=this;return this.votes.filter((function(r){return t.isValidChoice(r.choice,e.proposal.choices)}))},t.prototype.getScores=function(){var t=this,e=this.proposal.choices.map((function(e,r){return t.getValidVotes().map((function(t){return tp(r,t.choice,t.balance)})).reduce((function(t,e){return t+e}),0)})),r=this.getValidVotes().reduce((function(t,e){return t+e.balance}),0);return e.map((function(t,r){return Xd(r,e,e)})).map((function(t){return r/100*t}))},t.prototype.getScoresByStrategy=function(){var t=this,e=this.proposal.choices.map((function(e,r){return t.strategies.map((function(e,n){return t.getValidVotes().map((function(t){return tp(r,t.choice,t.scores[n])})).reduce((function(t,e){return t+e}),0)}))})).map((function(t){return t.map((function(t){return[t]}))})),r=this.getValidVotes().reduce((function(t,e){return t+e.balance}),0);return e.map((function(n,i){return t.strategies.map((function(t,r){return Xd(0,e[i][r],e.flat(2))})).map((function(t){return[r/100*t]})).flat()}))},t.prototype.getScoresTotal=function(){return this.votes.reduce((function(t,e){return t+e.balance}),0)},t.prototype.getChoiceString=function(){var t=this;return this.proposal.choices.map((function(e,r){if(t.selected[r+1])return Math.round(10*Xd(r+1,t.selected,Object.values(t.selected)))/10+"% for "+e})).filter((function(t){return null!=t})).join(", ")},t}(),rp={"single-choice":zd,approval:qd,quadratic:Kd,"ranked-choice":Yd,weighted:ep,basic:zd},np=Ld,ip=["function text(bytes32 node, string calldata key) external view returns (string memory)"],op=new dc({allErrors:!0,allowUnionTypes:!0,$data:!0});function sp(t,n,o,s){return e(this,void 0,void 0,(function(){var e,a,u;return r(this,(function(r){switch(r.label){case 0:e=new xa(o[0],n,t),r.label=1;case 1:return r.trys.push([1,3,,4]),a=o[2]||[],[4,e[o[1]].apply(e,i(a,[s||{}]))];case 2:return[2,r.sent()];case 3:return u=r.sent(),[2,Promise.reject(u)];case 4:return[2]}}))}))}function ap(t,i,o,s,a){return e(this,void 0,void 0,(function(){var e,u,h,l,c,f,d;return r(this,(function(r){switch(r.label){case 0:e=["function aggregate(tuple(address target, bytes callData)[] calls) view returns (uint256 blockNumber, bytes[] returnData)"],u=new xa(Dd[t].multicall,e,i),h=new gi(o),r.label=1;case 1:return r.trys.push([1,3,,4]),l=(null==a?void 0:a.limit)||500,(null==a?void 0:a.limit)&&delete a.limit,c=Math.ceil(s.length/l),f=[],Array.from(Array(c)).forEach((function(t,e){var r=s.slice(l*e,l*(e+1));f.push(u.aggregate(r.map((function(t){return[t[0].toLowerCase(),h.encodeFunctionData(t[1],t[2])]})),a||{}))})),[4,Promise.all(f)];case 2:return[2,r.sent().reduce((function(t,e){var r=n(e,2)[1];return t.concat(r)}),[]).map((function(t,e){return h.decodeFunctionResult(s[e][1],t)}))];case 3:return d=r.sent(),[2,Promise.reject(d)];case 4:return[2]}}))}))}function up(n,i,o){return void 0===o&&(o={}),e(this,void 0,void 0,(function(){var e,s;return r(this,(function(r){switch(r.label){case 0:return[4,l(n,{method:"POST",headers:t({Accept:"application/json","Content-Type":"application/json"},null==o?void 0:o.headers),body:JSON.stringify({query:Ku.jsonToGraphQLQuery({query:i})})})];case 1:return[4,(e=r.sent()).text()];case 2:s=r.sent();try{s=JSON.parse(s)}catch(t){throw new Error("Errors found in subgraphRequest: URL: "+n+", Status: "+e.status+", Response: "+s)}if(s.errors)throw new Error("Errors found in subgraphRequest: URL: "+n+", Status: "+e.status+", Response: "+JSON.stringify(s.errors));return[2,s.data||{}]}}))}))}function hp(t,e){void 0===e&&(e=jd[0]);var r="https://"+e;if(!t)return null;if(!(t.startsWith("ipfs://")||t.startsWith("ipns://")||t.startsWith("https://")||t.startsWith("http://")))return r+"/ipfs/"+t;var n=t.split("://")[0];return"ipfs"===n?t.replace("ipfs://",r+"/ipfs/"):"ipns"===n?t.replace("ipns://",r+"/ipns/"):t}function lp(t,n,i){return void 0===i&&(i="1"),e(this,void 0,void 0,(function(){var e,o,s;return r(this,(function(r){switch(r.label){case 0:return e=Dd[i].ensResolvers||Dd[1].ensResolvers,o=zu.hash(zu.normalize(t)),s=Cd(i),[4,ap(i,s,ip,e.map((function(t){return[t,"text",[o,n]]})))];case 1:return[2,r.sent().flat().find((function(t){return t}))||""]}}))}))}function cp(t,n){return void 0===n&&(n="1"),e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,lp(t,"snapshot",n)];case 1:return[2,r.sent()];case 2:return e=r.sent(),console.log(e),[2,null];case 3:return[2]}}))}))}function fp(t,n){return void 0===n&&(n="1"),e(this,void 0,void 0,(function(){var e,i,o,s,a;return r(this,(function(r){switch(r.label){case 0:return"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",e=Cd(n),i=new xa("0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",["function owner(bytes32) view returns (address)"],e),o=Dd[n].ensNameWrapper,s=zu.hash(zu.normalize(t)),[4,i.owner(s)];case 1:return(a=r.sent())!==o?[3,3]:[4,new xa(o,["function ownerOf(uint256) view returns (address)"],e).ownerOf(s)];case 2:a=r.sent(),r.label=3;case 3:return[2,a]}}))}))}function dp(t){var e=["th","st","nd","rd"],r=t%100;return t+(e[(r-20)%10]||e[r]||e[0])}gc(op),op.addFormat("address",{validate:function(t){try{return Oe(t)}catch(t){return!1}}}),op.addFormat("long",{validate:function(){return!0}}),op.addFormat("ethValue",{validate:function(t){if(!t.match(/^([0-9]|[1-9][0-9]+)(\.[0-9]+)?$/))return!1;try{return function(t,e){if("string"!=typeof t&&gu.throwArgumentError("value must be a string","value",t),"string"==typeof e){const t=vu.indexOf(e);-1!==t&&(e=3*t)}fu(t,null!=e?e:18)}(t,18),!0}catch(t){return!1}}}),op.addFormat("customUrl",{type:"string",validate:function(t){return!t.length||(t.startsWith("http://")||t.startsWith("https://")||t.startsWith("ipfs://")||t.startsWith("ipns://")||t.startsWith("snapshot://"))}});var pp={call:sp,multicall:ap,subgraphRequest:up,ipfsGet:function(t,n,i){return void 0===i&&(i="ipfs"),e(this,void 0,void 0,(function(){return r(this,(function(e){return[2,l("https://"+t+"/"+i+"/"+n).then((function(t){return t.json()}))]}))}))},getUrl:hp,getJSON:function(t){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){return e=hp(t),[2,l(e).then((function(t){return t.json()}))]}))}))},sendTransaction:function(t,n,o,s,a,u){return void 0===u&&(u={}),e(this,void 0,void 0,(function(){var e,h,l;return r(this,(function(r){switch(r.label){case 0:return e=t.getSigner(),h=new xa(n,o,t),[4,(l=h.connect(e))[s].apply(l,i(a,[u]))];case 1:return[2,r.sent()]}}))}))},getScores:function(t,n,i,o,s,a){return void 0===s&&(s="latest"),void 0===a&&(a="https://score.snapshot.org/api/scores"),e(this,void 0,void 0,(function(){var e,u;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),e={space:t,network:i,snapshot:s,strategies:n,addresses:o},[4,l(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({params:e})})];case 1:return[4,r.sent().json()];case 2:return[2,r.sent().result.scores];case 3:return u=r.sent(),[2,Promise.reject(u)];case 4:return[2]}}))}))},getVp:function(t,n,i,o,s,a,u){return e(this,void 0,void 0,(function(){var e,h;return r(this,(function(r){switch(r.label){case 0:return u||(u={}),u.url||(u.url="https://score.snapshot.org"),e={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",method:"get_vp",params:{address:t,network:n,strategies:i,snapshot:o,space:s,delegation:a},id:null})},[4,l(u.url,e)];case 1:return[4,r.sent().json()];case 2:return(h=r.sent()).error?[2,Promise.reject(h.error)]:h.result?[2,h.result]:[2]}}))}))},validateSchema:function(t,e){var r=op.compile(t),n=r(e);return n||r.errors},getEnsTextRecord:lp,getSpaceUri:cp,getEnsOwner:fp,getSpaceController:function(t,n){return void 0===n&&(n="1"),e(this,void 0,void 0,(function(){var e,i,o,s;return r(this,(function(r){switch(r.label){case 0:return[4,cp(t,n)];case 1:if(e=r.sent()){if(Oe(e))return[2,e];if(i=e.split("/"),o=i.includes("testnet")?5:4,s=i[o],Oe(s))return[2,s]}return[4,fp(t,n)];case 2:return[2,r.sent()]}}))}))},getDelegatesBySpace:function(t,n,i){return void 0===i&&(i="latest"),e(this,void 0,void 0,(function(){var e,o,s,a,u,h,l;return r(this,(function(r){switch(r.label){case 0:if(!Ld[t])return[2,Promise.reject("Delegation subgraph not available for network "+t)];e=["",n],n.includes(".eth")&&e.push(n.replace(".eth","")),s=[],a=0,u={delegations:{__args:{where:{space_in:e},first:o=1e3,skip:0},delegator:!0,space:!0,delegate:!0}},"latest"!==i&&(u.delegations.__args.block={number:i}),r.label=1;case 1:return u.delegations.__args.skip=a*o,[4,up(Ld[t],u)];case 2:return h=r.sent(),l=h.delegations||[],s=s.concat(l),a++,l.length<o?[3,3]:[3,1];case 3:return[2,s]}}))}))},clone:function(t){return JSON.parse(JSON.stringify(t))},sleep:function(t){return e(this,void 0,void 0,(function(){return r(this,(function(e){return[2,new Promise((function(e){setTimeout(e,t)}))]}))}))},getNumberWithOrdinal:dp,voting:rp,getProvider:Cd,signMessage:function(t,n,i){return e(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return n=R(new Buffer(n,"utf8")),[4,t.send("personal_sign",[n,i])];case 1:return[2,e.sent()]}}))}))},getBlockNumber:function(t){return e(this,void 0,void 0,(function(){var e;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t.getBlockNumber()];case 1:return e=r.sent(),[2,parseInt(e)];case 2:return r.sent(),[2,Promise.reject()];case 3:return[2]}}))}))},Multicaller:ff,getSnapshots:function(t,n,i,o){return e(this,void 0,void 0,(function(){var e,s,a,u,h;return r(this,(function(r){switch(r.label){case 0:return e=t+"-"+n+"-"+o.join("-"),df[e]?[2,df[e]]:(s={},o.forEach((function(t){return s[t]="latest"})),"latest"===n?[2,s]:(s[t]=n,a=Object.keys(s).filter((function(e){return t!==e})),0===a.length?[2,s]:[4,i.getBlock(n)]));case 1:return u=r.sent(),h={blocks:{__args:{where:{ts:u.timestamp,network_in:a}},network:!0,number:!0}},"https://blockfinder.snapshot.org",[4,up("https://blockfinder.snapshot.org",h)];case 2:return r.sent().blocks.forEach((function(t){return s[t.network]=t.number})),df[e]=s,[2,s]}}))}))},getHash:Bd,verify:function(t,n,i,o){return void 0===o&&(o="1"),e(this,void 0,void 0,(function(){var e,s,a,u,h;return r(this,(function(r){switch(r.label){case 0:e=i.domain,s=i.types,a=i.message,u=Bd(i);try{if(h=Id(e,s,a,n),t===h)return[2,!0]}catch(t){}return[4,Fd(t,n,u,o)];case 1:return[2,r.sent()]}}))}))},validate:function(t,n,i,o,s,a,u){return e(this,void 0,void 0,(function(){var e,h;return r(this,(function(r){switch(r.label){case 0:return u||(u={}),u.url||(u.url="https://score.snapshot.org"),e={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",method:"validate",params:{validation:t,author:n,space:i,network:o,snapshot:s,params:a},id:null})},[4,l(u.url,e)];case 1:return[4,r.sent().json()];case 2:return(h=r.sent()).error?[2,Promise.reject(h.error)]:[2,h.result]}}))}))},SNAPSHOT_SUBGRAPH_URL:np};return{Client:sr,Client712:sr,schemas:fr,utils:pp}}));
|