LavaPack.loadBundle([["/home/runner/work/metamask-extension/metamask-extension/node_modules/long/umd/index.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;
/**
   * @license
   * Copyright 2009 The Closure Library Authors
   * Copyright 2020 Daniel Wirtz / The long.js Authors.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   *
   * SPDX-License-Identifier: Apache-2.0
   */
var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function n(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function r(e){return!0===(e&&e.__isLong__)}function i(e){var t=Math.clz32(e&-e);return e?31-t:t}n.prototype.__isLong__,Object.defineProperty(n.prototype,"__isLong__",{value:!0}),n.isLong=r;var s={},o={};function a(e,t){var n,r,i;return t?(i=0<=(e>>>=0)&&e<256)&&(r=o[e])?r:(n=l(e,0,!0),i&&(o[e]=n),n):(i=-128<=(e|=0)&&e<128)&&(r=s[e])?r:(n=l(e,e<0?-1:0,!1),i&&(s[e]=n),n)}function u(e,t){if(isNaN(e))return t?y:g;if(t){if(e<0)return y;if(e>=m)return x}else{if(e<=-p)return E;if(e+1>=p)return _}return e<0?u(-e,t).neg():l(e%f|0,e/f|0,t)}function l(e,t,r){return new n(e,t,r)}n.fromInt=a,n.fromNumber=u,n.fromBits=l;var c=Math.pow;function d(e,t,n){if(0===e.length)throw Error("empty string");if("number"==typeof t?(n=t,t=!1):t=!!t,"NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t?y:g;if((n=n||10)<2||36<n)throw RangeError("radix");var r;if((r=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===r)return d(e.substring(1),t,n).neg();for(var i=u(c(n,8)),s=g,o=0;o<e.length;o+=8){var a=Math.min(8,e.length-o),l=parseInt(e.substring(o,o+a),n);if(a<8){var h=u(c(n,a));s=s.mul(h).add(u(l))}else s=(s=s.mul(i)).add(u(l))}return s.unsigned=t,s}function h(e,t){return"number"==typeof e?u(e,t):"string"==typeof e?d(e,t):l(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}n.fromString=d,n.fromValue=h;var f=4294967296,m=f*f,p=m/2,b=a(1<<24),g=a(0);n.ZERO=g;var y=a(0,!0);n.UZERO=y;var w=a(1);n.ONE=w;var k=a(1,!0);n.UONE=k;var v=a(-1);n.NEG_ONE=v;var _=l(-1,2147483647,!1);n.MAX_VALUE=_;var x=l(-1,-1,!0);n.MAX_UNSIGNED_VALUE=x;var E=l(0,-2147483648,!1);n.MIN_VALUE=E;var j=n.prototype;j.toInt=function(){return this.unsigned?this.low>>>0:this.low},j.toNumber=function(){return this.unsigned?(this.high>>>0)*f+(this.low>>>0):this.high*f+(this.low>>>0)},j.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(E)){var t=u(e),n=this.div(t),r=n.mul(t).sub(this);return n.toString(e)+r.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var i=u(c(e,6),this.unsigned),s=this,o="";;){var a=s.div(i),l=(s.sub(a.mul(i)).toInt()>>>0).toString(e);if((s=a).isZero())return l+o;for(;l.length<6;)l="0"+l;o=""+l+o}},j.getHighBits=function(){return this.high},j.getHighBitsUnsigned=function(){return this.high>>>0},j.getLowBits=function(){return this.low},j.getLowBitsUnsigned=function(){return this.low>>>0},j.getNumBitsAbs=function(){if(this.isNegative())return this.eq(E)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&!(e&1<<t);t--);return 0!=this.high?t+33:t+1},j.isZero=function(){return 0===this.high&&0===this.low},j.eqz=j.isZero,j.isNegative=function(){return!this.unsigned&&this.high<0},j.isPositive=function(){return this.unsigned||this.high>=0},j.isOdd=function(){return!(1&~this.low)},j.isEven=function(){return!(1&this.low)},j.equals=function(e){return r(e)||(e=h(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},j.eq=j.equals,j.notEquals=function(e){return!this.eq(e)},j.neq=j.notEquals,j.ne=j.notEquals,j.lessThan=function(e){return this.comp(e)<0},j.lt=j.lessThan,j.lessThanOrEqual=function(e){return this.comp(e)<=0},j.lte=j.lessThanOrEqual,j.le=j.lessThanOrEqual,j.greaterThan=function(e){return this.comp(e)>0},j.gt=j.greaterThan,j.greaterThanOrEqual=function(e){return this.comp(e)>=0},j.gte=j.greaterThanOrEqual,j.ge=j.greaterThanOrEqual,j.compare=function(e){if(r(e)||(e=h(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},j.comp=j.compare,j.negate=function(){return!this.unsigned&&this.eq(E)?E:this.not().add(w)},j.neg=j.negate,j.add=function(e){r(e)||(e=h(e));var t=this.high>>>16,n=65535&this.high,i=this.low>>>16,s=65535&this.low,o=e.high>>>16,a=65535&e.high,u=e.low>>>16,c=0,d=0,f=0,m=0;return f+=(m+=s+(65535&e.low))>>>16,d+=(f+=i+u)>>>16,c+=(d+=n+a)>>>16,c+=t+o,l((f&=65535)<<16|(m&=65535),(c&=65535)<<16|(d&=65535),this.unsigned)},j.subtract=function(e){return r(e)||(e=h(e)),this.add(e.neg())},j.sub=j.subtract,j.multiply=function(e){if(this.isZero())return this;if(r(e)||(e=h(e)),t)return l(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return this.unsigned?y:g;if(this.eq(E))return e.isOdd()?E:g;if(e.eq(E))return this.isOdd()?E:g;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(b)&&e.lt(b))return u(this.toNumber()*e.toNumber(),this.unsigned);var n=this.high>>>16,i=65535&this.high,s=this.low>>>16,o=65535&this.low,a=e.high>>>16,c=65535&e.high,d=e.low>>>16,f=65535&e.low,m=0,p=0,w=0,k=0;return w+=(k+=o*f)>>>16,p+=(w+=s*f)>>>16,w&=65535,p+=(w+=o*d)>>>16,m+=(p+=i*f)>>>16,p&=65535,m+=(p+=s*d)>>>16,p&=65535,m+=(p+=o*c)>>>16,m+=n*f+i*d+s*c+o*a,l((w&=65535)<<16|(k&=65535),(m&=65535)<<16|(p&=65535),this.unsigned)},j.mul=j.multiply,j.divide=function(e){if(r(e)||(e=h(e)),e.isZero())throw Error("division by zero");var n,i,s;if(t)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?l((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?y:g;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return y;if(e.gt(this.shru(1)))return k;s=y}else{if(this.eq(E))return e.eq(w)||e.eq(v)?E:e.eq(E)?w:(n=this.shr(1).div(e).shl(1)).eq(g)?e.isNegative()?w:v:(i=this.sub(e.mul(n)),s=n.add(i.div(e)));if(e.eq(E))return this.unsigned?y:g;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();s=g}for(i=this;i.gte(e);){n=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var o=Math.ceil(Math.log(n)/Math.LN2),a=o<=48?1:c(2,o-48),d=u(n),f=d.mul(e);f.isNegative()||f.gt(i);)f=(d=u(n-=a,this.unsigned)).mul(e);d.isZero()&&(d=w),s=s.add(d),i=i.sub(f)}return s},j.div=j.divide,j.modulo=function(e){return r(e)||(e=h(e)),t?l((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},j.mod=j.modulo,j.rem=j.modulo,j.not=function(){return l(~this.low,~this.high,this.unsigned)},j.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},j.clz=j.countLeadingZeros,j.countTrailingZeros=function(){return this.low?i(this.low):i(this.high)+32},j.ctz=j.countTrailingZeros,j.and=function(e){return r(e)||(e=h(e)),l(this.low&e.low,this.high&e.high,this.unsigned)},j.or=function(e){return r(e)||(e=h(e)),l(this.low|e.low,this.high|e.high,this.unsigned)},j.xor=function(e){return r(e)||(e=h(e)),l(this.low^e.low,this.high^e.high,this.unsigned)},j.shiftLeft=function(e){return r(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?l(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):l(0,this.low<<e-32,this.unsigned)},j.shl=j.shiftLeft,j.shiftRight=function(e){return r(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?l(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):l(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},j.shr=j.shiftRight,j.shiftRightUnsigned=function(e){return r(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?l(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):l(32===e?this.high:this.high>>>e-32,0,this.unsigned)},j.shru=j.shiftRightUnsigned,j.shr_u=j.shiftRightUnsigned,j.rotateLeft=function(e){var t;return r(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?l(this.high,this.low,this.unsigned):e<32?(t=32-e,l(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(t=32-(e-=32),l(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},j.rotl=j.rotateLeft,j.rotateRight=function(e){var t;return r(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?l(this.high,this.low,this.unsigned):e<32?(t=32-e,l(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(t=32-(e-=32),l(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},j.rotr=j.rotateRight,j.toSigned=function(){return this.unsigned?l(this.low,this.high,!1):this},j.toUnsigned=function(){return this.unsigned?this:l(this.low,this.high,!0)},j.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},j.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},j.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},n.fromBytes=function(e,t,r){return r?n.fromBytesLE(e,t):n.fromBytesBE(e,t)},n.fromBytesLE=function(e,t){return new n(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},n.fromBytesBE=function(e,t){return new n(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)};var S=n;return e.default=S,"default"in e?e.default:e}({});"function"==typeof define&&define.amd?define([],function(){return r}):"object"==typeof t&&"object"==typeof n&&(t.exports=r)}}},{package:"@google/genai>protobufjs>long",file:"node_modules/long/umd/index.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/luxon/build/cjs-browser/luxon.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,u(e,t)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function l(e,t,n){return l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&u(i,n.prototype),i},l.apply(null,arguments)}function c(e){var t="function"==typeof Map?new Map:undefined;return c=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return l(e,arguments,a(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,e)},c(e)}function d(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}Object.defineProperty(n,"__esModule",{value:!0});var p=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(c(Error)),b=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return o(t,e),t}(p),g=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return o(t,e),t}(p),y=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return o(t,e),t}(p),w=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(p),k=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return o(t,e),t}(p),v=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(p),_=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return o(t,e),t}(p),x="numeric",E="short",j="long",S={year:x,month:x,day:x},T={year:x,month:E,day:x},O={year:x,month:E,day:x,weekday:E},I={year:x,month:j,day:x},A={year:x,month:j,day:x,weekday:j},B={hour:x,minute:x},R={hour:x,minute:x,second:x},L={hour:x,minute:x,second:x,timeZoneName:E},P={hour:x,minute:x,second:x,timeZoneName:j},N={hour:x,minute:x,hourCycle:"h23"},M={hour:x,minute:x,second:x,hourCycle:"h23"},z={hour:x,minute:x,second:x,hourCycle:"h23",timeZoneName:E},D={hour:x,minute:x,second:x,hourCycle:"h23",timeZoneName:j},C={year:x,month:x,day:x,hour:x,minute:x},$={year:x,month:x,day:x,hour:x,minute:x,second:x},H={year:x,month:E,day:x,hour:x,minute:x},U={year:x,month:E,day:x,hour:x,minute:x,second:x},F={year:x,month:E,day:x,weekday:E,hour:x,minute:x},V={year:x,month:j,day:x,hour:x,minute:x,timeZoneName:E},q={year:x,month:j,day:x,hour:x,minute:x,second:x,timeZoneName:E},Z={year:x,month:j,day:x,weekday:j,hour:x,minute:x,timeZoneName:j},W={year:x,month:j,day:x,weekday:j,hour:x,minute:x,second:x,timeZoneName:j},K=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new _},t.formatOffset=function(e,t){throw new _},t.offset=function(e){throw new _},t.equals=function(e){throw new _},i(e,[{key:"type",get:function(){throw new _}},{key:"name",get:function(){throw new _}},{key:"ianaName",get:function(){return this.name}},{key:"isUniversal",get:function(){throw new _}},{key:"isValid",get:function(){throw new _}}]),e}(),G=null,Y=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.offsetName=function(e,t){return bt(e,t.format,t.locale)},n.formatOffset=function(e,t){return kt(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"system"===e.type},i(t,[{key:"type",get:function(){return"system"}},{key:"name",get:function(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===G&&(G=new t),G}}]),t}(K),J={};var X={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};var Q={},ee=function(e){function t(n){var r;return(r=e.call(this)||this).zoneName=n,r.valid=t.isValidZone(n),r}o(t,e),t.create=function(e){return Q[e]||(Q[e]=new t(e)),Q[e]},t.resetCache=function(){Q={},J={}},t.isValidSpecifier=function(e){return this.isValidZone(e)},t.isValidZone=function(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}};var n=t.prototype;return n.offsetName=function(e,t){return bt(e,t.format,t.locale,this.name)},n.formatOffset=function(e,t){return kt(this.offset(e),t)},n.offset=function(e){var t=new Date(e);if(isNaN(t))return NaN;var n,r=(n=this.name,J[n]||(J[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),J[n]),i=r.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var s=n[i],o=s.type,a=s.value,u=X[o];"era"===o?r[u]=a:Ge(u)||(r[u]=parseInt(a,10))}return r}(r,t):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),i=r[1],s=r[2];return[r[3],i,s,r[4],r[5],r[6],r[7]]}(r,t),s=i[0],o=i[1],a=i[2],u=i[3],l=i[4],c=i[5],d=i[6];"BC"===u&&(s=1-Math.abs(s));var h=+t,f=h%1e3;return(ht({year:s,month:o,day:a,hour:24===l?0:l,minute:c,second:d,millisecond:0})-(h-=f>=0?f:1e3+f))/6e4},n.equals=function(e){return"iana"===e.type&&e.name===this.name},i(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(K),te=["base"],ne=["padTo","floor"],re={};var ie={};function se(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=ie[n];return r||(r=new Intl.DateTimeFormat(e,t),ie[n]=r),r}var oe={};var ae={};var ue=null;var le={};function ce(e,t,n,r){var i=e.listingMode();return"error"===i?null:"en"===i?n(t):r(t)}var de=function(){function e(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1,n.padTo,n.floor;var r=d(n,ne);if(!t||Object.keys(r).length>0){var i=s({useGrouping:!1},n);n.padTo>0&&(i.minimumIntegerDigits=n.padTo),this.inf=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=oe[n];return r||(r=new Intl.NumberFormat(e,t),oe[n]=r),r}(e,i)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return it(this.floor?Math.floor(e):ut(e,3),this.padTo)},e}(),he=function(){function e(e,t,n){this.opts=n,this.originalZone=undefined;var r=undefined;if(this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){var i=e.offset/60*-1,o=i>=0?"Etc/GMT+"+i:"Etc/GMT"+i;0!==e.offset&&ee.create(o).valid?(r=o,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);var a=s({},this.opts);a.timeZone=a.timeZone||r,this.dtf=se(t,a)}var t=e.prototype;return t.format=function(){return this.originalZone?this.formatToParts().map(function(e){return e.value}).join(""):this.dtf.format(this.dt.toJSDate())},t.formatToParts=function(){var e=this,t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(function(t){return"timeZoneName"===t.type?s({},t,{value:e.originalZone.offsetName(e.dt.ts,{locale:e.dt.locale,format:e.opts.timeZoneName})}):t}):t},t.resolvedOptions=function(){return this.dtf.resolvedOptions()},e}(),fe=function(){function e(e,t,n){this.opts=s({style:"long"},n),!t&&Xe()&&(this.rtf=function(e,t){void 0===t&&(t={});var n=t;n.base;var r=d(n,te),i=JSON.stringify([e,r]),s=ae[i];return s||(s=new Intl.RelativeTimeFormat(e,t),ae[i]=s),s}(e,n))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n,r){void 0===n&&(n="always");void 0===r&&(r=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&s){var o="days"===e;switch(t){case 1:return o?"tomorrow":"next "+i[e][0];case-1:return o?"yesterday":"last "+i[e][0];case 0:return o?"today":"this "+i[e][0]}}var a=Object.is(t,-0)||t<0,u=Math.abs(t),l=1===u,c=i[e],d=r?l?c[1]:c[2]||c[1]:l?i[e][0]:e;return a?u+" "+d+" ago":"in "+u+" "+d}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),me={firstDay:1,minimalDays:4,weekend:[6,7]},pe=function(){function e(e,t,n,r,i){var s=function(e){var t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));var n,r,i=e.indexOf("-u-");if(-1===i)return[e];try{n=se(e).resolvedOptions(),r=e}catch(t){var s=e.substring(0,i);n=se(s).resolvedOptions(),r=s}var o=n;return[r,o.numberingSystem,o.calendar]}(e),o=s[0],a=s[1],u=s[2];this.locale=o,this.numberingSystem=t||a||null,this.outputCalendar=n||u||null,this.weekSettings=r,this.intl=function(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+="-ca-"+n),t&&(e+="-nu-"+t),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)},e.create=function(t,n,r,i,s){void 0===s&&(s=!1);var o=t||Le.defaultLocale;return new e(o||(s?"en-US":ue||(ue=(new Intl.DateTimeFormat).resolvedOptions().locale)),n||Le.defaultNumberingSystem,r||Le.defaultOutputCalendar,nt(i)||Le.defaultWeekSettings,o)},e.resetCache=function(){ue=null,ie={},oe={},ae={}},e.fromObject=function(t){var n=void 0===t?{}:t,r=n.locale,i=n.numberingSystem,s=n.outputCalendar,o=n.weekSettings;return e.create(r,i,s,o)};var t=e.prototype;return t.listingMode=function(){var e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,nt(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(s({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(s({},e,{defaultToEN:!1}))},t.months=function(e,t){var n=this;return void 0===t&&(t=!1),ce(this,e,jt,function(){var r=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return n.monthsCache[i][e]||(n.monthsCache[i][e]=function(e){for(var t=[],n=1;n<=12;n++){var r=Ar.utc(2009,n,1);t.push(e(r))}return t}(function(e){return n.extract(e,r,"month")})),n.monthsCache[i][e]})},t.weekdays=function(e,t){var n=this;return void 0===t&&(t=!1),ce(this,e,It,function(){var r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return n.weekdaysCache[i][e]||(n.weekdaysCache[i][e]=function(e){for(var t=[],n=1;n<=7;n++){var r=Ar.utc(2016,11,13+n);t.push(e(r))}return t}(function(e){return n.extract(e,r,"weekday")})),n.weekdaysCache[i][e]})},t.meridiems=function(){var e=this;return ce(this,undefined,function(){return At},function(){if(!e.meridiemCache){var t={hour:"numeric",hourCycle:"h12"};e.meridiemCache=[Ar.utc(2016,11,13,9),Ar.utc(2016,11,13,19)].map(function(n){return e.extract(n,t,"dayperiod")})}return e.meridiemCache})},t.eras=function(e){var t=this;return ce(this,e,Pt,function(){var n={era:e};return t.eraCache[e]||(t.eraCache[e]=[Ar.utc(-40,1,1),Ar.utc(2017,1,1)].map(function(e){return t.extract(e,n,"era")})),t.eraCache[e]})},t.extract=function(e,t,n){var r=this.dtFormatter(e,t).formatToParts().find(function(e){return e.type.toLowerCase()===n});return r?r.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new de(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new he(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new fe(this.intl,this.isEnglish(),e)},t.listFormatter=function(e){return void 0===e&&(e={}),function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=re[n];return r||(r=new Intl.ListFormat(e,t),re[n]=r),r}(this.intl,e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.getWeekSettings=function(){return this.weekSettings?this.weekSettings:Qe()?function(e){var t=le[e];if(!t){var n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,le[e]=t}return t}(this.locale):me},t.getStartOfWeek=function(){return this.getWeekSettings().firstDay},t.getMinDaysInFirstWeek=function(){return this.getWeekSettings().minimalDays},t.getWeekendDays=function(){return this.getWeekSettings().weekend},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},t.toString=function(){return"Locale("+this.locale+", "+this.numberingSystem+", "+this.outputCalendar+")"},i(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}(),be=null,ge=function(e){function t(t){var n;return(n=e.call(this)||this).fixed=t,n}o(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new t(gt(n[1],n[2]))}return null};var n=t.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(e,t){return kt(this.fixed,t)},n.offset=function(){return this.fixed},n.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},i(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+kt(this.fixed,"narrow")}},{key:"ianaName",get:function(){return 0===this.fixed?"Etc/UTC":"Etc/GMT"+kt(-this.fixed,"narrow")}},{key:"isUniversal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}],[{key:"utcInstance",get:function(){return null===be&&(be=new t(0)),be}}]),t}(K),ye=function(e){function t(t){var n;return(n=e.call(this)||this).zoneName=t,n}o(t,e);var n=t.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},i(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(K);function we(e,t){if(Ge(e)||null===e)return t;if(e instanceof K)return e;if("string"==typeof e){var n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?Y.instance:"utc"===n||"gmt"===n?ge.utcInstance:ge.parseSpecifier(n)||ee.create(e)}return Ye(e)?ge.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new ye(e)}var ke={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[０-９]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},ve={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},_e=ke.hanidec.replace(/[\[|\]]/g,"").split("");var xe={};function Ee(e,t){void 0===t&&(t="");var n=e.numberingSystem||"latn";return xe[n]||(xe[n]={}),xe[n][t]||(xe[n][t]=new RegExp(""+ke[n]+t)),xe[n][t]}var je,Se=function(){return Date.now()},Te="system",Oe=null,Ie=null,Ae=null,Be=60,Re=null,Le=function(){function e(){}return e.resetCaches=function(){pe.resetCache(),ee.resetCache(),Ar.resetCache(),xe={}},i(e,null,[{key:"now",get:function(){return Se},set:function(e){Se=e}},{key:"defaultZone",get:function(){return we(Te,Y.instance)},set:function(e){Te=e}},{key:"defaultLocale",get:function(){return Oe},set:function(e){Oe=e}},{key:"defaultNumberingSystem",get:function(){return Ie},set:function(e){Ie=e}},{key:"defaultOutputCalendar",get:function(){return Ae},set:function(e){Ae=e}},{key:"defaultWeekSettings",get:function(){return Re},set:function(e){Re=nt(e)}},{key:"twoDigitCutoffYear",get:function(){return Be},set:function(e){Be=e%100}},{key:"throwOnInvalid",get:function(){return je},set:function(e){je=e}}]),e}(),Pe=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Ne=[0,31,59,90,120,151,181,212,243,273,304,334],Me=[0,31,60,91,121,152,182,213,244,274,305,335];function ze(e,t){return new Pe("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function De(e,t,n){var r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);var i=r.getUTCDay();return 0===i?7:i}function Ce(e,t,n){return n+(lt(e)?Me:Ne)[t-1]}function $e(e,t){var n=lt(e)?Me:Ne,r=n.findIndex(function(e){return e<t});return{month:r+1,day:t-n[r]}}function He(e,t){return(e-t+7)%7+1}function Ue(e,t,n){void 0===t&&(t=4),void 0===n&&(n=1);var r,i=e.year,o=e.month,a=e.day,u=Ce(i,o,a),l=He(De(i,o,a),n),c=Math.floor((u-l+14-t)/7);return c<1?c=mt(r=i-1,t,n):c>mt(i,t,n)?(r=i+1,c=1):r=i,s({weekYear:r,weekNumber:c,weekday:l},vt(e))}function Fe(e,t,n){void 0===t&&(t=4),void 0===n&&(n=1);var r,i=e.weekYear,o=e.weekNumber,a=e.weekday,u=He(De(i,1,t),n),l=ct(i),c=7*o+a-u-7+t;c<1?c+=ct(r=i-1):c>l?(r=i+1,c-=ct(i)):r=i;var d=$e(r,c);return s({year:r,month:d.month,day:d.day},vt(e))}function Ve(e){var t=e.year;return s({year:t,ordinal:Ce(t,e.month,e.day)},vt(e))}function qe(e){var t=e.year,n=$e(t,e.ordinal);return s({year:t,month:n.month,day:n.day},vt(e))}function Ze(e,t){if(!Ge(e.localWeekday)||!Ge(e.localWeekNumber)||!Ge(e.localWeekYear)){if(!Ge(e.weekday)||!Ge(e.weekNumber)||!Ge(e.weekYear))throw new w("Cannot mix locale-based week fields with ISO-based week fields");return Ge(e.localWeekday)||(e.weekday=e.localWeekday),Ge(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Ge(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function We(e){var t=Je(e.year),n=rt(e.month,1,12),r=rt(e.day,1,dt(e.year,e.month));return t?n?!r&&ze("day",e.day):ze("month",e.month):ze("year",e.year)}function Ke(e){var t=e.hour,n=e.minute,r=e.second,i=e.millisecond,s=rt(t,0,23)||24===t&&0===n&&0===r&&0===i,o=rt(n,0,59),a=rt(r,0,59),u=rt(i,0,999);return s?o?a?!u&&ze("millisecond",i):ze("second",r):ze("minute",n):ze("hour",t)}function Ge(e){return void 0===e}function Ye(e){return"number"==typeof e}function Je(e){return"number"==typeof e&&e%1==0}function Xe(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Qe(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function et(e,t,n){return 0===e.length?undefined:e.reduce(function(e,r){var i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i},null)[1]}function tt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nt(e){if(null==e)return null;if("object"!=typeof e)throw new v("Week settings must be an object");if(!rt(e.firstDay,1,7)||!rt(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(function(e){return!rt(e,1,7)}))throw new v("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function rt(e,t,n){return Je(e)&&e>=t&&e<=n}function it(e,t){return void 0===t&&(t=2),e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0")}function st(e){return Ge(e)||null===e||""===e?undefined:parseInt(e,10)}function ot(e){return Ge(e)||null===e||""===e?undefined:parseFloat(e)}function at(e){if(Ge(e)||null===e||""===e)return undefined;var t=1e3*parseFloat("0."+e);return Math.floor(t)}function ut(e,t,n){void 0===n&&(n=!1);var r=Math.pow(10,t);return(n?Math.trunc:Math.round)(e*r)/r}function lt(e){return e%4==0&&(e%100!=0||e%400==0)}function ct(e){return lt(e)?366:365}function dt(e,t){var n=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===n?lt(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function ht(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(e.year,e.month-1,e.day),+t}function ft(e,t,n){return-He(De(e,1,t),n)+t-1}function mt(e,t,n){void 0===t&&(t=4),void 0===n&&(n=1);var r=ft(e,t,n),i=ft(e+1,t,n);return(ct(e)-r+i)/7}function pt(e){return e>99?e:e>Le.twoDigitCutoffYear?1900+e:2e3+e}function bt(e,t,n,r){void 0===r&&(r=null);var i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);var a=s({timeZoneName:t},o),u=new Intl.DateTimeFormat(n,a).formatToParts(i).find(function(e){return"timezonename"===e.type.toLowerCase()});return u?u.value:null}function gt(e,t){var n=parseInt(e,10);Number.isNaN(n)&&(n=0);var r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function yt(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new v("Invalid unit value "+e);return t}function wt(e,t){var n={};for(var r in e)if(tt(e,r)){var i=e[r];if(i===undefined||null===i)continue;n[t(r)]=yt(i)}return n}function kt(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return""+i+it(n,2)+":"+it(r,2);case"narrow":return""+i+n+(r>0?":"+r:"");case"techie":return""+i+it(n,2)+it(r,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function vt(e){return function(e,t){return t.reduce(function(t,n){return t[n]=e[n],t},{})}(e,["hour","minute","second","millisecond"])}var _t=["January","February","March","April","May","June","July","August","September","October","November","December"],xt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Et=["J","F","M","A","M","J","J","A","S","O","N","D"];function jt(e){switch(e){case"narrow":return[].concat(Et);case"short":return[].concat(xt);case"long":return[].concat(_t);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var St=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Tt=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ot=["M","T","W","T","F","S","S"];function It(e){switch(e){case"narrow":return[].concat(Ot);case"short":return[].concat(Tt);case"long":return[].concat(St);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var At=["AM","PM"],Bt=["Before Christ","Anno Domini"],Rt=["BC","AD"],Lt=["B","A"];function Pt(e){switch(e){case"narrow":return[].concat(Lt);case"short":return[].concat(Rt);case"long":return[].concat(Bt);default:return null}}function Nt(e,t){for(var n,r="",i=f(e);!(n=i()).done;){var s=n.value;s.literal?r+=s.val:r+=t(s.val)}return r}var Mt={D:S,DD:T,DDD:I,DDDD:A,t:B,tt:R,ttt:L,tttt:P,T:N,TT:M,TTT:z,TTTT:D,f:C,ff:H,fff:V,ffff:Z,F:$,FF:U,FFF:q,FFFF:W},zt=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,n){return void 0===n&&(n={}),new e(t,n)},e.parseFormat=function(e){for(var t=null,n="",r=!1,i=[],s=0;s<e.length;s++){var o=e.charAt(s);"'"===o?(n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),t=null,n="",r=!r):r||o===t?n+=o:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=o,t=o)}return n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),i},e.macroTokenToFormatOpts=function(e){return Mt[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,s({},this.opts,t)).format()},t.dtFormatter=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,s({},this.opts,t))},t.formatDateTime=function(e,t){return this.dtFormatter(e,t).format()},t.formatDateTimeParts=function(e,t){return this.dtFormatter(e,t).formatToParts()},t.formatInterval=function(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())},t.resolvedOptions=function(e,t){return this.dtFormatter(e,t).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return it(e,t);var n=s({},this.opts);return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)},t.formatDateTimeFromString=function(t,n){var r=this,i="en"===this.loc.listingMode(),s=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=function(e,n){return r.loc.extract(t,e,n)},a=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},u=function(){return i?function(e){return At[e.hour<12?0:1]}(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod")},l=function(e,n){return i?function(e,t){return jt(t)[e.month-1]}(t,e):o(n?{month:e}:{month:e,day:"numeric"},"month")},c=function(e,n){return i?function(e,t){return It(t)[e.weekday-1]}(t,e):o(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},d=function(e){return i?function(e,t){return Pt(t)[e.year<0?0:1]}(t,e):o({era:e},"era")};return Nt(e.parseFormat(n),function(n){switch(n){case"S":return r.num(t.millisecond);case"u":case"SSS":return r.num(t.millisecond,3);case"s":return r.num(t.second);case"ss":return r.num(t.second,2);case"uu":return r.num(Math.floor(t.millisecond/10),2);case"uuu":return r.num(Math.floor(t.millisecond/100));case"m":return r.num(t.minute);case"mm":return r.num(t.minute,2);case"h":return r.num(t.hour%12==0?12:t.hour%12);case"hh":return r.num(t.hour%12==0?12:t.hour%12,2);case"H":return r.num(t.hour);case"HH":return r.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:r.opts.allowZ});case"ZZ":return a({format:"short",allowZ:r.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:r.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:r.loc.locale});case"z":return t.zoneName;case"a":return u();case"d":return s?o({day:"numeric"},"day"):r.num(t.day);case"dd":return s?o({day:"2-digit"},"day"):r.num(t.day,2);case"c":case"E":return r.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return s?o({month:"numeric",day:"numeric"},"month"):r.num(t.month);case"LL":return s?o({month:"2-digit",day:"numeric"},"month"):r.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return s?o({month:"numeric"},"month"):r.num(t.month);case"MM":return s?o({month:"2-digit"},"month"):r.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return s?o({year:"numeric"},"year"):r.num(t.year);case"yy":return s?o({year:"2-digit"},"year"):r.num(t.year.toString().slice(-2),2);case"yyyy":return s?o({year:"numeric"},"year"):r.num(t.year,4);case"yyyyyy":return s?o({year:"numeric"},"year"):r.num(t.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return r.num(t.weekYear.toString().slice(-2),2);case"kkkk":return r.num(t.weekYear,4);case"W":return r.num(t.weekNumber);case"WW":return r.num(t.weekNumber,2);case"n":return r.num(t.localWeekNumber);case"nn":return r.num(t.localWeekNumber,2);case"ii":return r.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return r.num(t.localWeekYear,4);case"o":return r.num(t.ordinal);case"ooo":return r.num(t.ordinal,3);case"q":return r.num(t.quarter);case"qq":return r.num(t.quarter,2);case"X":return r.num(Math.floor(t.ts/1e3));case"x":return r.num(t.ts);default:return function(n){var i=e.macroTokenToFormatOpts(n);return i?r.formatWithSystemDefault(t,i):n}(n)}})},t.formatDurationFromString=function(t,n){var r,i=this,s=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=e.parseFormat(n),a=o.reduce(function(e,t){var n=t.literal,r=t.val;return n?e:e.concat(r)},[]),u=t.shiftTo.apply(t,a.map(s).filter(function(e){return e}));return Nt(o,(r=u,function(e){var t=s(e);return t?i.num(r.get(t),e.length):e}))},e}(),Dt=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ct(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce(function(e,t){return e+t.source},"");return RegExp("^"+r+"$")}function $t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce(function(t,n){var r=t[0],i=t[1],o=t[2],a=n(e,o),u=a[0],l=a[1],c=a[2];return[s({},r,u),l||i,c]},[{},null,1]).slice(0,2)}}function Ht(e){if(null==e)return[null,null];for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,s=n;i<s.length;i++){var o=s[i],a=o[0],u=o[1],l=a.exec(e);if(l)return u(l)}return[null,null]}function Ut(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){var r,i={};for(r=0;r<t.length;r++)i[t[r]]=st(e[n+r]);return[i,null,n+r]}}var Ft=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Vt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,qt=RegExp(""+Vt.source+("(?:"+Ft.source+"?(?:\\[("+Dt.source+")\\])?)?")),Zt=RegExp("(?:T"+qt.source+")?"),Wt=Ut("weekYear","weekNumber","weekDay"),Kt=Ut("year","ordinal"),Gt=RegExp(Vt.source+" ?(?:"+Ft.source+"|("+Dt.source+"))?"),Yt=RegExp("(?: "+Gt.source+")?");function Jt(e,t,n){var r=e[t];return Ge(r)?n:st(r)}function Xt(e,t){return[{hours:Jt(e,t,0),minutes:Jt(e,t+1,0),seconds:Jt(e,t+2,0),milliseconds:at(e[t+3])},null,t+4]}function Qt(e,t){var n=!e[t]&&!e[t+1],r=gt(e[t+1],e[t+2]);return[{},n?null:ge.instance(r),t+3]}function en(e,t){return[{},e[t]?ee.create(e[t]):null,t+1]}var tn=RegExp("^T?"+Vt.source+"$"),nn=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function rn(e){var t=e[0],n=e[1],r=e[2],i=e[3],s=e[4],o=e[5],a=e[6],u=e[7],l=e[8],c="-"===t[0],d=u&&"-"===u[0],h=function(e,t){return void 0===t&&(t=!1),e!==undefined&&(t||e&&c)?-e:e};return[{years:h(ot(n)),months:h(ot(r)),weeks:h(ot(i)),days:h(ot(s)),hours:h(ot(o)),minutes:h(ot(a)),seconds:h(ot(u),"-0"===u),milliseconds:h(at(l),d)}]}var sn={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function on(e,t,n,r,i,s,o){var a={year:2===t.length?pt(st(t)):st(t),month:xt.indexOf(n)+1,day:st(r),hour:st(i),minute:st(s)};return o&&(a.second=st(o)),e&&(a.weekday=e.length>3?St.indexOf(e)+1:Tt.indexOf(e)+1),a}var an=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function un(e){var t,n=e[1],r=e[2],i=e[3],s=e[4],o=e[5],a=e[6],u=e[7],l=e[8],c=e[9],d=e[10],h=e[11],f=on(n,s,i,r,o,a,u);return t=l?sn[l]:c?0:gt(d,h),[f,new ge(t)]}var ln=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,cn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,dn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function hn(e){var t=e[1],n=e[2],r=e[3];return[on(t,e[4],r,n,e[5],e[6],e[7]),ge.utcInstance]}function fn(e){var t=e[1],n=e[2],r=e[3],i=e[4],s=e[5],o=e[6];return[on(t,e[7],n,r,i,s,o),ge.utcInstance]}var mn=Ct(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Zt),pn=Ct(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Zt),bn=Ct(/(\d{4})-?(\d{3})/,Zt),gn=Ct(qt),yn=$t(function(e,t){return[{year:Jt(e,t),month:Jt(e,t+1,1),day:Jt(e,t+2,1)},null,t+3]},Xt,Qt,en),wn=$t(Wt,Xt,Qt,en),kn=$t(Kt,Xt,Qt,en),vn=$t(Xt,Qt,en);var _n=$t(Xt);var xn=Ct(/(\d{4})-(\d\d)-(\d\d)/,Yt),En=Ct(Gt),jn=$t(Xt,Qt,en);var Sn="Invalid Duration",Tn={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},On=s({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Tn),In=365.2425,An=30.436875,Bn=s({years:{quarters:4,months:12,weeks:52.1775,days:In,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:An,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Tn),Rn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Ln=Rn.slice(0).reverse();function Pn(e,t,n){void 0===n&&(n=!1);var r={values:n?t.values:s({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new zn(r)}function Nn(e,t){for(var n,r,i=null!=(n=t.milliseconds)?n:0,s=f(Ln.slice(1));!(r=s()).done;){var o=r.value;t[o]&&(i+=t[o]*e[o].milliseconds)}return i}function Mn(e,t){var n=Nn(e,t)<0?-1:1;Rn.reduceRight(function(r,i){if(Ge(t[i]))return r;if(r){var s=t[r]*n,o=e[i][r],a=Math.floor(s/o);t[i]+=a*n,t[r]-=a*o*n}return i},null),Rn.reduce(function(n,r){if(Ge(t[r]))return n;if(n){var i=t[n]%1;t[n]-=i,t[r]+=i*e[n][r]}return r},null)}var zn=function(e){function t(e){var t="longterm"===e.conversionAccuracy||!1,n=t?Bn:On;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||pe.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}t.fromMillis=function(e,n){return t.fromObject({milliseconds:e},n)},t.fromObject=function(e,n){if(void 0===n&&(n={}),null==e||"object"!=typeof e)throw new v("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new t({values:wt(e,t.normalizeUnit),loc:pe.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})},t.fromDurationLike=function(e){if(Ye(e))return t.fromMillis(e);if(t.isDuration(e))return e;if("object"==typeof e)return t.fromObject(e);throw new v("Unknown duration argument "+e+" of type "+typeof e)},t.fromISO=function(e,n){var r=function(e){return Ht(e,[nn,rn])}(e),i=r[0];return i?t.fromObject(i,n):t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.fromISOTime=function(e,n){var r=function(e){return Ht(e,[tn,_n])}(e),i=r[0];return i?t.fromObject(i,n):t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.invalid=function(e,n){if(void 0===n&&(n=null),!e)throw new v("need to specify a reason the Duration is invalid");var r=e instanceof Pe?e:new Pe(e,n);if(Le.throwOnInvalid)throw new y(r);return new t({invalid:r})},t.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new k(e);return t},t.isDuration=function(e){return e&&e.isLuxonDuration||!1};var n=t.prototype;return n.toFormat=function(e,t){void 0===t&&(t={});var n=s({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?zt.create(this.loc,n).formatDurationFromString(this,e):Sn},n.toHuman=function(e){var t=this;if(void 0===e&&(e={}),!this.isValid)return Sn;var n=Rn.map(function(n){var r=t.values[n];return Ge(r)?null:t.loc.numberFormatter(s({style:"unit",unitDisplay:"long"},e,{unit:n.slice(0,-1)})).format(r)}).filter(function(e){return e});return this.loc.listFormatter(s({type:"conjunction",style:e.listStyle||"narrow"},e)).format(n)},n.toObject=function(){return this.isValid?s({},this.values):{}},n.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=ut(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},n.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();return t<0||t>=864e5?null:(e=s({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e,{includeOffset:!1}),Ar.fromMillis(t,{zone:"UTC"}).toISOTime(e))},n.toJSON=function(){return this.toISO()},n.toString=function(){return this.toISO()},n[e]=function(){return this.isValid?"Duration { values: "+JSON.stringify(this.values)+" }":"Duration { Invalid, reason: "+this.invalidReason+" }"},n.toMillis=function(){return this.isValid?Nn(this.matrix,this.values):NaN},n.valueOf=function(){return this.toMillis()},n.plus=function(e){if(!this.isValid)return this;for(var n=t.fromDurationLike(e),r={},i=0,s=Rn;i<s.length;i++){var o=s[i];(tt(n.values,o)||tt(this.values,o))&&(r[o]=n.get(o)+this.get(o))}return Pn(this,{values:r},!0)},n.minus=function(e){if(!this.isValid)return this;var n=t.fromDurationLike(e);return this.plus(n.negate())},n.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n<r.length;n++){var i=r[n];t[i]=yt(e(this.values[i],i))}return Pn(this,{values:t},!0)},n.get=function(e){return this[t.normalizeUnit(e)]},n.set=function(e){return this.isValid?Pn(this,{values:s({},this.values,wt(e,t.normalizeUnit))}):this},n.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.conversionAccuracy,s=t.matrix;return Pn(this,{loc:this.loc.clone({locale:n,numberingSystem:r}),matrix:s,conversionAccuracy:i})},n.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},n.normalize=function(){if(!this.isValid)return this;var e=this.toObject();return Mn(this.matrix,e),Pn(this,{values:e},!0)},n.rescale=function(){return this.isValid?Pn(this,{values:function(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],s=i[0],o=i[1];0!==o&&(t[s]=o)}return t}(this.normalize().shiftToAll().toObject())},!0):this},n.shiftTo=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(!this.isValid)return this;if(0===n.length)return this;n=n.map(function(e){return t.normalizeUnit(e)});for(var i,s={},o={},a=this.toObject(),u=0,l=Rn;u<l.length;u++){var c=l[u];if(n.indexOf(c)>=0){i=c;var d=0;for(var h in o)d+=this.matrix[h][c]*o[h],o[h]=0;Ye(a[c])&&(d+=a[c]);var f=Math.trunc(d);s[c]=f,o[c]=(1e3*d-1e3*f)/1e3}else Ye(a[c])&&(o[c]=a[c])}for(var m in o)0!==o[m]&&(s[i]+=m===i?o[m]:o[m]/this.matrix[i][m]);return Mn(this.matrix,s),Pn(this,{values:s},!0)},n.shiftToAll=function(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this},n.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);t<n.length;t++){var r=n[t];e[r]=0===this.values[r]?0:-this.values[r]}return Pn(this,{values:e},!0)},n.equals=function(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;function t(e,t){return e===undefined||0===e?t===undefined||0===t:e===t}for(var n=0,r=Rn;n<r.length;n++){var i=r[n];if(!t(this.values[i],e.values[i]))return!1}return!0},i(t,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),t}(Symbol.for("nodejs.util.inspect.custom")),Dn="Invalid Interval";function Cn(e,t){return e&&e.isValid?t&&t.isValid?t<e?$n.invalid("end before start","The end of an interval must be after its start, but you had start="+e.toISO()+" and end="+t.toISO()):null:$n.invalid("missing or invalid end"):$n.invalid("missing or invalid start")}var $n=function(e){function t(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}t.invalid=function(e,n){if(void 0===n&&(n=null),!e)throw new v("need to specify a reason the Interval is invalid");var r=e instanceof Pe?e:new Pe(e,n);if(Le.throwOnInvalid)throw new g(r);return new t({invalid:r})},t.fromDateTimes=function(e,n){var r=Br(e),i=Br(n),s=Cn(r,i);return null==s?new t({start:r,end:i}):s},t.after=function(e,n){var r=zn.fromDurationLike(n),i=Br(e);return t.fromDateTimes(i,i.plus(r))},t.before=function(e,n){var r=zn.fromDurationLike(n),i=Br(e);return t.fromDateTimes(i.minus(r),i)},t.fromISO=function(e,n){var r=(e||"").split("/",2),i=r[0],s=r[1];if(i&&s){var o,a,u,l;try{a=(o=Ar.fromISO(i,n)).isValid}catch(s){a=!1}try{l=(u=Ar.fromISO(s,n)).isValid}catch(s){l=!1}if(a&&l)return t.fromDateTimes(o,u);if(a){var c=zn.fromISO(s,n);if(c.isValid)return t.after(o,c)}else if(l){var d=zn.fromISO(i,n);if(d.isValid)return t.before(u,d)}}return t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.isInterval=function(e){return e&&e.isLuxonInterval||!1};var n=t.prototype;return n.length=function(e){return void 0===e&&(e="milliseconds"),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},n.count=function(e,t){if(void 0===e&&(e="milliseconds"),!this.isValid)return NaN;var n,r=this.start.startOf(e,t);return n=(n=null!=t&&t.useLocaleWeeks?this.end.reconfigure({locale:r.locale}):this.end).startOf(e,t),Math.floor(n.diff(r,e).get(e))+(n.valueOf()!==this.end.valueOf())},n.hasSame=function(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))},n.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},n.isAfter=function(e){return!!this.isValid&&this.s>e},n.isBefore=function(e){return!!this.isValid&&this.e<=e},n.contains=function(e){return!!this.isValid&&(this.s<=e&&this.e>e)},n.set=function(e){var n=void 0===e?{}:e,r=n.start,i=n.end;return this.isValid?t.fromDateTimes(r||this.s,i||this.e):this},n.splitAt=function(){var e=this;if(!this.isValid)return[];for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var s=r.map(Br).filter(function(t){return e.contains(t)}).sort(function(e,t){return e.toMillis()-t.toMillis()}),o=[],a=this.s,u=0;a<this.e;){var l=s[u]||this.e,c=+l>+this.e?this.e:l;o.push(t.fromDateTimes(a,c)),a=c,u+=1}return o},n.splitBy=function(e){var n=zn.fromDurationLike(e);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var r,i=this.s,s=1,o=[];i<this.e;){var a=this.start.plus(n.mapUnits(function(e){return e*s}));r=+a>+this.e?this.e:a,o.push(t.fromDateTimes(i,r)),i=r,s+=1}return o},n.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},n.overlaps=function(e){return this.e>e.s&&this.s<e.e},n.abutsStart=function(e){return!!this.isValid&&+this.e===+e.s},n.abutsEnd=function(e){return!!this.isValid&&+e.e===+this.s},n.engulfs=function(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)},n.equals=function(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))},n.intersection=function(e){if(!this.isValid)return this;var n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:t.fromDateTimes(n,r)},n.union=function(e){if(!this.isValid)return this;var n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return t.fromDateTimes(n,r)},t.merge=function(e){var t=e.sort(function(e,t){return e.s-t.s}).reduce(function(e,t){var n=e[0],r=e[1];return r?r.overlaps(t)||r.abutsStart(t)?[n,r.union(t)]:[n.concat([r]),t]:[n,t]},[[],null]),n=t[0],r=t[1];return r&&n.push(r),n},t.xor=function(e){for(var n,r,i=null,s=0,o=[],a=e.map(function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]}),u=f((n=Array.prototype).concat.apply(n,a).sort(function(e,t){return e.time-t.time}));!(r=u()).done;){var l=r.value;1===(s+="s"===l.type?1:-1)?i=l.time:(i&&+i!==+l.time&&o.push(t.fromDateTimes(i,l.time)),i=null)}return t.merge(o)},n.difference=function(){for(var e=this,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.xor([this].concat(r)).map(function(t){return e.intersection(t)}).filter(function(e){return e&&!e.isEmpty()})},n.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":Dn},n[e]=function(){return this.isValid?"Interval { start: "+this.s.toISO()+", end: "+this.e.toISO()+" }":"Interval { Invalid, reason: "+this.invalidReason+" }"},n.toLocaleString=function(e,t){return void 0===e&&(e=S),void 0===t&&(t={}),this.isValid?zt.create(this.s.loc.clone(t),e).formatInterval(this):Dn},n.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):Dn},n.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():Dn},n.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):Dn},n.toFormat=function(e,t){var n=(void 0===t?{}:t).separator,r=void 0===n?" – ":n;return this.isValid?""+this.s.toFormat(e)+r+this.e.toFormat(e):Dn},n.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):zn.invalid(this.invalidReason)},n.mapEndpoints=function(e){return t.fromDateTimes(e(this.s),e(this.e))},i(t,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),t}(Symbol.for("nodejs.util.inspect.custom")),Hn=function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=Le.defaultZone);var t=Ar.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return ee.isValidZone(e)},e.normalizeZone=function(e){return we(e,Le.defaultZone)},e.getStartOfWeek=function(e){var t=void 0===e?{}:e,n=t.locale,r=void 0===n?null:n,i=t.locObj;return((void 0===i?null:i)||pe.create(r)).getStartOfWeek()},e.getMinimumDaysInFirstWeek=function(e){var t=void 0===e?{}:e,n=t.locale,r=void 0===n?null:n,i=t.locObj;return((void 0===i?null:i)||pe.create(r)).getMinDaysInFirstWeek()},e.getWeekendWeekdays=function(e){var t=void 0===e?{}:e,n=t.locale,r=void 0===n?null:n,i=t.locObj;return((void 0===i?null:i)||pe.create(r)).getWeekendDays().slice()},e.months=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,s=n.numberingSystem,o=void 0===s?null:s,a=n.locObj,u=void 0===a?null:a,l=n.outputCalendar,c=void 0===l?"gregory":l;return(u||pe.create(i,o,c)).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,s=n.numberingSystem,o=void 0===s?null:s,a=n.locObj,u=void 0===a?null:a,l=n.outputCalendar,c=void 0===l?"gregory":l;return(u||pe.create(i,o,c)).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,s=n.numberingSystem,o=void 0===s?null:s,a=n.locObj;return((void 0===a?null:a)||pe.create(i,o,null)).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e="long");var n=void 0===t?{}:t,r=n.locale,i=void 0===r?null:r,s=n.numberingSystem,o=void 0===s?null:s,a=n.locObj;return((void 0===a?null:a)||pe.create(i,o,null)).weekdays(e,!0)},e.meridiems=function(e){var t=(void 0===e?{}:e).locale,n=void 0===t?null:t;return pe.create(n).meridiems()},e.eras=function(e,t){void 0===e&&(e="short");var n=(void 0===t?{}:t).locale,r=void 0===n?null:n;return pe.create(r,null,"gregory").eras(e)},e.features=function(){return{relative:Xe(),localeWeek:Qe()}},e}();function Un(e,t){var n=function(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},r=n(t)-n(e);return Math.floor(zn.fromMillis(r).as("days"))}function Fn(e,t,n,r){var i=function(e,t,n){for(var r,i,s={},o=e,a=0,u=[["years",function(e,t){return t.year-e.year}],["quarters",function(e,t){return t.quarter-e.quarter+4*(t.year-e.year)}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){var n=Un(e,t);return(n-n%7)/7}],["days",Un]];a<u.length;a++){var l=u[a],c=l[0],d=l[1];n.indexOf(c)>=0&&(r=c,s[c]=d(e,t),(i=o.plus(s))>t?(s[c]--,(e=o.plus(s))>t&&(i=e,s[c]--,e=o.plus(s))):e=i)}return[e,s,i,r]}(e,t,n),s=i[0],o=i[1],a=i[2],u=i[3],l=t-s,c=n.filter(function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0});if(0===c.length){var d;if(a<t)a=s.plus(((d={})[u]=1,d));a!==s&&(o[u]=(o[u]||0)+l/(a-s))}var h,f=zn.fromObject(o,r);return c.length>0?(h=zn.fromMillis(l,r)).shiftTo.apply(h,c).plus(f):f}function Vn(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){var n=e[0];return t(function(e){var t=parseInt(e,10);if(isNaN(t)){t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(-1!==e[n].search(ke.hanidec))t+=_e.indexOf(e[n]);else for(var i in ve){var s=ve[i],o=s[0],a=s[1];r>=o&&r<=a&&(t+=r-o)}}return parseInt(t,10)}return t}(n))}}}var qn="[ "+String.fromCharCode(160)+"]",Zn=new RegExp(qn,"g");function Wn(e){return e.replace(/\./g,"\\.?").replace(Zn,qn)}function Kn(e){return e.replace(/\./g,"").replace(Zn," ").toLowerCase()}function Gn(e,t){return null===e?null:{regex:RegExp(e.map(Wn).join("|")),deser:function(n){var r=n[0];return e.findIndex(function(e){return Kn(r)===Kn(e)})+t}}}function Yn(e,t){return{regex:e,deser:function(e){return gt(e[1],e[2])},groups:t}}function Jn(e){return{regex:e,deser:function(e){return e[0]}}}var Xn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};var Qn=null;function er(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map(function(e){return function(e,t){if(e.literal)return e;var n=rr(zt.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(undefined)?e:n}(e,t)}))}var tr=function(){function e(e,t){if(this.locale=e,this.format=t,this.tokens=er(zt.parseFormat(t),e),this.units=this.tokens.map(function(t){return n=t,i=Ee(r=e),s=Ee(r,"{2}"),o=Ee(r,"{3}"),a=Ee(r,"{4}"),u=Ee(r,"{6}"),l=Ee(r,"{1,2}"),c=Ee(r,"{1,3}"),d=Ee(r,"{1,6}"),h=Ee(r,"{1,9}"),f=Ee(r,"{2,4}"),m=Ee(r,"{4,6}"),p=function(e){return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var t},b=function(e){if(n.literal)return p(e);switch(e.val){case"G":return Gn(r.eras("short"),0);case"GG":return Gn(r.eras("long"),0);case"y":return Vn(d);case"yy":case"kk":return Vn(f,pt);case"yyyy":case"kkkk":return Vn(a);case"yyyyy":return Vn(m);case"yyyyyy":return Vn(u);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Vn(l);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Vn(s);case"MMM":return Gn(r.months("short",!0),1);case"MMMM":return Gn(r.months("long",!0),1);case"LLL":return Gn(r.months("short",!1),1);case"LLLL":return Gn(r.months("long",!1),1);case"o":case"S":return Vn(c);case"ooo":case"SSS":return Vn(o);case"u":return Jn(h);case"uu":return Jn(l);case"uuu":case"E":case"c":return Vn(i);case"a":return Gn(r.meridiems(),0);case"EEE":return Gn(r.weekdays("short",!1),1);case"EEEE":return Gn(r.weekdays("long",!1),1);case"ccc":return Gn(r.weekdays("short",!0),1);case"cccc":return Gn(r.weekdays("long",!0),1);case"Z":case"ZZ":return Yn(new RegExp("([+-]"+l.source+")(?::("+s.source+"))?"),2);case"ZZZ":return Yn(new RegExp("([+-]"+l.source+")("+s.source+")?"),2);case"z":return Jn(/[a-z_+-/]{1,256}?/i);case" ":return Jn(/[^\S\n\r]/);default:return p(e)}}(n)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"},b.token=n,b;var n,r,i,s,o,a,u,l,c,d,h,f,m,p,b}),this.disqualifyingUnit=this.units.find(function(e){return e.invalidReason}),!this.disqualifyingUnit){var n=["^"+(s=this.units).map(function(e){return e.regex}).reduce(function(e,t){return e+"("+t.source+")"},"")+"$",s],r=n[0],i=n[1];this.regex=RegExp(r,"i"),this.handlers=i}var s}return e.prototype.explainFromTokens=function(e){if(this.isValid){var t=function(e,t,n){var r=e.match(t);if(r){var i={},s=1;for(var o in n)if(tt(n,o)){var a=n[o],u=a.groups?a.groups+1:1;!a.literal&&a.token&&(i[a.token.val[0]]=a.deser(r.slice(s,s+u))),s+=u}return[r,i]}return[r,{}]}(e,this.regex,this.handlers),n=t[0],r=t[1],i=r?function(e){var t,n=null;return Ge(e.z)||(n=ee.create(e.z)),Ge(e.Z)||(n||(n=new ge(e.Z)),t=e.Z),Ge(e.q)||(e.M=3*(e.q-1)+1),Ge(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),Ge(e.u)||(e.S=at(e.u)),[Object.keys(e).reduce(function(t,n){var r=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(n);return r&&(t[r]=e[n]),t},{}),n,t]}(r):[null,null,undefined],s=i[0],o=i[1],a=i[2];if(tt(r,"a")&&tt(r,"H"))throw new w("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:s,zone:o,specificOffset:a}}return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}},i(e,[{key:"isValid",get:function(){return!this.disqualifyingUnit}},{key:"invalidReason",get:function(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}]),e}();function nr(e,t,n){return new tr(e,n).explainFromTokens(t)}function rr(e,t){if(!e)return null;var n=zt.create(t,e).dtFormatter((Qn||(Qn=Ar.fromMillis(1555555555555)),Qn)),r=n.formatToParts(),i=n.resolvedOptions();return r.map(function(t){return function(e,t,n){var r=e.type,i=e.value;if("literal"===r){var s=/^\s+$/.test(i);return{literal:!s,val:s?" ":i}}var o=t[r],a=r;"hour"===r&&(a=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");var u=Xn[a];return"object"==typeof u&&(u=u[o]),u?{literal:!1,val:u}:undefined}(t,e,i)})}var ir="Invalid DateTime",sr=864e13;function or(e){return new Pe("unsupported zone",'the zone "'+e.name+'" is not supported')}function ar(e){return null===e.weekData&&(e.weekData=Ue(e.c)),e.weekData}function ur(e){return null===e.localWeekData&&(e.localWeekData=Ue(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function lr(e,t){var n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ar(s({},n,t,{old:n}))}function cr(e,t,n){var r=e-60*t*1e3,i=n.offset(r);if(t===i)return[r,t];r-=60*(i-t)*1e3;var s=n.offset(r);return i===s?[r,i]:[e-60*Math.min(i,s)*1e3,Math.max(i,s)]}function dr(e,t){var n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function hr(e,t,n){return cr(ht(e),t,n)}function fr(e,t){var n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o=s({},e.c,{year:r,month:i,day:Math.min(e.c.day,dt(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),a=zn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),u=cr(ht(o),n,e.zone),l=u[0],c=u[1];return 0!==a&&(l+=a,c=e.zone.offset(l)),{ts:l,o:c}}function mr(e,t,n,r,i,o){var a=n.setZone,u=n.zone;if(e&&0!==Object.keys(e).length||t){var l=t||u,c=Ar.fromObject(e,s({},n,{zone:l,specificOffset:o}));return a?c:c.setZone(u)}return Ar.invalid(new Pe("unparsable",'the input "'+i+"\" can't be parsed as "+r))}function pr(e,t,n){return void 0===n&&(n=!0),e.isValid?zt.create(pe.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function br(e,t){var n=e.c.year>9999||e.c.year<0,r="";return n&&e.c.year>=0&&(r+="+"),r+=it(e.c.year,n?6:4),t?(r+="-",r+=it(e.c.month),r+="-",r+=it(e.c.day)):(r+=it(e.c.month),r+=it(e.c.day)),r}function gr(e,t,n,r,i,s){var o=it(e.c.hour);return t?(o+=":",o+=it(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(o+=":")):o+=it(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(o+=it(e.c.second),0===e.c.millisecond&&r||(o+=".",o+=it(e.c.millisecond,3))),i&&(e.isOffsetFixed&&0===e.offset&&!s?o+="Z":e.o<0?(o+="-",o+=it(Math.trunc(-e.o/60)),o+=":",o+=it(Math.trunc(-e.o%60))):(o+="+",o+=it(Math.trunc(e.o/60)),o+=":",o+=it(Math.trunc(e.o%60)))),s&&(o+="["+e.zone.ianaName+"]"),o}var yr,wr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},kr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},vr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},_r=["year","month","day","hour","minute","second","millisecond"],xr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Er=["year","ordinal","hour","minute","second","millisecond"];function jr(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new k(e);return t}(e)}}function Sr(e,t){var n=we(t.zone,Le.defaultZone);if(!n.isValid)return Ar.invalid(or(n));var r,i,s=pe.fromObject(t);if(Ge(e.year))r=Le.now();else{for(var o=0,a=_r;o<a.length;o++){var u=a[o];Ge(e[u])&&(e[u]=wr[u])}var l=We(e)||Ke(e);if(l)return Ar.invalid(l);var c=function(e){return Ir[e]||(yr===undefined&&(yr=Le.now()),Ir[e]=e.offset(yr)),Ir[e]}(n),d=hr(e,c,n);r=d[0],i=d[1]}return new Ar({ts:r,zone:n,loc:s,o:i})}function Tr(e,t,n){var r=!!Ge(n.round)||n.round,i=function(e,i){return e=ut(e,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,i)},s=function(r){return n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r)};if(n.unit)return i(s(n.unit),n.unit);for(var o,a=f(n.units);!(o=a()).done;){var u=o.value,l=s(u);if(Math.abs(l)>=1)return i(l,u)}return i(e>t?-0:0,n.units[n.units.length-1])}function Or(e){var t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}var Ir={},Ar=function(e){function t(e){var t=e.zone||Le.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Pe("invalid input"):null)||(t.isValid?null:or(t));this.ts=Ge(e.ts)?Le.now():e.ts;var r=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var s=[e.old.c,e.old.o];r=s[0],i=s[1]}else{var o=Ye(e.o)&&!e.old?e.o:t.offset(this.ts);r=dr(this.ts,o),r=(n=Number.isNaN(r.year)?new Pe("invalid input"):null)?null:r,i=n?null:o}this._zone=t,this.loc=e.loc||pe.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}t.now=function(){return new t({})},t.local=function(){var e=Or(arguments),t=e[0],n=e[1];return Sr({year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]},t)},t.utc=function(){var e=Or(arguments),t=e[0],n=e[1],r=n[0],i=n[1],s=n[2],o=n[3],a=n[4],u=n[5],l=n[6];return t.zone=ge.utcInstance,Sr({year:r,month:i,day:s,hour:o,minute:a,second:u,millisecond:l},t)},t.fromJSDate=function(e,n){void 0===n&&(n={});var r,i=(r=e,"[object Date]"===Object.prototype.toString.call(r)?e.valueOf():NaN);if(Number.isNaN(i))return t.invalid("invalid input");var s=we(n.zone,Le.defaultZone);return s.isValid?new t({ts:i,zone:s,loc:pe.fromObject(n)}):t.invalid(or(s))},t.fromMillis=function(e,n){if(void 0===n&&(n={}),Ye(e))return e<-sr||e>sr?t.invalid("Timestamp out of range"):new t({ts:e,zone:we(n.zone,Le.defaultZone),loc:pe.fromObject(n)});throw new v("fromMillis requires a numerical input, but received a "+typeof e+" with value "+e)},t.fromSeconds=function(e,n){if(void 0===n&&(n={}),Ye(e))return new t({ts:1e3*e,zone:we(n.zone,Le.defaultZone),loc:pe.fromObject(n)});throw new v("fromSeconds requires a numerical input")},t.fromObject=function(e,n){void 0===n&&(n={}),e=e||{};var r=we(n.zone,Le.defaultZone);if(!r.isValid)return t.invalid(or(r));var i=pe.fromObject(n),s=wt(e,jr),o=Ze(s,i),a=o.minDaysInFirstWeek,u=o.startOfWeek,l=Le.now(),c=Ge(n.specificOffset)?r.offset(l):n.specificOffset,d=!Ge(s.ordinal),h=!Ge(s.year),m=!Ge(s.month)||!Ge(s.day),p=h||m,b=s.weekYear||s.weekNumber;if((p||d)&&b)throw new w("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(m&&d)throw new w("Can't mix ordinal dates with month/day");var g,y,k=b||s.weekday&&!p,v=dr(l,c);k?(g=xr,y=kr,v=Ue(v,a,u)):d?(g=Er,y=vr,v=Ve(v)):(g=_r,y=wr);for(var _,x=!1,E=f(g);!(_=E()).done;){var j=_.value;Ge(s[j])?s[j]=x?y[j]:v[j]:x=!0}var S=k?function(e,t,n){void 0===t&&(t=4),void 0===n&&(n=1);var r=Je(e.weekYear),i=rt(e.weekNumber,1,mt(e.weekYear,t,n)),s=rt(e.weekday,1,7);return r?i?!s&&ze("weekday",e.weekday):ze("week",e.weekNumber):ze("weekYear",e.weekYear)}(s,a,u):d?function(e){var t=Je(e.year),n=rt(e.ordinal,1,ct(e.year));return t?!n&&ze("ordinal",e.ordinal):ze("year",e.year)}(s):We(s),T=S||Ke(s);if(T)return t.invalid(T);var O=hr(k?Fe(s,a,u):d?qe(s):s,c,r),I=new t({ts:O[0],zone:r,o:O[1],loc:i});return s.weekday&&p&&e.weekday!==I.weekday?t.invalid("mismatched weekday","you can't specify both a weekday of "+s.weekday+" and a date of "+I.toISO()):I.isValid?I:t.invalid(I.invalid)},t.fromISO=function(e,t){void 0===t&&(t={});var n=function(e){return Ht(e,[mn,yn],[pn,wn],[bn,kn],[gn,vn])}(e);return mr(n[0],n[1],t,"ISO 8601",e)},t.fromRFC2822=function(e,t){void 0===t&&(t={});var n=function(e){return Ht(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[an,un])}(e);return mr(n[0],n[1],t,"RFC 2822",e)},t.fromHTTP=function(e,t){void 0===t&&(t={});var n=function(e){return Ht(e,[ln,hn],[cn,hn],[dn,fn])}(e);return mr(n[0],n[1],t,"HTTP",t)},t.fromFormat=function(e,n,r){if(void 0===r&&(r={}),Ge(e)||Ge(n))throw new v("fromFormat requires an input string and a format");var i=r,s=i.locale,o=void 0===s?null:s,a=i.numberingSystem,u=void 0===a?null:a,l=function(e,t,n){var r=nr(e,t,n);return[r.result,r.zone,r.specificOffset,r.invalidReason]}(pe.fromOpts({locale:o,numberingSystem:u,defaultToEN:!0}),e,n),c=l[0],d=l[1],h=l[2],f=l[3];return f?t.invalid(f):mr(c,d,r,"format "+n,e,h)},t.fromString=function(e,n,r){return void 0===r&&(r={}),t.fromFormat(e,n,r)},t.fromSQL=function(e,t){void 0===t&&(t={});var n=function(e){return Ht(e,[xn,yn],[En,jn])}(e);return mr(n[0],n[1],t,"SQL",e)},t.invalid=function(e,n){if(void 0===n&&(n=null),!e)throw new v("need to specify a reason the DateTime is invalid");var r=e instanceof Pe?e:new Pe(e,n);if(Le.throwOnInvalid)throw new b(r);return new t({invalid:r})},t.isDateTime=function(e){return e&&e.isLuxonDateTime||!1},t.parseFormatForOpts=function(e,t){void 0===t&&(t={});var n=rr(e,pe.fromObject(t));return n?n.map(function(e){return e?e.val:null}).join(""):null},t.expandFormat=function(e,t){return void 0===t&&(t={}),er(zt.parseFormat(e),pe.fromObject(t)).map(function(e){return e.val}).join("")},t.resetCache=function(){yr=undefined,Ir={}};var n=t.prototype;return n.get=function(e){return this[e]},n.getPossibleOffsets=function(){if(!this.isValid||this.isOffsetFixed)return[this];var e=864e5,t=6e4,n=ht(this.c),r=this.zone.offset(n-e),i=this.zone.offset(n+e),s=this.zone.offset(n-r*t),o=this.zone.offset(n-i*t);if(s===o)return[this];var a=n-s*t,u=n-o*t,l=dr(a,s),c=dr(u,o);return l.hour===c.hour&&l.minute===c.minute&&l.second===c.second&&l.millisecond===c.millisecond?[lr(this,{ts:a}),lr(this,{ts:u})]:[this]},n.resolvedLocaleOptions=function(e){void 0===e&&(e={});var t=zt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},n.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(ge.instance(e),t)},n.toLocal=function(){return this.setZone(Le.defaultZone)},n.setZone=function(e,n){var r=void 0===n?{}:n,i=r.keepLocalTime,s=void 0!==i&&i,o=r.keepCalendarTime,a=void 0!==o&&o;if((e=we(e,Le.defaultZone)).equals(this.zone))return this;if(e.isValid){var u=this.ts;if(s||a){var l=e.offset(this.ts);u=hr(this.toObject(),l,e)[0]}return lr(this,{ts:u,zone:e})}return t.invalid(or(e))},n.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.outputCalendar;return lr(this,{loc:this.loc.clone({locale:n,numberingSystem:r,outputCalendar:i})})},n.setLocale=function(e){return this.reconfigure({locale:e})},n.set=function(e){if(!this.isValid)return this;var t,n=wt(e,jr),r=Ze(n,this.loc),i=r.minDaysInFirstWeek,o=r.startOfWeek,a=!Ge(n.weekYear)||!Ge(n.weekNumber)||!Ge(n.weekday),u=!Ge(n.ordinal),l=!Ge(n.year),c=!Ge(n.month)||!Ge(n.day),d=l||c,h=n.weekYear||n.weekNumber;if((d||u)&&h)throw new w("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&u)throw new w("Can't mix ordinal dates with month/day");a?t=Fe(s({},Ue(this.c,i,o),n),i,o):Ge(n.ordinal)?(t=s({},this.toObject(),n),Ge(n.day)&&(t.day=Math.min(dt(t.year,t.month),t.day))):t=qe(s({},Ve(this.c),n));var f=hr(t,this.o,this.zone);return lr(this,{ts:f[0],o:f[1]})},n.plus=function(e){return this.isValid?lr(this,fr(this,zn.fromDurationLike(e))):this},n.minus=function(e){return this.isValid?lr(this,fr(this,zn.fromDurationLike(e).negate())):this},n.startOf=function(e,t){var n=(void 0===t?{}:t).useLocaleWeeks,r=void 0!==n&&n;if(!this.isValid)return this;var i={},s=zn.normalizeUnit(e);switch(s){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0}if("weeks"===s)if(r){var o=this.loc.getStartOfWeek();this.weekday<o&&(i.weekNumber=this.weekNumber-1),i.weekday=o}else i.weekday=1;if("quarters"===s){var a=Math.ceil(this.month/3);i.month=3*(a-1)+1}return this.set(i)},n.endOf=function(e,t){var n;return this.isValid?this.plus((n={},n[e]=1,n)).startOf(e,t).minus(1):this},n.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?zt.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):ir},n.toLocaleString=function(e,t){return void 0===e&&(e=S),void 0===t&&(t={}),this.isValid?zt.create(this.loc.clone(t),e).formatDateTime(this):ir},n.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?zt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},n.toISO=function(e){var t=void 0===e?{}:e,n=t.format,r=void 0===n?"extended":n,i=t.suppressSeconds,s=void 0!==i&&i,o=t.suppressMilliseconds,a=void 0!==o&&o,u=t.includeOffset,l=void 0===u||u,c=t.extendedZone,d=void 0!==c&&c;if(!this.isValid)return null;var h="extended"===r,f=br(this,h);return f+="T",f+=gr(this,h,s,a,l,d)},n.toISODate=function(e){var t=(void 0===e?{}:e).format,n=void 0===t?"extended":t;return this.isValid?br(this,"extended"===n):null},n.toISOWeekDate=function(){return pr(this,"kkkk-'W'WW-c")},n.toISOTime=function(e){var t=void 0===e?{}:e,n=t.suppressMilliseconds,r=void 0!==n&&n,i=t.suppressSeconds,s=void 0!==i&&i,o=t.includeOffset,a=void 0===o||o,u=t.includePrefix,l=void 0!==u&&u,c=t.extendedZone,d=void 0!==c&&c,h=t.format,f=void 0===h?"extended":h;return this.isValid?(l?"T":"")+gr(this,"extended"===f,s,r,a,d):null},n.toRFC2822=function(){return pr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},n.toHTTP=function(){return pr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},n.toSQLDate=function(){return this.isValid?br(this,!0):null},n.toSQLTime=function(e){var t=void 0===e?{}:e,n=t.includeOffset,r=void 0===n||n,i=t.includeZone,s=void 0!==i&&i,o=t.includeOffsetSpace,a="HH:mm:ss.SSS";return(s||r)&&((void 0===o||o)&&(a+=" "),s?a+="z":r&&(a+="ZZ")),pr(this,a,!0)},n.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},n.toString=function(){return this.isValid?this.toISO():ir},n[e]=function(){return this.isValid?"DateTime { ts: "+this.toISO()+", zone: "+this.zone.name+", locale: "+this.locale+" }":"DateTime { Invalid, reason: "+this.invalidReason+" }"},n.valueOf=function(){return this.toMillis()},n.toMillis=function(){return this.isValid?this.ts:NaN},n.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},n.toUnixInteger=function(){return this.isValid?Math.floor(this.ts/1e3):NaN},n.toJSON=function(){return this.toISO()},n.toBSON=function(){return this.toJSDate()},n.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=s({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},n.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},n.diff=function(e,t,n){if(void 0===t&&(t="milliseconds"),void 0===n&&(n={}),!this.isValid||!e.isValid)return zn.invalid("created by diffing an invalid DateTime");var r,i=s({locale:this.locale,numberingSystem:this.numberingSystem},n),o=(r=t,Array.isArray(r)?r:[r]).map(zn.normalizeUnit),a=e.valueOf()>this.valueOf(),u=Fn(a?this:e,a?e:this,o,i);return a?u.negate():u},n.diffNow=function(e,n){return void 0===e&&(e="milliseconds"),void 0===n&&(n={}),this.diff(t.now(),e,n)},n.until=function(e){return this.isValid?$n.fromDateTimes(this,e):this},n.hasSame=function(e,t,n){if(!this.isValid)return!1;var r=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,n)<=r&&r<=i.endOf(t,n)},n.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},n.toRelative=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var n=e.base||t.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0,i=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(i=e.unit,o=undefined),Tr(n,this.plus(r),s({},e,{numeric:"always",units:i,unit:o}))},n.toRelativeCalendar=function(e){return void 0===e&&(e={}),this.isValid?Tr(e.base||t.fromObject({},{zone:this.zone}),this,s({},e,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},t.min=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(!n.every(t.isDateTime))throw new v("min requires all arguments be DateTimes");return et(n,function(e){return e.valueOf()},Math.min)},t.max=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(!n.every(t.isDateTime))throw new v("max requires all arguments be DateTimes");return et(n,function(e){return e.valueOf()},Math.max)},t.fromFormatExplain=function(e,t,n){void 0===n&&(n={});var r=n,i=r.locale,s=void 0===i?null:i,o=r.numberingSystem,a=void 0===o?null:o;return nr(pe.fromOpts({locale:s,numberingSystem:a,defaultToEN:!0}),e,t)},t.fromStringExplain=function(e,n,r){return void 0===r&&(r={}),t.fromFormatExplain(e,n,r)},t.buildFormatParser=function(e,t){void 0===t&&(t={});var n=t,r=n.locale,i=void 0===r?null:r,s=n.numberingSystem,o=void 0===s?null:s,a=pe.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return new tr(a,e)},t.fromFormatParser=function(e,n,r){if(void 0===r&&(r={}),Ge(e)||Ge(n))throw new v("fromFormatParser requires an input string and a format parser");var i=r,s=i.locale,o=void 0===s?null:s,a=i.numberingSystem,u=void 0===a?null:a,l=pe.fromOpts({locale:o,numberingSystem:u,defaultToEN:!0});if(!l.equals(n.locale))throw new v("fromFormatParser called with a locale of "+l+", but the format parser was created for "+n.locale);var c=n.explainFromTokens(e),d=c.result,h=c.zone,f=c.specificOffset,m=c.invalidReason;return m?t.invalid(m):mr(d,h,r,"format "+n.format,e,f)},i(t,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?ar(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?ar(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?ar(this).weekday:NaN}},{key:"isWeekend",get:function(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}},{key:"localWeekday",get:function(){return this.isValid?ur(this).weekday:NaN}},{key:"localWeekNumber",get:function(){return this.isValid?ur(this).weekNumber:NaN}},{key:"localWeekYear",get:function(){return this.isValid?ur(this).weekYear:NaN}},{key:"ordinal",get:function(){return this.isValid?Ve(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?Hn.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?Hn.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?Hn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?Hn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.isUniversal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return lt(this.year)}},{key:"daysInMonth",get:function(){return dt(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?ct(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?mt(this.weekYear):NaN}},{key:"weeksInLocalWeekYear",get:function(){return this.isValid?mt(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}}],[{key:"DATE_SHORT",get:function(){return S}},{key:"DATE_MED",get:function(){return T}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return O}},{key:"DATE_FULL",get:function(){return I}},{key:"DATE_HUGE",get:function(){return A}},{key:"TIME_SIMPLE",get:function(){return B}},{key:"TIME_WITH_SECONDS",get:function(){return R}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return L}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return P}},{key:"TIME_24_SIMPLE",get:function(){return N}},{key:"TIME_24_WITH_SECONDS",get:function(){return M}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return z}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return D}},{key:"DATETIME_SHORT",get:function(){return C}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return $}},{key:"DATETIME_MED",get:function(){return H}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return U}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return F}},{key:"DATETIME_FULL",get:function(){return V}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return q}},{key:"DATETIME_HUGE",get:function(){return Z}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return W}}]),t}(Symbol.for("nodejs.util.inspect.custom"));function Br(e){if(Ar.isDateTime(e))return e;if(e&&e.valueOf&&Ye(e.valueOf()))return Ar.fromJSDate(e);if(e&&"object"==typeof e)return Ar.fromObject(e);throw new v("Unknown datetime argument: "+e+", of type "+typeof e)}n.DateTime=Ar,n.Duration=zn,n.FixedOffsetZone=ge,n.IANAZone=ee,n.Info=Hn,n.Interval=$n,n.InvalidZone=ye,n.Settings=Le,n.SystemZone=Y,n.VERSION="3.5.0",n.Zone=K}}},{package:"luxon",file:"node_modules/luxon/build/cjs-browser/luxon.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/marked/lib/marked.umd.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){function r(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function i(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e,r){"object"==typeof n&&void 0!==t?r(n):"function"==typeof define&&define.amd?define(["exports"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).marked={})}(void 0,function(e){function t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function n(t){e.defaults=t}e.defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};const o=/[&<>"']/,a=new RegExp(o.source,"g"),u=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,l=new RegExp(u.source,"g"),c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},d=e=>c[e];function h(e,t){if(t){if(o.test(e))return e.replace(a,d)}else if(u.test(e))return e.replace(l,d);return e}const f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function m(e){return e.replace(f,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}const p=/(^|[^\[])\^/g;function b(e,t){let n="string"==typeof e?e:e.source;t=t||"";const r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(p,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function g(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch(e){return null}return e}const y={exec:()=>null};function w(e,t){const n=e.replace(/\|/g,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function k(e,t,n){const r=e.length;if(0===r)return"";let i=0;for(;i<r;){const s=e.charAt(r-i-1);if(s!==t||n){if(s===t||!n)break;i++}else i++}return e.slice(0,r-i)}function v(e,t,n,r){const i=t.href,s=t.title?h(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:i,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,e}return{type:"image",raw:n,href:i,title:s,text:h(o)}}class _{constructor(t){s(this,"options",void 0),s(this,"rules",void 0),s(this,"lexer",void 0),this.options=t||e.defaults}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:k(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map(e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e}).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=k(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=k(t[0].replace(/^ *>[ \t]?/gm,""),"\n"),n=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:r,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");const s=new RegExp(`^( {0,3}${n})((?:[\t ][^\\n]*)?(?:\\n|$))`);let o="",a="",u=!1;for(;e;){let n=!1;if(!(t=s.exec(e)))break;if(this.rules.block.hr.test(e))break;o=t[0],e=e.substring(o.length);let r=t[2].split("\n",1)[0].replace(/^\t+/,e=>" ".repeat(3*e.length)),l=e.split("\n",1)[0],c=0;this.options.pedantic?(c=2,a=r.trimStart()):(c=t[2].search(/[^ ]/),c=c>4?1:c,a=r.slice(c),c+=t[1].length);let d=!1;if(!r&&/^ *$/.test(l)&&(o+=l+"\n",e=e.substring(l.length+1),n=!0),!n){const t=new RegExp(`^ {0,${Math.min(3,c-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,c-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),i=new RegExp(`^ {0,${Math.min(3,c-1)}}(?:\`\`\`|~~~)`),s=new RegExp(`^ {0,${Math.min(3,c-1)}}#`);for(;e;){const u=e.split("\n",1)[0];if(l=u,this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),i.test(l))break;if(s.test(l))break;if(t.test(l))break;if(n.test(e))break;if(l.search(/[^ ]/)>=c||!l.trim())a+="\n"+l.slice(c);else{if(d)break;if(r.search(/[^ ]/)>=4)break;if(i.test(r))break;if(s.test(r))break;if(n.test(r))break;a+="\n"+l}d||l.trim()||(d=!0),o+=u+"\n",e=e.substring(u.length+1),r=l.slice(c)}}i.loose||(u?i.loose=!0:/\n *\n *$/.test(o)&&(u=!0));let h,f=null;this.options.gfm&&(f=/^\[[ xX]\] /.exec(a),f&&(h="[ ] "!==f[0],a=a.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:o,task:!!f,checked:h,loose:!1,text:a,tokens:[]}),i.raw+=o}i.items[i.items.length-1].raw=o.trimEnd(),i.items[i.items.length-1].text=a.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){const t=i.items[e].tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>/\n.*\n/.test(e.raw));i.loose=n}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){const t=this.rules.block.html.exec(e);if(t){return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!/[:|]/.test(t[2]))return;const n=w(t[1]),r=t[2].replace(/^\||\| *$/g,"").split("|"),i=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(const e of r)/^ *-+: *$/.test(e)?s.align.push("right"):/^ *:-+: *$/.test(e)?s.align.push("center"):/^ *:-+ *$/.test(e)?s.align.push("left"):s.align.push(null);for(const e of n)s.header.push({text:e,tokens:this.lexer.inline(e)});for(const e of i)s.rows.push(w(e,s.header.length).map(e=>({text:e,tokens:this.lexer.inline(e)})));return s}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:h(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=k(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),v(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:r?r.replace(this.rules.inline.anyPunctuation,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const e=t[(n[2]||n[1]).replace(/\s+/g," ").toLowerCase()];if(!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return v(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const n=[...r[0]].length-1;let i,s,o=n,a=0;const u="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=u.exec(t));){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(s=[...i].length,r[3]||r[4]){o+=s;continue}if((r[5]||r[6])&&n%3&&!((n+s)%3)){a+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o+a);const t=[...r[0]][0].length,u=e.slice(0,n+r.index+t+s);if(Math.min(n,s)%2){const e=u.slice(1,-1);return{type:"em",raw:u,text:e,tokens:this.lexer.inlineTokens(e)}}const l=u.slice(2,-2);return{type:"strong",raw:u,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=h(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=h(t[1]),n="mailto:"+e):(e=h(t[1]),n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=h(t[0]),n="mailto:"+e;else{let r;do{r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(r!==t[0]);e=h(t[0]),n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:h(t[0]),{type:"text",raw:t[0],text:e}}}}const x=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,E=/(?:[*+-]|\d{1,9}[.)])/,j=b(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,E).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),S=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,T=/(?!\s*\])(?:\\.|[^\[\]\\])+/,O=b(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",T).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),I=b(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,E).getRegex(),A="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",B=/< ! --(?:-?>|[\s\S]*?(?:-- >|$))/,R=b("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",B).replace("tag",A).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),L=b(S).replace("hr",x).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",A).getRegex(),P={blockquote:b(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",L).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:O,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:x,html:R,lheading:j,list:I,newline:/^(?: *(?:\n|$))+/,paragraph:L,table:y,text:/^[^\n]+/},N=b("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",x).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",A).getRegex(),M={...P,table:N,paragraph:b(S).replace("hr",x).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",N).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",A).getRegex()},z={...P,html:b("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",B).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:y,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:b(S).replace("hr",x).replace("heading"," *#{1,6} *[^\n]").replace("lheading",j).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},D=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,C=/^( {2,}|\\)\n(?!\s*$)/,$="\\p{P}\\p{S}",H=b(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,$).getRegex(),U=b(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,$).getRegex(),F=b("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,$).getRegex(),V=b("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,$).getRegex(),q=b(/\\([punct])/,"gu").replace(/punct/g,$).getRegex(),Z=b(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),W=b(B).replace("(?:-- >|$)","-- >").getRegex(),K=b("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",W).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),G=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Y=b(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",G).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),J=b(/^!?\[(label)\]\[(ref)\]/).replace("label",G).replace("ref",T).getRegex(),X=b(/^!?\[(ref)\](?:\[\])?/).replace("ref",T).getRegex(),Q={_backpedal:y,anyPunctuation:q,autolink:Z,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:C,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:y,emStrongLDelim:U,emStrongRDelimAst:F,emStrongRDelimUnd:V,escape:D,link:Y,nolink:X,punctuation:H,reflink:J,reflinkSearch:b("reflink|nolink(?!\\()","g").replace("reflink",J).replace("nolink",X).getRegex(),tag:K,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:y},ee={...Q,link:b(/^!?\[(label)\]\((.*?)\)/).replace("label",G).getRegex(),reflink:b(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",G).getRegex()},te={...Q,escape:b(D).replace("])","~|])").getRegex(),url:b(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},ne={...te,br:b(C).replace("{2,}","*").getRegex(),text:b(te.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},re={normal:P,gfm:M,pedantic:z},ie={normal:Q,gfm:te,breaks:ne,pedantic:ee};class se{constructor(t){s(this,"tokens",void 0),s(this,"options",void 0),s(this,"state",void 0),s(this,"tokenizer",void 0),s(this,"inlineQueue",void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=t||e.defaults,this.options.tokenizer=this.options.tokenizer||new _,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:re.normal,inline:ie.normal};this.options.pedantic?(n.block=re.pedantic,n.inline=ie.pedantic):this.options.gfm&&(n.block=re.gfm,this.options.breaks?n.inline=ie.breaks:n.inline=ie.gfm),this.tokenizer.rules=n}static get rules(){return{block:re,inline:ie}}static lex(e,t){return new se(t).lex(e)}static lexInline(e,t){return new se(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){const t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[]){let n,r,i,s;for(e=this.options.pedantic?e.replace(/\t/g,"    ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(e,t,n)=>t+"    ".repeat(n.length));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(i=e,this.options.extensions&&this.options.extensions.startBlock){let t=Infinity;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))}),t<Infinity&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i)))r=t[t.length-1],s&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),s=i.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r,i,s,o,a,u=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(u));)e.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(u));)u=u.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.anyPunctuation.exec(u));)u=u.slice(0,s.index)+"++"+u.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(o||(a=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,u,a))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e))){if(i=e,this.options.extensions&&this.options.extensions.startInline){let t=Infinity;const n=e.slice(1);let r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))}),t<Infinity&&t>=0&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),o=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class oe{constructor(t){s(this,"options",void 0),this.options=t||e.defaults}code(e,t,n){const r=(t||"").match(/^\S*/)?.[0];return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="language-'+h(r)+'">'+(n?e:h(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:h(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e,t){return e}heading(e,t,n){return`<h${t}>${e}</h${t}>\n`}hr(){return"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e,t,n){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){const r=g(e);if(null===r)return n;let i='<a href="'+(e=r)+'"';return t&&(i+=' title="'+t+'"'),i+=">"+n+"</a>",i}image(e,t,n){const r=g(e);if(null===r)return n;let i=`<img src="${e=r}" alt="${n}"`;return t&&(i+=` title="${t}"`),i+=">",i}text(e){return e}}class ae{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class ue{constructor(t){s(this,"options",void 0),s(this,"renderer",void 0),s(this,"textRenderer",void 0),this.options=t||e.defaults,this.options.renderer=this.options.renderer||new oe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ae}static parse(e,t){return new ue(t).parse(e)}static parseInline(e,t){return new ue(t).parseInline(e)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){const i=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){n+=t||"";continue}}switch(i.type){case"space":continue;case"hr":n+=this.renderer.hr();continue;case"heading":{const e=i;n+=this.renderer.heading(this.parseInline(e.tokens),e.depth,m(this.parseInline(e.tokens,this.textRenderer)));continue}case"code":{const e=i;n+=this.renderer.code(e.text,e.lang,!!e.escaped);continue}case"table":{const e=i;let t="",r="";for(let t=0;t<e.header.length;t++)r+=this.renderer.tablecell(this.parseInline(e.header[t].tokens),{header:!0,align:e.align[t]});t+=this.renderer.tablerow(r);let s="";for(let t=0;t<e.rows.length;t++){const n=e.rows[t];r="";for(let t=0;t<n.length;t++)r+=this.renderer.tablecell(this.parseInline(n[t].tokens),{header:!1,align:e.align[t]});s+=this.renderer.tablerow(r)}n+=this.renderer.table(t,s);continue}case"blockquote":{const e=i,t=this.parse(e.tokens);n+=this.renderer.blockquote(t);continue}case"list":{const e=i,t=e.ordered,r=e.start,s=e.loose;let o="";for(let t=0;t<e.items.length;t++){const n=e.items[t],r=n.checked,i=n.task;let a="";if(n.task){const e=this.renderer.checkbox(!!r);s?n.tokens.length>0&&"paragraph"===n.tokens[0].type?(n.tokens[0].text=e+" "+n.tokens[0].text,n.tokens[0].tokens&&n.tokens[0].tokens.length>0&&"text"===n.tokens[0].tokens[0].type&&(n.tokens[0].tokens[0].text=e+" "+n.tokens[0].tokens[0].text)):n.tokens.unshift({type:"text",text:e+" "}):a+=e+" "}a+=this.parse(n.tokens,s),o+=this.renderer.listitem(a,i,!!r)}n+=this.renderer.list(o,t,r);continue}case"html":{const e=i;n+=this.renderer.html(e.text,e.block);continue}case"paragraph":{const e=i;n+=this.renderer.paragraph(this.parseInline(e.tokens));continue}case"text":{let s=i,o=s.tokens?this.parseInline(s.tokens):s.text;for(;r+1<e.length&&"text"===e[r+1].type;)s=e[++r],o+="\n"+(s.tokens?this.parseInline(s.tokens):s.text);n+=t?this.renderer.paragraph(o):o;continue}default:{const e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}parseInline(e,t){t=t||this.renderer;let n="";for(let r=0;r<e.length;r++){const i=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"escape":{const e=i;n+=t.text(e.text);break}case"html":{const e=i;n+=t.html(e.text);break}case"link":{const e=i;n+=t.link(e.href,e.title,this.parseInline(e.tokens,t));break}case"image":{const e=i;n+=t.image(e.href,e.title,e.text);break}case"strong":{const e=i;n+=t.strong(this.parseInline(e.tokens,t));break}case"em":{const e=i;n+=t.em(this.parseInline(e.tokens,t));break}case"codespan":{const e=i;n+=t.codespan(e.text);break}case"br":n+=t.br();break;case"del":{const e=i;n+=t.del(this.parseInline(e.tokens,t));break}case"text":{const e=i;n+=t.text(e.text);break}default:{const e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}}class le{constructor(t){s(this,"options",void 0),this.options=t||e.defaults}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}s(le,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var ce=new WeakSet;class de{constructor(...e){r(this,ce),s(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),s(this,"options",this.setOptions),s(this,"parse",i(ce,this,he).call(this,se.lex,ue.parse)),s(this,"parseInline",i(ce,this,he).call(this,se.lexInline,ue.parseInline)),s(this,"Parser",ue),s(this,"Renderer",oe),s(this,"TextRenderer",ae),s(this,"Lexer",se),s(this,"Tokenizer",_),s(this,"Hooks",le),this.use(...e)}walkTokens(e,t){let n=[];for(const r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{const e=r;for(const r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(const r of e.rows)for(const e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{const e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{const i=e[r].flat(Infinity);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{const n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){const t=this.defaults.renderer||new oe(this.defaults);for(const n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if("options"===n)continue;const r=n,i=e.renderer[r],s=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=s.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new _(this.defaults);for(const n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;const r=n,i=e.tokenizer[r],s=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=s.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new le;for(const n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if("options"===n)continue;const r=n,i=e.hooks[r],s=t[r];le.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async)return Promise.resolve(i.call(t,e)).then(e=>s.call(t,e));const n=i.call(t,e);return s.call(t,n)}:t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=s.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return se.lex(e,t??this.defaults)}parser(e,t){return ue.parse(e,t??this.defaults)}}function he(e,t){return(n,r)=>{const s={...r},o={...this.defaults,...s};!0===this.defaults.async&&!1===s.async&&(o.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),o.async=!0);const a=i(ce,this,fe).call(this,!!o.silent,!!o.async);if(null==n)return a(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(n):n).then(t=>e(t,o)).then(e=>o.hooks?o.hooks.processAllTokens(e):e).then(e=>o.walkTokens?Promise.all(this.walkTokens(e,o.walkTokens)).then(()=>e):e).then(e=>t(e,o)).then(e=>o.hooks?o.hooks.postprocess(e):e).catch(a);try{o.hooks&&(n=o.hooks.preprocess(n));let r=e(n,o);o.hooks&&(r=o.hooks.processAllTokens(r)),o.walkTokens&&this.walkTokens(r,o.walkTokens);let i=t(r,o);return o.hooks&&(i=o.hooks.postprocess(i)),i}catch(e){return a(e)}}}function fe(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+h(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}const me=new de;function pe(e,t){return me.parse(e,t)}pe.options=pe.setOptions=function(e){return me.setOptions(e),pe.defaults=me.defaults,n(pe.defaults),pe},pe.getDefaults=t,pe.defaults=e.defaults,pe.use=function(...e){return me.use(...e),pe.defaults=me.defaults,n(pe.defaults),pe},pe.walkTokens=function(e,t){return me.walkTokens(e,t)},pe.parseInline=me.parseInline,pe.Parser=ue,pe.parser=ue.parse,pe.Renderer=oe,pe.TextRenderer=ae,pe.Lexer=se,pe.lexer=se.lex,pe.Tokenizer=_,pe.Hooks=le,pe.parse=pe;const be=pe.options,ge=pe.setOptions,ye=pe.use,we=pe.walkTokens,ke=pe.parseInline,ve=pe,_e=ue.parse,xe=se.lex;e.Hooks=le,e.Lexer=se,e.Marked=de,e.Parser=ue,e.Renderer=oe,e.TextRenderer=ae,e.Tokenizer=_,e.getDefaults=t,e.lexer=xe,e.marked=pe,e.options=be,e.parse=ve,e.parseInline=ke,e.parser=_e,e.setOptions=ge,e.use=ye,e.walkTokens=we})}}},{package:"@metamask/snaps-utils>marked",file:"node_modules/marked/lib/marked.umd.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/math-intrinsics/abs.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){t.exports=Math.abs}}},{package:"eslint-plugin-react>array-includes>math-intrinsics",file:"node_modules/math-intrinsics/abs.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/math-intrinsics/floor.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){t.exports=Math.floor}}},{package:"eslint-plugin-react>array-includes>math-intrinsics",file:"node_modules/math-intrinsics/floor.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/math-intrinsics/isNaN.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){t.exports=Number.isNaN||function(e){return e!=e}}}},{package:"eslint-plugin-react>array-includes>math-intrinsics",file:"node_modules/math-intrinsics/isNaN.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/math-intrinsics/max.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){t.exports=Math.max}}},{package:"eslint-plugin-react>array-includes>math-intrinsics",file:"node_modules/math-intrinsics/max.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/math-intrinsics/min.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){t.exports=Math.min}}},{package:"eslint-plugin-react>array-includes>math-intrinsics",file:"node_modules/math-intrinsics/min.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/math-intrinsics/pow.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){t.exports=Math.pow}}},{package:"eslint-plugin-react>array-includes>math-intrinsics",file:"node_modules/math-intrinsics/pow.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/math-intrinsics/round.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){t.exports=Math.round}}},{package:"eslint-plugin-react>array-includes>math-intrinsics",file:"node_modules/math-intrinsics/round.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/math-intrinsics/sign.js",{"./isNaN":"/home/runner/work/metamask-extension/metamask-extension/node_modules/math-intrinsics/isNaN.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("./isNaN");t.exports=function(e){return r(e)||0===e?e:e<0?-1:1}}}},{package:"eslint-plugin-react>array-includes>math-intrinsics",file:"node_modules/math-intrinsics/sign.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/index.js",{"hash-base":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/hash-base/index.js",inherits:"/home/runner/work/metamask-extension/metamask-extension/node_modules/inherits/inherits_browser.js","safe-buffer":"/home/runner/work/metamask-extension/metamask-extension/node_modules/safe-buffer/index.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("inherits"),i=e("hash-base"),s=e("safe-buffer").Buffer,o=new Array(16);function a(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<<t|e>>>32-t}function l(e,t,n,r,i,s,o){return u(e+(t&n|~t&r)+i+s|0,o)+t|0}function c(e,t,n,r,i,s,o){return u(e+(t&r|n&~r)+i+s|0,o)+t|0}function d(e,t,n,r,i,s,o){return u(e+(t^n^r)+i+s|0,o)+t|0}function h(e,t,n,r,i,s,o){return u(e+(n^(t|~r))+i+s|0,o)+t|0}r(a,i),a.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,s=this._d;n=l(n,r,i,s,e[0],3614090360,7),s=l(s,n,r,i,e[1],3905402710,12),i=l(i,s,n,r,e[2],606105819,17),r=l(r,i,s,n,e[3],3250441966,22),n=l(n,r,i,s,e[4],4118548399,7),s=l(s,n,r,i,e[5],1200080426,12),i=l(i,s,n,r,e[6],2821735955,17),r=l(r,i,s,n,e[7],4249261313,22),n=l(n,r,i,s,e[8],1770035416,7),s=l(s,n,r,i,e[9],2336552879,12),i=l(i,s,n,r,e[10],4294925233,17),r=l(r,i,s,n,e[11],2304563134,22),n=l(n,r,i,s,e[12],1804603682,7),s=l(s,n,r,i,e[13],4254626195,12),i=l(i,s,n,r,e[14],2792965006,17),n=c(n,r=l(r,i,s,n,e[15],1236535329,22),i,s,e[1],4129170786,5),s=c(s,n,r,i,e[6],3225465664,9),i=c(i,s,n,r,e[11],643717713,14),r=c(r,i,s,n,e[0],3921069994,20),n=c(n,r,i,s,e[5],3593408605,5),s=c(s,n,r,i,e[10],38016083,9),i=c(i,s,n,r,e[15],3634488961,14),r=c(r,i,s,n,e[4],3889429448,20),n=c(n,r,i,s,e[9],568446438,5),s=c(s,n,r,i,e[14],3275163606,9),i=c(i,s,n,r,e[3],4107603335,14),r=c(r,i,s,n,e[8],1163531501,20),n=c(n,r,i,s,e[13],2850285829,5),s=c(s,n,r,i,e[2],4243563512,9),i=c(i,s,n,r,e[7],1735328473,14),n=d(n,r=c(r,i,s,n,e[12],2368359562,20),i,s,e[5],4294588738,4),s=d(s,n,r,i,e[8],2272392833,11),i=d(i,s,n,r,e[11],1839030562,16),r=d(r,i,s,n,e[14],4259657740,23),n=d(n,r,i,s,e[1],2763975236,4),s=d(s,n,r,i,e[4],1272893353,11),i=d(i,s,n,r,e[7],4139469664,16),r=d(r,i,s,n,e[10],3200236656,23),n=d(n,r,i,s,e[13],681279174,4),s=d(s,n,r,i,e[0],3936430074,11),i=d(i,s,n,r,e[3],3572445317,16),r=d(r,i,s,n,e[6],76029189,23),n=d(n,r,i,s,e[9],3654602809,4),s=d(s,n,r,i,e[12],3873151461,11),i=d(i,s,n,r,e[15],530742520,16),n=h(n,r=d(r,i,s,n,e[2],3299628645,23),i,s,e[0],4096336452,6),s=h(s,n,r,i,e[7],1126891415,10),i=h(i,s,n,r,e[14],2878612391,15),r=h(r,i,s,n,e[5],4237533241,21),n=h(n,r,i,s,e[12],1700485571,6),s=h(s,n,r,i,e[3],2399980690,10),i=h(i,s,n,r,e[10],4293915773,15),r=h(r,i,s,n,e[1],2240044497,21),n=h(n,r,i,s,e[8],1873313359,6),s=h(s,n,r,i,e[15],4264355552,10),i=h(i,s,n,r,e[6],2734768916,15),r=h(r,i,s,n,e[13],1309151649,21),n=h(n,r,i,s,e[4],4149444226,6),s=h(s,n,r,i,e[11],3174756917,10),i=h(i,s,n,r,e[2],718787259,15),r=h(r,i,s,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+s|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=s.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=a}}},{package:"ethereumjs-util>create-hash>md5.js",file:"node_modules/md5.js/index.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/hash-base/index.js",{inherits:"/home/runner/work/metamask-extension/metamask-extension/node_modules/inherits/inherits_browser.js","readable-stream":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/readable-browser.js","safe-buffer":"/home/runner/work/metamask-extension/metamask-extension/node_modules/safe-buffer/index.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("safe-buffer").Buffer,i=e("readable-stream").Transform;function s(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(s,i),s.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},s.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},s.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var s=this._blockOffset;s<this._blockSize;)n[s++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)n[this._blockOffset++]=e[i++];for(var o=0,a=8*e.length;a>0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==undefined&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},s.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=s}}},{package:"ethereumjs-util>create-hash>md5.js>hash-base",file:"node_modules/md5.js/node_modules/hash-base/index.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/errors-browser.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r={};function i(e,t,n){n||(n=Error);var i=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);i.prototype.name=n.name,i.prototype.code=e,r[e]=i}function s(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,t,n){var r,i,o,a;if("string"==typeof t&&(i="not ",t.substr(!o||o<0?0:+o,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(n===undefined||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))a="The ".concat(e," ").concat(r," ").concat(s(t,"type"));else{var u=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(u," ").concat(r," ").concat(s(t,"type"))}return a+=". Received type ".concat(typeof n)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r}}},{package:"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream",file:"node_modules/md5.js/node_modules/readable-stream/errors-browser.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/_stream_duplex.js",{"./_stream_readable":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/_stream_readable.js","./_stream_writable":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/_stream_writable.js",_process:"/home/runner/work/metamask-extension/metamask-extension/node_modules/process/browser.js",inherits:"/home/runner/work/metamask-extension/metamask-extension/node_modules/inherits/inherits_browser.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){(function(n){(function(){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=l;var i=e("./_stream_readable"),s=e("./_stream_writable");e("inherits")(l,i);for(var o=r(s.prototype),a=0;a<o.length;a++){var u=o[a];l.prototype[u]||(l.prototype[u]=s.prototype[u])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),s.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||n.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==undefined&&this._writableState!==undefined&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){this._readableState!==undefined&&this._writableState!==undefined&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))}}},{package:"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream",file:"node_modules/md5.js/node_modules/readable-stream/lib/_stream_duplex.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/_stream_passthrough.js",{"./_stream_transform":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/_stream_transform.js",inherits:"/home/runner/work/metamask-extension/metamask-extension/node_modules/inherits/inherits_browser.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){t.exports=i;var r=e("./_stream_transform");function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}e("inherits")(i,r),i.prototype._transform=function(e,t,n){n(null,e)}}}},{package:"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream",file:"node_modules/md5.js/node_modules/readable-stream/lib/_stream_passthrough.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/_stream_readable.js",{"../errors":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/errors-browser.js","./_stream_duplex":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/_stream_duplex.js","./internal/streams/async_iterator":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/async_iterator.js","./internal/streams/buffer_list":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/buffer_list.js","./internal/streams/destroy":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/destroy.js","./internal/streams/from":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/from-browser.js","./internal/streams/state":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/state.js","./internal/streams/stream":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/stream-browser.js",_process:"/home/runner/work/metamask-extension/metamask-extension/node_modules/process/browser.js",buffer:"/home/runner/work/metamask-extension/metamask-extension/node_modules/browserify/node_modules/buffer/index.js",events:"/home/runner/work/metamask-extension/metamask-extension/node_modules/events/events.js",inherits:"/home/runner/work/metamask-extension/metamask-extension/node_modules/inherits/inherits_browser.js","string_decoder/":"/home/runner/work/metamask-extension/metamask-extension/node_modules/string_decoder/lib/string_decoder.js",util:"/home/runner/work/metamask-extension/metamask-extension/node_modules/browser-resolve/empty.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){(function(n){(function(){var r;t.exports=E,E.ReadableState=x;e("events").EventEmitter;var i=function(e,t){return e.listeners(t).length},s=e("./internal/streams/stream"),o=e("buffer").Buffer,a=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u,l=e("util");u=l&&l.debuglog?l.debuglog("stream"):function(){};var c,d,h,f=e("./internal/streams/buffer_list"),m=e("./internal/streams/destroy"),p=e("./internal/streams/state").getHighWaterMark,b=e("../errors").codes,g=b.ERR_INVALID_ARG_TYPE,y=b.ERR_STREAM_PUSH_AFTER_EOF,w=b.ERR_METHOD_NOT_IMPLEMENTED,k=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(E,s);var v=m.errorOrDestroy,_=["error","close","destroy","pause","resume"];function x(t,n,i){r=r||e("./_stream_duplex"),t=t||{},"boolean"!=typeof i&&(i=n instanceof r),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=p(this,t,"readableHighWaterMark",i),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(c||(c=e("string_decoder/").StringDecoder),this.decoder=new c(t.encoding),this.encoding=t.encoding)}function E(t){if(r=r||e("./_stream_duplex"),!(this instanceof E))return new E(t);var n=this instanceof r;this._readableState=new x(t,this,n),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function j(e,t,n,r,i){u("readableAddChunk",t);var s,l=e._readableState;if(null===t)l.reading=!1,function(e,t){if(u("onEofChunk"),t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?I(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,A(e)))}(e,l);else if(i||(s=function(e,t){var n;r=t,o.isBuffer(r)||r instanceof a||"string"==typeof t||t===undefined||e.objectMode||(n=new g("chunk",["string","Buffer","Uint8Array"],t));var r;return n}(l,t)),s)v(e,s);else if(l.objectMode||t&&t.length>0)if("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===o.prototype||(t=function(e){return o.from(e)}(t)),r)l.endEmitted?v(e,new k):S(e,l,t,!0);else if(l.ended)v(e,new y);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!n?(t=l.decoder.write(t),l.objectMode||0!==t.length?S(e,l,t,!1):B(e,l)):S(e,l,t,!1)}else r||(l.reading=!1,B(e,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function S(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&I(e)),B(e,t)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==undefined&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=m.destroy,E.prototype._undestroy=m.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=o.from(e,t),t=""),n=!0),j(this,e,t,!1,n)},E.prototype.unshift=function(e){return j(this,e,null,!0,!1)},E.prototype.isPaused=function(){return!1===this._readableState.flowing},E.prototype.setEncoding=function(t){c||(c=e("string_decoder/").StringDecoder);var n=new c(t);this._readableState.decoder=n,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=n.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var T=1073741824;function O(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=T?e=T:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function I(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(A,e))}function A(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,M(e)}function B(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(u("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function P(e){u("readable nexttick read 0"),e.read(0)}function N(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),M(e),t.flowing&&!t.reading&&e.read(0)}function M(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function z(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function D(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(C,t,e))}function C(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function $(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}E.prototype.read=function(e){u("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?D(this):I(this),null;if(0===(e=O(e,t))&&t.ended)return 0===t.length&&D(this),null;var r,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&u("length less than watermark",i=!0),t.ended||t.reading?u("reading or ended",i=!1):i&&(u("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=O(n,t))),null===(r=e>0?z(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&D(this)),null!==r&&this.emit("data",r),r},E.prototype._read=function(e){v(this,new w("_read()"))},E.prototype.pipe=function(e,t){var r=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=e;break;case 1:s.pipes=[s.pipes,e];break;default:s.pipes.push(e)}s.pipesCount+=1,u("pipe count=%d opts=%j",s.pipesCount,t);var o=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?l:b;function a(t,n){u("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,u("cleanup"),e.removeListener("close",m),e.removeListener("finish",p),e.removeListener("drain",c),e.removeListener("error",f),e.removeListener("unpipe",a),r.removeListener("end",l),r.removeListener("end",b),r.removeListener("data",h),d=!0,!s.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function l(){u("onend"),e.end()}s.endEmitted?n.nextTick(o):r.once("end",o),e.on("unpipe",a);var c=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,M(e))}}(r);e.on("drain",c);var d=!1;function h(t){u("ondata");var n=e.write(t);u("dest.write",n),!1===n&&((1===s.pipesCount&&s.pipes===e||s.pipesCount>1&&-1!==$(s.pipes,e))&&!d&&(u("false write response, pause",s.awaitDrain),s.awaitDrain++),r.pause())}function f(t){u("onerror",t),b(),e.removeListener("error",f),0===i(e,"error")&&v(e,t)}function m(){e.removeListener("finish",p),b()}function p(){u("onfinish"),e.removeListener("close",m),b()}function b(){u("unpipe"),r.unpipe(e)}return r.on("data",h),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",m),e.once("finish",p),e.emit("pipe",r),s.flowing||(u("pipe resume"),r.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)r[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=$(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},E.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,u("on readable",i.length,i.reading),i.length?I(this):i.reading||n.nextTick(P,this))),r},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(L,this),r},E.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&e!==undefined||n.nextTick(L,this),t},E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(N,e,t))}(this,e)),e.paused=!1,this},E.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(u("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){(u("wrapped data"),n.decoder&&(i=n.decoder.write(i)),!n.objectMode||null!==i&&i!==undefined)&&((n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause())))}),e)this[i]===undefined&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var s=0;s<_.length;s++)e.on(_[s],this.emit.bind(this,_[s]));return this._read=function(t){u("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(E.prototype[Symbol.asyncIterator]=function(){return d===undefined&&(d=e("./internal/streams/async_iterator")),d(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),E._fromList=z,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(E.from=function(t,n){return h===undefined&&(h=e("./internal/streams/from")),h(E,t,n)})}).call(this)}).call(this,e("_process"))}}},{package:"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream",file:"node_modules/md5.js/node_modules/readable-stream/lib/_stream_readable.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/_stream_transform.js",{"../errors":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/errors-browser.js","./_stream_duplex":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/_stream_duplex.js",inherits:"/home/runner/work/metamask-extension/metamask-extension/node_modules/inherits/inherits_browser.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){t.exports=c;var r=e("../errors").codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,s=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=r.ERR_TRANSFORM_WITH_LENGTH_0,u=e("./_stream_duplex");function l(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new s);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);u.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(t,n){h(e,t,n)})}function h(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new a;if(e._transformState.transforming)throw new o;return e.push(null)}e("inherits")(c,u),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,n){n(new i("_transform()"))},c.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}}}},{package:"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream",file:"node_modules/md5.js/node_modules/readable-stream/lib/_stream_transform.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/_stream_writable.js",{"../errors":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/errors-browser.js","./_stream_duplex":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/_stream_duplex.js","./internal/streams/destroy":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/destroy.js","./internal/streams/state":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/state.js","./internal/streams/stream":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/stream-browser.js",_process:"/home/runner/work/metamask-extension/metamask-extension/node_modules/process/browser.js",buffer:"/home/runner/work/metamask-extension/metamask-extension/node_modules/browserify/node_modules/buffer/index.js",inherits:"/home/runner/work/metamask-extension/metamask-extension/node_modules/inherits/inherits_browser.js","util-deprecate":"/home/runner/work/metamask-extension/metamask-extension/node_modules/util-deprecate/browser.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){(function(n){(function(){function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var i;t.exports=E,E.WritableState=x;var s={deprecate:e("util-deprecate")},o=e("./internal/streams/stream"),a=e("buffer").Buffer,u=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l,c=e("./internal/streams/destroy"),d=e("./internal/streams/state").getHighWaterMark,h=e("../errors").codes,f=h.ERR_INVALID_ARG_TYPE,m=h.ERR_METHOD_NOT_IMPLEMENTED,p=h.ERR_MULTIPLE_CALLBACK,b=h.ERR_STREAM_CANNOT_PIPE,g=h.ERR_STREAM_DESTROYED,y=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,k=h.ERR_UNKNOWN_ENCODING,v=c.errorOrDestroy;function _(){}function x(t,s,o){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof o&&(o=s instanceof i),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=d(this,t,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,s=r.writecb;if("function"!=typeof s)throw new p;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,s){--t.pendingcb,r?(n.nextTick(s,i),n.nextTick(A,e,t),e._writableState.errorEmitted=!0,v(e,i)):(s(i),e._writableState.errorEmitted=!0,v(e,i),A(e,t))}(e,r,i,t,s);else{var o=O(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||T(e,r),i?n.nextTick(S,e,r,o,s):S(e,r,o,s)}}(s,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function E(t){var n=this instanceof(i=i||e("./_stream_duplex"));if(!n&&!l.call(E,this))return new E(t);this._writableState=new x(t,this,n),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),o.call(this)}function j(e,t,n,r,i,s,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):n?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function S(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),A(e,t)}function T(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,s=new Array(i),o=t.corkedRequestsFree;o.entry=n;for(var a=0,u=!0;n;)s[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;s.allBuffers=u,j(e,t,!0,t.length,s,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,d=n.callback;if(j(e,t,!1,t.objectMode?1:l.length,l,c,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function O(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function I(e,t){e._final(function(n){t.pendingcb--,n&&v(e,n),t.prefinished=!0,e.emit("prefinish"),A(e,t)})}function A(e,t){var r=O(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(I,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}e("inherits")(E,o),x.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(x.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===E&&(e&&e._writableState instanceof x)}})):l=function(e){return e instanceof this},E.prototype.pipe=function(){v(this,new b)},E.prototype.write=function(e,t,r){var i,s=this._writableState,o=!1,l=!s.objectMode&&(i=e,a.isBuffer(i)||i instanceof u);return l&&!a.isBuffer(e)&&(e=function(e){return a.from(e)}(e)),"function"==typeof t&&(r=t,t=null),l?t="buffer":t||(t=s.defaultEncoding),"function"!=typeof r&&(r=_),s.ending?function(e,t){var r=new w;v(e,r),n.nextTick(t,r)}(this,r):(l||function(e,t,r,i){var s;return null===r?s=new y:"string"==typeof r||t.objectMode||(s=new f("chunk",["string","Buffer"],r)),!s||(v(e,s),n.nextTick(i,s),!1)}(this,s,e,r))&&(s.pendingcb++,o=function(e,t,n,r,i,s){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=a.from(t,n));return t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var u=t.objectMode?1:r.length;t.length+=u;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:s,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else j(e,t,!1,u,r,i,s);return l}(this,s,l,e,t,r)),o},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||T(this,e))},E.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new k(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,n){n(new m("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,r){var i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&e!==undefined&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,A(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==undefined&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=c.destroy,E.prototype._undestroy=c.undestroy,E.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"))}}},{package:"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream",file:"node_modules/md5.js/node_modules/readable-stream/lib/_stream_writable.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/async_iterator.js",{"./end-of-stream":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/end-of-stream.js",_process:"/home/runner/work/metamask-extension/metamask-extension/node_modules/process/browser.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){(function(n){(function(){var r;function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=e("./end-of-stream"),o=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function f(e,t){return{value:e,done:t}}function m(e){var t=e[o];if(null!==t){var n=e[h].read();null!==n&&(e[c]=null,e[o]=null,e[a]=null,t(f(n,!1)))}}function p(e){n.nextTick(m,e)}var b=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((i(r={get stream(){return this[h]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[l])return Promise.resolve(f(undefined,!0));if(this[h].destroyed)return new Promise(function(t,r){n.nextTick(function(){e[u]?r(e[u]):t(f(undefined,!0))})});var r,i=this[c];if(i)r=new Promise(function(e,t){return function(n,r){e.then(function(){t[l]?n(f(undefined,!0)):t[d](n,r)},r)}}(i,this));else{var s=this[h].read();if(null!==s)return Promise.resolve(f(s,!1));r=new Promise(this[d])}return this[c]=r,r}},Symbol.asyncIterator,function(){return this}),i(r,"return",function(){var e=this;return new Promise(function(t,n){e[h].destroy(null,function(e){e?n(e):t(f(undefined,!0))})})}),r),b);t.exports=function(e){var t,n=Object.create(g,(i(t={},h,{value:e,writable:!0}),i(t,o,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,d,{value:function(e,t){var r=n[h].read();r?(n[c]=null,n[o]=null,n[a]=null,e(f(r,!1))):(n[o]=e,n[a]=t)},writable:!0}),t));return n[c]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[a];return null!==t&&(n[c]=null,n[o]=null,n[a]=null,t(e)),void(n[u]=e)}var r=n[o];null!==r&&(n[c]=null,n[o]=null,n[a]=null,r(f(undefined,!0))),n[l]=!0}),e.on("readable",p.bind(null,n)),n}}).call(this)}).call(this,e("_process"))}}},{package:"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream",file:"node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/async_iterator.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/buffer_list.js",{buffer:"/home/runner/work/metamask-extension/metamask-extension/node_modules/browserify/node_modules/buffer/index.js",util:"/home/runner/work/metamask-extension/metamask-extension/node_modules/browser-resolve/empty.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var u=e("buffer").Buffer,l=e("util").inspect,c=l&&l.custom||"inspect";function d(e,t,n){u.prototype.copy.call(e,t,n)}t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n,r;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),n=this.head,r=0;n;)d(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,s=e>i.length?i.length:e;if(s===i.length?r+=i:r+=i.slice(0,e),0===(e-=s)){s===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(s));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,s=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,s),0===(e-=s)){s===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(s));break}++r}return this.length-=r,t}},{key:c,value:function(e,t){return l(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()}}},{package:"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream",file:"node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/buffer_list.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/destroy.js",{_process:"/home/runner/work/metamask-extension/metamask-extension/node_modules/process/browser.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){(function(e){(function(){function n(e,t){i(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}t.exports={destroy:function(t,s){var o=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?(s?s(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!s&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(r,o):(o._writableState.errorEmitted=!0,e.nextTick(n,o,t)):e.nextTick(n,o,t):s?(e.nextTick(r,o),s(t)):e.nextTick(r,o)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))}}},{package:"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream",file:"node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/destroy.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/end-of-stream.js",{"../../../errors":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/errors-browser.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function e(t,n,s){if("function"==typeof n)return e(t,null,n);n||(n={}),s=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(s||i);var o=n.readable||!1!==n.readable&&t.readable,a=n.writable||!1!==n.writable&&t.writable,u=function(){t.writable||c()},l=t._writableState&&t._writableState.finished,c=function(){a=!1,l=!0,o||s.call(t)},d=t._readableState&&t._readableState.endEmitted,h=function(){o=!1,d=!0,a||s.call(t)},f=function(e){s.call(t,e)},m=function(){var e;return o&&!d?(t._readableState&&t._readableState.ended||(e=new r),s.call(t,e)):a&&!l?(t._writableState&&t._writableState.ended||(e=new r),s.call(t,e)):void 0},p=function(){t.req.on("finish",c)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?a&&!t._writableState&&(t.on("end",u),t.on("close",u)):(t.on("complete",c),t.on("abort",m),t.req?p():t.on("request",p)),t.on("end",h),t.on("finish",c),!1!==n.error&&t.on("error",f),t.on("close",m),function(){t.removeListener("complete",c),t.removeListener("abort",m),t.removeListener("request",p),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("end",h),t.removeListener("error",f),t.removeListener("close",m)}}}}},{package:"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream",file:"node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/from-browser.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){t.exports=function(){throw new Error("Readable.from is not available in the browser")}}}},{package:"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream",file:"node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/from-browser.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/pipeline.js",{"../../../errors":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/errors-browser.js","./end-of-stream":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r;var i=e("../../../errors").codes,s=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function u(e){e()}function l(e,t){return e.pipe(t)}t.exports=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var c,d=function(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}(n);if(Array.isArray(n[0])&&(n=n[0]),n.length<2)throw new s("streams");var h=n.map(function(t,i){var s=i<n.length-1;return function(t,n,i,s){s=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(s);var a=!1;t.on("close",function(){a=!0}),r===undefined&&(r=e("./end-of-stream")),r(t,{readable:n,writable:i},function(e){if(e)return s(e);a=!0,s()});var u=!1;return function(e){if(!a&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void s(e||new o("pipe"))}}(t,s,i>0,function(e){c||(c=e),e&&h.forEach(u),s||(h.forEach(u),d(c))})});return n.reduce(l)}}}},{package:"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream",file:"node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/pipeline.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/state.js",{"../../../errors":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/errors-browser.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,n,i){var s=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new r(i?n:"highWaterMark",s);return Math.floor(s)}return e.objectMode?16:16384}}}}},{package:"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream",file:"node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/state.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/stream-browser.js",{events:"/home/runner/work/metamask-extension/metamask-extension/node_modules/events/events.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){t.exports=e("events").EventEmitter}}},{package:"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream",file:"node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/stream-browser.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/readable-browser.js",{"./lib/_stream_duplex.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/_stream_duplex.js","./lib/_stream_passthrough.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/_stream_passthrough.js","./lib/_stream_readable.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/_stream_readable.js","./lib/_stream_transform.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/_stream_transform.js","./lib/_stream_writable.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/_stream_writable.js","./lib/internal/streams/end-of-stream.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/end-of-stream.js","./lib/internal/streams/pipeline.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/md5.js/node_modules/readable-stream/lib/internal/streams/pipeline.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){(n=t.exports=e("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js"),n.finished=e("./lib/internal/streams/end-of-stream.js"),n.pipeline=e("./lib/internal/streams/pipeline.js")}}},{package:"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream",file:"node_modules/md5.js/node_modules/readable-stream/readable-browser.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/mersenne-twister/src/mersenne-twister.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=function(e){e==undefined&&(e=(new Date).getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,e.constructor==Array?this.init_by_array(e,e.length):this.init_seed(e)};r.prototype.init_seed=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti<this.N;this.mti++){e=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30;this.mt[this.mti]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+this.mti,this.mt[this.mti]>>>=0}},r.prototype.init_by_array=function(e,t){var n,r,i;for(this.init_seed(19650218),n=1,r=0,i=this.N>t?this.N:t;i;i--){var s=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(1664525*((4294901760&s)>>>16)<<16)+1664525*(65535&s))+e[r]+r,this.mt[n]>>>=0,r++,++n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1),r>=t&&(r=0)}for(i=this.N-1;i;i--){s=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(1566083941*((4294901760&s)>>>16)<<16)+1566083941*(65535&s))-n,this.mt[n]>>>=0,++n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1)}this.mt[0]=2147483648},r.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_seed(5489),n=0;n<this.N-this.M;n++)e=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+this.M]^e>>>1^t[1&e];for(;n<this.N-1;n++)e=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+(this.M-this.N)]^e>>>1^t[1&e];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[1&e],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,(e^=e>>>18)>>>0},r.prototype.random_int31=function(){return this.random_int()>>>1},r.prototype.random_incl=function(){return this.random_int()*(1/4294967295)},r.prototype.random=function(){return this.random_int()*(1/4294967296)},r.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)},r.prototype.random_long=function(){return(67108864*(this.random_int()>>>5)+(this.random_int()>>>6))*(1/9007199254740992)},t.exports=r}}},{package:"@metamask/jazzicon>mersenne-twister",file:"node_modules/mersenne-twister/src/mersenne-twister.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/advanced/abi-mapper.js",{"micro-packed":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-packed/index.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ARRAY_RE=void 0,n.mapArgs=function(e){if(1===e.length)return c(e[0]);let t=!0;for(const n of e)n.name||(t=!1);if(t){const t={};for(const n of e){const e=n.name;if(t[e])throw new Error(`mapArgs: same field name=${e}`);t[e]=c(n)}return r.struct(t)}return r.tuple(e.map(c))},n.mapComponent=c;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=s?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(e("micro-packed"));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}const s=n.ARRAY_RE=/(.+)(\[(\d+)?\])$/;function o(e){return r.padLeft(32,e,r.ZeroPad)}const a=o(r.U32BE),u=a;const l=(e,t=!1)=>{if(!Number.isSafeInteger(e)||e<=0||e%8!=0||e>256)throw new Error("ethInt: invalid numeric type");const n=BigInt(e),i=r.bigint(32,!1,t);return r.validate(r.wrap({size:i.size,encodeStream:(e,t)=>i.encodeStream(e,t),decodeStream:e=>i.decodeStream(e)}),e=>("number"==typeof e&&(e=BigInt(e)),r.utils.checkBounds(e,n,!!t),e))};function c(e){let t;if(t=s.exec(e.type)){const n=c({...e,type:t[1]});if(0===n.size)throw new Error("mapComponent: arrays of zero-size elements disabled (possible DoS attack)");if(t[3]!==undefined){const e=Number.parseInt(t[3]);if(!Number.isSafeInteger(e))throw new Error(`mapComponent: wrong array size=${t[3]}`);let i=r.array(e,n);return n.size===undefined&&(i=r.pointer(a,i)),i}return r.pointer(a,function(e){return r.wrap({size:undefined,encodeStream:(t,n)=>{u.encodeStream(t,n.length),t.bytes(r.array(n.length,e).encode(n))},decodeStream:t=>r.array(u.decodeStream(t),e).decodeStream(t.offsetReader(t.pos))})}(n))}if("tuple"===e.type){const t=e.components;let n=!0;const i=[];for(let e of t)e.name||(n=!1),i.push(c(e));let s;if(n){const e={};for(const n of t){if(e[n.name])throw new Error(`mapType: same field name=${n.name}`);e[n.name]=c(n)}s=r.struct(e)}else s=r.tuple(i);return function(e){let t=!1;if(Array.isArray(e))for(let n of e)n.size===undefined&&(t=!0);else for(let n in e)e[n].size===undefined&&(t=!0);return t}(i)&&(s=r.pointer(a,s)),s}if("string"===e.type)return r.pointer(a,r.padRight(32,r.string(u),r.ZeroPad));if("bytes"===e.type)return r.pointer(a,r.padRight(32,r.bytes(u),r.ZeroPad));if("address"===e.type)return o(r.hex(20,{isLE:!1,with0x:!0}));if("bool"===e.type)return o(r.bool);if(t=/^(u?)int([0-9]+)?$/.exec(e.type))return l(t[2]?+t[2]:256,"u"!==t[1]);if(t=/^bytes([0-9]{1,2})$/.exec(e.type)){const e=+t[1];if(!e||e>32)throw new Error("wrong bytes<N> type");return r.padRight(32,r.bytes(e),r.ZeroPad)}throw new Error(`mapComponent: unknown component=${e}`)}}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer",file:"node_modules/micro-eth-signer/advanced/abi-mapper.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/core/address.js",{"../utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/utils.js","@noble/curves/secp256k1.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/secp256k1.js","@noble/hashes/sha3.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/sha3.js","@noble/hashes/utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/utils.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.addr=void 0;var r=e("@noble/curves/secp256k1.js"),i=e("@noble/hashes/sha3.js"),s=e("@noble/hashes/utils.js"),o=e("../utils.js");
/*! micro-eth-signer - MIT License (c) 2021 Paul Miller (paulmillr.com) */
const a=n.addr={RE:/^(0[xX])?([0-9a-fA-F]{40})?$/,parse:(e,t=!1)=>{if((0,o.astr)(e),t&&"0x"===e)return{hasPrefix:!0,data:""};const n=e.match(a.RE)||[],r=null!=n[1],i=n[2];if(!i){throw new Error(`address must be ${r?42:40}-char hex, got ${e.length}-char ${e}`)}return{hasPrefix:r,data:i}},addChecksum:(e,t=!1)=>{const n=a.parse(e,t).data.toLowerCase(),r=(0,s.bytesToHex)((0,i.keccak_256)((0,s.utf8ToBytes)(n)));let u="";for(let e=0;e<n.length;e++){const t=Number.parseInt(r[e],16),i=n[e];u+=t<=7?i:i.toUpperCase()}return(0,o.add0x)(u)},fromPublicKey:e=>{if(!e)throw new Error("invalid public key: "+e);"string"==typeof e&&(e=(0,s.hexToBytes)((0,o.strip0x)(e)));const t=r.secp256k1.Point.fromBytes(e).toBytes(!1),n=(0,i.keccak_256)(t.subarray(1,65)),u=(0,s.bytesToHex)(n).slice(24);return a.addChecksum(u)},fromSecretKey:e=>("string"==typeof e&&(e=(0,s.hexToBytes)((0,o.strip0x)(e))),a.fromPublicKey(r.secp256k1.getPublicKey(e,!1))),fromPrivateKey:e=>a.fromSecretKey(e),random(){const e=o.ethHex.encode(r.secp256k1.utils.randomSecretKey());return{privateKey:e,address:a.fromSecretKey(e)}},isValid:(e,t=!1)=>{let n;try{n=a.parse(e,t)}catch(e){return!1}const{data:r,hasPrefix:i}=n;if(!i)return!1;const s=r.toLowerCase(),o=r.toUpperCase();return r===s||r===o||a.addChecksum(s,t)===e}}}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer",file:"node_modules/micro-eth-signer/core/address.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/core/rlp.js",{"../utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/utils.js","@noble/curves/utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/utils.js","micro-packed":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-packed/index.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.RLP=void 0;var r=e("@noble/curves/utils.js"),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}(e("micro-packed")),s=e("../utils.js");function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}const a=i.wrap({encodeStream(e,t){if(t<56)return e.bits(t,6);e.bits(7,3);const n=i.U32BE.encode(t);let r=0;for(;r<n.length&&0===n[r];r++);e.bits(4-r-1,3),e.bytes(n.slice(r))},decodeStream(e){const t=e.bits(3);if(7!==t)return t<<3|e.bits(3);const n=e.bytes(e.bits(3)+1);for(let e=0;e<n.length&&!n[e];e++)throw new Error("Wrong length encoding with leading zeros");const r=i.int(n.length).decode(n);if(r<=55)throw new Error("RLPLength: less than 55, but used multi-byte flag");return r}}),u=i.tag(i.map(i.bits(1),{byte:0,complex:1}),{byte:i.bits(7),complex:i.tag(i.map(i.bits(1),{string:0,list:1}),{string:i.bytes(a),list:i.prefix(a,i.array(null,i.lazy(()=>u)))})}),l=i.hex(null),c=i.string(null),d=Uint8Array.of();n.RLP=i.apply(u,{encode(e){if("byte"===e.TAG)return new Uint8Array([e.data]);if("complex"!==e.TAG)throw new Error("RLP.encode: unexpected type");const t=e.data;if("string"===t.TAG){if(1===t.data.length&&t.data[0]<128)throw new Error("RLP.encode: wrong string length encoding, should use single byte mode");return t.data}if("list"===t.TAG)return t.data.map(e=>this.encode(e));throw new Error("RLP.encode: unknown TAG")},decode(e){if(null==e)return this.decode(d);switch(typeof e){case"object":if((0,s.isBytes)(e)){if(1===e.length){const t=e[0];if(t<128)return{TAG:"byte",data:t}}return{TAG:"complex",data:{TAG:"string",data:e}}}if(Array.isArray(e))return{TAG:"complex",data:{TAG:"list",data:e.map(e=>this.decode(e))}};throw new Error("RLP.encode: unknown type");case"number":if(e<0)throw new Error("RLP.encode: invalid integer as argument, must be unsigned");return 0===e?this.decode(d):this.decode((0,r.numberToVarBytesBE)(e));case"bigint":if(e<BigInt(0))throw new Error("RLP.encode: invalid integer as argument, must be unsigned");return this.decode((0,r.numberToVarBytesBE)(e));case"string":return this.decode(e.startsWith("0x")?l.encode(e):c.encode(e));default:throw new Error("RLP.encode: unknown type")}}})}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer",file:"node_modules/micro-eth-signer/core/rlp.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/core/tx-internal.js",{"../utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/utils.js","./address.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/core/address.js","./rlp.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/core/rlp.js","@noble/curves/secp256k1.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/secp256k1.js","@noble/hashes/sha3.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/sha3.js","@noble/hashes/utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/utils.js","micro-packed":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-packed/index.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.authorizationRequest=n.authorization=n.__tests=n.TxVersions=n.RlpTx=n.RawTx=n.AggregatedError=void 0,n.decodeLegacyV=function(e){return k.decode(e).v},n.legacySig=void 0,n.removeSig=B,n.sortRawData=function(e){const t={};return q.filter(t=>e.hasOwnProperty(t)).forEach(n=>{t[n]=e[n]}),t},n.validateFields=function(e,t,n=!0,r=!0){if(H(t),!C.hasOwnProperty(e))throw new Error(`unknown tx type=${e}`);const i=C[e],s=new Set(Object.keys(t)),o=e=>s.has(e);function a(r){if(!o(r))return{field:r,error:`field "${r}" must be present for tx type=${e}`};const i=t[r];try{if(F.hasOwnProperty(r)&&F[r](i,{data:t,strict:n,type:e}),"chainId"===r)return;I[r].decode(i)}catch(e){return{field:r,error:e.message}}return undefined}const u=i.fields.map(a),l=i.optionalFields.some(o)?i.optionalFields.map(a):[],c=Object.keys(t).map(t=>i.setOfAllFields.has(t)?!r&&A.has(t)?{field:t,error:`field "${t}" is sig-related and must not be user-specified`}:void 0:{field:t,error:`unknown field "${t}" for tx type=${e}`}),d=u.concat(l,c).filter(e=>e!==undefined);if(d.length>0)throw new V("fields had validation errors",d)};var r=e("@noble/curves/secp256k1.js"),i=e("@noble/hashes/sha3.js"),s=e("@noble/hashes/utils.js"),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}(e("micro-packed")),a=e("../utils.js"),u=e("./address.js"),l=e("./rlp.js");function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h=BigInt(0),f=e=>{const t=Object.entries(e),n=Object.fromEntries(t.map(([e,t],n)=>[e,{type:e,ver:n,coder:t}])),r=Object.fromEntries(t.map(([e,t],n)=>[n,{type:e,ver:n,coder:t}]));return o.wrap({encodeStream(e,t){const r=t.type;if(!n.hasOwnProperty(r))throw new Error(`txVersion: wrong type=${r}`);const i=n[r];"legacy"!==r&&e.byte(i.ver),i.coder.encodeStream(e,t.data)},decodeStream(e){const t=e.byte(!0);if(255===t)throw new Error("reserved version 0xff");if(0===t)throw new Error("version=0 unsupported");if(0<=t&&t<=127){if(!r.hasOwnProperty(t.toString()))throw new Error(`wrong version=${t}`);const n=r[t];e.byte(!1);const i=n.coder.decodeStream(e);return{type:n.type,data:i}}return{type:"legacy",data:n.legacy.coder.decodeStream(e)}}})},m=e=>e===undefined||"bigint"==typeof e,p=e=>e===undefined||e===BigInt(0);function b(e){if(e===undefined&&(e=0),0!==e&&1!==e)throw new Error(`yParity wrong value=${e} (${typeof e})`)}const g=a.ethHex;function y(e){if(!(0,a.isBytes)(e)||32!==e.length)throw new Error("expected 32 bytes");return e}const w={encode:e=>a.ethHex.encode(y(e)),decode:e=>y(a.ethHex.decode(e))},k=n.legacySig={encode:e=>{const{v:t,r:n,s:r}=e;if(t===undefined)return{chainId:undefined};if("bigint"!=typeof t)throw new Error("invalid v type="+typeof t);if(n===undefined&&r===undefined||n===h&&r===h)return{chainId:t};if(t===BigInt(27))return{yParity:0,chainId:undefined,r:n,s:r};if(t===BigInt(28))return{yParity:1,chainId:undefined,r:n,s:r};if(t<BigInt(35))throw new Error(`wrong v=${t}`);const i=t-BigInt(35);return{chainId:i>>BigInt(1),yParity:Number(i&BigInt(1)),r:n,s:r}},decode:e=>{H(e);const{chainId:t,yParity:n,r:r,s:i}=e;if(!m(t))throw new Error("wrong chainId type="+typeof t);if(!m(r))throw new Error("wrong r type="+typeof r);if(!m(i))throw new Error("wrong s type="+typeof i);if(n!==undefined&&"number"!=typeof n)throw new Error("wrong yParity type="+typeof t);if(n===undefined){if(t!==undefined){if(r!==undefined&&r!==h||i!==undefined&&i!==h)throw new Error(`wrong unsigned legacy r=${r} s=${i}`);return{v:t,r:h,s:h}}if(r!==undefined&&r!==h||i!==undefined&&i!==h)throw new Error(`wrong unsigned legacy r=${r} s=${i}`);return{}}if(p(r)||p(i))throw new Error(`wrong unsigned legacy r=${r} s=${i}`);b(n);return{v:t!==undefined?BigInt(n)+(t*BigInt(2)+BigInt(35)):BigInt(n)+BigInt(27),r:r,s:i}}},v=o.coders.reverse(o.bigint(8,!1,!1,!1)),_=o.coders.reverse(o.bigint(32,!1,!1,!1)),x=e=>({encode(t){if(!Array.isArray(t))throw new Error("expected array");return t.map(t=>e.encode(t))},decode(t){if(!Array.isArray(t))throw new Error("expected array");return t.map(t=>e.decode(t))}}),E=e=>({encode(t){if(!Array.isArray(t))throw new Error("expected array");const n=Object.keys(e);if(t.length!==n.length)throw new Error("wrong array length");return Object.fromEntries(n.map((n,r)=>[n,e[n].encode(t[r])]))},decode(t){const n=Object.keys(e);if(!(0,a.isObject)(t))throw new Error("wrong struct object");return n.map(n=>e[n].decode(t[n]))}}),j=o.coders.reverse(o.validate(o.int(1,!1,!1,!1),e=>(b(e),e))),S=E({address:g,storageKeys:x(w)}),T=n.authorizationRequest=E({chainId:_,address:g,nonce:v}),O=E({chainId:_,address:g,nonce:v,yParity:j,r:_,s:_}),I={chainId:_,nonce:v,gasPrice:_,maxPriorityFeePerGas:_,maxFeePerGas:_,gasLimit:v,to:g,value:_,data:a.ethHex,accessList:x(S),maxFeePerBlobGas:_,blobVersionedHashes:x(w),yParity:j,v:_,r:_,s:_,authorizationList:x(O)},A=new Set(["v","yParity","r","s"]);function B(e){return A.forEach(t=>{delete e[t]}),e}const R=(e,t)=>{const n=e.concat(t);n.forEach(e=>{if(!I.hasOwnProperty(e))throw new Error(`coder for field ${e} is not defined`)});const r=E(Object.fromEntries(e.map(e=>[e,I[e]]))),i=E(Object.fromEntries(n.map(e=>[e,I[e]]))),s=e.length,a=s+t.length,u=o.wrap({encodeStream(e,n){const s=t.some(e=>n.hasOwnProperty(e))?i:r;l.RLP.encodeStream(e,s.decode(n))},decodeStream(e){const n=l.RLP.decodeStream(e);if(!Array.isArray(n))throw new Error("txStruct: expected array from inner coder");const o=n.length;if(o!==s&&o!==a)throw new Error(`txStruct: wrong inner length=${o}`);const u=o===a?i:r;if(o===a&&t.every((e,t)=>{return r=n[(e=>s+e)(t)],0===r.length;var r}))throw new Error("all optional fields empty");return u.encode(n)}});return u.fields=e,u.optionalFields=t,u.setOfAllFields=new Set(n.concat(["type"])),u},L=R(["nonce","gasPrice","gasLimit","to","value","data"],["v","r","s"]),P=(()=>{const e=o.apply(L,{decode:e=>Object.assign({},e,k.decode(e)),encode:e=>{const t=Object.assign({},e);if(t.chainId=undefined,e.v){const n=k.encode(e);B(t),Object.assign(t,n)}return t}});return e.fields=L.fields.concat(["chainId"]),e.optionalFields=["yParity","r","s"],e.setOfAllFields=new Set(e.fields.concat(e.optionalFields,["type"])),e})(),N=R(["chainId","nonce","gasPrice","gasLimit","to","value","data","accessList"],["yParity","r","s"]),M=R(["chainId","nonce","maxPriorityFeePerGas","maxFeePerGas","gasLimit","to","value","data","accessList"],["yParity","r","s"]),z=R(["chainId","nonce","maxPriorityFeePerGas","maxFeePerGas","gasLimit","to","value","data","accessList","maxFeePerBlobGas","blobVersionedHashes"],["yParity","r","s"]),D=R(["chainId","nonce","maxPriorityFeePerGas","maxFeePerGas","gasLimit","to","value","data","accessList","authorizationList"],["yParity","r","s"]),C=n.TxVersions={legacy:P,eip2930:N,eip1559:M,eip4844:z,eip7702:D};n.RawTx=o.apply(f(C),{encode:e=>{if(e.data.to=u.addr.addChecksum(e.data.to,!0),"legacy"!==e.type&&e.data.accessList)for(const t of e.data.accessList)t.address=u.addr.addChecksum(t.address);if("eip7702"===e.type&&e.data.authorizationList)for(const t of e.data.authorizationList)t.address=u.addr.addChecksum(t.address);return e},decode:e=>e}),n.RlpTx=f(Object.fromEntries(Object.keys(C).map(e=>[e,l.RLP])));function $(e){if("bigint"!=typeof e)throw new Error("value must be bigint")}function H(e){if("object"!=typeof e||null==e)throw new Error("object expected")}function U(e,t,n,r){if(r||(r=`>= ${t} and <= ${n}`),Number.isNaN(e)||e<t||e>n)throw new Error(`must be ${r}, not ${e}`)}const F={nonce(e,{strict:t}){$(e),t?U(e,h,a.amounts.maxNonce):U(BigInt(e),h,BigInt(Number.MAX_SAFE_INTEGER))},maxFeePerGas(e,{strict:t}){$(e),t?U(e,BigInt(1),a.amounts.maxGasPrice,">= 1 wei and < 10000 gwei"):U(e,h,a.amounts.maxUint64)},maxPriorityFeePerGas(e,{strict:t,data:n}){if($(e),U(e,h,t?a.amounts.maxGasPrice:a.amounts.maxUint64,">= 1 wei and < 10000 gwei"),t&&n&&"bigint"==typeof n.maxFeePerGas&&n.maxFeePerGas<e)throw new Error(`cannot be bigger than maxFeePerGas=${n.maxFeePerGas}`)},gasLimit(e,{strict:t}){$(e),t?U(e,a.amounts.minGasLimit,a.amounts.maxGasLimit):U(e,h,a.amounts.maxUint64)},to(e,{strict:t,data:n}){if(!u.addr.isValid(e,!0))throw new Error("address checksum does not match");if(t&&"0x"===e&&!n.data)throw new Error("Empty address (0x) without contract deployment code")},value(e,{strict:t}){$(e),t&&U(e,h,a.amounts.maxAmount,">= 0 and < 1M eth")},data(e,{strict:t,data:n}){if("string"!=typeof e)throw new Error("data must be string");if(t&&e.length>a.amounts.maxDataSize)throw new Error("data is too big: "+e.length);if("0x"===n.to&&e.length>2*a.amounts.maxInitDataSize)throw new Error(`initcode is too big: ${e.length}`)},chainId(e,{strict:t,type:n}){"legacy"===n&&e===undefined||($(e),t&&U(e,BigInt(1),a.amounts.maxChainId,">= 1 and <= 2**32-1"))},accessList(e){for(const{address:t}of e)if(!u.addr.isValid(t))throw new Error("address checksum does not match")},authorizationList(e,t){for(const{address:n,nonce:r,chainId:i}of e){if(!u.addr.isValid(n))throw new Error("address checksum does not match");$(i),t.strict&&U(i,h,a.amounts.maxChainId,">= 0 and <= 2**32-1"),this.nonce(r,t)}}};class V extends Error{constructor(e,t){super(),d(this,"message",void 0),d(this,"errors",void 0),this.message=e,this.errors=t}}n.AggregatedError=V;const q=["to","value","nonce","maxFeePerGas","maxFeePerBlobGas","maxPriorityFeePerGas","gasPrice","gasLimit","accessList","authorizationList","blobVersionedHashes","chainId","data","type","r","s","yParity","v"];n.authorization={_getHash(e){const t=l.RLP.encode(T.decode(e));return(0,i.keccak_256)((0,s.concatBytes)(new Uint8Array([5]),t))},sign(e,t){(0,a.astr)(t);const n=(0,a.sign)(this._getHash(e),a.ethHex.decode(t));return{...e,r:n.r,s:n.s,yParity:n.recovery}},getAuthority(e){const{r:t,s:n,yParity:i,...s}=e,o=this._getHash(s),l=(0,a.initSig)({r:t,s:n},i),c=r.secp256k1.recoverPublicKey(l.toBytes("recovered"),o,{prehash:!1});return u.addr.fromPublicKey(c)}},n.__tests={legacySig:k,TxVersions:C}}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer",file:"node_modules/micro-eth-signer/core/tx-internal.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/core/tx.js",{"../utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/utils.js","./address.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/core/address.js","./tx-internal.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/core/tx-internal.js","@noble/curves/secp256k1.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/secp256k1.js","@noble/hashes/sha3.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/sha3.js","@noble/hashes/utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/utils.js","micro-packed":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-packed/index.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Transaction=void 0;var r=e("@noble/hashes/sha3.js"),i=e("@noble/hashes/utils.js");e("micro-packed");var s=e("./address.js"),o=e("./tx-internal.js"),a=e("@noble/curves/secp256k1.js"),u=e("../utils.js");function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}/*! micro-eth-signer - MIT License (c) 2021 Paul Miller (paulmillr.com) */(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c={accessList:[],authorizationList:[],chainId:BigInt(1),data:"",gasLimit:BigInt(21e3),maxPriorityFeePerGas:BigInt(1)*u.amounts.GWEI,type:"eip1559"};class d{constructor(e,t,n=!0,r=!0){l(this,"type",void 0),l(this,"raw",void 0),l(this,"isSigned",void 0),this.type=e,this.raw=t,(0,o.validateFields)(e,t,n,r),this.isSigned="bigint"==typeof t.r&&"bigint"==typeof t.s}static prepare(e,t=!0){const n=e.type!==undefined?e.type:c.type;if(!o.TxVersions.hasOwnProperty(n))throw new Error(`wrong transaction type=${n}`);const r=o.TxVersions[n],i=new Set(r.fields),s={type:n};for(const e in c)"type"!==e&&i.has(e)&&(s[e]=c[e],["accessList","authorizationList"].includes(e)&&(s[e]=(0,u.cloneDeep)(s[e])));return new d(n,(0,o.sortRawData)(Object.assign(s,e)),t,!1)}setWholeAmount(e,t=!0){const n=BigInt(0);if("bigint"!=typeof e||e<=n)throw new Error("account balance must be bigger than 0");const r=this.fee,i=e-r;if(i<=n)throw new Error("account balance must be bigger than fee of "+r);const s={...this.raw,value:i};if(!["legacy","eip2930"].includes(this.type)&&t){const e=s;e.maxPriorityFeePerGas=e.maxFeePerGas}return new d(this.type,s)}static fromRawBytes(e,t=!1){const n=o.RawTx.decode(e);return new d(n.type,n.data,t)}static fromHex(e,t=!1){return d.fromRawBytes(u.ethHexNoLeadingZero.decode(e),t)}assertIsSigned(){if(!this.isSigned)throw new Error("expected signed transaction")}toBytes(e=this.isSigned){let t=Object.assign({},this.raw);return e?this.assertIsSigned():(0,o.removeSig)(t),o.RawTx.encode({type:this.type,data:t})}toHex(e=this.isSigned){return u.ethHex.encode(this.toBytes(e))}get hash(){return this.assertIsSigned(),(0,i.bytesToHex)(this.calcHash(!0))}get sender(){return this.recoverSender().address}get v(){return(0,o.decodeLegacyV)(this.raw)}calcHash(e){return(0,r.keccak_256)(this.toBytes(e))}get fee(){const{type:e,raw:t}=this;let n;if("legacy"===e||"eip2930"===e){n=t.gasPrice}else{n=t.maxFeePerGas}return t.gasLimit*n}clone(){return new d(this.type,(0,u.cloneDeep)(this.raw))}verifySignature(){this.assertIsSigned();const{r:e,s:t}=this.raw;return(0,u.verify)(new a.secp256k1.Signature(e,t).toBytes(),this.calcHash(!1),(0,i.hexToBytes)(this.recoverSender().publicKey))}removeSignature(){return new d(this.type,(0,o.removeSig)((0,u.cloneDeep)(this.raw)))}signBy(e,t=!0){if(this.isSigned)throw new Error("expected unsigned transaction");const n=(0,u.isBytes)(e)?e:(0,i.hexToBytes)((0,u.strip0x)(e)),r=this.calcHash(!1),s=(0,u.sign)(r,n,t),{r:o,s:a,recovery:l}=s,c=Object.assign((0,u.cloneDeep)(this.raw),{r:o,s:a,yParity:l});return new d(this.type,c,!1)}recoverSender(){this.assertIsSigned();const{r:e,s:t,yParity:n}=this.raw,r=(0,u.initSig)({r:e,s:t},n);if(r.hasHighS())throw new Error("invalid s");const o=a.secp256k1.recoverPublicKey(r.toBytes("recovered"),this.calcHash(!1),{prehash:!1});return{publicKey:(0,i.bytesToHex)(o),address:s.addr.fromPublicKey(o)}}}n.Transaction=d}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer",file:"node_modules/micro-eth-signer/core/tx.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/core/typed-data.js",{"../advanced/abi-mapper.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/advanced/abi-mapper.js","../utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/utils.js","./address.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/core/address.js","@noble/curves/secp256k1.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/secp256k1.js","@noble/hashes/sha3.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/sha3.js","@noble/hashes/utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/utils.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.eip191Signer=n._TEST=n.EIP712Domain=void 0,n.encodeData=function(e){return g(e),f(b(e),e.domain).encodeData(e.primaryType,e.message)},n.encoder=f,n.getDomainType=p,n.recoverPublicKeyTyped=function(e,t){return f(b(t),t.domain).recoverPublicKey(t.primaryType,e,t.message)},n.sigHash=function(e){return g(e),f(b(e),e.domain)._getHash(e.primaryType,e.message)},n.signTyped=function(e,t,n){return g(e),f(b(e),e.domain).sign(e.primaryType,e.message,t,n)},n.verifyTyped=function(e,t,n){return g(t),f(b(t),t.domain).verify(t.primaryType,e,t.message,n)};var r=e("@noble/curves/secp256k1.js"),i=e("@noble/hashes/sha3.js"),s=e("@noble/hashes/utils.js"),o=e("../advanced/abi-mapper.js"),a=e("../utils.js"),u=e("./address.js");function l(e,t){if(e<0||e>=256||!Number.isSafeInteger(e))throw new Error("Wrong version byte");const n=n=>(0,i.keccak_256)((0,s.concatBytes)(new Uint8Array([25,e]),t(n)));return{_getHash:e=>a.ethHex.encode(n(e)),sign(e,t,r=!0){const i=n(e);"string"==typeof t&&(t=a.ethHex.decode(t));const s=(0,a.sign)(i,t,r),o=0===s.recovery?"1b":"1c";return(0,a.add0x)(s.toHex("compact")+o)},recoverPublicKey(e,t){(0,a.astr)(e);const i=n(t);if(130!==(e=(0,a.strip0x)(e)).length)throw new Error("invalid signature length");const o=e.slice(0,-2),l=e.slice(-2);if(!["1b","1c"].includes(l))throw new Error("invalid recovery bit");const c=(0,a.initSig)((0,s.hexToBytes)(o),"1b"===l?0:1),d=r.secp256k1.recoverPublicKey(c.toBytes("recovered"),i,{prehash:!1});if(!(0,a.verify)(c.toBytes("compact"),i,d))throw new Error("invalid signature");return u.addr.fromPublicKey(d)},verify(e,t,n){const r=this.recoverPublicKey(e,t),i=r.toLowerCase(),s=r.toUpperCase();return n===i||n===s||r===n}}}n.eip191Signer=l(69,e=>("string"==typeof e&&(e=(0,s.utf8ToBytes)(e)),(0,s.concatBytes)((0,s.utf8ToBytes)(`thereum Signed Message:\n${e.length}`),e)));function c(e){let t=e.match(/^([^\[]+)(?:.*\[(.*?)\])?$/);if(!t)throw new Error(`parseType: wrong type: ${e}`);const n=t[1],r=t[2]!==undefined,i=t[2]!==undefined&&""!==t[2]?Number(t[2]):undefined;if(i!==undefined&&(!Number.isSafeInteger(i)||i.toString()!==t[2]))throw new Error(`parseType: wrong array length: ${e}`);let s="struct";if(["string","bytes"].includes(n))s="dynamic";else if(["bool","address"].includes(n))s="atomic";else if(t=/^(u?)int([0-9]+)?$/.exec(n)){const e=t[2]?+t[2]:256;if(!Number.isSafeInteger(e)||e<=0||e%8!=0||e>256)throw new Error("parseType: invalid numeric type");s="atomic"}else if(t=/^bytes([0-9]{1,2})$/.exec(n)){const e=+t[1];if(!e||e>32)throw new Error(`parseType: wrong bytes<N=${e}> type`);s="atomic"}return{base:n,item:e.replace(/\[[^\]]*\]$/,""),type:s,arrayLen:i,isArray:r}}function d(e){if("object"!=typeof e||null===e)throw new Error("wrong types object");const t={};for(const[n,r]of Object.entries(e)){const i=new Set;for(const{type:t}of r){const r=c(t);if("struct"===r.type&&r.base!==n){if(!e[r.base])throw new Error(`getDependencies: wrong struct type name=${t}`);i.add(r.base)}}t[n]=i}for(let e=!0;e;){e=!1;for(const[n,r]of Object.entries(t)){const i=Array.from(r).map(e=>t[e]);for(const t of i)for(const i of t)i===n||r.has(i)||(r.add(i),e=!0)}}return t}function h(e){const t=d(e),n={};for(const t in e)n[t]=`${t}(${e[t].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;const r={};for(const[e,i]of Object.entries(t)){const t=[e].concat(Array.from(i).sort());r[e]=t.map(e=>n[e]).join("")}const o=Object.fromEntries(Object.entries(r).map(([e,t])=>[e,(0,i.keccak_256)((0,s.utf8ToBytes)(t))])),a={};for(const t in e){const n=new Set;for(const{name:r}of e[t]){if(n.has(r))throw new Error(`field ${r} included multiple times in type ${t}`);n.add(r)}a[t]=n}return{names:n,fullNames:r,hashes:o,fields:a}}function f(e,t){if(!(0,a.isObject)(t))throw Error(`wrong domain=${t}`);if(!(0,a.isObject)(e))throw Error(`wrong types=${e}`);const n=h(e),r=(t,u,l=!0)=>{const d=c(t);if(d.isArray){if(!Array.isArray(u))throw new Error(`expected array, got: ${u}`);if(d.arrayLen!==undefined&&u.length!==d.arrayLen)throw new Error(`wrong array length: expected ${d.arrayLen}, got ${u}`);return(0,i.keccak_256)((0,s.concatBytes)(...u.map(e=>r(d.item,e))))}if("struct"===d.type){const o=e[t];if(!o)throw new Error(`wrong type: ${t}`);const c=n.fields[t];if(!(0,a.isObject)(u))throw new Error(`encoding non-object as custom type ${t}`);for(const e in u)if(!c.has(e))throw new Error(`unexpected field ${e} in ${t}`);const h=[];for(const{name:t,type:n}of o)e[n]&&u[t]===undefined?h.push(new Uint8Array(32)):h.push(r(n,u[t]));const f=(0,s.concatBytes)(n.hashes[d.base],...h);return l?(0,i.keccak_256)(f):f}return"string"===t||"bytes"===t?("bytes"===t&&"string"==typeof u&&(u=a.ethHex.decode(u)),(0,i.keccak_256)("string"==typeof u?(0,s.utf8ToBytes)(u):u)):(t.startsWith("bytes")&&"string"==typeof u&&(u=a.ethHex.decode(u)),(t.startsWith("int")||t.startsWith("uint"))&&"string"==typeof u&&(u=BigInt(u)),(0,o.mapComponent)({type:t}).encode(u))},u=(t,n)=>{if((0,a.astr)(t),!e[t])throw new Error(`Unknown type: ${t}`);if(!(0,a.isObject)(n))throw new Error("wrong data object");return r(t,n,!1)},d=(e,t)=>(0,i.keccak_256)(u(e,t)),f=d("EIP712Domain",t),m=l(1,e=>{if("string"!=typeof e.primaryType)throw Error(`wrong primaryType=${e.primaryType}`);if(!(0,a.isObject)(e.message))throw Error(`wrong message=${e.message}`);return"EIP712Domain"===e.primaryType?f:(0,s.concatBytes)(f,d(e.primaryType,e.message))});return{encodeData:(e,t)=>a.ethHex.encode(u(e,t)),structHash:(e,t)=>a.ethHex.encode(d(e,t)),_getHash:(e,t)=>m._getHash({primaryType:e,message:t}),sign:(e,t,n,r)=>m.sign({primaryType:e,message:t},n,r),verify:(e,t,n,r)=>m.verify(t,{primaryType:e,message:n},r),recoverPublicKey:(e,t,n)=>m.recoverPublicKey(t,{primaryType:e,message:n})}}const m=n.EIP712Domain=[{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"}];function p(e){return m.filter(({name:t})=>e[t]!==undefined)}const b=e=>({EIP712Domain:p(e.domain),...e.types});function g(e){if(!(0,a.isObject)(e.message))throw new Error("wrong message");if(!(0,a.isObject)(e.domain))throw new Error("wrong domain");if(!(0,a.isObject)(e.types))throw new Error("wrong types");if("string"!=typeof e.primaryType||!e.types[e.primaryType])throw new Error("wrong primaryType")}n._TEST={parseType:c,getDependencies:d,getTypes:h,encoder:f}}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer",file:"node_modules/micro-eth-signer/core/typed-data.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/index.js",{"./core/address.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/core/address.js","./core/tx-internal.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/core/tx-internal.js","./core/tx.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/core/tx.js","./core/typed-data.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/core/typed-data.js","./utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/utils.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Transaction",{enumerable:!0,get:function(){return s.Transaction}}),Object.defineProperty(n,"addr",{enumerable:!0,get:function(){return r.addr}}),Object.defineProperty(n,"amounts",{enumerable:!0,get:function(){return a.amounts}}),Object.defineProperty(n,"authorization",{enumerable:!0,get:function(){return i.authorization}}),Object.defineProperty(n,"eip191Signer",{enumerable:!0,get:function(){return o.eip191Signer}}),Object.defineProperty(n,"ethHex",{enumerable:!0,get:function(){return a.ethHex}}),Object.defineProperty(n,"ethHexNoLeadingZero",{enumerable:!0,get:function(){return a.ethHexNoLeadingZero}}),Object.defineProperty(n,"recoverPublicKeyTyped",{enumerable:!0,get:function(){return o.recoverPublicKeyTyped}}),Object.defineProperty(n,"signTyped",{enumerable:!0,get:function(){return o.signTyped}}),Object.defineProperty(n,"verifyTyped",{enumerable:!0,get:function(){return o.verifyTyped}}),Object.defineProperty(n,"weieth",{enumerable:!0,get:function(){return a.weieth}}),Object.defineProperty(n,"weigwei",{enumerable:!0,get:function(){return a.weigwei}});var r=e("./core/address.js"),i=e("./core/tx-internal.js"),s=e("./core/tx.js"),o=e("./core/typed-data.js"),a=e("./utils.js")}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer",file:"node_modules/micro-eth-signer/index.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/abstract/curve.js",{"../utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/utils.js","./modular.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/abstract/modular.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.createCurveFields=function(e,t,n={},r){r===undefined&&(r="edwards"===e);if(!t||"object"!=typeof t)throw new Error(`expected valid ${e} CURVE object`);for(const e of["p","n","h"]){const n=t[e];if(!("bigint"==typeof n&&n>o))throw new Error(`CURVE.${e} must be positive bigint`)}const i=y(t.p,n.Fp,r),s=y(t.n,n.Fn,r),a=["Gx","Gy","a","weierstrass"===e?"b":"d"];for(const e of a)if(!i.isValid(t[e]))throw new Error(`CURVE.${e} must be valid field element of CURVE.Fp`);return{CURVE:t=Object.freeze(Object.assign({},t)),Fp:i,Fn:s}},n.createKeygen=function(e,t){return function(n){const r=e(n);return{secretKey:r,publicKey:t(r)}}},n.mulEndoUnsafe=function(e,t,n,r){let i=t,s=e.ZERO,u=e.ZERO;for(;n>o||r>o;)n&a&&(s=s.add(i)),r&a&&(u=u.add(i)),i=i.double(),n>>=a,r>>=a;return{p1:s,p2:u}},n.negateCt=u,n.normalizeZ=function(e,t){const n=(0,i.FpInvertBatch)(e.Fp,t.map(e=>e.Z));return t.map((t,r)=>e.fromAffine(t.toAffine(n[r])))},n.pippenger=function(e,t,n){const i=e.Fn;h(t,e),f(n,i);const s=t.length,o=n.length;if(s!==o)throw new Error("arrays of points and scalars must have equal length");const a=e.ZERO,u=(0,r.bitLen)(BigInt(s));let l=1;u>12?l=u-3:u>4?l=u-2:u>0&&(l=2);const c=(0,r.bitMask)(l),d=new Array(Number(c)+1).fill(a),m=Math.floor((i.BITS-1)/l)*l;let p=a;for(let e=m;e>=0;e-=l){d.fill(a);for(let r=0;r<o;r++){const i=n[r],s=Number(i>>BigInt(e)&c);d[s]=d[s].add(t[r])}let r=a;for(let e=d.length-1,t=a;e>0;e--)t=t.add(d[e]),r=r.add(t);if(p=p.add(r),0!==e)for(let e=0;e<l;e++)p=p.double()}return p},n.precomputeMSMUnsafe=function(e,t,n){const i=e.Fn;l(n,i.BITS),h(t,e);const s=e.ZERO,o=2**n-1,a=Math.ceil(i.BITS/n),u=(0,r.bitMask)(n),c=t.map(e=>{const t=[];for(let n=0,r=e;n<o;n++)t.push(r),r=r.add(e);return t});return e=>{if(f(e,i),e.length>t.length)throw new Error("array of scalars must be smaller than array of points");let r=s;for(let t=0;t<a;t++){if(r!==s)for(let e=0;e<n;e++)r=r.double();const i=BigInt(a*n-(t+1)*n);for(let t=0;t<e.length;t++){const n=e[t],s=Number(n>>i&u);s&&(r=r.add(c[t][s-1]))}}return r}},n.wNAF=void 0;var r=e("../utils.js"),i=e("./modular.js");function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const o=BigInt(0),a=BigInt(1);function u(e,t){const n=t.negate();return e?n:t}function l(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function c(e,t){l(e,t);const n=2**e;return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1),mask:(0,r.bitMask)(e),maxNumber:n,shiftBy:BigInt(e)}}function d(e,t,n){const{windowSize:r,mask:i,maxNumber:s,shiftBy:o}=n;let u=Number(e&i),l=e>>o;u>r&&(u-=s,l+=a);const c=t*r;return{nextN:l,offset:c+Math.abs(u)-1,isZero:0===u,isNeg:u<0,isNegF:t%2!=0,offsetF:c}}function h(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((e,n)=>{if(!(e instanceof t))throw new Error("invalid point at index "+n)})}function f(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((e,n)=>{if(!t.isValid(e))throw new Error("invalid scalar at index "+n)})}const m=new WeakMap,p=new WeakMap;function b(e){return p.get(e)||1}function g(e){if(e!==o)throw new Error("invalid wNAF")}function y(e,t,n){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return(0,i.validateField)(t),t}return(0,i.Field)(e,{isLE:n})}n.wNAF=class{constructor(e,t){s(this,"BASE",void 0),s(this,"ZERO",void 0),s(this,"Fn",void 0),s(this,"bits",void 0),this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=t}_unsafeLadder(e,t,n=this.ZERO){let r=e;for(;t>o;)t&a&&(n=n.add(r)),r=r.double(),t>>=a;return n}precomputeWindow(e,t){const{windows:n,windowSize:r}=c(t,this.bits),i=[];let s=e,o=s;for(let e=0;e<n;e++){o=s,i.push(o);for(let e=1;e<r;e++)o=o.add(s),i.push(o);s=o.double()}return i}wNAF(e,t,n){if(!this.Fn.isValid(n))throw new Error("invalid scalar");let r=this.ZERO,i=this.BASE;const s=c(e,this.bits);for(let e=0;e<s.windows;e++){const{nextN:o,offset:a,isZero:l,isNeg:c,isNegF:h,offsetF:f}=d(n,e,s);n=o,l?i=i.add(u(h,t[f])):r=r.add(u(c,t[a]))}return g(n),{p:r,f:i}}wNAFUnsafe(e,t,n,r=this.ZERO){const i=c(e,this.bits);for(let e=0;e<i.windows&&n!==o;e++){const{nextN:s,offset:o,isZero:a,isNeg:u}=d(n,e,i);if(n=s,!a){const e=t[o];r=r.add(u?e.negate():e)}}return g(n),r}getPrecomputes(e,t,n){let r=m.get(t);return r||(r=this.precomputeWindow(t,e),1!==e&&("function"==typeof n&&(r=n(r)),m.set(t,r))),r}cached(e,t,n){const r=b(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)}unsafe(e,t,n,r){const i=b(e);return 1===i?this._unsafeLadder(e,t,r):this.wNAFUnsafe(i,this.getPrecomputes(i,e,n),t,r)}createCache(e,t){l(t,this.bits),p.set(e,t),m.delete(e)}hasCache(e){return 1!==b(e)}}}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer>@noble/curves",file:"node_modules/micro-eth-signer/node_modules/@noble/curves/abstract/curve.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/abstract/hash-to-curve.js",{"../utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/utils.js","./modular.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/abstract/modular.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n._DST_scalar=void 0,n.createHasher=function(e,t,n){if("function"!=typeof t)throw new Error("mapToCurve() must be defined");function r(n){return e.fromAffine(t(n))}function i(t){const n=t.clearCofactor();return n.equals(e.ZERO)?e.ZERO:(n.assertValidity(),n)}return{defaults:Object.freeze(n),Point:e,hashToCurve(e,t){const s=d(e,2,Object.assign({},n,t)),o=r(s[0]),a=r(s[1]);return i(o.add(a))},encodeToCurve(e,t){const s=n.encodeDST?{DST:n.encodeDST}:{};return i(r(d(e,1,Object.assign({},n,s,t))[0]))},mapToCurve(e){if(1===n.m){if("bigint"!=typeof e)throw new Error("expected bigint (m=1)");return i(r([e]))}if(!Array.isArray(e))throw new Error("expected array of bigints");for(const t of e)if("bigint"!=typeof t)throw new Error("expected array of bigints");return i(r(e))},hashToScalar(t,r){const i=e.Fn.ORDER;return d(t,1,Object.assign({},n,{p:i,m:1,DST:h},r))[0][0]}}},n.expand_message_xmd=l,n.expand_message_xof=c,n.hash_to_field=d,n.isogenyMap=function(e,t){const n=t.map(e=>Array.from(e).reverse());return(t,r)=>{const[s,o,a,u]=n.map(n=>n.reduce((n,r)=>e.add(e.mul(n,t),r))),[l,c]=(0,i.FpInvertBatch)(e,[o,u],!0);return t=e.mul(s,l),r=e.mul(r,e.mul(a,c)),{x:t,y:r}}};var r=e("../utils.js"),i=e("./modular.js");const s=r.bytesToNumberBE;function o(e,t){if((0,r.asafenumber)(e),(0,r.asafenumber)(t),e<0||e>=1<<8*t)throw new Error("invalid I2OSP input: "+e);const n=Array.from({length:t}).fill(0);for(let r=t-1;r>=0;r--)n[r]=255&e,e>>>=8;return new Uint8Array(n)}function a(e,t){const n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=e[r]^t[r];return n}function u(e){if(!(0,r.isBytes)(e)&&"string"!=typeof e)throw new Error("DST must be Uint8Array or ascii string");return"string"==typeof e?(0,r.asciiToBytes)(e):e}function l(e,t,n,i){(0,r.abytes)(e),(0,r.asafenumber)(n),(t=u(t)).length>255&&(t=i((0,r.concatBytes)((0,r.asciiToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:s,blockLen:l}=i,c=Math.ceil(n/s);if(n>65535||c>255)throw new Error("expand_message_xmd: invalid lenInBytes");const d=(0,r.concatBytes)(t,o(t.length,1)),h=o(0,l),f=o(n,2),m=new Array(c),p=i((0,r.concatBytes)(h,e,f,o(0,1),d));m[0]=i((0,r.concatBytes)(p,o(1,1),d));for(let e=1;e<=c;e++){const t=[a(p,m[e-1]),o(e+1,1),d];m[e]=i((0,r.concatBytes)(...t))}return(0,r.concatBytes)(...m).slice(0,n)}function c(e,t,n,i,s){if((0,r.abytes)(e),(0,r.asafenumber)(n),(t=u(t)).length>255){const e=Math.ceil(2*i/8);t=s.create({dkLen:e}).update((0,r.asciiToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(n>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return s.create({dkLen:n}).update(e).update(o(n,2)).update(t).update(o(t.length,1)).digest()}function d(e,t,n){(0,r.validateObject)(n,{p:"bigint",m:"number",k:"number",hash:"function"});const{p:o,k:a,m:u,hash:d,expand:h,DST:f}=n;(0,r.asafenumber)(d.outputLen,"valid hash"),(0,r.abytes)(e),(0,r.asafenumber)(t);const m=o.toString(2).length,p=Math.ceil((m+a)/8),b=t*u*p;let g;if("xmd"===h)g=l(e,f,b,d);else if("xof"===h)g=c(e,f,b,a,d);else{if("_internal_pass"!==h)throw new Error('expand must be "xmd" or "xof"');g=e}const y=new Array(t);for(let e=0;e<t;e++){const t=new Array(u);for(let n=0;n<u;n++){const r=p*(n+e*u),a=g.subarray(r,r+p);t[n]=(0,i.mod)(s(a),o)}y[e]=t}return y}const h=n._DST_scalar=(0,r.asciiToBytes)("HashToScalar-")}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer>@noble/curves",file:"node_modules/micro-eth-signer/node_modules/@noble/curves/abstract/hash-to-curve.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/abstract/modular.js",{"../utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/utils.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Field=O,n.FpDiv=function(e,t,n){return e.mul(t,"bigint"==typeof n?b(n,e.ORDER):e.inv(n))},n.FpInvertBatch=E,n.FpIsSquare=function(e,t){return 1===j(e,t)},n.FpLegendre=j,n.FpPow=x,n.FpSqrt=v,n.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?e.neg(n):n},n.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?n:e.neg(n)},n.getFieldBytesLength=I,n.getMinHashLength=A,n.invert=b,n.isNegativeLE=void 0,n.mapHashToField=function(e,t,n=!1){(0,r.abytes)(e);const i=e.length,s=I(t),a=A(t);if(i<16||i<a||i>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+i);const u=p(n?(0,r.bytesToNumberLE)(e):(0,r.bytesToNumberBE)(e),t-o)+o;return n?(0,r.numberToBytesLE)(u,s):(0,r.numberToBytesBE)(u,s)},n.mod=p,n.nLength=S,n.pow=function(e,t,n){return x(O(n),e,t)},n.pow2=function(e,t,n){let r=e;for(;t-- >s;)r*=r,r%=n;return r},n.tonelliShanks=k,n.validateField=function(e){const t=_.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",BYTES:"number",BITS:"number"});return(0,r.validateObject)(e,t),e};var r=e("../utils.js");function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s=BigInt(0),o=BigInt(1),a=BigInt(2),u=BigInt(3),l=BigInt(4),c=BigInt(5),d=BigInt(7),h=BigInt(8),f=BigInt(9),m=BigInt(16);function p(e,t){const n=e%t;return n>=s?n:t+n}function b(e,t){if(e===s)throw new Error("invert: expected non-zero number");if(t<=s)throw new Error("invert: expected positive modulus, got "+t);let n=p(e,t),r=t,i=s,a=o,u=o,l=s;for(;n!==s;){const e=r/n,t=r%n,s=i-u*e,o=a-l*e;r=n,n=t,i=u,a=l,u=s,l=o}if(r!==o)throw new Error("invert: does not exist");return p(i,t)}function g(e,t,n){if(!e.eql(e.sqr(t),n))throw new Error("Cannot find square root")}function y(e,t){const n=(e.ORDER+o)/l,r=e.pow(t,n);return g(e,r,t),r}function w(e,t){const n=(e.ORDER-c)/h,r=e.mul(t,a),i=e.pow(r,n),s=e.mul(t,i),o=e.mul(e.mul(s,a),i),u=e.mul(s,e.sub(o,e.ONE));return g(e,u,t),u}function k(e){if(e<u)throw new Error("sqrt is not defined for small field");let t=e-o,n=0;for(;t%a===s;)t/=a,n++;let r=a;const i=O(e);for(;1===j(i,r);)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===n)return y;let l=i.pow(r,t);const c=(t+o)/a;return function(e,r){if(e.is0(r))return r;if(1!==j(e,r))throw new Error("Cannot find square root");let i=n,s=e.mul(e.ONE,l),a=e.pow(r,t),u=e.pow(r,c);for(;!e.eql(a,e.ONE);){if(e.is0(a))return e.ZERO;let t=1,n=e.sqr(a);for(;!e.eql(n,e.ONE);)if(t++,n=e.sqr(n),t===i)throw new Error("Cannot find square root");const r=o<<BigInt(i-t-1),l=e.pow(s,r);i=t,s=e.sqr(l),a=e.mul(a,s),u=e.mul(u,l)}return u}}function v(e){return e%l===u?y:e%h===c?w:e%m===f?function(e){const t=O(e),n=k(e),r=n(t,t.neg(t.ONE)),i=n(t,r),s=n(t,t.neg(r)),o=(e+d)/m;return(e,t)=>{let n=e.pow(t,o),a=e.mul(n,r);const u=e.mul(n,i),l=e.mul(n,s),c=e.eql(e.sqr(a),t),d=e.eql(e.sqr(u),t);n=e.cmov(n,a,c),a=e.cmov(l,u,d);const h=e.eql(e.sqr(a),t),f=e.cmov(n,a,h);return g(e,f,t),f}}(e):k(e)}n.isNegativeLE=(e,t)=>(p(e,t)&o)===o;const _=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function x(e,t,n){if(n<s)throw new Error("invalid exponent, negatives unsupported");if(n===s)return e.ONE;if(n===o)return t;let r=e.ONE,i=t;for(;n>s;)n&o&&(r=e.mul(r,i)),i=e.sqr(i),n>>=o;return r}function E(e,t,n=!1){const r=new Array(t.length).fill(n?e.ZERO:undefined),i=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),s=e.inv(i);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),s),r}function j(e,t){const n=(e.ORDER-o)/a,r=e.pow(t,n),i=e.eql(r,e.ONE),s=e.eql(r,e.ZERO),u=e.eql(r,e.neg(e.ONE));if(!i&&!s&&!u)throw new Error("invalid Legendre symbol result");return i?1:s?0:-1}function S(e,t){t!==undefined&&(0,r.anumber)(t);const n=t!==undefined?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}class T{constructor(e,t={}){if(i(this,"ORDER",void 0),i(this,"BITS",void 0),i(this,"BYTES",void 0),i(this,"isLE",void 0),i(this,"ZERO",s),i(this,"ONE",o),i(this,"_lengths",void 0),i(this,"_sqrt",void 0),i(this,"_mod",void 0),e<=s)throw new Error("invalid field: expected ORDER > 0, got "+e);let n=undefined;this.isLE=!1,null!=t&&"object"==typeof t&&("number"==typeof t.BITS&&(n=t.BITS),"function"==typeof t.sqrt&&(this.sqrt=t.sqrt),"boolean"==typeof t.isLE&&(this.isLE=t.isLE),t.allowedLengths&&(this._lengths=t.allowedLengths?.slice()),"boolean"==typeof t.modFromBytes&&(this._mod=t.modFromBytes));const{nBitLength:r,nByteLength:a}=S(e,n);if(a>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");this.ORDER=e,this.BITS=r,this.BYTES=a,this._sqrt=undefined,Object.preventExtensions(this)}create(e){return p(e,this.ORDER)}isValid(e){if("bigint"!=typeof e)throw new Error("invalid field element: expected bigint, got "+typeof e);return s<=e&&e<this.ORDER}is0(e){return e===s}isValidNot0(e){return!this.is0(e)&&this.isValid(e)}isOdd(e){return(e&o)===o}neg(e){return p(-e,this.ORDER)}eql(e,t){return e===t}sqr(e){return p(e*e,this.ORDER)}add(e,t){return p(e+t,this.ORDER)}sub(e,t){return p(e-t,this.ORDER)}mul(e,t){return p(e*t,this.ORDER)}pow(e,t){return x(this,e,t)}div(e,t){return p(e*b(t,this.ORDER),this.ORDER)}sqrN(e){return e*e}addN(e,t){return e+t}subN(e,t){return e-t}mulN(e,t){return e*t}inv(e){return b(e,this.ORDER)}sqrt(e){return this._sqrt||(this._sqrt=v(this.ORDER)),this._sqrt(this,e)}toBytes(e){return this.isLE?(0,r.numberToBytesLE)(e,this.BYTES):(0,r.numberToBytesBE)(e,this.BYTES)}fromBytes(e,t=!1){(0,r.abytes)(e);const{_lengths:n,BYTES:i,isLE:s,ORDER:o,_mod:a}=this;if(n){if(!n.includes(e.length)||e.length>i)throw new Error("Field.fromBytes: expected "+n+" bytes, got "+e.length);const t=new Uint8Array(i);t.set(e,s?0:t.length-e.length),e=t}if(e.length!==i)throw new Error("Field.fromBytes: expected "+i+" bytes, got "+e.length);let u=s?(0,r.bytesToNumberLE)(e):(0,r.bytesToNumberBE)(e);if(a&&(u=p(u,o)),!t&&!this.isValid(u))throw new Error("invalid field element: outside of range 0..ORDER");return u}invertBatch(e){return E(this,e)}cmov(e,t,n){return n?t:e}}function O(e,t={}){return new T(e,t)}function I(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function A(e){const t=I(e);return t+Math.ceil(t/2)}}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer>@noble/curves",file:"node_modules/micro-eth-signer/node_modules/@noble/curves/abstract/modular.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/abstract/weierstrass.js",{"../utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/utils.js","./curve.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/abstract/curve.js","./modular.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/abstract/modular.js","@noble/hashes/hmac.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/hmac.js","@noble/hashes/utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/utils.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.DERErr=n.DER=void 0,n.SWUFpSqrtRatio=v,n._splitEndoScalar=c,n.ecdh=x,n.ecdsa=function(e,t,n={}){(0,i.ahash)(t),(0,s.validateObject)(n,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const o=(n=Object.assign({},n)).randomBytes||s.randomBytes,a=n.hmac||((e,n)=>(0,r.hmac)(t,e,n)),{Fp:l,Fn:c}=e,{ORDER:f,BITS:y}=c,{keygen:w,getPublicKey:v,getSharedSecret:_,utils:E,lengths:j}=x(e,n),S={prehash:!0,lowS:"boolean"!=typeof n.lowS||n.lowS,format:"compact",extraEntropy:!1},T=f*g<l.ORDER;function O(e){return e>f>>b}function I(e,t){if(!c.isValidNot0(t))throw new Error(`invalid signature ${e}: out of range 1..Point.Fn.ORDER`);return t}function A(){if(T)throw new Error('"recovered" sig type is not supported for cofactor >2 curves')}function B(e,t){d(t);const n=j.signature,r="compact"===t?n:"recovered"===t?n+1:undefined;return(0,s.abytes)(e,r)}class R{constructor(e,t,n){if(u(this,"r",void 0),u(this,"s",void 0),u(this,"recovery",void 0),this.r=I("r",e),this.s=I("s",t),null!=n){if(A(),![0,1,2,3].includes(n))throw new Error("invalid recovery id");this.recovery=n}Object.freeze(this)}static fromBytes(e,t=S.format){let n;if(B(e,t),"der"===t){const{r:t,s:n}=m.toSig((0,s.abytes)(e));return new R(t,n)}"recovered"===t&&(n=e[0],t="compact",e=e.subarray(1));const r=j.signature/2,i=e.subarray(0,r),o=e.subarray(r,2*r);return new R(c.fromBytes(i),c.fromBytes(o),n)}static fromHex(e,t){return this.fromBytes((0,s.hexToBytes)(e),t)}assertRecovery(){const{recovery:e}=this;if(null==e)throw new Error("invalid recovery id: must be present");return e}addRecoveryBit(e){return new R(this.r,this.s,e)}recoverPublicKey(t){const{r:n,s:r}=this,i=this.assertRecovery(),o=2===i||3===i?n+f:n;if(!l.isValid(o))throw new Error("invalid recovery id: sig.r+curve.n != R.x");const a=l.toBytes(o),u=e.fromBytes((0,s.concatBytes)(k(!(1&i)),a)),d=c.inv(o),h=P((0,s.abytes)(t,undefined,"msgHash")),m=c.create(-h*d),p=c.create(r*d),b=e.BASE.multiplyUnsafe(m).add(u.multiplyUnsafe(p));if(b.is0())throw new Error("invalid recovery: point at infinify");return b.assertValidity(),b}hasHighS(){return O(this.s)}toBytes(e=S.format){if(d(e),"der"===e)return(0,s.hexToBytes)(m.hexFromSig(this));const{r:t,s:n}=this,r=c.toBytes(t),i=c.toBytes(n);return"recovered"===e?(A(),(0,s.concatBytes)(Uint8Array.of(this.assertRecovery()),r,i)):(0,s.concatBytes)(r,i)}toHex(e){return(0,s.bytesToHex)(this.toBytes(e))}}const L=n.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const t=(0,s.bytesToNumberBE)(e),n=8*e.length-y;return n>0?t>>BigInt(n):t},P=n.bits2int_modN||function(e){return c.create(L(e))},N=(0,s.bitMask)(y);function M(e){return(0,s.aInRange)("num < 2^"+y,e,p,N),c.toBytes(e)}function z(e,n){return(0,s.abytes)(e,undefined,"message"),n?(0,s.abytes)(t(e),undefined,"prehashed message"):e}return Object.freeze({keygen:w,getPublicKey:v,getSharedSecret:_,utils:E,lengths:j,Point:e,sign:function(n,r,i={}){const{seed:u,k2sig:l}=function(t,n,r){const{lowS:i,prehash:a,extraEntropy:u}=h(r,S);t=z(t,a);const l=P(t),d=c.fromBytes(n);if(!c.isValidNot0(d))throw new Error("invalid private key");const f=[M(d),M(l)];if(null!=u&&!1!==u){const e=!0===u?o(j.secretKey):u;f.push((0,s.abytes)(e,undefined,"extraEntropy"))}const m=(0,s.concatBytes)(...f),g=l;return{seed:m,k2sig:function(t){const n=L(t);if(!c.isValidNot0(n))return;const r=c.inv(n),s=e.BASE.multiply(n).toAffine(),o=c.create(s.x);if(o===p)return;const a=c.create(r*c.create(g+o*d));if(a===p)return;let u=(s.x===o?0:2)|Number(s.y&b),l=a;return i&&O(a)&&(l=c.neg(a),u^=1),new R(o,l,T?undefined:u)}}}(n,r,i);return(0,s.createHmacDrbg)(t.outputLen,c.BYTES,a)(u,l).toBytes(i.format)},verify:function(t,n,r,i={}){const{lowS:o,prehash:a,format:u}=h(i,S);if(r=(0,s.abytes)(r,undefined,"publicKey"),n=z(n,a),!(0,s.isBytes)(t))throw new Error("verify expects Uint8Array signature"+(t instanceof R?", use sig.toBytes()":""));B(t,u);try{const i=R.fromBytes(t,u),s=e.fromBytes(r);if(o&&i.hasHighS())return!1;const{r:a,s:l}=i,d=P(n),h=c.inv(l),f=c.create(d*h),m=c.create(a*h),p=e.BASE.multiplyUnsafe(f).add(s.multiplyUnsafe(m));return!p.is0()&&c.create(p.x)===a}catch(e){return!1}},recoverPublicKey:function(e,t,n={}){const{prehash:r}=h(n,S);return t=z(t,r),R.fromBytes(e,"recovered").recoverPublicKey(t).toBytes()},Signature:R,hash:t})},n.mapToCurveSimpleSWU=function(e,t){(0,a.validateField)(e);const{A:n,B:r,Z:i}=t;if(!e.isValid(n)||!e.isValid(r)||!e.isValid(i))throw new Error("mapToCurveSimpleSWU: invalid opts");const s=v(e,i);if(!e.isOdd)throw new Error("Field does not have .isOdd()");return t=>{let o,u,l,c,d,h,f,m;o=e.sqr(t),o=e.mul(o,i),u=e.sqr(o),u=e.add(u,o),l=e.add(u,e.ONE),l=e.mul(l,r),c=e.cmov(i,e.neg(u),!e.eql(u,e.ZERO)),c=e.mul(c,n),u=e.sqr(l),h=e.sqr(c),d=e.mul(h,n),u=e.add(u,d),u=e.mul(u,l),h=e.mul(h,c),d=e.mul(h,r),u=e.add(u,d),f=e.mul(o,l);const{isValid:p,value:b}=s(u,h);m=e.mul(o,t),m=e.mul(m,b),f=e.cmov(f,l,p),m=e.cmov(m,b,p);const g=e.isOdd(t)===e.isOdd(m);m=e.cmov(e.neg(m),m,g);const y=(0,a.FpInvertBatch)(e,[c],!0)[0];return f=e.mul(f,y),{x:f,y:m}}},n.weierstrass=function(e,t={}){var n;const r=(0,o.createCurveFields)("weierstrass",e,t),{Fp:i,Fn:a}=r;let l=r.CURVE;const{h:d,n:h}=l;(0,s.validateObject)(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object"});const{endo:f}=t;if(f&&(!i.is0(l.a)||"bigint"!=typeof f.beta||!Array.isArray(f.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const m=_(i,a);function g(){if(!i.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}const v=t.toBytes||function(e,t,n){const{x:r,y:o}=t.toAffine(),a=i.toBytes(r);if((0,s.abool)(n,"isCompressed"),n){g();const e=!i.isOdd(o);return(0,s.concatBytes)(k(e),a)}return(0,s.concatBytes)(Uint8Array.of(4),a,i.toBytes(o))},x=t.fromBytes||function(e){(0,s.abytes)(e,undefined,"Point");const{publicKey:t,publicKeyUncompressed:n}=m,r=e.length,o=e[0],a=e.subarray(1);if(r!==t||2!==o&&3!==o){if(r===n&&4===o){const e=i.BYTES,t=i.fromBytes(a.subarray(0,e)),n=i.fromBytes(a.subarray(e,2*e));if(!j(t,n))throw new Error("bad point: is not on curve");return{x:t,y:n}}throw new Error(`bad point: got length ${r}, expected compressed=${t} or uncompressed=${n}`)}{const e=i.fromBytes(a);if(!i.isValid(e))throw new Error("bad point: is not on curve, wrong x");const t=E(e);let n;try{n=i.sqrt(t)}catch(e){const t=e instanceof Error?": "+e.message:"";throw new Error("bad point: is not on curve, sqrt error"+t)}return g(),!(1&~o)!==i.isOdd(n)&&(n=i.neg(n)),{x:e,y:n}}};function E(e){const t=i.sqr(e),n=i.mul(t,e);return i.add(i.add(n,i.mul(e,l.a)),l.b)}function j(e,t){const n=i.sqr(t),r=E(e);return i.eql(n,r)}if(!j(l.Gx,l.Gy))throw new Error("bad curve params: generator point");const S=i.mul(i.pow(l.a,y),w),T=i.mul(i.sqr(l.b),BigInt(27));if(i.is0(i.add(S,T)))throw new Error("bad curve params: a or b");function O(e,t,n=!1){if(!i.isValid(t)||n&&i.is0(t))throw new Error(`bad point coordinate ${e}`);return t}function I(e){if(!(e instanceof P))throw new Error("Weierstrass Point expected")}function A(e){if(!f||!f.basises)throw new Error("no endo");return c(e,f.basises,a.ORDER)}const B=(0,s.memoized)((e,t)=>{const{X:n,Y:r,Z:s}=e;if(i.eql(s,i.ONE))return{x:n,y:r};const o=e.is0();null==t&&(t=o?i.ONE:i.inv(s));const a=i.mul(n,t),u=i.mul(r,t),l=i.mul(s,t);if(o)return{x:i.ZERO,y:i.ZERO};if(!i.eql(l,i.ONE))throw new Error("invZ was invalid");return{x:a,y:u}}),R=(0,s.memoized)(e=>{if(e.is0()){if(t.allowInfinityPoint&&!i.is0(e.Y))return;throw new Error("bad point: ZERO")}const{x:n,y:r}=e.toAffine();if(!i.isValid(n)||!i.isValid(r))throw new Error("bad point: x or y not field elements");if(!j(n,r))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function L(e,t,n,r,s){return n=new P(i.mul(n.X,e),n.Y,n.Z),t=(0,o.negateCt)(r,t),n=(0,o.negateCt)(s,n),t.add(n)}class P{constructor(e,t,n){u(this,"X",void 0),u(this,"Y",void 0),u(this,"Z",void 0),this.X=O("x",e),this.Y=O("y",t,!0),this.Z=O("z",n),Object.freeze(this)}static CURVE(){return l}static fromAffine(e){const{x:t,y:n}=e||{};if(!e||!i.isValid(t)||!i.isValid(n))throw new Error("invalid affine point");if(e instanceof P)throw new Error("projective point not allowed");return i.is0(t)&&i.is0(n)?P.ZERO:new P(t,n,i.ONE)}static fromBytes(e){const t=P.fromAffine(x((0,s.abytes)(e,undefined,"point")));return t.assertValidity(),t}static fromHex(e){return P.fromBytes((0,s.hexToBytes)(e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return M.createCache(this,e),t||this.multiply(y),this}assertValidity(){R(this)}hasEvenY(){const{y:e}=this.toAffine();if(!i.isOdd)throw new Error("Field doesn't support isOdd");return!i.isOdd(e)}equals(e){I(e);const{X:t,Y:n,Z:r}=this,{X:s,Y:o,Z:a}=e,u=i.eql(i.mul(t,a),i.mul(s,r)),l=i.eql(i.mul(n,a),i.mul(o,r));return u&&l}negate(){return new P(this.X,i.neg(this.Y),this.Z)}double(){const{a:e,b:t}=l,n=i.mul(t,y),{X:r,Y:s,Z:o}=this;let a=i.ZERO,u=i.ZERO,c=i.ZERO,d=i.mul(r,r),h=i.mul(s,s),f=i.mul(o,o),m=i.mul(r,s);return m=i.add(m,m),c=i.mul(r,o),c=i.add(c,c),a=i.mul(e,c),u=i.mul(n,f),u=i.add(a,u),a=i.sub(h,u),u=i.add(h,u),u=i.mul(a,u),a=i.mul(m,a),c=i.mul(n,c),f=i.mul(e,f),m=i.sub(d,f),m=i.mul(e,m),m=i.add(m,c),c=i.add(d,d),d=i.add(c,d),d=i.add(d,f),d=i.mul(d,m),u=i.add(u,d),f=i.mul(s,o),f=i.add(f,f),d=i.mul(f,m),a=i.sub(a,d),c=i.mul(f,h),c=i.add(c,c),c=i.add(c,c),new P(a,u,c)}add(e){I(e);const{X:t,Y:n,Z:r}=this,{X:s,Y:o,Z:a}=e;let u=i.ZERO,c=i.ZERO,d=i.ZERO;const h=l.a,f=i.mul(l.b,y);let m=i.mul(t,s),p=i.mul(n,o),b=i.mul(r,a),g=i.add(t,n),w=i.add(s,o);g=i.mul(g,w),w=i.add(m,p),g=i.sub(g,w),w=i.add(t,r);let k=i.add(s,a);return w=i.mul(w,k),k=i.add(m,b),w=i.sub(w,k),k=i.add(n,r),u=i.add(o,a),k=i.mul(k,u),u=i.add(p,b),k=i.sub(k,u),d=i.mul(h,w),u=i.mul(f,b),d=i.add(u,d),u=i.sub(p,d),d=i.add(p,d),c=i.mul(u,d),p=i.add(m,m),p=i.add(p,m),b=i.mul(h,b),w=i.mul(f,w),p=i.add(p,b),b=i.sub(m,b),b=i.mul(h,b),w=i.add(w,b),m=i.mul(p,w),c=i.add(c,m),m=i.mul(k,w),u=i.mul(g,u),u=i.sub(u,m),m=i.mul(g,p),d=i.mul(k,d),d=i.add(d,m),new P(u,c,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(P.ZERO)}multiply(e){const{endo:n}=t;if(!a.isValidNot0(e))throw new Error("invalid scalar: out of range");let r,i;const s=e=>M.cached(this,e,e=>(0,o.normalizeZ)(P,e));if(n){const{k1neg:t,k1:o,k2neg:a,k2:u}=A(e),{p:l,f:c}=s(o),{p:d,f:h}=s(u);i=c.add(h),r=L(n.beta,l,d,t,a)}else{const{p:t,f:n}=s(e);r=t,i=n}return(0,o.normalizeZ)(P,[r,i])[0]}multiplyUnsafe(e){const{endo:n}=t,r=this;if(!a.isValid(e))throw new Error("invalid scalar: out of range");if(e===p||r.is0())return P.ZERO;if(e===b)return r;if(M.hasCache(this))return this.multiply(e);if(n){const{k1neg:t,k1:i,k2neg:s,k2:a}=A(e),{p1:u,p2:l}=(0,o.mulEndoUnsafe)(P,r,i,a);return L(n.beta,u,l,t,s)}return M.unsafe(r,e)}toAffine(e){return B(this,e)}isTorsionFree(){const{isTorsionFree:e}=t;return d===b||(e?e(P,this):M.unsafe(this,h).is0())}clearCofactor(){const{clearCofactor:e}=t;return d===b?this:e?e(P,this):this.multiplyUnsafe(d)}isSmallOrder(){return this.multiplyUnsafe(d).is0()}toBytes(e=!0){return(0,s.abool)(e,"isCompressed"),this.assertValidity(),v(P,this,e)}toHex(e=!0){return(0,s.bytesToHex)(this.toBytes(e))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}u(P,"BASE",new(n=P)(l.Gx,l.Gy,i.ONE)),u(P,"ZERO",new n(i.ZERO,i.ONE,i.ZERO)),u(P,"Fp",i),u(P,"Fn",a);const N=a.BITS,M=new o.wNAF(P,t.endo?Math.ceil(N/2):N);return P.BASE.precompute(8),P};var r=e("@noble/hashes/hmac.js"),i=e("@noble/hashes/utils.js"),s=e("../utils.js"),o=e("./curve.js"),a=e("./modular.js");function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const l=(e,t)=>(e+(e>=0?t:-t)/g)/t;function c(e,t,n){const[[r,i],[o,a]]=t,u=l(a*e,n),c=l(-i*e,n);let d=e-u*r-c*o,h=-u*i-c*a;const f=d<p,m=h<p;f&&(d=-d),m&&(h=-h);const g=(0,s.bitMask)(Math.ceil((0,s.bitLen)(n)/2))+b;if(d<p||d>=g||h<p||h>=g)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:f,k1:d,k2neg:m,k2:h}}function d(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function h(e,t){const n={};for(let r of Object.keys(t))n[r]=e[r]===undefined?t[r]:e[r];return(0,s.abool)(n.lowS,"lowS"),(0,s.abool)(n.prehash,"prehash"),n.format!==undefined&&d(n.format),n}class f extends Error{constructor(e=""){super(e)}}n.DERErr=f;const m=n.DER={Err:f,_tlv:{encode:(e,t)=>{const{Err:n}=m;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&t.length)throw new n("tlv.encode: unpadded data");const r=t.length/2,i=(0,s.numberToHexUnpadded)(r);if(i.length/2&128)throw new n("tlv.encode: long form length too big");const o=r>127?(0,s.numberToHexUnpadded)(i.length/2|128):"";return(0,s.numberToHexUnpadded)(e)+o+i+t},decode(e,t){const{Err:n}=m;let r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");const i=t[r++];let s=0;if(!!(128&i)){const e=127&i;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");const o=t.subarray(r,r+e);if(o.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===o[0])throw new n("tlv.decode(long): zero leftmost byte");for(const e of o)s=s<<8|e;if(r+=e,s<128)throw new n("tlv.decode(long): not minimal encoding")}else s=i;const o=t.subarray(r,r+s);if(o.length!==s)throw new n("tlv.decode: wrong value length");return{v:o,l:t.subarray(r+s)}}},_int:{encode(e){const{Err:t}=m;if(e<p)throw new t("integer: negative integers are not allowed");let n=(0,s.numberToHexUnpadded)(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=m;if(128&e[0])throw new t("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return(0,s.bytesToNumberBE)(e)}},toSig(e){const{Err:t,_int:n,_tlv:r}=m,i=(0,s.abytes)(e,undefined,"signature"),{v:o,l:a}=r.decode(48,i);if(a.length)throw new t("invalid signature: left bytes after parsing");const{v:u,l:l}=r.decode(2,o),{v:c,l:d}=r.decode(2,l);if(d.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(u),s:n.decode(c)}},hexFromSig(e){const{_tlv:t,_int:n}=m,r=t.encode(2,n.encode(e.r))+t.encode(2,n.encode(e.s));return t.encode(48,r)}},p=BigInt(0),b=BigInt(1),g=BigInt(2),y=BigInt(3),w=BigInt(4);function k(e){return Uint8Array.of(e?2:3)}function v(e,t){const n=e.ORDER;let r=p;for(let e=n-b;e%g===p;e/=g)r+=b;const i=r,s=g<<i-b-b,o=s*g,a=(n-b)/o,u=(a-b)/g,l=o-b,c=s,d=e.pow(t,a),h=e.pow(t,(a+b)/g);let f=(t,n)=>{let r=d,s=e.pow(n,l),o=e.sqr(s);o=e.mul(o,n);let a=e.mul(t,o);a=e.pow(a,u),a=e.mul(a,s),s=e.mul(a,n),o=e.mul(a,t);let f=e.mul(o,s);a=e.pow(f,c);let m=e.eql(a,e.ONE);s=e.mul(o,h),a=e.mul(f,r),o=e.cmov(s,o,m),f=e.cmov(a,f,m);for(let t=i;t>b;t--){let n=t-g;n=g<<n-b;let i=e.pow(f,n);const a=e.eql(i,e.ONE);s=e.mul(o,r),r=e.mul(r,r),i=e.mul(f,r),o=e.cmov(s,o,a),f=e.cmov(i,f,a)}return{isValid:m,value:o}};if(e.ORDER%w===y){const n=(e.ORDER-y)/w,r=e.sqrt(e.neg(t));f=(t,i)=>{let s=e.sqr(i);const o=e.mul(t,i);s=e.mul(s,o);let a=e.pow(s,n);a=e.mul(a,o);const u=e.mul(a,r),l=e.mul(e.sqr(a),i),c=e.eql(l,t);return{isValid:c,value:e.cmov(u,a,c)}}}return f}function _(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function x(e,t={}){const{Fn:n}=e,r=t.randomBytes||s.randomBytes,i=Object.assign(_(e.Fp,n),{seed:(0,a.getMinHashLength)(n.ORDER)});function u(e=r(i.seed)){return(0,a.mapHashToField)((0,s.abytes)(e,i.seed,"seed"),n.ORDER)}function l(t,r=!0){return e.BASE.multiply(n.fromBytes(t)).toBytes(r)}function c(e){const{secretKey:t,publicKey:r,publicKeyUncompressed:o}=i;if(!(0,s.isBytes)(e))return undefined;if("_lengths"in n&&n._lengths||t===r)return undefined;const a=(0,s.abytes)(e,undefined,"key").length;return a===r||a===o}const d={isValidSecretKey:function(e){try{const t=n.fromBytes(e);return n.isValidNot0(t)}catch(e){return!1}},isValidPublicKey:function(t,n){const{publicKey:r,publicKeyUncompressed:s}=i;try{const i=t.length;return(!0!==n||i===r)&&((!1!==n||i===s)&&!!e.fromBytes(t))}catch(e){return!1}},randomSecretKey:u},h=(0,o.createKeygen)(u,l);return Object.freeze({getPublicKey:l,getSharedSecret:function(t,r,i=!0){if(!0===c(t))throw new Error("first arg must be private key");if(!1===c(r))throw new Error("second arg must be public key");const s=n.fromBytes(t);return e.fromBytes(r).multiply(s).toBytes(i)},keygen:h,Point:e,utils:d,lengths:i})}}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer>@noble/curves",file:"node_modules/micro-eth-signer/node_modules/@noble/curves/abstract/weierstrass.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/secp256k1.js",{"./abstract/curve.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/abstract/curve.js","./abstract/hash-to-curve.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/abstract/hash-to-curve.js","./abstract/modular.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/abstract/modular.js","./abstract/weierstrass.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/abstract/weierstrass.js","./utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/utils.js","@noble/hashes/sha2.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/sha2.js","@noble/hashes/utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/utils.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.secp256k1_hasher=n.secp256k1=n.schnorr=void 0;var r=e("@noble/hashes/sha2.js"),i=e("@noble/hashes/utils.js"),s=e("./abstract/curve.js"),o=e("./abstract/hash-to-curve.js"),a=e("./abstract/modular.js"),u=e("./abstract/weierstrass.js"),l=e("./utils.js");
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
const c={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},d={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},h=BigInt(0),f=BigInt(2);const m=(0,a.Field)(c.p,{sqrt:function(e){const t=c.p,n=BigInt(3),r=BigInt(6),i=BigInt(11),s=BigInt(22),o=BigInt(23),u=BigInt(44),l=BigInt(88),d=e*e*e%t,h=d*d*e%t,p=(0,a.pow2)(h,n,t)*h%t,b=(0,a.pow2)(p,n,t)*h%t,g=(0,a.pow2)(b,f,t)*d%t,y=(0,a.pow2)(g,i,t)*g%t,w=(0,a.pow2)(y,s,t)*y%t,k=(0,a.pow2)(w,u,t)*w%t,v=(0,a.pow2)(k,l,t)*k%t,_=(0,a.pow2)(v,u,t)*w%t,x=(0,a.pow2)(_,n,t)*h%t,E=(0,a.pow2)(x,o,t)*y%t,j=(0,a.pow2)(E,r,t)*d%t,S=(0,a.pow2)(j,f,t);if(!m.eql(m.sqr(S),e))throw new Error("Cannot find square root");return S}}),p=(0,u.weierstrass)(c,{Fp:m,endo:d}),b=(n.secp256k1=(0,u.ecdsa)(p,r.sha256),{});function g(e,...t){let n=b[e];if(n===undefined){const t=(0,r.sha256)((0,l.asciiToBytes)(e));n=(0,l.concatBytes)(t,t),b[e]=n}return(0,r.sha256)((0,l.concatBytes)(n,...t))}const y=e=>e.toBytes(!0).slice(1),w=e=>e%f===h;function k(e){const{Fn:t,BASE:n}=p,r=t.fromBytes(e),i=n.multiply(r);return{scalar:w(i.y)?r:t.neg(r),bytes:y(i)}}function v(e){const t=m;if(!t.isValidNot0(e))throw new Error("invalid x: Fail if x ≥ p");const n=t.create(e*e),r=t.create(n*e+BigInt(7));let i=t.sqrt(r);w(i)||(i=t.neg(i));const s=p.fromAffine({x:e,y:i});return s.assertValidity(),s}const _=l.bytesToNumberBE;function x(...e){return p.Fn.create(_(g("BIP0340/challenge",...e)))}function E(e){return k(e).bytes}function j(e,t,n=(0,i.randomBytes)(32)){const{Fn:r}=p,s=(0,l.abytes)(e,undefined,"message"),{bytes:o,scalar:a}=k(t),u=(0,l.abytes)(n,32,"auxRand"),c=r.toBytes(a^_(g("BIP0340/aux",u))),d=g("BIP0340/nonce",c,o,s),{bytes:h,scalar:f}=k(d),m=x(h,o,s),b=new Uint8Array(64);if(b.set(h,0),b.set(r.toBytes(r.create(f+m*a)),32),!S(b,s,o))throw new Error("sign: Invalid signature produced");return b}function S(e,t,n){const{Fp:r,Fn:i,BASE:s}=p,o=(0,l.abytes)(e,64,"signature"),a=(0,l.abytes)(t,undefined,"message"),u=(0,l.abytes)(n,32,"publicKey");try{const e=v(_(u)),t=_(o.subarray(0,32));if(!r.isValidNot0(t))return!1;const n=_(o.subarray(32,64));if(!i.isValidNot0(n))return!1;const l=x(i.toBytes(t),y(e),a),c=s.multiplyUnsafe(n).add(e.multiplyUnsafe(i.neg(l))),{x:d,y:h}=c.toAffine();return!(c.is0()||!w(h)||d!==t)}catch(e){return!1}}n.schnorr=(()=>{const e=(e=(0,i.randomBytes)(48))=>(0,a.mapHashToField)(e,c.n);return{keygen:(0,s.createKeygen)(e,E),getPublicKey:E,sign:j,verify:S,Point:p,utils:{randomSecretKey:e,taggedHash:g,lift_x:v,pointToBytes:y},lengths:{secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:48}}})();const T=(()=>(0,o.isogenyMap)(m,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e)))))(),O=(()=>(0,u.mapToCurveSimpleSWU)(m,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:m.create(BigInt("-11"))}))();n.secp256k1_hasher=(()=>(0,o.createHasher)(p,e=>{const{x:t,y:n}=O(m.create(e[0]));return T(t,n)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:m.ORDER,m:1,k:128,expand:"xmd",hash:r.sha256}))()}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer>@noble/curves",file:"node_modules/micro-eth-signer/node_modules/@noble/curves/secp256k1.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/utils.js",{"@noble/hashes/utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/utils.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.aInRange=function(e,t,n,r){if(!h(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)},n.abool=function(e,t=""){if("boolean"!=typeof e){throw new Error((t&&`"${t}" `)+"expected boolean, got type="+typeof e)}return e},Object.defineProperty(n,"abytes",{enumerable:!0,get:function(){return r.abytes}}),Object.defineProperty(n,"anumber",{enumerable:!0,get:function(){return r.anumber}}),n.asafenumber=function(e,t=""){if(!Number.isSafeInteger(e)){throw new Error((t&&`"${t}" `)+"expected safe integer, got type="+typeof e)}},n.asciiToBytes=function(e){return Uint8Array.from(e,(t,n)=>{const r=t.charCodeAt(0);if(1!==t.length||r>127)throw new Error(`string contains non-ASCII character "${e[n]}" with code ${r} at position ${n}`);return r})},n.bitGet=function(e,t){return e>>BigInt(t)&s},n.bitLen=function(e){let t;for(t=0;e>i;e>>=s,t+=1);return t},n.bitMask=void 0,n.bitSet=function(e,t,n){return e|(n?s:i)<<BigInt(t)},Object.defineProperty(n,"bytesToHex",{enumerable:!0,get:function(){return r.bytesToHex}}),n.bytesToNumberBE=function(e){return u((0,r.bytesToHex)(e))},n.bytesToNumberLE=function(e){return u((0,r.bytesToHex)(c((0,r.abytes)(e)).reverse()))},Object.defineProperty(n,"concatBytes",{enumerable:!0,get:function(){return r.concatBytes}}),n.copyBytes=c,n.createHmacDrbg=function(e,t,n){if((0,r.anumber)(e,"hashLen"),(0,r.anumber)(t,"qByteLen"),"function"!=typeof n)throw new Error("hmacFn must be a function");const i=e=>new Uint8Array(e),s=Uint8Array.of(),o=Uint8Array.of(0),a=Uint8Array.of(1);let u=i(e),l=i(e),c=0;const d=()=>{u.fill(1),l.fill(0),c=0},h=(...e)=>n(l,(0,r.concatBytes)(u,...e)),f=(e=s)=>{l=h(o,e),u=h(),0!==e.length&&(l=h(a,e),u=h())},m=()=>{if(c++>=1e3)throw new Error("drbg: tried max amount of iterations");let e=0;const n=[];for(;e<t;){u=h();const t=u.slice();n.push(t),e+=u.length}return(0,r.concatBytes)(...n)};return(e,t)=>{d(),f(e);let n=undefined;for(;!(n=t(m()));)f();return d(),n}},n.equalBytes=function(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return 0===n},Object.defineProperty(n,"hexToBytes",{enumerable:!0,get:function(){return r.hexToBytes}}),n.hexToNumber=u,n.inRange=h,Object.defineProperty(n,"isBytes",{enumerable:!0,get:function(){return r.isBytes}}),n.memoized=function(e){const t=new WeakMap;return(n,...r)=>{const i=t.get(n);if(i!==undefined)return i;const s=e(n,...r);return t.set(n,s),s}},n.notImplemented=void 0,n.numberToBytesBE=l,n.numberToBytesLE=function(e,t){return l(e,t).reverse()},n.numberToHexUnpadded=a,n.numberToVarBytesBE=function(e){return(0,r.hexToBytes)(a(o(e)))},Object.defineProperty(n,"randomBytes",{enumerable:!0,get:function(){return r.randomBytes}}),n.validateObject=function(e,t={},n={}){if(!e||"object"!=typeof e)throw new Error("expected valid options object");const r=(t,n)=>Object.entries(t).forEach(([t,r])=>function(t,n,r){const i=e[t];if(r&&i===undefined)return;const s=typeof i;if(s!==n||null===i)throw new Error(`param "${t}" is invalid: expected ${n}, got ${s}`)}(t,r,n));r(t,!1),r(n,!0)};var r=e("@noble/hashes/utils.js");
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const i=BigInt(0),s=BigInt(1);function o(e){if("bigint"==typeof e){if(!d(e))throw new Error("positive bigint expected, got "+e)}else(0,r.anumber)(e);return e}function a(e){const t=o(e).toString(16);return 1&t.length?"0"+t:t}function u(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?i:BigInt("0x"+e)}function l(e,t){(0,r.anumber)(t),e=o(e);const n=(0,r.hexToBytes)(e.toString(16).padStart(2*t,"0"));if(n.length!==t)throw new Error("number too large");return n}function c(e){return Uint8Array.from(e)}const d=e=>"bigint"==typeof e&&i<=e;function h(e,t,n){return d(e)&&d(t)&&d(n)&&t<=e&&e<n}n.bitMask=e=>(s<<BigInt(e))-s;n.notImplemented=()=>{throw new Error("not implemented")}}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer>@noble/curves",file:"node_modules/micro-eth-signer/node_modules/@noble/curves/utils.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/_md.js",{"./utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/utils.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Chi=function(e,t,n){return e&t^~e&n},n.HashMD=void 0,n.Maj=function(e,t,n){return e&t^e&n^t&n},n.SHA512_IV=n.SHA384_IV=n.SHA256_IV=n.SHA224_IV=void 0;var r=e("./utils.js");function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.HashMD=class{constructor(e,t,n,s){i(this,"blockLen",void 0),i(this,"outputLen",void 0),i(this,"padOffset",void 0),i(this,"isLE",void 0),i(this,"buffer",void 0),i(this,"view",void 0),i(this,"finished",!1),i(this,"length",0),i(this,"pos",0),i(this,"destroyed",!1),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=s,this.buffer=new Uint8Array(e),this.view=(0,r.createView)(this.buffer)}update(e){(0,r.aexists)(this),(0,r.abytes)(e);const{view:t,buffer:n,blockLen:i}=this,s=e.length;for(let o=0;o<s;){const a=Math.min(i-this.pos,s-o);if(a===i){const t=(0,r.createView)(e);for(;i<=s-o;o+=i)this.process(t,o);continue}n.set(e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===i&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,r.aexists)(this),(0,r.aoutput)(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:i,isLE:s}=this;let{pos:o}=this;t[o++]=128,(0,r.clean)(this.buffer.subarray(o)),this.padOffset>i-o&&(this.process(n,0),o=0);for(let e=o;e<i;e++)t[e]=0;n.setBigUint64(i-8,BigInt(8*this.length),s),this.process(n,0);const a=(0,r.createView)(e),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen must be aligned to 32bit");const l=u/4,c=this.get();if(l>c.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)a.setUint32(4*e,c[e],s)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:n,length:r,finished:i,destroyed:s,pos:o}=this;return e.destroyed=s,e.finished=i,e.length=r,e.pos=o,r%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}};n.SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),n.SHA224_IV=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),n.SHA384_IV=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),n.SHA512_IV=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer>@noble/hashes",file:"node_modules/micro-eth-signer/node_modules/@noble/hashes/_md.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/_u64.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.add=k,n.default=n.add5L=n.add5H=n.add4L=n.add4H=n.add3L=n.add3H=void 0,n.fromBig=s,n.shrSL=n.shrSH=n.rotrSL=n.rotrSH=n.rotrBL=n.rotrBH=n.rotr32L=n.rotr32H=n.rotlSL=n.rotlSH=n.rotlBL=n.rotlBH=void 0,n.split=o,n.toBig=void 0;const r=BigInt(2**32-1),i=BigInt(32);function s(e,t=!1){return t?{h:Number(e&r),l:Number(e>>i&r)}:{h:0|Number(e>>i&r),l:0|Number(e&r)}}function o(e,t=!1){const n=e.length;let r=new Uint32Array(n),i=new Uint32Array(n);for(let o=0;o<n;o++){const{h:n,l:a}=s(e[o],t);[r[o],i[o]]=[n,a]}return[r,i]}const a=(e,t)=>BigInt(e>>>0)<<i|BigInt(t>>>0);n.toBig=a;const u=(e,t,n)=>e>>>n;n.shrSH=u;const l=(e,t,n)=>e<<32-n|t>>>n;n.shrSL=l;const c=(e,t,n)=>e>>>n|t<<32-n;n.rotrSH=c;const d=(e,t,n)=>e<<32-n|t>>>n;n.rotrSL=d;const h=(e,t,n)=>e<<64-n|t>>>n-32;n.rotrBH=h;const f=(e,t,n)=>e>>>n-32|t<<64-n;n.rotrBL=f;const m=(e,t)=>t;n.rotr32H=m;const p=(e,t)=>e;n.rotr32L=p;const b=(e,t,n)=>e<<n|t>>>32-n;n.rotlSH=b;const g=(e,t,n)=>t<<n|e>>>32-n;n.rotlSL=g;const y=(e,t,n)=>t<<n-32|e>>>64-n;n.rotlBH=y;const w=(e,t,n)=>e<<n-32|t>>>64-n;function k(e,t,n,r){const i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:0|i}}n.rotlBL=w;const v=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);n.add3L=v;const _=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;n.add3H=_;const x=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);n.add4L=x;const E=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0;n.add4H=E;const j=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0);n.add5L=j;const S=(e,t,n,r,i,s)=>t+n+r+i+s+(e/2**32|0)|0;n.add5H=S;const T={fromBig:s,split:o,toBig:a,shrSH:u,shrSL:l,rotrSH:c,rotrSL:d,rotrBH:h,rotrBL:f,rotr32H:m,rotr32L:p,rotlSH:b,rotlSL:g,rotlBH:y,rotlBL:w,add:k,add3L:v,add3H:_,add4L:x,add4H:E,add5H:S,add5L:j};n.default=T}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer>@noble/hashes",file:"node_modules/micro-eth-signer/node_modules/@noble/hashes/_u64.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/hmac.js",{"./utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/utils.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.hmac=n._HMAC=void 0;var r=e("./utils.js");function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class s{constructor(e,t){if(i(this,"oHash",void 0),i(this,"iHash",void 0),i(this,"blockLen",void 0),i(this,"outputLen",void 0),i(this,"finished",!1),i(this,"destroyed",!1),(0,r.ahash)(e),(0,r.abytes)(t,undefined,"key"),this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const n=this.blockLen,s=new Uint8Array(n);s.set(t.length>n?e.create().update(t).digest():t);for(let e=0;e<s.length;e++)s[e]^=54;this.iHash.update(s),this.oHash=e.create();for(let e=0;e<s.length;e++)s[e]^=106;this.oHash.update(s),(0,r.clean)(s)}update(e){return(0,r.aexists)(this),this.iHash.update(e),this}digestInto(e){(0,r.aexists)(this),(0,r.abytes)(e,this.outputLen,"output"),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:s,outputLen:o}=this;return e.finished=r,e.destroyed=i,e.blockLen=s,e.outputLen=o,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}n._HMAC=s;const o=(e,t,n)=>new s(e,t).update(n).digest();n.hmac=o,o.create=(e,t)=>new s(e,t)}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer>@noble/hashes",file:"node_modules/micro-eth-signer/node_modules/@noble/hashes/hmac.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/sha2.js",{"./_md.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/_md.js","./_u64.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/_u64.js","./utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/utils.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.sha512_256=n.sha512_224=n.sha512=n.sha384=n.sha256=n.sha224=n._SHA512_256=n._SHA512_224=n._SHA512=n._SHA384=n._SHA256=n._SHA224=void 0;var r=e("./_md.js"),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}(e("./_u64.js")),s=e("./utils.js");function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=Uint32Array.from([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]),l=new Uint32Array(64);class c extends r.HashMD{constructor(e){super(64,e,8,!1)}get(){const{A:e,B:t,C:n,D:r,E:i,F:s,G:o,H:a}=this;return[e,t,n,r,i,s,o,a]}set(e,t,n,r,i,s,o,a){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|s,this.G=0|o,this.H=0|a}process(e,t){for(let n=0;n<16;n++,t+=4)l[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=l[e-15],n=l[e-2],r=(0,s.rotr)(t,7)^(0,s.rotr)(t,18)^t>>>3,i=(0,s.rotr)(n,17)^(0,s.rotr)(n,19)^n>>>10;l[e]=i+l[e-7]+r+l[e-16]|0}let{A:n,B:i,C:o,D:a,E:c,F:d,G:h,H:f}=this;for(let e=0;e<64;e++){const t=f+((0,s.rotr)(c,6)^(0,s.rotr)(c,11)^(0,s.rotr)(c,25))+(0,r.Chi)(c,d,h)+u[e]+l[e]|0,m=((0,s.rotr)(n,2)^(0,s.rotr)(n,13)^(0,s.rotr)(n,22))+(0,r.Maj)(n,i,o)|0;f=h,h=d,d=c,c=a+t|0,a=o,o=i,i=n,n=t+m|0}n=n+this.A|0,i=i+this.B|0,o=o+this.C|0,a=a+this.D|0,c=c+this.E|0,d=d+this.F|0,h=h+this.G|0,f=f+this.H|0,this.set(n,i,o,a,c,d,h,f)}roundClean(){(0,s.clean)(l)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,s.clean)(this.buffer)}}class d extends c{constructor(){super(32),a(this,"A",0|r.SHA256_IV[0]),a(this,"B",0|r.SHA256_IV[1]),a(this,"C",0|r.SHA256_IV[2]),a(this,"D",0|r.SHA256_IV[3]),a(this,"E",0|r.SHA256_IV[4]),a(this,"F",0|r.SHA256_IV[5]),a(this,"G",0|r.SHA256_IV[6]),a(this,"H",0|r.SHA256_IV[7])}}n._SHA256=d;class h extends c{constructor(){super(28),a(this,"A",0|r.SHA224_IV[0]),a(this,"B",0|r.SHA224_IV[1]),a(this,"C",0|r.SHA224_IV[2]),a(this,"D",0|r.SHA224_IV[3]),a(this,"E",0|r.SHA224_IV[4]),a(this,"F",0|r.SHA224_IV[5]),a(this,"G",0|r.SHA224_IV[6]),a(this,"H",0|r.SHA224_IV[7])}}n._SHA224=h;const f=(()=>i.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))))(),m=(()=>f[0])(),p=(()=>f[1])(),b=new Uint32Array(80),g=new Uint32Array(80);class y extends r.HashMD{constructor(e){super(128,e,16,!1)}get(){const{Ah:e,Al:t,Bh:n,Bl:r,Ch:i,Cl:s,Dh:o,Dl:a,Eh:u,El:l,Fh:c,Fl:d,Gh:h,Gl:f,Hh:m,Hl:p}=this;return[e,t,n,r,i,s,o,a,u,l,c,d,h,f,m,p]}set(e,t,n,r,i,s,o,a,u,l,c,d,h,f,m,p){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|s,this.Dh=0|o,this.Dl=0|a,this.Eh=0|u,this.El=0|l,this.Fh=0|c,this.Fl=0|d,this.Gh=0|h,this.Gl=0|f,this.Hh=0|m,this.Hl=0|p}process(e,t){for(let n=0;n<16;n++,t+=4)b[n]=e.getUint32(t),g[n]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|b[e-15],n=0|g[e-15],r=i.rotrSH(t,n,1)^i.rotrSH(t,n,8)^i.shrSH(t,n,7),s=i.rotrSL(t,n,1)^i.rotrSL(t,n,8)^i.shrSL(t,n,7),o=0|b[e-2],a=0|g[e-2],u=i.rotrSH(o,a,19)^i.rotrBH(o,a,61)^i.shrSH(o,a,6),l=i.rotrSL(o,a,19)^i.rotrBL(o,a,61)^i.shrSL(o,a,6),c=i.add4L(s,l,g[e-7],g[e-16]),d=i.add4H(c,r,u,b[e-7],b[e-16]);b[e]=0|d,g[e]=0|c}let{Ah:n,Al:r,Bh:s,Bl:o,Ch:a,Cl:u,Dh:l,Dl:c,Eh:d,El:h,Fh:f,Fl:y,Gh:w,Gl:k,Hh:v,Hl:_}=this;for(let e=0;e<80;e++){const t=i.rotrSH(d,h,14)^i.rotrSH(d,h,18)^i.rotrBH(d,h,41),x=i.rotrSL(d,h,14)^i.rotrSL(d,h,18)^i.rotrBL(d,h,41),E=d&f^~d&w,j=h&y^~h&k,S=i.add5L(_,x,j,p[e],g[e]),T=i.add5H(S,v,t,E,m[e],b[e]),O=0|S,I=i.rotrSH(n,r,28)^i.rotrBH(n,r,34)^i.rotrBH(n,r,39),A=i.rotrSL(n,r,28)^i.rotrBL(n,r,34)^i.rotrBL(n,r,39),B=n&s^n&a^s&a,R=r&o^r&u^o&u;v=0|w,_=0|k,w=0|f,k=0|y,f=0|d,y=0|h,({h:d,l:h}=i.add(0|l,0|c,0|T,0|O)),l=0|a,c=0|u,a=0|s,u=0|o,s=0|n,o=0|r;const L=i.add3L(O,A,R);n=i.add3H(L,T,I,B),r=0|L}({h:n,l:r}=i.add(0|this.Ah,0|this.Al,0|n,0|r)),({h:s,l:o}=i.add(0|this.Bh,0|this.Bl,0|s,0|o)),({h:a,l:u}=i.add(0|this.Ch,0|this.Cl,0|a,0|u)),({h:l,l:c}=i.add(0|this.Dh,0|this.Dl,0|l,0|c)),({h:d,l:h}=i.add(0|this.Eh,0|this.El,0|d,0|h)),({h:f,l:y}=i.add(0|this.Fh,0|this.Fl,0|f,0|y)),({h:w,l:k}=i.add(0|this.Gh,0|this.Gl,0|w,0|k)),({h:v,l:_}=i.add(0|this.Hh,0|this.Hl,0|v,0|_)),this.set(n,r,s,o,a,u,l,c,d,h,f,y,w,k,v,_)}roundClean(){(0,s.clean)(b,g)}destroy(){(0,s.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class w extends y{constructor(){super(64),a(this,"Ah",0|r.SHA512_IV[0]),a(this,"Al",0|r.SHA512_IV[1]),a(this,"Bh",0|r.SHA512_IV[2]),a(this,"Bl",0|r.SHA512_IV[3]),a(this,"Ch",0|r.SHA512_IV[4]),a(this,"Cl",0|r.SHA512_IV[5]),a(this,"Dh",0|r.SHA512_IV[6]),a(this,"Dl",0|r.SHA512_IV[7]),a(this,"Eh",0|r.SHA512_IV[8]),a(this,"El",0|r.SHA512_IV[9]),a(this,"Fh",0|r.SHA512_IV[10]),a(this,"Fl",0|r.SHA512_IV[11]),a(this,"Gh",0|r.SHA512_IV[12]),a(this,"Gl",0|r.SHA512_IV[13]),a(this,"Hh",0|r.SHA512_IV[14]),a(this,"Hl",0|r.SHA512_IV[15])}}n._SHA512=w;class k extends y{constructor(){super(48),a(this,"Ah",0|r.SHA384_IV[0]),a(this,"Al",0|r.SHA384_IV[1]),a(this,"Bh",0|r.SHA384_IV[2]),a(this,"Bl",0|r.SHA384_IV[3]),a(this,"Ch",0|r.SHA384_IV[4]),a(this,"Cl",0|r.SHA384_IV[5]),a(this,"Dh",0|r.SHA384_IV[6]),a(this,"Dl",0|r.SHA384_IV[7]),a(this,"Eh",0|r.SHA384_IV[8]),a(this,"El",0|r.SHA384_IV[9]),a(this,"Fh",0|r.SHA384_IV[10]),a(this,"Fl",0|r.SHA384_IV[11]),a(this,"Gh",0|r.SHA384_IV[12]),a(this,"Gl",0|r.SHA384_IV[13]),a(this,"Hh",0|r.SHA384_IV[14]),a(this,"Hl",0|r.SHA384_IV[15])}}n._SHA384=k;const v=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),_=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class x extends y{constructor(){super(28),a(this,"Ah",0|v[0]),a(this,"Al",0|v[1]),a(this,"Bh",0|v[2]),a(this,"Bl",0|v[3]),a(this,"Ch",0|v[4]),a(this,"Cl",0|v[5]),a(this,"Dh",0|v[6]),a(this,"Dl",0|v[7]),a(this,"Eh",0|v[8]),a(this,"El",0|v[9]),a(this,"Fh",0|v[10]),a(this,"Fl",0|v[11]),a(this,"Gh",0|v[12]),a(this,"Gl",0|v[13]),a(this,"Hh",0|v[14]),a(this,"Hl",0|v[15])}}n._SHA512_224=x;class E extends y{constructor(){super(32),a(this,"Ah",0|_[0]),a(this,"Al",0|_[1]),a(this,"Bh",0|_[2]),a(this,"Bl",0|_[3]),a(this,"Ch",0|_[4]),a(this,"Cl",0|_[5]),a(this,"Dh",0|_[6]),a(this,"Dl",0|_[7]),a(this,"Eh",0|_[8]),a(this,"El",0|_[9]),a(this,"Fh",0|_[10]),a(this,"Fl",0|_[11]),a(this,"Gh",0|_[12]),a(this,"Gl",0|_[13]),a(this,"Hh",0|_[14]),a(this,"Hl",0|_[15])}}n._SHA512_256=E;n.sha256=(0,s.createHasher)(()=>new d,(0,s.oidNist)(1)),n.sha224=(0,s.createHasher)(()=>new h,(0,s.oidNist)(4)),n.sha512=(0,s.createHasher)(()=>new w,(0,s.oidNist)(3)),n.sha384=(0,s.createHasher)(()=>new k,(0,s.oidNist)(2)),n.sha512_256=(0,s.createHasher)(()=>new E,(0,s.oidNist)(6)),n.sha512_224=(0,s.createHasher)(()=>new x,(0,s.oidNist)(5))}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer>@noble/hashes",file:"node_modules/micro-eth-signer/node_modules/@noble/hashes/sha2.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/sha3.js",{"./_u64.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/_u64.js","./utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/utils.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Keccak=void 0,n.keccakP=k,n.shake256_64=n.shake256=n.shake128_32=n.shake128=n.sha3_512=n.sha3_384=n.sha3_256=n.sha3_224=n.keccak_512=n.keccak_384=n.keccak_256=n.keccak_224=void 0;var r=e("./_u64.js"),i=e("./utils.js");function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const o=BigInt(0),a=BigInt(1),u=BigInt(2),l=BigInt(7),c=BigInt(256),d=BigInt(113),h=[],f=[],m=[];for(let e=0,t=a,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],h.push(2*(5*r+n)),f.push((e+1)*(e+2)/2%64);let i=o;for(let e=0;e<7;e++)t=(t<<a^(t>>l)*d)%c,t&u&&(i^=a<<(a<<BigInt(e))-a);m.push(i)}const p=(0,r.split)(m,!0),b=p[0],g=p[1],y=(e,t,n)=>n>32?(0,r.rotlBH)(e,t,n):(0,r.rotlSH)(e,t,n),w=(e,t,n)=>n>32?(0,r.rotlBL)(e,t,n):(0,r.rotlSL)(e,t,n);function k(e,t=24){const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const r=(t+8)%10,i=(t+2)%10,s=n[i],o=n[i+1],a=y(s,o,1)^n[r],u=w(s,o,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=a,e[t+n+1]^=u}let t=e[2],i=e[3];for(let n=0;n<24;n++){const r=f[n],s=y(t,i,r),o=w(t,i,r),a=h[n];t=e[a],i=e[a+1],e[a]=s,e[a+1]=o}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=b[r],e[1]^=g[r]}(0,i.clean)(n)}class v{constructor(e,t,n,r=!1,o=24){if(s(this,"state",void 0),s(this,"pos",0),s(this,"posOut",0),s(this,"finished",!1),s(this,"state32",void 0),s(this,"destroyed",!1),s(this,"blockLen",void 0),s(this,"suffix",void 0),s(this,"outputLen",void 0),s(this,"enableXOF",!1),s(this,"rounds",void 0),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=o,(0,i.anumber)(n,"outputLen"),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,i.swap32IfBE)(this.state32),k(this.state32,this.rounds),(0,i.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,i.aexists)(this),(0,i.abytes)(e);const{blockLen:t,state:n}=this,r=e.length;for(let i=0;i<r;){const s=Math.min(t-this.pos,r-i);for(let t=0;t<s;t++)n[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,128&t&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){(0,i.aexists)(this,!1),(0,i.abytes)(e),this.finish();const t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();const s=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+s),r),this.posOut+=s,r+=s}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,i.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,i.aoutput)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,i.clean)(this.state)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:s}=this;return e||(e=new v(t,n,r,s,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=s,e.destroyed=this.destroyed,e}}n.Keccak=v;const _=(e,t,n,r={})=>(0,i.createHasher)(()=>new v(t,e,n),r),x=(n.sha3_224=_(6,144,28,(0,i.oidNist)(7)),n.sha3_256=_(6,136,32,(0,i.oidNist)(8)),n.sha3_384=_(6,104,48,(0,i.oidNist)(9)),n.sha3_512=_(6,72,64,(0,i.oidNist)(10)),n.keccak_224=_(1,144,28),n.keccak_256=_(1,136,32),n.keccak_384=_(1,104,48),n.keccak_512=_(1,72,64),(e,t,n,r={})=>(0,i.createHasher)((r={})=>new v(t,e,r.dkLen===undefined?n:r.dkLen,!0),r));n.shake128=x(31,168,16,(0,i.oidNist)(11)),n.shake256=x(31,136,32,(0,i.oidNist)(12)),n.shake128_32=x(31,168,32,(0,i.oidNist)(11)),n.shake256_64=x(31,136,64,(0,i.oidNist)(12))}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer>@noble/hashes",file:"node_modules/micro-eth-signer/node_modules/@noble/hashes/sha3.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/utils.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
function r(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function i(e,t=""){if(!Number.isSafeInteger(e)||e<0){throw new Error(`${t&&`"${t}" `}expected integer >= 0, got ${e}`)}}function s(e,t,n=""){const i=r(e),s=e?.length,o=t!==undefined;if(!i||o&&s!==t){throw new Error((n&&`"${n}" `)+"expected Uint8Array"+(o?` of length ${t}`:"")+", got "+(i?`length=${s}`:"type="+typeof e))}return e}Object.defineProperty(n,"__esModule",{value:!0}),n.abytes=s,n.aexists=function(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},n.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash must wrapped by utils.createHasher");i(e.outputLen),i(e.blockLen)},n.anumber=i,n.aoutput=function(e,t){s(e,undefined,"digestInto() output");const n=t.outputLen;if(e.length<n)throw new Error('"digestInto() output" expected to be of length >='+n)},n.asyncLoop=async function(e,t,n){let r=Date.now();for(let i=0;i<e;i++){n(i);const e=Date.now()-r;e>=0&&e<t||(await f(),r+=e)}},n.byteSwap=a,n.byteSwap32=u,n.bytesToHex=function(e){if(s(e),l)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=c[e[n]];return t},n.checkOpts=function(e,t){if(t!==undefined&&"[object Object]"!=={}.toString.call(t))throw new Error("options must be object or undefined");return Object.assign(e,t)},n.clean=function(...e){for(let t=0;t<e.length;t++)e[t].fill(0)},n.concatBytes=function(...e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];s(r),t+=r.length}const n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){const i=e[t];n.set(i,r),r+=i.length}return n},n.createHasher=function(e,t={}){const n=(t,n)=>e(n).update(t).digest(),r=e(undefined);return n.outputLen=r.outputLen,n.blockLen=r.blockLen,n.create=t=>e(t),Object.assign(n,t),Object.freeze(n)},n.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},n.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(l)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let t=0,i=0;t<n;t++,i+=2){const n=h(e.charCodeAt(i)),s=h(e.charCodeAt(i+1));if(n===undefined||s===undefined){const t=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+i)}r[t]=16*n+s}return r},n.isBytes=r,n.isLE=void 0,n.kdfInputToBytes=function(e,t=""){return"string"==typeof e?m(e):s(e,undefined,t)},n.oidNist=n.nextTick=void 0,n.randomBytes=function(e=32){const t="object"==typeof globalThis?globalThis.crypto:null;if("function"!=typeof t?.getRandomValues)throw new Error("crypto.getRandomValues must be defined");return t.getRandomValues(new Uint8Array(e))},n.rotl=function(e,t){return e<<t|e>>>32-t>>>0},n.rotr=function(e,t){return e<<32-t|e>>>t},n.swap8IfBE=n.swap32IfBE=void 0,n.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},n.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},n.utf8ToBytes=m;const o=n.isLE=(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])();function a(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}n.swap8IfBE=o?e=>e:e=>a(e);function u(e){for(let t=0;t<e.length;t++)e[t]=a(e[t]);return e}n.swap32IfBE=o?e=>e:u;const l=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),c=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));const d={_0:48,_9:57,A:65,F:70,a:97,f:102};function h(e){return e>=d._0&&e<=d._9?e-d._0:e>=d.A&&e<=d.F?e-(d.A-10):e>=d.a&&e<=d.f?e-(d.a-10):void 0}const f=async()=>{};function m(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}n.nextTick=f;n.oidNist=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])})}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer>@noble/hashes",file:"node_modules/micro-eth-signer/node_modules/@noble/hashes/utils.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/utils.js",{"@noble/curves/secp256k1.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/curves/secp256k1.js","@noble/hashes/utils.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-eth-signer/node_modules/@noble/hashes/utils.js","micro-packed":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-packed/index.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.add0x=h,n.amounts=void 0,n.astr=function(e){if("string"!=typeof e)throw new Error("string expected")},n.cloneDeep=function e(t){if(o(t))return Uint8Array.from(t);if(Array.isArray(t))return t.map(e);if("bigint"==typeof t)return BigInt(t);if("object"==typeof t){let n={};for(let r in t)n[r]=e(t[r]);return n}return t},n.gweiDecimal=n.formatters=n.ethHexNoLeadingZero=n.ethHex=n.ethDecimal=n.createDecimal=void 0,n.hexToNumber=function(e){if("string"!=typeof e)throw new TypeError("expected hex string, got "+typeof e);return e?BigInt(h(e)):BigInt(0)},n.initSig=function(e,t){return(o(e)?r.secp256k1.Signature.fromBytes(e,"compact"):new r.secp256k1.Signature(e.r,e.s)).addRecoveryBit(t)},n.isBytes=void 0,n.isObject=function(e){return null!=e&&"object"==typeof e},n.numberTo0xHex=function(e){const t=e.toString(16);return h(1&t.length?`0${t}`:t)},n.omit=function(e,...t){let n=Object.assign({},e);for(let e of t)delete n[e];return n},n.sign=function(e,t,n=!0){const i=r.secp256k1.sign(e,t,{prehash:!1,extraEntropy:n,format:"recovered"});if([2,3].includes(i[0]))throw new Error("invalid signature rec=2 or 3");return r.secp256k1.Signature.fromBytes(i,"recovered")},n.strip0x=f,n.verify=function(e,t,n){return r.secp256k1.verify(e,t,n,{prehash:!1})},n.weigwei=n.weieth=void 0,n.zip=function(e,t){let n=[];for(let r=0;r<Math.max(e.length,t.length);r++)n.push([e[r],t[r]]);return n};var r=e("@noble/curves/secp256k1.js"),i=e("@noble/hashes/utils.js"),s=e("micro-packed");const o=n.isBytes=i.isBytes,a=BigInt(10)**BigInt(9),u=BigInt(10)**BigInt(18),l=(n.amounts=(()=>({GWEI_PRECISION:9,ETH_PRECISION:18,GWEI:a,ETHER:u,maxAmount:BigInt(1e6)*u,minGasLimit:BigInt(21e3),maxGasLimit:BigInt(3e7),maxGasPrice:BigInt(1e4)*a,maxNonce:BigInt(131072),maxDataSize:1e6,maxInitDataSize:524288,maxChainId:BigInt(2**32-1),maxUint64:BigInt(2)**BigInt(64)-BigInt(1),maxUint256:BigInt(2)**BigInt(256)-BigInt(1)}))(),/^0+/),c=(e=!0)=>({decode:e=>{if("string"!=typeof e)throw new Error("hex data must be a string");let t=f(e);return t=1&t.length?`0${t}`:t,(0,i.hexToBytes)(t)},encode:t=>{let n=(0,i.bytesToHex)(t);return e||(n=n.replace(l,"")),h(n)}}),d=(n.ethHex=c(!0),n.ethHexNoLeadingZero=c(!1),/^0[xX]/);function h(e){return d.test(e)?e:`0x${e}`}function f(e){return e.replace(d,"")}const m=n.createDecimal=s.coders.decimal,p=n.weieth=m(18),b=n.weigwei=m(9),g=(n.ethDecimal=p,n.gweiDecimal=b,n.formatters={perCentDecimal(e,t){const n=p,r=n.decode(""+t);return n.decode("0.01")*BigInt(10)**BigInt(e)/r},formatBigint(e,t,n,r=!1){const i=t.toString().length,s=(e/t).toString();let o=(e%t).toString();o=`${"0".repeat(Math.max(0,i-o.length-1))}${o}`;const a=o.replace(/0+$/,""),u=(r?o:a).slice(0,n);if(!r&&(""===u||0===parseInt(u,10)))return s;const l=e=>e.replace(/0+$/,"");return`${BigInt(`1${l(u)}`)===BigInt(`1${l(o)}`)?"":"~"}${s}.${u}`},fromWei(e){const t=10**9,n=BigInt(10)**BigInt(18);return(e=BigInt(e))<BigInt(t)/BigInt(10)?e+"wei":e>=BigInt(t)&&e<n/BigInt(1e3)?g.formatBigint(e,BigInt(t),9,!1)+"μeth":g.formatBigint(e,n,18,!1)+"eth"}})}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer",file:"node_modules/micro-eth-signer/utils.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-ftch/index.js",{_process:"/home/runner/work/metamask-extension/metamask-extension/node_modules/process/browser.js",buffer:"/home/runner/work/metamask-extension/metamask-extension/node_modules/browserify/node_modules/buffer/index.js",http:"/home/runner/work/metamask-extension/metamask-extension/node_modules/stream-http/index.js",https:"/home/runner/work/metamask-extension/metamask-extension/node_modules/https-browserify/index.js",url:"/home/runner/work/metamask-extension/metamask-extension/node_modules/url/url.js",util:"/home/runner/work/metamask-extension/metamask-extension/node_modules/util/util.js",zlib:"/home/runner/work/metamask-extension/metamask-extension/node_modules/browserify-zlib/lib/index.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){(function(t,r){(function(){Object.defineProperty(n,"__esModule",{value:!0}),n.InvalidStatusCodeError=n.InvalidCertError=void 0;const i=Object.freeze({redirect:!0,expectStatusCode:200,headers:{},full:!1,keepAlive:!0,cors:!1,referrer:!1,sslAllowSelfSigned:!1,_redirectCount:0});class s extends Error{constructor(e,t){super(e),this.fingerprint256=t}}n.InvalidCertError=s;class o extends Error{constructor(e){super(`Request Failed. Status Code: ${e}`),this.statusCode=e}}function a(e,t){if(!t||"text"===t||"json"===t)try{let n=new TextDecoder("utf8",{fatal:!0}).decode(e);if("text"===t)return n;try{return JSON.parse(n)}catch(e){if("json"===t)throw e;return n}}catch(e){if("text"===t||"json"===t)throw e}return e}n.InvalidStatusCodeError=o;let u={};function l(t,n){let c={...i,...n};const d=e("http"),h=e("https"),f=e("zlib"),{promisify:m}=e("util"),{resolve:p}=e("url"),b=!!/^https/.test(t);let g={method:c.method||"GET",headers:{"Accept-Encoding":"gzip, deflate, br"}};const y=e=>e.replace(/:| /g,"").toLowerCase();if(c.keepAlive){const e={keepAlive:!0,keepAliveMsecs:3e4,maxFreeSockets:1024,maxCachedSessions:1024},t=[b,b&&c.sslPinnedCertificates?.map(e=>y(e)).sort()].join();g.agent=u[t]||(u[t]=new(b?h:d).Agent(e))}"json"===c.type&&(g.headers["Content-Type"]="application/json"),c.data&&(c.method||(g.method="POST"),g.body="json"===c.type?JSON.stringify(c.data):c.data),g.headers={...g.headers,...c.headers},c.sslAllowSelfSigned&&(g.rejectUnauthorized=!1);return new Promise((e,n)=>{const i=async e=>{if(e&&"DEPTH_ZERO_SELF_SIGNED_CERT"===e.code)try{await l(t,{...c,sslAllowSelfSigned:!0,sslPinnedCertificates:[]})}catch(t){t&&t.fingerprint256&&(e=new s(`Self-signed SSL certificate: ${t.fingerprint256}`,t.fingerprint256))}n(e)},u=(b?h:d).request(t,g,s=>{s.on("error",i),(async()=>{try{e(await(async e=>{const n=e.statusCode;if(c.redirect&&300<=n&&n<400&&e.headers.location){if(10==c._redirectCount)throw new Error("Request failed. Too much redirects.");return c._redirectCount+=1,await l(p(t,e.headers.location),c)}if(c.expectStatusCode&&n!==c.expectStatusCode)throw e.resume(),new o(n);let i=[];for await(const t of e)i.push(t);let s=r.concat(i);const u=e.headers["content-encoding"];"br"===u&&(s=await m(f.brotliDecompress)(s)),"gzip"!==u&&"deflate"!==u||(s=await m(f.unzip)(s));const d=a(s,c.type);return c.full?{headers:e.headers,status:n,body:d}:d})(s))}catch(e){n(e)}})()});u.on("error",i);const w=c.sslPinnedCertificates?.map(e=>y(e)),k=e=>{const t=y(e.getPeerCertificate()?.fingerprint256||"");if((t||!e.isSessionReused())&&!w.includes(t))return u.emit("error",new s(`Invalid SSL certificate: ${t} Expected: ${w}`,t)),u.abort()};c.sslPinnedCertificates&&u.on("socket",e=>{e.listeners("secureConnect").map(e=>(e.name||"").replace("bound ","")).includes("mfetchSecureConnect")||e.on("secureConnect",k.bind(null,e))}),c.keepAlive&&u.setNoDelay(!0),g.body&&u.write(g.body),u.end()})}const c=new Set(["Accept","Accept-Language","Content-Language","Content-Type"].map(e=>e.toLowerCase())),d=new Set(["Accept-Charset","Accept-Encoding","Access-Control-Request-Headers","Access-Control-Request-Method","Connection","Content-Length","Cookie","Cookie2","Date","DNT","Expect","Host","Keep-Alive","Origin","Referer","TE","Trailer","Transfer-Encoding","Upgrade","Via"].map(e=>e.toLowerCase()));async function h(e,t){let n={...i,...t};const r=new Headers;"json"===n.type&&r.set("Content-Type","application/json");let s=new URL(e);if(s.username){const e=btoa(`${s.username}:${s.password}`);r.set("Authorization",`Basic ${e}`),s.username="",s.password=""}e=""+s;for(let e in n.headers){const t=e.toLowerCase();(c.has(t)||n.cors&&!d.has(t))&&r.set(e,n.headers[e])}let u={headers:r,redirect:n.redirect?"follow":"manual"};n.referrer||(u.referrerPolicy="no-referrer"),n.cors&&(u.mode="cors"),n.data&&(n.method||(u.method="POST"),u.body="json"===n.type?JSON.stringify(n.data):n.data);const l=await fetch(e,u);if(n.expectStatusCode&&l.status!==n.expectStatusCode)throw new o(l.status);const h=a(new Uint8Array(await l.arrayBuffer()),n.type);return n.full?{headers:Object.fromEntries(l.headers.entries()),status:l.status,body:h}:h}const f=!!("object"==typeof t&&t.versions&&t.versions.node&&t.versions.v8);n.default=function(e,t){return(f?l:h)(e,t)}}).call(this)}).call(this,e("_process"),e("buffer").Buffer)}}},{package:"eth-lattice-keyring>@ethereumjs/util>micro-ftch",file:"node_modules/micro-ftch/index.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-packed/index.js",{"@scure/base":"/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-packed/node_modules/@scure/base/index.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n._TEST=n.ZeroPad=n.U8=n.U64LE=n.U64BE=n.U32LE=n.U32BE=n.U256LE=n.U256BE=n.U16LE=n.U16BE=n.U128LE=n.U128BE=n.NULL=n.I8=n.I64LE=n.I64BE=n.I32LE=n.I32BE=n.I256LE=n.I256BE=n.I16LE=n.I16BE=n.I128LE=n.I128BE=n.F64LE=n.F64BE=n.F32LE=n.F32BE=n.EMPTY=void 0,n.apply=L,n.array=function(e,t){if(!_(t))throw new Error(`array: invalid inner value ${t}`);const n=d("string"==typeof e?`../${e}`:e);return k({size:"number"==typeof e&&t.size?e*t.size:undefined,encodeStream:(r,i)=>{const s=r;s.pushObj(i,u=>{a(e)||n.encodeStream(r,i.length);for(let n=0;n<i.length;n++)u(`${n}`,()=>{const u=i[n],l=r.pos;if(t.encodeStream(r,u),a(e)){if(e.length>s.pos-l)return;const t=s.finish(!1).subarray(l,s.pos);if(o(t.subarray(0,e.length),e))throw s.err(`array: inner element encoding same as separator. elm=${u} data=${t}`)}})}),a(e)&&r.bytes(e)},decodeStream:r=>{const i=[];return r.pushObj(i,s=>{if(null===e)for(let e=0;!r.isEnd()&&(s(`${e}`,()=>i.push(t.decodeStream(r))),!(t.size&&r.leftBytes<t.size));e++);else if(a(e))for(let n=0;;n++){if(o(r.bytes(e.length,!0),e)){r.bytes(e.length);break}s(`${n}`,()=>i.push(t.decodeStream(r)))}else{let e;s("arrayLen",()=>e=n.decodeStream(r));for(let n=0;n<e;n++)s(`${n}`,()=>i.push(t.decodeStream(r)))}}),i},validate:e=>{if(!Array.isArray(e))throw new Error(`array: invalid value ${e}`);return e}})},n.bits=n.bigint=void 0,n.bitset=function(e,t=!1){if("boolean"!=typeof t)throw new Error("bitset/pad: expected boolean, got "+typeof t);if(!Array.isArray(e))throw new Error("bitset/names: expected array");for(const t of e)if("string"!=typeof t)throw new Error("bitset/names: expected array of strings");return k({encodeStream:(n,r)=>{for(let t=0;t<e.length;t++)n.bits(+r[e[t]],1);t&&e.length%8&&n.bits(0,8-e.length%8)},decodeStream:n=>{const r={};for(let t=0;t<e.length;t++)r[e[t]]=!!n.bits(1);return t&&e.length%8&&n.bits(8-e.length%8),r},validate:e=>{if(!l(e))throw new Error(`bitset: invalid value ${e}`);for(const t of Object.values(e))if("boolean"!=typeof t)throw new Error("expected boolean");return e}})},n.coders=n.bytes=n.bool=void 0,n.constant=function(e){return k({encodeStream:(t,n)=>{if(n!==e)throw new Error(`constant: invalid value ${n} (exp: ${e})`)},decodeStream:t=>e})},n.flag=n.cstring=void 0,n.flagged=function(e,t,n){if(!_(t))throw new Error(`flagged: invalid inner value ${t}`);if("string"!=typeof e&&!_(t))throw new Error(`flagged: wrong path=${e}`);return k({encodeStream:(r,i)=>{"string"==typeof e?f.resolve(r.stack,e)?t.encodeStream(r,i):n&&t.encodeStream(r,n):(e.encodeStream(r,!!i),i?t.encodeStream(r,i):n&&t.encodeStream(r,n))},decodeStream:r=>{let i=!1;if(i="string"==typeof e?!!f.resolve(r.stack,e):e.decodeStream(r),i)return t.decodeStream(r);n&&t.decodeStream(r)}})},n.int=n.hex=void 0,n.isCoder=_,n.lazy=function(e){if("function"!=typeof e)throw new Error("lazy: expected function, got "+typeof e);return k({encodeStream:(t,n)=>e().encodeStream(t,n),decodeStream:t=>e().decodeStream(t)})},n.magic=P,n.magicBytes=void 0,n.map=M,n.mappedTag=function(e,t){if(!_(e))throw new Error(`mappedTag: invalid tag value ${z}`);if(!l(t))throw new Error("mappedTag: variants should be plain object");const n={},r={};for(const e in t){const i=t[e];n[e]=i[0],r[e]=i[1]}return z(M(e,n),r)},n.optional=function(e,t,n){if(!_(e)||!_(t))throw new Error(`optional: invalid flag or inner value flag=${e} inner=${t}`);return k({size:n!==undefined&&e.size&&t.size?e.size+t.size:undefined,encodeStream:(r,i)=>{e.encodeStream(r,!!i),i?t.encodeStream(r,i):n!==undefined&&t.encodeStream(r,n)},decodeStream:r=>{if(e.decodeStream(r))return t.decodeStream(r);n!==undefined&&t.decodeStream(r)}})},n.padLeft=function(e,t,n){if(!c(e)||e<=0)throw new Error(`padLeft: wrong blockSize=${e}`);if(!_(t))throw new Error(`padLeft: invalid inner value ${t}`);if(n!==undefined&&"function"!=typeof n)throw new Error("padLeft: wrong padFn="+typeof n);const r=n||D;if(!t.size)throw new Error("padLeft cannot have dynamic size");return k({size:t.size+C(e,t.size),encodeStream:(n,i)=>{const s=C(e,t.size);for(let e=0;e<s;e++)n.byte(r(e));t.encodeStream(n,i)},decodeStream:n=>(n.bytes(C(e,t.size)),t.decodeStream(n))})},n.padRight=function(e,t,n){if(!_(t))throw new Error(`padRight: invalid inner value ${t}`);if(!c(e)||e<=0)throw new Error(`padLeft: wrong blockSize=${e}`);if(n!==undefined&&"function"!=typeof n)throw new Error("padRight: wrong padFn="+typeof n);const r=n||D;return k({size:t.size?t.size+C(e,t.size):undefined,encodeStream:(n,i)=>{const s=n,o=s.pos;t.encodeStream(n,i);const a=C(e,s.pos-o);for(let e=0;e<a;e++)n.byte(r(e))},decodeStream:n=>{const r=n.pos,i=t.decodeStream(n);return n.bytes(C(e,n.pos-r)),i}})},n.pointer=function(e,t,n=!1){if(!_(e))throw new Error(`pointer: invalid ptr value ${e}`);if(!_(t))throw new Error(`pointer: invalid inner value ${t}`);if("boolean"!=typeof n)throw new Error("pointer/sized: expected boolean, got "+typeof n);if(!e.size)throw new Error("unsized pointer");return k({size:n?e.size:undefined,encodeStream:(n,r)=>{const i=n,s=i.pos;e.encodeStream(n,0),i.ptrs.push({pos:s,ptr:e,buffer:t.encode(r)})},decodeStream:n=>{const r=e.decodeStream(n);return n._enablePointers(),t.decodeStream(n.offsetReader(r))}})},n.prefix=function(e,t){if(!_(t))throw new Error(`prefix: invalid inner value ${t}`);return L(B(e),E(t))},n.string=void 0,n.struct=function(e){if(!l(e))throw new Error(`struct: expected plain object, got ${e}`);for(const t in e)if(!_(e[t]))throw new Error(`struct: field ${t} is not CoderType`);return k({size:N(Object.values(e)),encodeStream:(t,n)=>{t.pushObj(n,r=>{for(const i in e)r(i,()=>e[i].encodeStream(t,n[i]))})},decodeStream:t=>{const n={};return t.pushObj(n,r=>{for(const i in e)r(i,()=>n[i]=e[i].decodeStream(t))}),n},validate:e=>{if("object"!=typeof e||null===e)throw new Error(`struct: invalid value ${e}`);return e}})},n.tag=z,n.tuple=function(e){if(!Array.isArray(e))throw new Error(`Packed.Tuple: got ${typeof e} instead of array`);for(let t=0;t<e.length;t++)if(!_(e[t]))throw new Error(`tuple: field ${t} is not CoderType`);return k({size:N(e),encodeStream:(t,n)=>{if(!Array.isArray(n))throw t.err(`tuple: invalid value ${n}`);t.pushObj(n,r=>{for(let i=0;i<e.length;i++)r(`${i}`,()=>e[i].encodeStream(t,n[i]))})},decodeStream:t=>{const n=[];return t.pushObj(n,r=>{for(let i=0;i<e.length;i++)r(`${i}`,()=>n.push(e[i].decodeStream(t)))}),n},validate:t=>{if(!Array.isArray(t))throw new Error(`tuple: invalid value ${t}`);if(t.length!==e.length)throw new Error(`tuple: wrong length=${t.length}, expected ${e.length}`);return t}})},n.utils=void 0,n.validate=w,n.wrap=void 0;var r=e("@scure/base");function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.EMPTY=Uint8Array.of();const s=n.NULL=Uint8Array.of(0);function o(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function a(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}const u=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){return Number.isSafeInteger(e)}n.utils={equalBytes:o,isBytes:a,isCoder:_,checkBounds:g,concatBytes:function(...e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];if(!a(r))throw new Error("Uint8Array expected");t+=r.length}const n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){const i=e[t];n.set(i,r),r+=i.length}return n},createView:u,isPlainObject:l};const d=e=>{if(null!==e&&"string"!=typeof e&&!_(e)&&!a(e)&&!c(e))throw new Error(`lengthCoder: expected null | number | Uint8Array | CoderType, got ${e} (${typeof e})`);return{encodeStream(t,n){if(null===e)return;if(_(e))return e.encodeStream(t,n);let r;if("number"==typeof e?r=e:"string"==typeof e&&(r=f.resolve(t.stack,e)),"bigint"==typeof r&&(r=Number(r)),r===undefined||r!==n)throw t.err(`Wrong length: ${r} len=${e} exp=${n} (${typeof n})`)},decodeStream(t){let n;if(_(e)?n=Number(e.decodeStream(t)):"number"==typeof e?n=e:"string"==typeof e&&(n=f.resolve(t.stack,e)),"bigint"==typeof n&&(n=Number(n)),"number"!=typeof n)throw t.err(`Wrong length: ${n}`);return n}}},h={BITS:32,FULL_MASK:-1>>>0,len:e=>Math.ceil(e/32),create:e=>new Uint32Array(h.len(e)),clean:e=>e.fill(0),debug:e=>Array.from(e).map(e=>(e>>>0).toString(2).padStart(32,"0")),checkLen:(e,t)=>{if(h.len(t)!==e.length)throw new Error(`wrong length=${e.length}. Expected: ${h.len(t)}`)},chunkLen:(e,t,n)=>{if(t<0)throw new Error(`wrong pos=${t}`);if(t+n>e)throw new Error(`wrong range=${t}/${n} of ${e}`)},set:(e,t,n,r=!0)=>!(!r&&0!==(e[t]&n))&&(e[t]|=n,!0),pos:(e,t)=>({chunk:Math.floor((e+t)/32),mask:1<<32-(e+t)%32-1}),indices:(e,t,n=!1)=>{h.checkLen(e,t);const{FULL_MASK:r,BITS:i}=h,s=i-t%i,o=s?r>>>s<<s:r,a=[];for(let t=0;t<e.length;t++){let r=e[t];if(n&&(r=~r),t===e.length-1&&(r&=o),0!==r)for(let e=0;e<i;e++){r&1<<i-e-1&&a.push(t*i+e)}}return a},range:e=>{const t=[];let n;for(const r of e)n===undefined||r!==n.pos+n.length?t.push(n={pos:r,length:1}):n.length+=1;return t},rangeDebug:(e,t,n=!1)=>`[${h.range(h.indices(e,t,n)).map(e=>`(${e.pos}/${e.length})`).join(", ")}]`,setRange:(e,t,n,r,i=!0)=>{h.chunkLen(t,n,r);const{FULL_MASK:s,BITS:o}=h,a=n%o?Math.floor(n/o):undefined,u=n+r,l=u%o?Math.floor(u/o):undefined;if(a!==undefined&&a===l)return h.set(e,a,s>>>o-r<<o-r-n,i);if(a!==undefined&&!h.set(e,a,s>>>n%o,i))return!1;const c=a!==undefined?a+1:n/o,d=l!==undefined?l:u/o;for(let t=c;t<d;t++)if(!h.set(e,t,s,i))return!1;return!(l!==undefined&&a!==l&&!h.set(e,l,s<<o-u%o,i))}},f={pushObj:(e,t,n)=>{const r={obj:t};e.push(r),n((e,t)=>{r.field=e,t(),r.field=undefined}),e.pop()},path:e=>{const t=[];for(const n of e)n.field!==undefined&&t.push(n.field);return t.join("/")},err:(e,t,n)=>{const r=new Error(`${e}(${f.path(t)}): ${"string"==typeof n?n:n.message}`);return n instanceof Error&&n.stack&&(r.stack=n.stack),r},resolve:(e,t)=>{const n=t.split("/"),r=e.map(e=>e.obj);let i=0;for(;i<n.length&&".."===n[i];i++)r.pop();let s=r.pop();for(;i<n.length;i++){if(!s||s[n[i]]===undefined)return undefined;s=s[n[i]]}return s}};class m{constructor(e,t={},n=[],r=undefined,s=0){i(this,"pos",0),i(this,"data",void 0),i(this,"opts",void 0),i(this,"stack",void 0),i(this,"parent",void 0),i(this,"parentOffset",void 0),i(this,"bitBuf",0),i(this,"bitPos",0),i(this,"bs",void 0),i(this,"view",void 0),this.data=e,this.opts=t,this.stack=n,this.parent=r,this.parentOffset=s,this.view=u(e)}_enablePointers(){if(this.parent)return this.parent._enablePointers();this.bs||(this.bs=h.create(this.data.length),h.setRange(this.bs,this.data.length,0,this.pos,this.opts.allowMultipleReads))}markBytesBS(e,t){return this.parent?this.parent.markBytesBS(this.parentOffset+e,t):!t||(!this.bs||h.setRange(this.bs,this.data.length,e,t,!1))}markBytes(e){const t=this.pos;this.pos+=e;const n=this.markBytesBS(t,e);if(!this.opts.allowMultipleReads&&!n)throw this.err(`multiple read pos=${this.pos} len=${e}`);return n}pushObj(e,t){return f.pushObj(this.stack,e,t)}readView(e,t){if(!Number.isFinite(e))throw this.err(`readView: wrong length=${e}`);if(this.pos+e>this.data.length)throw this.err("readView: Unexpected end of buffer");const n=t(this.view,this.pos);return this.markBytes(e),n}absBytes(e){if(e>this.data.length)throw new Error("Unexpected end of buffer");return this.data.subarray(e)}finish(){if(!this.opts.allowUnreadBytes){if(this.bitPos)throw this.err(`${this.bitPos} bits left after unpack: ${r.hex.encode(this.data.slice(this.pos))}`);if(this.bs&&!this.parent){const e=h.indices(this.bs,this.data.length,!0);if(e.length){const t=h.range(e).map(({pos:e,length:t})=>`(${e}/${t})[${r.hex.encode(this.data.subarray(e,e+t))}]`).join(", ");throw this.err(`unread byte ranges: ${t} (total=${this.data.length})`)}return}if(!this.isEnd())throw this.err(`${this.leftBytes} bytes ${this.bitPos} bits left after unpack: ${r.hex.encode(this.data.slice(this.pos))}`)}}err(e){return f.err("Reader",this.stack,e)}offsetReader(e){if(e>this.data.length)throw this.err("offsetReader: Unexpected end of buffer");return new m(this.absBytes(e),this.opts,this.stack,this,e)}bytes(e,t=!1){if(this.bitPos)throw this.err("readBytes: bitPos not empty");if(!Number.isFinite(e))throw this.err(`readBytes: wrong length=${e}`);if(this.pos+e>this.data.length)throw this.err("readBytes: Unexpected end of buffer");const n=this.data.subarray(this.pos,this.pos+e);return t||this.markBytes(e),n}byte(e=!1){if(this.bitPos)throw this.err("readByte: bitPos not empty");if(this.pos+1>this.data.length)throw this.err("readBytes: Unexpected end of buffer");const t=this.data[this.pos];return e||this.markBytes(1),t}get leftBytes(){return this.data.length-this.pos}get totalBytes(){return this.data.length}isEnd(){return this.pos>=this.data.length&&!this.bitPos}bits(e){if(e>32)throw this.err("BitReader: cannot read more than 32 bits in single call");let t=0;for(;e;){this.bitPos||(this.bitBuf=this.byte(),this.bitPos=8);const n=Math.min(e,this.bitPos);this.bitPos-=n,t=t<<n|this.bitBuf>>this.bitPos&2**n-1,this.bitBuf&=2**this.bitPos-1,e-=n}return t>>>0}find(e,t=this.pos){if(!a(e))throw this.err(`find: needle is not bytes! ${e}`);if(this.bitPos)throw this.err("findByte: bitPos not empty");if(!e.length)throw this.err("find: needle is empty");for(let n=t;-1!==(n=this.data.indexOf(e[0],n));n++){if(-1===n)return;if(this.data.length-n<e.length)return;if(o(e,this.data.subarray(n,n+e.length)))return n}}}class p{constructor(e=[]){i(this,"pos",0),i(this,"stack",void 0),i(this,"buffers",[]),i(this,"ptrs",[]),i(this,"bitBuf",0),i(this,"bitPos",0),i(this,"viewBuf",new Uint8Array(8)),i(this,"view",void 0),i(this,"finished",!1),this.stack=e,this.view=u(this.viewBuf)}pushObj(e,t){return f.pushObj(this.stack,e,t)}writeView(e,t){if(this.finished)throw this.err("buffer: finished");if(!c(e)||e>8)throw new Error(`wrong writeView length=${e}`);t(this.view),this.bytes(this.viewBuf.slice(0,e)),this.viewBuf.fill(0)}err(e){if(this.finished)throw this.err("buffer: finished");return f.err("Reader",this.stack,e)}bytes(e){if(this.finished)throw this.err("buffer: finished");if(this.bitPos)throw this.err("writeBytes: ends with non-empty bit buffer");this.buffers.push(e),this.pos+=e.length}byte(e){if(this.finished)throw this.err("buffer: finished");if(this.bitPos)throw this.err("writeByte: ends with non-empty bit buffer");this.buffers.push(new Uint8Array([e])),this.pos++}finish(e=!0){if(this.finished)throw this.err("buffer: finished");if(this.bitPos)throw this.err("buffer: ends with non-empty bit buffer");const t=this.buffers.concat(this.ptrs.map(e=>e.buffer)),n=t.map(e=>e.length).reduce((e,t)=>e+t,0),r=new Uint8Array(n);for(let e=0,n=0;e<t.length;e++){const i=t[e];r.set(i,n),n+=i.length}for(let e=this.pos,t=0;t<this.ptrs.length;t++){const n=this.ptrs[t];r.set(n.ptr.encode(e),n.pos),e+=n.buffer.length}if(e){this.buffers=[];for(const e of this.ptrs)e.buffer.fill(0);this.ptrs=[],this.finished=!0,this.bitBuf=0}return r}bits(e,t){if(t>32)throw this.err("writeBits: cannot write more than 32 bits in single call");if(e>=2**t)throw this.err(`writeBits: value (${e}) >= 2**bits (${t})`);for(;t;){const n=Math.min(t,8-this.bitPos);this.bitBuf=this.bitBuf<<n|e>>t-n,this.bitPos+=n,e&=2**(t-=n)-1,8===this.bitPos&&(this.bitPos=0,this.buffers.push(new Uint8Array([this.bitBuf])),this.pos++)}}}const b=e=>Uint8Array.from(e).reverse();function g(e,t,n){if(n){const n=2n**(t-1n);if(e<-n||e>=n)throw new Error(`value out of signed bounds. Expected ${-n} <= ${e} < ${n}`)}else if(0n>e||e>=2n**t)throw new Error(`value out of unsigned bounds. Expected 0 <= ${e} < ${2n**t}`)}function y(e){return{encodeStream:e.encodeStream,decodeStream:e.decodeStream,size:e.size,encode:t=>{const n=new p;return e.encodeStream(n,t),n.finish()},decode:(t,n={})=>{const r=new m(t,n),i=e.decodeStream(r);return r.finish(),i}}}function w(e,t){if(!_(e))throw new Error(`validate: invalid inner value ${e}`);if("function"!=typeof t)throw new Error("validate: fn should be function");return y({size:e.size,encodeStream:(n,r)=>{let i;try{i=t(r)}catch(e){throw n.err(e)}e.encodeStream(n,i)},decodeStream:n=>{const r=e.decodeStream(n);try{return t(r)}catch(e){throw n.err(e)}}})}const k=e=>{const t=y(e);return e.validate?w(t,e.validate):t};n.wrap=k;const v=e=>l(e)&&"function"==typeof e.decode&&"function"==typeof e.encode;function _(e){return l(e)&&v(e)&&"function"==typeof e.encodeStream&&"function"==typeof e.decodeStream&&(e.size===undefined||c(e.size))}const x={encode:e=>{if("bigint"!=typeof e)throw new Error("expected bigint, got "+typeof e);if(e>BigInt(Number.MAX_SAFE_INTEGER))throw new Error(`element bigger than MAX_SAFE_INTEGER=${e}`);return Number(e)},decode:e=>{if(!c(e))throw new Error("element is not a safe integer");return BigInt(e)}};const E=e=>{if(!v(e))throw new Error("BaseCoder expected");return{encode:e.decode,decode:e.encode}},j=n.coders={dict:function(){return{encode:e=>{if(!Array.isArray(e))throw new Error("array expected");const t={};for(const n of e){if(!Array.isArray(n)||2!==n.length)throw new Error("array of two elements expected");const e=n[0],r=n[1];if(t[e]!==undefined)throw new Error(`key(${e}) appears twice in struct`);t[e]=r}return t},decode:e=>{if(!l(e))throw new Error(`expected plain object, got ${e}`);return Object.entries(e)}}},numberBigint:x,tsEnum:function(e){if(!l(e))throw new Error("plain object expected");return{encode:t=>{if(!c(t)||!(t in e))throw new Error(`wrong value ${t}`);return e[t]},decode:t=>{if("string"!=typeof t)throw new Error("wrong value "+typeof t);return e[t]}}},decimal:function(e,t=!1){if(!c(e))throw new Error(`decimal/precision: wrong value ${e}`);if("boolean"!=typeof t)throw new Error("decimal/round: expected boolean, got "+typeof t);const n=10n**BigInt(e);return{encode:t=>{if("bigint"!=typeof t)throw new Error("expected bigint, got "+typeof t);let n=(t<0n?-t:t).toString(10),r=n.length-e;r<0&&(n=n.padStart(n.length-r,"0"),r=0);let i=n.length-1;for(;i>=r&&"0"===n[i];i--);let s=n.slice(0,r),o=n.slice(r,i+1);return s||(s="0"),t<0n&&(s="-"+s),o?`${s}.${o}`:s},decode:r=>{if("string"!=typeof r)throw new Error("expected string, got "+typeof r);if("-0"===r)throw new Error("negative zero is not allowed");let i=!1;if(r.startsWith("-")&&(i=!0,r=r.slice(1)),!/^(0|[1-9]\d*)(\.\d+)?$/.test(r))throw new Error(`wrong string value=${r}`);let s=r.indexOf(".");s=-1===s?r.length:s;const o=r.slice(0,s),a=r.slice(s+1).replace(/0+$/,""),u=BigInt(o)*n;if(!t&&a.length>e)throw new Error(`fractional part cannot be represented with this precision (num=${r}, prec=${e})`);const l=Math.min(a.length,e),c=u+BigInt(a.slice(0,l))*10n**BigInt(e-l);return i?-c:c}}},match:function(e){if(!Array.isArray(e))throw new Error("expected array, got "+typeof e);for(const t of e)if(!v(t))throw new Error(`wrong base coder ${t}`);return{encode:t=>{for(const n of e){const e=n.encode(t);if(e!==undefined)return e}throw new Error(`match/encode: cannot find match in ${t}`)},decode:t=>{for(const n of e){const e=n.decode(t);if(e!==undefined)return e}throw new Error(`match/decode: cannot find match in ${t}`)}}},reverse:E};n.bits=e=>{if(!c(e))throw new Error(`bits: wrong length ${e} (${typeof e})`);return k({encodeStream:(t,n)=>t.bits(n,e),decodeStream:t=>t.bits(e),validate:e=>{if(!c(e))throw new Error(`bits: wrong value ${e}`);return e}})};const S=(e,t=!1,n=!1,r=!0)=>{if(!c(e))throw new Error(`bigint/size: wrong value ${e}`);if("boolean"!=typeof t)throw new Error("bigint/le: expected boolean, got "+typeof t);if("boolean"!=typeof n)throw new Error("bigint/signed: expected boolean, got "+typeof n);if("boolean"!=typeof r)throw new Error("bigint/sized: expected boolean, got "+typeof r);const i=BigInt(e),s=2n**(8n*i-1n);return k({size:r?e:undefined,encodeStream:(i,o)=>{n&&o<0&&(o|=s);const a=[];for(let t=0;t<e;t++)a.push(Number(255n&o)),o>>=8n;let u=new Uint8Array(a).reverse();if(!r){let e=0;for(e=0;e<u.length&&0===u[e];e++);u=u.subarray(e)}i.bytes(t?u.reverse():u)},decodeStream:i=>{const o=i.bytes(r?e:Math.min(e,i.leftBytes)),a=t?o:b(o);let u=0n;for(let e=0;e<a.length;e++)u|=BigInt(a[e])<<8n*BigInt(e);return n&&u&s&&(u=(u^s)-s),u},validate:e=>{if("bigint"!=typeof e)throw new Error(`bigint: invalid value: ${e}`);return g(e,8n*i,!!n),e}})};n.bigint=S;n.U256LE=S(32,!0),n.U256BE=S(32,!1),n.I256LE=S(32,!0,!0),n.I256BE=S(32,!1,!0),n.U128LE=S(16,!0),n.U128BE=S(16,!1),n.I128LE=S(16,!0,!0),n.I128BE=S(16,!1,!0),n.U64LE=S(8,!0),n.U64BE=S(8,!1),n.I64LE=S(8,!0,!0),n.I64BE=S(8,!1,!0);n.int=(e,t=!1,n=!1,r=!0)=>{if(!c(e))throw new Error(`int/size: wrong value ${e}`);if("boolean"!=typeof t)throw new Error("int/le: expected boolean, got "+typeof t);if("boolean"!=typeof n)throw new Error("int/signed: expected boolean, got "+typeof n);if("boolean"!=typeof r)throw new Error("int/sized: expected boolean, got "+typeof r);if(e>6)throw new Error("int supports size up to 6 bytes (48 bits): use bigints instead");return L(S(e,t,n,r),j.numberBigint)};const T=(e,t)=>k({size:e,encodeStream:(n,r)=>n.writeView(e,e=>t.write(e,r)),decodeStream:n=>n.readView(e,t.read),validate:e=>{if("number"!=typeof e)throw new Error("viewCoder: expected number, got "+typeof e);return t.validate&&t.validate(e),e}}),O=(e,t,n)=>{const r=8*e,i=2**(r-1),s=2**r;return T(e,{write:n.write,read:n.read,validate:t?e=>{if(!c(e))throw new Error(`sintView: value is not safe integer: ${e}`);if(e<-i||e>=i)throw new Error(`sintView: value out of bounds. Expected ${-i} <= ${e} < ${i}`)}:e=>{if(!c(e))throw new Error(`uintView: value is not safe integer: ${e}`);if(0>e||e>=s)throw new Error(`uintView: value out of bounds. Expected 0 <= ${e} < ${s}`)}})},I=(n.U32LE=O(4,!1,{read:(e,t)=>e.getUint32(t,!0),write:(e,t)=>e.setUint32(0,t,!0)}),n.U32BE=O(4,!1,{read:(e,t)=>e.getUint32(t,!1),write:(e,t)=>e.setUint32(0,t,!1)}),n.I32LE=O(4,!0,{read:(e,t)=>e.getInt32(t,!0),write:(e,t)=>e.setInt32(0,t,!0)}),n.I32BE=O(4,!0,{read:(e,t)=>e.getInt32(t,!1),write:(e,t)=>e.setInt32(0,t,!1)}),n.U16LE=O(2,!1,{read:(e,t)=>e.getUint16(t,!0),write:(e,t)=>e.setUint16(0,t,!0)}),n.U16BE=O(2,!1,{read:(e,t)=>e.getUint16(t,!1),write:(e,t)=>e.setUint16(0,t,!1)}),n.I16LE=O(2,!0,{read:(e,t)=>e.getInt16(t,!0),write:(e,t)=>e.setInt16(0,t,!0)}),n.I16BE=O(2,!0,{read:(e,t)=>e.getInt16(t,!1),write:(e,t)=>e.setInt16(0,t,!1)}),n.U8=O(1,!1,{read:(e,t)=>e.getUint8(t),write:(e,t)=>e.setUint8(0,t)}),n.I8=O(1,!0,{read:(e,t)=>e.getInt8(t),write:(e,t)=>e.setInt8(0,t)}),e=>T(4,{read:(t,n)=>t.getFloat32(n,e),write:(t,n)=>t.setFloat32(0,n,e),validate:e=>{if(Math.fround(e)!==e&&!Number.isNaN(e))throw new Error(`f32: wrong value=${e}`)}})),A=e=>T(8,{read:(t,n)=>t.getFloat64(n,e),write:(t,n)=>t.setFloat64(0,n,e)}),B=(n.F32BE=I(!1),n.F32LE=I(!0),n.F64BE=A(!1),n.F64LE=A(!0),n.bool=k({size:1,encodeStream:(e,t)=>e.byte(t?1:0),decodeStream:e=>{const t=e.byte();if(0!==t&&1!==t)throw e.err(`bool: invalid value ${t}`);return 1===t},validate:e=>{if("boolean"!=typeof e)throw new Error(`bool: invalid value ${e}`);return e}}),(e,t=!1)=>{if("boolean"!=typeof t)throw new Error("bytes/le: expected boolean, got "+typeof t);const n=d(e),r=a(e);return k({size:"number"==typeof e?e:undefined,encodeStream:(i,s)=>{r||n.encodeStream(i,s.length),i.bytes(t?b(s):s),r&&i.bytes(e)},decodeStream:i=>{let s;if(r){const t=i.find(e);if(!t)throw i.err("bytes: cannot find terminator");s=i.bytes(t-i.pos),i.bytes(e.length)}else s=i.bytes(null===e?i.leftBytes:n.decodeStream(i));return t?b(s):s},validate:e=>{if(!a(e))throw new Error(`bytes: invalid value ${e}`);return e}})});n.bytes=B;const R=(e,t=!1)=>w(L(B(e,t),r.utf8),e=>{if("string"!=typeof e)throw new Error("expected string, got "+typeof e);return e});n.string=R;n.cstring=R(s);function L(e,t){if(!_(e))throw new Error(`apply: invalid inner value ${e}`);if(!v(t))throw new Error(`apply: invalid base value ${e}`);return k({size:e.size,encodeStream:(n,r)=>{let i;try{i=t.decode(r)}catch(e){throw n.err(""+e)}return e.encodeStream(n,i)},decodeStream:n=>{const r=e.decodeStream(n);try{return t.encode(r)}catch(e){throw n.err(""+e)}}})}n.hex=(e,t={isLE:!1,with0x:!1})=>{let n=L(B(e,t.isLE),r.hex);const i=t.with0x;if("boolean"!=typeof i)throw new Error("hex/with0x: expected boolean, got "+typeof i);return i&&(n=L(n,{encode:e=>`0x${e}`,decode:e=>{if(!e.startsWith("0x"))throw new Error("hex(with0x=true).encode input should start with 0x");return e.slice(2)}})),n};function P(e,t,n=!0){if(!_(e))throw new Error(`magic: invalid inner value ${e}`);if("boolean"!=typeof n)throw new Error("magic: expected boolean, got "+typeof n);return k({size:e.size,encodeStream:(n,r)=>e.encodeStream(n,t),decodeStream:r=>{const i=e.decodeStream(r);if(n&&"object"!=typeof i&&i!==t||a(t)&&!o(t,i))throw r.err(`magic: invalid value: ${i} !== ${t}`)},validate:e=>{if(e!==undefined)throw new Error("magic: wrong value="+typeof e);return e}})}n.flag=(e,t=!1)=>{if(!a(e))throw new Error("flag/flagValue: expected Uint8Array, got "+typeof e);if("boolean"!=typeof t)throw new Error("flag/xor: expected boolean, got "+typeof t);return k({size:e.length,encodeStream:(n,r)=>{!!r!==t&&n.bytes(e)},decodeStream:n=>{let r=n.leftBytes>=e.length;return r&&(r=o(n.bytes(e.length,!0),e),r&&n.bytes(e.length)),r!==t},validate:e=>{if(e!==undefined&&"boolean"!=typeof e)throw new Error("flag: expected boolean value or undefined, got "+typeof e);return e}})};function N(e){let t=0;for(const n of e){if(n.size===undefined)return;if(!c(n.size))throw new Error(`sizeof: wrong element size=${t}`);t+=n.size}return t}function M(e,t){if(!_(e))throw new Error(`map: invalid inner value ${e}`);if(!l(t))throw new Error("map: variants should be plain object");const n=new Map;for(const e in t)n.set(t[e],e);return k({size:e.size,encodeStream:(n,r)=>e.encodeStream(n,t[r]),decodeStream:t=>{const r=e.decodeStream(t),i=n.get(r);if(i===undefined)throw t.err(`Enum: unknown value: ${r} ${Array.from(n.keys())}`);return i},validate:e=>{if("string"!=typeof e)throw new Error(`map: invalid value ${e}`);if(!(e in t))throw new Error(`Map: unknown variant: ${e}`);return e}})}function z(e,t){if(!_(e))throw new Error(`tag: invalid tag value ${e}`);if(!l(t))throw new Error("tag: variants should be plain object");for(const e in t)if(!_(t[e]))throw new Error(`tag: variant ${e} is not CoderType`);return k({size:e.size,encodeStream:(n,r)=>{const{TAG:i,data:s}=r,o=t[i];e.encodeStream(n,i),o.encodeStream(n,s)},decodeStream:n=>{const r=e.decodeStream(n),i=t[r];if(!i)throw n.err(`Tag: invalid tag ${r}`);return{TAG:r,data:i.decodeStream(n)}},validate:e=>{const{TAG:n}=e;if(!t[n])throw new Error(`Tag: invalid tag ${n.toString()}`);return e}})}n.magicBytes=e=>{const t="string"==typeof e?r.utf8.decode(e):e;return P(B(t.length),t)};const D=e=>0;function C(e,t){return t%e===0?0:e-t%e}n.ZeroPad=D;n._TEST={_bitset:h,_Reader:m,_Writer:p,Path:f}}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer>micro-packed",file:"node_modules/micro-packed/index.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/micro-packed/node_modules/@scure/base/index.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){
/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */
function r(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function i(e){if(!r(e))throw new Error("Uint8Array expected")}function s(e,t){return!!Array.isArray(t)&&(0===t.length||(e?t.every(e=>"string"==typeof e):t.every(e=>Number.isSafeInteger(e))))}function o(e){if("function"!=typeof e)throw new Error("function expected");return!0}function a(e,t){if("string"!=typeof t)throw new Error(`${e}: string expected`);return!0}function u(e){if(!Number.isSafeInteger(e))throw new Error(`invalid integer: ${e}`)}function l(e){if(!Array.isArray(e))throw new Error("array expected")}function c(e,t){if(!s(!0,t))throw new Error(`${e}: array of strings expected`)}function d(e,t){if(!s(!1,t))throw new Error(`${e}: array of numbers expected`)}function h(...e){const t=e=>e,n=(e,t)=>n=>e(t(n));return{encode:e.map(e=>e.encode).reduceRight(n,t),decode:e.map(e=>e.decode).reduce(n,t)}}function f(e){const t="string"==typeof e?e.split(""):e,n=t.length;c("alphabet",t);const r=new Map(t.map((e,t)=>[e,t]));return{encode:r=>(l(r),r.map(r=>{if(!Number.isSafeInteger(r)||r<0||r>=n)throw new Error(`alphabet.encode: digit index outside alphabet "${r}". Allowed: ${e}`);return t[r]})),decode:t=>(l(t),t.map(t=>{a("alphabet.decode",t);const n=r.get(t);if(n===undefined)throw new Error(`Unknown letter: "${t}". Allowed: ${e}`);return n}))}}function m(e=""){return a("join",e),{encode:t=>(c("join.decode",t),t.join(e)),decode:t=>(a("join.decode",t),t.split(e))}}function p(e,t="="){return u(e),a("padding",t),{encode(n){for(c("padding.encode",n);n.length*e%8;)n.push(t);return n},decode(n){c("padding.decode",n);let r=n.length;if(r*e%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;r>0&&n[r-1]===t;r--){if((r-1)*e%8==0)throw new Error("padding: invalid, string has too much padding")}return n.slice(0,r)}}}function b(e){return o(e),{encode:e=>e,decode:t=>e(t)}}function g(e,t,n){if(t<2)throw new Error(`convertRadix: invalid from=${t}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: invalid to=${n}, base cannot be less than 2`);if(l(e),!e.length)return[];let r=0;const i=[],s=Array.from(e,e=>{if(u(e),e<0||e>=t)throw new Error(`invalid integer: ${e}`);return e}),o=s.length;for(;;){let e=0,a=!0;for(let i=r;i<o;i++){const o=s[i],u=t*e,l=u+o;if(!Number.isSafeInteger(l)||u/t!==e||l-o!==u)throw new Error("convertRadix: carry overflow");const c=l/n;e=l%n;const d=Math.floor(c);if(s[i]=d,!Number.isSafeInteger(d)||d*n+e!==l)throw new Error("convertRadix: carry overflow");a&&(d?a=!1:r=i)}if(i.push(e),a)break}for(let t=0;t<e.length-1&&0===e[t];t++)i.push(0);return i.reverse()}Object.defineProperty(n,"__esModule",{value:!0}),n.utils=n.utf8=n.stringToBytes=n.str=n.hex=n.createBase58check=n.bytesToString=n.bytes=n.bech32m=n.bech32=n.base64urlnopad=n.base64url=n.base64nopad=n.base64=n.base58xrp=n.base58xmr=n.base58flickr=n.base58check=n.base58=n.base32nopad=n.base32hexnopad=n.base32hex=n.base32crockford=n.base32=n.base16=void 0;const y=(e,t)=>0===t?e:y(t,e%t),w=(e,t)=>e+(t-y(e,t)),k=(()=>{let e=[];for(let t=0;t<40;t++)e.push(2**t);return e})();function v(e,t,n,r){if(l(e),t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(w(t,n)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${w(t,n)}`);let i=0,s=0;const o=k[t],a=k[n]-1,c=[];for(const r of e){if(u(r),r>=o)throw new Error(`convertRadix2: invalid data word=${r} from=${t}`);if(i=i<<t|r,s+t>32)throw new Error(`convertRadix2: carry overflow pos=${s} from=${t}`);for(s+=t;s>=n;s-=n)c.push((i>>s-n&a)>>>0);const e=k[s];if(e===undefined)throw new Error("invalid carry");i&=e-1}if(i=i<<n-s&a,!r&&s>=t)throw new Error("Excess padding");if(!r&&i>0)throw new Error(`Non-zero padding: ${i}`);return r&&s>0&&c.push(i>>>0),c}function _(e){u(e);return{encode:t=>{if(!r(t))throw new Error("radix.encode input should be Uint8Array");return g(Array.from(t),256,e)},decode:t=>(d("radix.decode",t),Uint8Array.from(g(t,e,256)))}}function x(e,t=!1){if(u(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(w(8,e)>32||w(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!r(n))throw new Error("radix2.encode input should be Uint8Array");return v(Array.from(n),8,e,!t)},decode:n=>(d("radix2.decode",n),Uint8Array.from(v(n,e,8,t)))}}function E(e){return o(e),function(...t){try{return e.apply(null,t)}catch(e){}}}function j(e,t){return u(e),o(t),{encode(n){if(!r(n))throw new Error("checksum.encode: input should be Uint8Array");const i=t(n).slice(0,e),s=new Uint8Array(n.length+e);return s.set(n),s.set(i,n.length),s},decode(n){if(!r(n))throw new Error("checksum.decode: input should be Uint8Array");const i=n.slice(0,-e),s=n.slice(-e),o=t(i).slice(0,e);for(let t=0;t<e;t++)if(o[t]!==s[t])throw new Error("Invalid checksum");return i}}}n.utils={alphabet:f,chain:h,checksum:j,convertRadix:g,convertRadix2:v,radix:_,radix2:x,join:m,padding:p};const S=n.base16=h(x(4),f("0123456789ABCDEF"),m("")),T=n.base32=h(x(5),f("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),p(5),m("")),O=(n.base32nopad=h(x(5),f("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),m("")),n.base32hex=h(x(5),f("0123456789ABCDEFGHIJKLMNOPQRSTUV"),p(5),m("")),n.base32hexnopad=h(x(5),f("0123456789ABCDEFGHIJKLMNOPQRSTUV"),m("")),n.base32crockford=h(x(5),f("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),m(""),b(e=>e.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),(()=>"function"==typeof Uint8Array.from([]).toBase64&&"function"==typeof Uint8Array.fromBase64)()),I=(e,t)=>{a("base64",e);const n=t?/^[A-Za-z0-9=_-]+$/:/^[A-Za-z0-9=+/]+$/,r=t?"base64url":"base64";if(e.length>0&&!n.test(e))throw new Error("invalid base64");return Uint8Array.fromBase64(e,{alphabet:r,lastChunkHandling:"strict"})},A=n.base64=O?{encode:e=>(i(e),e.toBase64()),decode:e=>I(e,!1)}:h(x(6),f("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),p(6),m("")),B=(n.base64nopad=h(x(6),f("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),m("")),n.base64url=O?{encode:e=>(i(e),e.toBase64({alphabet:"base64url"})),decode:e=>I(e,!0)}:h(x(6),f("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),p(6),m(""))),R=(n.base64urlnopad=h(x(6),f("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),m("")),e=>h(_(58),f(e),m(""))),L=n.base58=R("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),P=(n.base58flickr=R("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),n.base58xrp=R("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),[0,2,3,5,6,7,9,10,11]),N=n.base58xmr={encode(e){let t="";for(let n=0;n<e.length;n+=8){const r=e.subarray(n,n+8);t+=L.encode(r).padStart(P[r.length],"1")}return t},decode(e){let t=[];for(let n=0;n<e.length;n+=11){const r=e.slice(n,n+11),i=P.indexOf(r.length),s=L.decode(r);for(let e=0;e<s.length-i;e++)if(0!==s[e])throw new Error("base58xmr: wrong padding");t=t.concat(Array.from(s.slice(s.length-i)))}return Uint8Array.from(t)}},M=e=>h(j(4,t=>e(e(t))),L);n.createBase58check=M;n.base58check=M;const z=h(f("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),m("")),D=[996825010,642813549,513874426,1027748829,705979059];function C(e){const t=e>>25;let n=(33554431&e)<<5;for(let e=0;e<D.length;e++)1==(t>>e&1)&&(n^=D[e]);return n}function $(e,t,n=1){const r=e.length;let i=1;for(let t=0;t<r;t++){const n=e.charCodeAt(t);if(n<33||n>126)throw new Error(`Invalid prefix (${e})`);i=C(i)^n>>5}i=C(i);for(let t=0;t<r;t++)i=C(i)^31&e.charCodeAt(t);for(let e of t)i=C(i)^e;for(let e=0;e<6;e++)i=C(i);return i^=n,z.encode(v([i%k[30]],30,5,!1))}function H(e){const t="bech32"===e?1:734539939,n=x(5),i=n.decode,s=n.encode,o=E(i);function u(e,n,i=90){a("bech32.encode prefix",e),r(n)&&(n=Array.from(n)),d("bech32.encode",n);const s=e.length;if(0===s)throw new TypeError(`Invalid prefix length ${s}`);const o=s+7+n.length;if(!1!==i&&o>i)throw new TypeError(`Length ${o} exceeds limit ${i}`);const u=e.toLowerCase(),l=$(u,n,t);return`${u}1${z.encode(n)}${l}`}function l(e,n=90){a("bech32.decode input",e);const r=e.length;if(r<8||!1!==n&&r>n)throw new TypeError(`invalid string length: ${r} (${e}). Expected (8..${n})`);const i=e.toLowerCase();if(e!==i&&e!==e.toUpperCase())throw new Error("String must be lowercase or uppercase");const s=i.lastIndexOf("1");if(0===s||-1===s)throw new Error('Letter "1" must be present between prefix and data only');const o=i.slice(0,s),u=i.slice(s+1);if(u.length<6)throw new Error("Data must be at least 6 characters long");const l=z.decode(u).slice(0,-6),c=$(o,l,t);if(!u.endsWith(c))throw new Error(`Invalid checksum in ${e}: expected "${c}"`);return{prefix:o,words:l}}return{encode:u,decode:l,encodeFromBytes:function(e,t){return u(e,s(t))},decodeToBytes:function(e){const{prefix:t,words:n}=l(e,!1);return{prefix:t,words:n,bytes:i(n)}},decodeUnsafe:E(l),fromWords:i,fromWordsUnsafe:o,toWords:s}}n.bech32=H("bech32"),n.bech32m=H("bech32m");const U=n.utf8={encode:e=>(new TextDecoder).decode(e),decode:e=>(new TextEncoder).encode(e)},F=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),V={encode:e=>(i(e),e.toHex()),decode:e=>(a("hex",e),Uint8Array.fromHex(e))},q={utf8:U,hex:n.hex=F?V:h(x(4),f("0123456789abcdef"),m(""),b(e=>{if("string"!=typeof e||e.length%2!=0)throw new TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()})),base16:S,base32:T,base64:A,base64url:B,base58:L,base58xmr:N},Z="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr",W=(e,t)=>{if("string"!=typeof e||!q.hasOwnProperty(e))throw new TypeError(Z);if(!r(t))throw new TypeError("bytesToString() expects Uint8Array");return q[e].encode(t)};n.bytesToString=W;n.str=W;const K=(e,t)=>{if(!q.hasOwnProperty(e))throw new TypeError(Z);if("string"!=typeof t)throw new TypeError("stringToBytes() expects string");return q[e].decode(t)};n.stringToBytes=K;n.bytes=K}}},{package:"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer>micro-packed>@scure/base",file:"node_modules/micro-packed/node_modules/@scure/base/index.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/miller-rabin/lib/mr.js",{"bn.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/bn.js/lib/bn.js",brorand:"/home/runner/work/metamask-extension/metamask-extension/node_modules/brorand/index.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("bn.js"),i=e("brorand");function s(e){this.rand=e||new i.Rand}t.exports=s,s.create=function(e){return new s(e)},s.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(e)>=0);return i},s.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},s.prototype.test=function(e,t,n){var i=e.bitLength(),s=r.mont(e),o=new r(1).toRed(s);t||(t=Math.max(1,i/48|0));for(var a=e.subn(1),u=0;!a.testn(u);u++);for(var l=e.shrn(u),c=a.toRed(s);t>0;t--){var d=this._randrange(new r(2),a);n&&n(d);var h=d.toRed(s).redPow(l);if(0!==h.cmp(o)&&0!==h.cmp(c)){for(var f=1;f<u;f++){if(0===(h=h.redSqr()).cmp(o))return!1;if(0===h.cmp(c))break}if(f===u)return!1}}return!0},s.prototype.getDivisor=function(e,t){var n=e.bitLength(),i=r.mont(e),s=new r(1).toRed(i);t||(t=Math.max(1,n/48|0));for(var o=e.subn(1),a=0;!o.testn(a);a++);for(var u=e.shrn(a),l=o.toRed(i);t>0;t--){var c=this._randrange(new r(2),o),d=e.gcd(c);if(0!==d.cmpn(1))return d;var h=c.toRed(i).redPow(u);if(0!==h.cmp(s)&&0!==h.cmp(l)){for(var f=1;f<a;f++){if(0===(h=h.redSqr()).cmp(s))return h.fromRed().subn(1).gcd(e);if(0===h.cmp(l))break}if(f===a)return(h=h.redSqr()).fromRed().subn(1).gcd(e)}}return!1}}}},{package:"crypto-browserify>diffie-hellman>miller-rabin",file:"node_modules/miller-rabin/lib/mr.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/minimalistic-assert/index.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}t.exports=r,r.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}}}},{package:"@toruslabs/eccrypto>elliptic>minimalistic-assert",file:"node_modules/minimalistic-assert/index.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/minimalistic-crypto-utils/lib/utils.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=n;function i(e){return 1===e.length?"0"+e:e}function s(e){for(var t="",n=0;n<e.length;n++)t+=i(e[n].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),s=i>>8,o=255&i;s?n.push(s,o):n.push(o)}return n},r.zero2=i,r.toHex=s,r.encode=function(e,t){return"hex"===t?s(e):e}}}},{package:"@toruslabs/eccrypto>elliptic>minimalistic-crypto-utils",file:"node_modules/minimalistic-crypto-utils/lib/utils.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/ms/index.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=1e3,i=60*r,s=60*i,o=24*s,a=7*o,u=365.25*o;function l(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}t.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*u;case"weeks":case"week":case"w":return n*a;case"days":case"day":case"d":return n*o;case"hours":case"hour":case"hrs":case"hr":case"h":return n*s;case"minutes":case"minute":case"mins":case"min":case"m":return n*i;case"seconds":case"second":case"secs":case"sec":case"s":return n*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return undefined}}(e);if("number"===n&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=o)return l(e,t,o,"day");if(t>=s)return l(e,t,s,"hour");if(t>=i)return l(e,t,i,"minute");if(t>=r)return l(e,t,r,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=o)return Math.round(e/o)+"d";if(t>=s)return Math.round(e/s)+"h";if(t>=i)return Math.round(e/i)+"m";if(t>=r)return Math.round(e/r)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}}}},{package:"mocha>ms",file:"node_modules/ms/index.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/src/bases/base.js",{"../../vendor/base-x.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/vendor/base-x.js","../bytes.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/src/bytes.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("../../vendor/base-x.js"),i=e("../bytes.js");class s{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class o{constructor(e,t,n){if(this.name=e,this.prefix=t,t.codePointAt(0)===undefined)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return u(this,e)}}class a{constructor(e){this.decoders=e}or(e){return u(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const u=(e,t)=>new a({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class l{constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new s(e,t,n),this.decoder=new o(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const c=({name:e,prefix:t,encode:n,decode:r})=>new l(e,t,n,r);n.Codec=l,n.baseX=({prefix:e,name:t,alphabet:n})=>{const{encode:s,decode:o}=r(n,t);return c({prefix:e,name:t,encode:s,decode:e=>i.coerce(o(e))})},n.from=c,n.or=u,n.rfc4648=({name:e,prefix:t,bitsPerChar:n,alphabet:r})=>c({prefix:t,name:e,encode:e=>((e,t,n)=>{const r="="===t[t.length-1],i=(1<<n)-1;let s="",o=0,a=0;for(let r=0;r<e.length;++r)for(a=a<<8|e[r],o+=8;o>n;)o-=n,s+=t[i&a>>o];if(o&&(s+=t[i&a<<n-o]),r)for(;s.length*n&7;)s+="=";return s})(e,r,n),decode:t=>((e,t,n,r)=>{const i={};for(let e=0;e<t.length;++e)i[t[e]]=e;let s=e.length;for(;"="===e[s-1];)--s;const o=new Uint8Array(s*n/8|0);let a=0,u=0,l=0;for(let t=0;t<s;++t){const s=i[e[t]];if(s===undefined)throw new SyntaxError(`Non-${r} character`);u=u<<n|s,a+=n,a>=8&&(a-=8,o[l++]=255&u>>a)}if(a>=n||255&u<<8-a)throw new SyntaxError("Unexpected end of data");return o})(t,r,n,e)})}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/bases/base.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/src/bases/base32.js",{"./base.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/src/bases/base.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("./base.js");const i=r.rfc4648({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),s=r.rfc4648({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),o=r.rfc4648({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),a=r.rfc4648({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),u=r.rfc4648({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),l=r.rfc4648({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),c=r.rfc4648({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),d=r.rfc4648({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),h=r.rfc4648({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});n.base32=i,n.base32hex=u,n.base32hexpad=c,n.base32hexpadupper=d,n.base32hexupper=l,n.base32pad=o,n.base32padupper=a,n.base32upper=s,n.base32z=h}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/bases/base32.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/src/bases/base58.js",{"./base.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/src/bases/base.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("./base.js");const i=r.baseX({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),s=r.baseX({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});n.base58btc=i,n.base58flickr=s}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/bases/base58.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/src/bytes.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=new Uint8Array(0);n.coerce=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},n.empty=r,n.equals=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0},n.fromHex=e=>{const t=e.match(/../g);return t?new Uint8Array(t.map(e=>parseInt(e,16))):r},n.fromString=e=>(new TextEncoder).encode(e),n.isBinary=e=>e instanceof ArrayBuffer||ArrayBuffer.isView(e),n.toHex=e=>e.reduce((e,t)=>e+t.toString(16).padStart(2,"0"),""),n.toString=e=>(new TextDecoder).decode(e)}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/bytes.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/src/cid.js",{"./bases/base32.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/src/bases/base32.js","./bases/base58.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/src/bases/base58.js","./bytes.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/src/bytes.js","./hashes/digest.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/src/hashes/digest.js","./varint.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/src/varint.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("./varint.js"),i=e("./hashes/digest.js"),s=e("./bases/base58.js"),o=e("./bases/base32.js"),a=e("./bytes.js");class u{constructor(e,t,n,r){this.code=t,this.version=e,this.multihash=n,this.bytes=r,this.byteOffset=r.byteOffset,this.byteLength=r.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:g,byteLength:g,code:b,version:b,multihash:b,bytes:b,_baseCache:g,asCID:g})}toV0(){if(0===this.version)return this;{const{code:e,multihash:t}=this;if(e!==h)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==f)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return u.createV0(t)}}toV1(){switch(this.version){case 0:{const{code:e,digest:t}=this.multihash,n=i.create(e,t);return u.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&i.equals(this.multihash,e.multihash)}toString(e){const{bytes:t,version:n,_baseCache:r}=this;return 0===n?c(t,r,e||s.base58btc.encoder):d(t,r,e||o.base32.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return y(/^0\.0/,w),!(!e||!e[p]&&e.asCID!==e)}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof u)return e;if(null!=e&&e.asCID===e){const{version:t,code:n,multihash:r,bytes:i}=e;return new u(t,n,r,i||m(t,n,r.bytes))}if(null!=e&&!0===e[p]){const{version:t,multihash:n,code:r}=e,s=i.decode(n);return u.create(t,r,s)}return null}static create(e,t,n){if("number"!=typeof t)throw new Error("String codecs are no longer supported");switch(e){case 0:if(t!==h)throw new Error(`Version 0 CID must use dag-pb (code: ${h}) block encoding`);return new u(e,t,n,n.bytes);case 1:{const r=m(e,t,n.bytes);return new u(e,t,n,r)}default:throw new Error("Invalid version")}}static createV0(e){return u.create(0,h,e)}static createV1(e,t){return u.create(1,e,t)}static decode(e){const[t,n]=u.decodeFirst(e);if(n.length)throw new Error("Incorrect length");return t}static decodeFirst(e){const t=u.inspectBytes(e),n=t.size-t.multihashSize,r=a.coerce(e.subarray(n,n+t.multihashSize));if(r.byteLength!==t.multihashSize)throw new Error("Incorrect length");const s=r.subarray(t.multihashSize-t.digestSize),o=new i.Digest(t.multihashCode,t.digestSize,s,r);return[0===t.version?u.createV0(o):u.createV1(t.codec,o),e.subarray(t.size)]}static inspectBytes(e){let t=0;const n=()=>{const[n,i]=r.decode(e.subarray(t));return t+=i,n};let i=n(),s=h;if(18===i?(i=0,t=0):1===i&&(s=n()),0!==i&&1!==i)throw new RangeError(`Invalid CID version ${i}`);const o=t,a=n(),u=n(),l=t+u;return{version:i,codec:s,multihashCode:a,digestSize:u,multihashSize:l-o,size:l}}static parse(e,t){const[n,r]=l(e,t),i=u.decode(r);return i._baseCache.set(n,e),i}}const l=(e,t)=>{switch(e[0]){case"Q":{const n=t||s.base58btc;return[s.base58btc.prefix,n.decode(`${s.base58btc.prefix}${e}`)]}case s.base58btc.prefix:{const n=t||s.base58btc;return[s.base58btc.prefix,n.decode(e)]}case o.base32.prefix:{const n=t||o.base32;return[o.base32.prefix,n.decode(e)]}default:if(null==t)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}},c=(e,t,n)=>{const{prefix:r}=n;if(r!==s.base58btc.prefix)throw Error(`Cannot string encode V0 in ${n.name} encoding`);const i=t.get(r);if(null==i){const i=n.encode(e).slice(1);return t.set(r,i),i}return i},d=(e,t,n)=>{const{prefix:r}=n,i=t.get(r);if(null==i){const i=n.encode(e);return t.set(r,i),i}return i},h=112,f=18,m=(e,t,n)=>{const i=r.encodingLength(e),s=i+r.encodingLength(t),o=new Uint8Array(s+n.byteLength);return r.encodeTo(e,o,0),r.encodeTo(t,o,i),o.set(n,s),o},p=Symbol.for("@ipld/js-cid/CID"),b={writable:!1,configurable:!1,enumerable:!0},g={writable:!1,enumerable:!1,configurable:!1},y=(e,t)=>{if(!e.test("0.0.0-dev"))throw new Error(t);console.warn(t)},w="CID.isCID(v) is deprecated and will be removed in the next major release.\nFollowing code pattern:\n\nif (CID.isCID(value)) {\n  doSomethingWithCID(value)\n}\n\nIs replaced with:\n\nconst cid = CID.asCID(value)\nif (cid) {\n  // Make sure to use cid instead of value\n  doSomethingWithCID(cid)\n}\n";n.CID=u}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/cid.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/src/hashes/digest.js",{"../bytes.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/src/bytes.js","../varint.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/src/varint.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("../bytes.js"),i=e("../varint.js");class s{constructor(e,t,n,r){this.code=e,this.size=t,this.digest=n,this.bytes=r}}n.Digest=s,n.create=(e,t)=>{const n=t.byteLength,r=i.encodingLength(e),o=r+i.encodingLength(n),a=new Uint8Array(o+n);return i.encodeTo(e,a,0),i.encodeTo(n,a,r),a.set(t,o),new s(e,n,t,a)},n.decode=e=>{const t=r.coerce(e),[n,o]=i.decode(t),[a,u]=i.decode(t.subarray(o)),l=t.subarray(o+u);if(l.byteLength!==a)throw new Error("Incorrect length");return new s(n,a,l,t)},n.equals=(e,t)=>e===t||e.code===t.code&&e.size===t.size&&r.equals(e.bytes,t.bytes)}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/hashes/digest.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/src/varint.js",{"../vendor/varint.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/vendor/varint.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("../vendor/varint.js");n.decode=(e,t=0)=>[r.decode(e,t),r.decode.bytes],n.encodeTo=(e,t,n=0)=>(r.encode(e,t,n),t),n.encodingLength=e=>r.encodingLength(e)}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/varint.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/vendor/base-x.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r<n.length;r++)n[r]=255;for(var i=0;i<e.length;i++){var s=e.charAt(i),o=s.charCodeAt(0);if(255!==n[o])throw new TypeError(s+" is ambiguous");n[o]=i}var a=e.length,u=e.charAt(0),l=Math.log(a)/Math.log(256),c=Math.log(256)/Math.log(a);function d(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[t]){for(var r=0,i=0;e[t]===u;)r++,t++;for(var s=(e.length-t)*l+1>>>0,o=new Uint8Array(s);e[t];){var c=n[e.charCodeAt(t)];if(255===c)return;for(var d=0,h=s-1;(0!==c||d<i)&&-1!==h;h--,d++)c+=a*o[h]>>>0,o[h]=c%256>>>0,c=c/256>>>0;if(0!==c)throw new Error("Non-zero carry");i=d,t++}if(" "!==e[t]){for(var f=s-i;f!==s&&0===o[f];)f++;for(var m=new Uint8Array(r+(s-f)),p=r;f!==s;)m[p++]=o[f++];return m}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,r=0,i=0,s=t.length;i!==s&&0===t[i];)i++,n++;for(var o=(s-i)*c+1>>>0,l=new Uint8Array(o);i!==s;){for(var d=t[i],h=0,f=o-1;(0!==d||h<r)&&-1!==f;f--,h++)d+=256*l[f]>>>0,l[f]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");r=h,i++}for(var m=o-r;m!==o&&0===l[m];)m++;for(var p=u.repeat(n);m<o;++m)p+=e.charAt(l[m]);return p},decodeUnsafe:d,decode:function(e){var n=d(e);if(n)return n;throw new Error(`Non-${t} character`)}}};t.exports=r}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/vendor/base-x.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/multiformats/cjs/vendor/varint.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=function e(t,n,r){n=n||[];var a=r=r||0;for(;t>=o;)n[r++]=255&t|i,t/=128;for(;t&s;)n[r++]=255&t|i,t>>>=7;return n[r]=0|t,e.bytes=r-a+1,n},i=128,s=-128,o=Math.pow(2,31);var a=function e(t,n){var r,i=0,s=0,o=n=n||0,a=t.length;do{if(o>=a)throw e.bytes=0,new RangeError("Could not decode varint");r=t[o++],i+=s<28?(r&l)<<s:(r&l)*Math.pow(2,s),s+=7}while(r>=u);return e.bytes=o-n,i},u=128,l=127;var c=Math.pow(2,7),d=Math.pow(2,14),h=Math.pow(2,21),f=Math.pow(2,28),m=Math.pow(2,35),p=Math.pow(2,42),b=Math.pow(2,49),g=Math.pow(2,56),y=Math.pow(2,63),w={encode:r,decode:a,encodingLength:function(e){return e<c?1:e<d?2:e<h?3:e<f?4:e<m?5:e<p?6:e<b?7:e<g?8:e<y?9:10}};t.exports=w}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/vendor/varint.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/nanoid/index.browser.cjs",{"./url-alphabet/index.cjs":"/home/runner/work/metamask-extension/metamask-extension/node_modules/nanoid/url-alphabet/index.cjs"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){let{urlAlphabet:r}=e("./url-alphabet/index.cjs"),i=e=>crypto.getRandomValues(new Uint8Array(e)),s=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*r*t/e.length);return(s=t)=>{let o="";for(;;){let t=n(i),a=0|i;for(;a--;)if(o+=e[t[a]&r]||"",o.length===s)return o}}};t.exports={nanoid:(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_",""),customAlphabet:(e,t=21)=>s(e,t,i),customRandom:s,urlAlphabet:r,random:i}}}},{package:"nanoid",file:"node_modules/nanoid/index.browser.cjs"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/nanoid/url-alphabet/index.cjs",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){t.exports={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"}}}},{package:"nanoid",file:"node_modules/nanoid/url-alphabet/index.cjs"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/number-to-bn/src/index.js",{"bn.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/bn.js/lib/bn.js","strip-hex-prefix":"/home/runner/work/metamask-extension/metamask-extension/node_modules/strip-hex-prefix/src/index.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("bn.js"),i=e("strip-hex-prefix");t.exports=function(e){if("string"==typeof e||"number"==typeof e){var t=new r(1),n=String(e).toLowerCase().trim(),s="0x"===n.substr(0,2)||"-0x"===n.substr(0,3),o=i(n);if("-"===o.substr(0,1)&&(o=i(o.slice(1)),t=new r(-1,10)),!(o=""===o?"0":o).match(/^-?[0-9]+$/)&&o.match(/^[0-9A-Fa-f]+$/)||o.match(/^[a-fA-F]+$/)||!0===s&&o.match(/^[0-9A-Fa-f]+$/))return new r(o,16).mul(t);if((o.match(/^-?[0-9]+$/)||""===o)&&!1===s)return new r(o,10).mul(t)}else if("object"==typeof e&&e.toString&&!e.pop&&!e.push&&e.toString(10).match(/^-?[0-9]+$/)&&(e.mul||e.dividedToIntegerBy))return new r(e.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(e)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}}}},{package:"eth-method-registry>@metamask/ethjs-contract>ethjs-abi>number-to-bn",file:"node_modules/number-to-bn/src/index.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/object-assign/index.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,o,a=function(e){if(null===e||e===undefined)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var l in n=Object(arguments[u]))i.call(n,l)&&(a[l]=n[l]);if(r){o=r(n);for(var c=0;c<o.length;c++)s.call(n,o[c])&&(a[o[c]]=n[o[c]])}}return a}}}},{package:"react>object-assign",file:"node_modules/object-assign/index.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/object-inspect/index.js",{"./util.inspect":"/home/runner/work/metamask-extension/metamask-extension/node_modules/browser-resolve/empty.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=r&&i&&"function"==typeof i.get?i.get:null,o=r&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=a&&u&&"function"==typeof u.get?u.get:null,c=a&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,p=Object.prototype.toString,b=Function.prototype.toString,g=String.prototype.match,y=String.prototype.slice,w=String.prototype.replace,k=String.prototype.toUpperCase,v=String.prototype.toLowerCase,_=RegExp.prototype.test,x=Array.prototype.concat,E=Array.prototype.join,j=Array.prototype.slice,S=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"==typeof Symbol&&"object"==typeof Symbol.iterator,B="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===A||"symbol")?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,L=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function P(e,t){if(e===Infinity||e===-Infinity||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-S(-e):S(e);if(r!==e){var i=String(r),s=y.call(t,i.length+1);return w.call(i,n,"$&_")+"."+w.call(w.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(t,n,"$&_")}var N=e("./util.inspect"),M=N.custom,z=q(M)?M:null,D={__proto__:null,double:'"',single:"'"},C={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function $(e,t,n){var r=n.quoteStyle||t,i=D[r];return i+e+i}function H(e){return w.call(String(e),/"/g,"&quot;")}function U(e){return!B||!("object"==typeof e&&(B in e||void 0!==e[B]))}function F(e){return"[object Array]"===K(e)&&U(e)}function V(e){return"[object RegExp]"===K(e)&&U(e)}function q(e){if(A)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!I)return!1;try{return I.call(e),!0}catch(e){}return!1}t.exports=function e(t,n,r,i){var a=n||{};if(W(a,"quoteStyle")&&!W(D,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==Infinity:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!W(a,"customInspect")||a.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Y(t,a);if("number"==typeof t){if(0===t)return Infinity/t>0?"0":"-0";var k=String(t);return p?P(t,k):k}if("bigint"==typeof t){var _=String(t)+"n";return p?P(t,_):_}var S=void 0===a.depth?5:a.depth;if(void 0===r&&(r=0),r>=S&&S>0&&"object"==typeof t)return F(t)?"[Array]":"[Object]";var O=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=E.call(Array(e.indent+1)," ")}return{base:n,prev:E.call(Array(t+1),n)}}(a,r);if(void 0===i)i=[];else if(G(i,t)>=0)return"[Circular]";function M(t,n,s){if(n&&(i=j.call(i)).push(n),s){var o={depth:a.depth};return W(a,"quoteStyle")&&(o.quoteStyle=a.quoteStyle),e(t,o,r+1,i)}return e(t,a,r+1,i)}if("function"==typeof t&&!V(t)){var C=function(e){if(e.name)return e.name;var t=g.call(b.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),Z=ne(t,M);return"[Function"+(C?": "+C:" (anonymous)")+"]"+(Z.length>0?" { "+E.call(Z,", ")+" }":"")}if(q(t)){var J=A?w.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(t);return"object"!=typeof t||A?J:X(J)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var re="<"+v.call(String(t.nodeName)),ie=t.attributes||[],se=0;se<ie.length;se++)re+=" "+ie[se].name+"="+$(H(ie[se].value),"double",a);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+="</"+v.call(String(t.nodeName))+">"}if(F(t)){if(0===t.length)return"[]";var oe=ne(t,M);return O&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(oe)?"["+te(oe,O)+"]":"[ "+E.call(oe,", ")+" ]"}if(function(e){return"[object Error]"===K(e)&&U(e)}(t)){var ae=ne(t,M);return"cause"in Error.prototype||!("cause"in t)||R.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(ae,", ")+" }":"{ ["+String(t)+"] "+E.call(x.call("[cause]: "+M(t.cause),ae),", ")+" }"}if("object"==typeof t&&u){if(z&&"function"==typeof t[z]&&N)return N(t,{depth:S-r});if("symbol"!==u&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ue=[];return o&&o.call(t,function(e,n){ue.push(M(n,t,!0)+" => "+M(e,t))}),ee("Map",s.call(t),ue,O)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{s.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var le=[];return c&&c.call(t,function(e){le.push(M(e,t))}),ee("Set",l.call(t),le,O)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if(function(e){return"[object Number]"===K(e)&&U(e)}(t))return X(M(Number(t)));if(function(e){if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}(t))return X(M(T.call(t)));if(function(e){return"[object Boolean]"===K(e)&&U(e)}(t))return X(m.call(t));if(function(e){return"[object String]"===K(e)&&U(e)}(t))return X(M(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||"undefined"!=typeof global&&t===global)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===K(e)&&U(e)}(t)&&!V(t)){var ce=ne(t,M),de=L?L(t)===Object.prototype:t instanceof Object||t.constructor===Object,he=t instanceof Object?"":"null prototype",fe=!de&&B&&Object(t)===t&&B in t?y.call(K(t),8,-1):he?"Object":"",me=(de||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||he?"["+E.call(x.call([],fe||[],he||[]),": ")+"] ":"");return 0===ce.length?me+"{}":O?me+"{"+te(ce,O)+"}":me+"{ "+E.call(ce,", ")+" }"}return String(t)};var Z=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return Z.call(e,t)}function K(e){return p.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Y(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Y(y.call(e,0,t.maxStringLength),t)+r}var i=C[t.quoteStyle||"single"];return i.lastIndex=0,$(w.call(w.call(e,i,"\\$1"),/[\x00-\x1f]/g,J),"single",t)}function J(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+k.call(t.toString(16))}function X(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function ee(e,t,n,r){return e+" ("+t+") {"+(r?te(n,r):E.call(n,", "))+"}"}function te(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+E.call(e,","+n)+"\n"+t.prev}function ne(e,t){var n=F(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=W(e,i)?t(e[i],e):""}var s,o="function"==typeof O?O(e):[];if(A){s={};for(var a=0;a<o.length;a++)s["$"+o[a]]=o[a]}for(var u in e)W(e,u)&&(n&&String(Number(u))===u&&u<e.length||A&&s["$"+u]instanceof Symbol||(_.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if("function"==typeof O)for(var l=0;l<o.length;l++)R.call(e,o[l])&&r.push("["+t(o[l])+"]: "+t(e[o[l]],e));return r}}}},{package:"string.prototype.matchall>es-abstract>object-inspect",file:"node_modules/object-inspect/index.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/once/once.js",{wrappy:"/home/runner/work/metamask-extension/metamask-extension/node_modules/wrappy/wrappy.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("wrappy");function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function s(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}t.exports=r(i),t.exports.strict=r(s),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})})}}},{package:"@metamask/object-multiplex>once",file:"node_modules/once/once.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/p-limit/index.js",{"yocto-queue":"/home/runner/work/metamask-extension/metamask-extension/node_modules/yocto-queue/index.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){const r=e("yocto-queue");t.exports=e=>{if(!Number.isInteger(e)&&e!==Infinity||!(e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");const t=new r;let n=0;const i=async(e,r,...i)=>{n++;const s=(async()=>e(...i))();r(s);try{await s}catch{}n--,t.size>0&&t.dequeue()()},s=(r,...s)=>new Promise(o=>{((r,s,...o)=>{t.enqueue(i.bind(null,r,s,...o)),(async()=>{await Promise.resolve(),n<e&&t.size>0&&t.dequeue()()})()})(r,o,...s)});return Object.defineProperties(s,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),s}}}},{package:"@metamask/assets-controller>p-limit",file:"node_modules/p-limit/index.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/utils/common.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var s={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var s=0;s<r;s++)e[i+s]=t[n+s]},flattenChunks:function(e){var t,n,r,i,s,o;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)s=e[t],o.set(s,i),i+=s.length;return o}},o={arraySet:function(e,t,n,r,i){for(var s=0;s<r;s++)e[i+s]=t[n+s]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,s)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)}}},{package:"browserify>browserify-zlib>pako",file:"node_modules/pako/lib/utils/common.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/zlib/adler32.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){t.exports=function(e,t,n,r){for(var i=65535&e,s=e>>>16&65535,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{s=s+(i=i+t[r++]|0)|0}while(--o);i%=65521,s%=65521}return i|s<<16}}}},{package:"browserify>browserify-zlib>pako",file:"node_modules/pako/lib/zlib/adler32.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/zlib/constants.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}}}},{package:"browserify>browserify-zlib>pako",file:"node_modules/pako/lib/zlib/constants.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/zlib/crc32.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var s=r,o=i+n;e^=-1;for(var a=i;a<o;a++)e=e>>>8^s[255&(e^t[a])];return-1^e}}}},{package:"browserify>browserify-zlib>pako",file:"node_modules/pako/lib/zlib/crc32.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/zlib/deflate.js",{"../utils/common":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/utils/common.js","./adler32":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/zlib/adler32.js","./crc32":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/zlib/crc32.js","./messages":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/zlib/messages.js","./trees":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/zlib/trees.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r,i=e("../utils/common"),s=e("./trees"),o=e("./adler32"),a=e("./crc32"),u=e("./messages"),l=-2,c=258,d=262,h=103,f=113,m=666;function p(e,t){return e.msg=u[t],t}function b(e){return(e<<1)-(e>4?9:0)}function g(e){for(var t=e.length;--t>=0;)e[t]=0}function y(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function w(e,t){s._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,y(e.strm)}function k(e,t){e.pending_buf[e.pending++]=t}function v(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function _(e,t,n,r){var s=e.avail_in;return s>r&&(s=r),0===s?0:(e.avail_in-=s,i.arraySet(t,e.input,e.next_in,s,n),1===e.state.wrap?e.adler=o(e.adler,t,s,n):2===e.state.wrap&&(e.adler=a(e.adler,t,s,n)),e.next_in+=s,e.total_in+=s,s)}function x(e,t){var n,r,i=e.max_chain_length,s=e.strstart,o=e.prev_length,a=e.nice_match,u=e.strstart>e.w_size-d?e.strstart-(e.w_size-d):0,l=e.window,h=e.w_mask,f=e.prev,m=e.strstart+c,p=l[s+o-1],b=l[s+o];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do{if(l[(n=t)+o]===b&&l[n+o-1]===p&&l[n]===l[s]&&l[++n]===l[s+1]){s+=2,n++;do{}while(l[++s]===l[++n]&&l[++s]===l[++n]&&l[++s]===l[++n]&&l[++s]===l[++n]&&l[++s]===l[++n]&&l[++s]===l[++n]&&l[++s]===l[++n]&&l[++s]===l[++n]&&s<m);if(r=c-(m-s),s=m-c,r>o){if(e.match_start=t,o=r,r>=a)break;p=l[s+o-1],b=l[s+o]}}}while((t=f[t&h])>u&&0!==--i);return o<=e.lookahead?o:e.lookahead}function E(e){var t,n,r,s,o,a=e.w_size;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=a+(a-d)){i.arraySet(e.window,e.window,a,a,0),e.match_start-=a,e.strstart-=a,e.block_start-=a,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=a?r-a:0}while(--n);t=n=a;do{r=e.prev[--t],e.prev[t]=r>=a?r-a:0}while(--n);s+=a}if(0===e.strm.avail_in)break;if(n=_(e.strm,e.window,e.strstart+e.lookahead,s),e.lookahead+=n,e.lookahead+e.insert>=3)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+3-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<d&&0!==e.strm.avail_in)}function j(e,t){for(var n,r;;){if(e.lookahead<d){if(E(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-d&&(e.match_length=x(e,n)),e.match_length>=3)if(r=s._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(w(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(w(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(w(e,!1),0===e.strm.avail_out)?1:2}function S(e,t){for(var n,r,i;;){if(e.lookahead<d){if(E(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-d&&(e.match_length=x(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=s._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(w(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=s._tr_tally(e,0,e.window[e.strstart-1]))&&w(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=s._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(w(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(w(e,!1),0===e.strm.avail_out)?1:2}function T(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function O(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),g(this.dyn_ltree),g(this.dyn_dtree),g(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),g(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),g(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function I(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:f,e.adler=2===t.wrap?0:1,t.last_flush=0,s._tr_init(t),0):p(e,l)}function A(e){var t,n=I(e);return 0===n&&((t=e.state).window_size=2*t.w_size,g(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function B(e,t,n,r,s,o){if(!e)return l;var a=1;if(-1===t&&(t=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),s<1||s>9||8!==n||r<8||r>15||t<0||t>9||o<0||o>4)return p(e,l);8===r&&(r=9);var u=new O;return e.state=u,u.strm=e,u.wrap=a,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=s+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<s+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=t,u.strategy=o,u.method=n,A(e)}r=[new T(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(E(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,w(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-d&&(w(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(w(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(w(e,!1),e.strm.avail_out),1)}),new T(4,4,8,4,j),new T(4,5,16,8,j),new T(4,6,32,32,j),new T(4,4,16,16,S),new T(8,16,32,32,S),new T(8,16,128,128,S),new T(8,32,128,256,S),new T(32,128,258,1024,S),new T(32,258,258,4096,S)],n.deflateInit=function(e,t){return B(e,t,8,15,8,0)},n.deflateInit2=B,n.deflateReset=A,n.deflateResetKeep=I,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?l:(e.state.gzhead=t,0):l},n.deflate=function(e,t){var n,i,o,u;if(!e||!e.state||t>5||t<0)return e?p(e,l):l;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===m&&4!==t)return p(e,0===e.avail_out?-5:l);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,k(i,31),k(i,139),k(i,8),i.gzhead?(k(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),k(i,255&i.gzhead.time),k(i,i.gzhead.time>>8&255),k(i,i.gzhead.time>>16&255),k(i,i.gzhead.time>>24&255),k(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),k(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(k(i,255&i.gzhead.extra.length),k(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=a(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(k(i,0),k(i,0),k(i,0),k(i,0),k(i,0),k(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),k(i,3),i.status=f);else{var d=8+(i.w_bits-8<<4)<<8;d|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(d|=32),d+=31-d%31,i.status=f,v(i,d),0!==i.strstart&&(v(i,e.adler>>>16),v(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=a(e.adler,i.pending_buf,i.pending-o,o)),y(e),o=i.pending,i.pending!==i.pending_buf_size));)k(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=a(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=a(e.adler,i.pending_buf,i.pending-o,o)),y(e),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,k(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(e.adler=a(e.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=a(e.adler,i.pending_buf,i.pending-o,o)),y(e),o=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,k(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>o&&(e.adler=a(e.adler,i.pending_buf,i.pending-o,o)),0===u&&(i.status=h)}else i.status=h;if(i.status===h&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&y(e),i.pending+2<=i.pending_buf_size&&(k(i,255&e.adler),k(i,e.adler>>8&255),e.adler=0,i.status=f)):i.status=f),0!==i.pending){if(y(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&b(t)<=b(n)&&4!==t)return p(e,-5);if(i.status===m&&0!==e.avail_in)return p(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&i.status!==m){var _=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(E(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(w(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(w(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(w(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,o,a=e.window;;){if(e.lookahead<=c){if(E(e),e.lookahead<=c&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=a[i=e.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=e.strstart+c;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);e.match_length=c-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=s._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(w(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(w(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(w(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==_&&4!==_||(i.status=m),1===_||3===_)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===_&&(1===t?s._tr_align(i):5!==t&&(s._tr_stored_block(i,0,0,!1),3===t&&(g(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),y(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(k(i,255&e.adler),k(i,e.adler>>8&255),k(i,e.adler>>16&255),k(i,e.adler>>24&255),k(i,255&e.total_in),k(i,e.total_in>>8&255),k(i,e.total_in>>16&255),k(i,e.total_in>>24&255)):(v(i,e.adler>>>16),v(i,65535&e.adler)),y(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},n.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==h&&t!==f&&t!==m?p(e,l):(e.state=null,t===f?p(e,-3):0):l},n.deflateSetDictionary=function(e,t){var n,r,s,a,u,c,d,h,f=t.length;if(!e||!e.state)return l;if(2===(a=(n=e.state).wrap)||1===a&&42!==n.status||n.lookahead)return l;for(1===a&&(e.adler=o(e.adler,t,f,0)),n.wrap=0,f>=n.w_size&&(0===a&&(g(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new i.Buf8(n.w_size),i.arraySet(h,t,f-n.w_size,n.w_size,0),t=h,f=n.w_size),u=e.avail_in,c=e.next_in,d=e.input,e.avail_in=f,e.next_in=0,e.input=t,E(n);n.lookahead>=3;){r=n.strstart,s=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--s);n.strstart=r,n.lookahead=2,E(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=c,e.input=d,e.avail_in=u,n.wrap=a,0},n.deflateInfo="pako deflate (from Nodeca project)"}}},{package:"browserify>browserify-zlib>pako",file:"node_modules/pako/lib/zlib/deflate.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/zlib/inffast.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){t.exports=function(e,t){var n,r,i,s,o,a,u,l,c,d,h,f,m,p,b,g,y,w,k,v,_,x,E,j,S;n=e.state,r=e.next_in,j=e.input,i=r+(e.avail_in-5),s=e.next_out,S=e.output,o=s-(t-e.avail_out),a=s+(e.avail_out-257),u=n.dmax,l=n.wsize,c=n.whave,d=n.wnext,h=n.window,f=n.hold,m=n.bits,p=n.lencode,b=n.distcode,g=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{m<15&&(f+=j[r++]<<m,m+=8,f+=j[r++]<<m,m+=8),w=p[f&g];t:for(;;){if(f>>>=k=w>>>24,m-=k,0===(k=w>>>16&255))S[s++]=65535&w;else{if(!(16&k)){if(64&k){if(32&k){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=p[(65535&w)+(f&(1<<k)-1)];continue t}for(v=65535&w,(k&=15)&&(m<k&&(f+=j[r++]<<m,m+=8),v+=f&(1<<k)-1,f>>>=k,m-=k),m<15&&(f+=j[r++]<<m,m+=8,f+=j[r++]<<m,m+=8),w=b[f&y];;){if(f>>>=k=w>>>24,m-=k,16&(k=w>>>16&255)){if(_=65535&w,m<(k&=15)&&(f+=j[r++]<<m,(m+=8)<k&&(f+=j[r++]<<m,m+=8)),(_+=f&(1<<k)-1)>u){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=k,m-=k,_>(k=s-o)){if((k=_-k)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(x=0,E=h,0===d){if(x+=l-k,k<v){v-=k;do{S[s++]=h[x++]}while(--k);x=s-_,E=S}}else if(d<k){if(x+=l+d-k,(k-=d)<v){v-=k;do{S[s++]=h[x++]}while(--k);if(x=0,d<v){v-=k=d;do{S[s++]=h[x++]}while(--k);x=s-_,E=S}}}else if(x+=d-k,k<v){v-=k;do{S[s++]=h[x++]}while(--k);x=s-_,E=S}for(;v>2;)S[s++]=E[x++],S[s++]=E[x++],S[s++]=E[x++],v-=3;v&&(S[s++]=E[x++],v>1&&(S[s++]=E[x++]))}else{x=s-_;do{S[s++]=S[x++],S[s++]=S[x++],S[s++]=S[x++],v-=3}while(v>2);v&&(S[s++]=S[x++],v>1&&(S[s++]=S[x++]))}break}if(64&k){e.msg="invalid distance code",n.mode=30;break e}w=b[(65535&w)+(f&(1<<k)-1)]}}break}}while(r<i&&s<a);r-=v=m>>3,f&=(1<<(m-=v<<3))-1,e.next_in=r,e.next_out=s,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=s<a?a-s+257:257-(s-a),n.hold=f,n.bits=m}}}},{package:"browserify>browserify-zlib>pako",file:"node_modules/pako/lib/zlib/inffast.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/zlib/inflate.js",{"../utils/common":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/utils/common.js","./adler32":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/zlib/adler32.js","./crc32":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/zlib/crc32.js","./inffast":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/zlib/inffast.js","./inftrees":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/zlib/inftrees.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("../utils/common"),i=e("./adler32"),s=e("./crc32"),o=e("./inffast"),a=e("./inftrees"),u=-2,l=12,c=30;function d(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function h(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):u}function m(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,f(e)):u}function p(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?u:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,m(e))):u}function b(e,t){var n,r;return e?(r=new h,e.state=r,r.window=null,0!==(n=p(e,t))&&(e.state=null),n):u}var g,y,w=!0;function k(e){if(w){var t;for(g=new r.Buf32(512),y=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(a(1,e.lens,0,288,g,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;a(2,e.lens,0,32,y,0,e.work,{bits:5}),w=!1}e.lencode=g,e.lenbits=9,e.distcode=y,e.distbits=5}function v(e,t,n,i){var s,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((s=o.wsize-o.wnext)>i&&(s=i),r.arraySet(o.window,t,n-i,s,o.wnext),(i-=s)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=s,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=s))),0}n.inflateReset=m,n.inflateReset2=p,n.inflateResetKeep=f,n.inflateInit=function(e){return b(e,15)},n.inflateInit2=b,n.inflate=function(e,t){var n,h,f,m,p,b,g,y,w,_,x,E,j,S,T,O,I,A,B,R,L,P,N,M,z=0,D=new r.Buf8(4),C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return u;(n=e.state).mode===l&&(n.mode=13),p=e.next_out,f=e.output,g=e.avail_out,m=e.next_in,h=e.input,b=e.avail_in,y=n.hold,w=n.bits,_=b,x=g,P=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;w<16;){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}if(2&n.wrap&&35615===y){n.check=0,D[0]=255&y,D[1]=y>>>8&255,n.check=s(n.check,D,2,0),y=0,w=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&y)<<8)+(y>>8))%31){e.msg="incorrect header check",n.mode=c;break}if(8!=(15&y)){e.msg="unknown compression method",n.mode=c;break}if(w-=4,L=8+(15&(y>>>=4)),0===n.wbits)n.wbits=L;else if(L>n.wbits){e.msg="invalid window size",n.mode=c;break}n.dmax=1<<L,e.adler=n.check=1,n.mode=512&y?10:l,y=0,w=0;break;case 2:for(;w<16;){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}if(n.flags=y,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=c;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=c;break}n.head&&(n.head.text=y>>8&1),512&n.flags&&(D[0]=255&y,D[1]=y>>>8&255,n.check=s(n.check,D,2,0)),y=0,w=0,n.mode=3;case 3:for(;w<32;){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}n.head&&(n.head.time=y),512&n.flags&&(D[0]=255&y,D[1]=y>>>8&255,D[2]=y>>>16&255,D[3]=y>>>24&255,n.check=s(n.check,D,4,0)),y=0,w=0,n.mode=4;case 4:for(;w<16;){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}n.head&&(n.head.xflags=255&y,n.head.os=y>>8),512&n.flags&&(D[0]=255&y,D[1]=y>>>8&255,n.check=s(n.check,D,2,0)),y=0,w=0,n.mode=5;case 5:if(1024&n.flags){for(;w<16;){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}n.length=y,n.head&&(n.head.extra_len=y),512&n.flags&&(D[0]=255&y,D[1]=y>>>8&255,n.check=s(n.check,D,2,0)),y=0,w=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((E=n.length)>b&&(E=b),E&&(n.head&&(L=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,h,m,E,L)),512&n.flags&&(n.check=s(n.check,h,E,m)),b-=E,m+=E,n.length-=E),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===b)break e;E=0;do{L=h[m+E++],n.head&&L&&n.length<65536&&(n.head.name+=String.fromCharCode(L))}while(L&&E<b);if(512&n.flags&&(n.check=s(n.check,h,E,m)),b-=E,m+=E,L)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===b)break e;E=0;do{L=h[m+E++],n.head&&L&&n.length<65536&&(n.head.comment+=String.fromCharCode(L))}while(L&&E<b);if(512&n.flags&&(n.check=s(n.check,h,E,m)),b-=E,m+=E,L)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;w<16;){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}if(y!==(65535&n.check)){e.msg="header crc mismatch",n.mode=c;break}y=0,w=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=l;break;case 10:for(;w<32;){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}e.adler=n.check=d(y),y=0,w=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=p,e.avail_out=g,e.next_in=m,e.avail_in=b,n.hold=y,n.bits=w,2;e.adler=n.check=1,n.mode=l;case l:if(5===t||6===t)break e;case 13:if(n.last){y>>>=7&w,w-=7&w,n.mode=27;break}for(;w<3;){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}switch(n.last=1&y,w-=1,3&(y>>>=1)){case 0:n.mode=14;break;case 1:if(k(n),n.mode=20,6===t){y>>>=2,w-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=c}y>>>=2,w-=2;break;case 14:for(y>>>=7&w,w-=7&w;w<32;){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}if((65535&y)!=(y>>>16^65535)){e.msg="invalid stored block lengths",n.mode=c;break}if(n.length=65535&y,y=0,w=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(E=n.length){if(E>b&&(E=b),E>g&&(E=g),0===E)break e;r.arraySet(f,h,m,E,p),b-=E,m+=E,g-=E,p+=E,n.length-=E;break}n.mode=l;break;case 17:for(;w<14;){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}if(n.nlen=257+(31&y),y>>>=5,w-=5,n.ndist=1+(31&y),y>>>=5,w-=5,n.ncode=4+(15&y),y>>>=4,w-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=c;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;w<3;){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}n.lens[C[n.have++]]=7&y,y>>>=3,w-=3}for(;n.have<19;)n.lens[C[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,N={bits:n.lenbits},P=a(0,n.lens,0,19,n.lencode,0,n.work,N),n.lenbits=N.bits,P){e.msg="invalid code lengths set",n.mode=c;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;O=(z=n.lencode[y&(1<<n.lenbits)-1])>>>16&255,I=65535&z,!((T=z>>>24)<=w);){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}if(I<16)y>>>=T,w-=T,n.lens[n.have++]=I;else{if(16===I){for(M=T+2;w<M;){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}if(y>>>=T,w-=T,0===n.have){e.msg="invalid bit length repeat",n.mode=c;break}L=n.lens[n.have-1],E=3+(3&y),y>>>=2,w-=2}else if(17===I){for(M=T+3;w<M;){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}w-=T,L=0,E=3+(7&(y>>>=T)),y>>>=3,w-=3}else{for(M=T+7;w<M;){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}w-=T,L=0,E=11+(127&(y>>>=T)),y>>>=7,w-=7}if(n.have+E>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=c;break}for(;E--;)n.lens[n.have++]=L}}if(n.mode===c)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=c;break}if(n.lenbits=9,N={bits:n.lenbits},P=a(1,n.lens,0,n.nlen,n.lencode,0,n.work,N),n.lenbits=N.bits,P){e.msg="invalid literal/lengths set",n.mode=c;break}if(n.distbits=6,n.distcode=n.distdyn,N={bits:n.distbits},P=a(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,N),n.distbits=N.bits,P){e.msg="invalid distances set",n.mode=c;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(b>=6&&g>=258){e.next_out=p,e.avail_out=g,e.next_in=m,e.avail_in=b,n.hold=y,n.bits=w,o(e,x),p=e.next_out,f=e.output,g=e.avail_out,m=e.next_in,h=e.input,b=e.avail_in,y=n.hold,w=n.bits,n.mode===l&&(n.back=-1);break}for(n.back=0;O=(z=n.lencode[y&(1<<n.lenbits)-1])>>>16&255,I=65535&z,!((T=z>>>24)<=w);){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}if(O&&!(240&O)){for(A=T,B=O,R=I;O=(z=n.lencode[R+((y&(1<<A+B)-1)>>A)])>>>16&255,I=65535&z,!(A+(T=z>>>24)<=w);){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}y>>>=A,w-=A,n.back+=A}if(y>>>=T,w-=T,n.back+=T,n.length=I,0===O){n.mode=26;break}if(32&O){n.back=-1,n.mode=l;break}if(64&O){e.msg="invalid literal/length code",n.mode=c;break}n.extra=15&O,n.mode=22;case 22:if(n.extra){for(M=n.extra;w<M;){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}n.length+=y&(1<<n.extra)-1,y>>>=n.extra,w-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;O=(z=n.distcode[y&(1<<n.distbits)-1])>>>16&255,I=65535&z,!((T=z>>>24)<=w);){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}if(!(240&O)){for(A=T,B=O,R=I;O=(z=n.distcode[R+((y&(1<<A+B)-1)>>A)])>>>16&255,I=65535&z,!(A+(T=z>>>24)<=w);){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}y>>>=A,w-=A,n.back+=A}if(y>>>=T,w-=T,n.back+=T,64&O){e.msg="invalid distance code",n.mode=c;break}n.offset=I,n.extra=15&O,n.mode=24;case 24:if(n.extra){for(M=n.extra;w<M;){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}n.offset+=y&(1<<n.extra)-1,y>>>=n.extra,w-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=c;break}n.mode=25;case 25:if(0===g)break e;if(E=x-g,n.offset>E){if((E=n.offset-E)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=c;break}E>n.wnext?(E-=n.wnext,j=n.wsize-E):j=n.wnext-E,E>n.length&&(E=n.length),S=n.window}else S=f,j=p-n.offset,E=n.length;E>g&&(E=g),g-=E,n.length-=E;do{f[p++]=S[j++]}while(--E);0===n.length&&(n.mode=21);break;case 26:if(0===g)break e;f[p++]=n.length,g--,n.mode=21;break;case 27:if(n.wrap){for(;w<32;){if(0===b)break e;b--,y|=h[m++]<<w,w+=8}if(x-=g,e.total_out+=x,n.total+=x,x&&(e.adler=n.check=n.flags?s(n.check,f,x,p-x):i(n.check,f,x,p-x)),x=g,(n.flags?y:d(y))!==n.check){e.msg="incorrect data check",n.mode=c;break}y=0,w=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;w<32;){if(0===b)break e;b--,y+=h[m++]<<w,w+=8}if(y!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=c;break}y=0,w=0}n.mode=29;case 29:P=1;break e;case c:P=-3;break e;case 31:return-4;default:return u}return e.next_out=p,e.avail_out=g,e.next_in=m,e.avail_in=b,n.hold=y,n.bits=w,(n.wsize||x!==e.avail_out&&n.mode<c&&(n.mode<27||4!==t))&&v(e,e.output,e.next_out,x-e.avail_out)?(n.mode=31,-4):(_-=e.avail_in,x-=e.avail_out,e.total_in+=_,e.total_out+=x,n.total+=x,n.wrap&&x&&(e.adler=n.check=n.flags?s(n.check,f,x,e.next_out-x):i(n.check,f,x,e.next_out-x)),e.data_type=n.bits+(n.last?64:0)+(n.mode===l?128:0)+(20===n.mode||15===n.mode?256:0),(0===_&&0===x||4===t)&&0===P&&(P=-5),P)},n.inflateEnd=function(e){if(!e||!e.state)return u;var t=e.state;return t.window&&(t.window=null),e.state=null,0},n.inflateGetHeader=function(e,t){var n;return e&&e.state&&2&(n=e.state).wrap?(n.head=t,t.done=!1,0):u},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?u:11===n.mode&&i(1,t,r,0)!==n.check?-3:v(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):u},n.inflateInfo="pako inflate (from Nodeca project)"}}},{package:"browserify>browserify-zlib>pako",file:"node_modules/pako/lib/zlib/inflate.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/zlib/inftrees.js",{"../utils/common":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/utils/common.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("../utils/common"),i=15,s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,l,c,d,h,f){var m,p,b,g,y,w,k,v,_,x=f.bits,E=0,j=0,S=0,T=0,O=0,I=0,A=0,B=0,R=0,L=0,P=null,N=0,M=new r.Buf16(16),z=new r.Buf16(16),D=null,C=0;for(E=0;E<=i;E++)M[E]=0;for(j=0;j<l;j++)M[t[n+j]]++;for(O=x,T=i;T>=1&&0===M[T];T--);if(O>T&&(O=T),0===T)return c[d++]=20971520,c[d++]=20971520,f.bits=1,0;for(S=1;S<T&&0===M[S];S++);for(O<S&&(O=S),B=1,E=1;E<=i;E++)if(B<<=1,(B-=M[E])<0)return-1;if(B>0&&(0===e||1!==T))return-1;for(z[1]=0,E=1;E<i;E++)z[E+1]=z[E]+M[E];for(j=0;j<l;j++)0!==t[n+j]&&(h[z[t[n+j]]++]=j);if(0===e?(P=D=h,w=19):1===e?(P=s,N-=257,D=o,C-=257,w=256):(P=a,D=u,w=-1),L=0,j=0,E=S,y=d,I=O,A=0,b=-1,g=(R=1<<O)-1,1===e&&R>852||2===e&&R>592)return 1;for(;;){k=E-A,h[j]<w?(v=0,_=h[j]):h[j]>w?(v=D[C+h[j]],_=P[N+h[j]]):(v=96,_=0),m=1<<E-A,S=p=1<<I;do{c[y+(L>>A)+(p-=m)]=k<<24|v<<16|_}while(0!==p);for(m=1<<E-1;L&m;)m>>=1;if(0!==m?(L&=m-1,L+=m):L=0,j++,0===--M[E]){if(E===T)break;E=t[n+h[j]]}if(E>O&&(L&g)!==b){for(0===A&&(A=O),y+=S,B=1<<(I=E-A);I+A<T&&!((B-=M[I+A])<=0);)I++,B<<=1;if(R+=1<<I,1===e&&R>852||2===e&&R>592)return 1;c[b=L&g]=O<<24|I<<16|y-d}}return 0!==L&&(c[y+L]=E-A<<24|64<<16),f.bits=O,0}}}},{package:"browserify>browserify-zlib>pako",file:"node_modules/pako/lib/zlib/inftrees.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/zlib/messages.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}}}},{package:"browserify>browserify-zlib>pako",file:"node_modules/pako/lib/zlib/messages.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/zlib/trees.js",{"../utils/common":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/utils/common.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("../utils/common");function i(e){for(var t=e.length;--t>=0;)e[t]=0}var s=256,o=286,a=30,u=15,l=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],c=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],h=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],f=new Array(576);i(f);var m=new Array(60);i(m);var p=new Array(512);i(p);var b=new Array(256);i(b);var g=new Array(29);i(g);var y,w,k,v=new Array(a);function _(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function x(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function E(e){return e<256?p[e]:p[256+(e>>>7)]}function j(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function S(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,j(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function T(e,t,n){S(e,n[2*t],n[2*t+1])}function O(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function I(e,t,n){var r,i,s=new Array(16),o=0;for(r=1;r<=u;r++)s[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var a=e[2*i+1];0!==a&&(e[2*i]=O(s[a]++,a))}}function A(e){var t;for(t=0;t<o;t++)e.dyn_ltree[2*t]=0;for(t=0;t<a;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function B(e){e.bi_valid>8?j(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function R(e,t,n,r){var i=2*t,s=2*n;return e[i]<e[s]||e[i]===e[s]&&r[t]<=r[n]}function L(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&R(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!R(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function P(e,t,n){var r,i,o,a,u=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*u]<<8|e.pending_buf[e.d_buf+2*u+1],i=e.pending_buf[e.l_buf+u],u++,0===r?T(e,i,t):(T(e,(o=b[i])+s+1,t),0!==(a=l[o])&&S(e,i-=g[o],a),T(e,o=E(--r),n),0!==(a=c[o])&&S(e,r-=v[o],a))}while(u<e.last_lit);T(e,256,t)}function N(e,t){var n,r,i,s=t.dyn_tree,o=t.stat_desc.static_tree,a=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<l;n++)0!==s[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):s[2*n+1]=0;for(;e.heap_len<2;)s[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,a&&(e.static_len-=o[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)L(e,s,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],L(e,s,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,s[2*i]=s[2*n]+s[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,s[2*n+1]=s[2*r+1]=i,e.heap[1]=i++,L(e,s,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,s,o,a,l=t.dyn_tree,c=t.max_code,d=t.stat_desc.static_tree,h=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,p=t.stat_desc.max_length,b=0;for(s=0;s<=u;s++)e.bl_count[s]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(s=l[2*l[2*(r=e.heap[n])+1]+1]+1)>p&&(s=p,b++),l[2*r+1]=s,r>c||(e.bl_count[s]++,o=0,r>=m&&(o=f[r-m]),a=l[2*r],e.opt_len+=a*(s+o),h&&(e.static_len+=a*(d[2*r+1]+o)));if(0!==b){do{for(s=p-1;0===e.bl_count[s];)s--;e.bl_count[s]--,e.bl_count[s+1]+=2,e.bl_count[p]--,b-=2}while(b>0);for(s=p;0!==s;s--)for(r=e.bl_count[s];0!==r;)(i=e.heap[--n])>c||(l[2*i+1]!==s&&(e.opt_len+=(s-l[2*i+1])*l[2*i],l[2*i+1]=s),r--)}}(e,t),I(s,c,e.bl_count)}function M(e,t,n){var r,i,s=-1,o=t[1],a=0,u=7,l=4;for(0===o&&(u=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++a<u&&i===o||(a<l?e.bl_tree[2*i]+=a:0!==i?(i!==s&&e.bl_tree[2*i]++,e.bl_tree[32]++):a<=10?e.bl_tree[34]++:e.bl_tree[36]++,a=0,s=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4))}function z(e,t,n){var r,i,s=-1,o=t[1],a=0,u=7,l=4;for(0===o&&(u=138,l=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++a<u&&i===o)){if(a<l)do{T(e,i,e.bl_tree)}while(0!==--a);else 0!==i?(i!==s&&(T(e,i,e.bl_tree),a--),T(e,16,e.bl_tree),S(e,a-3,2)):a<=10?(T(e,17,e.bl_tree),S(e,a-3,3)):(T(e,18,e.bl_tree),S(e,a-11,7));a=0,s=i,0===o?(u=138,l=3):i===o?(u=6,l=3):(u=7,l=4)}}i(v);var D=!1;function C(e,t,n,i){S(e,0+(i?1:0),3),function(e,t,n,i){B(e),i&&(j(e,n),j(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}n._tr_init=function(e){D||(!function(){var e,t,n,r,i,s=new Array(16);for(n=0,r=0;r<28;r++)for(g[r]=n,e=0;e<1<<l[r];e++)b[n++]=r;for(b[n-1]=r,i=0,r=0;r<16;r++)for(v[r]=i,e=0;e<1<<c[r];e++)p[i++]=r;for(i>>=7;r<a;r++)for(v[r]=i<<7,e=0;e<1<<c[r]-7;e++)p[256+i++]=r;for(t=0;t<=u;t++)s[t]=0;for(e=0;e<=143;)f[2*e+1]=8,e++,s[8]++;for(;e<=255;)f[2*e+1]=9,e++,s[9]++;for(;e<=279;)f[2*e+1]=7,e++,s[7]++;for(;e<=287;)f[2*e+1]=8,e++,s[8]++;for(I(f,287,s),e=0;e<a;e++)m[2*e+1]=5,m[2*e]=O(e,5);y=new _(f,l,257,o,u),w=new _(m,c,0,a,u),k=new _(new Array(0),d,0,19,7)}(),D=!0),e.l_desc=new x(e.dyn_ltree,y),e.d_desc=new x(e.dyn_dtree,w),e.bl_desc=new x(e.bl_tree,k),e.bi_buf=0,e.bi_valid=0,A(e)},n._tr_stored_block=C,n._tr_flush_block=function(e,t,n,r){var i,o,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<s;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),N(e,e.l_desc),N(e,e.d_desc),a=function(e){var t;for(M(e,e.dyn_ltree,e.l_desc.max_code),M(e,e.dyn_dtree,e.d_desc.max_code),N(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*h[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?C(e,t,n,r):4===e.strategy||o===i?(S(e,2+(r?1:0),3),P(e,f,m)):(S(e,4+(r?1:0),3),function(e,t,n,r){var i;for(S(e,t-257,5),S(e,n-1,5),S(e,r-4,4),i=0;i<r;i++)S(e,e.bl_tree[2*h[i]+1],3);z(e,e.dyn_ltree,t-1),z(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),P(e,e.dyn_ltree,e.dyn_dtree)),A(e),r&&B(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(b[n]+s+1)]++,e.dyn_dtree[2*E(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){S(e,2,3),T(e,256,f),function(e){16===e.bi_valid?(j(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}}}},{package:"browserify>browserify-zlib>pako",file:"node_modules/pako/lib/zlib/trees.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/pako/lib/zlib/zstream.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}}}},{package:"browserify>browserify-zlib>pako",file:"node_modules/pako/lib/zlib/zstream.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/parse-asn1/aesid.json",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}}}},{package:"crypto-browserify>public-encrypt>parse-asn1",file:"node_modules/parse-asn1/aesid.json"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/parse-asn1/asn1.js",{"./certificate":"/home/runner/work/metamask-extension/metamask-extension/node_modules/parse-asn1/certificate.js","asn1.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/asn1.js/lib/asn1.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("asn1.js");n.certificate=e("./certificate");var i=r.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});n.RSAPrivateKey=i;var s=r.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});n.RSAPublicKey=s;var o=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),a=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())});n.PublicKey=a;var u=r.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(o),this.key("subjectPrivateKey").octstr())});n.PrivateKey=u;var l=r.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});n.EncryptedPrivateKey=l;var c=r.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});n.DSAPrivateKey=c,n.DSAparam=r.define("DSAparam",function(){this.int()});var d=r.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),h=r.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())});n.ECPrivateKey=h,n.signature=r.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}}},{package:"crypto-browserify>public-encrypt>parse-asn1",file:"node_modules/parse-asn1/asn1.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/parse-asn1/certificate.js",{"asn1.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/asn1.js/lib/asn1.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("asn1.js"),i=r.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),s=r.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),o=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),a=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}),u=r.define("RelativeDistinguishedName",function(){this.setof(s)}),l=r.define("RDNSequence",function(){this.seqof(u)}),c=r.define("Name",function(){this.choice({rdnSequence:this.use(l)})}),d=r.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),h=r.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),f=r.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(c),this.key("validity").use(d),this.key("subject").use(c),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())}),m=r.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())});t.exports=m}}},{package:"crypto-browserify>public-encrypt>parse-asn1",file:"node_modules/parse-asn1/certificate.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/parse-asn1/fixProc.js",{"browserify-aes":"/home/runner/work/metamask-extension/metamask-extension/node_modules/browserify-aes/browser.js",evp_bytestokey:"/home/runner/work/metamask-extension/metamask-extension/node_modules/evp_bytestokey/index.js","safe-buffer":"/home/runner/work/metamask-extension/metamask-extension/node_modules/safe-buffer/index.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,s=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,o=e("evp_bytestokey"),a=e("browserify-aes"),u=e("safe-buffer").Buffer;t.exports=function(e,t){var n,l=e.toString(),c=l.match(r);if(c){var d="aes"+c[1],h=u.from(c[2],"hex"),f=u.from(c[3].replace(/[\r\n]/g,""),"base64"),m=o(t,h.slice(0,8),parseInt(c[1],10)).key,p=[],b=a.createDecipheriv(d,m,h);p.push(b.update(f)),p.push(b.final()),n=u.concat(p)}else{var g=l.match(s);n=u.from(g[2].replace(/[\r\n]/g,""),"base64")}return{tag:l.match(i)[1],data:n}}}}},{package:"crypto-browserify>public-encrypt>parse-asn1",file:"node_modules/parse-asn1/fixProc.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/parse-asn1/index.js",{"./aesid.json":"/home/runner/work/metamask-extension/metamask-extension/node_modules/parse-asn1/aesid.json","./asn1":"/home/runner/work/metamask-extension/metamask-extension/node_modules/parse-asn1/asn1.js","./fixProc":"/home/runner/work/metamask-extension/metamask-extension/node_modules/parse-asn1/fixProc.js","browserify-aes":"/home/runner/work/metamask-extension/metamask-extension/node_modules/browserify-aes/browser.js",pbkdf2:"/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/browser.js","safe-buffer":"/home/runner/work/metamask-extension/metamask-extension/node_modules/safe-buffer/index.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("./asn1"),i=e("./aesid.json"),s=e("./fixProc"),o=e("browserify-aes"),a=e("pbkdf2"),u=e("safe-buffer").Buffer;function l(e){var t;"object"!=typeof e||u.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=u.from(e));var n,l,c=s(e,t),d=c.tag,h=c.data;switch(d){case"CERTIFICATE":l=r.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(l||(l=r.PublicKey.decode(h,"der")),n=l.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(l.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return l.subjectPrivateKey=l.subjectPublicKey,{type:"ec",data:l};case"1.2.840.10040.4.1":return l.algorithm.params.pub_key=r.DSAparam.decode(l.subjectPublicKey.data,"der"),{type:"dsa",data:l.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":h=function(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),s=i[e.algorithm.decrypt.cipher.algo.join(".")],l=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,d=parseInt(s.split("-")[1],10)/8,h=a.pbkdf2Sync(t,n,r,d,"sha1"),f=o.createDecipheriv(s,h,l),m=[];return m.push(f.update(c)),m.push(f.final()),u.concat(m)}(h=r.EncryptedPrivateKey.decode(h,"der"),t);case"PRIVATE KEY":switch(n=(l=r.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(l.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:l.algorithm.curve,privateKey:r.ECPrivateKey.decode(l.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return l.algorithm.params.priv_key=r.DSAparam.decode(l.subjectPrivateKey,"der"),{type:"dsa",params:l.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=r.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+d)}}l.signature=r.signature,t.exports=l}}},{package:"crypto-browserify>public-encrypt>parse-asn1",file:"node_modules/parse-asn1/index.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/browser.js",{"./lib/async":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/lib/async.js","./lib/sync":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/lib/sync-browser.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){n.pbkdf2=e("./lib/async"),n.pbkdf2Sync=e("./lib/sync")}}},{package:"crypto-browserify>pbkdf2",file:"node_modules/pbkdf2/browser.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/lib/async.js",{"./default-encoding":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/lib/default-encoding.js","./precondition":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/lib/precondition.js","./sync":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/lib/sync-browser.js","./to-buffer":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/lib/to-buffer.js","safe-buffer":"/home/runner/work/metamask-extension/metamask-extension/node_modules/safe-buffer/index.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r,i,s=e("safe-buffer").Buffer,o=e("./precondition"),a=e("./default-encoding"),u=e("./sync"),l=e("./to-buffer"),c=global.crypto&&global.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function f(){return i||(i=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function m(e,t,n,r,i){return c.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return c.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:i}},e,r<<3)}).then(function(e){return s.from(e)})}t.exports=function(e,t,n,i,p,b){"function"==typeof p&&(b=p,p=undefined);var g=d[(p=p||"sha1").toLowerCase()];if(g&&"function"==typeof global.Promise){if(o(n,i),e=l(e,a,"Password"),t=l(t,a,"Salt"),"function"!=typeof b)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then(function(e){f()(function(){t(null,e)})},function(e){f()(function(){t(e)})})}(function(e){if(global.process&&!global.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(h[e]!==undefined)return h[e];var t=m(r=r||s.alloc(8),r,10,128,e).then(function(){return!0},function(){return!1});return h[e]=t,t}(g).then(function(r){return r?m(e,t,n,i,g):u(e,t,n,i,p)}),b)}else f()(function(){var r;try{r=u(e,t,n,i,p)}catch(e){return void b(e)}b(null,r)})}}}},{package:"crypto-browserify>pbkdf2",file:"node_modules/pbkdf2/lib/async.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/lib/default-encoding.js",{_process:"/home/runner/work/metamask-extension/metamask-extension/node_modules/process/browser.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){(function(e){(function(){var n;if(global.process&&global.process.browser)n="utf-8";else if(global.process&&global.process.version){n=parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else n="utf-8";t.exports=n}).call(this)}).call(this,e("_process"))}}},{package:"crypto-browserify>pbkdf2",file:"node_modules/pbkdf2/lib/default-encoding.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/lib/precondition.js",{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=Math.pow(2,30)-1;t.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>r||t!=t)throw new TypeError("Bad key length")}}}},{package:"crypto-browserify>pbkdf2",file:"node_modules/pbkdf2/lib/precondition.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/lib/sync-browser.js",{"./default-encoding":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/lib/default-encoding.js","./precondition":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/lib/precondition.js","./to-buffer":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/lib/to-buffer.js","create-hash/md5":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/node_modules/create-hash/md5.js",ripemd160:"/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/node_modules/ripemd160/index.js","safe-buffer":"/home/runner/work/metamask-extension/metamask-extension/node_modules/safe-buffer/index.js","sha.js":"/home/runner/work/metamask-extension/metamask-extension/node_modules/sha.js/index.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("create-hash/md5"),i=e("ripemd160"),s=e("sha.js"),o=e("safe-buffer").Buffer,a=e("./precondition"),u=e("./default-encoding"),l=e("./to-buffer"),c=o.alloc(128),d={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},h={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function f(e){return(new i).update(e).digest()}function m(e,t,n){var i=function(e){return"rmd160"===e||"ripemd160"===e?f:"md5"===e?r:function(t){return s(e).update(t).digest()}}(e),a="sha512"===e||"sha384"===e?128:64;t.length>a?t=i(t):t.length<a&&(t=o.concat([t,c],a));for(var u=o.allocUnsafe(a+d[e]),l=o.allocUnsafe(a+d[e]),h=0;h<a;h++)u[h]=54^t[h],l[h]=92^t[h];var m=o.allocUnsafe(a+n+4);u.copy(m,0,0,a),this.ipad1=m,this.ipad2=u,this.opad=l,this.alg=e,this.blocksize=a,this.hash=i,this.size=d[e]}m.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(e,t,n,r,i){a(n,r),e=l(e,u,"Password"),t=l(t,u,"Salt");var s=(i||"sha1").toLowerCase(),c=h[s]||s,f=d[c];if("number"!=typeof f||!f)throw new TypeError("Digest algorithm not supported: "+i);var p=new m(c,e,t.length),b=o.allocUnsafe(r),g=o.allocUnsafe(t.length+4);t.copy(g,0,0,t.length);for(var y=0,w=f,k=Math.ceil(r/w),v=1;v<=k;v++){g.writeUInt32BE(v,t.length);for(var _=p.run(g,p.ipad1),x=_,E=1;E<n;E++){x=p.run(x,p.ipad2);for(var j=0;j<w;j++)_[j]^=x[j]}_.copy(b,y),y+=w}return b}}}},{package:"crypto-browserify>pbkdf2",file:"node_modules/pbkdf2/lib/sync-browser.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/lib/to-buffer.js",{"safe-buffer":"/home/runner/work/metamask-extension/metamask-extension/node_modules/safe-buffer/index.js","to-buffer":"/home/runner/work/metamask-extension/metamask-extension/node_modules/to-buffer/index.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("safe-buffer").Buffer,i=e("to-buffer"),s="undefined"!=typeof Uint8Array,o=s&&"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView;t.exports=function(e,t,n){if("string"==typeof e||r.isBuffer(e)||s&&e instanceof Uint8Array||o&&o(e))return i(e,t);throw new TypeError(n+" must be a string, a Buffer, a Uint8Array, or a DataView")}}}},{package:"crypto-browserify>pbkdf2",file:"node_modules/pbkdf2/lib/to-buffer.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/node_modules/create-hash/make-hash.js",{buffer:"/home/runner/work/metamask-extension/metamask-extension/node_modules/browserify/node_modules/buffer/index.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){(function(e){(function(){var n=new e(4);n.fill(0);t.exports=function(t,r){var i=r(function(t){if(t.length%4!=0){var r=t.length+(4-t.length%4);t=e.concat([t,n],r)}for(var i=new Array(t.length>>>2),s=0,o=0;s<t.length;s+=4,o++)i[o]=t.readInt32LE(s);return i}(t),8*t.length);t=new e(16);for(var s=0;s<i.length;s++)t.writeInt32LE(i[s],s<<2,!0);return t}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"crypto-browserify>pbkdf2>create-hash",file:"node_modules/pbkdf2/node_modules/create-hash/make-hash.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/node_modules/create-hash/md5.js",{"./make-hash":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/node_modules/create-hash/make-hash.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("./make-hash");function i(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,i=-1732584194,s=271733878,d=0;d<e.length;d+=16){var h=n,f=r,m=i,p=s;n=o(n,r,i,s,e[d+0],7,-680876936),s=o(s,n,r,i,e[d+1],12,-389564586),i=o(i,s,n,r,e[d+2],17,606105819),r=o(r,i,s,n,e[d+3],22,-1044525330),n=o(n,r,i,s,e[d+4],7,-176418897),s=o(s,n,r,i,e[d+5],12,1200080426),i=o(i,s,n,r,e[d+6],17,-1473231341),r=o(r,i,s,n,e[d+7],22,-45705983),n=o(n,r,i,s,e[d+8],7,1770035416),s=o(s,n,r,i,e[d+9],12,-1958414417),i=o(i,s,n,r,e[d+10],17,-42063),r=o(r,i,s,n,e[d+11],22,-1990404162),n=o(n,r,i,s,e[d+12],7,1804603682),s=o(s,n,r,i,e[d+13],12,-40341101),i=o(i,s,n,r,e[d+14],17,-1502002290),n=a(n,r=o(r,i,s,n,e[d+15],22,1236535329),i,s,e[d+1],5,-165796510),s=a(s,n,r,i,e[d+6],9,-1069501632),i=a(i,s,n,r,e[d+11],14,643717713),r=a(r,i,s,n,e[d+0],20,-373897302),n=a(n,r,i,s,e[d+5],5,-701558691),s=a(s,n,r,i,e[d+10],9,38016083),i=a(i,s,n,r,e[d+15],14,-660478335),r=a(r,i,s,n,e[d+4],20,-405537848),n=a(n,r,i,s,e[d+9],5,568446438),s=a(s,n,r,i,e[d+14],9,-1019803690),i=a(i,s,n,r,e[d+3],14,-187363961),r=a(r,i,s,n,e[d+8],20,1163531501),n=a(n,r,i,s,e[d+13],5,-1444681467),s=a(s,n,r,i,e[d+2],9,-51403784),i=a(i,s,n,r,e[d+7],14,1735328473),n=u(n,r=a(r,i,s,n,e[d+12],20,-1926607734),i,s,e[d+5],4,-378558),s=u(s,n,r,i,e[d+8],11,-2022574463),i=u(i,s,n,r,e[d+11],16,1839030562),r=u(r,i,s,n,e[d+14],23,-35309556),n=u(n,r,i,s,e[d+1],4,-1530992060),s=u(s,n,r,i,e[d+4],11,1272893353),i=u(i,s,n,r,e[d+7],16,-155497632),r=u(r,i,s,n,e[d+10],23,-1094730640),n=u(n,r,i,s,e[d+13],4,681279174),s=u(s,n,r,i,e[d+0],11,-358537222),i=u(i,s,n,r,e[d+3],16,-722521979),r=u(r,i,s,n,e[d+6],23,76029189),n=u(n,r,i,s,e[d+9],4,-640364487),s=u(s,n,r,i,e[d+12],11,-421815835),i=u(i,s,n,r,e[d+15],16,530742520),n=l(n,r=u(r,i,s,n,e[d+2],23,-995338651),i,s,e[d+0],6,-198630844),s=l(s,n,r,i,e[d+7],10,1126891415),i=l(i,s,n,r,e[d+14],15,-1416354905),r=l(r,i,s,n,e[d+5],21,-57434055),n=l(n,r,i,s,e[d+12],6,1700485571),s=l(s,n,r,i,e[d+3],10,-1894986606),i=l(i,s,n,r,e[d+10],15,-1051523),r=l(r,i,s,n,e[d+1],21,-2054922799),n=l(n,r,i,s,e[d+8],6,1873313359),s=l(s,n,r,i,e[d+15],10,-30611744),i=l(i,s,n,r,e[d+6],15,-1560198380),r=l(r,i,s,n,e[d+13],21,1309151649),n=l(n,r,i,s,e[d+4],6,-145523070),s=l(s,n,r,i,e[d+11],10,-1120210379),i=l(i,s,n,r,e[d+2],15,718787259),r=l(r,i,s,n,e[d+9],21,-343485551),n=c(n,h),r=c(r,f),i=c(i,m),s=c(s,p)}return[n,r,i,s]}function s(e,t,n,r,i,s){return c((o=c(c(t,e),c(r,s)))<<(a=i)|o>>>32-a,n);var o,a}function o(e,t,n,r,i,o,a){return s(t&n|~t&r,e,t,i,o,a)}function a(e,t,n,r,i,o,a){return s(t&r|n&~r,e,t,i,o,a)}function u(e,t,n,r,i,o,a){return s(t^n^r,e,t,i,o,a)}function l(e,t,n,r,i,o,a){return s(n^(t|~r),e,t,i,o,a)}function c(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return r(e,i)}}}},{package:"crypto-browserify>pbkdf2>create-hash",file:"node_modules/pbkdf2/node_modules/create-hash/md5.js"}],["/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/node_modules/ripemd160/index.js",{buffer:"/home/runner/work/metamask-extension/metamask-extension/node_modules/browserify/node_modules/buffer/index.js","hash-base":"/home/runner/work/metamask-extension/metamask-extension/node_modules/pbkdf2/node_modules/ripemd160/node_modules/hash-base/index.js",inherits:"/home/runner/work/metamask-extension/metamask-extension/node_modules/inherits/inherits_browser.js"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){(function(n){(function(){var r=e("inherits"),i=e("hash-base");function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function o(e,t){return e<<t|e>>>32-t}function a(e,t,n,r,i,s,a,u){return o(e+(t^n^r)+s+a|0,u)+i|0}function u(e,t,n,r,i,s,a,u){return o(e+(t&n|~t&r)+s+a|0,u)+i|0}function l(e,t,n,r,i,s,a,u){return o(e+((t|~n)^r)+s+a|0,u)+i|0}function c(e,t,n,r,i,s,a,u){return o(e+(t&r|n&~r)+s+a|0,u)+i|0}function d(e,t,n,r,i,s,a,u){return o(e+(t^(n|~r))+s+a|0,u)+i|0}r(s,i),s.prototype._update=function(){for(var e=new Array(16),t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,s=this._d,h=this._e;n=a(n,r,i,s,h,e[0],0,11),h=a(h,n,r,i=o(i,10),s,e[1],0,14),s=a(s,h,n,r=o(r,10),i,e[2],0,15),i=a(i,s,h,n=o(n,10),r,e[3],0,12),r=a(r,i,s,h=o(h,10),n,e[4],0,5),n=a(n,r,i,s=o(s,10),h,e[5],0,8),h=a(h,n,r,i=o(i,10),s,e[6],0,7),s=a(s,h,n,r=o(r,10),i,e[7],0,9),i=a(i,s,h,n=o(n,10),r,e[8],0,11),r=a(r,i,s,h=o(h,10),n,e[9],0,13),n=a(n,r,i,s=o(s,10),h,e[10],0,14),h=a(h,n,r,i=o(i,10),s,e[11],0,15),s=a(s,h,n,r=o(r,10),i,e[12],0,6),i=a(i,s,h,n=o(n,10),r,e[13],0,7),r=a(r,i,s,h=o(h,10),n,e[14],0,9),h=u(h,n=a(n,r,i,s=o(s,10),h,e[15],0,8),r,i=o(i,10),s,e[7],1518500249,7),s=u(s,h,n,r=o(r,10),i,e[4],1518500249,6),i=u(i,s,h,n=o(n,10),r,e[13],1518500249,8),r=u(r,i,s,h=o(h,10),n,e[1],1518500249,13),n=u(n,r,i,s=o(s,10),h,e[10],1518500249,11),h=u(h,n,r,i=o(i,10),s,e[6],1518500249,9),s=u(s,h,n,r=o(r,10),i,e[15],1518500249,7),i=u(i,s,h,n=o(n,10),r,e[3],1518500249,15),r=u(r,i,s,h=o(h,10),n,e[12],1518500249,7),n=u(n,r,i,s=o(s,10),h,e[0],1518500249,12),h=u(h,n,r,i=o(i,10),s,e[9],1518500249,15),s=u(s,h,n,r=o(r,10),i,e[5],1518500249,9),i=u(i,s,h,n=o(n,10),r,e[2],1518500249,11),r=u(r,i,s,h=o(h,10),n,e[14],1518500249,7),n=u(n,r,i,s=o(s,10),h,e[11],1518500249,13),s=l(s,h=u(h,n,r,i=o(i,10),s,e[8],1518500249,12),n,r=o(r,10),i,e[3],1859775393,11),i=l(i,s,h,n=o(n,10),r,e[10],1859775393,13),r=l(r,i,s,h=o(h,10),n,e[14],1859775393,6),n=l(n,r,i,s=o(s,10),h,e[4],1859775393,7),h=l(h,n,r,i=o(i,10),s,e[9],1859775393,14),s=l(s,h,n,r=o(r,10),i,e[15],1859775393,9),i=l(i,s,h,n=o(n,10),r,e[8],1859775393,13),r=l(r,i,s,h=o(h,10),n,e[1],1859775393,15),n=l(n,r,i,s=o(s,10),h,e[2],1859775393,14),h=l(h,n,r,i=o(i,10),s,e[7],1859775393,8),s=l(s,h,n,r=o(r,10),i,e[0],1859775393,13),i=l(i,s,h,n=o(n,10),r,e[6],1859775393,6),r=l(r,i,s,h=o(h,10),n,e[13],1859775393,5),n=l(n,r,i,s=o(s,10),h,e[11],1859775393,12),h=l(h,n,r,i=o(i,10),s,e[5],1859775393,7),i=c(i,s=l(s,h,n,r=o(r,10),i,e[12],1859775393,5),h,n=o(n,10),r,e[1],2400959708,11),r=c(r,i,s,h=o(h,10),n,e[9],2400959708,12),n=c(n,r,i,s=o(s,10),h,e[11],2400959708,14),h=c(h,n,r,i=o(i,10),s,e[10],2400959708,15),s=c(s,h,n,r=o(r,10),i,e[0],2400959708,14),i=c(i,s,h,n=o(n,10),r,e[8],2400959708,15),r=c(r,i,s,h=o(h,10),n,e[12],2400959708,9),n=c(n,r,i,s=o(s,10),h,e[4],2400959708,8),h=c(h,n,r,i=o(i,10),s,e[13],2400959708,9),s=c(s,h,n,r=o(r,10),i,e[3],2400959708,14),i=c(i,s,h,n=o(n,10),r,e[7],2400959708,5),r=c(r,i,s,h=o(h,10),n,e[15],2400959708,6),n=c(n,r,i,s=o(s,10),h,e[14],2400959708,8),h=c(h,n,r,i=o(i,10),s,e[5],2400959708,6),s=c(s,h,n,r=o(r,10),i,e[6],2400959708,5),r=d(r,i=c(i,s,h,n=o(n,10),r,e[2],2400959708,12),s,h=o(h,10),n,e[4],2840853838,9),n=d(n,r,i,s=o(s,10),h,e[0],2840853838,15),h=d(h,n,r,i=o(i,10),s,e[5],2840853838,5),s=d(s,h,n,r=o(r,10),i,e[9],2840853838,11),i=d(i,s,h,n=o(n,10),r,e[7],2840853838,6),r=d(r,i,s,h=o(h,10),n,e[12],2840853838,8),n=d(n,r,i,s=o(s,10),h,e[2],2840853838,13),h=d(h,n,r,i=o(i,10),s,e[10],2840853838,12),s=d(s,h,n,r=o(r,10),i,e[14],2840853838,5),i=d(i,s,h,n=o(n,10),r,e[1],2840853838,12),r=d(r,i,s,h=o(h,10),n,e[3],2840853838,13),n=d(n,r,i,s=o(s,10),h,e[8],2840853838,14),h=d(h,n,r,i=o(i,10),s,e[11],2840853838,11),s=d(s,h,n,r=o(r,10),i,e[6],2840853838,8),i=d(i,s,h,n=o(n,10),r,e[15],2840853838,5),r=d(r,i,s,h=o(h,10),n,e[13],2840853838,6),s=o(s,10);var f=this._a,m=this._b,p=this._c,b=this._d,g=this._e;f=d(f,m,p,b,g,e[5],1352829926,8),g=d(g,f,m,p=o(p,10),b,e[14],1352829926,9),b=d(b,g,f,m=o(m,10),p,e[7],1352829926,9),p=d(p,b,g,f=o(f,10),m,e[0],1352829926,11),m=d(m,p,b,g=o(g,10),f,e[9],1352829926,13),f=d(f,m,p,b=o(b,10),g,e[2],1352829926,15),g=d(g,f,m,p=o(p,10),b,e[11],1352829926,15),b=d(b,g,f,m=o(m,10),p,e[4],1352829926,5),p=d(p,b,g,f=o(f,10),m,e[13],1352829926,7),m=d(m,p,b,g=o(g,10),f,e[6],1352829926,7),f=d(f,m,p,b=o(b,10),g,e[15],1352829926,8),g=d(g,f,m,p=o(p,10),b,e[8],1352829926,11),b=d(b,g,f,m=o(m,10),p,e[1],1352829926,14),p=d(p,b,g,f=o(f,10),m,e[10],1352829926,14),m=d(m,p,b,g=o(g,10),f,e[3],1352829926,12),g=c(g,f=d(f,m,p,b=o(b,10),g,e[12],1352829926,6),m,p=o(p,10),b,e[6],1548603684,9),b=c(b,g,f,m=o(m,10),p,e[11],1548603684,13),p=c(p,b,g,f=o(f,10),m,e[3],1548603684,15),m=c(m,p,b,g=o(g,10),f,e[7],1548603684,7),f=c(f,m,p,b=o(b,10),g,e[0],1548603684,12),g=c(g,f,m,p=o(p,10),b,e[13],1548603684,8),b=c(b,g,f,m=o(m,10),p,e[5],1548603684,9),p=c(p,b,g,f=o(f,10),m,e[10],1548603684,11),m=c(m,p,b,g=o(g,10),f,e[14],1548603684,7),f=c(f,m,p,b=o(b,10),g,e[15],1548603684,7),g=c(g,f,m,p=o(p,10),b,e[8],1548603684,12),b=c(b,g,f,m=o(m,10),p,e[12],1548603684,7),p=c(p,b,g,f=o(f,10),m,e[4],1548603684,6),m=c(m,p,b,g=o(g,10),f,e[9],1548603684,15),f=c(f,m,p,b=o(b,10),g,e[1],1548603684,13),b=l(b,g=c(g,f,m,p=o(p,10),b,e[2],1548603684,11),f,m=o(m,10),p,e[15],1836072691,9),p=l(p,b,g,f=o(f,10),m,e[5],1836072691,7),m=l(m,p,b,g=o(g,10),f,e[1],1836072691,15),f=l(f,m,p,b=o(b,10),g,e[3],1836072691,11),g=l(g,f,m,p=o(p,10),b,e[7],1836072691,8),b=l(b,g,f,m=o(m,10),p,e[14],1836072691,6),p=l(p,b,g,f=o(f,10),m,e[6],1836072691,6),m=l(m,p,b,g=o(g,10),f,e[9],1836072691,14),f=l(f,m,p,b=o(b,10),g,e[11],1836072691,12),g=l(g,f,m,p=o(p,10),b,e[8],1836072691,13),b=l(b,g,f,m=o(m,10),p,e[12],1836072691,5),p=l(p,b,g,f=o(f,10),m,e[2],1836072691,14),m=l(m,p,b,g=o(g,10),f,e[10],1836072691,13),f=l(f,m,p,b=o(b,10),g,e[0],1836072691,13),g=l(g,f,m,p=o(p,10),b,e[4],1836072691,7),p=u(p,b=l(b,g,f,m=o(m,10),p,e[13],1836072691,5),g,f=o(f,10),m,e[8],2053994217,15),m=u(m,p,b,g=o(g,10),f,e[6],2053994217,5),f=u(f,m,p,b=o(b,10),g,e[4],2053994217,8),g=u(g,f,m,p=o(p,10),b,e[1],2053994217,11),b=u(b,g,f,m=o(m,10),p,e[3],2053994217,14),p=u(p,b,g,f=o(f,10),m,e[11],2053994217,14),m=u(m,p,b,g=o(g,10),f,e[15],2053994217,6),f=u(f,m,p,b=o(b,10),g,e[0],2053994217,14),g=u(g,f,m,p=o(p,10),b,e[5],2053994217,6),b=u(b,g,f,m=o(m,10),p,e[12],2053994217,9),p=u(p,b,g,f=o(f,10),m,e[2],2053994217,12),m=u(m,p,b,g=o(g,10),f,e[13],2053994217,9),f=u(f,m,p,b=o(b,10),g,e[9],2053994217,12),g=u(g,f,m,p=o(p,10),b,e[7],2053994217,5),b=u(b,g,f,m=o(m,10),p,e[10],2053994217,15),m=a(m,p=u(p,b,g,f=o(f,10),m,e[14],2053994217,8),b,g=o(g,10),f,e[12],0,8),f=a(f,m,p,b=o(b,10),g,e[15],0,5),g=a(g,f,m,p=o(p,10),b,e[10],0,12),b=a(b,g,f,m=o(m,10),p,e[4],0,9),p=a(p,b,g,f=o(f,10),m,e[1],0,12),m=a(m,p,b,g=o(g,10),f,e[5],0,5),f=a(f,m,p,b=o(b,10),g,e[8],0,14),g=a(g,f,m,p=o(p,10),b,e[7],0,6),b=a(b,g,f,m=o(m,10),p,e[6],0,8),p=a(p,b,g,f=o(f,10),m,e[2],0,13),m=a(m,p,b,g=o(g,10),f,e[13],0,6),f=a(f,m,p,b=o(b,10),g,e[14],0,5),g=a(g,f,m,p=o(p,10),b,e[0],0,15),b=a(b,g,f,m=o(m,10),p,e[3],0,13),p=a(p,b,g,f=o(f,10),m,e[9],0,11),m=a(m,p,b,g=o(g,10),f,e[11],0,11),b=o(b,10);var y=this._b+i+b|0;this._b=this._c+s+g|0,this._c=this._d+h+f|0,this._d=this._e+n+m|0,this._e=this._a+r+p|0,this._a=y},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=s}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"crypto-browserify>pbkdf2>ripemd160",file:"node_modules/pbkdf2/node_modules/ripemd160/index.js"}]],[],{});