cosmos-explorer/server/dist/js/index.eccef632.js

21 lines
594 KiB
JavaScript
Raw Normal View History

2021-04-14 07:36:49 +00:00
(function(e){function t(t){for(var r,n,i=t[0],a=t[1],l=0,s=[];l<i.length;l++)n=i[l],Object.prototype.hasOwnProperty.call(o,n)&&o[n]&&s.push(o[n][0]),o[n]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r]);c&&c(t);while(s.length)s.shift()()}var r={},o={index:0};function n(e){return i.p+"js/"+({pc:"pc"}[e]||e)+"."+{pc:"cfb7cec1","chunk-f717d484":"926f7da8"}[e]+".js"}function i(t){if(r[t])return r[t].exports;var o=r[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.e=function(e){var t=[],r=o[e];if(0!==r)if(r)t.push(r[2]);else{var a=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=a);var l,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=n(e);var c=new Error;l=function(t){s.onerror=s.onload=null,clearTimeout(d);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+i+")",c.name="ChunkLoadError",c.type=n,c.request=i,r[1](c)}o[e]=void 0}};var d=setTimeout((function(){l({type:"timeout",target:s})}),12e4);s.onerror=s.onload=l,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=r,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(r,o,function(t){return e[t]}.bind(null,o));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=window["webpackJsonp"]=window["webpackJsonp"]||[],l=a.push.bind(a);a.push=t,a=a.slice();for(var s=0;s<a.length;s++)t(a[s]);var c=l;i(i.s=0)})({0:function(e,t,r){e.exports=r("56d7")},"00ee":function(e,t,r){var o=r("b622"),n=o("toStringTag"),i={};i[n]="z",e.exports="[object z]"===String(i)},"0366":function(e,t,r){var o=r("1c0b");e.exports=function(e,t,r){if(o(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,o){return e.call(t,r,o)};case 3:return function(r,o,n){return e.call(t,r,o,n)}}return function(){return e.apply(t,arguments)}}},"057f":function(e,t,r){var o=r("fc6a"),n=r("241c").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return n(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?l(e):n(o(e))}},"06c5":function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r("fb6a"),r("d3b7"),r("b0c0"),r("a630"),r("3ca3");var o=r("6b75");function n(e,t){if(e){if("string"===typeof e)return Object(o["a"])(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(o["a"])(e,t):void 0}}},"06cf":function(e,t,r){var o=r("83ab"),n=r("d1e7"),i=r("5c6c"),a=r("fc6a"),l=r("c04e"),s=r("5135"),c=r("0cfb"),d=Object.getOwnPropertyDescriptor;t.f=o?d:function(e,t){if(e=a(e),t=l(t,!0),c)try{return d(e,t)}catch(r){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},"07f2":function(e,t,r){"use strict";var o=r("c3c0"),n=r("6eed");function i(){if(!(this instanceof i))return new i;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}o.inherits(i,n),e.exports=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(e){return"hex"===e?o.toHex32(this.h.slice(0,7),"big"):o.split32(this.h.slice(0,7),"big")}},"0a06":function(e
2021-04-10 08:09:21 +00:00
/*!
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
*/
2021-04-14 07:36:49 +00:00
function r(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:o});else{var r=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[o].concat(e.init):o,r.call(this,e)}}function o(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var o="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},n=o.__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(e){n&&(e._devtoolHook=n,n.emit("vuex:init",e),n.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){n.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){n.emit("vuex:action",e,t)}),{prepend:!0}))}function a(e,t){return e.filter(t)[0]}function l(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var r=a(t,(function(t){return t.original===e}));if(r)return r.copy;var o=Array.isArray(e)?[]:{};return t.push({original:e,copy:o}),Object.keys(e).forEach((function(r){o[r]=l(e[r],t)})),o}function s(e,t){Object.keys(e).forEach((function(r){return t(e[r],r)}))}function c(e){return null!==e&&"object"===typeof e}function d(e){return e&&"function"===typeof e.then}function u(e,t){return function(){return e(t)}}var p=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=("function"===typeof r?r():r)||{}},f={namespaced:{configurable:!0}};f.namespaced.get=function(){return!!this._rawModule.namespaced},p.prototype.addChild=function(e,t){this._children[e]=t},p.prototype.removeChild=function(e){delete this._children[e]},p.prototype.getChild=function(e){return this._children[e]},p.prototype.hasChild=function(e){return e in this._children},p.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},p.prototype.forEachChild=function(e){s(this._children,e)},p.prototype.forEachGetter=function(e){this._rawModule.getters&&s(this._rawModule.getters,e)},p.prototype.forEachAction=function(e){this._rawModule.actions&&s(this._rawModule.actions,e)},p.prototype.forEachMutation=function(e){this._rawModule.mutations&&s(this._rawModule.mutations,e)},Object.defineProperties(p.prototype,f);var h=function(e){this.register([],e,!1)};function b(e,t,r){if(t.update(r),r.modules)for(var o in r.modules){if(!t.getChild(o))return void 0;b(e.concat(o),t.getChild(o),r.modules[o])}}h.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},h.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,r){return t=t.getChild(r),e+(t.namespaced?r+"/":"")}),"")},h.prototype.update=function(e){b([],this.root,e)},h.prototype.register=function(e,t,r){var o=this;void 0===r&&(r=!0);var n=new p(t,r);if(0===e.length)this.root=n;else{var i=this.get(e.slice(0,-1));i.addChild(e[e.length-1],n)}t.modules&&s(t.modules,(function(t,n){o.register(e.concat(n),t,r)}))},h.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1],o=t.getChild(r);o&&o.runtime&&t.removeChild(r)},h.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];return!!t&&t.hasChild(r)};var g;var m=function(e){var t=this;void 0===e&&(e={}),!g&&"undefined"!==typeof window&&window.Vue&&T(window.Vue);var r=e.plugins;void 0===r&&(r=[]);var o=e.strict;void 0===o&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new h(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new g,this._makeLocalGettersCache=Object.create(null);var n=this,a=this,l=a.dispatch,s=a.commit;this.dispatch=function(e,t){return l.call(n,e,t)},this.commit=function(e,t,r){return s.call(n,e,t,r)},this.strict=o;var c=this._modules.root.state;k(this,c,[],this._modules.root),w(this,c),r.forEach((function(e){return e(t)}));var d=void 0!==e.devtools?e.
2021-04-10 08:09:21 +00:00
/*!
* vue-router v3.5.1
* (c) 2021 Evan You
* @license MIT
2021-04-14 07:36:49 +00:00
*/function o(e,t){0}function n(e,t){for(var r in t)e[r]=t[r];return e}var i=/[!'()*]/g,a=function(e){return"%"+e.charCodeAt(0).toString(16)},l=/%2C/g,s=function(e){return encodeURIComponent(e).replace(i,a).replace(l,",")};function c(e){try{return decodeURIComponent(e)}catch(t){0}return e}function d(e,t,r){void 0===t&&(t={});var o,n=r||p;try{o=n(e||"")}catch(l){o={}}for(var i in t){var a=t[i];o[i]=Array.isArray(a)?a.map(u):u(a)}return o}var u=function(e){return null==e||"object"===typeof e?e:String(e)};function p(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var r=e.replace(/\+/g," ").split("="),o=c(r.shift()),n=r.length>0?c(r.join("=")):null;void 0===t[o]?t[o]=n:Array.isArray(t[o])?t[o].push(n):t[o]=[t[o],n]})),t):t}function f(e){var t=e?Object.keys(e).map((function(t){var r=e[t];if(void 0===r)return"";if(null===r)return s(t);if(Array.isArray(r)){var o=[];return r.forEach((function(e){void 0!==e&&(null===e?o.push(s(t)):o.push(s(t)+"="+s(e)))})),o.join("&")}return s(t)+"="+s(r)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var h=/\/?$/;function b(e,t,r,o){var n=o&&o.options.stringifyQuery,i=t.query||{};try{i=g(i)}catch(l){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:i,params:t.params||{},fullPath:x(t,n),matched:e?_(e):[]};return r&&(a.redirectedFrom=x(r,n)),Object.freeze(a)}function g(e){if(Array.isArray(e))return e.map(g);if(e&&"object"===typeof e){var t={};for(var r in e)t[r]=g(e[r]);return t}return e}var m=b(null,{path:"/"});function _(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function x(e,t){var r=e.path,o=e.query;void 0===o&&(o={});var n=e.hash;void 0===n&&(n="");var i=t||f;return(r||"/")+i(o)+n}function v(e,t,r){return t===m?e===t:!!t&&(e.path&&t.path?e.path.replace(h,"")===t.path.replace(h,"")&&(r||e.hash===t.hash&&w(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(r||e.hash===t.hash&&w(e.query,t.query)&&w(e.params,t.params))))}function w(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var r=Object.keys(e).sort(),o=Object.keys(t).sort();return r.length===o.length&&r.every((function(r,n){var i=e[r],a=o[n];if(a!==r)return!1;var l=t[r];return null==i||null==l?i===l:"object"===typeof i&&"object"===typeof l?w(i,l):String(i)===String(l)}))}function k(e,t){return 0===e.path.replace(h,"/").indexOf(t.path.replace(h,"/"))&&(!t.hash||e.hash===t.hash)&&y(e.query,t.query)}function y(e,t){for(var r in t)if(!(r in e))return!1;return!0}function A(e){for(var t=0;t<e.matched.length;t++){var r=e.matched[t];for(var o in r.instances){var n=r.instances[o],i=r.enteredCbs[o];if(n&&i){delete r.enteredCbs[o];for(var a=0;a<i.length;a++)n._isBeingDestroyed||i[a](n)}}}}var O={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var r=t.props,o=t.children,i=t.parent,a=t.data;a.routerView=!0;var l=i.$createElement,s=r.name,c=i.$route,d=i._routerViewCache||(i._routerViewCache={}),u=0,p=!1;while(i&&i._routerRoot!==i){var f=i.$vnode?i.$vnode.data:{};f.routerView&&u++,f.keepAlive&&i._directInactive&&i._inactive&&(p=!0),i=i.$parent}if(a.routerViewDepth=u,p){var h=d[s],b=h&&h.component;return b?(h.configProps&&z(b,a,h.route,h.configProps),l(b,a,o)):l()}var g=c.matched[u],m=g&&g.components[s];if(!g||!m)return d[s]=null,l();d[s]={component:m},a.registerRouteInstance=function(e,t){var r=g.instances[s];(t&&r!==e||!t&&r===e)&&(g.instances[s]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){g.instances[s]=t.componentInstance},a.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==g.instances[s]&&(g.instances[s]=e.componentInstance),A(c)};var _=g.props&&g.props[s];return _&&(n(d[s],{route:c,configProps:_}),z(m,a,c,_)),l(m,a,o)}};function z(e,t,r,o){var i=t.props=S(r,o);if(i){i=t.props=n({},i);var a=t.attrs=t.attrs||{};for(var l in i)e.props&&l in e.props||(a[l]=i[l],delete i[l])}}function S(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;defau
2021-04-10 08:09:21 +00:00
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
2021-04-14 07:36:49 +00:00
t.read=function(e,t,r,o,n){var i,a,l=8*n-o-1,s=(1<<l)-1,c=s>>1,d=-7,u=r?n-1:0,p=r?-1:1,f=e[t+u];for(u+=p,i=f&(1<<-d)-1,f>>=-d,d+=l;d>0;i=256*i+e[t+u],u+=p,d-=8);for(a=i&(1<<-d)-1,i>>=-d,d+=o;d>0;a=256*a+e[t+u],u+=p,d-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,o),i-=c}return(f?-1:1)*a*Math.pow(2,i-o)},t.write=function(e,t,r,o,n,i){var a,l,s,c=8*i-n-1,d=(1<<c)-1,u=d>>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,f=o?0:i-1,h=o?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),t+=a+u>=1?p/s:p*Math.pow(2,1-u),t*s>=2&&(a++,s/=2),a+u>=d?(l=0,a=d):a+u>=1?(l=(t*s-1)*Math.pow(2,n),a+=u):(l=t*Math.pow(2,u-1)*Math.pow(2,n),a=0));n>=8;e[r+f]=255&l,f+=h,l/=256,n-=8);for(a=a<<n|l,c+=n;c>0;e[r+f]=255&a,f+=h,a/=256,c-=8);e[r+f-h]|=128*b}},9263:function(e,t,r){"use strict";var o=r("ad6d"),n=r("9f7f"),i=r("5692"),a=RegExp.prototype.exec,l=i("native-string-replace",String.prototype.replace),s=a,c=function(){var e=/a/,t=/b*/g;return a.call(e,"a"),a.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),d=n.UNSUPPORTED_Y||n.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],p=c||u||d;p&&(s=function(e){var t,r,n,i,s=this,p=d&&s.sticky,f=o.call(s),h=s.source,b=0,g=e;return p&&(f=f.replace("y",""),-1===f.indexOf("g")&&(f+="g"),g=String(e).slice(s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==e[s.lastIndex-1])&&(h="(?: "+h+")",g=" "+g,b++),r=new RegExp("^(?:"+h+")",f)),u&&(r=new RegExp("^"+h+"$(?!\\s)",f)),c&&(t=s.lastIndex),n=a.call(p?r:s,g),p?n?(n.input=n.input.slice(b),n[0]=n[0].slice(b),n.index=s.lastIndex,s.lastIndex+=n[0].length):s.lastIndex=0:c&&n&&(s.lastIndex=s.global?n.index+n[0].length:t),u&&n&&n.length>1&&l.call(n[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n}),e.exports=s},"93eb":function(e,t,r){"use strict";location.hostname;t["a"]={Mainnet:[{hash:"5e95f8d18ee6e64f7685a4db",api:"V4",chainId:"cosmoshub-3",name:"Cosmos Hub",lcd:"https://cosmoshub.stakesystems.io",rpc:"https://cosmoshub.stakesystems.io:2053",logo:"/static/chains/cosmoshub.svg",prefix:"cosmos",unit:"ATOM",host:"cosmos.ping.pub"},{hash:"5e95f8d18ee6e64f7685a4dd",api:"V2",chainId:"irishub",name:"IRISnet",lcd:"https://rpc.irisnet.org",rpc:"http://seed-1.mainnet.irisnet.org:26657",logo:"/static/chains/irishub.svg",prefix:"iaa",unit:"IRIS",host:"iris.ping.pub"},{hash:"5f46381683d9d569a6ecc5dd",api:"V1",chainId:"iov-mainnet-2",name:"IOV Name Service",lcd:"http://lcd-private-iov-mainnet-2.iov.one",rpc:"https://rpc-private-iov-mainnet-2.iov.one",logo:"/static/chains/cosmoshub.svg",prefix:"star",unit:"IOV"},{hash:"5f8c078b90b5fb7856ae3a06",api:"V1",chainId:"kava-2",name:"Kava",lcd:"https://kava4.data.kava.io",rpc:"https://rpc.data.kava.io",logo:"/static/chains/kava.svg",prefix:"kava",unit:"KAVA",host:"kava.ping.pub"},{hash:"5f8c0ef91effe87834314467",api:"V4",chainId:"akashnet-1",name:"Akash DeCloud",lcd:"http://lcd.akash.forbole.com",rpc:"http://rpc.akash.forbole.com",logo:"https://gblobscdn.gitbook.com/spaces%2F-LrNFlfuifzmQ_NMKu9C%2Favatar.png?alt=media",prefix:"akash",unit:"AKT",host:"akash.ping.pub"},{hash:"5fa15123f559583ed7465023",api:"V4",chainId:"crypto-org-chain-mainnet-1",name:"Crypto",lcd:"https://mainnet.crypto.org:1317",rpc:"https://mainnet.crypto.org:26657",logo:"/static/chains/cosmoshub.svg",prefix:"crocncl",unit:"BASECRO"}],Testnet:[{hash:"5eabf1d1b8eb6314e2d99264",api:"V1",chainId:"iovns-galaxynet",name:"iovns",lcd:"http://iovnscli-rest-api.cluster-galaxynet.iov.one",rpc:"https://rpc.cluster-galaxynet.iov.one/",logo:"/static/chains/cosmoshub.svg",prefix:"cosmos",unit:"ATOM"}]}},"94ca":function(e,t,r){var o=r("d039"),n=/#|\.prototype\./,i=function(e,t){var r=l[a(e)];return r==c||r!=s&&("function"==typeof t?o(t):!!t)},a=i.normalize=function(e){return String(e).replace(n,".").toLowerCase()},l=i.data={},s=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},"96cf":function(e,t,r){var o=function(e){"use strict";var t,r=Object.prototype,o=r.hasOwnProperty,n="function"===typeof Symbol?Symbol:{},i=n.
2021-04-10 08:09:21 +00:00
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
2021-04-14 07:36:49 +00:00
var o=r("1fb5"),n=r("9152"),i=r("e3db");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function l(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(l()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,r){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,r);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return d(this,e,t,r)}function d(e,t,r,o){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?g(e,t,r,o):"string"===typeof t?h(e,t,r):m(e,t)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t,r,o){return u(t),t<=0?s(e,t):void 0!==r?"string"===typeof o?s(e,t).fill(r,o):s(e,t).fill(r):s(e,t)}function f(e,t){if(u(t),e=s(e,t<0?0:0|_(t)),!c.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function h(e,t,r){if("string"===typeof r&&""!==r||(r="utf8"),!c.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var o=0|v(t,r);e=s(e,o);var n=e.write(t,r);return n!==o&&(e=e.slice(0,n)),e}function b(e,t){var r=t.length<0?0:0|_(t.length);e=s(e,r);for(var o=0;o<r;o+=1)e[o]=255&t[o];return e}function g(e,t,r,o){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(o||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,r):new Uint8Array(t,r,o),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=b(e,t),e}function m(e,t){if(c.isBuffer(t)){var r=0|_(t.length);return e=s(e,r),0===e.length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?s(e,0):b(e,t);if("Buffer"===t.type&&i(t.data))return b(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function _(e){if(e>=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|e}function x(e){return+e!=e&&(e=0),c.alloc(+e)}function v(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(e).length;default:if(o)return K(e).length;t=(""+t).toLowerCase(),o=!0}}function w(e,t,r){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return M(this,t,r);case"utf8":case"utf-8":return E(this,t,r);case"ascii":return R(this,t,r);case"latin1":case"binary":return N(this,t,r);case"base64":return T(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function k(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}function y(e,t,r,o,n){if(0===e.length)return-1;if("string"===typeof r?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"===typeof t&&(t=c.from(t,o)),c.isBuffer(t))retu