@walletconnect/ethereum-provider 2.0.0-8297b194 → 2.0.0-85d2bf46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,103 +1,2 @@
1
- (function(Jt,Ee){typeof exports=="object"&&typeof module<"u"?Ee(exports):typeof define=="function"&&define.amd?define(["exports"],Ee):(Jt=typeof globalThis<"u"?globalThis:Jt||self,Ee(Jt["@walletconnect/ethereum-provider"]={}))})(this,function(Jt){"use strict";var Ee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Er(e){var t=e.default;if(typeof t=="function"){var r=function(){return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}),r}function dt(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}var It=dt;dt.EventEmitter=dt,dt.prototype._events=void 0,dt.prototype._maxListeners=void 0,dt.defaultMaxListeners=10,dt.prototype.setMaxListeners=function(e){if(!af(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},dt.prototype.emit=function(e){var t,r,a,i,n,p;if(this._events||(this._events={}),e==="error"&&(!this._events.error||xi(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var s=new Error('Uncaught, unspecified "error" event. ('+t+")");throw s.context=t,s}if(r=this._events[e],Vd(r))return!1;if(Sr(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),r.apply(this,i)}else if(xi(r))for(i=Array.prototype.slice.call(arguments,1),p=r.slice(),a=p.length,n=0;n<a;n++)p[n].apply(this,i);return!0},dt.prototype.addListener=function(e,t){var r;if(!Sr(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Sr(t.listener)?t.listener:t),this._events[e]?xi(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,xi(this._events[e])&&!this._events[e].warned&&(Vd(this._maxListeners)?r=dt.defaultMaxListeners:r=this._maxListeners,r&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),typeof console.trace=="function"&&console.trace())),this},dt.prototype.on=dt.prototype.addListener,dt.prototype.once=function(e,t){if(!Sr(t))throw TypeError("listener must be a function");var r=!1;function a(){this.removeListener(e,a),r||(r=!0,t.apply(this,arguments))}return a.listener=t,this.on(e,a),this},dt.prototype.removeListener=function(e,t){var r,a,i,n;if(!Sr(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],i=r.length,a=-1,r===t||Sr(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(xi(r)){for(n=i;n-- >0;)if(r[n]===t||r[n].listener&&r[n].listener===t){a=n;break}if(a<0)return this;r.length===1?(r.length=0,delete this._events[e]):r.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},dt.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[e]&&delete this._events[e],this;if(arguments.length===0){for(t in this._events)t!=="removeListener"&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],Sr(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},dt.prototype.listeners=function(e){var t;return!this._events||!this._events[e]?t=[]:Sr(this._events[e])?t=[this._events[e]]:t=this._events[e].slice(),t},dt.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(Sr(t))return 1;if(t)return t.length}return 0},dt.listenerCount=function(e,t){return e.listenerCount(t)};function Sr(e){return typeof e=="function"}function af(e){return typeof e=="number"}function xi(e){return typeof e=="object"&&e!==null}function Vd(e){return e===void 0}const nf="PARSE_ERROR",sf="INVALID_REQUEST",pf="METHOD_NOT_FOUND",of="INVALID_PARAMS",kd="INTERNAL_ERROR",Wn="SERVER_ERROR",df=[-32700,-32600,-32601,-32602,-32603],Di={[nf]:{code:-32700,message:"Parse error"},[sf]:{code:-32600,message:"Invalid Request"},[pf]:{code:-32601,message:"Method not found"},[of]:{code:-32602,message:"Invalid params"},[kd]:{code:-32603,message:"Internal error"},[Wn]:{code:-32e3,message:"Server error"}},zd=Wn;function lf(e){return df.includes(e)}function Hd(e){return Object.keys(Di).includes(e)?Di[e]:Di[zd]}function uf(e){const t=Object.values(Di).find(r=>r.code===e);return t||Di[zd]}function qd(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${t}`):e}var Kd={},Vr={};Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.isBrowserCryptoAvailable=Vr.getSubtleCrypto=Vr.getBrowerCrypto=void 0;function Zn(){return Ee?.crypto||Ee?.msCrypto||{}}Vr.getBrowerCrypto=Zn;function Gd(){const e=Zn();return e.subtle||e.webkitSubtle}Vr.getSubtleCrypto=Gd;function cf(){return!!Zn()&&!!Gd()}Vr.isBrowserCryptoAvailable=cf;var kr={};Object.defineProperty(kr,"__esModule",{value:!0}),kr.isBrowser=kr.isNode=kr.isReactNative=void 0;function Wd(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}kr.isReactNative=Wd;function Zd(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}kr.isNode=Zd;function ff(){return!Wd()&&!Zd()}kr.isBrowser=ff,function(e){var t=Ee&&Ee.__createBinding||(Object.create?function(a,i,n,p){p===void 0&&(p=n),Object.defineProperty(a,p,{enumerable:!0,get:function(){return i[n]}})}:function(a,i,n,p){p===void 0&&(p=n),a[p]=i[n]}),r=Ee&&Ee.__exportStar||function(a,i){for(var n in a)n!=="default"&&!i.hasOwnProperty(n)&&t(i,a,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(Vr,e),r(kr,e)}(Kd);function hf(){const e=Date.now()*Math.pow(10,3),t=Math.floor(Math.random()*Math.pow(10,3));return e+t}function Yn(e,t,r){return{id:r||hf(),jsonrpc:"2.0",method:e,params:t}}function Jn(e,t){return{id:e,jsonrpc:"2.0",result:t}}function N1(e,t,r){return{id:e,jsonrpc:"2.0",error:mf(t,r)}}function mf(e,t){return typeof e>"u"?Hd(kd):(typeof e=="string"&&(e=Object.assign(Object.assign({},Hd(Wn)),{message:e})),typeof t<"u"&&(e.data=t),lf(e.code)&&(e=uf(e.code)),e)}class Yd{}class vf extends Yd{constructor(t){super()}}class gf extends Yd{constructor(){super()}}class yf extends gf{constructor(t){super()}}const wf="^https?:",_f="^wss?:";function bf(e){const t=e.match(new RegExp(/^\w+:/,"gi"));if(!(!t||!t.length))return t[0]}function Jd(e,t){const r=bf(e);return typeof r>"u"?!1:new RegExp(t).test(r)}function Xd(e){return Jd(e,wf)}function Qd(e){return Jd(e,_f)}function Ef(e){return new RegExp("wss?://localhost(:d{2,5})?").test(e)}function e0(e){return typeof e=="object"&&"id"in e&&"jsonrpc"in e&&e.jsonrpc==="2.0"}function t0(e){return e0(e)&&"method"in e}function r0(e){return e0(e)&&(xr(e)||Xt(e))}function xr(e){return"result"in e}function Xt(e){return"error"in e}class Xn extends yf{constructor(t){super(t),this.events=new It.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(t),this.connection.connected&&this.registerEventListeners()}async connect(t=this.connection){await this.open(t)}async disconnect(){await this.close()}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async request(t,r){return this.requestStrict(Yn(t.method,t.params||[]),r)}async requestStrict(t,r){return new Promise(async(a,i)=>{if(!this.connection.connected)try{await this.open()}catch(n){i(n)}this.events.on(`${t.id}`,n=>{Xt(n)?i(n.error):a(n.result)});try{await this.connection.send(t,r)}catch(n){i(n)}})}setConnection(t=this.connection){return t}onPayload(t){this.events.emit("payload",t),r0(t)?this.events.emit(`${t.id}`,t):this.events.emit("message",{type:t.method,data:t.params})}async open(t=this.connection){this.connection===t&&this.connection.connected||(this.connection.connected&&this.close(),typeof t=="string"&&(await this.connection.open(t),t=this.connection),this.connection=this.setConnection(t),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",t=>this.onPayload(t)),this.connection.on("close",()=>this.events.emit("disconnect")),this.connection.on("error",t=>this.events.emit("error",t)),this.hasRegisteredEventListeners=!0)}}var Qn={exports:{}},es={},a0={},i0=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),a=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var n=Object.getOwnPropertySymbols(t);if(n.length!==1||n[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,r);if(p.value!==i||p.enumerable!==!0)return!1}return!0},Sf=i0,O1=function(){return Sf()&&!!Symbol.toStringTag},n0=typeof Symbol<"u"&&Symbol,xf=i0,Df=function(){return typeof n0!="function"||typeof Symbol!="function"||typeof n0("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:xf()},Tf="Function.prototype.bind called on incompatible ",ts=Array.prototype.slice,Nf=Object.prototype.toString,Of="[object Function]",Af=function(t){var r=this;if(typeof r!="function"||Nf.call(r)!==Of)throw new TypeError(Tf+r);for(var a=ts.call(arguments,1),i,n=function(){if(this instanceof i){var l=r.apply(this,a.concat(ts.call(arguments)));return Object(l)===l?l:this}else return r.apply(t,a.concat(ts.call(arguments)))},p=Math.max(0,r.length-a.length),s=[],o=0;o<p;o++)s.push("$"+o);if(i=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(n),r.prototype){var d=function(){};d.prototype=r.prototype,i.prototype=new d,d.prototype=null}return i},Cf=Af,rs=Function.prototype.bind||Cf,If=rs,Rf=If.call(Function.call,Object.prototype.hasOwnProperty),Oe,ka=SyntaxError,s0=Function,za=TypeError,as=function(e){try{return s0('"use strict"; return ('+e+").constructor;")()}catch{}},da=Object.getOwnPropertyDescriptor;if(da)try{da({},"")}catch{da=null}var is=function(){throw new za},Lf=da?function(){try{return arguments.callee,is}catch{try{return da(arguments,"callee").get}catch{return is}}}():is,Ha=Df(),zr=Object.getPrototypeOf||function(e){return e.__proto__},qa={},Ff=typeof Uint8Array>"u"?Oe:zr(Uint8Array),Ka={"%AggregateError%":typeof AggregateError>"u"?Oe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Oe:ArrayBuffer,"%ArrayIteratorPrototype%":Ha?zr([][Symbol.iterator]()):Oe,"%AsyncFromSyncIteratorPrototype%":Oe,"%AsyncFunction%":qa,"%AsyncGenerator%":qa,"%AsyncGeneratorFunction%":qa,"%AsyncIteratorPrototype%":qa,"%Atomics%":typeof Atomics>"u"?Oe:Atomics,"%BigInt%":typeof BigInt>"u"?Oe:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Oe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Oe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Oe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Oe:FinalizationRegistry,"%Function%":s0,"%GeneratorFunction%":qa,"%Int8Array%":typeof Int8Array>"u"?Oe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Oe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Oe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ha?zr(zr([][Symbol.iterator]())):Oe,"%JSON%":typeof JSON=="object"?JSON:Oe,"%Map%":typeof Map>"u"?Oe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ha?Oe:zr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Oe:Promise,"%Proxy%":typeof Proxy>"u"?Oe:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Oe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Oe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ha?Oe:zr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Oe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ha?zr(""[Symbol.iterator]()):Oe,"%Symbol%":Ha?Symbol:Oe,"%SyntaxError%":ka,"%ThrowTypeError%":Lf,"%TypedArray%":Ff,"%TypeError%":za,"%Uint8Array%":typeof Uint8Array>"u"?Oe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Oe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Oe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Oe:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Oe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Oe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Oe:WeakSet},Pf=function e(t){var r;if(t==="%AsyncFunction%")r=as("async function () {}");else if(t==="%GeneratorFunction%")r=as("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=as("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(r=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=zr(i.prototype))}return Ka[t]=r,r},p0={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ti=rs,A1=Rf,Mf=Ti.call(Function.call,Array.prototype.concat),Uf=Ti.call(Function.apply,Array.prototype.splice),o0=Ti.call(Function.call,String.prototype.replace),C1=Ti.call(Function.call,String.prototype.slice),Bf=Ti.call(Function.call,RegExp.prototype.exec),$f=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,jf=/\\(\\)?/g,Vf=function(t){var r=C1(t,0,1),a=C1(t,-1);if(r==="%"&&a!=="%")throw new ka("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&r!=="%")throw new ka("invalid intrinsic syntax, expected opening `%`");var i=[];return o0(t,$f,function(n,p,s,o){i[i.length]=s?o0(o,jf,"$1"):p||n}),i},kf=function(t,r){var a=t,i;if(A1(p0,a)&&(i=p0[a],a="%"+i[0]+"%"),A1(Ka,a)){var n=Ka[a];if(n===qa&&(n=Pf(a)),typeof n>"u"&&!r)throw new za("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:a,value:n}}throw new ka("intrinsic "+t+" does not exist!")},ns=function(t,r){if(typeof t!="string"||t.length===0)throw new za("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new za('"allowMissing" argument must be a boolean');if(Bf(/^%?[^%]*%?$/g,t)===null)throw new ka("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=Vf(t),i=a.length>0?a[0]:"",n=kf("%"+i+"%",r),p=n.name,s=n.value,o=!1,d=n.alias;d&&(i=d[0],Uf(a,Mf([0,1],d)));for(var l=1,h=!0;l<a.length;l+=1){var g=a[l],v=C1(g,0,1),y=C1(g,-1);if((v==='"'||v==="'"||v==="`"||y==='"'||y==="'"||y==="`")&&v!==y)throw new ka("property names with quotes must have matching quotes");if((g==="constructor"||!h)&&(o=!0),i+="."+g,p="%"+i+"%",A1(Ka,p))s=Ka[p];else if(s!=null){if(!(g in s)){if(!r)throw new za("base intrinsic for "+t+" exists, but the property is not available.");return}if(da&&l+1>=a.length){var A=da(s,g);h=!!A,h&&"get"in A&&!("originalValue"in A.get)?s=A.get:s=s[g]}else h=A1(s,g),s=s[g];h&&!o&&(Ka[p]=s)}}return s},d0={exports:{}};(function(e){var t=rs,r=ns,a=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),n=r("%Reflect.apply%",!0)||t.call(i,a),p=r("%Object.getOwnPropertyDescriptor%",!0),s=r("%Object.defineProperty%",!0),o=r("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}e.exports=function(h){var g=n(t,i,arguments);if(p&&s){var v=p(g,"length");v.configurable&&s(g,"length",{value:1+o(0,h.length-(arguments.length-1))})}return g};var d=function(){return n(t,a,arguments)};s?s(e.exports,"apply",{value:d}):e.exports.apply=d})(d0);var l0=ns,u0=d0.exports,zf=u0(l0("String.prototype.indexOf")),ss=function(t,r){var a=l0(t,!!r);return typeof a=="function"&&zf(t,".prototype.")>-1?u0(a):a},Hf=O1(),qf=ss,ps=qf("Object.prototype.toString"),I1=function(t){return Hf&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:ps(t)==="[object Arguments]"},c0=function(t){return I1(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&ps(t)!=="[object Array]"&&ps(t.callee)==="[object Function]"},Kf=function(){return I1(arguments)}();I1.isLegacyArguments=c0;var Gf=Kf?I1:c0,Wf=Object.prototype.toString,Zf=Function.prototype.toString,Yf=/^\s*(?:function)?\*/,f0=O1(),os=Object.getPrototypeOf,Jf=function(){if(!f0)return!1;try{return Function("return function*() {}")()}catch{}},ds,Xf=function(t){if(typeof t!="function")return!1;if(Yf.test(Zf.call(t)))return!0;if(!f0){var r=Wf.call(t);return r==="[object GeneratorFunction]"}if(!os)return!1;if(typeof ds>"u"){var a=Jf();ds=a?os(a):!1}return os(t)===ds},h0=Function.prototype.toString,Ga=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ls,R1;if(typeof Ga=="function"&&typeof Object.defineProperty=="function")try{ls=Object.defineProperty({},"length",{get:function(){throw R1}}),R1={},Ga(function(){throw 42},null,ls)}catch(e){e!==R1&&(Ga=null)}else Ga=null;var Qf=/^\s*class\b/,us=function(t){try{var r=h0.call(t);return Qf.test(r)}catch{return!1}},e5=function(t){try{return us(t)?!1:(h0.call(t),!0)}catch{return!1}},t5=Object.prototype.toString,r5="[object Function]",a5="[object GeneratorFunction]",i5=typeof Symbol=="function"&&!!Symbol.toStringTag,m0=typeof document=="object"&&typeof document.all>"u"&&document.all!==void 0?document.all:{},n5=Ga?function(t){if(t===m0)return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(typeof t=="function"&&!t.prototype)return!0;try{Ga(t,null,ls)}catch(r){if(r!==R1)return!1}return!us(t)}:function(t){if(t===m0)return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(typeof t=="function"&&!t.prototype)return!0;if(i5)return e5(t);if(us(t))return!1;var r=t5.call(t);return r===r5||r===a5},s5=n5,p5=Object.prototype.toString,v0=Object.prototype.hasOwnProperty,o5=function(t,r,a){for(var i=0,n=t.length;i<n;i++)v0.call(t,i)&&(a==null?r(t[i],i,t):r.call(a,t[i],i,t))},d5=function(t,r,a){for(var i=0,n=t.length;i<n;i++)a==null?r(t.charAt(i),i,t):r.call(a,t.charAt(i),i,t)},l5=function(t,r,a){for(var i in t)v0.call(t,i)&&(a==null?r(t[i],i,t):r.call(a,t[i],i,t))},u5=function(t,r,a){if(!s5(r))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=a),p5.call(t)==="[object Array]"?o5(t,r,i):typeof t=="string"?d5(t,r,i):l5(t,r,i)},g0=u5,cs=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],c5=typeof globalThis>"u"?Ee:globalThis,y0=function(){for(var t=[],r=0;r<cs.length;r++)typeof c5[cs[r]]=="function"&&(t[t.length]=cs[r]);return t},fs,w0;function _0(){if(w0)return fs;w0=1;var e=ns,t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return fs=t,fs}var b0=g0,f5=y0,hs=ss,h5=hs("Object.prototype.toString"),E0=O1(),m5=typeof globalThis>"u"?Ee:globalThis,S0=f5(),v5=hs("Array.prototype.indexOf",!0)||function(t,r){for(var a=0;a<t.length;a+=1)if(t[a]===r)return a;return-1},g5=hs("String.prototype.slice"),x0={},L1=_0(),ms=Object.getPrototypeOf;E0&&L1&&ms&&b0(S0,function(e){var t=new m5[e];if(Symbol.toStringTag in t){var r=ms(t),a=L1(r,Symbol.toStringTag);if(!a){var i=ms(r);a=L1(i,Symbol.toStringTag)}x0[e]=a.get}});var y5=function(t){var r=!1;return b0(x0,function(a,i){if(!r)try{r=a.call(t)===i}catch{}}),r},D0=function(t){if(!t||typeof t!="object")return!1;if(!E0||!(Symbol.toStringTag in t)){var r=g5(h5(t),8,-1);return v5(S0,r)>-1}return L1?y5(t):!1},T0=g0,w5=y0,N0=ss,_5=N0("Object.prototype.toString"),O0=O1(),A0=typeof globalThis>"u"?Ee:globalThis,b5=w5(),E5=N0("String.prototype.slice"),C0={},vs=_0(),gs=Object.getPrototypeOf;O0&&vs&&gs&&T0(b5,function(e){if(typeof A0[e]=="function"){var t=new A0[e];if(Symbol.toStringTag in t){var r=gs(t),a=vs(r,Symbol.toStringTag);if(!a){var i=gs(r);a=vs(i,Symbol.toStringTag)}C0[e]=a.get}}});var S5=function(t){var r=!1;return T0(C0,function(a,i){if(!r)try{var n=a.call(t);n===i&&(r=n)}catch{}}),r},x5=D0,D5=function(t){return x5(t)?!O0||!(Symbol.toStringTag in t)?E5(_5(t),8,-1):S5(t):!1};(function(e){var t=Gf,r=Xf,a=D5,i=D0;function n(_){return _.call.bind(_)}var p=typeof BigInt<"u",s=typeof Symbol<"u",o=n(Object.prototype.toString),d=n(Number.prototype.valueOf),l=n(String.prototype.valueOf),h=n(Boolean.prototype.valueOf);if(p)var g=n(BigInt.prototype.valueOf);if(s)var v=n(Symbol.prototype.valueOf);function y(_,k){if(typeof _!="object")return!1;try{return k(_),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=i;function A(_){return typeof Promise<"u"&&_ instanceof Promise||_!==null&&typeof _=="object"&&typeof _.then=="function"&&typeof _.catch=="function"}e.isPromise=A;function E(_){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(_):i(_)||P(_)}e.isArrayBufferView=E;function D(_){return a(_)==="Uint8Array"}e.isUint8Array=D;function C(_){return a(_)==="Uint8ClampedArray"}e.isUint8ClampedArray=C;function B(_){return a(_)==="Uint16Array"}e.isUint16Array=B;function S(_){return a(_)==="Uint32Array"}e.isUint32Array=S;function x(_){return a(_)==="Int8Array"}e.isInt8Array=x;function N(_){return a(_)==="Int16Array"}e.isInt16Array=N;function u(_){return a(_)==="Int32Array"}e.isInt32Array=u;function T(_){return a(_)==="Float32Array"}e.isFloat32Array=T;function Z(_){return a(_)==="Float64Array"}e.isFloat64Array=Z;function J(_){return a(_)==="BigInt64Array"}e.isBigInt64Array=J;function ne(_){return a(_)==="BigUint64Array"}e.isBigUint64Array=ne;function pe(_){return o(_)==="[object Map]"}pe.working=typeof Map<"u"&&pe(new Map);function le(_){return typeof Map>"u"?!1:pe.working?pe(_):_ instanceof Map}e.isMap=le;function z(_){return o(_)==="[object Set]"}z.working=typeof Set<"u"&&z(new Set);function G(_){return typeof Set>"u"?!1:z.working?z(_):_ instanceof Set}e.isSet=G;function de(_){return o(_)==="[object WeakMap]"}de.working=typeof WeakMap<"u"&&de(new WeakMap);function ce(_){return typeof WeakMap>"u"?!1:de.working?de(_):_ instanceof WeakMap}e.isWeakMap=ce;function te(_){return o(_)==="[object WeakSet]"}te.working=typeof WeakSet<"u"&&te(new WeakSet);function ie(_){return te(_)}e.isWeakSet=ie;function W(_){return o(_)==="[object ArrayBuffer]"}W.working=typeof ArrayBuffer<"u"&&W(new ArrayBuffer);function Y(_){return typeof ArrayBuffer>"u"?!1:W.working?W(_):_ instanceof ArrayBuffer}e.isArrayBuffer=Y;function $(_){return o(_)==="[object DataView]"}$.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&$(new DataView(new ArrayBuffer(1),0,1));function P(_){return typeof DataView>"u"?!1:$.working?$(_):_ instanceof DataView}e.isDataView=P;var H=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function re(_){return o(_)==="[object SharedArrayBuffer]"}function fe(_){return typeof H>"u"?!1:(typeof re.working>"u"&&(re.working=re(new H)),re.working?re(_):_ instanceof H)}e.isSharedArrayBuffer=fe;function V(_){return o(_)==="[object AsyncFunction]"}e.isAsyncFunction=V;function j(_){return o(_)==="[object Map Iterator]"}e.isMapIterator=j;function U(_){return o(_)==="[object Set Iterator]"}e.isSetIterator=U;function f(_){return o(_)==="[object Generator]"}e.isGeneratorObject=f;function F(_){return o(_)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=F;function se(_){return y(_,d)}e.isNumberObject=se;function O(_){return y(_,l)}e.isStringObject=O;function R(_){return y(_,h)}e.isBooleanObject=R;function Q(_){return p&&y(_,g)}e.isBigIntObject=Q;function w(_){return s&&y(_,v)}e.isSymbolObject=w;function c(_){return se(_)||O(_)||R(_)||Q(_)||w(_)}e.isBoxedPrimitive=c;function m(_){return typeof Uint8Array<"u"&&(Y(_)||fe(_))}e.isAnyArrayBuffer=m,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(_){Object.defineProperty(e,_,{enumerable:!1,value:function(){throw new Error(_+" is not supported in userland")}})})})(a0);var T5=function(t){return t instanceof Buffer},ys={exports:{}},F1={exports:{}},I0;function N5(){return I0||(I0=1,typeof Object.create=="function"?F1.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:F1.exports=function(t,r){if(r){t.super_=r;var a=function(){};a.prototype=r.prototype,t.prototype=new a,t.prototype.constructor=t}}),F1.exports}var R0;function O5(){return R0||(R0=1,function(e){try{var t=P1();if(typeof t.inherits!="function")throw"";e.exports=t.inherits}catch{e.exports=N5()}}(ys)),ys.exports}var L0;function P1(){return L0||(L0=1,function(e){var t=Object.getOwnPropertyDescriptors||function(P){for(var H=Object.keys(P),re={},fe=0;fe<H.length;fe++)re[H[fe]]=Object.getOwnPropertyDescriptor(P,H[fe]);return re},r=/%[sdj%]/g;e.format=function($){if(!x($)){for(var P=[],H=0;H<arguments.length;H++)P.push(p(arguments[H]));return P.join(" ")}for(var H=1,re=arguments,fe=re.length,V=String($).replace(r,function(U){if(U==="%%")return"%";if(H>=fe)return U;switch(U){case"%s":return String(re[H++]);case"%d":return Number(re[H++]);case"%j":try{return JSON.stringify(re[H++])}catch{return"[Circular]"}default:return U}}),j=re[H];H<fe;j=re[++H])C(j)||!Z(j)?V+=" "+j:V+=" "+p(j);return V},e.deprecate=function($,P){if(typeof process<"u"&&process.noDeprecation===!0)return $;if(typeof process>"u")return function(){return e.deprecate($,P).apply(this,arguments)};var H=!1;function re(){if(!H){if(process.throwDeprecation)throw new Error(P);process.traceDeprecation?console.trace(P):console.error(P),H=!0}return $.apply(this,arguments)}return re};var a={},i=/^$/;if(process.env.NODE_DEBUG){var n=process.env.NODE_DEBUG;n=n.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+n+"$","i")}e.debuglog=function($){if($=$.toUpperCase(),!a[$])if(i.test($)){var P=process.pid;a[$]=function(){var H=e.format.apply(e,arguments);console.error("%s %d: %s",$,P,H)}}else a[$]=function(){};return a[$]};function p($,P){var H={seen:[],stylize:o};return arguments.length>=3&&(H.depth=arguments[2]),arguments.length>=4&&(H.colors=arguments[3]),D(P)?H.showHidden=P:P&&e._extend(H,P),u(H.showHidden)&&(H.showHidden=!1),u(H.depth)&&(H.depth=2),u(H.colors)&&(H.colors=!1),u(H.customInspect)&&(H.customInspect=!0),H.colors&&(H.stylize=s),l(H,$,H.depth)}e.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s($,P){var H=p.styles[P];return H?"\x1B["+p.colors[H][0]+"m"+$+"\x1B["+p.colors[H][1]+"m":$}function o($,P){return $}function d($){var P={};return $.forEach(function(H,re){P[H]=!0}),P}function l($,P,H){if($.customInspect&&P&&pe(P.inspect)&&P.inspect!==e.inspect&&!(P.constructor&&P.constructor.prototype===P)){var re=P.inspect(H,$);return x(re)||(re=l($,re,H)),re}var fe=h($,P);if(fe)return fe;var V=Object.keys(P),j=d(V);if($.showHidden&&(V=Object.getOwnPropertyNames(P)),ne(P)&&(V.indexOf("message")>=0||V.indexOf("description")>=0))return g(P);if(V.length===0){if(pe(P)){var U=P.name?": "+P.name:"";return $.stylize("[Function"+U+"]","special")}if(T(P))return $.stylize(RegExp.prototype.toString.call(P),"regexp");if(J(P))return $.stylize(Date.prototype.toString.call(P),"date");if(ne(P))return g(P)}var f="",F=!1,se=["{","}"];if(E(P)&&(F=!0,se=["[","]"]),pe(P)){var O=P.name?": "+P.name:"";f=" [Function"+O+"]"}if(T(P)&&(f=" "+RegExp.prototype.toString.call(P)),J(P)&&(f=" "+Date.prototype.toUTCString.call(P)),ne(P)&&(f=" "+g(P)),V.length===0&&(!F||P.length==0))return se[0]+f+se[1];if(H<0)return T(P)?$.stylize(RegExp.prototype.toString.call(P),"regexp"):$.stylize("[Object]","special");$.seen.push(P);var R;return F?R=v($,P,H,j,V):R=V.map(function(Q){return y($,P,H,j,Q,F)}),$.seen.pop(),A(R,f,se)}function h($,P){if(u(P))return $.stylize("undefined","undefined");if(x(P)){var H="'"+JSON.stringify(P).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return $.stylize(H,"string")}if(S(P))return $.stylize(""+P,"number");if(D(P))return $.stylize(""+P,"boolean");if(C(P))return $.stylize("null","null")}function g($){return"["+Error.prototype.toString.call($)+"]"}function v($,P,H,re,fe){for(var V=[],j=0,U=P.length;j<U;++j)te(P,String(j))?V.push(y($,P,H,re,String(j),!0)):V.push("");return fe.forEach(function(f){f.match(/^\d+$/)||V.push(y($,P,H,re,f,!0))}),V}function y($,P,H,re,fe,V){var j,U,f;if(f=Object.getOwnPropertyDescriptor(P,fe)||{value:P[fe]},f.get?f.set?U=$.stylize("[Getter/Setter]","special"):U=$.stylize("[Getter]","special"):f.set&&(U=$.stylize("[Setter]","special")),te(re,fe)||(j="["+fe+"]"),U||($.seen.indexOf(f.value)<0?(C(H)?U=l($,f.value,null):U=l($,f.value,H-1),U.indexOf(`
2
- `)>-1&&(V?U=U.split(`
3
- `).map(function(F){return" "+F}).join(`
4
- `).substr(2):U=`
5
- `+U.split(`
6
- `).map(function(F){return" "+F}).join(`
7
- `))):U=$.stylize("[Circular]","special")),u(j)){if(V&&fe.match(/^\d+$/))return U;j=JSON.stringify(""+fe),j.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(j=j.substr(1,j.length-2),j=$.stylize(j,"name")):(j=j.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),j=$.stylize(j,"string"))}return j+": "+U}function A($,P,H){var re=$.reduce(function(fe,V){return V.indexOf(`
8
- `)>=0,fe+V.replace(/\u001b\[\d\d?m/g,"").length+1},0);return re>60?H[0]+(P===""?"":P+`
9
- `)+" "+$.join(`,
10
- `)+" "+H[1]:H[0]+P+" "+$.join(", ")+" "+H[1]}e.types=a0;function E($){return Array.isArray($)}e.isArray=E;function D($){return typeof $=="boolean"}e.isBoolean=D;function C($){return $===null}e.isNull=C;function B($){return $==null}e.isNullOrUndefined=B;function S($){return typeof $=="number"}e.isNumber=S;function x($){return typeof $=="string"}e.isString=x;function N($){return typeof $=="symbol"}e.isSymbol=N;function u($){return $===void 0}e.isUndefined=u;function T($){return Z($)&&z($)==="[object RegExp]"}e.isRegExp=T,e.types.isRegExp=T;function Z($){return typeof $=="object"&&$!==null}e.isObject=Z;function J($){return Z($)&&z($)==="[object Date]"}e.isDate=J,e.types.isDate=J;function ne($){return Z($)&&(z($)==="[object Error]"||$ instanceof Error)}e.isError=ne,e.types.isNativeError=ne;function pe($){return typeof $=="function"}e.isFunction=pe;function le($){return $===null||typeof $=="boolean"||typeof $=="number"||typeof $=="string"||typeof $=="symbol"||typeof $>"u"}e.isPrimitive=le,e.isBuffer=T5;function z($){return Object.prototype.toString.call($)}function G($){return $<10?"0"+$.toString(10):$.toString(10)}var de=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ce(){var $=new Date,P=[G($.getHours()),G($.getMinutes()),G($.getSeconds())].join(":");return[$.getDate(),de[$.getMonth()],P].join(" ")}e.log=function(){console.log("%s - %s",ce(),e.format.apply(e,arguments))},e.inherits=O5(),e._extend=function($,P){if(!P||!Z(P))return $;for(var H=Object.keys(P),re=H.length;re--;)$[H[re]]=P[H[re]];return $};function te($,P){return Object.prototype.hasOwnProperty.call($,P)}var ie=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(P){if(typeof P!="function")throw new TypeError('The "original" argument must be of type Function');if(ie&&P[ie]){var H=P[ie];if(typeof H!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(H,ie,{value:H,enumerable:!1,writable:!1,configurable:!0}),H}function H(){for(var re,fe,V=new Promise(function(f,F){re=f,fe=F}),j=[],U=0;U<arguments.length;U++)j.push(arguments[U]);j.push(function(f,F){f?fe(f):re(F)});try{P.apply(this,j)}catch(f){fe(f)}return V}return Object.setPrototypeOf(H,Object.getPrototypeOf(P)),ie&&Object.defineProperty(H,ie,{value:H,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(H,t(P))},e.promisify.custom=ie;function W($,P){if(!$){var H=new Error("Promise was rejected with a falsy value");H.reason=$,$=H}return P($)}function Y($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');function P(){for(var H=[],re=0;re<arguments.length;re++)H.push(arguments[re]);var fe=H.pop();if(typeof fe!="function")throw new TypeError("The last argument must be of type Function");var V=this,j=function(){return fe.apply(V,arguments)};$.apply(this,H).then(function(U){process.nextTick(j.bind(null,null,U))},function(U){process.nextTick(W.bind(null,U,j))})}return Object.setPrototypeOf(P,Object.getPrototypeOf($)),Object.defineProperties(P,t($)),P}e.callbackify=Y}(es)),es}var lt=P1(),Vt=Ee.process,Dr={},M1={};M1.byteLength=I5,M1.toByteArray=L5,M1.fromByteArray=M5;for(var sr=[],kt=[],A5=typeof Uint8Array<"u"?Uint8Array:Array,ws="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wa=0,C5=ws.length;Wa<C5;++Wa)sr[Wa]=ws[Wa],kt[ws.charCodeAt(Wa)]=Wa;kt["-".charCodeAt(0)]=62,kt["_".charCodeAt(0)]=63;function F0(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var a=r===t?0:4-r%4;return[r,a]}function I5(e){var t=F0(e),r=t[0],a=t[1];return(r+a)*3/4-a}function R5(e,t,r){return(t+r)*3/4-r}function L5(e){var t,r=F0(e),a=r[0],i=r[1],n=new A5(R5(e,a,i)),p=0,s=i>0?a-4:a,o;for(o=0;o<s;o+=4)t=kt[e.charCodeAt(o)]<<18|kt[e.charCodeAt(o+1)]<<12|kt[e.charCodeAt(o+2)]<<6|kt[e.charCodeAt(o+3)],n[p++]=t>>16&255,n[p++]=t>>8&255,n[p++]=t&255;return i===2&&(t=kt[e.charCodeAt(o)]<<2|kt[e.charCodeAt(o+1)]>>4,n[p++]=t&255),i===1&&(t=kt[e.charCodeAt(o)]<<10|kt[e.charCodeAt(o+1)]<<4|kt[e.charCodeAt(o+2)]>>2,n[p++]=t>>8&255,n[p++]=t&255),n}function F5(e){return sr[e>>18&63]+sr[e>>12&63]+sr[e>>6&63]+sr[e&63]}function P5(e,t,r){for(var a,i=[],n=t;n<r;n+=3)a=(e[n]<<16&16711680)+(e[n+1]<<8&65280)+(e[n+2]&255),i.push(F5(a));return i.join("")}function M5(e){for(var t,r=e.length,a=r%3,i=[],n=16383,p=0,s=r-a;p<s;p+=n)i.push(P5(e,p,p+n>s?s:p+n));return a===1?(t=e[r-1],i.push(sr[t>>2]+sr[t<<4&63]+"==")):a===2&&(t=(e[r-2]<<8)+e[r-1],i.push(sr[t>>10]+sr[t>>4&63]+sr[t<<2&63]+"=")),i.join("")}var _s={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */_s.read=function(e,t,r,a,i){var n,p,s=i*8-a-1,o=(1<<s)-1,d=o>>1,l=-7,h=r?i-1:0,g=r?-1:1,v=e[t+h];for(h+=g,n=v&(1<<-l)-1,v>>=-l,l+=s;l>0;n=n*256+e[t+h],h+=g,l-=8);for(p=n&(1<<-l)-1,n>>=-l,l+=a;l>0;p=p*256+e[t+h],h+=g,l-=8);if(n===0)n=1-d;else{if(n===o)return p?NaN:(v?-1:1)*(1/0);p=p+Math.pow(2,a),n=n-d}return(v?-1:1)*p*Math.pow(2,n-a)},_s.write=function(e,t,r,a,i,n){var p,s,o,d=n*8-i-1,l=(1<<d)-1,h=l>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=a?0:n-1,y=a?1:-1,A=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,p=l):(p=Math.floor(Math.log(t)/Math.LN2),t*(o=Math.pow(2,-p))<1&&(p--,o*=2),p+h>=1?t+=g/o:t+=g*Math.pow(2,1-h),t*o>=2&&(p++,o/=2),p+h>=l?(s=0,p=l):p+h>=1?(s=(t*o-1)*Math.pow(2,i),p=p+h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),p=0));i>=8;e[r+v]=s&255,v+=y,s/=256,i-=8);for(p=p<<i|s,d+=i;d>0;e[r+v]=p&255,v+=y,p/=256,d-=8);e[r+v-y]|=A*128};/*!
11
- * The buffer module from node.js, for the browser.
12
- *
13
- * @author Feross Aboukhadijeh <https://feross.org>
14
- * @license MIT
15
- */(function(e){var t=M1,r=_s,a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=C,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=n(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function n(){try{var w=new Uint8Array(1),c={foo:function(){return 42}};return Object.setPrototypeOf(c,Uint8Array.prototype),Object.setPrototypeOf(w,c),w.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(!!s.isBuffer(this))return this.byteOffset}});function p(w){if(w>i)throw new RangeError('The value "'+w+'" is invalid for option "size"');var c=new Uint8Array(w);return Object.setPrototypeOf(c,s.prototype),c}function s(w,c,m){if(typeof w=="number"){if(typeof c=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(w)}return o(w,c,m)}s.poolSize=8192;function o(w,c,m){if(typeof w=="string")return g(w,c);if(ArrayBuffer.isView(w))return y(w);if(w==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof w);if(O(w,ArrayBuffer)||w&&O(w.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(O(w,SharedArrayBuffer)||w&&O(w.buffer,SharedArrayBuffer)))return A(w,c,m);if(typeof w=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var _=w.valueOf&&w.valueOf();if(_!=null&&_!==w)return s.from(_,c,m);var k=E(w);if(k)return k;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof w[Symbol.toPrimitive]=="function")return s.from(w[Symbol.toPrimitive]("string"),c,m);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof w)}s.from=function(w,c,m){return o(w,c,m)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function d(w){if(typeof w!="number")throw new TypeError('"size" argument must be of type number');if(w<0)throw new RangeError('The value "'+w+'" is invalid for option "size"')}function l(w,c,m){return d(w),w<=0?p(w):c!==void 0?typeof m=="string"?p(w).fill(c,m):p(w).fill(c):p(w)}s.alloc=function(w,c,m){return l(w,c,m)};function h(w){return d(w),p(w<0?0:D(w)|0)}s.allocUnsafe=function(w){return h(w)},s.allocUnsafeSlow=function(w){return h(w)};function g(w,c){if((typeof c!="string"||c==="")&&(c="utf8"),!s.isEncoding(c))throw new TypeError("Unknown encoding: "+c);var m=B(w,c)|0,_=p(m),k=_.write(w,c);return k!==m&&(_=_.slice(0,k)),_}function v(w){for(var c=w.length<0?0:D(w.length)|0,m=p(c),_=0;_<c;_+=1)m[_]=w[_]&255;return m}function y(w){if(O(w,Uint8Array)){var c=new Uint8Array(w);return A(c.buffer,c.byteOffset,c.byteLength)}return v(w)}function A(w,c,m){if(c<0||w.byteLength<c)throw new RangeError('"offset" is outside of buffer bounds');if(w.byteLength<c+(m||0))throw new RangeError('"length" is outside of buffer bounds');var _;return c===void 0&&m===void 0?_=new Uint8Array(w):m===void 0?_=new Uint8Array(w,c):_=new Uint8Array(w,c,m),Object.setPrototypeOf(_,s.prototype),_}function E(w){if(s.isBuffer(w)){var c=D(w.length)|0,m=p(c);return m.length===0||w.copy(m,0,0,c),m}if(w.length!==void 0)return typeof w.length!="number"||R(w.length)?p(0):v(w);if(w.type==="Buffer"&&Array.isArray(w.data))return v(w.data)}function D(w){if(w>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return w|0}function C(w){return+w!=w&&(w=0),s.alloc(+w)}s.isBuffer=function(c){return c!=null&&c._isBuffer===!0&&c!==s.prototype},s.compare=function(c,m){if(O(c,Uint8Array)&&(c=s.from(c,c.offset,c.byteLength)),O(m,Uint8Array)&&(m=s.from(m,m.offset,m.byteLength)),!s.isBuffer(c)||!s.isBuffer(m))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(c===m)return 0;for(var _=c.length,k=m.length,X=0,ae=Math.min(_,k);X<ae;++X)if(c[X]!==m[X]){_=c[X],k=m[X];break}return _<k?-1:k<_?1:0},s.isEncoding=function(c){switch(String(c).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(c,m){if(!Array.isArray(c))throw new TypeError('"list" argument must be an Array of Buffers');if(c.length===0)return s.alloc(0);var _;if(m===void 0)for(m=0,_=0;_<c.length;++_)m+=c[_].length;var k=s.allocUnsafe(m),X=0;for(_=0;_<c.length;++_){var ae=c[_];if(O(ae,Uint8Array))X+ae.length>k.length?s.from(ae).copy(k,X):Uint8Array.prototype.set.call(k,ae,X);else if(s.isBuffer(ae))ae.copy(k,X);else throw new TypeError('"list" argument must be an Array of Buffers');X+=ae.length}return k};function B(w,c){if(s.isBuffer(w))return w.length;if(ArrayBuffer.isView(w)||O(w,ArrayBuffer))return w.byteLength;if(typeof w!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof w);var m=w.length,_=arguments.length>2&&arguments[2]===!0;if(!_&&m===0)return 0;for(var k=!1;;)switch(c){case"ascii":case"latin1":case"binary":return m;case"utf8":case"utf-8":return j(w).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m*2;case"hex":return m>>>1;case"base64":return F(w).length;default:if(k)return _?-1:j(w).length;c=(""+c).toLowerCase(),k=!0}}s.byteLength=B;function S(w,c,m){var _=!1;if((c===void 0||c<0)&&(c=0),c>this.length||((m===void 0||m>this.length)&&(m=this.length),m<=0)||(m>>>=0,c>>>=0,m<=c))return"";for(w||(w="utf8");;)switch(w){case"hex":return ie(this,c,m);case"utf8":case"utf-8":return z(this,c,m);case"ascii":return ce(this,c,m);case"latin1":case"binary":return te(this,c,m);case"base64":return le(this,c,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,c,m);default:if(_)throw new TypeError("Unknown encoding: "+w);w=(w+"").toLowerCase(),_=!0}}s.prototype._isBuffer=!0;function x(w,c,m){var _=w[c];w[c]=w[m],w[m]=_}s.prototype.swap16=function(){var c=this.length;if(c%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var m=0;m<c;m+=2)x(this,m,m+1);return this},s.prototype.swap32=function(){var c=this.length;if(c%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var m=0;m<c;m+=4)x(this,m,m+3),x(this,m+1,m+2);return this},s.prototype.swap64=function(){var c=this.length;if(c%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var m=0;m<c;m+=8)x(this,m,m+7),x(this,m+1,m+6),x(this,m+2,m+5),x(this,m+3,m+4);return this},s.prototype.toString=function(){var c=this.length;return c===0?"":arguments.length===0?z(this,0,c):S.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(c){if(!s.isBuffer(c))throw new TypeError("Argument must be a Buffer");return this===c?!0:s.compare(this,c)===0},s.prototype.inspect=function(){var c="",m=e.INSPECT_MAX_BYTES;return c=this.toString("hex",0,m).replace(/(.{2})/g,"$1 ").trim(),this.length>m&&(c+=" ... "),"<Buffer "+c+">"},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(c,m,_,k,X){if(O(c,Uint8Array)&&(c=s.from(c,c.offset,c.byteLength)),!s.isBuffer(c))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof c);if(m===void 0&&(m=0),_===void 0&&(_=c?c.length:0),k===void 0&&(k=0),X===void 0&&(X=this.length),m<0||_>c.length||k<0||X>this.length)throw new RangeError("out of range index");if(k>=X&&m>=_)return 0;if(k>=X)return-1;if(m>=_)return 1;if(m>>>=0,_>>>=0,k>>>=0,X>>>=0,this===c)return 0;for(var ae=X-k,me=_-m,ge=Math.min(ae,me),b=this.slice(k,X),I=c.slice(m,_),M=0;M<ge;++M)if(b[M]!==I[M]){ae=b[M],me=I[M];break}return ae<me?-1:me<ae?1:0};function N(w,c,m,_,k){if(w.length===0)return-1;if(typeof m=="string"?(_=m,m=0):m>2147483647?m=2147483647:m<-2147483648&&(m=-2147483648),m=+m,R(m)&&(m=k?0:w.length-1),m<0&&(m=w.length+m),m>=w.length){if(k)return-1;m=w.length-1}else if(m<0)if(k)m=0;else return-1;if(typeof c=="string"&&(c=s.from(c,_)),s.isBuffer(c))return c.length===0?-1:u(w,c,m,_,k);if(typeof c=="number")return c=c&255,typeof Uint8Array.prototype.indexOf=="function"?k?Uint8Array.prototype.indexOf.call(w,c,m):Uint8Array.prototype.lastIndexOf.call(w,c,m):u(w,[c],m,_,k);throw new TypeError("val must be string, number or Buffer")}function u(w,c,m,_,k){var X=1,ae=w.length,me=c.length;if(_!==void 0&&(_=String(_).toLowerCase(),_==="ucs2"||_==="ucs-2"||_==="utf16le"||_==="utf-16le")){if(w.length<2||c.length<2)return-1;X=2,ae/=2,me/=2,m/=2}function ge(ee,oe){return X===1?ee[oe]:ee.readUInt16BE(oe*X)}var b;if(k){var I=-1;for(b=m;b<ae;b++)if(ge(w,b)===ge(c,I===-1?0:b-I)){if(I===-1&&(I=b),b-I+1===me)return I*X}else I!==-1&&(b-=b-I),I=-1}else for(m+me>ae&&(m=ae-me),b=m;b>=0;b--){for(var M=!0,K=0;K<me;K++)if(ge(w,b+K)!==ge(c,K)){M=!1;break}if(M)return b}return-1}s.prototype.includes=function(c,m,_){return this.indexOf(c,m,_)!==-1},s.prototype.indexOf=function(c,m,_){return N(this,c,m,_,!0)},s.prototype.lastIndexOf=function(c,m,_){return N(this,c,m,_,!1)};function T(w,c,m,_){m=Number(m)||0;var k=w.length-m;_?(_=Number(_),_>k&&(_=k)):_=k;var X=c.length;_>X/2&&(_=X/2);for(var ae=0;ae<_;++ae){var me=parseInt(c.substr(ae*2,2),16);if(R(me))return ae;w[m+ae]=me}return ae}function Z(w,c,m,_){return se(j(c,w.length-m),w,m,_)}function J(w,c,m,_){return se(U(c),w,m,_)}function ne(w,c,m,_){return se(F(c),w,m,_)}function pe(w,c,m,_){return se(f(c,w.length-m),w,m,_)}s.prototype.write=function(c,m,_,k){if(m===void 0)k="utf8",_=this.length,m=0;else if(_===void 0&&typeof m=="string")k=m,_=this.length,m=0;else if(isFinite(m))m=m>>>0,isFinite(_)?(_=_>>>0,k===void 0&&(k="utf8")):(k=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var X=this.length-m;if((_===void 0||_>X)&&(_=X),c.length>0&&(_<0||m<0)||m>this.length)throw new RangeError("Attempt to write outside buffer bounds");k||(k="utf8");for(var ae=!1;;)switch(k){case"hex":return T(this,c,m,_);case"utf8":case"utf-8":return Z(this,c,m,_);case"ascii":case"latin1":case"binary":return J(this,c,m,_);case"base64":return ne(this,c,m,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,c,m,_);default:if(ae)throw new TypeError("Unknown encoding: "+k);k=(""+k).toLowerCase(),ae=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function le(w,c,m){return c===0&&m===w.length?t.fromByteArray(w):t.fromByteArray(w.slice(c,m))}function z(w,c,m){m=Math.min(w.length,m);for(var _=[],k=c;k<m;){var X=w[k],ae=null,me=X>239?4:X>223?3:X>191?2:1;if(k+me<=m){var ge,b,I,M;switch(me){case 1:X<128&&(ae=X);break;case 2:ge=w[k+1],(ge&192)===128&&(M=(X&31)<<6|ge&63,M>127&&(ae=M));break;case 3:ge=w[k+1],b=w[k+2],(ge&192)===128&&(b&192)===128&&(M=(X&15)<<12|(ge&63)<<6|b&63,M>2047&&(M<55296||M>57343)&&(ae=M));break;case 4:ge=w[k+1],b=w[k+2],I=w[k+3],(ge&192)===128&&(b&192)===128&&(I&192)===128&&(M=(X&15)<<18|(ge&63)<<12|(b&63)<<6|I&63,M>65535&&M<1114112&&(ae=M))}}ae===null?(ae=65533,me=1):ae>65535&&(ae-=65536,_.push(ae>>>10&1023|55296),ae=56320|ae&1023),_.push(ae),k+=me}return de(_)}var G=4096;function de(w){var c=w.length;if(c<=G)return String.fromCharCode.apply(String,w);for(var m="",_=0;_<c;)m+=String.fromCharCode.apply(String,w.slice(_,_+=G));return m}function ce(w,c,m){var _="";m=Math.min(w.length,m);for(var k=c;k<m;++k)_+=String.fromCharCode(w[k]&127);return _}function te(w,c,m){var _="";m=Math.min(w.length,m);for(var k=c;k<m;++k)_+=String.fromCharCode(w[k]);return _}function ie(w,c,m){var _=w.length;(!c||c<0)&&(c=0),(!m||m<0||m>_)&&(m=_);for(var k="",X=c;X<m;++X)k+=Q[w[X]];return k}function W(w,c,m){for(var _=w.slice(c,m),k="",X=0;X<_.length-1;X+=2)k+=String.fromCharCode(_[X]+_[X+1]*256);return k}s.prototype.slice=function(c,m){var _=this.length;c=~~c,m=m===void 0?_:~~m,c<0?(c+=_,c<0&&(c=0)):c>_&&(c=_),m<0?(m+=_,m<0&&(m=0)):m>_&&(m=_),m<c&&(m=c);var k=this.subarray(c,m);return Object.setPrototypeOf(k,s.prototype),k};function Y(w,c,m){if(w%1!==0||w<0)throw new RangeError("offset is not uint");if(w+c>m)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(c,m,_){c=c>>>0,m=m>>>0,_||Y(c,m,this.length);for(var k=this[c],X=1,ae=0;++ae<m&&(X*=256);)k+=this[c+ae]*X;return k},s.prototype.readUintBE=s.prototype.readUIntBE=function(c,m,_){c=c>>>0,m=m>>>0,_||Y(c,m,this.length);for(var k=this[c+--m],X=1;m>0&&(X*=256);)k+=this[c+--m]*X;return k},s.prototype.readUint8=s.prototype.readUInt8=function(c,m){return c=c>>>0,m||Y(c,1,this.length),this[c]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(c,m){return c=c>>>0,m||Y(c,2,this.length),this[c]|this[c+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(c,m){return c=c>>>0,m||Y(c,2,this.length),this[c]<<8|this[c+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(c,m){return c=c>>>0,m||Y(c,4,this.length),(this[c]|this[c+1]<<8|this[c+2]<<16)+this[c+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(c,m){return c=c>>>0,m||Y(c,4,this.length),this[c]*16777216+(this[c+1]<<16|this[c+2]<<8|this[c+3])},s.prototype.readIntLE=function(c,m,_){c=c>>>0,m=m>>>0,_||Y(c,m,this.length);for(var k=this[c],X=1,ae=0;++ae<m&&(X*=256);)k+=this[c+ae]*X;return X*=128,k>=X&&(k-=Math.pow(2,8*m)),k},s.prototype.readIntBE=function(c,m,_){c=c>>>0,m=m>>>0,_||Y(c,m,this.length);for(var k=m,X=1,ae=this[c+--k];k>0&&(X*=256);)ae+=this[c+--k]*X;return X*=128,ae>=X&&(ae-=Math.pow(2,8*m)),ae},s.prototype.readInt8=function(c,m){return c=c>>>0,m||Y(c,1,this.length),this[c]&128?(255-this[c]+1)*-1:this[c]},s.prototype.readInt16LE=function(c,m){c=c>>>0,m||Y(c,2,this.length);var _=this[c]|this[c+1]<<8;return _&32768?_|4294901760:_},s.prototype.readInt16BE=function(c,m){c=c>>>0,m||Y(c,2,this.length);var _=this[c+1]|this[c]<<8;return _&32768?_|4294901760:_},s.prototype.readInt32LE=function(c,m){return c=c>>>0,m||Y(c,4,this.length),this[c]|this[c+1]<<8|this[c+2]<<16|this[c+3]<<24},s.prototype.readInt32BE=function(c,m){return c=c>>>0,m||Y(c,4,this.length),this[c]<<24|this[c+1]<<16|this[c+2]<<8|this[c+3]},s.prototype.readFloatLE=function(c,m){return c=c>>>0,m||Y(c,4,this.length),r.read(this,c,!0,23,4)},s.prototype.readFloatBE=function(c,m){return c=c>>>0,m||Y(c,4,this.length),r.read(this,c,!1,23,4)},s.prototype.readDoubleLE=function(c,m){return c=c>>>0,m||Y(c,8,this.length),r.read(this,c,!0,52,8)},s.prototype.readDoubleBE=function(c,m){return c=c>>>0,m||Y(c,8,this.length),r.read(this,c,!1,52,8)};function $(w,c,m,_,k,X){if(!s.isBuffer(w))throw new TypeError('"buffer" argument must be a Buffer instance');if(c>k||c<X)throw new RangeError('"value" argument is out of bounds');if(m+_>w.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(c,m,_,k){if(c=+c,m=m>>>0,_=_>>>0,!k){var X=Math.pow(2,8*_)-1;$(this,c,m,_,X,0)}var ae=1,me=0;for(this[m]=c&255;++me<_&&(ae*=256);)this[m+me]=c/ae&255;return m+_},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(c,m,_,k){if(c=+c,m=m>>>0,_=_>>>0,!k){var X=Math.pow(2,8*_)-1;$(this,c,m,_,X,0)}var ae=_-1,me=1;for(this[m+ae]=c&255;--ae>=0&&(me*=256);)this[m+ae]=c/me&255;return m+_},s.prototype.writeUint8=s.prototype.writeUInt8=function(c,m,_){return c=+c,m=m>>>0,_||$(this,c,m,1,255,0),this[m]=c&255,m+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(c,m,_){return c=+c,m=m>>>0,_||$(this,c,m,2,65535,0),this[m]=c&255,this[m+1]=c>>>8,m+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(c,m,_){return c=+c,m=m>>>0,_||$(this,c,m,2,65535,0),this[m]=c>>>8,this[m+1]=c&255,m+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(c,m,_){return c=+c,m=m>>>0,_||$(this,c,m,4,4294967295,0),this[m+3]=c>>>24,this[m+2]=c>>>16,this[m+1]=c>>>8,this[m]=c&255,m+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(c,m,_){return c=+c,m=m>>>0,_||$(this,c,m,4,4294967295,0),this[m]=c>>>24,this[m+1]=c>>>16,this[m+2]=c>>>8,this[m+3]=c&255,m+4},s.prototype.writeIntLE=function(c,m,_,k){if(c=+c,m=m>>>0,!k){var X=Math.pow(2,8*_-1);$(this,c,m,_,X-1,-X)}var ae=0,me=1,ge=0;for(this[m]=c&255;++ae<_&&(me*=256);)c<0&&ge===0&&this[m+ae-1]!==0&&(ge=1),this[m+ae]=(c/me>>0)-ge&255;return m+_},s.prototype.writeIntBE=function(c,m,_,k){if(c=+c,m=m>>>0,!k){var X=Math.pow(2,8*_-1);$(this,c,m,_,X-1,-X)}var ae=_-1,me=1,ge=0;for(this[m+ae]=c&255;--ae>=0&&(me*=256);)c<0&&ge===0&&this[m+ae+1]!==0&&(ge=1),this[m+ae]=(c/me>>0)-ge&255;return m+_},s.prototype.writeInt8=function(c,m,_){return c=+c,m=m>>>0,_||$(this,c,m,1,127,-128),c<0&&(c=255+c+1),this[m]=c&255,m+1},s.prototype.writeInt16LE=function(c,m,_){return c=+c,m=m>>>0,_||$(this,c,m,2,32767,-32768),this[m]=c&255,this[m+1]=c>>>8,m+2},s.prototype.writeInt16BE=function(c,m,_){return c=+c,m=m>>>0,_||$(this,c,m,2,32767,-32768),this[m]=c>>>8,this[m+1]=c&255,m+2},s.prototype.writeInt32LE=function(c,m,_){return c=+c,m=m>>>0,_||$(this,c,m,4,2147483647,-2147483648),this[m]=c&255,this[m+1]=c>>>8,this[m+2]=c>>>16,this[m+3]=c>>>24,m+4},s.prototype.writeInt32BE=function(c,m,_){return c=+c,m=m>>>0,_||$(this,c,m,4,2147483647,-2147483648),c<0&&(c=4294967295+c+1),this[m]=c>>>24,this[m+1]=c>>>16,this[m+2]=c>>>8,this[m+3]=c&255,m+4};function P(w,c,m,_,k,X){if(m+_>w.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("Index out of range")}function H(w,c,m,_,k){return c=+c,m=m>>>0,k||P(w,c,m,4),r.write(w,c,m,_,23,4),m+4}s.prototype.writeFloatLE=function(c,m,_){return H(this,c,m,!0,_)},s.prototype.writeFloatBE=function(c,m,_){return H(this,c,m,!1,_)};function re(w,c,m,_,k){return c=+c,m=m>>>0,k||P(w,c,m,8),r.write(w,c,m,_,52,8),m+8}s.prototype.writeDoubleLE=function(c,m,_){return re(this,c,m,!0,_)},s.prototype.writeDoubleBE=function(c,m,_){return re(this,c,m,!1,_)},s.prototype.copy=function(c,m,_,k){if(!s.isBuffer(c))throw new TypeError("argument should be a Buffer");if(_||(_=0),!k&&k!==0&&(k=this.length),m>=c.length&&(m=c.length),m||(m=0),k>0&&k<_&&(k=_),k===_||c.length===0||this.length===0)return 0;if(m<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("sourceEnd out of bounds");k>this.length&&(k=this.length),c.length-m<k-_&&(k=c.length-m+_);var X=k-_;return this===c&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(m,_,k):Uint8Array.prototype.set.call(c,this.subarray(_,k),m),X},s.prototype.fill=function(c,m,_,k){if(typeof c=="string"){if(typeof m=="string"?(k=m,m=0,_=this.length):typeof _=="string"&&(k=_,_=this.length),k!==void 0&&typeof k!="string")throw new TypeError("encoding must be a string");if(typeof k=="string"&&!s.isEncoding(k))throw new TypeError("Unknown encoding: "+k);if(c.length===1){var X=c.charCodeAt(0);(k==="utf8"&&X<128||k==="latin1")&&(c=X)}}else typeof c=="number"?c=c&255:typeof c=="boolean"&&(c=Number(c));if(m<0||this.length<m||this.length<_)throw new RangeError("Out of range index");if(_<=m)return this;m=m>>>0,_=_===void 0?this.length:_>>>0,c||(c=0);var ae;if(typeof c=="number")for(ae=m;ae<_;++ae)this[ae]=c;else{var me=s.isBuffer(c)?c:s.from(c,k),ge=me.length;if(ge===0)throw new TypeError('The value "'+c+'" is invalid for argument "value"');for(ae=0;ae<_-m;++ae)this[ae+m]=me[ae%ge]}return this};var fe=/[^+/0-9A-Za-z-_]/g;function V(w){if(w=w.split("=")[0],w=w.trim().replace(fe,""),w.length<2)return"";for(;w.length%4!==0;)w=w+"=";return w}function j(w,c){c=c||1/0;for(var m,_=w.length,k=null,X=[],ae=0;ae<_;++ae){if(m=w.charCodeAt(ae),m>55295&&m<57344){if(!k){if(m>56319){(c-=3)>-1&&X.push(239,191,189);continue}else if(ae+1===_){(c-=3)>-1&&X.push(239,191,189);continue}k=m;continue}if(m<56320){(c-=3)>-1&&X.push(239,191,189),k=m;continue}m=(k-55296<<10|m-56320)+65536}else k&&(c-=3)>-1&&X.push(239,191,189);if(k=null,m<128){if((c-=1)<0)break;X.push(m)}else if(m<2048){if((c-=2)<0)break;X.push(m>>6|192,m&63|128)}else if(m<65536){if((c-=3)<0)break;X.push(m>>12|224,m>>6&63|128,m&63|128)}else if(m<1114112){if((c-=4)<0)break;X.push(m>>18|240,m>>12&63|128,m>>6&63|128,m&63|128)}else throw new Error("Invalid code point")}return X}function U(w){for(var c=[],m=0;m<w.length;++m)c.push(w.charCodeAt(m)&255);return c}function f(w,c){for(var m,_,k,X=[],ae=0;ae<w.length&&!((c-=2)<0);++ae)m=w.charCodeAt(ae),_=m>>8,k=m%256,X.push(k),X.push(_);return X}function F(w){return t.toByteArray(V(w))}function se(w,c,m,_){for(var k=0;k<_&&!(k+m>=c.length||k>=w.length);++k)c[k+m]=w[k];return k}function O(w,c){return w instanceof c||w!=null&&w.constructor!=null&&w.constructor.name!=null&&w.constructor.name===c.name}function R(w){return w!==w}var Q=function(){for(var w="0123456789abcdef",c=new Array(256),m=0;m<16;++m)for(var _=m*16,k=0;k<16;++k)c[_+k]=w[m]+w[k];return c}()})(Dr);function la(){this.head=null,this.tail=null,this.length=0}la.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},la.prototype.unshift=function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length},la.prototype.shift=function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},la.prototype.clear=function(){this.head=this.tail=null,this.length=0},la.prototype.join=function(e){if(this.length===0)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},la.prototype.concat=function(e){if(this.length===0)return Dr.Buffer.alloc(0);if(this.length===1)return this.head.data;for(var t=Dr.Buffer.allocUnsafe(e>>>0),r=this.head,a=0;r;)r.data.copy(t,a),a+=r.data.length,r=r.next;return t};var bs={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(e,t){var r=Dr,a=r.Buffer;function i(p,s){for(var o in p)s[o]=p[o]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=n);function n(p,s,o){return a(p,s,o)}n.prototype=Object.create(a.prototype),i(a,n),n.from=function(p,s,o){if(typeof p=="number")throw new TypeError("Argument must not be a number");return a(p,s,o)},n.alloc=function(p,s,o){if(typeof p!="number")throw new TypeError("Argument must be a number");var d=a(p);return s!==void 0?typeof o=="string"?d.fill(s,o):d.fill(s):d.fill(0),d},n.allocUnsafe=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return a(p)},n.allocUnsafeSlow=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(p)}})(bs,bs.exports);var Es=bs.exports.Buffer,P0=Es.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function U5(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function B5(e){var t=U5(e);if(typeof t!="string"&&(Es.isEncoding===P0||!P0(e)))throw new Error("Unknown encoding: "+e);return t||e}var M0=Ni;function Ni(e){this.encoding=B5(e);var t;switch(this.encoding){case"utf16le":this.text=H5,this.end=q5,t=4;break;case"utf8":this.fillLast=V5,t=4;break;case"base64":this.text=K5,this.end=G5,t=3;break;default:this.write=W5,this.end=Z5;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Es.allocUnsafe(t)}Ni.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},Ni.prototype.end=z5,Ni.prototype.text=k5,Ni.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Ss(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function $5(e,t,r){var a=t.length-1;if(a<r)return 0;var i=Ss(t[a]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--a<r||i===-2?0:(i=Ss(t[a]),i>=0?(i>0&&(e.lastNeed=i-2),i):--a<r||i===-2?0:(i=Ss(t[a]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function j5(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function V5(e){var t=this.lastTotal-this.lastNeed,r=j5(this,e);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function k5(e,t){var r=$5(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var a=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,a),e.toString("utf8",t,a)}function z5(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function H5(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var a=r.charCodeAt(r.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function q5(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function K5(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function G5(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function W5(e){return e.toString(this.encoding)}function Z5(e){return e&&e.length?this.write(e):""}$e.ReadableState=U0;var Re=lt.debuglog("stream");lt.inherits($e,It);function Y5(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function J5(e,t){return e.listeners(t).length}function U0(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof zt&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,a=this.objectMode?16:16*1024;this.highWaterMark=r||r===0?r:a,this.highWaterMark=~~this.highWaterMark,this.buffer=new la,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new M0(e.encoding),this.encoding=e.encoding)}function $e(e){if(!(this instanceof $e))return new $e(e);this._readableState=new U0(e,this),this.readable=!0,e&&typeof e.read=="function"&&(this._read=e.read),It.call(this)}$e.prototype.push=function(e,t){var r=this._readableState;return!r.objectMode&&typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Buffer.from(e,t),t="")),B0(this,r,e,t,!1)},$e.prototype.unshift=function(e){var t=this._readableState;return B0(this,t,e,"",!0)},$e.prototype.isPaused=function(){return this._readableState.flowing===!1};function B0(e,t,r,a,i){var n=e8(t,r);if(n)e.emit("error",n);else if(r===null)t.reading=!1,t8(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!i){var p=new Error("stream.push() after EOF");e.emit("error",p)}else if(t.endEmitted&&i){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var o;t.decoder&&!i&&!a&&(r=t.decoder.write(r),o=!t.objectMode&&r.length===0),i||(t.reading=!1),o||(t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&U1(e))),r8(e,t)}else i||(t.reading=!1);return X5(t)}function X5(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}$e.prototype.setEncoding=function(e){return this._readableState.decoder=new M0(e),this._readableState.encoding=e,this};var $0=8388608;function Q5(e){return e>=$0?e=$0:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function j0(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=Q5(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}$e.prototype.read=function(e){Re("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return Re("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Ds(this):U1(this),null;if(e=j0(e,t),e===0&&t.ended)return t.length===0&&Ds(this),null;var a=t.needReadable;Re("need readable",a),(t.length===0||t.length-e<t.highWaterMark)&&(a=!0,Re("length less than watermark",a)),t.ended||t.reading?(a=!1,Re("reading or ended",a)):a&&(Re("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=j0(r,t)));var i;return e>0?i=k0(e,t):i=null,i===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Ds(this)),i!==null&&this.emit("data",i),i};function e8(e,t){var r=null;return!Buffer.isBuffer(t)&&typeof t!="string"&&t!==null&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function t8(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,U1(e)}}function U1(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Re("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Vt.nextTick(V0,e):V0(e))}function V0(e){Re("emit readable"),e.emit("readable"),xs(e)}function r8(e,t){t.readingMore||(t.readingMore=!0,Vt.nextTick(a8,e,t))}function a8(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(Re("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}$e.prototype._read=function(e){this.emit("error",new Error("not implemented"))},$e.prototype.pipe=function(e,t){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e);break}a.pipesCount+=1,Re("pipe count=%d opts=%j",a.pipesCount,t);var i=!t||t.end!==!1,n=i?s:l;a.endEmitted?Vt.nextTick(n):r.once("end",n),e.on("unpipe",p);function p(D){Re("onunpipe"),D===r&&l()}function s(){Re("onend"),e.end()}var o=i8(r);e.on("drain",o);var d=!1;function l(){Re("cleanup"),e.removeListener("close",y),e.removeListener("finish",A),e.removeListener("drain",o),e.removeListener("error",v),e.removeListener("unpipe",p),r.removeListener("end",s),r.removeListener("end",l),r.removeListener("data",g),d=!0,a.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&o()}var h=!1;r.on("data",g);function g(D){Re("ondata"),h=!1;var C=e.write(D);C===!1&&!h&&((a.pipesCount===1&&a.pipes===e||a.pipesCount>1&&z0(a.pipes,e)!==-1)&&!d&&(Re("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,h=!0),r.pause())}function v(D){Re("onerror",D),E(),e.removeListener("error",v),J5(e,"error")===0&&e.emit("error",D)}Y5(e,"error",v);function y(){e.removeListener("finish",A),E()}e.once("close",y);function A(){Re("onfinish"),e.removeListener("close",y),E()}e.once("finish",A);function E(){Re("unpipe"),r.unpipe(e)}return e.emit("pipe",r),a.flowing||(Re("pipe resume"),r.resume()),e};function i8(e){return function(){var t=e._readableState;Re("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&e.listeners("data").length&&(t.flowing=!0,xs(e))}}$e.prototype.unpipe=function(e){var t=this._readableState;if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var r=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<a;i++)r[i].emit("unpipe",this);return this}var n=z0(t.pipes,e);return n===-1?this:(t.pipes.splice(n,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},$e.prototype.on=function(e,t){var r=It.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var a=this._readableState;!a.endEmitted&&!a.readableListening&&(a.readableListening=a.needReadable=!0,a.emittedReadable=!1,a.reading?a.length&&U1(this):Vt.nextTick(n8,this))}return r},$e.prototype.addListener=$e.prototype.on;function n8(e){Re("readable nexttick read 0"),e.read(0)}$e.prototype.resume=function(){var e=this._readableState;return e.flowing||(Re("resume"),e.flowing=!0,s8(this,e)),this};function s8(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Vt.nextTick(p8,e,t))}function p8(e,t){t.reading||(Re("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),xs(e),t.flowing&&!t.reading&&e.read(0)}$e.prototype.pause=function(){return Re("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Re("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function xs(e){var t=e._readableState;for(Re("flow",t.flowing);t.flowing&&e.read()!==null;);}$e.prototype.wrap=function(e){var t=this._readableState,r=!1,a=this;e.on("end",function(){if(Re("wrapped end"),t.decoder&&!t.ended){var p=t.decoder.end();p&&p.length&&a.push(p)}a.push(null)}),e.on("data",function(p){if(Re("wrapped data"),t.decoder&&(p=t.decoder.write(p)),!(t.objectMode&&p==null)&&!(!t.objectMode&&(!p||!p.length))){var s=a.push(p);s||(r=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(p){return function(){return e[p].apply(e,arguments)}}(i));var n=["error","close","destroy","pause","resume"];return c8(n,function(p){e.on(p,a.emit.bind(a,p))}),a._read=function(p){Re("wrapped _read",p),r&&(r=!1,e.resume())},a},$e._fromList=k0;function k0(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=o8(e,t.buffer,t.decoder),r}function o8(e,t,r){var a;return e<t.head.data.length?(a=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?a=t.shift():a=r?d8(e,t):l8(e,t),a}function d8(e,t){var r=t.head,a=1,i=r.data;for(e-=i.length;r=r.next;){var n=r.data,p=e>n.length?n.length:e;if(p===n.length?i+=n:i+=n.slice(0,e),e-=p,e===0){p===n.length?(++a,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=n.slice(p));break}++a}return t.length-=a,i}function l8(e,t){var r=Buffer.allocUnsafe(e),a=t.head,i=1;for(a.data.copy(r),e-=a.data.length;a=a.next;){var n=a.data,p=e>n.length?n.length:e;if(n.copy(r,r.length-e,0,p),e-=p,e===0){p===n.length?(++i,a.next?t.head=a.next:t.head=t.tail=null):(t.head=a,a.data=n.slice(p));break}++i}return t.length-=i,r}function Ds(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Vt.nextTick(u8,t,e))}function u8(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function c8(e,t){for(var r=0,a=e.length;r<a;r++)t(e[r],r)}function z0(e,t){for(var r=0,a=e.length;r<a;r++)if(e[r]===t)return r;return-1}st.WritableState=Ts,lt.inherits(st,It.EventEmitter);function f8(){}function h8(e,t,r){this.chunk=e,this.encoding=t,this.callback=r,this.next=null}function Ts(e,t){Object.defineProperty(this,"buffer",{get:lt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof zt&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,a=this.objectMode?16:16*1024;this.highWaterMark=r||r===0?r:a,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){b8(t,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Z0(this)}Ts.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};function st(e){if(!(this instanceof st)&&!(this instanceof zt))return new st(e);this._writableState=new Ts(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev)),It.EventEmitter.call(this)}st.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function m8(e,t){var r=new Error("write after end");e.emit("error",r),Vt.nextTick(t,r)}function v8(e,t,r,a){var i=!0,n=!1;return r===null?n=new TypeError("May not write null values to stream"):!Dr.Buffer.isBuffer(r)&&typeof r!="string"&&r!==void 0&&!t.objectMode&&(n=new TypeError("Invalid non-string/buffer chunk")),n&&(e.emit("error",n),Vt.nextTick(a,n),i=!1),i}st.prototype.write=function(e,t,r){var a=this._writableState,i=!1;return typeof t=="function"&&(r=t,t=null),Dr.Buffer.isBuffer(e)?t="buffer":t||(t=a.defaultEncoding),typeof r!="function"&&(r=f8),a.ended?m8(this,r):v8(this,a,e,r)&&(a.pendingcb++,i=y8(this,a,e,t,r)),i},st.prototype.cork=function(){var e=this._writableState;e.corked++},st.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest&&q0(this,e))},st.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function g8(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Dr.Buffer.from(t,r)),t}function y8(e,t,r,a,i){r=g8(t,r,a),Dr.Buffer.isBuffer(r)&&(a="buffer");var n=t.objectMode?1:r.length;t.length+=n;var p=t.length<t.highWaterMark;if(p||(t.needDrain=!0),t.writing||t.corked){var s=t.lastBufferedRequest;t.lastBufferedRequest=new h8(r,a,i),s?s.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Ns(e,t,!1,n,r,a,i);return p}function Ns(e,t,r,a,i,n,p){t.writelen=a,t.writecb=p,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,n,t.onwrite),t.sync=!1}function w8(e,t,r,a,i){--t.pendingcb,r?Vt.nextTick(i,a):i(a),e._writableState.errorEmitted=!0,e.emit("error",a)}function _8(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function b8(e,t){var r=e._writableState,a=r.sync,i=r.writecb;if(_8(r),t)w8(e,r,a,t,i);else{var n=K0(r);!n&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&q0(e,r),a?Vt.nextTick(H0,e,r,n,i):H0(e,r,n,i)}}function H0(e,t,r,a){r||E8(e,t),t.pendingcb--,a(),W0(e,t)}function E8(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function q0(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var a=t.bufferedRequestCount,i=new Array(a),n=t.corkedRequestsFree;n.entry=r;for(var p=0;r;)i[p]=r,r=r.next,p+=1;Ns(e,t,!0,t.length,i,"",n.finish),t.pendingcb++,t.lastBufferedRequest=null,n.next?(t.corkedRequestsFree=n.next,n.next=null):t.corkedRequestsFree=new Z0(t)}else{for(;r;){var s=r.chunk,o=r.encoding,d=r.callback,l=t.objectMode?1:s.length;if(Ns(e,t,!1,l,s,o,d),r=r.next,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=r,t.bufferProcessing=!1}st.prototype._write=function(e,t,r){r(new Error("not implemented"))},st.prototype._writev=null,st.prototype.end=function(e,t,r){var a=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),a.corked&&(a.corked=1,this.uncork()),!a.ending&&!a.finished&&S8(this,a,r)};function K0(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function G0(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function W0(e,t){var r=K0(t);return r&&(t.pendingcb===0?(G0(e,t),t.finished=!0,e.emit("finish")):G0(e,t)),r}function S8(e,t,r){t.ending=!0,W0(e,t),r&&(t.finished?Vt.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function Z0(e){var t=this;this.next=null,this.entry=null,this.finish=function(r){var a=t.entry;for(t.entry=null;a;){var i=a.callback;e.pendingcb--,i(r),a=a.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}lt.inherits(zt,$e);for(var Y0=Object.keys(st.prototype),Os=0;Os<Y0.length;Os++){var As=Y0[Os];zt.prototype[As]||(zt.prototype[As]=st.prototype[As])}function zt(e){if(!(this instanceof zt))return new zt(e);$e.call(this,e),st.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",x8)}function x8(){this.allowHalfOpen||this._writableState.ended||Vt.nextTick(D8,this)}function D8(e){e.end()}lt.inherits(Ht,zt);function T8(e){this.afterTransform=function(t,r){return N8(e,t,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function N8(e,t,r){var a=e._transformState;a.transforming=!1;var i=a.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));a.writechunk=null,a.writecb=null,r!=null&&e.push(r),i(t);var n=e._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&e._read(n.highWaterMark)}function Ht(e){if(!(this instanceof Ht))return new Ht(e);zt.call(this,e),this._transformState=new T8(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.once("prefinish",function(){typeof this._flush=="function"?this._flush(function(r){J0(t,r)}):J0(t)})}Ht.prototype.push=function(e,t){return this._transformState.needTransform=!1,zt.prototype.push.call(this,e,t)},Ht.prototype._transform=function(e,t,r){throw new Error("Not implemented")},Ht.prototype._write=function(e,t,r){var a=this._transformState;if(a.writecb=r,a.writechunk=e,a.writeencoding=t,!a.transforming){var i=this._readableState;(a.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},Ht.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};function J0(e,t){if(t)return e.emit("error",t);var r=e._writableState,a=e._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(a.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}lt.inherits(Oi,Ht);function Oi(e){if(!(this instanceof Oi))return new Oi(e);Ht.call(this,e)}Oi.prototype._transform=function(e,t,r){r(null,e)},lt.inherits(at,It),at.Readable=$e,at.Writable=st,at.Duplex=zt,at.Transform=Ht,at.PassThrough=Oi,at.Stream=at;function at(){It.call(this)}at.prototype.pipe=function(e,t){var r=this;function a(l){e.writable&&e.write(l)===!1&&r.pause&&r.pause()}r.on("data",a);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",p),r.on("close",s));var n=!1;function p(){n||(n=!0,e.end())}function s(){n||(n=!0,typeof e.destroy=="function"&&e.destroy())}function o(l){if(d(),It.listenerCount(this,"error")===0)throw l}r.on("error",o),e.on("error",o);function d(){r.removeListener("data",a),e.removeListener("drain",i),r.removeListener("end",p),r.removeListener("close",s),r.removeListener("error",o),e.removeListener("error",o),r.removeListener("end",d),r.removeListener("close",d),e.removeListener("close",d)}return r.on("end",d),r.on("close",d),e.on("close",d),e.emit("pipe",r),e};var Cs=Ci(global.fetch)&&Ci(global.ReadableStream),Ai;function O8(){if(typeof Ai<"u")return Ai;try{new global.Blob([new ArrayBuffer(1)]),Ai=!0}catch{Ai=!1}return Ai}var ua;function Is(e){ua||(ua=new global.XMLHttpRequest,ua.open("GET",global.location.host?"/":"https://example.com"));try{return ua.responseType=e,ua.responseType===e}catch{return!1}}var Rs=typeof global.ArrayBuffer<"u",A8=Rs&&Ci(global.ArrayBuffer.prototype.slice),C8=Rs&&Is("arraybuffer"),I8=!Cs&&A8&&Is("ms-stream"),R8=!Cs&&Rs&&Is("moz-chunked-arraybuffer"),X0=Ci(ua.overrideMimeType),L8=Ci(global.VBArray);function Ci(e){return typeof e=="function"}ua=null;var ca={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4};function B1(e,t,r){var a=this;$e.call(a),a._mode=r,a.headers={},a.rawHeaders=[],a.trailers={},a.rawTrailers=[],a.on("end",function(){process.nextTick(function(){a.emit("close")})});var i;if(r==="fetch"){a._fetchResponse=t,a.url=t.url,a.statusCode=t.status,a.statusMessage=t.statusText;for(var n,p,s=t.headers[Symbol.iterator]();n=(p=s.next()).value,!p.done;)a.headers[n[0].toLowerCase()]=n[1],a.rawHeaders.push(n[0],n[1]);var o=t.body.getReader();i=function(){o.read().then(function(g){if(!a._destroyed){if(g.done){a.push(null);return}a.push(new Buffer(g.value)),i()}})},i()}else{a._xhr=e,a._pos=0,a.url=e.responseURL,a.statusCode=e.status,a.statusMessage=e.statusText;var d=e.getAllResponseHeaders().split(/\r?\n/);if(d.forEach(function(g){var v=g.match(/^([^:]+):\s*(.*)/);if(v){var y=v[1].toLowerCase();y==="set-cookie"?(a.headers[y]===void 0&&(a.headers[y]=[]),a.headers[y].push(v[2])):a.headers[y]!==void 0?a.headers[y]+=", "+v[2]:a.headers[y]=v[2],a.rawHeaders.push(v[1],v[2])}}),a._charset="x-user-defined",!X0){var l=a.rawHeaders["mime-type"];if(l){var h=l.match(/;\s*charset=([^;])(;|$)/);h&&(a._charset=h[1].toLowerCase())}a._charset||(a._charset="utf-8")}}}lt.inherits(B1,$e),B1.prototype._read=function(){},B1.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==ca.DONE)break;try{r=new global.VBArray(t.responseBody).toArray()}catch{}if(r!==null){e.push(new Buffer(r));break}case"text":try{r=t.responseText}catch{e._mode="text:vbarray";break}if(r.length>e._pos){var a=r.substr(e._pos);if(e._charset==="x-user-defined"){for(var i=new Buffer(a.length),n=0;n<a.length;n++)i[n]=a.charCodeAt(n)&255;e.push(i)}else e.push(a,e._charset);e._pos=r.length}break;case"arraybuffer":if(t.readyState!==ca.DONE||!t.response)break;r=t.response,e.push(new Buffer(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=t.response,t.readyState!==ca.LOADING||!r)break;e.push(new Buffer(new Uint8Array(r)));break;case"ms-stream":if(r=t.response,t.readyState!==ca.LOADING)break;var p=new global.MSStreamReader;p.onprogress=function(){p.result.byteLength>e._pos&&(e.push(new Buffer(new Uint8Array(p.result.slice(e._pos)))),e._pos=p.result.byteLength)},p.onload=function(){e.push(null)},p.readAsArrayBuffer(r);break}e._xhr.readyState===ca.DONE&&e._mode!=="ms-stream"&&e.push(null)};function F8(e){if(e instanceof Uint8Array){if(e.byteOffset===0&&e.byteLength===e.buffer.byteLength)return e.buffer;if(typeof e.buffer.slice=="function")return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(Dr.isBuffer(e)){for(var t=new Uint8Array(e.length),r=e.length,a=0;a<r;a++)t[a]=e[a];return t.buffer}else throw new Error("Argument must be a Buffer")}function P8(e,t){return Cs&&t?"fetch":R8?"moz-chunked-arraybuffer":I8?"ms-stream":C8&&e?"arraybuffer":L8&&e?"text:vbarray":"text"}function Nt(e){var t=this;st.call(t),t._opts=e,t._body=[],t._headers={},e.auth&&t.setHeader("Authorization","Basic "+new Buffer(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(i){t.setHeader(i,e.headers[i])});var r,a=!0;if(e.mode==="disable-fetch")a=!1,r=!0;else if(e.mode==="prefer-streaming")r=!1;else if(e.mode==="allow-wrong-content-type")r=!X0;else if(!e.mode||e.mode==="default"||e.mode==="prefer-fast")r=!0;else throw new Error("Invalid value for opts.mode");t._mode=P8(r,a),t.on("finish",function(){t._onFinish()})}lt.inherits(Nt,st);var M8=["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","user-agent","via"];Nt.prototype.setHeader=function(e,t){var r=this,a=e.toLowerCase();M8.indexOf(a)===-1&&(r._headers[a]={name:e,value:t})},Nt.prototype.getHeader=function(e){var t=this;return t._headers[e.toLowerCase()].value},Nt.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},Nt.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,r=e._headers,a;if((t.method==="POST"||t.method==="PUT"||t.method==="PATCH")&&(O8()?a=new global.Blob(e._body.map(function(p){return F8(p)}),{type:(r["content-type"]||{}).value||""}):a=Buffer.concat(e._body).toString()),e._mode==="fetch"){var i=Object.keys(r).map(function(p){return[r[p].name,r[p].value]});global.fetch(e._opts.url,{method:e._opts.method,headers:i,body:a,mode:"cors",credentials:t.withCredentials?"include":"same-origin"}).then(function(p){e._fetchResponse=p,e._connect()},function(p){e.emit("error",p)})}else{var n=e._xhr=new global.XMLHttpRequest;try{n.open(e._opts.method,e._opts.url,!0)}catch(p){process.nextTick(function(){e.emit("error",p)});return}"responseType"in n&&(n.responseType=e._mode.split(":")[0]),"withCredentials"in n&&(n.withCredentials=!!t.withCredentials),e._mode==="text"&&"overrideMimeType"in n&&n.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(r).forEach(function(p){n.setRequestHeader(r[p].name,r[p].value)}),e._response=null,n.onreadystatechange=function(){switch(n.readyState){case ca.LOADING:case ca.DONE:e._onXHRProgress();break}},e._mode==="moz-chunked-arraybuffer"&&(n.onprogress=function(){e._onXHRProgress()}),n.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{n.send(a)}catch(p){process.nextTick(function(){e.emit("error",p)});return}}}};function U8(e){try{var t=e.status;return t!==null&&t!==0}catch{return!1}}Nt.prototype._onXHRProgress=function(){var e=this;!U8(e._xhr)||e._destroyed||(e._response||e._connect(),e._response._onXHRProgress())},Nt.prototype._connect=function(){var e=this;e._destroyed||(e._response=new B1(e._xhr,e._fetchResponse,e._mode),e.emit("response",e._response))},Nt.prototype._write=function(e,t,r){var a=this;a._body.push(e),r()},Nt.prototype.abort=Nt.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},Nt.prototype.end=function(e,t,r){var a=this;typeof e=="function"&&(r=e,e=void 0),st.prototype.end.call(a,e,t,r)},Nt.prototype.flushHeaders=function(){},Nt.prototype.setTimeout=function(){},Nt.prototype.setNoDelay=function(){},Nt.prototype.setSocketKeepAlive=function(){};var Tr={},Ls={exports:{}};/*! https://mths.be/punycode v1.3.2 by @mathias */(function(e,t){(function(r){var a=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,n=typeof Ee=="object"&&Ee;(n.global===n||n.window===n||n.self===n)&&(r=n);var p,s=2147483647,o=36,d=1,l=26,h=38,g=700,v=72,y=128,A="-",E=/^xn--/,D=/[^\x20-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,B={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=o-d,x=Math.floor,N=String.fromCharCode,u;function T(W){throw RangeError(B[W])}function Z(W,Y){for(var $=W.length,P=[];$--;)P[$]=Y(W[$]);return P}function J(W,Y){var $=W.split("@"),P="";$.length>1&&(P=$[0]+"@",W=$[1]),W=W.replace(C,".");var H=W.split("."),re=Z(H,Y).join(".");return P+re}function ne(W){for(var Y=[],$=0,P=W.length,H,re;$<P;)H=W.charCodeAt($++),H>=55296&&H<=56319&&$<P?(re=W.charCodeAt($++),(re&64512)==56320?Y.push(((H&1023)<<10)+(re&1023)+65536):(Y.push(H),$--)):Y.push(H);return Y}function pe(W){return Z(W,function(Y){var $="";return Y>65535&&(Y-=65536,$+=N(Y>>>10&1023|55296),Y=56320|Y&1023),$+=N(Y),$}).join("")}function le(W){return W-48<10?W-22:W-65<26?W-65:W-97<26?W-97:o}function z(W,Y){return W+22+75*(W<26)-((Y!=0)<<5)}function G(W,Y,$){var P=0;for(W=$?x(W/g):W>>1,W+=x(W/Y);W>S*l>>1;P+=o)W=x(W/S);return x(P+(S+1)*W/(W+h))}function de(W){var Y=[],$=W.length,P,H=0,re=y,fe=v,V,j,U,f,F,se,O,R,Q;for(V=W.lastIndexOf(A),V<0&&(V=0),j=0;j<V;++j)W.charCodeAt(j)>=128&&T("not-basic"),Y.push(W.charCodeAt(j));for(U=V>0?V+1:0;U<$;){for(f=H,F=1,se=o;U>=$&&T("invalid-input"),O=le(W.charCodeAt(U++)),(O>=o||O>x((s-H)/F))&&T("overflow"),H+=O*F,R=se<=fe?d:se>=fe+l?l:se-fe,!(O<R);se+=o)Q=o-R,F>x(s/Q)&&T("overflow"),F*=Q;P=Y.length+1,fe=G(H-f,P,f==0),x(H/P)>s-re&&T("overflow"),re+=x(H/P),H%=P,Y.splice(H++,0,re)}return pe(Y)}function ce(W){var Y,$,P,H,re,fe,V,j,U,f,F,se=[],O,R,Q,w;for(W=ne(W),O=W.length,Y=y,$=0,re=v,fe=0;fe<O;++fe)F=W[fe],F<128&&se.push(N(F));for(P=H=se.length,H&&se.push(A);P<O;){for(V=s,fe=0;fe<O;++fe)F=W[fe],F>=Y&&F<V&&(V=F);for(R=P+1,V-Y>x((s-$)/R)&&T("overflow"),$+=(V-Y)*R,Y=V,fe=0;fe<O;++fe)if(F=W[fe],F<Y&&++$>s&&T("overflow"),F==Y){for(j=$,U=o;f=U<=re?d:U>=re+l?l:U-re,!(j<f);U+=o)w=j-f,Q=o-f,se.push(N(z(f+w%Q,0))),j=x(w/Q);se.push(N(z(j,0))),re=G($,R,P==H),$=0,++P}++$,++Y}return se.join("")}function te(W){return J(W,function(Y){return E.test(Y)?de(Y.slice(4).toLowerCase()):Y})}function ie(W){return J(W,function(Y){return D.test(Y)?"xn--"+ce(Y):Y})}if(p={version:"1.3.2",ucs2:{decode:ne,encode:pe},decode:de,encode:ce,toASCII:ie,toUnicode:te},a&&i)if(e.exports==a)i.exports=p;else for(u in p)p.hasOwnProperty(u)&&(a[u]=p[u]);else r.punycode=p})(Ee)})(Ls,Ls.exports);var Ii={};function B8(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var $8=function(e,t,r,a){t=t||"&",r=r||"=";var i={};if(typeof e!="string"||e.length===0)return i;var n=/\+/g;e=e.split(t);var p=1e3;a&&typeof a.maxKeys=="number"&&(p=a.maxKeys);var s=e.length;p>0&&s>p&&(s=p);for(var o=0;o<s;++o){var d=e[o].replace(n,"%20"),l=d.indexOf(r),h,g,v,y;l>=0?(h=d.substr(0,l),g=d.substr(l+1)):(h=d,g=""),v=decodeURIComponent(h),y=decodeURIComponent(g),B8(i,v)?Array.isArray(i[v])?i[v].push(y):i[v]=[i[v],y]:i[v]=y}return i},Ri=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},j8=function(e,t,r,a){return t=t||"&",r=r||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(i){var n=encodeURIComponent(Ri(i))+r;return Array.isArray(e[i])?e[i].map(function(p){return n+encodeURIComponent(Ri(p))}).join(t):n+encodeURIComponent(Ri(e[i]))}).join(t):a?encodeURIComponent(Ri(a))+r+encodeURIComponent(Ri(e)):""};Ii.decode=Ii.parse=$8,Ii.encode=Ii.stringify=j8;var V8=Ls.exports,k8=Tr.parse=Li;Tr.resolve=J8,Tr.resolveObject=X8,Tr.format=Y8,Tr.Url=qt;function qt(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var z8=/^([a-z0-9.+-]+:)/i,H8=/:[0-9]*$/,q8=["<",">",'"',"`"," ","\r",`
16
- `," "],K8=["{","}","|","\\","^","`"].concat(q8),Fs=["'"].concat(K8),Q0=["%","/","?",";","#"].concat(Fs),e2=["/","?","#"],G8=255,t2=/^[a-z0-9A-Z_-]{0,63}$/,W8=/^([a-z0-9A-Z_-]{0,63})(.*)$/,Z8={javascript:!0,"javascript:":!0},Ps={javascript:!0,"javascript:":!0},Za={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},r2=Ii;function Li(e,t,r){if(e&&a2(e)&&e instanceof qt)return e;var a=new qt;return a.parse(e,t,r),a}qt.prototype.parse=function(e,t,r){if(!Ms(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e;a=a.trim();var i=z8.exec(a);if(i){i=i[0];var n=i.toLowerCase();this.protocol=n,a=a.substr(i.length)}if(r||i||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var p=a.substr(0,2)==="//";p&&!(i&&Ps[i])&&(a=a.substr(2),this.slashes=!0)}if(!Ps[i]&&(p||i&&!Za[i])){for(var s=-1,o=0;o<e2.length;o++){var d=a.indexOf(e2[o]);d!==-1&&(s===-1||d<s)&&(s=d)}var l,h;s===-1?h=a.lastIndexOf("@"):h=a.lastIndexOf("@",s),h!==-1&&(l=a.slice(0,h),a=a.slice(h+1),this.auth=decodeURIComponent(l)),s=-1;for(var o=0;o<Q0.length;o++){var d=a.indexOf(Q0[o]);d!==-1&&(s===-1||d<s)&&(s=d)}s===-1&&(s=a.length),this.host=a.slice(0,s),a=a.slice(s),this.parseHost(),this.hostname=this.hostname||"";var g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g)for(var v=this.hostname.split(/\./),o=0,y=v.length;o<y;o++){var A=v[o];if(!!A&&!A.match(t2)){for(var E="",D=0,C=A.length;D<C;D++)A.charCodeAt(D)>127?E+="x":E+=A[D];if(!E.match(t2)){var B=v.slice(0,o),S=v.slice(o+1),x=A.match(W8);x&&(B.push(x[1]),S.unshift(x[2])),S.length&&(a="/"+S.join(".")+a),this.hostname=B.join(".");break}}}if(this.hostname.length>G8?this.hostname="":this.hostname=this.hostname.toLowerCase(),!g){for(var N=this.hostname.split("."),u=[],o=0;o<N.length;++o){var T=N[o];u.push(T.match(/[^A-Za-z0-9_-]/)?"xn--"+V8.encode(T):T)}this.hostname=u.join(".")}var Z=this.port?":"+this.port:"",J=this.hostname||"";this.host=J+Z,this.href+=this.host,g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!Z8[n])for(var o=0,y=Fs.length;o<y;o++){var ne=Fs[o],pe=encodeURIComponent(ne);pe===ne&&(pe=escape(ne)),a=a.split(ne).join(pe)}var le=a.indexOf("#");le!==-1&&(this.hash=a.substr(le),a=a.slice(0,le));var z=a.indexOf("?");if(z!==-1?(this.search=a.substr(z),this.query=a.substr(z+1),t&&(this.query=r2.parse(this.query)),a=a.slice(0,z)):t&&(this.search="",this.query={}),a&&(this.pathname=a),Za[n]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Z=this.pathname||"",T=this.search||"";this.path=Z+T}return this.href=this.format(),this};function Y8(e){return Ms(e)&&(e=Li(e)),e instanceof qt?e.format():qt.prototype.format.call(e)}qt.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",a=this.hash||"",i=!1,n="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&a2(this.query)&&Object.keys(this.query).length&&(n=r2.stringify(this.query));var p=this.search||n&&"?"+n||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||Za[t])&&i!==!1?(i="//"+(i||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):i||(i=""),a&&a.charAt(0)!=="#"&&(a="#"+a),p&&p.charAt(0)!=="?"&&(p="?"+p),r=r.replace(/[?#]/g,function(s){return encodeURIComponent(s)}),p=p.replace("#","%23"),t+i+r+p+a};function J8(e,t){return Li(e,!1,!0).resolve(t)}qt.prototype.resolve=function(e){return this.resolveObject(Li(e,!1,!0)).format()};function X8(e,t){return e?Li(e,!1,!0).resolveObject(t):t}qt.prototype.resolveObject=function(e){if(Ms(e)){var t=new qt;t.parse(e,!1,!0),e=t}var r=new qt;if(Object.keys(this).forEach(function(C){r[C]=this[C]},this),r.hash=e.hash,e.href==="")return r.href=r.format(),r;if(e.slashes&&!e.protocol)return Object.keys(e).forEach(function(C){C!=="protocol"&&(r[C]=e[C])}),Za[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r;if(e.protocol&&e.protocol!==r.protocol){if(!Za[e.protocol])return Object.keys(e).forEach(function(C){r[C]=e[C]}),r.href=r.format(),r;if(r.protocol=e.protocol,!e.host&&!Ps[e.protocol]){for(var l=(e.pathname||"").split("/");l.length&&!(e.host=l.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),l[0]!==""&&l.unshift(""),l.length<2&&l.unshift(""),r.pathname=l.join("/")}else r.pathname=e.pathname;if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var a=r.pathname||"",i=r.search||"";r.path=a+i}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var n=r.pathname&&r.pathname.charAt(0)==="/",p=e.host||e.pathname&&e.pathname.charAt(0)==="/",s=p||n||r.host&&e.pathname,o=s,d=r.pathname&&r.pathname.split("/")||[],l=e.pathname&&e.pathname.split("/")||[],h=r.protocol&&!Za[r.protocol];if(h&&(r.hostname="",r.port=null,r.host&&(d[0]===""?d[0]=r.host:d.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(l[0]===""?l[0]=e.host:l.unshift(e.host)),e.host=null),s=s&&(l[0]===""||d[0]==="")),p)r.host=e.host||e.host===""?e.host:r.host,r.hostname=e.hostname||e.hostname===""?e.hostname:r.hostname,r.search=e.search,r.query=e.query,d=l;else if(l.length)d||(d=[]),d.pop(),d=d.concat(l),r.search=e.search,r.query=e.query;else if(!Q8(e.search)){if(h){r.hostname=r.host=d.shift();var g=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;g&&(r.auth=g.shift(),r.host=r.hostname=g.shift())}return r.search=e.search,r.query=e.query,(!$1(r.pathname)||!$1(r.search))&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!d.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var v=d.slice(-1)[0],y=(r.host||e.host)&&(v==="."||v==="..")||v==="",A=0,E=d.length;E>=0;E--)v=d[E],v=="."?d.splice(E,1):v===".."?(d.splice(E,1),A++):A&&(d.splice(E,1),A--);if(!s&&!o)for(;A--;A)d.unshift("..");s&&d[0]!==""&&(!d[0]||d[0].charAt(0)!=="/")&&d.unshift(""),y&&d.join("/").substr(-1)!=="/"&&d.push("");var D=d[0]===""||d[0]&&d[0].charAt(0)==="/";if(h){r.hostname=r.host=D?"":d.length?d.shift():"";var g=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;g&&(r.auth=g.shift(),r.host=r.hostname=g.shift())}return s=s||r.host&&d.length,s&&!D&&d.unshift(""),d.length?r.pathname=d.join("/"):(r.pathname=null,r.path=null),(!$1(r.pathname)||!$1(r.search))&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},qt.prototype.parseHost=function(){var e=this.host,t=H8.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};function Ms(e){return typeof e=="string"}function a2(e){return typeof e=="object"&&e!==null}function $1(e){return e===null}function Q8(e){return e==null}function i2(e,t){typeof e=="string"&&(e=k8(e));var r=global.location.protocol.search(/^https?:$/)===-1?"http:":"",a=e.protocol||r,i=e.hostname||e.host,n=e.port,p=e.path||"/";i&&i.indexOf(":")!==-1&&(i="["+i+"]"),e.url=(i?a+"//"+i:"")+(n?":"+n:"")+p,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var s=new Nt(e);return t&&s.on("response",t),s}function e9(e,t){var r=i2(e,t);return r.end(),r}function n2(){}n2.defaultMaxSockets=4;var t9=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"],r9={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},Us={request:i2,get:e9,Agent:n2,METHODS:t9,STATUS_CODES:r9},Qt={},s2={exports:{}},Ze={},a9=Ze;function p2(e){return e<0?-1:1}function i9(e){return e%1===.5&&(e&1)===0?Math.floor(e):Math.round(e)}function Hr(e,t){t.unsigned||--e;const r=t.unsigned?0:-Math.pow(2,e),a=Math.pow(2,e)-1,i=t.moduloBitLength?Math.pow(2,t.moduloBitLength):Math.pow(2,e),n=t.moduloBitLength?Math.pow(2,t.moduloBitLength-1):Math.pow(2,e-1);return function(p,s){s||(s={});let o=+p;if(s.enforceRange){if(!Number.isFinite(o))throw new TypeError("Argument is not a finite number");if(o=p2(o)*Math.floor(Math.abs(o)),o<r||o>a)throw new TypeError("Argument is not in byte range");return o}if(!isNaN(o)&&s.clamp)return o=i9(o),o<r&&(o=r),o>a&&(o=a),o;if(!Number.isFinite(o)||o===0)return 0;if(o=p2(o)*Math.floor(Math.abs(o)),o=o%i,!t.unsigned&&o>=n)return o-i;if(t.unsigned){if(o<0)o+=i;else if(o===-0)return 0}return o}}Ze.void=function(){},Ze.boolean=function(e){return!!e},Ze.byte=Hr(8,{unsigned:!1}),Ze.octet=Hr(8,{unsigned:!0}),Ze.short=Hr(16,{unsigned:!1}),Ze["unsigned short"]=Hr(16,{unsigned:!0}),Ze.long=Hr(32,{unsigned:!1}),Ze["unsigned long"]=Hr(32,{unsigned:!0}),Ze["long long"]=Hr(32,{unsigned:!1,moduloBitLength:64}),Ze["unsigned long long"]=Hr(32,{unsigned:!0,moduloBitLength:64}),Ze.double=function(e){const t=+e;if(!Number.isFinite(t))throw new TypeError("Argument is not a finite floating-point value");return t},Ze["unrestricted double"]=function(e){const t=+e;if(isNaN(t))throw new TypeError("Argument is NaN");return t},Ze.float=Ze.double,Ze["unrestricted float"]=Ze["unrestricted double"],Ze.DOMString=function(e,t){return t||(t={}),t.treatNullAsEmptyString&&e===null?"":String(e)},Ze.ByteString=function(e,t){const r=String(e);let a;for(let i=0;(a=r.codePointAt(i))!==void 0;++i)if(a>255)throw new TypeError("Argument is not a valid bytestring");return r},Ze.USVString=function(e){const t=String(e),r=t.length,a=[];for(let i=0;i<r;++i){const n=t.charCodeAt(i);if(n<55296||n>57343)a.push(String.fromCodePoint(n));else if(56320<=n&&n<=57343)a.push(String.fromCodePoint(65533));else if(i===r-1)a.push(String.fromCodePoint(65533));else{const p=t.charCodeAt(i+1);if(56320<=p&&p<=57343){const s=n&1023,o=p&1023;a.push(String.fromCodePoint((2<<15)+(2<<9)*s+o)),++i}else a.push(String.fromCodePoint(65533))}}return a.join("")},Ze.Date=function(e,t){if(!(e instanceof Date))throw new TypeError("Argument is not a Date object");if(!isNaN(e))return e},Ze.RegExp=function(e,t){return e instanceof RegExp||(e=new RegExp(e)),e};var o2={exports:{}};(function(e){e.exports.mixin=function(r,a){const i=Object.getOwnPropertyNames(a);for(let n=0;n<i.length;++n)Object.defineProperty(r,i[n],Object.getOwnPropertyDescriptor(a,i[n]))},e.exports.wrapperSymbol=Symbol("wrapper"),e.exports.implSymbol=Symbol("impl"),e.exports.wrapperForImpl=function(t){return t[e.exports.wrapperSymbol]},e.exports.implForWrapper=function(t){return t[e.exports.implSymbol]}})(o2);var d2={},pr={exports:{}};const Ya=2147483647,or=36,Bs=1,Fi=26,n9=38,s9=700,l2=72,u2=128,c2="-",p9=/^xn--/,o9=/[^\0-\x7E]/,d9=/[\x2E\u3002\uFF0E\uFF61]/g,l9={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$s=or-Bs,dr=Math.floor,js=String.fromCharCode;function fa(e){throw new RangeError(l9[e])}function u9(e,t){const r=[];let a=e.length;for(;a--;)r[a]=t(e[a]);return r}function f2(e,t){const r=e.split("@");let a="";r.length>1&&(a=r[0]+"@",e=r[1]),e=e.replace(d9,".");const i=e.split("."),n=u9(i,t).join(".");return a+n}function Vs(e){const t=[];let r=0;const a=e.length;for(;r<a;){const i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<a){const n=e.charCodeAt(r++);(n&64512)==56320?t.push(((i&1023)<<10)+(n&1023)+65536):(t.push(i),r--)}else t.push(i)}return t}const h2=e=>String.fromCodePoint(...e),c9=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:or},m2=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},v2=function(e,t,r){let a=0;for(e=r?dr(e/s9):e>>1,e+=dr(e/t);e>$s*Fi>>1;a+=or)e=dr(e/$s);return dr(a+($s+1)*e/(e+n9))},ks=function(e){const t=[],r=e.length;let a=0,i=u2,n=l2,p=e.lastIndexOf(c2);p<0&&(p=0);for(let s=0;s<p;++s)e.charCodeAt(s)>=128&&fa("not-basic"),t.push(e.charCodeAt(s));for(let s=p>0?p+1:0;s<r;){let o=a;for(let l=1,h=or;;h+=or){s>=r&&fa("invalid-input");const g=c9(e.charCodeAt(s++));(g>=or||g>dr((Ya-a)/l))&&fa("overflow"),a+=g*l;const v=h<=n?Bs:h>=n+Fi?Fi:h-n;if(g<v)break;const y=or-v;l>dr(Ya/y)&&fa("overflow"),l*=y}const d=t.length+1;n=v2(a-o,d,o==0),dr(a/d)>Ya-i&&fa("overflow"),i+=dr(a/d),a%=d,t.splice(a++,0,i)}return String.fromCodePoint(...t)},zs=function(e){const t=[];e=Vs(e);let r=e.length,a=u2,i=0,n=l2;for(const o of e)o<128&&t.push(js(o));let p=t.length,s=p;for(p&&t.push(c2);s<r;){let o=Ya;for(const l of e)l>=a&&l<o&&(o=l);const d=s+1;o-a>dr((Ya-i)/d)&&fa("overflow"),i+=(o-a)*d,a=o;for(const l of e)if(l<a&&++i>Ya&&fa("overflow"),l==a){let h=i;for(let g=or;;g+=or){const v=g<=n?Bs:g>=n+Fi?Fi:g-n;if(h<v)break;const y=h-v,A=or-v;t.push(js(m2(v+y%A,0))),h=dr(y/A)}t.push(js(m2(h,0))),n=v2(i,d,s==p),i=0,++s}++i,++a}return t.join("")},g2=function(e){return f2(e,function(t){return p9.test(t)?ks(t.slice(4).toLowerCase()):t})},y2=function(e){return f2(e,function(t){return o9.test(t)?"xn--"+zs(t):t})};var f9=Object.freeze({__proto__:null,ucs2decode:Vs,ucs2encode:h2,decode:ks,encode:zs,toASCII:y2,toUnicode:g2,default:{version:"2.1.0",ucs2:{decode:Vs,encode:h2},decode:ks,encode:zs,toASCII:y2,toUnicode:g2}}),w2=Er(f9),j1={},h9=[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"],[[47,47],"disallowed_STD3_valid"],[[48,57],"valid"],[[58,64],"disallowed_STD3_valid"],[[65,65],"mapped",[97]],[[66,66],"mapped",[98]],[[67,67],"mapped",[99]],[[68,68],"mapped",[100]],[[69,69],"mapped",[101]],[[70,70],"mapped",[102]],[[71,71],"mapped",[103]],[[72,72],"mapped",[104]],[[73,73],"mapped",[105]],[[74,74],"mapped",[106]],[[75,75],"mapped",[107]],[[76,76],"mapped",[108]],[[77,77],"mapped",[109]],[[78,78],"mapped",[110]],[[79,79],"mapped",[111]],[[80,80],"mapped",[112]],[[81,81],"mapped",[113]],[[82,82],"mapped",[114]],[[83,83],"mapped",[115]],[[84,84],"mapped",[116]],[[85,85],"mapped",[117]],[[86,86],"mapped",[118]],[[87,87],"mapped",[119]],[[88,88],"mapped",[120]],[[89,89],"mapped",[121]],[[90,90],"mapped",[122]],[[91,96],"disallowed_STD3_valid"],[[97,122],"valid"],[[123,127],"disallowed_STD3_valid"],[[128,159],"disallowed"],[[160,160],"disallowed_STD3_mapped",[32]],[[161,167],"valid",[],"NV8"],[[168,168],"disallowed_STD3_mapped",[32,776]],[[169,169],"valid",[],"NV8"],[[170,170],"mapped",[97]],[[171,172],"valid",[],"NV8"],[[173,173],"ignored"],[[174,174],"valid",[],"NV8"],[[175,175],"disallowed_STD3_mapped",[32,772]],[[176,177],"valid",[],"NV8"],[[178,178],"mapped",[50]],[[179,179],"mapped",[51]],[[180,180],"disallowed_STD3_mapped",[32,769]],[[181,181],"mapped",[956]],[[182,182],"valid",[],"NV8"],[[183,183],"valid"],[[184,184],"disallowed_STD3_mapped",[32,807]],[[185,185],"mapped",[49]],[[186,186],"mapped",[111]],[[187,187],"valid",[],"NV8"],[[188,188],"mapped",[49,8260,52]],[[189,189],"mapped",[49,8260,50]],[[190,190],"mapped",[51,8260,52]],[[191,191],"valid",[],"NV8"],[[192,192],"mapped",[224]],[[193,193],"mapped",[225]],[[194,194],"mapped",[226]],[[195,195],"mapped",[227]],[[196,196],"mapped",[228]],[[197,197],"mapped",[229]],[[198,198],"mapped",[230]],[[199,199],"mapped",[231]],[[200,200],"mapped",[232]],[[201,201],"mapped",[233]],[[202,202],"mapped",[234]],[[203,203],"mapped",[235]],[[204,204],"mapped",[236]],[[205,205],"mapped",[237]],[[206,206],"mapped",[238]],[[207,207],"mapped",[239]],[[208,208],"mapped",[240]],[[209,209],"mapped",[241]],[[210,210],"mapped",[242]],[[211,211],"mapped",[243]],[[212,212],"mapped",[244]],[[213,213],"mapped",[245]],[[214,214],"mapped",[246]],[[215,215],"valid",[],"NV8"],[[216,216],"mapped",[248]],[[217,217],"mapped",[249]],[[218,218],"mapped",[250]],[[219,219],"mapped",[251]],[[220,220],"mapped",[252]],[[221,221],"mapped",[253]],[[222,222],"mapped",[254]],[[223,223],"deviation",[115,115]],[[224,246],"valid"],[[247,247],"valid",[],"NV8"],[[248,255],"valid"],[[256,256],"mapped",[257]],[[257,257],"valid"],[[258,258],"mapped",[259]],[[259,259],"valid"],[[260,260],"mapped",[261]],[[261,261],"valid"],[[262,262],"mapped",[263]],[[263,263],"valid"],[[264,264],"mapped",[265]],[[265,265],"valid"],[[266,266],"mapped",[267]],[[267,267],"valid"],[[268,268],"mapped",[269]],[[269,269],"valid"],[[270,270],"mapped",[271]],[[271,271],"valid"],[[272,272],"mapped",[273]],[[273,273],"valid"],[[274,274],"mapped",[275]],[[275,275],"valid"],[[276,276],"mapped",[277]],[[277,277],"valid"],[[278,278],"mapped",[279]],[[279,279],"valid"],[[280,280],"mapped",[281]],[[281,281],"valid"],[[282,282],"mapped",[283]],[[283,283],"valid"],[[284,284],"mapped",[285]],[[285,285],"valid"],[[286,286],"mapped",[287]],[[287,287],"valid"],[[288,288],"mapped",[289]],[[289,289],"valid"],[[290,290],"mapped",[291]],[[291,291],"valid"],[[292,292],"mapped",[293]],[[293,293],"valid"],[[294,294],"mapped",[295]],[[295,295],"valid"],[[296,296],"mapped",[297]],[[297,297],"valid"],[[298,298],"mapped",[299]],[[299,299],"valid"],[[300,300],"mapped",[301]],[[301,301],"valid"],[[302,302],"mapped",[303]],[[303,303],"valid"],[[304,304],"mapped",[105,775]],[[305,305],"valid"],[[306,307],"mapped",[105,106]],[[308,308],"mapped",[309]],[[309,309],"valid"],[[310,310],"mapped",[311]],[[311,312],"valid"],[[313,313],"mapped",[314]],[[314,314],"valid"],[[315,315],"mapped",[316]],[[316,316],"valid"],[[317,317],"mapped",[318]],[[318,318],"valid"],[[319,320],"mapped",[108,183]],[[321,321],"mapped",[322]],[[322,322],"valid"],[[323,323],"mapped",[324]],[[324,324],"valid"],[[325,325],"mapped",[326]],[[326,326],"valid"],[[327,327],"mapped",[328]],[[328,328],"valid"],[[329,329],"mapped",[700,110]],[[330,330],"mapped",[331]],[[331,331],"valid"],[[332,332],"mapped",[333]],[[333,333],"valid"],[[334,334],"mapped",[335]],[[335,335],"valid"],[[336,336],"mapped",[337]],[[337,337],"valid"],[[338,338],"mapped",[339]],[[339,339],"valid"],[[340,340],"mapped",[341]],[[341,341],"valid"],[[342,342],"mapped",[343]],[[343,343],"valid"],[[344,344],"mapped",[345]],[[345,345],"valid"],[[346,346],"mapped",[347]],[[347,347],"valid"],[[348,348],"mapped",[349]],[[349,349],"valid"],[[350,350],"mapped",[351]],[[351,351],"valid"],[[352,352],"mapped",[353]],[[353,353],"valid"],[[354,354],"mapped",[355]],[[355,355],"valid"],[[356,356],"mapped",[357]],[[357,357],"valid"],[[358,358],"mapped",[359]],[[359,359],"valid"],[[360,360],"mapped",[361]],[[361,361],"valid"],[[362,362],"mapped",[363]],[[363,363],"valid"],[[364,364],"mapped",[365]],[[365,365],"valid"],[[366,366],"mapped",[367]],[[367,367],"valid"],[[368,368],"mapped",[369]],[[369,369],"valid"],[[370,370],"mapped",[371]],[[371,371],"valid"],[[372,372],"mapped",[373]],[[373,373],"valid"],[[374,374],"mapped",[375]],[[375,375],"valid"],[[376,376],"mapped",[255]],[[377,377],"mapped",[378]],[[378,378],"valid"],[[379,379],"mapped",[380]],[[380,380],"valid"],[[381,381],"mapped",[382]],[[382,382],"valid"],[[383,383],"mapped",[115]],[[384,384],"valid"],[[385,385],"mapped",[595]],[[386,386],"mapped",[387]],[[387,387],"valid"],[[388,388],"mapped",[389]],[[389,389],"valid"],[[390,390],"mapped",[596]],[[391,391],"mapped",[392]],[[392,392],"valid"],[[393,393],"mapped",[598]],[[394,394],"mapped",[599]],[[395,395],"mapped",[396]],[[396,397],"valid"],[[398,398],"mapped",[477]],[[399,399],"mapped",[601]],[[400,400],"mapped",[603]],[[401,401],"mapped",[402]],[[402,402],"valid"],[[403,403],"mapped",[608]],[[404,404],"mapped",[611]],[[405,405],"valid"],[[406,406],"mapped",[617]],[[407,407],"mapped",[616]],[[408,408],"mapped",[409]],[[409,411],"valid"],[[412,412],"mapped",[623]],[[413,413],"mapped",[626]],[[414,414],"valid"],[[415,415],"mapped",[629]],[[416,416],"mapped",[417]],[[417,417],"valid"],[[418,418],"mapped",[419]],[[419,419],"valid"],[[420,420],"mapped",[421]],[[421,421],"valid"],[[422,422],"mapped",[640]],[[423,423],"mapped",[424]],[[424,424],"valid"],[[425,425],"mapped",[643]],[[426,427],"valid"],[[428,428],"mapped",[429]],[[429,429],"valid"],[[430,430],"mapped",[648]],[[431,431],"mapped",[432]],[[432,432],"valid"],[[433,433],"mapped",[650]],[[434,434],"mapped",[651]],[[435,435],"mapped",[436]],[[436,436],"valid"],[[437,437],"mapped",[438]],[[438,438],"valid"],[[439,439],"mapped",[658]],[[440,440],"mapped",[441]],[[441,443],"valid"],[[444,444],"mapped",[445]],[[445,451],"valid"],[[452,454],"mapped",[100,382]],[[455,457],"mapped",[108,106]],[[458,460],"mapped",[110,106]],[[461,461],"mapped",[462]],[[462,462],"valid"],[[463,463],"mapped",[464]],[[464,464],"valid"],[[465,465],"mapped",[466]],[[466,466],"valid"],[[467,467],"mapped",[468]],[[468,468],"valid"],[[469,469],"mapped",[470]],[[470,470],"valid"],[[471,471],"mapped",[472]],[[472,472],"valid"],[[473,473],"mapped",[474]],[[474,474],"valid"],[[475,475],"mapped",[476]],[[476,477],"valid"],[[478,478],"mapped",[479]],[[479,479],"valid"],[[480,480],"mapped",[481]],[[481,481],"valid"],[[482,482],"mapped",[483]],[[483,483],"valid"],[[484,484],"mapped",[485]],[[485,485],"valid"],[[486,486],"mapped",[487]],[[487,487],"valid"],[[488,488],"mapped",[489]],[[489,489],"valid"],[[490,490],"mapped",[491]],[[491,491],"valid"],[[492,492],"mapped",[493]],[[493,493],"valid"],[[494,494],"mapped",[495]],[[495,496],"valid"],[[497,499],"mapped",[100,122]],[[500,500],"mapped",[501]],[[501,501],"valid"],[[502,502],"mapped",[405]],[[503,503],"mapped",[447]],[[504,504],"mapped",[505]],[[505,505],"valid"],[[506,506],"mapped",[507]],[[507,507],"valid"],[[508,508],"mapped",[509]],[[509,509],"valid"],[[510,510],"mapped",[511]],[[511,511],"valid"],[[512,512],"mapped",[513]],[[513,513],"valid"],[[514,514],"mapped",[515]],[[515,515],"valid"],[[516,516],"mapped",[517]],[[517,517],"valid"],[[518,518],"mapped",[519]],[[519,519],"valid"],[[520,520],"mapped",[521]],[[521,521],"valid"],[[522,522],"mapped",[523]],[[523,523],"valid"],[[524,524],"mapped",[525]],[[525,525],"valid"],[[526,526],"mapped",[527]],[[527,527],"valid"],[[528,528],"mapped",[529]],[[529,529],"valid"],[[530,530],"mapped",[531]],[[531,531],"valid"],[[532,532],"mapped",[533]],[[533,533],"valid"],[[534,534],"mapped",[535]],[[535,535],"valid"],[[536,536],"mapped",[537]],[[537,537],"valid"],[[538,538],"mapped",[539]],[[539,539],"valid"],[[540,540],"mapped",[541]],[[541,541],"valid"],[[542,542],"mapped",[543]],[[543,543],"valid"],[[544,544],"mapped",[414]],[[545,545],"valid"],[[546,546],"mapped",[547]],[[547,547],"valid"],[[548,548],"mapped",[549]],[[549,549],"valid"],[[550,550],"mapped",[551]],[[551,551],"valid"],[[552,552],"mapped",[553]],[[553,553],"valid"],[[554,554],"mapped",[555]],[[555,555],"valid"],[[556,556],"mapped",[557]],[[557,557],"valid"],[[558,558],"mapped",[559]],[[559,559],"valid"],[[560,560],"mapped",[561]],[[561,561],"valid"],[[562,562],"mapped",[563]],[[563,563],"valid"],[[564,566],"valid"],[[567,569],"valid"],[[570,570],"mapped",[11365]],[[571,571],"mapped",[572]],[[572,572],"valid"],[[573,573],"mapped",[410]],[[574,574],"mapped",[11366]],[[575,576],"valid"],[[577,577],"mapped",[578]],[[578,578],"valid"],[[579,579],"mapped",[384]],[[580,580],"mapped",[649]],[[581,581],"mapped",[652]],[[582,582],"mapped",[583]],[[583,583],"valid"],[[584,584],"mapped",[585]],[[585,585],"valid"],[[586,586],"mapped",[587]],[[587,587],"valid"],[[588,588],"mapped",[589]],[[589,589],"valid"],[[590,590],"mapped",[591]],[[591,591],"valid"],[[592,680],"valid"],[[681,685],"valid"],[[686,687],"valid"],[[688,688],"mapped",[104]],[[689,689],"mapped",[614]],[[690,690],"mapped",[106]],[[691,691],"mapped",[114]],[[692,692],"mapped",[633]],[[693,693],"mapped",[635]],[[694,694],"mapped",[641]],[[695,695],"mapped",[119]],[[696,696],"mapped",[121]],[[697,705],"valid"],[[706,709],"valid",[],"NV8"],[[710,721],"valid"],[[722,727],"valid",[],"NV8"],[[728,728],"disallowed_STD3_mapped",[32,774]],[[729,729],"disallowed_STD3_mapped",[32,775]],[[730,730],"disallowed_STD3_mapped",[32,778]],[[731,731],"disallowed_STD3_mapped",[32,808]],[[732,732],"disallowed_STD3_mapped",[32,771]],[[733,733],"disallowed_STD3_mapped",[32,779]],[[734,734],"valid",[],"NV8"],[[735,735],"valid",[],"NV8"],[[736,736],"mapped",[611]],[[737,737],"mapped",[108]],[[738,738],"mapped",[115]],[[739,739],"mapped",[120]],[[740,740],"mapped",[661]],[[741,745],"valid",[],"NV8"],[[746,747],"valid",[],"NV8"],[[748,748],"valid"],[[749,749],"valid",[],"NV8"],[[750,750],"valid"],[[751,767],"valid",[],"NV8"],[[768,831],"valid"],[[832,832],"mapped",[768]],[[833,833],"mapped",[769]],[[834,834],"valid"],[[835,835],"mapped",[787]],[[836,836],"mapped",[776,769]],[[837,837],"mapped",[953]],[[838,846],"valid"],[[847,847],"ignored"],[[848,855],"valid"],[[856,860],"valid"],[[861,863],"valid"],[[864,865],"valid"],[[866,866],"valid"],[[867,879],"valid"],[[880,880],"mapped",[881]],[[881,881],"valid"],[[882,882],"mapped",[883]],[[883,883],"valid"],[[884,884],"mapped",[697]],[[885,885],"valid"],[[886,886],"mapped",[887]],[[887,887],"valid"],[[888,889],"disallowed"],[[890,890],"disallowed_STD3_mapped",[32,953]],[[891,893],"valid"],[[894,894],"disallowed_STD3_mapped",[59]],[[895,895],"mapped",[1011]],[[896,899],"disallowed"],[[900,900],"disallowed_STD3_mapped",[32,769]],[[901,901],"disallowed_STD3_mapped",[32,776,769]],[[902,902],"mapped",[940]],[[903,903],"mapped",[183]],[[904,904],"mapped",[941]],[[905,905],"mapped",[942]],[[906,906],"mapped",[943]],[[907,907],"disallowed"],[[908,908],"mapped",[972]],[[909,909],"disallowed"],[[910,910],"mapped",[973]],[[911,911],"mapped",[974]],[[912,912],"valid"],[[913,913],"mapped",[945]],[[914,914],"mapped",[946]],[[915,915],"mapped",[947]],[[916,916],"mapped",[948]],[[917,917],"mapped",[949]],[[918,918],"mapped",[950]],[[919,919],"mapped",[951]],[[920,920],"mapped",[952]],[[921,921],"mapped",[953]],[[922,922],"mapped",[954]],[[923,923],"mapped",[955]],[[924,924],"mapped",[956]],[[925,925],"mapped",[957]],[[926,926],"mapped",[958]],[[927,927],"mapped",[959]],[[928,928],"mapped",[960]],[[929,929],"mapped",[961]],[[930,930],"disallowed"],[[931,931],"mapped",[963]],[[932,932],"mapped",[964]],[[933,933],"mapped",[965]],[[934,934],"mapped",[966]],[[935,935],"mapped",[967]],[[936,936],"mapped",[968]],[[937,937],"mapped",[969]],[[938,938],"mapped",[970]],[[939,939],"mapped",[971]],[[940,961],"valid"],[[962,962],"deviation",[963]],[[963,974],"valid"],[[975,975],"mapped",[983]],[[976,976],"mapped",[946]],[[977,977],"mapped",[952]],[[978,978],"mapped",[965]],[[979,979],"mapped",[973]],[[980,980],"mapped",[971]],[[981,981],"mapped",[966]],[[982,982],"mapped",[960]],[[983,983],"valid"],[[984,984],"mapped",[985]],[[985,985],"valid"],[[986,986],"mapped",[987]],[[987,987],"valid"],[[988,988],"mapped",[989]],[[989,989],"valid"],[[990,990],"mapped",[991]],[[991,991],"valid"],[[992,992],"mapped",[993]],[[993,993],"valid"],[[994,994],"mapped",[995]],[[995,995],"valid"],[[996,996],"mapped",[997]],[[997,997],"valid"],[[998,998],"mapped",[999]],[[999,999],"valid"],[[1e3,1e3],"mapped",[1001]],[[1001,1001],"valid"],[[1002,1002],"mapped",[1003]],[[1003,1003],"valid"],[[1004,1004],"mapped",[1005]],[[1005,1005],"valid"],[[1006,1006],"mapped",[1007]],[[1007,1007],"valid"],[[1008,1008],"mapped",[954]],[[1009,1009],"mapped",[961]],[[1010,1010],"mapped",[963]],[[1011,1011],"valid"],[[1012,1012],"mapped",[952]],[[1013,1013],"mapped",[949]],[[1014,1014],"valid",[],"NV8"],[[1015,1015],"mapped",[1016]],[[1016,1016],"valid"],[[1017,1017],"mapped",[963]],[[1018,1018],"mapped",[1019]],[[1019,1019],"valid"],[[1020,1020],"valid"],[[1021,1021],"mapped",[891]],[[1022,1022],"mapped",[892]],[[1023,1023],"mapped",[893]],[[1024,1024],"mapped",[1104]],[[1025,1025],"mapped",[1105]],[[1026,1026],"mapped",[1106]],[[1027,1027],"mapped",[1107]],[[1028,1028],"mapped",[1108]],[[1029,1029],"mapped",[1109]],[[1030,1030],"mapped",[1110]],[[1031,1031],"mapped",[1111]],[[1032,1032],"mapped",[1112]],[[1033,1033],"mapped",[1113]],[[1034,1034],"mapped",[1114]],[[1035,1035],"mapped",[1115]],[[1036,1036],"mapped",[1116]],[[1037,1037],"mapped",[1117]],[[1038,1038],"mapped",[1118]],[[1039,1039],"mapped",[1119]],[[1040,1040],"mapped",[1072]],[[1041,1041],"mapped",[1073]],[[1042,1042],"mapped",[1074]],[[1043,1043],"mapped",[1075]],[[1044,1044],"mapped",[1076]],[[1045,1045],"mapped",[1077]],[[1046,1046],"mapped",[1078]],[[1047,1047],"mapped",[1079]],[[1048,1048],"mapped",[1080]],[[1049,1049],"mapped",[1081]],[[1050,1050],"mapped",[1082]],[[1051,1051],"mapped",[1083]],[[1052,1052],"mapped",[1084]],[[1053,1053],"mapped",[1085]],[[1054,1054],"mapped",[1086]],[[1055,1055],"mapped",[1087]],[[1056,1056],"mapped",[1088]],[[1057,1057],"mapped",[1089]],[[1058,1058],"mapped",[1090]],[[1059,1059],"mapped",[1091]],[[1060,1060],"mapped",[1092]],[[1061,1061],"mapped",[1093]],[[1062,1062],"mapped",[1094]],[[1063,1063],"mapped",[1095]],[[1064,1064],"mapped",[1096]],[[1065,1065],"mapped",[1097]],[[1066,1066],"mapped",[1098]],[[1067,1067],"mapped",[1099]],[[1068,1068],"mapped",[1100]],[[1069,1069],"mapped",[1101]],[[1070,1070],"mapped",[1102]],[[1071,1071],"mapped",[1103]],[[1072,1103],"valid"],[[1104,1104],"valid"],[[1105,1116],"valid"],[[1117,1117],"valid"],[[1118,1119],"valid"],[[1120,1120],"mapped",[1121]],[[1121,1121],"valid"],[[1122,1122],"mapped",[1123]],[[1123,1123],"valid"],[[1124,1124],"mapped",[1125]],[[1125,1125],"valid"],[[1126,1126],"mapped",[1127]],[[1127,1127],"valid"],[[1128,1128],"mapped",[1129]],[[1129,1129],"valid"],[[1130,1130],"mapped",[1131]],[[1131,1131],"valid"],[[1132,1132],"mapped",[1133]],[[1133,1133],"valid"],[[1134,1134],"mapped",[1135]],[[1135,1135],"valid"],[[1136,1136],"mapped",[1137]],[[1137,1137],"valid"],[[1138,1138],"mapped",[1139]],[[1139,1139],"valid"],[[1140,1140],"mapped",[1141]],[[1141,1141],"valid"],[[1142,1142],"mapped",[1143]],[[1143,1143],"valid"],[[1144,1144],"mapped",[1145]],[[1145,1145],"valid"],[[1146,1146],"mapped",[1147]],[[1147,1147],"valid"],[[1148,1148],"mapped",[1149]],[[1149,1149],"valid"],[[1150,1150],"mapped",[1151]],[[1151,1151],"valid"],[[1152,1152],"mapped",[1153]],[[1153,1153],"valid"],[[1154,1154],"valid",[],"NV8"],[[1155,1158],"valid"],[[1159,1159],"valid"],[[1160,1161],"valid",[],"NV8"],[[1162,1162],"mapped",[1163]],[[1163,1163],"valid"],[[1164,1164],"mapped",[1165]],[[1165,1165],"valid"],[[1166,1166],"mapped",[1167]],[[1167,1167],"valid"],[[1168,1168],"mapped",[1169]],[[1169,1169],"valid"],[[1170,1170],"mapped",[1171]],[[1171,1171],"valid"],[[1172,1172],"mapped",[1173]],[[1173,1173],"valid"],[[1174,1174],"mapped",[1175]],[[1175,1175],"valid"],[[1176,1176],"mapped",[1177]],[[1177,1177],"valid"],[[1178,1178],"mapped",[1179]],[[1179,1179],"valid"],[[1180,1180],"mapped",[1181]],[[1181,1181],"valid"],[[1182,1182],"mapped",[1183]],[[1183,1183],"valid"],[[1184,1184],"mapped",[1185]],[[1185,1185],"valid"],[[1186,1186],"mapped",[1187]],[[1187,1187],"valid"],[[1188,1188],"mapped",[1189]],[[1189,1189],"valid"],[[1190,1190],"mapped",[1191]],[[1191,1191],"valid"],[[1192,1192],"mapped",[1193]],[[1193,1193],"valid"],[[1194,1194],"mapped",[1195]],[[1195,1195],"valid"],[[1196,1196],"mapped",[1197]],[[1197,1197],"valid"],[[1198,1198],"mapped",[1199]],[[1199,1199],"valid"],[[1200,1200],"mapped",[1201]],[[1201,1201],"valid"],[[1202,1202],"mapped",[1203]],[[1203,1203],"valid"],[[1204,1204],"mapped",[1205]],[[1205,1205],"valid"],[[1206,1206],"mapped",[1207]],[[1207,1207],"valid"],[[1208,1208],"mapped",[1209]],[[1209,1209],"valid"],[[1210,1210],"mapped",[1211]],[[1211,1211],"valid"],[[1212,1212],"mapped",[1213]],[[1213,1213],"valid"],[[1214,1214],"mapped",[1215]],[[1215,1215],"valid"],[[1216,1216],"disallowed"],[[1217,1217],"mapped",[1218]],[[1218,1218],"valid"],[[1219,1219],"mapped",[1220]],[[1220,1220],"valid"],[[1221,1221],"mapped",[1222]],[[1222,1222],"valid"],[[1223,1223],"mapped",[1224]],[[1224,1224],"valid"],[[1225,1225],"mapped",[1226]],[[1226,1226],"valid"],[[1227,1227],"mapped",[1228]],[[1228,1228],"valid"],[[1229,1229],"mapped",[1230]],[[1230,1230],"valid"],[[1231,1231],"valid"],[[1232,1232],"mapped",[1233]],[[1233,1233],"valid"],[[1234,1234],"mapped",[1235]],[[1235,1235],"valid"],[[1236,1236],"mapped",[1237]],[[1237,1237],"valid"],[[1238,1238],"mapped",[1239]],[[1239,1239],"valid"],[[1240,1240],"mapped",[1241]],[[1241,1241],"valid"],[[1242,1242],"mapped",[1243]],[[1243,1243],"valid"],[[1244,1244],"mapped",[1245]],[[1245,1245],"valid"],[[1246,1246],"mapped",[1247]],[[1247,1247],"valid"],[[1248,1248],"mapped",[1249]],[[1249,1249],"valid"],[[1250,1250],"mapped",[1251]],[[1251,1251],"valid"],[[1252,1252],"mapped",[1253]],[[1253,1253],"valid"],[[1254,1254],"mapped",[1255]],[[1255,1255],"valid"],[[1256,1256],"mapped",[1257]],[[1257,1257],"valid"],[[1258,1258],"mapped",[1259]],[[1259,1259],"valid"],[[1260,1260],"mapped",[1261]],[[1261,1261],"valid"],[[1262,1262],"mapped",[1263]],[[1263,1263],"valid"],[[1264,1264],"mapped",[1265]],[[1265,1265],"valid"],[[1266,1266],"mapped",[1267]],[[1267,1267],"valid"],[[1268,1268],"mapped",[1269]],[[1269,1269],"valid"],[[1270,1270],"mapped",[1271]],[[1271,1271],"valid"],[[1272,1272],"mapped",[1273]],[[1273,1273],"valid"],[[1274,1274],"mapped",[1275]],[[1275,1275],"valid"],[[1276,1276],"mapped",[1277]],[[1277,1277],"valid"],[[1278,1278],"mapped",[1279]],[[1279,1279],"valid"],[[1280,1280],"mapped",[1281]],[[1281,1281],"valid"],[[1282,1282],"mapped",[1283]],[[1283,1283],"valid"],[[1284,1284],"mapped",[1285]],[[1285,1285],"valid"],[[1286,1286],"mapped",[1287]],[[1287,1287],"valid"],[[1288,1288],"mapped",[1289]],[[1289,1289],"valid"],[[1290,1290],"mapped",[1291]],[[1291,1291],"valid"],[[1292,1292],"mapped",[1293]],[[1293,1293],"valid"],[[1294,1294],"mapped",[1295]],[[1295,1295],"valid"],[[1296,1296],"mapped",[1297]],[[1297,1297],"valid"],[[1298,1298],"mapped",[1299]],[[1299,1299],"valid"],[[1300,1300],"mapped",[1301]],[[1301,1301],"valid"],[[1302,1302],"mapped",[1303]],[[1303,1303],"valid"],[[1304,1304],"mapped",[1305]],[[1305,1305],"valid"],[[1306,1306],"mapped",[1307]],[[1307,1307],"valid"],[[1308,1308],"mapped",[1309]],[[1309,1309],"valid"],[[1310,1310],"mapped",[1311]],[[1311,1311],"valid"],[[1312,1312],"mapped",[1313]],[[1313,1313],"valid"],[[1314,1314],"mapped",[1315]],[[1315,1315],"valid"],[[1316,1316],"mapped",[1317]],[[1317,1317],"valid"],[[1318,1318],"mapped",[1319]],[[1319,1319],"valid"],[[1320,1320],"mapped",[1321]],[[1321,1321],"valid"],[[1322,1322],"mapped",[1323]],[[1323,1323],"valid"],[[1324,1324],"mapped",[1325]],[[1325,1325],"valid"],[[1326,1326],"mapped",[1327]],[[1327,1327],"valid"],[[1328,1328],"disallowed"],[[1329,1329],"mapped",[1377]],[[1330,1330],"mapped",[1378]],[[1331,1331],"mapped",[1379]],[[1332,1332],"mapped",[1380]],[[1333,1333],"mapped",[1381]],[[1334,1334],"mapped",[1382]],[[1335,1335],"mapped",[1383]],[[1336,1336],"mapped",[1384]],[[1337,1337],"mapped",[1385]],[[1338,1338],"mapped",[1386]],[[1339,1339],"mapped",[1387]],[[1340,1340],"mapped",[1388]],[[1341,1341],"mapped",[1389]],[[1342,1342],"mapped",[1390]],[[1343,1343],"mapped",[1391]],[[1344,1344],"mapped",[1392]],[[1345,1345],"mapped",[1393]],[[1346,1346],"mapped",[1394]],[[1347,1347],"mapped",[1395]],[[1348,1348],"mapped",[1396]],[[1349,1349],"mapped",[1397]],[[1350,1350],"mapped",[1398]],[[1351,1351],"mapped",[1399]],[[1352,1352],"mapped",[1400]],[[1353,1353],"mapped",[1401]],[[1354,1354],"mapped",[1402]],[[1355,1355],"mapped",[1403]],[[1356,1356],"mapped",[1404]],[[1357,1357],"mapped",[1405]],[[1358,1358],"mapped",[1406]],[[1359,1359],"mapped",[1407]],[[1360,1360],"mapped",[1408]],[[1361,1361],"mapped",[1409]],[[1362,1362],"mapped",[1410]],[[1363,1363],"mapped",[1411]],[[1364,1364],"mapped",[1412]],[[1365,1365],"mapped",[1413]],[[1366,1366],"mapped",[1414]],[[1367,1368],"disallowed"],[[1369,1369],"valid"],[[1370,1375],"valid",[],"NV8"],[[1376,1376],"disallowed"],[[1377,1414],"valid"],[[1415,1415],"mapped",[1381,1410]],[[1416,1416],"disallowed"],[[1417,1417],"valid",[],"NV8"],[[1418,1418],"valid",[],"NV8"],[[1419,1420],"disallowed"],[[1421,1422],"valid",[],"NV8"],[[1423,1423],"valid",[],"NV8"],[[1424,1424],"disallowed"],[[1425,1441],"valid"],[[1442,1442],"valid"],[[1443,1455],"valid"],[[1456,1465],"valid"],[[1466,1466],"valid"],[[1467,1469],"valid"],[[1470,1470],"valid",[],"NV8"],[[1471,1471],"valid"],[[1472,1472],"valid",[],"NV8"],[[1473,1474],"valid"],[[1475,1475],"valid",[],"NV8"],[[1476,1476],"valid"],[[1477,1477],"valid"],[[1478,1478],"valid",[],"NV8"],[[1479,1479],"valid"],[[1480,1487],"disallowed"],[[1488,1514],"valid"],[[1515,1519],"disallowed"],[[1520,1524],"valid"],[[1525,1535],"disallowed"],[[1536,1539],"disallowed"],[[1540,1540],"disallowed"],[[1541,1541],"disallowed"],[[1542,1546],"valid",[],"NV8"],[[1547,1547],"valid",[],"NV8"],[[1548,1548],"valid",[],"NV8"],[[1549,1551],"valid",[],"NV8"],[[1552,1557],"valid"],[[1558,1562],"valid"],[[1563,1563],"valid",[],"NV8"],[[1564,1564],"disallowed"],[[1565,1565],"disallowed"],[[1566,1566],"valid",[],"NV8"],[[1567,1567],"valid",[],"NV8"],[[1568,1568],"valid"],[[1569,1594],"valid"],[[1595,1599],"valid"],[[1600,1600],"valid",[],"NV8"],[[1601,1618],"valid"],[[1619,1621],"valid"],[[1622,1624],"valid"],[[1625,1630],"valid"],[[1631,1631],"valid"],[[1632,1641],"valid"],[[1642,1645],"valid",[],"NV8"],[[1646,1647],"valid"],[[1648,1652],"valid"],[[1653,1653],"mapped",[1575,1652]],[[1654,1654],"mapped",[1608,1652]],[[1655,1655],"mapped",[1735,1652]],[[1656,1656],"mapped",[1610,1652]],[[1657,1719],"valid"],[[1720,1721],"valid"],[[1722,1726],"valid"],[[1727,1727],"valid"],[[1728,1742],"valid"],[[1743,1743],"valid"],[[1744,1747],"valid"],[[1748,1748],"valid",[],"NV8"],[[1749,1756],"valid"],[[1757,1757],"disallowed"],[[1758,1758],"valid",[],"NV8"],[[1759,1768],"valid"],[[1769,1769],"valid",[],"NV8"],[[1770,1773],"valid"],[[1774,1775],"valid"],[[1776,1785],"valid"],[[1786,1790],"valid"],[[1791,1791],"valid"],[[1792,1805],"valid",[],"NV8"],[[1806,1806],"disallowed"],[[1807,1807],"disallowed"],[[1808,1836],"valid"],[[1837,1839],"valid"],[[1840,1866],"valid"],[[1867,1868],"disallowed"],[[1869,1871],"valid"],[[1872,1901],"valid"],[[1902,1919],"valid"],[[1920,1968],"valid"],[[1969,1969],"valid"],[[1970,1983],"disallowed"],[[1984,2037],"valid"],[[2038,2042],"valid",[],"NV8"],[[2043,2047],"disallowed"],[[2048,2093],"valid"],[[2094,2095],"disallowed"],[[2096,2110],"valid",[],"NV8"],[[2111,2111],"disallowed"],[[2112,2139],"valid"],[[2140,2141],"disallowed"],[[2142,2142],"valid",[],"NV8"],[[2143,2207],"disallowed"],[[2208,2208],"valid"],[[2209,2209],"valid"],[[2210,2220],"valid"],[[2221,2226],"valid"],[[2227,2228],"valid"],[[2229,2274],"disallowed"],[[2275,2275],"valid"],[[2276,2302],"valid"],[[2303,2303],"valid"],[[2304,2304],"valid"],[[2305,2307],"valid"],[[2308,2308],"valid"],[[2309,2361],"valid"],[[2362,2363],"valid"],[[2364,2381],"valid"],[[2382,2382],"valid"],[[2383,2383],"valid"],[[2384,2388],"valid"],[[2389,2389],"valid"],[[2390,2391],"valid"],[[2392,2392],"mapped",[2325,2364]],[[2393,2393],"mapped",[2326,2364]],[[2394,2394],"mapped",[2327,2364]],[[2395,2395],"mapped",[2332,2364]],[[2396,2396],"mapped",[2337,2364]],[[2397,2397],"mapped",[2338,2364]],[[2398,2398],"mapped",[2347,2364]],[[2399,2399],"mapped",[2351,2364]],[[2400,2403],"valid"],[[2404,2405],"valid",[],"NV8"],[[2406,2415],"valid"],[[2416,2416],"valid",[],"NV8"],[[2417,2418],"valid"],[[2419,2423],"valid"],[[2424,2424],"valid"],[[2425,2426],"valid"],[[2427,2428],"valid"],[[2429,2429],"valid"],[[2430,2431],"valid"],[[2432,2432],"valid"],[[2433,2435],"valid"],[[2436,2436],"disallowed"],[[2437,2444],"valid"],[[2445,2446],"disallowed"],[[2447,2448],"valid"],[[2449,2450],"disallowed"],[[2451,2472],"valid"],[[2473,2473],"disallowed"],[[2474,2480],"valid"],[[2481,2481],"disallowed"],[[2482,2482],"valid"],[[2483,2485],"disallowed"],[[2486,2489],"valid"],[[2490,2491],"disallowed"],[[2492,2492],"valid"],[[2493,2493],"valid"],[[2494,2500],"valid"],[[2501,2502],"disallowed"],[[2503,2504],"valid"],[[2505,2506],"disallowed"],[[2507,2509],"valid"],[[2510,2510],"valid"],[[2511,2518],"disallowed"],[[2519,2519],"valid"],[[2520,2523],"disallowed"],[[2524,2524],"mapped",[2465,2492]],[[2525,2525],"mapped",[2466,2492]],[[2526,2526],"disallowed"],[[2527,2527],"mapped",[2479,2492]],[[2528,2531],"valid"],[[2532,2533],"disallowed"],[[2534,2545],"valid"],[[2546,2554],"valid",[],"NV8"],[[2555,2555],"valid",[],"NV8"],[[2556,2560],"disallowed"],[[2561,2561],"valid"],[[2562,2562],"valid"],[[2563,2563],"valid"],[[2564,2564],"disallowed"],[[2565,2570],"valid"],[[2571,2574],"disallowed"],[[2575,2576],"valid"],[[2577,2578],"disallowed"],[[2579,2600],"valid"],[[2601,2601],"disallowed"],[[2602,2608],"valid"],[[2609,2609],"disallowed"],[[2610,2610],"valid"],[[2611,2611],"mapped",[2610,2620]],[[2612,2612],"disallowed"],[[2613,2613],"valid"],[[2614,2614],"mapped",[2616,2620]],[[2615,2615],"disallowed"],[[2616,2617],"valid"],[[2618,2619],"disallowed"],[[2620,2620],"valid"],[[2621,2621],"disallowed"],[[2622,2626],"valid"],[[2627,2630],"disallowed"],[[2631,2632],"valid"],[[2633,2634],"disallowed"],[[2635,2637],"valid"],[[2638,2640],"disallowed"],[[2641,2641],"valid"],[[2642,2648],"disallowed"],[[2649,2649],"mapped",[2582,2620]],[[2650,2650],"mapped",[2583,2620]],[[2651,2651],"mapped",[2588,2620]],[[2652,2652],"valid"],[[2653,2653],"disallowed"],[[2654,2654],"mapped",[2603,2620]],[[2655,2661],"disallowed"],[[2662,2676],"valid"],[[2677,2677],"valid"],[[2678,2688],"disallowed"],[[2689,2691],"valid"],[[2692,2692],"disallowed"],[[2693,2699],"valid"],[[2700,2700],"valid"],[[2701,2701],"valid"],[[2702,2702],"disallowed"],[[2703,2705],"valid"],[[2706,2706],"disallowed"],[[2707,2728],"valid"],[[2729,2729],"disallowed"],[[2730,2736],"valid"],[[2737,2737],"disallowed"],[[2738,2739],"valid"],[[2740,2740],"disallowed"],[[2741,2745],"valid"],[[2746,2747],"disallowed"],[[2748,2757],"valid"],[[2758,2758],"disallowed"],[[2759,2761],"valid"],[[2762,2762],"disallowed"],[[2763,2765],"valid"],[[2766,2767],"disallowed"],[[2768,2768],"valid"],[[2769,2783],"disallowed"],[[2784,2784],"valid"],[[2785,2787],"valid"],[[2788,2789],"disallowed"],[[2790,2799],"valid"],[[2800,2800],"valid",[],"NV8"],[[2801,2801],"valid",[],"NV8"],[[2802,2808],"disallowed"],[[2809,2809],"valid"],[[2810,2816],"disallowed"],[[2817,2819],"valid"],[[2820,2820],"disallowed"],[[2821,2828],"valid"],[[2829,2830],"disallowed"],[[2831,2832],"valid"],[[2833,2834],"disallowed"],[[2835,2856],"valid"],[[2857,2857],"disallowed"],[[2858,2864],"valid"],[[2865,2865],"disallowed"],[[2866,2867],"valid"],[[2868,2868],"disallowed"],[[2869,2869],"valid"],[[2870,2873],"valid"],[[2874,2875],"disallowed"],[[2876,2883],"valid"],[[2884,2884],"valid"],[[2885,2886],"disallowed"],[[2887,2888],"valid"],[[2889,2890],"disallowed"],[[2891,2893],"valid"],[[2894,2901],"disallowed"],[[2902,2903],"valid"],[[2904,2907],"disallowed"],[[2908,2908],"mapped",[2849,2876]],[[2909,2909],"mapped",[2850,2876]],[[2910,2910],"disallowed"],[[2911,2913],"valid"],[[2914,2915],"valid"],[[2916,2917],"disallowed"],[[2918,2927],"valid"],[[2928,2928],"valid",[],"NV8"],[[2929,2929],"valid"],[[2930,2935],"valid",[],"NV8"],[[2936,2945],"disallowed"],[[2946,2947],"valid"],[[2948,2948],"disallowed"],[[2949,2954],"valid"],[[2955,2957],"disallowed"],[[2958,2960],"valid"],[[2961,2961],"disallowed"],[[2962,2965],"valid"],[[2966,2968],"disallowed"],[[2969,2970],"valid"],[[2971,2971],"disallowed"],[[2972,2972],"valid"],[[2973,2973],"disallowed"],[[2974,2975],"valid"],[[2976,2978],"disallowed"],[[2979,2980],"valid"],[[2981,2983],"disallowed"],[[2984,2986],"valid"],[[2987,2989],"disallowed"],[[2990,2997],"valid"],[[2998,2998],"valid"],[[2999,3001],"valid"],[[3002,3005],"disallowed"],[[3006,3010],"valid"],[[3011,3013],"disallowed"],[[3014,3016],"valid"],[[3017,3017],"disallowed"],[[3018,3021],"valid"],[[3022,3023],"disallowed"],[[3024,3024],"valid"],[[3025,3030],"disallowed"],[[3031,3031],"valid"],[[3032,3045],"disallowed"],[[3046,3046],"valid"],[[3047,3055],"valid"],[[3056,3058],"valid",[],"NV8"],[[3059,3066],"valid",[],"NV8"],[[3067,3071],"disallowed"],[[3072,3072],"valid"],[[3073,3075],"valid"],[[3076,3076],"disallowed"],[[3077,3084],"valid"],[[3085,3085],"disallowed"],[[3086,3088],"valid"],[[3089,3089],"disallowed"],[[3090,3112],"valid"],[[3113,3113],"disallowed"],[[3114,3123],"valid"],[[3124,3124],"valid"],[[3125,3129],"valid"],[[3130,3132],"disallowed"],[[3133,3133],"valid"],[[3134,3140],"valid"],[[3141,3141],"disallowed"],[[3142,3144],"valid"],[[3145,3145],"disallowed"],[[3146,3149],"valid"],[[3150,3156],"disallowed"],[[3157,3158],"valid"],[[3159,3159],"disallowed"],[[3160,3161],"valid"],[[3162,3162],"valid"],[[3163,3167],"disallowed"],[[3168,3169],"valid"],[[3170,3171],"valid"],[[3172,3173],"disallowed"],[[3174,3183],"valid"],[[3184,3191],"disallowed"],[[3192,3199],"valid",[],"NV8"],[[3200,3200],"disallowed"],[[3201,3201],"valid"],[[3202,3203],"valid"],[[3204,3204],"disallowed"],[[3205,3212],"valid"],[[3213,3213],"disallowed"],[[3214,3216],"valid"],[[3217,3217],"disallowed"],[[3218,3240],"valid"],[[3241,3241],"disallowed"],[[3242,3251],"valid"],[[3252,3252],"disallowed"],[[3253,3257],"valid"],[[3258,3259],"disallowed"],[[3260,3261],"valid"],[[3262,3268],"valid"],[[3269,3269],"disallowed"],[[3270,3272],"valid"],[[3273,3273],"disallowed"],[[3274,3277],"valid"],[[3278,3284],"disallowed"],[[3285,3286],"valid"],[[3287,3293],"disallowed"],[[3294,3294],"valid"],[[3295,3295],"disallowed"],[[3296,3297],"valid"],[[3298,3299],"valid"],[[3300,3301],"disallowed"],[[3302,3311],"valid"],[[3312,3312],"disallowed"],[[3313,3314],"valid"],[[3315,3328],"disallowed"],[[3329,3329],"valid"],[[3330,3331],"valid"],[[3332,3332],"disallowed"],[[3333,3340],"valid"],[[3341,3341],"disallowed"],[[3342,3344],"valid"],[[3345,3345],"disallowed"],[[3346,3368],"valid"],[[3369,3369],"valid"],[[3370,3385],"valid"],[[3386,3386],"valid"],[[3387,3388],"disallowed"],[[3389,3389],"valid"],[[3390,3395],"valid"],[[3396,3396],"valid"],[[3397,3397],"disallowed"],[[3398,3400],"valid"],[[3401,3401],"disallowed"],[[3402,3405],"valid"],[[3406,3406],"valid"],[[3407,3414],"disallowed"],[[3415,3415],"valid"],[[3416,3422],"disallowed"],[[3423,3423],"valid"],[[3424,3425],"valid"],[[3426,3427],"valid"],[[3428,3429],"disallowed"],[[3430,3439],"valid"],[[3440,3445],"valid",[],"NV8"],[[3446,3448],"disallowed"],[[3449,3449],"valid",[],"NV8"],[[3450,3455],"valid"],[[3456,3457],"disallowed"],[[3458,3459],"valid"],[[3460,3460],"disallowed"],[[3461,3478],"valid"],[[3479,3481],"disallowed"],[[3482,3505],"valid"],[[3506,3506],"disallowed"],[[3507,3515],"valid"],[[3516,3516],"disallowed"],[[3517,3517],"valid"],[[3518,3519],"disallowed"],[[3520,3526],"valid"],[[3527,3529],"disallowed"],[[3530,3530],"valid"],[[3531,3534],"disallowed"],[[3535,3540],"valid"],[[3541,3541],"disallowed"],[[3542,3542],"valid"],[[3543,3543],"disallowed"],[[3544,3551],"valid"],[[3552,3557],"disallowed"],[[3558,3567],"valid"],[[3568,3569],"disallowed"],[[3570,3571],"valid"],[[3572,3572],"valid",[],"NV8"],[[3573,3584],"disallowed"],[[3585,3634],"valid"],[[3635,3635],"mapped",[3661,3634]],[[3636,3642],"valid"],[[3643,3646],"disallowed"],[[3647,3647],"valid",[],"NV8"],[[3648,3662],"valid"],[[3663,3663],"valid",[],"NV8"],[[3664,3673],"valid"],[[3674,3675],"valid",[],"NV8"],[[3676,3712],"disallowed"],[[3713,3714],"valid"],[[3715,3715],"disallowed"],[[3716,3716],"valid"],[[3717,3718],"disallowed"],[[3719,3720],"valid"],[[3721,3721],"disallowed"],[[3722,3722],"valid"],[[3723,3724],"disallowed"],[[3725,3725],"valid"],[[3726,3731],"disallowed"],[[3732,3735],"valid"],[[3736,3736],"disallowed"],[[3737,3743],"valid"],[[3744,3744],"disallowed"],[[3745,3747],"valid"],[[3748,3748],"disallowed"],[[3749,3749],"valid"],[[3750,3750],"disallowed"],[[3751,3751],"valid"],[[3752,3753],"disallowed"],[[3754,3755],"valid"],[[3756,3756],"disallowed"],[[3757,3762],"valid"],[[3763,3763],"mapped",[3789,3762]],[[3764,3769],"valid"],[[3770,3770],"disallowed"],[[3771,3773],"valid"],[[3774,3775],"disallowed"],[[3776,3780],"valid"],[[3781,3781],"disallowed"],[[3782,3782],"valid"],[[3783,3783],"disallowed"],[[3784,3789],"valid"],[[3790,3791],"disallowed"],[[3792,3801],"valid"],[[3802,3803],"disallowed"],[[3804,3804],"mapped",[3755,3737]],[[3805,3805],"mapped",[3755,3745]],[[3806,3807],"valid"],[[3808,3839],"disallowed"],[[3840,3840],"valid"],[[3841,3850],"valid",[],"NV8"],[[3851,3851],"valid"],[[3852,3852],"mapped",[3851]],[[3853,3863],"valid",[],"NV8"],[[3864,3865],"valid"],[[3866,3871],"valid",[],"NV8"],[[3872,3881],"valid"],[[3882,3892],"valid",[],"NV8"],[[3893,3893],"valid"],[[3894,3894],"valid",[],"NV8"],[[3895,3895],"valid"],[[3896,3896],"valid",[],"NV8"],[[3897,3897],"valid"],[[3898,3901],"valid",[],"NV8"],[[3902,3906],"valid"],[[3907,3907],"mapped",[3906,4023]],[[3908,3911],"valid"],[[3912,3912],"disallowed"],[[3913,3916],"valid"],[[3917,3917],"mapped",[3916,4023]],[[3918,3921],"valid"],[[3922,3922],"mapped",[3921,4023]],[[3923,3926],"valid"],[[3927,3927],"mapped",[3926,4023]],[[3928,3931],"valid"],[[3932,3932],"mapped",[3931,4023]],[[3933,3944],"valid"],[[3945,3945],"mapped",[3904,4021]],[[3946,3946],"valid"],[[3947,3948],"valid"],[[3949,3952],"disallowed"],[[3953,3954],"valid"],[[3955,3955],"mapped",[3953,3954]],[[3956,3956],"valid"],[[3957,3957],"mapped",[3953,3956]],[[3958,3958],"mapped",[4018,3968]],[[3959,3959],"mapped",[4018,3953,3968]],[[3960,3960],"mapped",[4019,3968]],[[3961,3961],"mapped",[4019,3953,3968]],[[3962,3968],"valid"],[[3969,3969],"mapped",[3953,3968]],[[3970,3972],"valid"],[[3973,3973],"valid",[],"NV8"],[[3974,3979],"valid"],[[3980,3983],"valid"],[[3984,3986],"valid"],[[3987,3987],"mapped",[3986,4023]],[[3988,3989],"valid"],[[3990,3990],"valid"],[[3991,3991],"valid"],[[3992,3992],"disallowed"],[[3993,3996],"valid"],[[3997,3997],"mapped",[3996,4023]],[[3998,4001],"valid"],[[4002,4002],"mapped",[4001,4023]],[[4003,4006],"valid"],[[4007,4007],"mapped",[4006,4023]],[[4008,4011],"valid"],[[4012,4012],"mapped",[4011,4023]],[[4013,4013],"valid"],[[4014,4016],"valid"],[[4017,4023],"valid"],[[4024,4024],"valid"],[[4025,4025],"mapped",[3984,4021]],[[4026,4028],"valid"],[[4029,4029],"disallowed"],[[4030,4037],"valid",[],"NV8"],[[4038,4038],"valid"],[[4039,4044],"valid",[],"NV8"],[[4045,4045],"disallowed"],[[4046,4046],"valid",[],"NV8"],[[4047,4047],"valid",[],"NV8"],[[4048,4049],"valid",[],"NV8"],[[4050,4052],"valid",[],"NV8"],[[4053,4056],"valid",[],"NV8"],[[4057,4058],"valid",[],"NV8"],[[4059,4095],"disallowed"],[[4096,4129],"valid"],[[4130,4130],"valid"],[[4131,4135],"valid"],[[4136,4136],"valid"],[[4137,4138],"valid"],[[4139,4139],"valid"],[[4140,4146],"valid"],[[4147,4149],"valid"],[[4150,4153],"valid"],[[4154,4159],"valid"],[[4160,4169],"valid"],[[4170,4175],"valid",[],"NV8"],[[4176,4185],"valid"],[[4186,4249],"valid"],[[4250,4253],"valid"],[[4254,4255],"valid",[],"NV8"],[[4256,4293],"disallowed"],[[4294,4294],"disallowed"],[[4295,4295],"mapped",[11559]],[[4296,4300],"disallowed"],[[4301,4301],"mapped",[11565]],[[4302,4303],"disallowed"],[[4304,4342],"valid"],[[4343,4344],"valid"],[[4345,4346],"valid"],[[4347,4347],"valid",[],"NV8"],[[4348,4348],"mapped",[4316]],[[4349,4351],"valid"],[[4352,4441],"valid",[],"NV8"],[[4442,4446],"valid",[],"NV8"],[[4447,4448],"disallowed"],[[4449,4514],"valid",[],"NV8"],[[4515,4519],"valid",[],"NV8"],[[4520,4601],"valid",[],"NV8"],[[4602,4607],"valid",[],"NV8"],[[4608,4614],"valid"],[[4615,4615],"valid"],[[4616,4678],"valid"],[[4679,4679],"valid"],[[4680,4680],"valid"],[[4681,4681],"disallowed"],[[4682,4685],"valid"],[[4686,4687],"disallowed"],[[4688,4694],"valid"],[[4695,4695],"disallowed"],[[4696,4696],"valid"],[[4697,4697],"disallowed"],[[4698,4701],"valid"],[[4702,4703],"disallowed"],[[4704,4742],"valid"],[[4743,4743],"valid"],[[4744,4744],"valid"],[[4745,4745],"disallowed"],[[4746,4749],"valid"],[[4750,4751],"disallowed"],[[4752,4782],"valid"],[[4783,4783],"valid"],[[4784,4784],"valid"],[[4785,4785],"disallowed"],[[4786,4789],"valid"],[[4790,4791],"disallowed"],[[4792,4798],"valid"],[[4799,4799],"disallowed"],[[4800,4800],"valid"],[[4801,4801],"disallowed"],[[4802,4805],"valid"],[[4806,4807],"disallowed"],[[4808,4814],"valid"],[[4815,4815],"valid"],[[4816,4822],"valid"],[[4823,4823],"disallowed"],[[4824,4846],"valid"],[[4847,4847],"valid"],[[4848,4878],"valid"],[[4879,4879],"valid"],[[4880,4880],"valid"],[[4881,4881],"disallowed"],[[4882,4885],"valid"],[[4886,4887],"disallowed"],[[4888,4894],"valid"],[[4895,4895],"valid"],[[4896,4934],"valid"],[[4935,4935],"valid"],[[4936,4954],"valid"],[[4955,4956],"disallowed"],[[4957,4958],"valid"],[[4959,4959],"valid"],[[4960,4960],"valid",[],"NV8"],[[4961,4988],"valid",[],"NV8"],[[4989,4991],"disallowed"],[[4992,5007],"valid"],[[5008,5017],"valid",[],"NV8"],[[5018,5023],"disallowed"],[[5024,5108],"valid"],[[5109,5109],"valid"],[[5110,5111],"disallowed"],[[5112,5112],"mapped",[5104]],[[5113,5113],"mapped",[5105]],[[5114,5114],"mapped",[5106]],[[5115,5115],"mapped",[5107]],[[5116,5116],"mapped",[5108]],[[5117,5117],"mapped",[5109]],[[5118,5119],"disallowed"],[[5120,5120],"valid",[],"NV8"],[[5121,5740],"valid"],[[5741,5742],"valid",[],"NV8"],[[5743,5750],"valid"],[[5751,5759],"valid"],[[5760,5760],"disallowed"],[[5761,5786],"valid"],[[5787,5788],"valid",[],"NV8"],[[5789,5791],"disallowed"],[[5792,5866],"valid"],[[5867,5872],"valid",[],"NV8"],[[5873,5880],"valid"],[[5881,5887],"disallowed"],[[5888,5900],"valid"],[[5901,5901],"disallowed"],[[5902,5908],"valid"],[[5909,5919],"disallowed"],[[5920,5940],"valid"],[[5941,5942],"valid",[],"NV8"],[[5943,5951],"disallowed"],[[5952,5971],"valid"],[[5972,5983],"disallowed"],[[5984,5996],"valid"],[[5997,5997],"disallowed"],[[5998,6e3],"valid"],[[6001,6001],"disallowed"],[[6002,6003],"valid"],[[6004,6015],"disallowed"],[[6016,6067],"valid"],[[6068,6069],"disallowed"],[[6070,6099],"valid"],[[6100,6102],"valid",[],"NV8"],[[6103,6103],"valid"],[[6104,6107],"valid",[],"NV8"],[[6108,6108],"valid"],[[6109,6109],"valid"],[[6110,6111],"disallowed"],[[6112,6121],"valid"],[[6122,6127],"disallowed"],[[6128,6137],"valid",[],"NV8"],[[6138,6143],"disallowed"],[[6144,6149],"valid",[],"NV8"],[[6150,6150],"disallowed"],[[6151,6154],"valid",[],"NV8"],[[6155,6157],"ignored"],[[6158,6158],"disallowed"],[[6159,6159],"disallowed"],[[6160,6169],"valid"],[[6170,6175],"disallowed"],[[6176,6263],"valid"],[[6264,6271],"disallowed"],[[6272,6313],"valid"],[[6314,6314],"valid"],[[6315,6319],"disallowed"],[[6320,6389],"valid"],[[6390,6399],"disallowed"],[[6400,6428],"valid"],[[6429,6430],"valid"],[[6431,6431],"disallowed"],[[6432,6443],"valid"],[[6444,6447],"disallowed"],[[6448,6459],"valid"],[[6460,6463],"disallowed"],[[6464,6464],"valid",[],"NV8"],[[6465,6467],"disallowed"],[[6468,6469],"valid",[],"NV8"],[[6470,6509],"valid"],[[6510,6511],"disallowed"],[[6512,6516],"valid"],[[6517,6527],"disallowed"],[[6528,6569],"valid"],[[6570,6571],"valid"],[[6572,6575],"disallowed"],[[6576,6601],"valid"],[[6602,6607],"disallowed"],[[6608,6617],"valid"],[[6618,6618],"valid",[],"XV8"],[[6619,6621],"disallowed"],[[6622,6623],"valid",[],"NV8"],[[6624,6655],"valid",[],"NV8"],[[6656,6683],"valid"],[[6684,6685],"disallowed"],[[6686,6687],"valid",[],"NV8"],[[6688,6750],"valid"],[[6751,6751],"disallowed"],[[6752,6780],"valid"],[[6781,6782],"disallowed"],[[6783,6793],"valid"],[[6794,6799],"disallowed"],[[6800,6809],"valid"],[[6810,6815],"disallowed"],[[6816,6822],"valid",[],"NV8"],[[6823,6823],"valid"],[[6824,6829],"valid",[],"NV8"],[[6830,6831],"disallowed"],[[6832,6845],"valid"],[[6846,6846],"valid",[],"NV8"],[[6847,6911],"disallowed"],[[6912,6987],"valid"],[[6988,6991],"disallowed"],[[6992,7001],"valid"],[[7002,7018],"valid",[],"NV8"],[[7019,7027],"valid"],[[7028,7036],"valid",[],"NV8"],[[7037,7039],"disallowed"],[[7040,7082],"valid"],[[7083,7085],"valid"],[[7086,7097],"valid"],[[7098,7103],"valid"],[[7104,7155],"valid"],[[7156,7163],"disallowed"],[[7164,7167],"valid",[],"NV8"],[[7168,7223],"valid"],[[7224,7226],"disallowed"],[[7227,7231],"valid",[],"NV8"],[[7232,7241],"valid"],[[7242,7244],"disallowed"],[[7245,7293],"valid"],[[7294,7295],"valid",[],"NV8"],[[7296,7359],"disallowed"],[[7360,7367],"valid",[],"NV8"],[[7368,7375],"disallowed"],[[7376,7378],"valid"],[[7379,7379],"valid",[],"NV8"],[[7380,7410],"valid"],[[7411,7414],"valid"],[[7415,7415],"disallowed"],[[7416,7417],"valid"],[[7418,7423],"disallowed"],[[7424,7467],"valid"],[[7468,7468],"mapped",[97]],[[7469,7469],"mapped",[230]],[[7470,7470],"mapped",[98]],[[7471,7471],"valid"],[[7472,7472],"mapped",[100]],[[7473,7473],"mapped",[101]],[[7474,7474],"mapped",[477]],[[7475,7475],"mapped",[103]],[[7476,7476],"mapped",[104]],[[7477,7477],"mapped",[105]],[[7478,7478],"mapped",[106]],[[7479,7479],"mapped",[107]],[[7480,7480],"mapped",[108]],[[7481,7481],"mapped",[109]],[[7482,7482],"mapped",[110]],[[7483,7483],"valid"],[[7484,7484],"mapped",[111]],[[7485,7485],"mapped",[547]],[[7486,7486],"mapped",[112]],[[7487,7487],"mapped",[114]],[[7488,7488],"mapped",[116]],[[7489,7489],"mapped",[117]],[[7490,7490],"mapped",[119]],[[7491,7491],"mapped",[97]],[[7492,7492],"mapped",[592]],[[7493,7493],"mapped",[593]],[[7494,7494],"mapped",[7426]],[[7495,7495],"mapped",[98]],[[7496,7496],"mapped",[100]],[[7497,7497],"mapped",[101]],[[7498,7498],"mapped",[601]],[[7499,7499],"mapped",[603]],[[7500,7500],"mapped",[604]],[[7501,7501],"mapped",[103]],[[7502,7502],"valid"],[[7503,7503],"mapped",[107]],[[7504,7504],"mapped",[109]],[[7505,7505],"mapped",[331]],[[7506,7506],"mapped",[111]],[[7507,7507],"mapped",[596]],[[7508,7508],"mapped",[7446]],[[7509,7509],"mapped",[7447]],[[7510,7510],"mapped",[112]],[[7511,7511],"mapped",[116]],[[7512,7512],"mapped",[117]],[[7513,7513],"mapped",[7453]],[[7514,7514],"mapped",[623]],[[7515,7515],"mapped",[118]],[[7516,7516],"mapped",[7461]],[[7517,7517],"mapped",[946]],[[7518,7518],"mapped",[947]],[[7519,7519],"mapped",[948]],[[7520,7520],"mapped",[966]],[[7521,7521],"mapped",[967]],[[7522,7522],"mapped",[105]],[[7523,7523],"mapped",[114]],[[7524,7524],"mapped",[117]],[[7525,7525],"mapped",[118]],[[7526,7526],"mapped",[946]],[[7527,7527],"mapped",[947]],[[7528,7528],"mapped",[961]],[[7529,7529],"mapped",[966]],[[7530,7530],"mapped",[967]],[[7531,7531],"valid"],[[7532,7543],"valid"],[[7544,7544],"mapped",[1085]],[[7545,7578],"valid"],[[7579,7579],"mapped",[594]],[[7580,7580],"mapped",[99]],[[7581,7581],"mapped",[597]],[[7582,7582],"mapped",[240]],[[7583,7583],"mapped",[604]],[[7584,7584],"mapped",[102]],[[7585,7585],"mapped",[607]],[[7586,7586],"mapped",[609]],[[7587,7587],"mapped",[613]],[[7588,7588],"mapped",[616]],[[7589,7589],"mapped",[617]],[[7590,7590],"mapped",[618]],[[7591,7591],"mapped",[7547]],[[7592,7592],"mapped",[669]],[[7593,7593],"mapped",[621]],[[7594,7594],"mapped",[7557]],[[7595,7595],"mapped",[671]],[[7596,7596],"mapped",[625]],[[7597,7597],"mapped",[624]],[[7598,7598],"mapped",[626]],[[7599,7599],"mapped",[627]],[[7600,7600],"mapped",[628]],[[7601,7601],"mapped",[629]],[[7602,7602],"mapped",[632]],[[7603,7603],"mapped",[642]],[[7604,7604],"mapped",[643]],[[7605,7605],"mapped",[427]],[[7606,7606],"mapped",[649]],[[7607,7607],"mapped",[650]],[[7608,7608],"mapped",[7452]],[[7609,7609],"mapped",[651]],[[7610,7610],"mapped",[652]],[[7611,7611],"mapped",[122]],[[7612,7612],"mapped",[656]],[[7613,7613],"mapped",[657]],[[7614,7614],"mapped",[658]],[[7615,7615],"mapped",[952]],[[7616,7619],"valid"],[[7620,7626],"valid"],[[7627,7654],"valid"],[[7655,7669],"valid"],[[7670,7675],"disallowed"],[[7676,7676],"valid"],[[7677,7677],"valid"],[[7678,7679],"valid"],[[7680,7680],"mapped",[7681]],[[7681,7681],"valid"],[[7682,7682],"mapped",[7683]],[[7683,7683],"valid"],[[7684,7684],"mapped",[7685]],[[7685,7685],"valid"],[[7686,7686],"mapped",[7687]],[[7687,7687],"valid"],[[7688,7688],"mapped",[7689]],[[7689,7689],"valid"],[[7690,7690],"mapped",[7691]],[[7691,7691],"valid"],[[7692,7692],"mapped",[7693]],[[7693,7693],"valid"],[[7694,7694],"mapped",[7695]],[[7695,7695],"valid"],[[7696,7696],"mapped",[7697]],[[7697,7697],"valid"],[[7698,7698],"mapped",[7699]],[[7699,7699],"valid"],[[7700,7700],"mapped",[7701]],[[7701,7701],"valid"],[[7702,7702],"mapped",[7703]],[[7703,7703],"valid"],[[7704,7704],"mapped",[7705]],[[7705,7705],"valid"],[[7706,7706],"mapped",[7707]],[[7707,7707],"valid"],[[7708,7708],"mapped",[7709]],[[7709,7709],"valid"],[[7710,7710],"mapped",[7711]],[[7711,7711],"valid"],[[7712,7712],"mapped",[7713]],[[7713,7713],"valid"],[[7714,7714],"mapped",[7715]],[[7715,7715],"valid"],[[7716,7716],"mapped",[7717]],[[7717,7717],"valid"],[[7718,7718],"mapped",[7719]],[[7719,7719],"valid"],[[7720,7720],"mapped",[7721]],[[7721,7721],"valid"],[[7722,7722],"mapped",[7723]],[[7723,7723],"valid"],[[7724,7724],"mapped",[7725]],[[7725,7725],"valid"],[[7726,7726],"mapped",[7727]],[[7727,7727],"valid"],[[7728,7728],"mapped",[7729]],[[7729,7729],"valid"],[[7730,7730],"mapped",[7731]],[[7731,7731],"valid"],[[7732,7732],"mapped",[7733]],[[7733,7733],"valid"],[[7734,7734],"mapped",[7735]],[[7735,7735],"valid"],[[7736,7736],"mapped",[7737]],[[7737,7737],"valid"],[[7738,7738],"mapped",[7739]],[[7739,7739],"valid"],[[7740,7740],"mapped",[7741]],[[7741,7741],"valid"],[[7742,7742],"mapped",[7743]],[[7743,7743],"valid"],[[7744,7744],"mapped",[7745]],[[7745,7745],"valid"],[[7746,7746],"mapped",[7747]],[[7747,7747],"valid"],[[7748,7748],"mapped",[7749]],[[7749,7749],"valid"],[[7750,7750],"mapped",[7751]],[[7751,7751],"valid"],[[7752,7752],"mapped",[7753]],[[7753,7753],"valid"],[[7754,7754],"mapped",[7755]],[[7755,7755],"valid"],[[7756,7756],"mapped",[7757]],[[7757,7757],"valid"],[[7758,7758],"mapped",[7759]],[[7759,7759],"valid"],[[7760,7760],"mapped",[7761]],[[7761,7761],"valid"],[[7762,7762],"mapped",[7763]],[[7763,7763],"valid"],[[7764,7764],"mapped",[7765]],[[7765,7765],"valid"],[[7766,7766],"mapped",[7767]],[[7767,7767],"valid"],[[7768,7768],"mapped",[7769]],[[7769,7769],"valid"],[[7770,7770],"mapped",[7771]],[[7771,7771],"valid"],[[7772,7772],"mapped",[7773]],[[7773,7773],"valid"],[[7774,7774],"mapped",[7775]],[[7775,7775],"valid"],[[7776,7776],"mapped",[7777]],[[7777,7777],"valid"],[[7778,7778],"mapped",[7779]],[[7779,7779],"valid"],[[7780,7780],"mapped",[7781]],[[7781,7781],"valid"],[[7782,7782],"mapped",[7783]],[[7783,7783],"valid"],[[7784,7784],"mapped",[7785]],[[7785,7785],"valid"],[[7786,7786],"mapped",[7787]],[[7787,7787],"valid"],[[7788,7788],"mapped",[7789]],[[7789,7789],"valid"],[[7790,7790],"mapped",[7791]],[[7791,7791],"valid"],[[7792,7792],"mapped",[7793]],[[7793,7793],"valid"],[[7794,7794],"mapped",[7795]],[[7795,7795],"valid"],[[7796,7796],"mapped",[7797]],[[7797,7797],"valid"],[[7798,7798],"mapped",[7799]],[[7799,7799],"valid"],[[7800,7800],"mapped",[7801]],[[7801,7801],"valid"],[[7802,7802],"mapped",[7803]],[[7803,7803],"valid"],[[7804,7804],"mapped",[7805]],[[7805,7805],"valid"],[[7806,7806],"mapped",[7807]],[[7807,7807],"valid"],[[7808,7808],"mapped",[7809]],[[7809,7809],"valid"],[[7810,7810],"mapped",[7811]],[[7811,7811],"valid"],[[7812,7812],"mapped",[7813]],[[7813,7813],"valid"],[[7814,7814],"mapped",[7815]],[[7815,7815],"valid"],[[7816,7816],"mapped",[7817]],[[7817,7817],"valid"],[[7818,7818],"mapped",[7819]],[[7819,7819],"valid"],[[7820,7820],"mapped",[7821]],[[7821,7821],"valid"],[[7822,7822],"mapped",[7823]],[[7823,7823],"valid"],[[7824,7824],"mapped",[7825]],[[7825,7825],"valid"],[[7826,7826],"mapped",[7827]],[[7827,7827],"valid"],[[7828,7828],"mapped",[7829]],[[7829,7833],"valid"],[[7834,7834],"mapped",[97,702]],[[7835,7835],"mapped",[7777]],[[7836,7837],"valid"],[[7838,7838],"mapped",[115,115]],[[7839,7839],"valid"],[[7840,7840],"mapped",[7841]],[[7841,7841],"valid"],[[7842,7842],"mapped",[7843]],[[7843,7843],"valid"],[[7844,7844],"mapped",[7845]],[[7845,7845],"valid"],[[7846,7846],"mapped",[7847]],[[7847,7847],"valid"],[[7848,7848],"mapped",[7849]],[[7849,7849],"valid"],[[7850,7850],"mapped",[7851]],[[7851,7851],"valid"],[[7852,7852],"mapped",[7853]],[[7853,7853],"valid"],[[7854,7854],"mapped",[7855]],[[7855,7855],"valid"],[[7856,7856],"mapped",[7857]],[[7857,7857],"valid"],[[7858,7858],"mapped",[7859]],[[7859,7859],"valid"],[[7860,7860],"mapped",[7861]],[[7861,7861],"valid"],[[7862,7862],"mapped",[7863]],[[7863,7863],"valid"],[[7864,7864],"mapped",[7865]],[[7865,7865],"valid"],[[7866,7866],"mapped",[7867]],[[7867,7867],"valid"],[[7868,7868],"mapped",[7869]],[[7869,7869],"valid"],[[7870,7870],"mapped",[7871]],[[7871,7871],"valid"],[[7872,7872],"mapped",[7873]],[[7873,7873],"valid"],[[7874,7874],"mapped",[7875]],[[7875,7875],"valid"],[[7876,7876],"mapped",[7877]],[[7877,7877],"valid"],[[7878,7878],"mapped",[7879]],[[7879,7879],"valid"],[[7880,7880],"mapped",[7881]],[[7881,7881],"valid"],[[7882,7882],"mapped",[7883]],[[7883,7883],"valid"],[[7884,7884],"mapped",[7885]],[[7885,7885],"valid"],[[7886,7886],"mapped",[7887]],[[7887,7887],"valid"],[[7888,7888],"mapped",[7889]],[[7889,7889],"valid"],[[7890,7890],"mapped",[7891]],[[7891,7891],"valid"],[[7892,7892],"mapped",[7893]],[[7893,7893],"valid"],[[7894,7894],"mapped",[7895]],[[7895,7895],"valid"],[[7896,7896],"mapped",[7897]],[[7897,7897],"valid"],[[7898,7898],"mapped",[7899]],[[7899,7899],"valid"],[[7900,7900],"mapped",[7901]],[[7901,7901],"valid"],[[7902,7902],"mapped",[7903]],[[7903,7903],"valid"],[[7904,7904],"mapped",[7905]],[[7905,7905],"valid"],[[7906,7906],"mapped",[7907]],[[7907,7907],"valid"],[[7908,7908],"mapped",[7909]],[[7909,7909],"valid"],[[7910,7910],"mapped",[7911]],[[7911,7911],"valid"],[[7912,7912],"mapped",[7913]],[[7913,7913],"valid"],[[7914,7914],"mapped",[7915]],[[7915,7915],"valid"],[[7916,7916],"mapped",[7917]],[[7917,7917],"valid"],[[7918,7918],"mapped",[7919]],[[7919,7919],"valid"],[[7920,7920],"mapped",[7921]],[[7921,7921],"valid"],[[7922,7922],"mapped",[7923]],[[7923,7923],"valid"],[[7924,7924],"mapped",[7925]],[[7925,7925],"valid"],[[7926,7926],"mapped",[7927]],[[7927,7927],"valid"],[[7928,7928],"mapped",[7929]],[[7929,7929],"valid"],[[7930,7930],"mapped",[7931]],[[7931,7931],"valid"],[[7932,7932],"mapped",[7933]],[[7933,7933],"valid"],[[7934,7934],"mapped",[7935]],[[7935,7935],"valid"],[[7936,7943],"valid"],[[7944,7944],"mapped",[7936]],[[7945,7945],"mapped",[7937]],[[7946,7946],"mapped",[7938]],[[7947,7947],"mapped",[7939]],[[7948,7948],"mapped",[7940]],[[7949,7949],"mapped",[7941]],[[7950,7950],"mapped",[7942]],[[7951,7951],"mapped",[7943]],[[7952,7957],"valid"],[[7958,7959],"disallowed"],[[7960,7960],"mapped",[7952]],[[7961,7961],"mapped",[7953]],[[7962,7962],"mapped",[7954]],[[7963,7963],"mapped",[7955]],[[7964,7964],"mapped",[7956]],[[7965,7965],"mapped",[7957]],[[7966,7967],"disallowed"],[[7968,7975],"valid"],[[7976,7976],"mapped",[7968]],[[7977,7977],"mapped",[7969]],[[7978,7978],"mapped",[7970]],[[7979,7979],"mapped",[7971]],[[7980,7980],"mapped",[7972]],[[7981,7981],"mapped",[7973]],[[7982,7982],"mapped",[7974]],[[7983,7983],"mapped",[7975]],[[7984,7991],"valid"],[[7992,7992],"mapped",[7984]],[[7993,7993],"mapped",[7985]],[[7994,7994],"mapped",[7986]],[[7995,7995],"mapped",[7987]],[[7996,7996],"mapped",[7988]],[[7997,7997],"mapped",[7989]],[[7998,7998],"mapped",[7990]],[[7999,7999],"mapped",[7991]],[[8e3,8005],"valid"],[[8006,8007],"disallowed"],[[8008,8008],"mapped",[8e3]],[[8009,8009],"mapped",[8001]],[[8010,8010],"mapped",[8002]],[[8011,8011],"mapped",[8003]],[[8012,8012],"mapped",[8004]],[[8013,8013],"mapped",[8005]],[[8014,8015],"disallowed"],[[8016,8023],"valid"],[[8024,8024],"disallowed"],[[8025,8025],"mapped",[8017]],[[8026,8026],"disallowed"],[[8027,8027],"mapped",[8019]],[[8028,8028],"disallowed"],[[8029,8029],"mapped",[8021]],[[8030,8030],"disallowed"],[[8031,8031],"mapped",[8023]],[[8032,8039],"valid"],[[8040,8040],"mapped",[8032]],[[8041,8041],"mapped",[8033]],[[8042,8042],"mapped",[8034]],[[8043,8043],"mapped",[8035]],[[8044,8044],"mapped",[8036]],[[8045,8045],"mapped",[8037]],[[8046,8046],"mapped",[8038]],[[8047,8047],"mapped",[8039]],[[8048,8048],"valid"],[[8049,8049],"mapped",[940]],[[8050,8050],"valid"],[[8051,8051],"mapped",[941]],[[8052,8052],"valid"],[[8053,8053],"mapped",[942]],[[8054,8054],"valid"],[[8055,8055],"mapped",[943]],[[8056,8056],"valid"],[[8057,8057],"mapped",[972]],[[8058,8058],"valid"],[[8059,8059],"mapped",[973]],[[8060,8060],"valid"],[[8061,8061],"mapped",[974]],[[8062,8063],"disallowed"],[[8064,8064],"mapped",[7936,953]],[[8065,8065],"mapped",[7937,953]],[[8066,8066],"mapped",[7938,953]],[[8067,8067],"mapped",[7939,953]],[[8068,8068],"mapped",[7940,953]],[[8069,8069],"mapped",[7941,953]],[[8070,8070],"mapped",[7942,953]],[[8071,8071],"mapped",[7943,953]],[[8072,8072],"mapped",[7936,953]],[[8073,8073],"mapped",[7937,953]],[[8074,8074],"mapped",[7938,953]],[[8075,8075],"mapped",[7939,953]],[[8076,8076],"mapped",[7940,953]],[[8077,8077],"mapped",[7941,953]],[[8078,8078],"mapped",[7942,953]],[[8079,8079],"mapped",[7943,953]],[[8080,8080],"mapped",[7968,953]],[[8081,8081],"mapped",[7969,953]],[[8082,8082],"mapped",[7970,953]],[[8083,8083],"mapped",[7971,953]],[[8084,8084],"mapped",[7972,953]],[[8085,8085],"mapped",[7973,953]],[[8086,8086],"mapped",[7974,953]],[[8087,8087],"mapped",[7975,953]],[[8088,8088],"mapped",[7968,953]],[[8089,8089],"mapped",[7969,953]],[[8090,8090],"mapped",[7970,953]],[[8091,8091],"mapped",[7971,953]],[[8092,8092],"mapped",[7972,953]],[[8093,8093],"mapped",[7973,953]],[[8094,8094],"mapped",[7974,953]],[[8095,8095],"mapped",[7975,953]],[[8096,8096],"mapped",[8032,953]],[[8097,8097],"mapped",[8033,953]],[[8098,8098],"mapped",[8034,953]],[[8099,8099],"mapped",[8035,953]],[[8100,8100],"mapped",[8036,953]],[[8101,8101],"mapped",[8037,953]],[[8102,8102],"mapped",[8038,953]],[[8103,8103],"mapped",[8039,953]],[[8104,8104],"mapped",[8032,953]],[[8105,8105],"mapped",[8033,953]],[[8106,8106],"mapped",[8034,953]],[[8107,8107],"mapped",[8035,953]],[[8108,8108],"mapped",[8036,953]],[[8109,8109],"mapped",[8037,953]],[[8110,8110],"mapped",[8038,953]],[[8111,8111],"mapped",[8039,953]],[[8112,8113],"valid"],[[8114,8114],"mapped",[8048,953]],[[8115,8115],"mapped",[945,953]],[[8116,8116],"mapped",[940,953]],[[8117,8117],"disallowed"],[[8118,8118],"valid"],[[8119,8119],"mapped",[8118,953]],[[8120,8120],"mapped",[8112]],[[8121,8121],"mapped",[8113]],[[8122,8122],"mapped",[8048]],[[8123,8123],"mapped",[940]],[[8124,8124],"mapped",[945,953]],[[8125,8125],"disallowed_STD3_mapped",[32,787]],[[8126,8126],"mapped",[953]],[[8127,8127],"disallowed_STD3_mapped",[32,787]],[[8128,8128],"disallowed_STD3_mapped",[32,834]],[[8129,8129],"disallowed_STD3_mapped",[32,776,834]],[[8130,8130],"mapped",[8052,953]],[[8131,8131],"mapped",[951,953]],[[8132,8132],"mapped",[942,953]],[[8133,8133],"disallowed"],[[8134,8134],"valid"],[[8135,8135],"mapped",[8134,953]],[[8136,8136],"mapped",[8050]],[[8137,8137],"mapped",[941]],[[8138,8138],"mapped",[8052]],[[8139,8139],"mapped",[942]],[[8140,8140],"mapped",[951,953]],[[8141,8141],"disallowed_STD3_mapped",[32,787,768]],[[8142,8142],"disallowed_STD3_mapped",[32,787,769]],[[8143,8143],"disallowed_STD3_mapped",[32,787,834]],[[8144,8146],"valid"],[[8147,8147],"mapped",[912]],[[8148,8149],"disallowed"],[[8150,8151],"valid"],[[8152,8152],"mapped",[8144]],[[8153,8153],"mapped",[8145]],[[8154,8154],"mapped",[8054]],[[8155,8155],"mapped",[943]],[[8156,8156],"disallowed"],[[8157,8157],"disallowed_STD3_mapped",[32,788,768]],[[8158,8158],"disallowed_STD3_mapped",[32,788,769]],[[8159,8159],"disallowed_STD3_mapped",[32,788,834]],[[8160,8162],"valid"],[[8163,8163],"mapped",[944]],[[8164,8167],"valid"],[[8168,8168],"mapped",[8160]],[[8169,8169],"mapped",[8161]],[[8170,8170],"mapped",[8058]],[[8171,8171],"mapped",[973]],[[8172,8172],"mapped",[8165]],[[8173,8173],"disallowed_STD3_mapped",[32,776,768]],[[8174,8174],"disallowed_STD3_mapped",[32,776,769]],[[8175,8175],"disallowed_STD3_mapped",[96]],[[8176,8177],"disallowed"],[[8178,8178],"mapped",[8060,953]],[[8179,8179],"mapped",[969,953]],[[8180,8180],"mapped",[974,953]],[[8181,8181],"disallowed"],[[8182,8182],"valid"],[[8183,8183],"mapped",[8182,953]],[[8184,8184],"mapped",[8056]],[[8185,8185],"mapped",[972]],[[8186,8186],"mapped",[8060]],[[8187,8187],"mapped",[974]],[[8188,8188],"mapped",[969,953]],[[8189,8189],"disallowed_STD3_mapped",[32,769]],[[8190,8190],"disallowed_STD3_mapped",[32,788]],[[8191,8191],"disallowed"],[[8192,8202],"disallowed_STD3_mapped",[32]],[[8203,8203],"ignored"],[[8204,8205],"deviation",[]],[[8206,8207],"disallowed"],[[8208,8208],"valid",[],"NV8"],[[8209,8209],"mapped",[8208]],[[8210,8214],"valid",[],"NV8"],[[8215,8215],"disallowed_STD3_mapped",[32,819]],[[8216,8227],"valid",[],"NV8"],[[8228,8230],"disallowed"],[[8231,8231],"valid",[],"NV8"],[[8232,8238],"disallowed"],[[8239,8239],"disallowed_STD3_mapped",[32]],[[8240,8242],"valid",[],"NV8"],[[8243,8243],"mapped",[8242,8242]],[[8244,8244],"mapped",[8242,8242,8242]],[[8245,8245],"valid",[],"NV8"],[[8246,8246],"mapped",[8245,8245]],[[8247,8247],"mapped",[8245,8245,8245]],[[8248,8251],"valid",[],"NV8"],[[8252,8252],"disallowed_STD3_mapped",[33,33]],[[8253,8253],"valid",[],"NV8"],[[8254,8254],"disallowed_STD3_mapped",[32,773]],[[8255,8262],"valid",[],"NV8"],[[8263,8263],"disallowed_STD3_mapped",[63,63]],[[8264,8264],"disallowed_STD3_mapped",[63,33]],[[8265,8265],"disallowed_STD3_mapped",[33,63]],[[8266,8269],"valid",[],"NV8"],[[8270,8274],"valid",[],"NV8"],[[8275,8276],"valid",[],"NV8"],[[8277,8278],"valid",[],"NV8"],[[8279,8279],"mapped",[8242,8242,8242,8242]],[[8280,8286],"valid",[],"NV8"],[[8287,8287],"disallowed_STD3_mapped",[32]],[[8288,8288],"ignored"],[[8289,8291],"disallowed"],[[8292,8292],"ignored"],[[8293,8293],"disallowed"],[[8294,8297],"disallowed"],[[8298,8303],"disallowed"],[[8304,8304],"mapped",[48]],[[8305,8305],"mapped",[105]],[[8306,8307],"disallowed"],[[8308,8308],"mapped",[52]],[[8309,8309],"mapped",[53]],[[8310,8310],"mapped",[54]],[[8311,8311],"mapped",[55]],[[8312,8312],"mapped",[56]],[[8313,8313],"mapped",[57]],[[8314,8314],"disallowed_STD3_mapped",[43]],[[8315,8315],"mapped",[8722]],[[8316,8316],"disallowed_STD3_mapped",[61]],[[8317,8317],"disallowed_STD3_mapped",[40]],[[8318,8318],"disallowed_STD3_mapped",[41]],[[8319,8319],"mapped",[110]],[[8320,8320],"mapped",[48]],[[8321,8321],"mapped",[49]],[[8322,8322],"mapped",[50]],[[8323,8323],"mapped",[51]],[[8324,8324],"mapped",[52]],[[8325,8325],"mapped",[53]],[[8326,8326],"mapped",[54]],[[8327,8327],"mapped",[55]],[[8328,8328],"mapped",[56]],[[8329,8329],"mapped",[57]],[[8330,8330],"disallowed_STD3_mapped",[43]],[[8331,8331],"mapped",[8722]],[[8332,8332],"disallowed_STD3_mapped",[61]],[[8333,8333],"disallowed_STD3_mapped",[40]],[[8334,8334],"disallowed_STD3_mapped",[41]],[[8335,8335],"disallowed"],[[8336,8336],"mapped",[97]],[[8337,8337],"mapped",[101]],[[8338,8338],"mapped",[111]],[[8339,8339],"mapped",[120]],[[8340,8340],"mapped",[601]],[[8341,8341],"mapped",[104]],[[8342,8342],"mapped",[107]],[[8343,8343],"mapped",[108]],[[8344,8344],"mapped",[109]],[[8345,8345],"mapped",[110]],[[8346,8346],"mapped",[112]],[[8347,8347],"mapped",[115]],[[8348,8348],"mapped",[116]],[[8349,8351],"disallowed"],[[8352,8359],"valid",[],"NV8"],[[8360,8360],"mapped",[114,115]],[[8361,8362],"valid",[],"NV8"],[[8363,8363],"valid",[],"NV8"],[[8364,8364],"valid",[],"NV8"],[[8365,8367],"valid",[],"NV8"],[[8368,8369],"valid",[],"NV8"],[[8370,8373],"valid",[],"NV8"],[[8374,8376],"valid",[],"NV8"],[[8377,8377],"valid",[],"NV8"],[[8378,8378],"valid",[],"NV8"],[[8379,8381],"valid",[],"NV8"],[[8382,8382],"valid",[],"NV8"],[[8383,8399],"disallowed"],[[8400,8417],"valid",[],"NV8"],[[8418,8419],"valid",[],"NV8"],[[8420,8426],"valid",[],"NV8"],[[8427,8427],"valid",[],"NV8"],[[8428,8431],"valid",[],"NV8"],[[8432,8432],"valid",[],"NV8"],[[8433,8447],"disallowed"],[[8448,8448],"disallowed_STD3_mapped",[97,47,99]],[[8449,8449],"disallowed_STD3_mapped",[97,47,115]],[[8450,8450],"mapped",[99]],[[8451,8451],"mapped",[176,99]],[[8452,8452],"valid",[],"NV8"],[[8453,8453],"disallowed_STD3_mapped",[99,47,111]],[[8454,8454],"disallowed_STD3_mapped",[99,47,117]],[[8455,8455],"mapped",[603]],[[8456,8456],"valid",[],"NV8"],[[8457,8457],"mapped",[176,102]],[[8458,8458],"mapped",[103]],[[8459,8462],"mapped",[104]],[[8463,8463],"mapped",[295]],[[8464,8465],"mapped",[105]],[[8466,8467],"mapped",[108]],[[8468,8468],"valid",[],"NV8"],[[8469,8469],"mapped",[110]],[[8470,8470],"mapped",[110,111]],[[8471,8472],"valid",[],"NV8"],[[8473,8473],"mapped",[112]],[[8474,8474],"mapped",[113]],[[8475,8477],"mapped",[114]],[[8478,8479],"valid",[],"NV8"],[[8480,8480],"mapped",[115,109]],[[8481,8481],"mapped",[116,101,108]],[[8482,8482],"mapped",[116,109]],[[8483,8483],"valid",[],"NV8"],[[8484,8484],"mapped",[122]],[[8485,8485],"valid",[],"NV8"],[[8486,8486],"mapped",[969]],[[8487,8487],"valid",[],"NV8"],[[8488,8488],"mapped",[122]],[[8489,8489],"valid",[],"NV8"],[[8490,8490],"mapped",[107]],[[8491,8491],"mapped",[229]],[[8492,8492],"mapped",[98]],[[8493,8493],"mapped",[99]],[[8494,8494],"valid",[],"NV8"],[[8495,8496],"mapped",[101]],[[8497,8497],"mapped",[102]],[[8498,8498],"disallowed"],[[8499,8499],"mapped",[109]],[[8500,8500],"mapped",[111]],[[8501,8501],"mapped",[1488]],[[8502,8502],"mapped",[1489]],[[8503,8503],"mapped",[1490]],[[8504,8504],"mapped",[1491]],[[8505,8505],"mapped",[105]],[[8506,8506],"valid",[],"NV8"],[[8507,8507],"mapped",[102,97,120]],[[8508,8508],"mapped",[960]],[[8509,8510],"mapped",[947]],[[8511,8511],"mapped",[960]],[[8512,8512],"mapped",[8721]],[[8513,8516],"valid",[],"NV8"],[[8517,8518],"mapped",[100]],[[8519,8519],"mapped",[101]],[[8520,8520],"mapped",[105]],[[8521,8521],"mapped",[106]],[[8522,8523],"valid",[],"NV8"],[[8524,8524],"valid",[],"NV8"],[[8525,8525],"valid",[],"NV8"],[[8526,8526],"valid"],[[8527,8527],"valid",[],"NV8"],[[8528,8528],"mapped",[49,8260,55]],[[8529,8529],"mapped",[49,8260,57]],[[8530,8530],"mapped",[49,8260,49,48]],[[8531,8531],"mapped",[49,8260,51]],[[8532,8532],"mapped",[50,8260,51]],[[8533,8533],"mapped",[49,8260,53]],[[8534,8534],"mapped",[50,8260,53]],[[8535,8535],"mapped",[51,8260,53]],[[8536,8536],"mapped",[52,8260,53]],[[8537,8537],"mapped",[49,8260,54]],[[8538,8538],"mapped",[53,8260,54]],[[8539,8539],"mapped",[49,8260,56]],[[8540,8540],"mapped",[51,8260,56]],[[8541,8541],"mapped",[53,8260,56]],[[8542,8542],"mapped",[55,8260,56]],[[8543,8543],"mapped",[49,8260]],[[8544,8544],"mapped",[105]],[[8545,8545],"mapped",[105,105]],[[8546,8546],"mapped",[105,105,105]],[[8547,8547],"mapped",[105,118]],[[8548,8548],"mapped",[118]],[[8549,8549],"mapped",[118,105]],[[8550,8550],"mapped",[118,105,105]],[[8551,8551],"mapped",[118,105,105,105]],[[8552,8552],"mapped",[105,120]],[[8553,8553],"mapped",[120]],[[8554,8554],"mapped",[120,105]],[[8555,8555],"mapped",[120,105,105]],[[8556,8556],"mapped",[108]],[[8557,8557],"mapped",[99]],[[8558,8558],"mapped",[100]],[[8559,8559],"mapped",[109]],[[8560,8560],"mapped",[105]],[[8561,8561],"mapped",[105,105]],[[8562,8562],"mapped",[105,105,105]],[[8563,8563],"mapped",[105,118]],[[8564,8564],"mapped",[118]],[[8565,8565],"mapped",[118,105]],[[8566,8566],"mapped",[118,105,105]],[[8567,8567],"mapped",[118,105,105,105]],[[8568,8568],"mapped",[105,120]],[[8569,8569],"mapped",[120]],[[8570,8570],"mapped",[120,105]],[[8571,8571],"mapped",[120,105,105]],[[8572,8572],"mapped",[108]],[[8573,8573],"mapped",[99]],[[8574,8574],"mapped",[100]],[[8575,8575],"mapped",[109]],[[8576,8578],"valid",[],"NV8"],[[8579,8579],"disallowed"],[[8580,8580],"valid"],[[8581,8584],"valid",[],"NV8"],[[8585,8585],"mapped",[48,8260,51]],[[8586,8587],"valid",[],"NV8"],[[8588,8591],"disallowed"],[[8592,8682],"valid",[],"NV8"],[[8683,8691],"valid",[],"NV8"],[[8692,8703],"valid",[],"NV8"],[[8704,8747],"valid",[],"NV8"],[[8748,8748],"mapped",[8747,8747]],[[8749,8749],"mapped",[8747,8747,8747]],[[8750,8750],"valid",[],"NV8"],[[8751,8751],"mapped",[8750,8750]],[[8752,8752],"mapped",[8750,8750,8750]],[[8753,8799],"valid",[],"NV8"],[[8800,8800],"disallowed_STD3_valid"],[[8801,8813],"valid",[],"NV8"],[[8814,8815],"disallowed_STD3_valid"],[[8816,8945],"valid",[],"NV8"],[[8946,8959],"valid",[],"NV8"],[[8960,8960],"valid",[],"NV8"],[[8961,8961],"valid",[],"NV8"],[[8962,9e3],"valid",[],"NV8"],[[9001,9001],"mapped",[12296]],[[9002,9002],"mapped",[12297]],[[9003,9082],"valid",[],"NV8"],[[9083,9083],"valid",[],"NV8"],[[9084,9084],"valid",[],"NV8"],[[9085,9114],"valid",[],"NV8"],[[9115,9166],"valid",[],"NV8"],[[9167,9168],"valid",[],"NV8"],[[9169,9179],"valid",[],"NV8"],[[9180,9191],"valid",[],"NV8"],[[9192,9192],"valid",[],"NV8"],[[9193,9203],"valid",[],"NV8"],[[9204,9210],"valid",[],"NV8"],[[9211,9215],"disallowed"],[[9216,9252],"valid",[],"NV8"],[[9253,9254],"valid",[],"NV8"],[[9255,9279],"disallowed"],[[9280,9290],"valid",[],"NV8"],[[9291,9311],"disallowed"],[[9312,9312],"mapped",[49]],[[9313,9313],"mapped",[50]],[[9314,9314],"mapped",[51]],[[9315,9315],"mapped",[52]],[[9316,9316],"mapped",[53]],[[9317,9317],"mapped",[54]],[[9318,9318],"mapped",[55]],[[9319,9319],"mapped",[56]],[[9320,9320],"mapped",[57]],[[9321,9321],"mapped",[49,48]],[[9322,9322],"mapped",[49,49]],[[9323,9323],"mapped",[49,50]],[[9324,9324],"mapped",[49,51]],[[9325,9325],"mapped",[49,52]],[[9326,9326],"mapped",[49,53]],[[9327,9327],"mapped",[49,54]],[[9328,9328],"mapped",[49,55]],[[9329,9329],"mapped",[49,56]],[[9330,9330],"mapped",[49,57]],[[9331,9331],"mapped",[50,48]],[[9332,9332],"disallowed_STD3_mapped",[40,49,41]],[[9333,9333],"disallowed_STD3_mapped",[40,50,41]],[[9334,9334],"disallowed_STD3_mapped",[40,51,41]],[[9335,9335],"disallowed_STD3_mapped",[40,52,41]],[[9336,9336],"disallowed_STD3_mapped",[40,53,41]],[[9337,9337],"disallowed_STD3_mapped",[40,54,41]],[[9338,9338],"disallowed_STD3_mapped",[40,55,41]],[[9339,9339],"disallowed_STD3_mapped",[40,56,41]],[[9340,9340],"disallowed_STD3_mapped",[40,57,41]],[[9341,9341],"disallowed_STD3_mapped",[40,49,48,41]],[[9342,9342],"disallowed_STD3_mapped",[40,49,49,41]],[[9343,9343],"disallowed_STD3_mapped",[40,49,50,41]],[[9344,9344],"disallowed_STD3_mapped",[40,49,51,41]],[[9345,9345],"disallowed_STD3_mapped",[40,49,52,41]],[[9346,9346],"disallowed_STD3_mapped",[40,49,53,41]],[[9347,9347],"disallowed_STD3_mapped",[40,49,54,41]],[[9348,9348],"disallowed_STD3_mapped",[40,49,55,41]],[[9349,9349],"disallowed_STD3_mapped",[40,49,56,41]],[[9350,9350],"disallowed_STD3_mapped",[40,49,57,41]],[[9351,9351],"disallowed_STD3_mapped",[40,50,48,41]],[[9352,9371],"disallowed"],[[9372,9372],"disallowed_STD3_mapped",[40,97,41]],[[9373,9373],"disallowed_STD3_mapped",[40,98,41]],[[9374,9374],"disallowed_STD3_mapped",[40,99,41]],[[9375,9375],"disallowed_STD3_mapped",[40,100,41]],[[9376,9376],"disallowed_STD3_mapped",[40,101,41]],[[9377,9377],"disallowed_STD3_mapped",[40,102,41]],[[9378,9378],"disallowed_STD3_mapped",[40,103,41]],[[9379,9379],"disallowed_STD3_mapped",[40,104,41]],[[9380,9380],"disallowed_STD3_mapped",[40,105,41]],[[9381,9381],"disallowed_STD3_mapped",[40,106,41]],[[9382,9382],"disallowed_STD3_mapped",[40,107,41]],[[9383,9383],"disallowed_STD3_mapped",[40,108,41]],[[9384,9384],"disallowed_STD3_mapped",[40,109,41]],[[9385,9385],"disallowed_STD3_mapped",[40,110,41]],[[9386,9386],"disallowed_STD3_mapped",[40,111,41]],[[9387,9387],"disallowed_STD3_mapped",[40,112,41]],[[9388,9388],"disallowed_STD3_mapped",[40,113,41]],[[9389,9389],"disallowed_STD3_mapped",[40,114,41]],[[9390,9390],"disallowed_STD3_mapped",[40,115,41]],[[9391,9391],"disallowed_STD3_mapped",[40,116,41]],[[9392,9392],"disallowed_STD3_mapped",[40,117,41]],[[9393,9393],"disallowed_STD3_mapped",[40,118,41]],[[9394,9394],"disallowed_STD3_mapped",[40,119,41]],[[9395,9395],"disallowed_STD3_mapped",[40,120,41]],[[9396,9396],"disallowed_STD3_mapped",[40,121,41]],[[9397,9397],"disallowed_STD3_mapped",[40,122,41]],[[9398,9398],"mapped",[97]],[[9399,9399],"mapped",[98]],[[9400,9400],"mapped",[99]],[[9401,9401],"mapped",[100]],[[9402,9402],"mapped",[101]],[[9403,9403],"mapped",[102]],[[9404,9404],"mapped",[103]],[[9405,9405],"mapped",[104]],[[9406,9406],"mapped",[105]],[[9407,9407],"mapped",[106]],[[9408,9408],"mapped",[107]],[[9409,9409],"mapped",[108]],[[9410,9410],"mapped",[109]],[[9411,9411],"mapped",[110]],[[9412,9412],"mapped",[111]],[[9413,9413],"mapped",[112]],[[9414,9414],"mapped",[113]],[[9415,9415],"mapped",[114]],[[9416,9416],"mapped",[115]],[[9417,9417],"mapped",[116]],[[9418,9418],"mapped",[117]],[[9419,9419],"mapped",[118]],[[9420,9420],"mapped",[119]],[[9421,9421],"mapped",[120]],[[9422,9422],"mapped",[121]],[[9423,9423],"mapped",[122]],[[9424,9424],"mapped",[97]],[[9425,9425],"mapped",[98]],[[9426,9426],"mapped",[99]],[[9427,9427],"mapped",[100]],[[9428,9428],"mapped",[101]],[[9429,9429],"mapped",[102]],[[9430,9430],"mapped",[103]],[[9431,9431],"mapped",[104]],[[9432,9432],"mapped",[105]],[[9433,9433],"mapped",[106]],[[9434,9434],"mapped",[107]],[[9435,9435],"mapped",[108]],[[9436,9436],"mapped",[109]],[[9437,9437],"mapped",[110]],[[9438,9438],"mapped",[111]],[[9439,9439],"mapped",[112]],[[9440,9440],"mapped",[113]],[[9441,9441],"mapped",[114]],[[9442,9442],"mapped",[115]],[[9443,9443],"mapped",[116]],[[9444,9444],"mapped",[117]],[[9445,9445],"mapped",[118]],[[9446,9446],"mapped",[119]],[[9447,9447],"mapped",[120]],[[9448,9448],"mapped",[121]],[[9449,9449],"mapped",[122]],[[9450,9450],"mapped",[48]],[[9451,9470],"valid",[],"NV8"],[[9471,9471],"valid",[],"NV8"],[[9472,9621],"valid",[],"NV8"],[[9622,9631],"valid",[],"NV8"],[[9632,9711],"valid",[],"NV8"],[[9712,9719],"valid",[],"NV8"],[[9720,9727],"valid",[],"NV8"],[[9728,9747],"valid",[],"NV8"],[[9748,9749],"valid",[],"NV8"],[[9750,9751],"valid",[],"NV8"],[[9752,9752],"valid",[],"NV8"],[[9753,9753],"valid",[],"NV8"],[[9754,9839],"valid",[],"NV8"],[[9840,9841],"valid",[],"NV8"],[[9842,9853],"valid",[],"NV8"],[[9854,9855],"valid",[],"NV8"],[[9856,9865],"valid",[],"NV8"],[[9866,9873],"valid",[],"NV8"],[[9874,9884],"valid",[],"NV8"],[[9885,9885],"valid",[],"NV8"],[[9886,9887],"valid",[],"NV8"],[[9888,9889],"valid",[],"NV8"],[[9890,9905],"valid",[],"NV8"],[[9906,9906],"valid",[],"NV8"],[[9907,9916],"valid",[],"NV8"],[[9917,9919],"valid",[],"NV8"],[[9920,9923],"valid",[],"NV8"],[[9924,9933],"valid",[],"NV8"],[[9934,9934],"valid",[],"NV8"],[[9935,9953],"valid",[],"NV8"],[[9954,9954],"valid",[],"NV8"],[[9955,9955],"valid",[],"NV8"],[[9956,9959],"valid",[],"NV8"],[[9960,9983],"valid",[],"NV8"],[[9984,9984],"valid",[],"NV8"],[[9985,9988],"valid",[],"NV8"],[[9989,9989],"valid",[],"NV8"],[[9990,9993],"valid",[],"NV8"],[[9994,9995],"valid",[],"NV8"],[[9996,10023],"valid",[],"NV8"],[[10024,10024],"valid",[],"NV8"],[[10025,10059],"valid",[],"NV8"],[[10060,10060],"valid",[],"NV8"],[[10061,10061],"valid",[],"NV8"],[[10062,10062],"valid",[],"NV8"],[[10063,10066],"valid",[],"NV8"],[[10067,10069],"valid",[],"NV8"],[[10070,10070],"valid",[],"NV8"],[[10071,10071],"valid",[],"NV8"],[[10072,10078],"valid",[],"NV8"],[[10079,10080],"valid",[],"NV8"],[[10081,10087],"valid",[],"NV8"],[[10088,10101],"valid",[],"NV8"],[[10102,10132],"valid",[],"NV8"],[[10133,10135],"valid",[],"NV8"],[[10136,10159],"valid",[],"NV8"],[[10160,10160],"valid",[],"NV8"],[[10161,10174],"valid",[],"NV8"],[[10175,10175],"valid",[],"NV8"],[[10176,10182],"valid",[],"NV8"],[[10183,10186],"valid",[],"NV8"],[[10187,10187],"valid",[],"NV8"],[[10188,10188],"valid",[],"NV8"],[[10189,10189],"valid",[],"NV8"],[[10190,10191],"valid",[],"NV8"],[[10192,10219],"valid",[],"NV8"],[[10220,10223],"valid",[],"NV8"],[[10224,10239],"valid",[],"NV8"],[[10240,10495],"valid",[],"NV8"],[[10496,10763],"valid",[],"NV8"],[[10764,10764],"mapped",[8747,8747,8747,8747]],[[10765,10867],"valid",[],"NV8"],[[10868,10868],"disallowed_STD3_mapped",[58,58,61]],[[10869,10869],"disallowed_STD3_mapped",[61,61]],[[10870,10870],"disallowed_STD3_mapped",[61,61,61]],[[10871,10971],"valid",[],"NV8"],[[10972,10972],"mapped",[10973,824]],[[10973,11007],"valid",[],"NV8"],[[11008,11021],"valid",[],"NV8"],[[11022,11027],"valid",[],"NV8"],[[11028,11034],"valid",[],"NV8"],[[11035,11039],"valid",[],"NV8"],[[11040,11043],"valid",[],"NV8"],[[11044,11084],"valid",[],"NV8"],[[11085,11087],"valid",[],"NV8"],[[11088,11092],"valid",[],"NV8"],[[11093,11097],"valid",[],"NV8"],[[11098,11123],"valid",[],"NV8"],[[11124,11125],"disallowed"],[[11126,11157],"valid",[],"NV8"],[[11158,11159],"disallowed"],[[11160,11193],"valid",[],"NV8"],[[11194,11196],"disallowed"],[[11197,11208],"valid",[],"NV8"],[[11209,11209],"disallowed"],[[11210,11217],"valid",[],"NV8"],[[11218,11243],"disallowed"],[[11244,11247],"valid",[],"NV8"],[[11248,11263],"disallowed"],[[11264,11264],"mapped",[11312]],[[11265,11265],"mapped",[11313]],[[11266,11266],"mapped",[11314]],[[11267,11267],"mapped",[11315]],[[11268,11268],"mapped",[11316]],[[11269,11269],"mapped",[11317]],[[11270,11270],"mapped",[11318]],[[11271,11271],"mapped",[11319]],[[11272,11272],"mapped",[11320]],[[11273,11273],"mapped",[11321]],[[11274,11274],"mapped",[11322]],[[11275,11275],"mapped",[11323]],[[11276,11276],"mapped",[11324]],[[11277,11277],"mapped",[11325]],[[11278,11278],"mapped",[11326]],[[11279,11279],"mapped",[11327]],[[11280,11280],"mapped",[11328]],[[11281,11281],"mapped",[11329]],[[11282,11282],"mapped",[11330]],[[11283,11283],"mapped",[11331]],[[11284,11284],"mapped",[11332]],[[11285,11285],"mapped",[11333]],[[11286,11286],"mapped",[11334]],[[11287,11287],"mapped",[11335]],[[11288,11288],"mapped",[11336]],[[11289,11289],"mapped",[11337]],[[11290,11290],"mapped",[11338]],[[11291,11291],"mapped",[11339]],[[11292,11292],"mapped",[11340]],[[11293,11293],"mapped",[11341]],[[11294,11294],"mapped",[11342]],[[11295,11295],"mapped",[11343]],[[11296,11296],"mapped",[11344]],[[11297,11297],"mapped",[11345]],[[11298,11298],"mapped",[11346]],[[11299,11299],"mapped",[11347]],[[11300,11300],"mapped",[11348]],[[11301,11301],"mapped",[11349]],[[11302,11302],"mapped",[11350]],[[11303,11303],"mapped",[11351]],[[11304,11304],"mapped",[11352]],[[11305,11305],"mapped",[11353]],[[11306,11306],"mapped",[11354]],[[11307,11307],"mapped",[11355]],[[11308,11308],"mapped",[11356]],[[11309,11309],"mapped",[11357]],[[11310,11310],"mapped",[11358]],[[11311,11311],"disallowed"],[[11312,11358],"valid"],[[11359,11359],"disallowed"],[[11360,11360],"mapped",[11361]],[[11361,11361],"valid"],[[11362,11362],"mapped",[619]],[[11363,11363],"mapped",[7549]],[[11364,11364],"mapped",[637]],[[11365,11366],"valid"],[[11367,11367],"mapped",[11368]],[[11368,11368],"valid"],[[11369,11369],"mapped",[11370]],[[11370,11370],"valid"],[[11371,11371],"mapped",[11372]],[[11372,11372],"valid"],[[11373,11373],"mapped",[593]],[[11374,11374],"mapped",[625]],[[11375,11375],"mapped",[592]],[[11376,11376],"mapped",[594]],[[11377,11377],"valid"],[[11378,11378],"mapped",[11379]],[[11379,11379],"valid"],[[11380,11380],"valid"],[[11381,11381],"mapped",[11382]],[[11382,11383],"valid"],[[11384,11387],"valid"],[[11388,11388],"mapped",[106]],[[11389,11389],"mapped",[118]],[[11390,11390],"mapped",[575]],[[11391,11391],"mapped",[576]],[[11392,11392],"mapped",[11393]],[[11393,11393],"valid"],[[11394,11394],"mapped",[11395]],[[11395,11395],"valid"],[[11396,11396],"mapped",[11397]],[[11397,11397],"valid"],[[11398,11398],"mapped",[11399]],[[11399,11399],"valid"],[[11400,11400],"mapped",[11401]],[[11401,11401],"valid"],[[11402,11402],"mapped",[11403]],[[11403,11403],"valid"],[[11404,11404],"mapped",[11405]],[[11405,11405],"valid"],[[11406,11406],"mapped",[11407]],[[11407,11407],"valid"],[[11408,11408],"mapped",[11409]],[[11409,11409],"valid"],[[11410,11410],"mapped",[11411]],[[11411,11411],"valid"],[[11412,11412],"mapped",[11413]],[[11413,11413],"valid"],[[11414,11414],"mapped",[11415]],[[11415,11415],"valid"],[[11416,11416],"mapped",[11417]],[[11417,11417],"valid"],[[11418,11418],"mapped",[11419]],[[11419,11419],"valid"],[[11420,11420],"mapped",[11421]],[[11421,11421],"valid"],[[11422,11422],"mapped",[11423]],[[11423,11423],"valid"],[[11424,11424],"mapped",[11425]],[[11425,11425],"valid"],[[11426,11426],"mapped",[11427]],[[11427,11427],"valid"],[[11428,11428],"mapped",[11429]],[[11429,11429],"valid"],[[11430,11430],"mapped",[11431]],[[11431,11431],"valid"],[[11432,11432],"mapped",[11433]],[[11433,11433],"valid"],[[11434,11434],"mapped",[11435]],[[11435,11435],"valid"],[[11436,11436],"mapped",[11437]],[[11437,11437],"valid"],[[11438,11438],"mapped",[11439]],[[11439,11439],"valid"],[[11440,11440],"mapped",[11441]],[[11441,11441],"valid"],[[11442,11442],"mapped",[11443]],[[11443,11443],"valid"],[[11444,11444],"mapped",[11445]],[[11445,11445],"valid"],[[11446,11446],"mapped",[11447]],[[11447,11447],"valid"],[[11448,11448],"mapped",[11449]],[[11449,11449],"valid"],[[11450,11450],"mapped",[11451]],[[11451,11451],"valid"],[[11452,11452],"mapped",[11453]],[[11453,11453],"valid"],[[11454,11454],"mapped",[11455]],[[11455,11455],"valid"],[[11456,11456],"mapped",[11457]],[[11457,11457],"valid"],[[11458,11458],"mapped",[11459]],[[11459,11459],"valid"],[[11460,11460],"mapped",[11461]],[[11461,11461],"valid"],[[11462,11462],"mapped",[11463]],[[11463,11463],"valid"],[[11464,11464],"mapped",[11465]],[[11465,11465],"valid"],[[11466,11466],"mapped",[11467]],[[11467,11467],"valid"],[[11468,11468],"mapped",[11469]],[[11469,11469],"valid"],[[11470,11470],"mapped",[11471]],[[11471,11471],"valid"],[[11472,11472],"mapped",[11473]],[[11473,11473],"valid"],[[11474,11474],"mapped",[11475]],[[11475,11475],"valid"],[[11476,11476],"mapped",[11477]],[[11477,11477],"valid"],[[11478,11478],"mapped",[11479]],[[11479,11479],"valid"],[[11480,11480],"mapped",[11481]],[[11481,11481],"valid"],[[11482,11482],"mapped",[11483]],[[11483,11483],"valid"],[[11484,11484],"mapped",[11485]],[[11485,11485],"valid"],[[11486,11486],"mapped",[11487]],[[11487,11487],"valid"],[[11488,11488],"mapped",[11489]],[[11489,11489],"valid"],[[11490,11490],"mapped",[11491]],[[11491,11492],"valid"],[[11493,11498],"valid",[],"NV8"],[[11499,11499],"mapped",[11500]],[[11500,11500],"valid"],[[11501,11501],"mapped",[11502]],[[11502,11505],"valid"],[[11506,11506],"mapped",[11507]],[[11507,11507],"valid"],[[11508,11512],"disallowed"],[[11513,11519],"valid",[],"NV8"],[[11520,11557],"valid"],[[11558,11558],"disallowed"],[[11559,11559],"valid"],[[11560,11564],"disallowed"],[[11565,11565],"valid"],[[11566,11567],"disallowed"],[[11568,11621],"valid"],[[11622,11623],"valid"],[[11624,11630],"disallowed"],[[11631,11631],"mapped",[11617]],[[11632,11632],"valid",[],"NV8"],[[11633,11646],"disallowed"],[[11647,11647],"valid"],[[11648,11670],"valid"],[[11671,11679],"disallowed"],[[11680,11686],"valid"],[[11687,11687],"disallowed"],[[11688,11694],"valid"],[[11695,11695],"disallowed"],[[11696,11702],"valid"],[[11703,11703],"disallowed"],[[11704,11710],"valid"],[[11711,11711],"disallowed"],[[11712,11718],"valid"],[[11719,11719],"disallowed"],[[11720,11726],"valid"],[[11727,11727],"disallowed"],[[11728,11734],"valid"],[[11735,11735],"disallowed"],[[11736,11742],"valid"],[[11743,11743],"disallowed"],[[11744,11775],"valid"],[[11776,11799],"valid",[],"NV8"],[[11800,11803],"valid",[],"NV8"],[[11804,11805],"valid",[],"NV8"],[[11806,11822],"valid",[],"NV8"],[[11823,11823],"valid"],[[11824,11824],"valid",[],"NV8"],[[11825,11825],"valid",[],"NV8"],[[11826,11835],"valid",[],"NV8"],[[11836,11842],"valid",[],"NV8"],[[11843,11903],"disallowed"],[[11904,11929],"valid",[],"NV8"],[[11930,11930],"disallowed"],[[11931,11934],"valid",[],"NV8"],[[11935,11935],"mapped",[27597]],[[11936,12018],"valid",[],"NV8"],[[12019,12019],"mapped",[40863]],[[12020,12031],"disallowed"],[[12032,12032],"mapped",[19968]],[[12033,12033],"mapped",[20008]],[[12034,12034],"mapped",[20022]],[[12035,12035],"mapped",[20031]],[[12036,12036],"mapped",[20057]],[[12037,12037],"mapped",[20101]],[[12038,12038],"mapped",[20108]],[[12039,12039],"mapped",[20128]],[[12040,12040],"mapped",[20154]],[[12041,12041],"mapped",[20799]],[[12042,12042],"mapped",[20837]],[[12043,12043],"mapped",[20843]],[[12044,12044],"mapped",[20866]],[[12045,12045],"mapped",[20886]],[[12046,12046],"mapped",[20907]],[[12047,12047],"mapped",[20960]],[[12048,12048],"mapped",[20981]],[[12049,12049],"mapped",[20992]],[[12050,12050],"mapped",[21147]],[[12051,12051],"mapped",[21241]],[[12052,12052],"mapped",[21269]],[[12053,12053],"mapped",[21274]],[[12054,12054],"mapped",[21304]],[[12055,12055],"mapped",[21313]],[[12056,12056],"mapped",[21340]],[[12057,12057],"mapped",[21353]],[[12058,12058],"mapped",[21378]],[[12059,12059],"mapped",[21430]],[[12060,12060],"mapped",[21448]],[[12061,12061],"mapped",[21475]],[[12062,12062],"mapped",[22231]],[[12063,12063],"mapped",[22303]],[[12064,12064],"mapped",[22763]],[[12065,12065],"mapped",[22786]],[[12066,12066],"mapped",[22794]],[[12067,12067],"mapped",[22805]],[[12068,12068],"mapped",[22823]],[[12069,12069],"mapped",[22899]],[[12070,12070],"mapped",[23376]],[[12071,12071],"mapped",[23424]],[[12072,12072],"mapped",[23544]],[[12073,12073],"mapped",[23567]],[[12074,12074],"mapped",[23586]],[[12075,12075],"mapped",[23608]],[[12076,12076],"mapped",[23662]],[[12077,12077],"mapped",[23665]],[[12078,12078],"mapped",[24027]],[[12079,12079],"mapped",[24037]],[[12080,12080],"mapped",[24049]],[[12081,12081],"mapped",[24062]],[[12082,12082],"mapped",[24178]],[[12083,12083],"mapped",[24186]],[[12084,12084],"mapped",[24191]],[[12085,12085],"mapped",[24308]],[[12086,12086],"mapped",[24318]],[[12087,12087],"mapped",[24331]],[[12088,12088],"mapped",[24339]],[[12089,12089],"mapped",[24400]],[[12090,12090],"mapped",[24417]],[[12091,12091],"mapped",[24435]],[[12092,12092],"mapped",[24515]],[[12093,12093],"mapped",[25096]],[[12094,12094],"mapped",[25142]],[[12095,12095],"mapped",[25163]],[[12096,12096],"mapped",[25903]],[[12097,12097],"mapped",[25908]],[[12098,12098],"mapped",[25991]],[[12099,12099],"mapped",[26007]],[[12100,12100],"mapped",[26020]],[[12101,12101],"mapped",[26041]],[[12102,12102],"mapped",[26080]],[[12103,12103],"mapped",[26085]],[[12104,12104],"mapped",[26352]],[[12105,12105],"mapped",[26376]],[[12106,12106],"mapped",[26408]],[[12107,12107],"mapped",[27424]],[[12108,12108],"mapped",[27490]],[[12109,12109],"mapped",[27513]],[[12110,12110],"mapped",[27571]],[[12111,12111],"mapped",[27595]],[[12112,12112],"mapped",[27604]],[[12113,12113],"mapped",[27611]],[[12114,12114],"mapped",[27663]],[[12115,12115],"mapped",[27668]],[[12116,12116],"mapped",[27700]],[[12117,12117],"mapped",[28779]],[[12118,12118],"mapped",[29226]],[[12119,12119],"mapped",[29238]],[[12120,12120],"mapped",[29243]],[[12121,12121],"mapped",[29247]],[[12122,12122],"mapped",[29255]],[[12123,12123],"mapped",[29273]],[[12124,12124],"mapped",[29275]],[[12125,12125],"mapped",[29356]],[[12126,12126],"mapped",[29572]],[[12127,12127],"mapped",[29577]],[[12128,12128],"mapped",[29916]],[[12129,12129],"mapped",[29926]],[[12130,12130],"mapped",[29976]],[[12131,12131],"mapped",[29983]],[[12132,12132],"mapped",[29992]],[[12133,12133],"mapped",[3e4]],[[12134,12134],"mapped",[30091]],[[12135,12135],"mapped",[30098]],[[12136,12136],"mapped",[30326]],[[12137,12137],"mapped",[30333]],[[12138,12138],"mapped",[30382]],[[12139,12139],"mapped",[30399]],[[12140,12140],"mapped",[30446]],[[12141,12141],"mapped",[30683]],[[12142,12142],"mapped",[30690]],[[12143,12143],"mapped",[30707]],[[12144,12144],"mapped",[31034]],[[12145,12145],"mapped",[31160]],[[12146,12146],"mapped",[31166]],[[12147,12147],"mapped",[31348]],[[12148,12148],"mapped",[31435]],[[12149,12149],"mapped",[31481]],[[12150,12150],"mapped",[31859]],[[12151,12151],"mapped",[31992]],[[12152,12152],"mapped",[32566]],[[12153,12153],"mapped",[32593]],[[12154,12154],"mapped",[32650]],[[12155,12155],"mapped",[32701]],[[12156,12156],"mapped",[32769]],[[12157,12157],"mapped",[32780]],[[12158,12158],"mapped",[32786]],[[12159,12159],"mapped",[32819]],[[12160,12160],"mapped",[32895]],[[12161,12161],"mapped",[32905]],[[12162,12162],"mapped",[33251]],[[12163,12163],"mapped",[33258]],[[12164,12164],"mapped",[33267]],[[12165,12165],"mapped",[33276]],[[12166,12166],"mapped",[33292]],[[12167,12167],"mapped",[33307]],[[12168,12168],"mapped",[33311]],[[12169,12169],"mapped",[33390]],[[12170,12170],"mapped",[33394]],[[12171,12171],"mapped",[33400]],[[12172,12172],"mapped",[34381]],[[12173,12173],"mapped",[34411]],[[12174,12174],"mapped",[34880]],[[12175,12175],"mapped",[34892]],[[12176,12176],"mapped",[34915]],[[12177,12177],"mapped",[35198]],[[12178,12178],"mapped",[35211]],[[12179,12179],"mapped",[35282]],[[12180,12180],"mapped",[35328]],[[12181,12181],"mapped",[35895]],[[12182,12182],"mapped",[35910]],[[12183,12183],"mapped",[35925]],[[12184,12184],"mapped",[35960]],[[12185,12185],"mapped",[35997]],[[12186,12186],"mapped",[36196]],[[12187,12187],"mapped",[36208]],[[12188,12188],"mapped",[36275]],[[12189,12189],"mapped",[36523]],[[12190,12190],"mapped",[36554]],[[12191,12191],"mapped",[36763]],[[12192,12192],"mapped",[36784]],[[12193,12193],"mapped",[36789]],[[12194,12194],"mapped",[37009]],[[12195,12195],"mapped",[37193]],[[12196,12196],"mapped",[37318]],[[12197,12197],"mapped",[37324]],[[12198,12198],"mapped",[37329]],[[12199,12199],"mapped",[38263]],[[12200,12200],"mapped",[38272]],[[12201,12201],"mapped",[38428]],[[12202,12202],"mapped",[38582]],[[12203,12203],"mapped",[38585]],[[12204,12204],"mapped",[38632]],[[12205,12205],"mapped",[38737]],[[12206,12206],"mapped",[38750]],[[12207,12207],"mapped",[38754]],[[12208,12208],"mapped",[38761]],[[12209,12209],"mapped",[38859]],[[12210,12210],"mapped",[38893]],[[12211,12211],"mapped",[38899]],[[12212,12212],"mapped",[38913]],[[12213,12213],"mapped",[39080]],[[12214,12214],"mapped",[39131]],[[12215,12215],"mapped",[39135]],[[12216,12216],"mapped",[39318]],[[12217,12217],"mapped",[39321]],[[12218,12218],"mapped",[39340]],[[12219,12219],"mapped",[39592]],[[12220,12220],"mapped",[39640]],[[12221,12221],"mapped",[39647]],[[12222,12222],"mapped",[39717]],[[12223,12223],"mapped",[39727]],[[12224,12224],"mapped",[39730]],[[12225,12225],"mapped",[39740]],[[12226,12226],"mapped",[39770]],[[12227,12227],"mapped",[40165]],[[12228,12228],"mapped",[40565]],[[12229,12229],"mapped",[40575]],[[12230,12230],"mapped",[40613]],[[12231,12231],"mapped",[40635]],[[12232,12232],"mapped",[40643]],[[12233,12233],"mapped",[40653]],[[12234,12234],"mapped",[40657]],[[12235,12235],"mapped",[40697]],[[12236,12236],"mapped",[40701]],[[12237,12237],"mapped",[40718]],[[12238,12238],"mapped",[40723]],[[12239,12239],"mapped",[40736]],[[12240,12240],"mapped",[40763]],[[12241,12241],"mapped",[40778]],[[12242,12242],"mapped",[40786]],[[12243,12243],"mapped",[40845]],[[12244,12244],"mapped",[40860]],[[12245,12245],"mapped",[40864]],[[12246,12271],"disallowed"],[[12272,12283],"disallowed"],[[12284,12287],"disallowed"],[[12288,12288],"disallowed_STD3_mapped",[32]],[[12289,12289],"valid",[],"NV8"],[[12290,12290],"mapped",[46]],[[12291,12292],"valid",[],"NV8"],[[12293,12295],"valid"],[[12296,12329],"valid",[],"NV8"],[[12330,12333],"valid"],[[12334,12341],"valid",[],"NV8"],[[12342,12342],"mapped",[12306]],[[12343,12343],"valid",[],"NV8"],[[12344,12344],"mapped",[21313]],[[12345,12345],"mapped",[21316]],[[12346,12346],"mapped",[21317]],[[12347,12347],"valid",[],"NV8"],[[12348,12348],"valid"],[[12349,12349],"valid",[],"NV8"],[[12350,12350],"valid",[],"NV8"],[[12351,12351],"valid",[],"NV8"],[[12352,12352],"disallowed"],[[12353,12436],"valid"],[[12437,12438],"valid"],[[12439,12440],"disallowed"],[[12441,12442],"valid"],[[12443,12443],"disallowed_STD3_mapped",[32,12441]],[[12444,12444],"disallowed_STD3_mapped",[32,12442]],[[12445,12446],"valid"],[[12447,12447],"mapped",[12424,12426]],[[12448,12448],"valid",[],"NV8"],[[12449,12542],"valid"],[[12543,12543],"mapped",[12467,12488]],[[12544,12548],"disallowed"],[[12549,12588],"valid"],[[12589,12589],"valid"],[[12590,12592],"disallowed"],[[12593,12593],"mapped",[4352]],[[12594,12594],"mapped",[4353]],[[12595,12595],"mapped",[4522]],[[12596,12596],"mapped",[4354]],[[12597,12597],"mapped",[4524]],[[12598,12598],"mapped",[4525]],[[12599,12599],"mapped",[4355]],[[12600,12600],"mapped",[4356]],[[12601,12601],"mapped",[4357]],[[12602,12602],"mapped",[4528]],[[12603,12603],"mapped",[4529]],[[12604,12604],"mapped",[4530]],[[12605,12605],"mapped",[4531]],[[12606,12606],"mapped",[4532]],[[12607,12607],"mapped",[4533]],[[12608,12608],"mapped",[4378]],[[12609,12609],"mapped",[4358]],[[12610,12610],"mapped",[4359]],[[12611,12611],"mapped",[4360]],[[12612,12612],"mapped",[4385]],[[12613,12613],"mapped",[4361]],[[12614,12614],"mapped",[4362]],[[12615,12615],"mapped",[4363]],[[12616,12616],"mapped",[4364]],[[12617,12617],"mapped",[4365]],[[12618,12618],"mapped",[4366]],[[12619,12619],"mapped",[4367]],[[12620,12620],"mapped",[4368]],[[12621,12621],"mapped",[4369]],[[12622,12622],"mapped",[4370]],[[12623,12623],"mapped",[4449]],[[12624,12624],"mapped",[4450]],[[12625,12625],"mapped",[4451]],[[12626,12626],"mapped",[4452]],[[12627,12627],"mapped",[4453]],[[12628,12628],"mapped",[4454]],[[12629,12629],"mapped",[4455]],[[12630,12630],"mapped",[4456]],[[12631,12631],"mapped",[4457]],[[12632,12632],"mapped",[4458]],[[12633,12633],"mapped",[4459]],[[12634,12634],"mapped",[4460]],[[12635,12635],"mapped",[4461]],[[12636,12636],"mapped",[4462]],[[12637,12637],"mapped",[4463]],[[12638,12638],"mapped",[4464]],[[12639,12639],"mapped",[4465]],[[12640,12640],"mapped",[4466]],[[12641,12641],"mapped",[4467]],[[12642,12642],"mapped",[4468]],[[12643,12643],"mapped",[4469]],[[12644,12644],"disallowed"],[[12645,12645],"mapped",[4372]],[[12646,12646],"mapped",[4373]],[[12647,12647],"mapped",[4551]],[[12648,12648],"mapped",[4552]],[[12649,12649],"mapped",[4556]],[[12650,12650],"mapped",[4558]],[[12651,12651],"mapped",[4563]],[[12652,12652],"mapped",[4567]],[[12653,12653],"mapped",[4569]],[[12654,12654],"mapped",[4380]],[[12655,12655],"mapped",[4573]],[[12656,12656],"mapped",[4575]],[[12657,12657],"mapped",[4381]],[[12658,12658],"mapped",[4382]],[[12659,12659],"mapped",[4384]],[[12660,12660],"mapped",[4386]],[[12661,12661],"mapped",[4387]],[[12662,12662],"mapped",[4391]],[[12663,12663],"mapped",[4393]],[[12664,12664],"mapped",[4395]],[[12665,12665],"mapped",[4396]],[[12666,12666],"mapped",[4397]],[[12667,12667],"mapped",[4398]],[[12668,12668],"mapped",[4399]],[[12669,12669],"mapped",[4402]],[[12670,12670],"mapped",[4406]],[[12671,12671],"mapped",[4416]],[[12672,12672],"mapped",[4423]],[[12673,12673],"mapped",[4428]],[[12674,12674],"mapped",[4593]],[[12675,12675],"mapped",[4594]],[[12676,12676],"mapped",[4439]],[[12677,12677],"mapped",[4440]],[[12678,12678],"mapped",[4441]],[[12679,12679],"mapped",[4484]],[[12680,12680],"mapped",[4485]],[[12681,12681],"mapped",[4488]],[[12682,12682],"mapped",[4497]],[[12683,12683],"mapped",[4498]],[[12684,12684],"mapped",[4500]],[[12685,12685],"mapped",[4510]],[[12686,12686],"mapped",[4513]],[[12687,12687],"disallowed"],[[12688,12689],"valid",[],"NV8"],[[12690,12690],"mapped",[19968]],[[12691,12691],"mapped",[20108]],[[12692,12692],"mapped",[19977]],[[12693,12693],"mapped",[22235]],[[12694,12694],"mapped",[19978]],[[12695,12695],"mapped",[20013]],[[12696,12696],"mapped",[19979]],[[12697,12697],"mapped",[30002]],[[12698,12698],"mapped",[20057]],[[12699,12699],"mapped",[19993]],[[12700,12700],"mapped",[19969]],[[12701,12701],"mapped",[22825]],[[12702,12702],"mapped",[22320]],[[12703,12703],"mapped",[20154]],[[12704,12727],"valid"],[[12728,12730],"valid"],[[12731,12735],"disallowed"],[[12736,12751],"valid",[],"NV8"],[[12752,12771],"valid",[],"NV8"],[[12772,12783],"disallowed"],[[12784,12799],"valid"],[[12800,12800],"disallowed_STD3_mapped",[40,4352,41]],[[12801,12801],"disallowed_STD3_mapped",[40,4354,41]],[[12802,12802],"disallowed_STD3_mapped",[40,4355,41]],[[12803,12803],"disallowed_STD3_mapped",[40,4357,41]],[[12804,12804],"disallowed_STD3_mapped",[40,4358,41]],[[12805,12805],"disallowed_STD3_mapped",[40,4359,41]],[[12806,12806],"disallowed_STD3_mapped",[40,4361,41]],[[12807,12807],"disallowed_STD3_mapped",[40,4363,41]],[[12808,12808],"disallowed_STD3_mapped",[40,4364,41]],[[12809,12809],"disallowed_STD3_mapped",[40,4366,41]],[[12810,12810],"disallowed_STD3_mapped",[40,4367,41]],[[12811,12811],"disallowed_STD3_mapped",[40,4368,41]],[[12812,12812],"disallowed_STD3_mapped",[40,4369,41]],[[12813,12813],"disallowed_STD3_mapped",[40,4370,41]],[[12814,12814],"disallowed_STD3_mapped",[40,44032,41]],[[12815,12815],"disallowed_STD3_mapped",[40,45208,41]],[[12816,12816],"disallowed_STD3_mapped",[40,45796,41]],[[12817,12817],"disallowed_STD3_mapped",[40,46972,41]],[[12818,12818],"disallowed_STD3_mapped",[40,47560,41]],[[12819,12819],"disallowed_STD3_mapped",[40,48148,41]],[[12820,12820],"disallowed_STD3_mapped",[40,49324,41]],[[12821,12821],"disallowed_STD3_mapped",[40,50500,41]],[[12822,12822],"disallowed_STD3_mapped",[40,51088,41]],[[12823,12823],"disallowed_STD3_mapped",[40,52264,41]],[[12824,12824],"disallowed_STD3_mapped",[40,52852,41]],[[12825,12825],"disallowed_STD3_mapped",[40,53440,41]],[[12826,12826],"disallowed_STD3_mapped",[40,54028,41]],[[12827,12827],"disallowed_STD3_mapped",[40,54616,41]],[[12828,12828],"disallowed_STD3_mapped",[40,51452,41]],[[12829,12829],"disallowed_STD3_mapped",[40,50724,51204,41]],[[12830,12830],"disallowed_STD3_mapped",[40,50724,54980,41]],[[12831,12831],"disallowed"],[[12832,12832],"disallowed_STD3_mapped",[40,19968,41]],[[12833,12833],"disallowed_STD3_mapped",[40,20108,41]],[[12834,12834],"disallowed_STD3_mapped",[40,19977,41]],[[12835,12835],"disallowed_STD3_mapped",[40,22235,41]],[[12836,12836],"disallowed_STD3_mapped",[40,20116,41]],[[12837,12837],"disallowed_STD3_mapped",[40,20845,41]],[[12838,12838],"disallowed_STD3_mapped",[40,19971,41]],[[12839,12839],"disallowed_STD3_mapped",[40,20843,41]],[[12840,12840],"disallowed_STD3_mapped",[40,20061,41]],[[12841,12841],"disallowed_STD3_mapped",[40,21313,41]],[[12842,12842],"disallowed_STD3_mapped",[40,26376,41]],[[12843,12843],"disallowed_STD3_mapped",[40,28779,41]],[[12844,12844],"disallowed_STD3_mapped",[40,27700,41]],[[12845,12845],"disallowed_STD3_mapped",[40,26408,41]],[[12846,12846],"disallowed_STD3_mapped",[40,37329,41]],[[12847,12847],"disallowed_STD3_mapped",[40,22303,41]],[[12848,12848],"disallowed_STD3_mapped",[40,26085,41]],[[12849,12849],"disallowed_STD3_mapped",[40,26666,41]],[[12850,12850],"disallowed_STD3_mapped",[40,26377,41]],[[12851,12851],"disallowed_STD3_mapped",[40,31038,41]],[[12852,12852],"disallowed_STD3_mapped",[40,21517,41]],[[12853,12853],"disallowed_STD3_mapped",[40,29305,41]],[[12854,12854],"disallowed_STD3_mapped",[40,36001,41]],[[12855,12855],"disallowed_STD3_mapped",[40,31069,41]],[[12856,12856],"disallowed_STD3_mapped",[40,21172,41]],[[12857,12857],"disallowed_STD3_mapped",[40,20195,41]],[[12858,12858],"disallowed_STD3_mapped",[40,21628,41]],[[12859,12859],"disallowed_STD3_mapped",[40,23398,41]],[[12860,12860],"disallowed_STD3_mapped",[40,30435,41]],[[12861,12861],"disallowed_STD3_mapped",[40,20225,41]],[[12862,12862],"disallowed_STD3_mapped",[40,36039,41]],[[12863,12863],"disallowed_STD3_mapped",[40,21332,41]],[[12864,12864],"disallowed_STD3_mapped",[40,31085,41]],[[12865,12865],"disallowed_STD3_mapped",[40,20241,41]],[[12866,12866],"disallowed_STD3_mapped",[40,33258,41]],[[12867,12867],"disallowed_STD3_mapped",[40,33267,41]],[[12868,12868],"mapped",[21839]],[[12869,12869],"mapped",[24188]],[[12870,12870],"mapped",[25991]],[[12871,12871],"mapped",[31631]],[[12872,12879],"valid",[],"NV8"],[[12880,12880],"mapped",[112,116,101]],[[12881,12881],"mapped",[50,49]],[[12882,12882],"mapped",[50,50]],[[12883,12883],"mapped",[50,51]],[[12884,12884],"mapped",[50,52]],[[12885,12885],"mapped",[50,53]],[[12886,12886],"mapped",[50,54]],[[12887,12887],"mapped",[50,55]],[[12888,12888],"mapped",[50,56]],[[12889,12889],"mapped",[50,57]],[[12890,12890],"mapped",[51,48]],[[12891,12891],"mapped",[51,49]],[[12892,12892],"mapped",[51,50]],[[12893,12893],"mapped",[51,51]],[[12894,12894],"mapped",[51,52]],[[12895,12895],"mapped",[51,53]],[[12896,12896],"mapped",[4352]],[[12897,12897],"mapped",[4354]],[[12898,12898],"mapped",[4355]],[[12899,12899],"mapped",[4357]],[[12900,12900],"mapped",[4358]],[[12901,12901],"mapped",[4359]],[[12902,12902],"mapped",[4361]],[[12903,12903],"mapped",[4363]],[[12904,12904],"mapped",[4364]],[[12905,12905],"mapped",[4366]],[[12906,12906],"mapped",[4367]],[[12907,12907],"mapped",[4368]],[[12908,12908],"mapped",[4369]],[[12909,12909],"mapped",[4370]],[[12910,12910],"mapped",[44032]],[[12911,12911],"mapped",[45208]],[[12912,12912],"mapped",[45796]],[[12913,12913],"mapped",[46972]],[[12914,12914],"mapped",[47560]],[[12915,12915],"mapped",[48148]],[[12916,12916],"mapped",[49324]],[[12917,12917],"mapped",[50500]],[[12918,12918],"mapped",[51088]],[[12919,12919],"mapped",[52264]],[[12920,12920],"mapped",[52852]],[[12921,12921],"mapped",[53440]],[[12922,12922],"mapped",[54028]],[[12923,12923],"mapped",[54616]],[[12924,12924],"mapped",[52280,44256]],[[12925,12925],"mapped",[51452,51032]],[[12926,12926],"mapped",[50864]],[[12927,12927],"valid",[],"NV8"],[[12928,12928],"mapped",[19968]],[[12929,12929],"mapped",[20108]],[[12930,12930],"mapped",[19977]],[[12931,12931],"mapped",[22235]],[[12932,12932],"mapped",[20116]],[[12933,12933],"mapped",[20845]],[[12934,12934],"mapped",[19971]],[[12935,12935],"mapped",[20843]],[[12936,12936],"mapped",[20061]],[[12937,12937],"mapped",[21313]],[[12938,12938],"mapped",[26376]],[[12939,12939],"mapped",[28779]],[[12940,12940],"mapped",[27700]],[[12941,12941],"mapped",[26408]],[[12942,12942],"mapped",[37329]],[[12943,12943],"mapped",[22303]],[[12944,12944],"mapped",[26085]],[[12945,12945],"mapped",[26666]],[[12946,12946],"mapped",[26377]],[[12947,12947],"mapped",[31038]],[[12948,12948],"mapped",[21517]],[[12949,12949],"mapped",[29305]],[[12950,12950],"mapped",[36001]],[[12951,12951],"mapped",[31069]],[[12952,12952],"mapped",[21172]],[[12953,12953],"mapped",[31192]],[[12954,12954],"mapped",[30007]],[[12955,12955],"mapped",[22899]],[[12956,12956],"mapped",[36969]],[[12957,12957],"mapped",[20778]],[[12958,12958],"mapped",[21360]],[[12959,12959],"mapped",[27880]],[[12960,12960],"mapped",[38917]],[[12961,12961],"mapped",[20241]],[[12962,12962],"mapped",[20889]],[[12963,12963],"mapped",[27491]],[[12964,12964],"mapped",[19978]],[[12965,12965],"mapped",[20013]],[[12966,12966],"mapped",[19979]],[[12967,12967],"mapped",[24038]],[[12968,12968],"mapped",[21491]],[[12969,12969],"mapped",[21307]],[[12970,12970],"mapped",[23447]],[[12971,12971],"mapped",[23398]],[[12972,12972],"mapped",[30435]],[[12973,12973],"mapped",[20225]],[[12974,12974],"mapped",[36039]],[[12975,12975],"mapped",[21332]],[[12976,12976],"mapped",[22812]],[[12977,12977],"mapped",[51,54]],[[12978,12978],"mapped",[51,55]],[[12979,12979],"mapped",[51,56]],[[12980,12980],"mapped",[51,57]],[[12981,12981],"mapped",[52,48]],[[12982,12982],"mapped",[52,49]],[[12983,12983],"mapped",[52,50]],[[12984,12984],"mapped",[52,51]],[[12985,12985],"mapped",[52,52]],[[12986,12986],"mapped",[52,53]],[[12987,12987],"mapped",[52,54]],[[12988,12988],"mapped",[52,55]],[[12989,12989],"mapped",[52,56]],[[12990,12990],"mapped",[52,57]],[[12991,12991],"mapped",[53,48]],[[12992,12992],"mapped",[49,26376]],[[12993,12993],"mapped",[50,26376]],[[12994,12994],"mapped",[51,26376]],[[12995,12995],"mapped",[52,26376]],[[12996,12996],"mapped",[53,26376]],[[12997,12997],"mapped",[54,26376]],[[12998,12998],"mapped",[55,26376]],[[12999,12999],"mapped",[56,26376]],[[13e3,13e3],"mapped",[57,26376]],[[13001,13001],"mapped",[49,48,26376]],[[13002,13002],"mapped",[49,49,26376]],[[13003,13003],"mapped",[49,50,26376]],[[13004,13004],"mapped",[104,103]],[[13005,13005],"mapped",[101,114,103]],[[13006,13006],"mapped",[101,118]],[[13007,13007],"mapped",[108,116,100]],[[13008,13008],"mapped",[12450]],[[13009,13009],"mapped",[12452]],[[13010,13010],"mapped",[12454]],[[13011,13011],"mapped",[12456]],[[13012,13012],"mapped",[12458]],[[13013,13013],"mapped",[12459]],[[13014,13014],"mapped",[12461]],[[13015,13015],"mapped",[12463]],[[13016,13016],"mapped",[12465]],[[13017,13017],"mapped",[12467]],[[13018,13018],"mapped",[12469]],[[13019,13019],"mapped",[12471]],[[13020,13020],"mapped",[12473]],[[13021,13021],"mapped",[12475]],[[13022,13022],"mapped",[12477]],[[13023,13023],"mapped",[12479]],[[13024,13024],"mapped",[12481]],[[13025,13025],"mapped",[12484]],[[13026,13026],"mapped",[12486]],[[13027,13027],"mapped",[12488]],[[13028,13028],"mapped",[12490]],[[13029,13029],"mapped",[12491]],[[13030,13030],"mapped",[12492]],[[13031,13031],"mapped",[12493]],[[13032,13032],"mapped",[12494]],[[13033,13033],"mapped",[12495]],[[13034,13034],"mapped",[12498]],[[13035,13035],"mapped",[12501]],[[13036,13036],"mapped",[12504]],[[13037,13037],"mapped",[12507]],[[13038,13038],"mapped",[12510]],[[13039,13039],"mapped",[12511]],[[13040,13040],"mapped",[12512]],[[13041,13041],"mapped",[12513]],[[13042,13042],"mapped",[12514]],[[13043,13043],"mapped",[12516]],[[13044,13044],"mapped",[12518]],[[13045,13045],"mapped",[12520]],[[13046,13046],"mapped",[12521]],[[13047,13047],"mapped",[12522]],[[13048,13048],"mapped",[12523]],[[13049,13049],"mapped",[12524]],[[13050,13050],"mapped",[12525]],[[13051,13051],"mapped",[12527]],[[13052,13052],"mapped",[12528]],[[13053,13053],"mapped",[12529]],[[13054,13054],"mapped",[12530]],[[13055,13055],"disallowed"],[[13056,13056],"mapped",[12450,12497,12540,12488]],[[13057,13057],"mapped",[12450,12523,12501,12449]],[[13058,13058],"mapped",[12450,12531,12506,12450]],[[13059,13059],"mapped",[12450,12540,12523]],[[13060,13060],"mapped",[12452,12491,12531,12464]],[[13061,13061],"mapped",[12452,12531,12481]],[[13062,13062],"mapped",[12454,12457,12531]],[[13063,13063],"mapped",[12456,12473,12463,12540,12489]],[[13064,13064],"mapped",[12456,12540,12459,12540]],[[13065,13065],"mapped",[12458,12531,12473]],[[13066,13066],"mapped",[12458,12540,12512]],[[13067,13067],"mapped",[12459,12452,12522]],[[13068,13068],"mapped",[12459,12521,12483,12488]],[[13069,13069],"mapped",[12459,12525,12522,12540]],[[13070,13070],"mapped",[12460,12525,12531]],[[13071,13071],"mapped",[12460,12531,12510]],[[13072,13072],"mapped",[12462,12460]],[[13073,13073],"mapped",[12462,12491,12540]],[[13074,13074],"mapped",[12461,12517,12522,12540]],[[13075,13075],"mapped",[12462,12523,12480,12540]],[[13076,13076],"mapped",[12461,12525]],[[13077,13077],"mapped",[12461,12525,12464,12521,12512]],[[13078,13078],"mapped",[12461,12525,12513,12540,12488,12523]],[[13079,13079],"mapped",[12461,12525,12527,12483,12488]],[[13080,13080],"mapped",[12464,12521,12512]],[[13081,13081],"mapped",[12464,12521,12512,12488,12531]],[[13082,13082],"mapped",[12463,12523,12476,12452,12525]],[[13083,13083],"mapped",[12463,12525,12540,12493]],[[13084,13084],"mapped",[12465,12540,12473]],[[13085,13085],"mapped",[12467,12523,12490]],[[13086,13086],"mapped",[12467,12540,12509]],[[13087,13087],"mapped",[12469,12452,12463,12523]],[[13088,13088],"mapped",[12469,12531,12481,12540,12512]],[[13089,13089],"mapped",[12471,12522,12531,12464]],[[13090,13090],"mapped",[12475,12531,12481]],[[13091,13091],"mapped",[12475,12531,12488]],[[13092,13092],"mapped",[12480,12540,12473]],[[13093,13093],"mapped",[12487,12471]],[[13094,13094],"mapped",[12489,12523]],[[13095,13095],"mapped",[12488,12531]],[[13096,13096],"mapped",[12490,12494]],[[13097,13097],"mapped",[12494,12483,12488]],[[13098,13098],"mapped",[12495,12452,12484]],[[13099,13099],"mapped",[12497,12540,12475,12531,12488]],[[13100,13100],"mapped",[12497,12540,12484]],[[13101,13101],"mapped",[12496,12540,12524,12523]],[[13102,13102],"mapped",[12500,12450,12473,12488,12523]],[[13103,13103],"mapped",[12500,12463,12523]],[[13104,13104],"mapped",[12500,12467]],[[13105,13105],"mapped",[12499,12523]],[[13106,13106],"mapped",[12501,12449,12521,12483,12489]],[[13107,13107],"mapped",[12501,12451,12540,12488]],[[13108,13108],"mapped",[12502,12483,12471,12455,12523]],[[13109,13109],"mapped",[12501,12521,12531]],[[13110,13110],"mapped",[12504,12463,12479,12540,12523]],[[13111,13111],"mapped",[12506,12477]],[[13112,13112],"mapped",[12506,12491,12498]],[[13113,13113],"mapped",[12504,12523,12484]],[[13114,13114],"mapped",[12506,12531,12473]],[[13115,13115],"mapped",[12506,12540,12472]],[[13116,13116],"mapped",[12505,12540,12479]],[[13117,13117],"mapped",[12509,12452,12531,12488]],[[13118,13118],"mapped",[12508,12523,12488]],[[13119,13119],"mapped",[12507,12531]],[[13120,13120],"mapped",[12509,12531,12489]],[[13121,13121],"mapped",[12507,12540,12523]],[[13122,13122],"mapped",[12507,12540,12531]],[[13123,13123],"mapped",[12510,12452,12463,12525]],[[13124,13124],"mapped",[12510,12452,12523]],[[13125,13125],"mapped",[12510,12483,12495]],[[13126,13126],"mapped",[12510,12523,12463]],[[13127,13127],"mapped",[12510,12531,12471,12519,12531]],[[13128,13128],"mapped",[12511,12463,12525,12531]],[[13129,13129],"mapped",[12511,12522]],[[13130,13130],"mapped",[12511,12522,12496,12540,12523]],[[13131,13131],"mapped",[12513,12460]],[[13132,13132],"mapped",[12513,12460,12488,12531]],[[13133,13133],"mapped",[12513,12540,12488,12523]],[[13134,13134],"mapped",[12516,12540,12489]],[[13135,13135],"mapped",[12516,12540,12523]],[[13136,13136],"mapped",[12518,12450,12531]],[[13137,13137],"mapped",[12522,12483,12488,12523]],[[13138,13138],"mapped",[12522,12521]],[[13139,13139],"mapped",[12523,12500,12540]],[[13140,13140],"mapped",[12523,12540,12502,12523]],[[13141,13141],"mapped",[12524,12512]],[[13142,13142],"mapped",[12524,12531,12488,12466,12531]],[[13143,13143],"mapped",[12527,12483,12488]],[[13144,13144],"mapped",[48,28857]],[[13145,13145],"mapped",[49,28857]],[[13146,13146],"mapped",[50,28857]],[[13147,13147],"mapped",[51,28857]],[[13148,13148],"mapped",[52,28857]],[[13149,13149],"mapped",[53,28857]],[[13150,13150],"mapped",[54,28857]],[[13151,13151],"mapped",[55,28857]],[[13152,13152],"mapped",[56,28857]],[[13153,13153],"mapped",[57,28857]],[[13154,13154],"mapped",[49,48,28857]],[[13155,13155],"mapped",[49,49,28857]],[[13156,13156],"mapped",[49,50,28857]],[[13157,13157],"mapped",[49,51,28857]],[[13158,13158],"mapped",[49,52,28857]],[[13159,13159],"mapped",[49,53,28857]],[[13160,13160],"mapped",[49,54,28857]],[[13161,13161],"mapped",[49,55,28857]],[[13162,13162],"mapped",[49,56,28857]],[[13163,13163],"mapped",[49,57,28857]],[[13164,13164],"mapped",[50,48,28857]],[[13165,13165],"mapped",[50,49,28857]],[[13166,13166],"mapped",[50,50,28857]],[[13167,13167],"mapped",[50,51,28857]],[[13168,13168],"mapped",[50,52,28857]],[[13169,13169],"mapped",[104,112,97]],[[13170,13170],"mapped",[100,97]],[[13171,13171],"mapped",[97,117]],[[13172,13172],"mapped",[98,97,114]],[[13173,13173],"mapped",[111,118]],[[13174,13174],"mapped",[112,99]],[[13175,13175],"mapped",[100,109]],[[13176,13176],"mapped",[100,109,50]],[[13177,13177],"mapped",[100,109,51]],[[13178,13178],"mapped",[105,117]],[[13179,13179],"mapped",[24179,25104]],[[13180,13180],"mapped",[26157,21644]],[[13181,13181],"mapped",[22823,27491]],[[13182,13182],"mapped",[26126,27835]],[[13183,13183],"mapped",[26666,24335,20250,31038]],[[13184,13184],"mapped",[112,97]],[[13185,13185],"mapped",[110,97]],[[13186,13186],"mapped",[956,97]],[[13187,13187],"mapped",[109,97]],[[13188,13188],"mapped",[107,97]],[[13189,13189],"mapped",[107,98]],[[13190,13190],"mapped",[109,98]],[[13191,13191],"mapped",[103,98]],[[13192,13192],"mapped",[99,97,108]],[[13193,13193],"mapped",[107,99,97,108]],[[13194,13194],"mapped",[112,102]],[[13195,13195],"mapped",[110,102]],[[13196,13196],"mapped",[956,102]],[[13197,13197],"mapped",[956,103]],[[13198,13198],"mapped",[109,103]],[[13199,13199],"mapped",[107,103]],[[13200,13200],"mapped",[104,122]],[[13201,13201],"mapped",[107,104,122]],[[13202,13202],"mapped",[109,104,122]],[[13203,13203],"mapped",[103,104,122]],[[13204,13204],"mapped",[116,104,122]],[[13205,13205],"mapped",[956,108]],[[13206,13206],"mapped",[109,108]],[[13207,13207],"mapped",[100,108]],[[13208,13208],"mapped",[107,108]],[[13209,13209],"mapped",[102,109]],[[13210,13210],"mapped",[110,109]],[[13211,13211],"mapped",[956,109]],[[13212,13212],"mapped",[109,109]],[[13213,13213],"mapped",[99,109]],[[13214,13214],"mapped",[107,109]],[[13215,13215],"mapped",[109,109,50]],[[13216,13216],"mapped",[99,109,50]],[[13217,13217],"mapped",[109,50]],[[13218,13218],"mapped",[107,109,50]],[[13219,13219],"mapped",[109,109,51]],[[13220,13220],"mapped",[99,109,51]],[[13221,13221],"mapped",[109,51]],[[13222,13222],"mapped",[107,109,51]],[[13223,13223],"mapped",[109,8725,115]],[[13224,13224],"mapped",[109,8725,115,50]],[[13225,13225],"mapped",[112,97]],[[13226,13226],"mapped",[107,112,97]],[[13227,13227],"mapped",[109,112,97]],[[13228,13228],"mapped",[103,112,97]],[[13229,13229],"mapped",[114,97,100]],[[13230,13230],"mapped",[114,97,100,8725,115]],[[13231,13231],"mapped",[114,97,100,8725,115,50]],[[13232,13232],"mapped",[112,115]],[[13233,13233],"mapped",[110,115]],[[13234,13234],"mapped",[956,115]],[[13235,13235],"mapped",[109,115]],[[13236,13236],"mapped",[112,118]],[[13237,13237],"mapped",[110,118]],[[13238,13238],"mapped",[956,118]],[[13239,13239],"mapped",[109,118]],[[13240,13240],"mapped",[107,118]],[[13241,13241],"mapped",[109,118]],[[13242,13242],"mapped",[112,119]],[[13243,13243],"mapped",[110,119]],[[13244,13244],"mapped",[956,119]],[[13245,13245],"mapped",[109,119]],[[13246,13246],"mapped",[107,119]],[[13247,13247],"mapped",[109,119]],[[13248,13248],"mapped",[107,969]],[[13249,13249],"mapped",[109,969]],[[13250,13250],"disallowed"],[[13251,13251],"mapped",[98,113]],[[13252,13252],"mapped",[99,99]],[[13253,13253],"mapped",[99,100]],[[13254,13254],"mapped",[99,8725,107,103]],[[13255,13255],"disallowed"],[[13256,13256],"mapped",[100,98]],[[13257,13257],"mapped",[103,121]],[[13258,13258],"mapped",[104,97]],[[13259,13259],"mapped",[104,112]],[[13260,13260],"mapped",[105,110]],[[13261,13261],"mapped",[107,107]],[[13262,13262],"mapped",[107,109]],[[13263,13263],"mapped",[107,116]],[[13264,13264],"mapped",[108,109]],[[13265,13265],"mapped",[108,110]],[[13266,13266],"mapped",[108,111,103]],[[13267,13267],"mapped",[108,120]],[[13268,13268],"mapped",[109,98]],[[13269,13269],"mapped",[109,105,108]],[[13270,13270],"mapped",[109,111,108]],[[13271,13271],"mapped",[112,104]],[[13272,13272],"disallowed"],[[13273,13273],"mapped",[112,112,109]],[[13274,13274],"mapped",[112,114]],[[13275,13275],"mapped",[115,114]],[[13276,13276],"mapped",[115,118]],[[13277,13277],"mapped",[119,98]],[[13278,13278],"mapped",[118,8725,109]],[[13279,13279],"mapped",[97,8725,109]],[[13280,13280],"mapped",[49,26085]],[[13281,13281],"mapped",[50,26085]],[[13282,13282],"mapped",[51,26085]],[[13283,13283],"mapped",[52,26085]],[[13284,13284],"mapped",[53,26085]],[[13285,13285],"mapped",[54,26085]],[[13286,13286],"mapped",[55,26085]],[[13287,13287],"mapped",[56,26085]],[[13288,13288],"mapped",[57,26085]],[[13289,13289],"mapped",[49,48,26085]],[[13290,13290],"mapped",[49,49,26085]],[[13291,13291],"mapped",[49,50,26085]],[[13292,13292],"mapped",[49,51,26085]],[[13293,13293],"mapped",[49,52,26085]],[[13294,13294],"mapped",[49,53,26085]],[[13295,13295],"mapped",[49,54,26085]],[[13296,13296],"mapped",[49,55,26085]],[[13297,13297],"mapped",[49,56,26085]],[[13298,13298],"mapped",[49,57,26085]],[[13299,13299],"mapped",[50,48,26085]],[[13300,13300],"mapped",[50,49,26085]],[[13301,13301],"mapped",[50,50,26085]],[[13302,13302],"mapped",[50,51,26085]],[[13303,13303],"mapped",[50,52,26085]],[[13304,13304],"mapped",[50,53,26085]],[[13305,13305],"mapped",[50,54,26085]],[[13306,13306],"mapped",[50,55,26085]],[[13307,13307],"mapped",[50,56,26085]],[[13308,13308],"mapped",[50,57,26085]],[[13309,13309],"mapped",[51,48,26085]],[[13310,13310],"mapped",[51,49,26085]],[[13311,13311],"mapped",[103,97,108]],[[13312,19893],"valid"],[[19894,19903],"disallowed"],[[19904,19967],"valid",[],"NV8"],[[19968,40869],"valid"],[[40870,40891],"valid"],[[40892,40899],"valid"],[[40900,40907],"valid"],[[40908,40908],"valid"],[[40909,40917],"valid"],[[40918,40959],"disallowed"],[[40960,42124],"valid"],[[42125,42127],"disallowed"],[[42128,42145],"valid",[],"NV8"],[[42146,42147],"valid",[],"NV8"],[[42148,42163],"valid",[],"NV8"],[[42164,42164],"valid",[],"NV8"],[[42165,42176],"valid",[],"NV8"],[[42177,42177],"valid",[],"NV8"],[[42178,42180],"valid",[],"NV8"],[[42181,42181],"valid",[],"NV8"],[[42182,42182],"valid",[],"NV8"],[[42183,42191],"disallowed"],[[42192,42237],"valid"],[[42238,42239],"valid",[],"NV8"],[[42240,42508],"valid"],[[42509,42511],"valid",[],"NV8"],[[42512,42539],"valid"],[[42540,42559],"disallowed"],[[42560,42560],"mapped",[42561]],[[42561,42561],"valid"],[[42562,42562],"mapped",[42563]],[[42563,42563],"valid"],[[42564,42564],"mapped",[42565]],[[42565,42565],"valid"],[[42566,42566],"mapped",[42567]],[[42567,42567],"valid"],[[42568,42568],"mapped",[42569]],[[42569,42569],"valid"],[[42570,42570],"mapped",[42571]],[[42571,42571],"valid"],[[42572,42572],"mapped",[42573]],[[42573,42573],"valid"],[[42574,42574],"mapped",[42575]],[[42575,42575],"valid"],[[42576,42576],"mapped",[42577]],[[42577,42577],"valid"],[[42578,42578],"mapped",[42579]],[[42579,42579],"valid"],[[42580,42580],"mapped",[42581]],[[42581,42581],"valid"],[[42582,42582],"mapped",[42583]],[[42583,42583],"valid"],[[42584,42584],"mapped",[42585]],[[42585,42585],"valid"],[[42586,42586],"mapped",[42587]],[[42587,42587],"valid"],[[42588,42588],"mapped",[42589]],[[42589,42589],"valid"],[[42590,42590],"mapped",[42591]],[[42591,42591],"valid"],[[42592,42592],"mapped",[42593]],[[42593,42593],"valid"],[[42594,42594],"mapped",[42595]],[[42595,42595],"valid"],[[42596,42596],"mapped",[42597]],[[42597,42597],"valid"],[[42598,42598],"mapped",[42599]],[[42599,42599],"valid"],[[42600,42600],"mapped",[42601]],[[42601,42601],"valid"],[[42602,42602],"mapped",[42603]],[[42603,42603],"valid"],[[42604,42604],"mapped",[42605]],[[42605,42607],"valid"],[[42608,42611],"valid",[],"NV8"],[[42612,42619],"valid"],[[42620,42621],"valid"],[[42622,42622],"valid",[],"NV8"],[[42623,42623],"valid"],[[42624,42624],"mapped",[42625]],[[42625,42625],"valid"],[[42626,42626],"mapped",[42627]],[[42627,42627],"valid"],[[42628,42628],"mapped",[42629]],[[42629,42629],"valid"],[[42630,42630],"mapped",[42631]],[[42631,42631],"valid"],[[42632,42632],"mapped",[42633]],[[42633,42633],"valid"],[[42634,42634],"mapped",[42635]],[[42635,42635],"valid"],[[42636,42636],"mapped",[42637]],[[42637,42637],"valid"],[[42638,42638],"mapped",[42639]],[[42639,42639],"valid"],[[42640,42640],"mapped",[42641]],[[42641,42641],"valid"],[[42642,42642],"mapped",[42643]],[[42643,42643],"valid"],[[42644,42644],"mapped",[42645]],[[42645,42645],"valid"],[[42646,42646],"mapped",[42647]],[[42647,42647],"valid"],[[42648,42648],"mapped",[42649]],[[42649,42649],"valid"],[[42650,42650],"mapped",[42651]],[[42651,42651],"valid"],[[42652,42652],"mapped",[1098]],[[42653,42653],"mapped",[1100]],[[42654,42654],"valid"],[[42655,42655],"valid"],[[42656,42725],"valid"],[[42726,42735],"valid",[],"NV8"],[[42736,42737],"valid"],[[42738,42743],"valid",[],"NV8"],[[42744,42751],"disallowed"],[[42752,42774],"valid",[],"NV8"],[[42775,42778],"valid"],[[42779,42783],"valid"],[[42784,42785],"valid",[],"NV8"],[[42786,42786],"mapped",[42787]],[[42787,42787],"valid"],[[42788,42788],"mapped",[42789]],[[42789,42789],"valid"],[[42790,42790],"mapped",[42791]],[[42791,42791],"valid"],[[42792,42792],"mapped",[42793]],[[42793,42793],"valid"],[[42794,42794],"mapped",[42795]],[[42795,42795],"valid"],[[42796,42796],"mapped",[42797]],[[42797,42797],"valid"],[[42798,42798],"mapped",[42799]],[[42799,42801],"valid"],[[42802,42802],"mapped",[42803]],[[42803,42803],"valid"],[[42804,42804],"mapped",[42805]],[[42805,42805],"valid"],[[42806,42806],"mapped",[42807]],[[42807,42807],"valid"],[[42808,42808],"mapped",[42809]],[[42809,42809],"valid"],[[42810,42810],"mapped",[42811]],[[42811,42811],"valid"],[[42812,42812],"mapped",[42813]],[[42813,42813],"valid"],[[42814,42814],"mapped",[42815]],[[42815,42815],"valid"],[[42816,42816],"mapped",[42817]],[[42817,42817],"valid"],[[42818,42818],"mapped",[42819]],[[42819,42819],"valid"],[[42820,42820],"mapped",[42821]],[[42821,42821],"valid"],[[42822,42822],"mapped",[42823]],[[42823,42823],"valid"],[[42824,42824],"mapped",[42825]],[[42825,42825],"valid"],[[42826,42826],"mapped",[42827]],[[42827,42827],"valid"],[[42828,42828],"mapped",[42829]],[[42829,42829],"valid"],[[42830,42830],"mapped",[42831]],[[42831,42831],"valid"],[[42832,42832],"mapped",[42833]],[[42833,42833],"valid"],[[42834,42834],"mapped",[42835]],[[42835,42835],"valid"],[[42836,42836],"mapped",[42837]],[[42837,42837],"valid"],[[42838,42838],"mapped",[42839]],[[42839,42839],"valid"],[[42840,42840],"mapped",[42841]],[[42841,42841],"valid"],[[42842,42842],"mapped",[42843]],[[42843,42843],"valid"],[[42844,42844],"mapped",[42845]],[[42845,42845],"valid"],[[42846,42846],"mapped",[42847]],[[42847,42847],"valid"],[[42848,42848],"mapped",[42849]],[[42849,42849],"valid"],[[42850,42850],"mapped",[42851]],[[42851,42851],"valid"],[[42852,42852],"mapped",[42853]],[[42853,42853],"valid"],[[42854,42854],"mapped",[42855]],[[42855,42855],"valid"],[[42856,42856],"mapped",[42857]],[[42857,42857],"valid"],[[42858,42858],"mapped",[42859]],[[42859,42859],"valid"],[[42860,42860],"mapped",[42861]],[[42861,42861],"valid"],[[42862,42862],"mapped",[42863]],[[42863,42863],"valid"],[[42864,42864],"mapped",[42863]],[[42865,42872],"valid"],[[42873,42873],"mapped",[42874]],[[42874,42874],"valid"],[[42875,42875],"mapped",[42876]],[[42876,42876],"valid"],[[42877,42877],"mapped",[7545]],[[42878,42878],"mapped",[42879]],[[42879,42879],"valid"],[[42880,42880],"mapped",[42881]],[[42881,42881],"valid"],[[42882,42882],"mapped",[42883]],[[42883,42883],"valid"],[[42884,42884],"mapped",[42885]],[[42885,42885],"valid"],[[42886,42886],"mapped",[42887]],[[42887,42888],"valid"],[[42889,42890],"valid",[],"NV8"],[[42891,42891],"mapped",[42892]],[[42892,42892],"valid"],[[42893,42893],"mapped",[613]],[[42894,42894],"valid"],[[42895,42895],"valid"],[[42896,42896],"mapped",[42897]],[[42897,42897],"valid"],[[42898,42898],"mapped",[42899]],[[42899,42899],"valid"],[[42900,42901],"valid"],[[42902,42902],"mapped",[42903]],[[42903,42903],"valid"],[[42904,42904],"mapped",[42905]],[[42905,42905],"valid"],[[42906,42906],"mapped",[42907]],[[42907,42907],"valid"],[[42908,42908],"mapped",[42909]],[[42909,42909],"valid"],[[42910,42910],"mapped",[42911]],[[42911,42911],"valid"],[[42912,42912],"mapped",[42913]],[[42913,42913],"valid"],[[42914,42914],"mapped",[42915]],[[42915,42915],"valid"],[[42916,42916],"mapped",[42917]],[[42917,42917],"valid"],[[42918,42918],"mapped",[42919]],[[42919,42919],"valid"],[[42920,42920],"mapped",[42921]],[[42921,42921],"valid"],[[42922,42922],"mapped",[614]],[[42923,42923],"mapped",[604]],[[42924,42924],"mapped",[609]],[[42925,42925],"mapped",[620]],[[42926,42927],"disallowed"],[[42928,42928],"mapped",[670]],[[42929,42929],"mapped",[647]],[[42930,42930],"mapped",[669]],[[42931,42931],"mapped",[43859]],[[42932,42932],"mapped",[42933]],[[42933,42933],"valid"],[[42934,42934],"mapped",[42935]],[[42935,42935],"valid"],[[42936,42998],"disallowed"],[[42999,42999],"valid"],[[43e3,43e3],"mapped",[295]],[[43001,43001],"mapped",[339]],[[43002,43002],"valid"],[[43003,43007],"valid"],[[43008,43047],"valid"],[[43048,43051],"valid",[],"NV8"],[[43052,43055],"disallowed"],[[43056,43065],"valid",[],"NV8"],[[43066,43071],"disallowed"],[[43072,43123],"valid"],[[43124,43127],"valid",[],"NV8"],[[43128,43135],"disallowed"],[[43136,43204],"valid"],[[43205,43213],"disallowed"],[[43214,43215],"valid",[],"NV8"],[[43216,43225],"valid"],[[43226,43231],"disallowed"],[[43232,43255],"valid"],[[43256,43258],"valid",[],"NV8"],[[43259,43259],"valid"],[[43260,43260],"valid",[],"NV8"],[[43261,43261],"valid"],[[43262,43263],"disallowed"],[[43264,43309],"valid"],[[43310,43311],"valid",[],"NV8"],[[43312,43347],"valid"],[[43348,43358],"disallowed"],[[43359,43359],"valid",[],"NV8"],[[43360,43388],"valid",[],"NV8"],[[43389,43391],"disallowed"],[[43392,43456],"valid"],[[43457,43469],"valid",[],"NV8"],[[43470,43470],"disallowed"],[[43471,43481],"valid"],[[43482,43485],"disallowed"],[[43486,43487],"valid",[],"NV8"],[[43488,43518],"valid"],[[43519,43519],"disallowed"],[[43520,43574],"valid"],[[43575,43583],"disallowed"],[[43584,43597],"valid"],[[43598,43599],"disallowed"],[[43600,43609],"valid"],[[43610,43611],"disallowed"],[[43612,43615],"valid",[],"NV8"],[[43616,43638],"valid"],[[43639,43641],"valid",[],"NV8"],[[43642,43643],"valid"],[[43644,43647],"valid"],[[43648,43714],"valid"],[[43715,43738],"disallowed"],[[43739,43741],"valid"],[[43742,43743],"valid",[],"NV8"],[[43744,43759],"valid"],[[43760,43761],"valid",[],"NV8"],[[43762,43766],"valid"],[[43767,43776],"disallowed"],[[43777,43782],"valid"],[[43783,43784],"disallowed"],[[43785,43790],"valid"],[[43791,43792],"disallowed"],[[43793,43798],"valid"],[[43799,43807],"disallowed"],[[43808,43814],"valid"],[[43815,43815],"disallowed"],[[43816,43822],"valid"],[[43823,43823],"disallowed"],[[43824,43866],"valid"],[[43867,43867],"valid",[],"NV8"],[[43868,43868],"mapped",[42791]],[[43869,43869],"mapped",[43831]],[[43870,43870],"mapped",[619]],[[43871,43871],"mapped",[43858]],[[43872,43875],"valid"],[[43876,43877],"valid"],[[43878,43887],"disallowed"],[[43888,43888],"mapped",[5024]],[[43889,43889],"mapped",[5025]],[[43890,43890],"mapped",[5026]],[[43891,43891],"mapped",[5027]],[[43892,43892],"mapped",[5028]],[[43893,43893],"mapped",[5029]],[[43894,43894],"mapped",[5030]],[[43895,43895],"mapped",[5031]],[[43896,43896],"mapped",[5032]],[[43897,43897],"mapped",[5033]],[[43898,43898],"mapped",[5034]],[[43899,43899],"mapped",[5035]],[[43900,43900],"mapped",[5036]],[[43901,43901],"mapped",[5037]],[[43902,43902],"mapped",[5038]],[[43903,43903],"mapped",[5039]],[[43904,43904],"mapped",[5040]],[[43905,43905],"mapped",[5041]],[[43906,43906],"mapped",[5042]],[[43907,43907],"mapped",[5043]],[[43908,43908],"mapped",[5044]],[[43909,43909],"mapped",[5045]],[[43910,43910],"mapped",[5046]],[[43911,43911],"mapped",[5047]],[[43912,43912],"mapped",[5048]],[[43913,43913],"mapped",[5049]],[[43914,43914],"mapped",[5050]],[[43915,43915],"mapped",[5051]],[[43916,43916],"mapped",[5052]],[[43917,43917],"mapped",[5053]],[[43918,43918],"mapped",[5054]],[[43919,43919],"mapped",[5055]],[[43920,43920],"mapped",[5056]],[[43921,43921],"mapped",[5057]],[[43922,43922],"mapped",[5058]],[[43923,43923],"mapped",[5059]],[[43924,43924],"mapped",[5060]],[[43925,43925],"mapped",[5061]],[[43926,43926],"mapped",[5062]],[[43927,43927],"mapped",[5063]],[[43928,43928],"mapped",[5064]],[[43929,43929],"mapped",[5065]],[[43930,43930],"mapped",[5066]],[[43931,43931],"mapped",[5067]],[[43932,43932],"mapped",[5068]],[[43933,43933],"mapped",[5069]],[[43934,43934],"mapped",[5070]],[[43935,43935],"mapped",[5071]],[[43936,43936],"mapped",[5072]],[[43937,43937],"mapped",[5073]],[[43938,43938],"mapped",[5074]],[[43939,43939],"mapped",[5075]],[[43940,43940],"mapped",[5076]],[[43941,43941],"mapped",[5077]],[[43942,43942],"mapped",[5078]],[[43943,43943],"mapped",[5079]],[[43944,43944],"mapped",[5080]],[[43945,43945],"mapped",[5081]],[[43946,43946],"mapped",[5082]],[[43947,43947],"mapped",[5083]],[[43948,43948],"mapped",[5084]],[[43949,43949],"mapped",[5085]],[[43950,43950],"mapped",[5086]],[[43951,43951],"mapped",[5087]],[[43952,43952],"mapped",[5088]],[[43953,43953],"mapped",[5089]],[[43954,43954],"mapped",[5090]],[[43955,43955],"mapped",[5091]],[[43956,43956],"mapped",[5092]],[[43957,43957],"mapped",[5093]],[[43958,43958],"mapped",[5094]],[[43959,43959],"mapped",[5095]],[[43960,43960],"mapped",[5096]],[[43961,43961],"mapped",[5097]],[[43962,43962],"mapped",[5098]],[[43963,43963],"mapped",[5099]],[[43964,43964],"mapped",[5100]],[[43965,43965],"mapped",[5101]],[[43966,43966],"mapped",[5102]],[[43967,43967],"mapped",[5103]],[[43968,44010],"valid"],[[44011,44011],"valid",[],"NV8"],[[44012,44013],"valid"],[[44014,44015],"disallowed"],[[44016,44025],"valid"],[[44026,44031],"disallowed"],[[44032,55203],"valid"],[[55204,55215],"disallowed"],[[55216,55238],"valid",[],"NV8"],[[55239,55242],"disallowed"],[[55243,55291],"valid",[],"NV8"],[[55292,55295],"disallowed"],[[55296,57343],"disallowed"],[[57344,63743],"disallowed"],[[63744,63744],"mapped",[35912]],[[63745,63745],"mapped",[26356]],[[63746,63746],"mapped",[36554]],[[63747,63747],"mapped",[36040]],[[63748,63748],"mapped",[28369]],[[63749,63749],"mapped",[20018]],[[63750,63750],"mapped",[21477]],[[63751,63752],"mapped",[40860]],[[63753,63753],"mapped",[22865]],[[63754,63754],"mapped",[37329]],[[63755,63755],"mapped",[21895]],[[63756,63756],"mapped",[22856]],[[63757,63757],"mapped",[25078]],[[63758,63758],"mapped",[30313]],[[63759,63759],"mapped",[32645]],[[63760,63760],"mapped",[34367]],[[63761,63761],"mapped",[34746]],[[63762,63762],"mapped",[35064]],[[63763,63763],"mapped",[37007]],[[63764,63764],"mapped",[27138]],[[63765,63765],"mapped",[27931]],[[63766,63766],"mapped",[28889]],[[63767,63767],"mapped",[29662]],[[63768,63768],"mapped",[33853]],[[63769,63769],"mapped",[37226]],[[63770,63770],"mapped",[39409]],[[63771,63771],"mapped",[20098]],[[63772,63772],"mapped",[21365]],[[63773,63773],"mapped",[27396]],[[63774,63774],"mapped",[29211]],[[63775,63775],"mapped",[34349]],[[63776,63776],"mapped",[40478]],[[63777,63777],"mapped",[23888]],[[63778,63778],"mapped",[28651]],[[63779,63779],"mapped",[34253]],[[63780,63780],"mapped",[35172]],[[63781,63781],"mapped",[25289]],[[63782,63782],"mapped",[33240]],[[63783,63783],"mapped",[34847]],[[63784,63784],"mapped",[24266]],[[63785,63785],"mapped",[26391]],[[63786,63786],"mapped",[28010]],[[63787,63787],"mapped",[29436]],[[63788,63788],"mapped",[37070]],[[63789,63789],"mapped",[20358]],[[63790,63790],"mapped",[20919]],[[63791,63791],"mapped",[21214]],[[63792,63792],"mapped",[25796]],[[63793,63793],"mapped",[27347]],[[63794,63794],"mapped",[29200]],[[63795,63795],"mapped",[30439]],[[63796,63796],"mapped",[32769]],[[63797,63797],"mapped",[34310]],[[63798,63798],"mapped",[34396]],[[63799,63799],"mapped",[36335]],[[63800,63800],"mapped",[38706]],[[63801,63801],"mapped",[39791]],[[63802,63802],"mapped",[40442]],[[63803,63803],"mapped",[30860]],[[63804,63804],"mapped",[31103]],[[63805,63805],"mapped",[32160]],[[63806,63806],"mapped",[33737]],[[63807,63807],"mapped",[37636]],[[63808,63808],"mapped",[40575]],[[63809,63809],"mapped",[35542]],[[63810,63810],"mapped",[22751]],[[63811,63811],"mapped",[24324]],[[63812,63812],"mapped",[31840]],[[63813,63813],"mapped",[32894]],[[63814,63814],"mapped",[29282]],[[63815,63815],"mapped",[30922]],[[63816,63816],"mapped",[36034]],[[63817,63817],"mapped",[38647]],[[63818,63818],"mapped",[22744]],[[63819,63819],"mapped",[23650]],[[63820,63820],"mapped",[27155]],[[63821,63821],"mapped",[28122]],[[63822,63822],"mapped",[28431]],[[63823,63823],"mapped",[32047]],[[63824,63824],"mapped",[32311]],[[63825,63825],"mapped",[38475]],[[63826,63826],"mapped",[21202]],[[63827,63827],"mapped",[32907]],[[63828,63828],"mapped",[20956]],[[63829,63829],"mapped",[20940]],[[63830,63830],"mapped",[31260]],[[63831,63831],"mapped",[32190]],[[63832,63832],"mapped",[33777]],[[63833,63833],"mapped",[38517]],[[63834,63834],"mapped",[35712]],[[63835,63835],"mapped",[25295]],[[63836,63836],"mapped",[27138]],[[63837,63837],"mapped",[35582]],[[63838,63838],"mapped",[20025]],[[63839,63839],"mapped",[23527]],[[63840,63840],"mapped",[24594]],[[63841,63841],"mapped",[29575]],[[63842,63842],"mapped",[30064]],[[63843,63843],"mapped",[21271]],[[63844,63844],"mapped",[30971]],[[63845,63845],"mapped",[20415]],[[63846,63846],"mapped",[24489]],[[63847,63847],"mapped",[19981]],[[63848,63848],"mapped",[27852]],[[63849,63849],"mapped",[25976]],[[63850,63850],"mapped",[32034]],[[63851,63851],"mapped",[21443]],[[63852,63852],"mapped",[22622]],[[63853,63853],"mapped",[30465]],[[63854,63854],"mapped",[33865]],[[63855,63855],"mapped",[35498]],[[63856,63856],"mapped",[27578]],[[63857,63857],"mapped",[36784]],[[63858,63858],"mapped",[27784]],[[63859,63859],"mapped",[25342]],[[63860,63860],"mapped",[33509]],[[63861,63861],"mapped",[25504]],[[63862,63862],"mapped",[30053]],[[63863,63863],"mapped",[20142]],[[63864,63864],"mapped",[20841]],[[63865,63865],"mapped",[20937]],[[63866,63866],"mapped",[26753]],[[63867,63867],"mapped",[31975]],[[63868,63868],"mapped",[33391]],[[63869,63869],"mapped",[35538]],[[63870,63870],"mapped",[37327]],[[63871,63871],"mapped",[21237]],[[63872,63872],"mapped",[21570]],[[63873,63873],"mapped",[22899]],[[63874,63874],"mapped",[24300]],[[63875,63875],"mapped",[26053]],[[63876,63876],"mapped",[28670]],[[63877,63877],"mapped",[31018]],[[63878,63878],"mapped",[38317]],[[63879,63879],"mapped",[39530]],[[63880,63880],"mapped",[40599]],[[63881,63881],"mapped",[40654]],[[63882,63882],"mapped",[21147]],[[63883,63883],"mapped",[26310]],[[63884,63884],"mapped",[27511]],[[63885,63885],"mapped",[36706]],[[63886,63886],"mapped",[24180]],[[63887,63887],"mapped",[24976]],[[63888,63888],"mapped",[25088]],[[63889,63889],"mapped",[25754]],[[63890,63890],"mapped",[28451]],[[63891,63891],"mapped",[29001]],[[63892,63892],"mapped",[29833]],[[63893,63893],"mapped",[31178]],[[63894,63894],"mapped",[32244]],[[63895,63895],"mapped",[32879]],[[63896,63896],"mapped",[36646]],[[63897,63897],"mapped",[34030]],[[63898,63898],"mapped",[36899]],[[63899,63899],"mapped",[37706]],[[63900,63900],"mapped",[21015]],[[63901,63901],"mapped",[21155]],[[63902,63902],"mapped",[21693]],[[63903,63903],"mapped",[28872]],[[63904,63904],"mapped",[35010]],[[63905,63905],"mapped",[35498]],[[63906,63906],"mapped",[24265]],[[63907,63907],"mapped",[24565]],[[63908,63908],"mapped",[25467]],[[63909,63909],"mapped",[27566]],[[63910,63910],"mapped",[31806]],[[63911,63911],"mapped",[29557]],[[63912,63912],"mapped",[20196]],[[63913,63913],"mapped",[22265]],[[63914,63914],"mapped",[23527]],[[63915,63915],"mapped",[23994]],[[63916,63916],"mapped",[24604]],[[63917,63917],"mapped",[29618]],[[63918,63918],"mapped",[29801]],[[63919,63919],"mapped",[32666]],[[63920,63920],"mapped",[32838]],[[63921,63921],"mapped",[37428]],[[63922,63922],"mapped",[38646]],[[63923,63923],"mapped",[38728]],[[63924,63924],"mapped",[38936]],[[63925,63925],"mapped",[20363]],[[63926,63926],"mapped",[31150]],[[63927,63927],"mapped",[37300]],[[63928,63928],"mapped",[38584]],[[63929,63929],"mapped",[24801]],[[63930,63930],"mapped",[20102]],[[63931,63931],"mapped",[20698]],[[63932,63932],"mapped",[23534]],[[63933,63933],"mapped",[23615]],[[63934,63934],"mapped",[26009]],[[63935,63935],"mapped",[27138]],[[63936,63936],"mapped",[29134]],[[63937,63937],"mapped",[30274]],[[63938,63938],"mapped",[34044]],[[63939,63939],"mapped",[36988]],[[63940,63940],"mapped",[40845]],[[63941,63941],"mapped",[26248]],[[63942,63942],"mapped",[38446]],[[63943,63943],"mapped",[21129]],[[63944,63944],"mapped",[26491]],[[63945,63945],"mapped",[26611]],[[63946,63946],"mapped",[27969]],[[63947,63947],"mapped",[28316]],[[63948,63948],"mapped",[29705]],[[63949,63949],"mapped",[30041]],[[63950,63950],"mapped",[30827]],[[63951,63951],"mapped",[32016]],[[63952,63952],"mapped",[39006]],[[63953,63953],"mapped",[20845]],[[63954,63954],"mapped",[25134]],[[63955,63955],"mapped",[38520]],[[63956,63956],"mapped",[20523]],[[63957,63957],"mapped",[23833]],[[63958,63958],"mapped",[28138]],[[63959,63959],"mapped",[36650]],[[63960,63960],"mapped",[24459]],[[63961,63961],"mapped",[24900]],[[63962,63962],"mapped",[26647]],[[63963,63963],"mapped",[29575]],[[63964,63964],"mapped",[38534]],[[63965,63965],"mapped",[21033]],[[63966,63966],"mapped",[21519]],[[63967,63967],"mapped",[23653]],[[63968,63968],"mapped",[26131]],[[63969,63969],"mapped",[26446]],[[63970,63970],"mapped",[26792]],[[63971,63971],"mapped",[27877]],[[63972,63972],"mapped",[29702]],[[63973,63973],"mapped",[30178]],[[63974,63974],"mapped",[32633]],[[63975,63975],"mapped",[35023]],[[63976,63976],"mapped",[35041]],[[63977,63977],"mapped",[37324]],[[63978,63978],"mapped",[38626]],[[63979,63979],"mapped",[21311]],[[63980,63980],"mapped",[28346]],[[63981,63981],"mapped",[21533]],[[63982,63982],"mapped",[29136]],[[63983,63983],"mapped",[29848]],[[63984,63984],"mapped",[34298]],[[63985,63985],"mapped",[38563]],[[63986,63986],"mapped",[40023]],[[63987,63987],"mapped",[40607]],[[63988,63988],"mapped",[26519]],[[63989,63989],"mapped",[28107]],[[63990,63990],"mapped",[33256]],[[63991,63991],"mapped",[31435]],[[63992,63992],"mapped",[31520]],[[63993,63993],"mapped",[31890]],[[63994,63994],"mapped",[29376]],[[63995,63995],"mapped",[28825]],[[63996,63996],"mapped",[35672]],[[63997,63997],"mapped",[20160]],[[63998,63998],"mapped",[33590]],[[63999,63999],"mapped",[21050]],[[64e3,64e3],"mapped",[20999]],[[64001,64001],"mapped",[24230]],[[64002,64002],"mapped",[25299]],[[64003,64003],"mapped",[31958]],[[64004,64004],"mapped",[23429]],[[64005,64005],"mapped",[27934]],[[64006,64006],"mapped",[26292]],[[64007,64007],"mapped",[36667]],[[64008,64008],"mapped",[34892]],[[64009,64009],"mapped",[38477]],[[64010,64010],"mapped",[35211]],[[64011,64011],"mapped",[24275]],[[64012,64012],"mapped",[20800]],[[64013,64013],"mapped",[21952]],[[64014,64015],"valid"],[[64016,64016],"mapped",[22618]],[[64017,64017],"valid"],[[64018,64018],"mapped",[26228]],[[64019,64020],"valid"],[[64021,64021],"mapped",[20958]],[[64022,64022],"mapped",[29482]],[[64023,64023],"mapped",[30410]],[[64024,64024],"mapped",[31036]],[[64025,64025],"mapped",[31070]],[[64026,64026],"mapped",[31077]],[[64027,64027],"mapped",[31119]],[[64028,64028],"mapped",[38742]],[[64029,64029],"mapped",[31934]],[[64030,64030],"mapped",[32701]],[[64031,64031],"valid"],[[64032,64032],"mapped",[34322]],[[64033,64033],"valid"],[[64034,64034],"mapped",[35576]],[[64035,64036],"valid"],[[64037,64037],"mapped",[36920]],[[64038,64038],"mapped",[37117]],[[64039,64041],"valid"],[[64042,64042],"mapped",[39151]],[[64043,64043],"mapped",[39164]],[[64044,64044],"mapped",[39208]],[[64045,64045],"mapped",[40372]],[[64046,64046],"mapped",[37086]],[[64047,64047],"mapped",[38583]],[[64048,64048],"mapped",[20398]],[[64049,64049],"mapped",[20711]],[[64050,64050],"mapped",[20813]],[[64051,64051],"mapped",[21193]],[[64052,64052],"mapped",[21220]],[[64053,64053],"mapped",[21329]],[[64054,64054],"mapped",[21917]],[[64055,64055],"mapped",[22022]],[[64056,64056],"mapped",[22120]],[[64057,64057],"mapped",[22592]],[[64058,64058],"mapped",[22696]],[[64059,64059],"mapped",[23652]],[[64060,64060],"mapped",[23662]],[[64061,64061],"mapped",[24724]],[[64062,64062],"mapped",[24936]],[[64063,64063],"mapped",[24974]],[[64064,64064],"mapped",[25074]],[[64065,64065],"mapped",[25935]],[[64066,64066],"mapped",[26082]],[[64067,64067],"mapped",[26257]],[[64068,64068],"mapped",[26757]],[[64069,64069],"mapped",[28023]],[[64070,64070],"mapped",[28186]],[[64071,64071],"mapped",[28450]],[[64072,64072],"mapped",[29038]],[[64073,64073],"mapped",[29227]],[[64074,64074],"mapped",[29730]],[[64075,64075],"mapped",[30865]],[[64076,64076],"mapped",[31038]],[[64077,64077],"mapped",[31049]],[[64078,64078],"mapped",[31048]],[[64079,64079],"mapped",[31056]],[[64080,64080],"mapped",[31062]],[[64081,64081],"mapped",[31069]],[[64082,64082],"mapped",[31117]],[[64083,64083],"mapped",[31118]],[[64084,64084],"mapped",[31296]],[[64085,64085],"mapped",[31361]],[[64086,64086],"mapped",[31680]],[[64087,64087],"mapped",[32244]],[[64088,64088],"mapped",[32265]],[[64089,64089],"mapped",[32321]],[[64090,64090],"mapped",[32626]],[[64091,64091],"mapped",[32773]],[[64092,64092],"mapped",[33261]],[[64093,64094],"mapped",[33401]],[[64095,64095],"mapped",[33879]],[[64096,64096],"mapped",[35088]],[[64097,64097],"mapped",[35222]],[[64098,64098],"mapped",[35585]],[[64099,64099],"mapped",[35641]],[[64100,64100],"mapped",[36051]],[[64101,64101],"mapped",[36104]],[[64102,64102],"mapped",[36790]],[[64103,64103],"mapped",[36920]],[[64104,64104],"mapped",[38627]],[[64105,64105],"mapped",[38911]],[[64106,64106],"mapped",[38971]],[[64107,64107],"mapped",[24693]],[[64108,64108],"mapped",[148206]],[[64109,64109],"mapped",[33304]],[[64110,64111],"disallowed"],[[64112,64112],"mapped",[20006]],[[64113,64113],"mapped",[20917]],[[64114,64114],"mapped",[20840]],[[64115,64115],"mapped",[20352]],[[64116,64116],"mapped",[20805]],[[64117,64117],"mapped",[20864]],[[64118,64118],"mapped",[21191]],[[64119,64119],"mapped",[21242]],[[64120,64120],"mapped",[21917]],[[64121,64121],"mapped",[21845]],[[64122,64122],"mapped",[21913]],[[64123,64123],"mapped",[21986]],[[64124,64124],"mapped",[22618]],[[64125,64125],"mapped",[22707]],[[64126,64126],"mapped",[22852]],[[64127,64127],"mapped",[22868]],[[64128,64128],"mapped",[23138]],[[64129,64129],"mapped",[23336]],[[64130,64130],"mapped",[24274]],[[64131,64131],"mapped",[24281]],[[64132,64132],"mapped",[24425]],[[64133,64133],"mapped",[24493]],[[64134,64134],"mapped",[24792]],[[64135,64135],"mapped",[24910]],[[64136,64136],"mapped",[24840]],[[64137,64137],"mapped",[24974]],[[64138,64138],"mapped",[24928]],[[64139,64139],"mapped",[25074]],[[64140,64140],"mapped",[25140]],[[64141,64141],"mapped",[25540]],[[64142,64142],"mapped",[25628]],[[64143,64143],"mapped",[25682]],[[64144,64144],"mapped",[25942]],[[64145,64145],"mapped",[26228]],[[64146,64146],"mapped",[26391]],[[64147,64147],"mapped",[26395]],[[64148,64148],"mapped",[26454]],[[64149,64149],"mapped",[27513]],[[64150,64150],"mapped",[27578]],[[64151,64151],"mapped",[27969]],[[64152,64152],"mapped",[28379]],[[64153,64153],"mapped",[28363]],[[64154,64154],"mapped",[28450]],[[64155,64155],"mapped",[28702]],[[64156,64156],"mapped",[29038]],[[64157,64157],"mapped",[30631]],[[64158,64158],"mapped",[29237]],[[64159,64159],"mapped",[29359]],[[64160,64160],"mapped",[29482]],[[64161,64161],"mapped",[29809]],[[64162,64162],"mapped",[29958]],[[64163,64163],"mapped",[30011]],[[64164,64164],"mapped",[30237]],[[64165,64165],"mapped",[30239]],[[64166,64166],"mapped",[30410]],[[64167,64167],"mapped",[30427]],[[64168,64168],"mapped",[30452]],[[64169,64169],"mapped",[30538]],[[64170,64170],"mapped",[30528]],[[64171,64171],"mapped",[30924]],[[64172,64172],"mapped",[31409]],[[64173,64173],"mapped",[31680]],[[64174,64174],"mapped",[31867]],[[64175,64175],"mapped",[32091]],[[64176,64176],"mapped",[32244]],[[64177,64177],"mapped",[32574]],[[64178,64178],"mapped",[32773]],[[64179,64179],"mapped",[33618]],[[64180,64180],"mapped",[33775]],[[64181,64181],"mapped",[34681]],[[64182,64182],"mapped",[35137]],[[64183,64183],"mapped",[35206]],[[64184,64184],"mapped",[35222]],[[64185,64185],"mapped",[35519]],[[64186,64186],"mapped",[35576]],[[64187,64187],"mapped",[35531]],[[64188,64188],"mapped",[35585]],[[64189,64189],"mapped",[35582]],[[64190,64190],"mapped",[35565]],[[64191,64191],"mapped",[35641]],[[64192,64192],"mapped",[35722]],[[64193,64193],"mapped",[36104]],[[64194,64194],"mapped",[36664]],[[64195,64195],"mapped",[36978]],[[64196,64196],"mapped",[37273]],[[64197,64197],"mapped",[37494]],[[64198,64198],"mapped",[38524]],[[64199,64199],"mapped",[38627]],[[64200,64200],"mapped",[38742]],[[64201,64201],"mapped",[38875]],[[64202,64202],"mapped",[38911]],[[64203,64203],"mapped",[38923]],[[64204,64204],"mapped",[38971]],[[64205,64205],"mapped",[39698]],[[64206,64206],"mapped",[40860]],[[64207,64207],"mapped",[141386]],[[64208,64208],"mapped",[141380]],[[64209,64209],"mapped",[144341]],[[64210,64210],"mapped",[15261]],[[64211,64211],"mapped",[16408]],[[64212,64212],"mapped",[16441]],[[64213,64213],"mapped",[152137]],[[64214,64214],"mapped",[154832]],[[64215,64215],"mapped",[163539]],[[64216,64216],"mapped",[40771]],[[64217,64217],"mapped",[40846]],[[64218,64255],"disallowed"],[[64256,64256],"mapped",[102,102]],[[64257,64257],"mapped",[102,105]],[[64258,64258],"mapped",[102,108]],[[64259,64259],"mapped",[102,102,105]],[[64260,64260],"mapped",[102,102,108]],[[64261,64262],"mapped",[115,116]],[[64263,64274],"disallowed"],[[64275,64275],"mapped",[1396,1398]],[[64276,64276],"mapped",[1396,1381]],[[64277,64277],"mapped",[1396,1387]],[[64278,64278],"mapped",[1406,1398]],[[64279,64279],"mapped",[1396,1389]],[[64280,64284],"disallowed"],[[64285,64285],"mapped",[1497,1460]],[[64286,64286],"valid"],[[64287,64287],"mapped",[1522,1463]],[[64288,64288],"mapped",[1506]],[[64289,64289],"mapped",[1488]],[[64290,64290],"mapped",[1491]],[[64291,64291],"mapped",[1492]],[[64292,64292],"mapped",[1499]],[[64293,64293],"mapped",[1500]],[[64294,64294],"mapped",[1501]],[[64295,64295],"mapped",[1512]],[[64296,64296],"mapped",[1514]],[[64297,64297],"disallowed_STD3_mapped",[43]],[[64298,64298],"mapped",[1513,1473]],[[64299,64299],"mapped",[1513,1474]],[[64300,64300],"mapped",[1513,1468,1473]],[[64301,64301],"mapped",[1513,1468,1474]],[[64302,64302],"mapped",[1488,1463]],[[64303,64303],"mapped",[1488,1464]],[[64304,64304],"mapped",[1488,1468]],[[64305,64305],"mapped",[1489,1468]],[[64306,64306],"mapped",[1490,1468]],[[64307,64307],"mapped",[1491,1468]],[[64308,64308],"mapped",[1492,1468]],[[64309,64309],"mapped",[1493,1468]],[[64310,64310],"mapped",[1494,1468]],[[64311,64311],"disallowed"],[[64312,64312],"mapped",[1496,1468]],[[64313,64313],"mapped",[1497,1468]],[[64314,64314],"mapped",[1498,1468]],[[64315,64315],"mapped",[1499,1468]],[[64316,64316],"mapped",[1500,1468]],[[64317,64317],"disallowed"],[[64318,64318],"mapped",[1502,1468]],[[64319,64319],"disallowed"],[[64320,64320],"mapped",[1504,1468]],[[64321,64321],"mapped",[1505,1468]],[[64322,64322],"disallowed"],[[64323,64323],"mapped",[1507,1468]],[[64324,64324],"mapped",[1508,1468]],[[64325,64325],"disallowed"],[[64326,64326],"mapped",[1510,1468]],[[64327,64327],"mapped",[1511,1468]],[[64328,64328],"mapped",[1512,1468]],[[64329,64329],"mapped",[1513,1468]],[[64330,64330],"mapped",[1514,1468]],[[64331,64331],"mapped",[1493,1465]],[[64332,64332],"mapped",[1489,1471]],[[64333,64333],"mapped",[1499,1471]],[[64334,64334],"mapped",[1508,1471]],[[64335,64335],"mapped",[1488,1500]],[[64336,64337],"mapped",[1649]],[[64338,64341],"mapped",[1659]],[[64342,64345],"mapped",[1662]],[[64346,64349],"mapped",[1664]],[[64350,64353],"mapped",[1658]],[[64354,64357],"mapped",[1663]],[[64358,64361],"mapped",[1657]],[[64362,64365],"mapped",[1700]],[[64366,64369],"mapped",[1702]],[[64370,64373],"mapped",[1668]],[[64374,64377],"mapped",[1667]],[[64378,64381],"mapped",[1670]],[[64382,64385],"mapped",[1671]],[[64386,64387],"mapped",[1677]],[[64388,64389],"mapped",[1676]],[[64390,64391],"mapped",[1678]],[[64392,64393],"mapped",[1672]],[[64394,64395],"mapped",[1688]],[[64396,64397],"mapped",[1681]],[[64398,64401],"mapped",[1705]],[[64402,64405],"mapped",[1711]],[[64406,64409],"mapped",[1715]],[[64410,64413],"mapped",[1713]],[[64414,64415],"mapped",[1722]],[[64416,64419],"mapped",[1723]],[[64420,64421],"mapped",[1728]],[[64422,64425],"mapped",[1729]],[[64426,64429],"mapped",[1726]],[[64430,64431],"mapped",[1746]],[[64432,64433],"mapped",[1747]],[[64434,64449],"valid",[],"NV8"],[[64450,64466],"disallowed"],[[64467,64470],"mapped",[1709]],[[64471,64472],"mapped",[1735]],[[64473,64474],"mapped",[1734]],[[64475,64476],"mapped",[1736]],[[64477,64477],"mapped",[1735,1652]],[[64478,64479],"mapped",[1739]],[[64480,64481],"mapped",[1733]],[[64482,64483],"mapped",[1737]],[[64484,64487],"mapped",[1744]],[[64488,64489],"mapped",[1609]],[[64490,64491],"mapped",[1574,1575]],[[64492,64493],"mapped",[1574,1749]],[[64494,64495],"mapped",[1574,1608]],[[64496,64497],"mapped",[1574,1735]],[[64498,64499],"mapped",[1574,1734]],[[64500,64501],"mapped",[1574,1736]],[[64502,64504],"mapped",[1574,1744]],[[64505,64507],"mapped",[1574,1609]],[[64508,64511],"mapped",[1740]],[[64512,64512],"mapped",[1574,1580]],[[64513,64513],"mapped",[1574,1581]],[[64514,64514],"mapped",[1574,1605]],[[64515,64515],"mapped",[1574,1609]],[[64516,64516],"mapped",[1574,1610]],[[64517,64517],"mapped",[1576,1580]],[[64518,64518],"mapped",[1576,1581]],[[64519,64519],"mapped",[1576,1582]],[[64520,64520],"mapped",[1576,1605]],[[64521,64521],"mapped",[1576,1609]],[[64522,64522],"mapped",[1576,1610]],[[64523,64523],"mapped",[1578,1580]],[[64524,64524],"mapped",[1578,1581]],[[64525,64525],"mapped",[1578,1582]],[[64526,64526],"mapped",[1578,1605]],[[64527,64527],"mapped",[1578,1609]],[[64528,64528],"mapped",[1578,1610]],[[64529,64529],"mapped",[1579,1580]],[[64530,64530],"mapped",[1579,1605]],[[64531,64531],"mapped",[1579,1609]],[[64532,64532],"mapped",[1579,1610]],[[64533,64533],"mapped",[1580,1581]],[[64534,64534],"mapped",[1580,1605]],[[64535,64535],"mapped",[1581,1580]],[[64536,64536],"mapped",[1581,1605]],[[64537,64537],"mapped",[1582,1580]],[[64538,64538],"mapped",[1582,1581]],[[64539,64539],"mapped",[1582,1605]],[[64540,64540],"mapped",[1587,1580]],[[64541,64541],"mapped",[1587,1581]],[[64542,64542],"mapped",[1587,1582]],[[64543,64543],"mapped",[1587,1605]],[[64544,64544],"mapped",[1589,1581]],[[64545,64545],"mapped",[1589,1605]],[[64546,64546],"mapped",[1590,1580]],[[64547,64547],"mapped",[1590,1581]],[[64548,64548],"mapped",[1590,1582]],[[64549,64549],"mapped",[1590,1605]],[[64550,64550],"mapped",[1591,1581]],[[64551,64551],"mapped",[1591,1605]],[[64552,64552],"mapped",[1592,1605]],[[64553,64553],"mapped",[1593,1580]],[[64554,64554],"mapped",[1593,1605]],[[64555,64555],"mapped",[1594,1580]],[[64556,64556],"mapped",[1594,1605]],[[64557,64557],"mapped",[1601,1580]],[[64558,64558],"mapped",[1601,1581]],[[64559,64559],"mapped",[1601,1582]],[[64560,64560],"mapped",[1601,1605]],[[64561,64561],"mapped",[1601,1609]],[[64562,64562],"mapped",[1601,1610]],[[64563,64563],"mapped",[1602,1581]],[[64564,64564],"mapped",[1602,1605]],[[64565,64565],"mapped",[1602,1609]],[[64566,64566],"mapped",[1602,1610]],[[64567,64567],"mapped",[1603,1575]],[[64568,64568],"mapped",[1603,1580]],[[64569,64569],"mapped",[1603,1581]],[[64570,64570],"mapped",[1603,1582]],[[64571,64571],"mapped",[1603,1604]],[[64572,64572],"mapped",[1603,1605]],[[64573,64573],"mapped",[1603,1609]],[[64574,64574],"mapped",[1603,1610]],[[64575,64575],"mapped",[1604,1580]],[[64576,64576],"mapped",[1604,1581]],[[64577,64577],"mapped",[1604,1582]],[[64578,64578],"mapped",[1604,1605]],[[64579,64579],"mapped",[1604,1609]],[[64580,64580],"mapped",[1604,1610]],[[64581,64581],"mapped",[1605,1580]],[[64582,64582],"mapped",[1605,1581]],[[64583,64583],"mapped",[1605,1582]],[[64584,64584],"mapped",[1605,1605]],[[64585,64585],"mapped",[1605,1609]],[[64586,64586],"mapped",[1605,1610]],[[64587,64587],"mapped",[1606,1580]],[[64588,64588],"mapped",[1606,1581]],[[64589,64589],"mapped",[1606,1582]],[[64590,64590],"mapped",[1606,1605]],[[64591,64591],"mapped",[1606,1609]],[[64592,64592],"mapped",[1606,1610]],[[64593,64593],"mapped",[1607,1580]],[[64594,64594],"mapped",[1607,1605]],[[64595,64595],"mapped",[1607,1609]],[[64596,64596],"mapped",[1607,1610]],[[64597,64597],"mapped",[1610,1580]],[[64598,64598],"mapped",[1610,1581]],[[64599,64599],"mapped",[1610,1582]],[[64600,64600],"mapped",[1610,1605]],[[64601,64601],"mapped",[1610,1609]],[[64602,64602],"mapped",[1610,1610]],[[64603,64603],"mapped",[1584,1648]],[[64604,64604],"mapped",[1585,1648]],[[64605,64605],"mapped",[1609,1648]],[[64606,64606],"disallowed_STD3_mapped",[32,1612,1617]],[[64607,64607],"disallowed_STD3_mapped",[32,1613,1617]],[[64608,64608],"disallowed_STD3_mapped",[32,1614,1617]],[[64609,64609],"disallowed_STD3_mapped",[32,1615,1617]],[[64610,64610],"disallowed_STD3_mapped",[32,1616,1617]],[[64611,64611],"disallowed_STD3_mapped",[32,1617,1648]],[[64612,64612],"mapped",[1574,1585]],[[64613,64613],"mapped",[1574,1586]],[[64614,64614],"mapped",[1574,1605]],[[64615,64615],"mapped",[1574,1606]],[[64616,64616],"mapped",[1574,1609]],[[64617,64617],"mapped",[1574,1610]],[[64618,64618],"mapped",[1576,1585]],[[64619,64619],"mapped",[1576,1586]],[[64620,64620],"mapped",[1576,1605]],[[64621,64621],"mapped",[1576,1606]],[[64622,64622],"mapped",[1576,1609]],[[64623,64623],"mapped",[1576,1610]],[[64624,64624],"mapped",[1578,1585]],[[64625,64625],"mapped",[1578,1586]],[[64626,64626],"mapped",[1578,1605]],[[64627,64627],"mapped",[1578,1606]],[[64628,64628],"mapped",[1578,1609]],[[64629,64629],"mapped",[1578,1610]],[[64630,64630],"mapped",[1579,1585]],[[64631,64631],"mapped",[1579,1586]],[[64632,64632],"mapped",[1579,1605]],[[64633,64633],"mapped",[1579,1606]],[[64634,64634],"mapped",[1579,1609]],[[64635,64635],"mapped",[1579,1610]],[[64636,64636],"mapped",[1601,1609]],[[64637,64637],"mapped",[1601,1610]],[[64638,64638],"mapped",[1602,1609]],[[64639,64639],"mapped",[1602,1610]],[[64640,64640],"mapped",[1603,1575]],[[64641,64641],"mapped",[1603,1604]],[[64642,64642],"mapped",[1603,1605]],[[64643,64643],"mapped",[1603,1609]],[[64644,64644],"mapped",[1603,1610]],[[64645,64645],"mapped",[1604,1605]],[[64646,64646],"mapped",[1604,1609]],[[64647,64647],"mapped",[1604,1610]],[[64648,64648],"mapped",[1605,1575]],[[64649,64649],"mapped",[1605,1605]],[[64650,64650],"mapped",[1606,1585]],[[64651,64651],"mapped",[1606,1586]],[[64652,64652],"mapped",[1606,1605]],[[64653,64653],"mapped",[1606,1606]],[[64654,64654],"mapped",[1606,1609]],[[64655,64655],"mapped",[1606,1610]],[[64656,64656],"mapped",[1609,1648]],[[64657,64657],"mapped",[1610,1585]],[[64658,64658],"mapped",[1610,1586]],[[64659,64659],"mapped",[1610,1605]],[[64660,64660],"mapped",[1610,1606]],[[64661,64661],"mapped",[1610,1609]],[[64662,64662],"mapped",[1610,1610]],[[64663,64663],"mapped",[1574,1580]],[[64664,64664],"mapped",[1574,1581]],[[64665,64665],"mapped",[1574,1582]],[[64666,64666],"mapped",[1574,1605]],[[64667,64667],"mapped",[1574,1607]],[[64668,64668],"mapped",[1576,1580]],[[64669,64669],"mapped",[1576,1581]],[[64670,64670],"mapped",[1576,1582]],[[64671,64671],"mapped",[1576,1605]],[[64672,64672],"mapped",[1576,1607]],[[64673,64673],"mapped",[1578,1580]],[[64674,64674],"mapped",[1578,1581]],[[64675,64675],"mapped",[1578,1582]],[[64676,64676],"mapped",[1578,1605]],[[64677,64677],"mapped",[1578,1607]],[[64678,64678],"mapped",[1579,1605]],[[64679,64679],"mapped",[1580,1581]],[[64680,64680],"mapped",[1580,1605]],[[64681,64681],"mapped",[1581,1580]],[[64682,64682],"mapped",[1581,1605]],[[64683,64683],"mapped",[1582,1580]],[[64684,64684],"mapped",[1582,1605]],[[64685,64685],"mapped",[1587,1580]],[[64686,64686],"mapped",[1587,1581]],[[64687,64687],"mapped",[1587,1582]],[[64688,64688],"mapped",[1587,1605]],[[64689,64689],"mapped",[1589,1581]],[[64690,64690],"mapped",[1589,1582]],[[64691,64691],"mapped",[1589,1605]],[[64692,64692],"mapped",[1590,1580]],[[64693,64693],"mapped",[1590,1581]],[[64694,64694],"mapped",[1590,1582]],[[64695,64695],"mapped",[1590,1605]],[[64696,64696],"mapped",[1591,1581]],[[64697,64697],"mapped",[1592,1605]],[[64698,64698],"mapped",[1593,1580]],[[64699,64699],"mapped",[1593,1605]],[[64700,64700],"mapped",[1594,1580]],[[64701,64701],"mapped",[1594,1605]],[[64702,64702],"mapped",[1601,1580]],[[64703,64703],"mapped",[1601,1581]],[[64704,64704],"mapped",[1601,1582]],[[64705,64705],"mapped",[1601,1605]],[[64706,64706],"mapped",[1602,1581]],[[64707,64707],"mapped",[1602,1605]],[[64708,64708],"mapped",[1603,1580]],[[64709,64709],"mapped",[1603,1581]],[[64710,64710],"mapped",[1603,1582]],[[64711,64711],"mapped",[1603,1604]],[[64712,64712],"mapped",[1603,1605]],[[64713,64713],"mapped",[1604,1580]],[[64714,64714],"mapped",[1604,1581]],[[64715,64715],"mapped",[1604,1582]],[[64716,64716],"mapped",[1604,1605]],[[64717,64717],"mapped",[1604,1607]],[[64718,64718],"mapped",[1605,1580]],[[64719,64719],"mapped",[1605,1581]],[[64720,64720],"mapped",[1605,1582]],[[64721,64721],"mapped",[1605,1605]],[[64722,64722],"mapped",[1606,1580]],[[64723,64723],"mapped",[1606,1581]],[[64724,64724],"mapped",[1606,1582]],[[64725,64725],"mapped",[1606,1605]],[[64726,64726],"mapped",[1606,1607]],[[64727,64727],"mapped",[1607,1580]],[[64728,64728],"mapped",[1607,1605]],[[64729,64729],"mapped",[1607,1648]],[[64730,64730],"mapped",[1610,1580]],[[64731,64731],"mapped",[1610,1581]],[[64732,64732],"mapped",[1610,1582]],[[64733,64733],"mapped",[1610,1605]],[[64734,64734],"mapped",[1610,1607]],[[64735,64735],"mapped",[1574,1605]],[[64736,64736],"mapped",[1574,1607]],[[64737,64737],"mapped",[1576,1605]],[[64738,64738],"mapped",[1576,1607]],[[64739,64739],"mapped",[1578,1605]],[[64740,64740],"mapped",[1578,1607]],[[64741,64741],"mapped",[1579,1605]],[[64742,64742],"mapped",[1579,1607]],[[64743,64743],"mapped",[1587,1605]],[[64744,64744],"mapped",[1587,1607]],[[64745,64745],"mapped",[1588,1605]],[[64746,64746],"mapped",[1588,1607]],[[64747,64747],"mapped",[1603,1604]],[[64748,64748],"mapped",[1603,1605]],[[64749,64749],"mapped",[1604,1605]],[[64750,64750],"mapped",[1606,1605]],[[64751,64751],"mapped",[1606,1607]],[[64752,64752],"mapped",[1610,1605]],[[64753,64753],"mapped",[1610,1607]],[[64754,64754],"mapped",[1600,1614,1617]],[[64755,64755],"mapped",[1600,1615,1617]],[[64756,64756],"mapped",[1600,1616,1617]],[[64757,64757],"mapped",[1591,1609]],[[64758,64758],"mapped",[1591,1610]],[[64759,64759],"mapped",[1593,1609]],[[64760,64760],"mapped",[1593,1610]],[[64761,64761],"mapped",[1594,1609]],[[64762,64762],"mapped",[1594,1610]],[[64763,64763],"mapped",[1587,1609]],[[64764,64764],"mapped",[1587,1610]],[[64765,64765],"mapped",[1588,1609]],[[64766,64766],"mapped",[1588,1610]],[[64767,64767],"mapped",[1581,1609]],[[64768,64768],"mapped",[1581,1610]],[[64769,64769],"mapped",[1580,1609]],[[64770,64770],"mapped",[1580,1610]],[[64771,64771],"mapped",[1582,1609]],[[64772,64772],"mapped",[1582,1610]],[[64773,64773],"mapped",[1589,1609]],[[64774,64774],"mapped",[1589,1610]],[[64775,64775],"mapped",[1590,1609]],[[64776,64776],"mapped",[1590,1610]],[[64777,64777],"mapped",[1588,1580]],[[64778,64778],"mapped",[1588,1581]],[[64779,64779],"mapped",[1588,1582]],[[64780,64780],"mapped",[1588,1605]],[[64781,64781],"mapped",[1588,1585]],[[64782,64782],"mapped",[1587,1585]],[[64783,64783],"mapped",[1589,1585]],[[64784,64784],"mapped",[1590,1585]],[[64785,64785],"mapped",[1591,1609]],[[64786,64786],"mapped",[1591,1610]],[[64787,64787],"mapped",[1593,1609]],[[64788,64788],"mapped",[1593,1610]],[[64789,64789],"mapped",[1594,1609]],[[64790,64790],"mapped",[1594,1610]],[[64791,64791],"mapped",[1587,1609]],[[64792,64792],"mapped",[1587,1610]],[[64793,64793],"mapped",[1588,1609]],[[64794,64794],"mapped",[1588,1610]],[[64795,64795],"mapped",[1581,1609]],[[64796,64796],"mapped",[1581,1610]],[[64797,64797],"mapped",[1580,1609]],[[64798,64798],"mapped",[1580,1610]],[[64799,64799],"mapped",[1582,1609]],[[64800,64800],"mapped",[1582,1610]],[[64801,64801],"mapped",[1589,1609]],[[64802,64802],"mapped",[1589,1610]],[[64803,64803],"mapped",[1590,1609]],[[64804,64804],"mapped",[1590,1610]],[[64805,64805],"mapped",[1588,1580]],[[64806,64806],"mapped",[1588,1581]],[[64807,64807],"mapped",[1588,1582]],[[64808,64808],"mapped",[1588,1605]],[[64809,64809],"mapped",[1588,1585]],[[64810,64810],"mapped",[1587,1585]],[[64811,64811],"mapped",[1589,1585]],[[64812,64812],"mapped",[1590,1585]],[[64813,64813],"mapped",[1588,1580]],[[64814,64814],"mapped",[1588,1581]],[[64815,64815],"mapped",[1588,1582]],[[64816,64816],"mapped",[1588,1605]],[[64817,64817],"mapped",[1587,1607]],[[64818,64818],"mapped",[1588,1607]],[[64819,64819],"mapped",[1591,1605]],[[64820,64820],"mapped",[1587,1580]],[[64821,64821],"mapped",[1587,1581]],[[64822,64822],"mapped",[1587,1582]],[[64823,64823],"mapped",[1588,1580]],[[64824,64824],"mapped",[1588,1581]],[[64825,64825],"mapped",[1588,1582]],[[64826,64826],"mapped",[1591,1605]],[[64827,64827],"mapped",[1592,1605]],[[64828,64829],"mapped",[1575,1611]],[[64830,64831],"valid",[],"NV8"],[[64832,64847],"disallowed"],[[64848,64848],"mapped",[1578,1580,1605]],[[64849,64850],"mapped",[1578,1581,1580]],[[64851,64851],"mapped",[1578,1581,1605]],[[64852,64852],"mapped",[1578,1582,1605]],[[64853,64853],"mapped",[1578,1605,1580]],[[64854,64854],"mapped",[1578,1605,1581]],[[64855,64855],"mapped",[1578,1605,1582]],[[64856,64857],"mapped",[1580,1605,1581]],[[64858,64858],"mapped",[1581,1605,1610]],[[64859,64859],"mapped",[1581,1605,1609]],[[64860,64860],"mapped",[1587,1581,1580]],[[64861,64861],"mapped",[1587,1580,1581]],[[64862,64862],"mapped",[1587,1580,1609]],[[64863,64864],"mapped",[1587,1605,1581]],[[64865,64865],"mapped",[1587,1605,1580]],[[64866,64867],"mapped",[1587,1605,1605]],[[64868,64869],"mapped",[1589,1581,1581]],[[64870,64870],"mapped",[1589,1605,1605]],[[64871,64872],"mapped",[1588,1581,1605]],[[64873,64873],"mapped",[1588,1580,1610]],[[64874,64875],"mapped",[1588,1605,1582]],[[64876,64877],"mapped",[1588,1605,1605]],[[64878,64878],"mapped",[1590,1581,1609]],[[64879,64880],"mapped",[1590,1582,1605]],[[64881,64882],"mapped",[1591,1605,1581]],[[64883,64883],"mapped",[1591,1605,1605]],[[64884,64884],"mapped",[1591,1605,1610]],[[64885,64885],"mapped",[1593,1580,1605]],[[64886,64887],"mapped",[1593,1605,1605]],[[64888,64888],"mapped",[1593,1605,1609]],[[64889,64889],"mapped",[1594,1605,1605]],[[64890,64890],"mapped",[1594,1605,1610]],[[64891,64891],"mapped",[1594,1605,1609]],[[64892,64893],"mapped",[1601,1582,1605]],[[64894,64894],"mapped",[1602,1605,1581]],[[64895,64895],"mapped",[1602,1605,1605]],[[64896,64896],"mapped",[1604,1581,1605]],[[64897,64897],"mapped",[1604,1581,1610]],[[64898,64898],"mapped",[1604,1581,1609]],[[64899,64900],"mapped",[1604,1580,1580]],[[64901,64902],"mapped",[1604,1582,1605]],[[64903,64904],"mapped",[1604,1605,1581]],[[64905,64905],"mapped",[1605,1581,1580]],[[64906,64906],"mapped",[1605,1581,1605]],[[64907,64907],"mapped",[1605,1581,1610]],[[64908,64908],"mapped",[1605,1580,1581]],[[64909,64909],"mapped",[1605,1580,1605]],[[64910,64910],"mapped",[1605,1582,1580]],[[64911,64911],"mapped",[1605,1582,1605]],[[64912,64913],"disallowed"],[[64914,64914],"mapped",[1605,1580,1582]],[[64915,64915],"mapped",[1607,1605,1580]],[[64916,64916],"mapped",[1607,1605,1605]],[[64917,64917],"mapped",[1606,1581,1605]],[[64918,64918],"mapped",[1606,1581,1609]],[[64919,64920],"mapped",[1606,1580,1605]],[[64921,64921],"mapped",[1606,1580,1609]],[[64922,64922],"mapped",[1606,1605,1610]],[[64923,64923],"mapped",[1606,1605,1609]],[[64924,64925],"mapped",[1610,1605,1605]],[[64926,64926],"mapped",[1576,1582,1610]],[[64927,64927],"mapped",[1578,1580,1610]],[[64928,64928],"mapped",[1578,1580,1609]],[[64929,64929],"mapped",[1578,1582,1610]],[[64930,64930],"mapped",[1578,1582,1609]],[[64931,64931],"mapped",[1578,1605,1610]],[[64932,64932],"mapped",[1578,1605,1609]],[[64933,64933],"mapped",[1580,1605,1610]],[[64934,64934],"mapped",[1580,1581,1609]],[[64935,64935],"mapped",[1580,1605,1609]],[[64936,64936],"mapped",[1587,1582,1609]],[[64937,64937],"mapped",[1589,1581,1610]],[[64938,64938],"mapped",[1588,1581,1610]],[[64939,64939],"mapped",[1590,1581,1610]],[[64940,64940],"mapped",[1604,1580,1610]],[[64941,64941],"mapped",[1604,1605,1610]],[[64942,64942],"mapped",[1610,1581,1610]],[[64943,64943],"mapped",[1610,1580,1610]],[[64944,64944],"mapped",[1610,1605,1610]],[[64945,64945],"mapped",[1605,1605,1610]],[[64946,64946],"mapped",[1602,1605,1610]],[[64947,64947],"mapped",[1606,1581,1610]],[[64948,64948],"mapped",[1602,1605,1581]],[[64949,64949],"mapped",[1604,1581,1605]],[[64950,64950],"mapped",[1593,1605,1610]],[[64951,64951],"mapped",[1603,1605,1610]],[[64952,64952],"mapped",[1606,1580,1581]],[[64953,64953],"mapped",[1605,1582,1610]],[[64954,64954],"mapped",[1604,1580,1605]],[[64955,64955],"mapped",[1603,1605,1605]],[[64956,64956],"mapped",[1604,1580,1605]],[[64957,64957],"mapped",[1606,1580,1581]],[[64958,64958],"mapped",[1580,1581,1610]],[[64959,64959],"mapped",[1581,1580,1610]],[[64960,64960],"mapped",[1605,1580,1610]],[[64961,64961],"mapped",[1601,1605,1610]],[[64962,64962],"mapped",[1576,1581,1610]],[[64963,64963],"mapped",[1603,1605,1605]],[[64964,64964],"mapped",[1593,1580,1605]],[[64965,64965],"mapped",[1589,1605,1605]],[[64966,64966],"mapped",[1587,1582,1610]],[[64967,64967],"mapped",[1606,1580,1610]],[[64968,64975],"disallowed"],[[64976,65007],"disallowed"],[[65008,65008],"mapped",[1589,1604,1746]],[[65009,65009],"mapped",[1602,1604,1746]],[[65010,65010],"mapped",[1575,1604,1604,1607]],[[65011,65011],"mapped",[1575,1603,1576,1585]],[[65012,65012],"mapped",[1605,1581,1605,1583]],[[65013,65013],"mapped",[1589,1604,1593,1605]],[[65014,65014],"mapped",[1585,1587,1608,1604]],[[65015,65015],"mapped",[1593,1604,1610,1607]],[[65016,65016],"mapped",[1608,1587,1604,1605]],[[65017,65017],"mapped",[1589,1604,1609]],[[65018,65018],"disallowed_STD3_mapped",[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605]],[[65019,65019],"disallowed_STD3_mapped",[1580,1604,32,1580,1604,1575,1604,1607]],[[65020,65020],"mapped",[1585,1740,1575,1604]],[[65021,65021],"valid",[],"NV8"],[[65022,65023],"disallowed"],[[65024,65039],"ignored"],[[65040,65040],"disallowed_STD3_mapped",[44]],[[65041,65041],"mapped",[12289]],[[65042,65042],"disallowed"],[[65043,65043],"disallowed_STD3_mapped",[58]],[[65044,65044],"disallowed_STD3_mapped",[59]],[[65045,65045],"disallowed_STD3_mapped",[33]],[[65046,65046],"disallowed_STD3_mapped",[63]],[[65047,65047],"mapped",[12310]],[[65048,65048],"mapped",[12311]],[[65049,65049],"disallowed"],[[65050,65055],"disallowed"],[[65056,65059],"valid"],[[65060,65062],"valid"],[[65063,65069],"valid"],[[65070,65071],"valid"],[[65072,65072],"disallowed"],[[65073,65073],"mapped",[8212]],[[65074,65074],"mapped",[8211]],[[65075,65076],"disallowed_STD3_mapped",[95]],[[65077,65077],"disallowed_STD3_mapped",[40]],[[65078,65078],"disallowed_STD3_mapped",[41]],[[65079,65079],"disallowed_STD3_mapped",[123]],[[65080,65080],"disallowed_STD3_mapped",[125]],[[65081,65081],"mapped",[12308]],[[65082,65082],"mapped",[12309]],[[65083,65083],"mapped",[12304]],[[65084,65084],"mapped",[12305]],[[65085,65085],"mapped",[12298]],[[65086,65086],"mapped",[12299]],[[65087,65087],"mapped",[12296]],[[65088,65088],"mapped",[12297]],[[65089,65089],"mapped",[12300]],[[65090,65090],"mapped",[12301]],[[65091,65091],"mapped",[12302]],[[65092,65092],"mapped",[12303]],[[65093,65094],"valid",[],"NV8"],[[65095,65095],"disallowed_STD3_mapped",[91]],[[65096,65096],"disallowed_STD3_mapped",[93]],[[65097,65100],"disallowed_STD3_mapped",[32,773]],[[65101,65103],"disallowed_STD3_mapped",[95]],[[65104,65104],"disallowed_STD3_mapped",[44]],[[65105,65105],"mapped",[12289]],[[65106,65106],"disallowed"],[[65107,65107],"disallowed"],[[65108,65108],"disallowed_STD3_mapped",[59]],[[65109,65109],"disallowed_STD3_mapped",[58]],[[65110,65110],"disallowed_STD3_mapped",[63]],[[65111,65111],"disallowed_STD3_mapped",[33]],[[65112,65112],"mapped",[8212]],[[65113,65113],"disallowed_STD3_mapped",[40]],[[65114,65114],"disallowed_STD3_mapped",[41]],[[65115,65115],"disallowed_STD3_mapped",[123]],[[65116,65116],"disallowed_STD3_mapped",[125]],[[65117,65117],"mapped",[12308]],[[65118,65118],"mapped",[12309]],[[65119,65119],"disallowed_STD3_mapped",[35]],[[65120,65120],"disallowed_STD3_mapped",[38]],[[65121,65121],"disallowed_STD3_mapped",[42]],[[65122,65122],"disallowed_STD3_mapped",[43]],[[65123,65123],"mapped",[45]],[[65124,65124],"disallowed_STD3_mapped",[60]],[[65125,65125],"disallowed_STD3_mapped",[62]],[[65126,65126],"disallowed_STD3_mapped",[61]],[[65127,65127],"disallowed"],[[65128,65128],"disallowed_STD3_mapped",[92]],[[65129,65129],"disallowed_STD3_mapped",[36]],[[65130,65130],"disallowed_STD3_mapped",[37]],[[65131,65131],"disallowed_STD3_mapped",[64]],[[65132,65135],"disallowed"],[[65136,65136],"disallowed_STD3_mapped",[32,1611]],[[65137,65137],"mapped",[1600,1611]],[[65138,65138],"disallowed_STD3_mapped",[32,1612]],[[65139,65139],"valid"],[[65140,65140],"disallowed_STD3_mapped",[32,1613]],[[65141,65141],"disallowed"],[[65142,65142],"disallowed_STD3_mapped",[32,1614]],[[65143,65143],"mapped",[1600,1614]],[[65144,65144],"disallowed_STD3_mapped",[32,1615]],[[65145,65145],"mapped",[1600,1615]],[[65146,65146],"disallowed_STD3_mapped",[32,1616]],[[65147,65147],"mapped",[1600,1616]],[[65148,65148],"disallowed_STD3_mapped",[32,1617]],[[65149,65149],"mapped",[1600,1617]],[[65150,65150],"disallowed_STD3_mapped",[32,1618]],[[65151,65151],"mapped",[1600,1618]],[[65152,65152],"mapped",[1569]],[[65153,65154],"mapped",[1570]],[[65155,65156],"mapped",[1571]],[[65157,65158],"mapped",[1572]],[[65159,65160],"mapped",[1573]],[[65161,65164],"mapped",[1574]],[[65165,65166],"mapped",[1575]],[[65167,65170],"mapped",[1576]],[[65171,65172],"mapped",[1577]],[[65173,65176],"mapped",[1578]],[[65177,65180],"mapped",[1579]],[[65181,65184],"mapped",[1580]],[[65185,65188],"mapped",[1581]],[[65189,65192],"mapped",[1582]],[[65193,65194],"mapped",[1583]],[[65195,65196],"mapped",[1584]],[[65197,65198],"mapped",[1585]],[[65199,65200],"mapped",[1586]],[[65201,65204],"mapped",[1587]],[[65205,65208],"mapped",[1588]],[[65209,65212],"mapped",[1589]],[[65213,65216],"mapped",[1590]],[[65217,65220],"mapped",[1591]],[[65221,65224],"mapped",[1592]],[[65225,65228],"mapped",[1593]],[[65229,65232],"mapped",[1594]],[[65233,65236],"mapped",[1601]],[[65237,65240],"mapped",[1602]],[[65241,65244],"mapped",[1603]],[[65245,65248],"mapped",[1604]],[[65249,65252],"mapped",[1605]],[[65253,65256],"mapped",[1606]],[[65257,65260],"mapped",[1607]],[[65261,65262],"mapped",[1608]],[[65263,65264],"mapped",[1609]],[[65265,65268],"mapped",[1610]],[[65269,65270],"mapped",[1604,1570]],[[65271,65272],"mapped",[1604,1571]],[[65273,65274],"mapped",[1604,1573]],[[65275,65276],"mapped",[1604,1575]],[[65277,65278],"disallowed"],[[65279,65279],"ignored"],[[65280,65280],"disallowed"],[[65281,65281],"disallowed_STD3_mapped",[33]],[[65282,65282],"disallowed_STD3_mapped",[34]],[[65283,65283],"disallowed_STD3_mapped",[35]],[[65284,65284],"disallowed_STD3_mapped",[36]],[[65285,65285],"disallowed_STD3_mapped",[37]],[[65286,65286],"disallowed_STD3_mapped",[38]],[[65287,65287],"disallowed_STD3_mapped",[39]],[[65288,65288],"disallowed_STD3_mapped",[40]],[[65289,65289],"disallowed_STD3_mapped",[41]],[[65290,65290],"disallowed_STD3_mapped",[42]],[[65291,65291],"disallowed_STD3_mapped",[43]],[[65292,65292],"disallowed_STD3_mapped",[44]],[[65293,65293],"mapped",[45]],[[65294,65294],"mapped",[46]],[[65295,65295],"disallowed_STD3_mapped",[47]],[[65296,65296],"mapped",[48]],[[65297,65297],"mapped",[49]],[[65298,65298],"mapped",[50]],[[65299,65299],"mapped",[51]],[[65300,65300],"mapped",[52]],[[65301,65301],"mapped",[53]],[[65302,65302],"mapped",[54]],[[65303,65303],"mapped",[55]],[[65304,65304],"mapped",[56]],[[65305,65305],"mapped",[57]],[[65306,65306],"disallowed_STD3_mapped",[58]],[[65307,65307],"disallowed_STD3_mapped",[59]],[[65308,65308],"disallowed_STD3_mapped",[60]],[[65309,65309],"disallowed_STD3_mapped",[61]],[[65310,65310],"disallowed_STD3_mapped",[62]],[[65311,65311],"disallowed_STD3_mapped",[63]],[[65312,65312],"disallowed_STD3_mapped",[64]],[[65313,65313],"mapped",[97]],[[65314,65314],"mapped",[98]],[[65315,65315],"mapped",[99]],[[65316,65316],"mapped",[100]],[[65317,65317],"mapped",[101]],[[65318,65318],"mapped",[102]],[[65319,65319],"mapped",[103]],[[65320,65320],"mapped",[104]],[[65321,65321],"mapped",[105]],[[65322,65322],"mapped",[106]],[[65323,65323],"mapped",[107]],[[65324,65324],"mapped",[108]],[[65325,65325],"mapped",[109]],[[65326,65326],"mapped",[110]],[[65327,65327],"mapped",[111]],[[65328,65328],"mapped",[112]],[[65329,65329],"mapped",[113]],[[65330,65330],"mapped",[114]],[[65331,65331],"mapped",[115]],[[65332,65332],"mapped",[116]],[[65333,65333],"mapped",[117]],[[65334,65334],"mapped",[118]],[[65335,65335],"mapped",[119]],[[65336,65336],"mapped",[120]],[[65337,65337],"mapped",[121]],[[65338,65338],"mapped",[122]],[[65339,65339],"disallowed_STD3_mapped",[91]],[[65340,65340],"disallowed_STD3_mapped",[92]],[[65341,65341],"disallowed_STD3_mapped",[93]],[[65342,65342],"disallowed_STD3_mapped",[94]],[[65343,65343],"disallowed_STD3_mapped",[95]],[[65344,65344],"disallowed_STD3_mapped",[96]],[[65345,65345],"mapped",[97]],[[65346,65346],"mapped",[98]],[[65347,65347],"mapped",[99]],[[65348,65348],"mapped",[100]],[[65349,65349],"mapped",[101]],[[65350,65350],"mapped",[102]],[[65351,65351],"mapped",[103]],[[65352,65352],"mapped",[104]],[[65353,65353],"mapped",[105]],[[65354,65354],"mapped",[106]],[[65355,65355],"mapped",[107]],[[65356,65356],"mapped",[108]],[[65357,65357],"mapped",[109]],[[65358,65358],"mapped",[110]],[[65359,65359],"mapped",[111]],[[65360,65360],"mapped",[112]],[[65361,65361],"mapped",[113]],[[65362,65362],"mapped",[114]],[[65363,65363],"mapped",[115]],[[65364,65364],"mapped",[116]],[[65365,65365],"mapped",[117]],[[65366,65366],"mapped",[118]],[[65367,65367],"mapped",[119]],[[65368,65368],"mapped",[120]],[[65369,65369],"mapped",[121]],[[65370,65370],"mapped",[122]],[[65371,65371],"disallowed_STD3_mapped",[123]],[[65372,65372],"disallowed_STD3_mapped",[124]],[[65373,65373],"disallowed_STD3_mapped",[125]],[[65374,65374],"disallowed_STD3_mapped",[126]],[[65375,65375],"mapped",[10629]],[[65376,65376],"mapped",[10630]],[[65377,65377],"mapped",[46]],[[65378,65378],"mapped",[12300]],[[65379,65379],"mapped",[12301]],[[65380,65380],"mapped",[12289]],[[65381,65381],"mapped",[12539]],[[65382,65382],"mapped",[12530]],[[65383,65383],"mapped",[12449]],[[65384,65384],"mapped",[12451]],[[65385,65385],"mapped",[12453]],[[65386,65386],"mapped",[12455]],[[65387,65387],"mapped",[12457]],[[65388,65388],"mapped",[12515]],[[65389,65389],"mapped",[12517]],[[65390,65390],"mapped",[12519]],[[65391,65391],"mapped",[12483]],[[65392,65392],"mapped",[12540]],[[65393,65393],"mapped",[12450]],[[65394,65394],"mapped",[12452]],[[65395,65395],"mapped",[12454]],[[65396,65396],"mapped",[12456]],[[65397,65397],"mapped",[12458]],[[65398,65398],"mapped",[12459]],[[65399,65399],"mapped",[12461]],[[65400,65400],"mapped",[12463]],[[65401,65401],"mapped",[12465]],[[65402,65402],"mapped",[12467]],[[65403,65403],"mapped",[12469]],[[65404,65404],"mapped",[12471]],[[65405,65405],"mapped",[12473]],[[65406,65406],"mapped",[12475]],[[65407,65407],"mapped",[12477]],[[65408,65408],"mapped",[12479]],[[65409,65409],"mapped",[12481]],[[65410,65410],"mapped",[12484]],[[65411,65411],"mapped",[12486]],[[65412,65412],"mapped",[12488]],[[65413,65413],"mapped",[12490]],[[65414,65414],"mapped",[12491]],[[65415,65415],"mapped",[12492]],[[65416,65416],"mapped",[12493]],[[65417,65417],"mapped",[12494]],[[65418,65418],"mapped",[12495]],[[65419,65419],"mapped",[12498]],[[65420,65420],"mapped",[12501]],[[65421,65421],"mapped",[12504]],[[65422,65422],"mapped",[12507]],[[65423,65423],"mapped",[12510]],[[65424,65424],"mapped",[12511]],[[65425,65425],"mapped",[12512]],[[65426,65426],"mapped",[12513]],[[65427,65427],"mapped",[12514]],[[65428,65428],"mapped",[12516]],[[65429,65429],"mapped",[12518]],[[65430,65430],"mapped",[12520]],[[65431,65431],"mapped",[12521]],[[65432,65432],"mapped",[12522]],[[65433,65433],"mapped",[12523]],[[65434,65434],"mapped",[12524]],[[65435,65435],"mapped",[12525]],[[65436,65436],"mapped",[12527]],[[65437,65437],"mapped",[12531]],[[65438,65438],"mapped",[12441]],[[65439,65439],"mapped",[12442]],[[65440,65440],"disallowed"],[[65441,65441],"mapped",[4352]],[[65442,65442],"mapped",[4353]],[[65443,65443],"mapped",[4522]],[[65444,65444],"mapped",[4354]],[[65445,65445],"mapped",[4524]],[[65446,65446],"mapped",[4525]],[[65447,65447],"mapped",[4355]],[[65448,65448],"mapped",[4356]],[[65449,65449],"mapped",[4357]],[[65450,65450],"mapped",[4528]],[[65451,65451],"mapped",[4529]],[[65452,65452],"mapped",[4530]],[[65453,65453],"mapped",[4531]],[[65454,65454],"mapped",[4532]],[[65455,65455],"mapped",[4533]],[[65456,65456],"mapped",[4378]],[[65457,65457],"mapped",[4358]],[[65458,65458],"mapped",[4359]],[[65459,65459],"mapped",[4360]],[[65460,65460],"mapped",[4385]],[[65461,65461],"mapped",[4361]],[[65462,65462],"mapped",[4362]],[[65463,65463],"mapped",[4363]],[[65464,65464],"mapped",[4364]],[[65465,65465],"mapped",[4365]],[[65466,65466],"mapped",[4366]],[[65467,65467],"mapped",[4367]],[[65468,65468],"mapped",[4368]],[[65469,65469],"mapped",[4369]],[[65470,65470],"mapped",[4370]],[[65471,65473],"disallowed"],[[65474,65474],"mapped",[4449]],[[65475,65475],"mapped",[4450]],[[65476,65476],"mapped",[4451]],[[65477,65477],"mapped",[4452]],[[65478,65478],"mapped",[4453]],[[65479,65479],"mapped",[4454]],[[65480,65481],"disallowed"],[[65482,65482],"mapped",[4455]],[[65483,65483],"mapped",[4456]],[[65484,65484],"mapped",[4457]],[[65485,65485],"mapped",[4458]],[[65486,65486],"mapped",[4459]],[[65487,65487],"mapped",[4460]],[[65488,65489],"disallowed"],[[65490,65490],"mapped",[4461]],[[65491,65491],"mapped",[4462]],[[65492,65492],"mapped",[4463]],[[65493,65493],"mapped",[4464]],[[65494,65494],"mapped",[4465]],[[65495,65495],"mapped",[4466]],[[65496,65497],"disallowed"],[[65498,65498],"mapped",[4467]],[[65499,65499],"mapped",[4468]],[[65500,65500],"mapped",[4469]],[[65501,65503],"disallowed"],[[65504,65504],"mapped",[162]],[[65505,65505],"mapped",[163]],[[65506,65506],"mapped",[172]],[[65507,65507],"disallowed_STD3_mapped",[32,772]],[[65508,65508],"mapped",[166]],[[65509,65509],"mapped",[165]],[[65510,65510],"mapped",[8361]],[[65511,65511],"disallowed"],[[65512,65512],"mapped",[9474]],[[65513,65513],"mapped",[8592]],[[65514,65514],"mapped",[8593]],[[65515,65515],"mapped",[8594]],[[65516,65516],"mapped",[8595]],[[65517,65517],"mapped",[9632]],[[65518,65518],"mapped",[9675]],[[65519,65528],"disallowed"],[[65529,65531],"disallowed"],[[65532,65532],"disallowed"],[[65533,65533],"disallowed"],[[65534,65535],"disallowed"],[[65536,65547],"valid"],[[65548,65548],"disallowed"],[[65549,65574],"valid"],[[65575,65575],"disallowed"],[[65576,65594],"valid"],[[65595,65595],"disallowed"],[[65596,65597],"valid"],[[65598,65598],"disallowed"],[[65599,65613],"valid"],[[65614,65615],"disallowed"],[[65616,65629],"valid"],[[65630,65663],"disallowed"],[[65664,65786],"valid"],[[65787,65791],"disallowed"],[[65792,65794],"valid",[],"NV8"],[[65795,65798],"disallowed"],[[65799,65843],"valid",[],"NV8"],[[65844,65846],"disallowed"],[[65847,65855],"valid",[],"NV8"],[[65856,65930],"valid",[],"NV8"],[[65931,65932],"valid",[],"NV8"],[[65933,65935],"disallowed"],[[65936,65947],"valid",[],"NV8"],[[65948,65951],"disallowed"],[[65952,65952],"valid",[],"NV8"],[[65953,65999],"disallowed"],[[66e3,66044],"valid",[],"NV8"],[[66045,66045],"valid"],[[66046,66175],"disallowed"],[[66176,66204],"valid"],[[66205,66207],"disallowed"],[[66208,66256],"valid"],[[66257,66271],"disallowed"],[[66272,66272],"valid"],[[66273,66299],"valid",[],"NV8"],[[66300,66303],"disallowed"],[[66304,66334],"valid"],[[66335,66335],"valid"],[[66336,66339],"valid",[],"NV8"],[[66340,66351],"disallowed"],[[66352,66368],"valid"],[[66369,66369],"valid",[],"NV8"],[[66370,66377],"valid"],[[66378,66378],"valid",[],"NV8"],[[66379,66383],"disallowed"],[[66384,66426],"valid"],[[66427,66431],"disallowed"],[[66432,66461],"valid"],[[66462,66462],"disallowed"],[[66463,66463],"valid",[],"NV8"],[[66464,66499],"valid"],[[66500,66503],"disallowed"],[[66504,66511],"valid"],[[66512,66517],"valid",[],"NV8"],[[66518,66559],"disallowed"],[[66560,66560],"mapped",[66600]],[[66561,66561],"mapped",[66601]],[[66562,66562],"mapped",[66602]],[[66563,66563],"mapped",[66603]],[[66564,66564],"mapped",[66604]],[[66565,66565],"mapped",[66605]],[[66566,66566],"mapped",[66606]],[[66567,66567],"mapped",[66607]],[[66568,66568],"mapped",[66608]],[[66569,66569],"mapped",[66609]],[[66570,66570],"mapped",[66610]],[[66571,66571],"mapped",[66611]],[[66572,66572],"mapped",[66612]],[[66573,66573],"mapped",[66613]],[[66574,66574],"mapped",[66614]],[[66575,66575],"mapped",[66615]],[[66576,66576],"mapped",[66616]],[[66577,66577],"mapped",[66617]],[[66578,66578],"mapped",[66618]],[[66579,66579],"mapped",[66619]],[[66580,66580],"mapped",[66620]],[[66581,66581],"mapped",[66621]],[[66582,66582],"mapped",[66622]],[[66583,66583],"mapped",[66623]],[[66584,66584],"mapped",[66624]],[[66585,66585],"mapped",[66625]],[[66586,66586],"mapped",[66626]],[[66587,66587],"mapped",[66627]],[[66588,66588],"mapped",[66628]],[[66589,66589],"mapped",[66629]],[[66590,66590],"mapped",[66630]],[[66591,66591],"mapped",[66631]],[[66592,66592],"mapped",[66632]],[[66593,66593],"mapped",[66633]],[[66594,66594],"mapped",[66634]],[[66595,66595],"mapped",[66635]],[[66596,66596],"mapped",[66636]],[[66597,66597],"mapped",[66637]],[[66598,66598],"mapped",[66638]],[[66599,66599],"mapped",[66639]],[[66600,66637],"valid"],[[66638,66717],"valid"],[[66718,66719],"disallowed"],[[66720,66729],"valid"],[[66730,66815],"disallowed"],[[66816,66855],"valid"],[[66856,66863],"disallowed"],[[66864,66915],"valid"],[[66916,66926],"disallowed"],[[66927,66927],"valid",[],"NV8"],[[66928,67071],"disallowed"],[[67072,67382],"valid"],[[67383,67391],"disallowed"],[[67392,67413],"valid"],[[67414,67423],"disallowed"],[[67424,67431],"valid"],[[67432,67583],"disallowed"],[[67584,67589],"valid"],[[67590,67591],"disallowed"],[[67592,67592],"valid"],[[67593,67593],"disallowed"],[[67594,67637],"valid"],[[67638,67638],"disallowed"],[[67639,67640],"valid"],[[67641,67643],"disallowed"],[[67644,67644],"valid"],[[67645,67646],"disallowed"],[[67647,67647],"valid"],[[67648,67669],"valid"],[[67670,67670],"disallowed"],[[67671,67679],"valid",[],"NV8"],[[67680,67702],"valid"],[[67703,67711],"valid",[],"NV8"],[[67712,67742],"valid"],[[67743,67750],"disallowed"],[[67751,67759],"valid",[],"NV8"],[[67760,67807],"disallowed"],[[67808,67826],"valid"],[[67827,67827],"disallowed"],[[67828,67829],"valid"],[[67830,67834],"disallowed"],[[67835,67839],"valid",[],"NV8"],[[67840,67861],"valid"],[[67862,67865],"valid",[],"NV8"],[[67866,67867],"valid",[],"NV8"],[[67868,67870],"disallowed"],[[67871,67871],"valid",[],"NV8"],[[67872,67897],"valid"],[[67898,67902],"disallowed"],[[67903,67903],"valid",[],"NV8"],[[67904,67967],"disallowed"],[[67968,68023],"valid"],[[68024,68027],"disallowed"],[[68028,68029],"valid",[],"NV8"],[[68030,68031],"valid"],[[68032,68047],"valid",[],"NV8"],[[68048,68049],"disallowed"],[[68050,68095],"valid",[],"NV8"],[[68096,68099],"valid"],[[68100,68100],"disallowed"],[[68101,68102],"valid"],[[68103,68107],"disallowed"],[[68108,68115],"valid"],[[68116,68116],"disallowed"],[[68117,68119],"valid"],[[68120,68120],"disallowed"],[[68121,68147],"valid"],[[68148,68151],"disallowed"],[[68152,68154],"valid"],[[68155,68158],"disallowed"],[[68159,68159],"valid"],[[68160,68167],"valid",[],"NV8"],[[68168,68175],"disallowed"],[[68176,68184],"valid",[],"NV8"],[[68185,68191],"disallowed"],[[68192,68220],"valid"],[[68221,68223],"valid",[],"NV8"],[[68224,68252],"valid"],[[68253,68255],"valid",[],"NV8"],[[68256,68287],"disallowed"],[[68288,68295],"valid"],[[68296,68296],"valid",[],"NV8"],[[68297,68326],"valid"],[[68327,68330],"disallowed"],[[68331,68342],"valid",[],"NV8"],[[68343,68351],"disallowed"],[[68352,68405],"valid"],[[68406,68408],"disallowed"],[[68409,68415],"valid",[],"NV8"],[[68416,68437],"valid"],[[68438,68439],"disallowed"],[[68440,68447],"valid",[],"NV8"],[[68448,68466],"valid"],[[68467,68471],"disallowed"],[[68472,68479],"valid",[],"NV8"],[[68480,68497],"valid"],[[68498,68504],"disallowed"],[[68505,68508],"valid",[],"NV8"],[[68509,68520],"disallowed"],[[68521,68527],"valid",[],"NV8"],[[68528,68607],"disallowed"],[[68608,68680],"valid"],[[68681,68735],"disallowed"],[[68736,68736],"mapped",[68800]],[[68737,68737],"mapped",[68801]],[[68738,68738],"mapped",[68802]],[[68739,68739],"mapped",[68803]],[[68740,68740],"mapped",[68804]],[[68741,68741],"mapped",[68805]],[[68742,68742],"mapped",[68806]],[[68743,68743],"mapped",[68807]],[[68744,68744],"mapped",[68808]],[[68745,68745],"mapped",[68809]],[[68746,68746],"mapped",[68810]],[[68747,68747],"mapped",[68811]],[[68748,68748],"mapped",[68812]],[[68749,68749],"mapped",[68813]],[[68750,68750],"mapped",[68814]],[[68751,68751],"mapped",[68815]],[[68752,68752],"mapped",[68816]],[[68753,68753],"mapped",[68817]],[[68754,68754],"mapped",[68818]],[[68755,68755],"mapped",[68819]],[[68756,68756],"mapped",[68820]],[[68757,68757],"mapped",[68821]],[[68758,68758],"mapped",[68822]],[[68759,68759],"mapped",[68823]],[[68760,68760],"mapped",[68824]],[[68761,68761],"mapped",[68825]],[[68762,68762],"mapped",[68826]],[[68763,68763],"mapped",[68827]],[[68764,68764],"mapped",[68828]],[[68765,68765],"mapped",[68829]],[[68766,68766],"mapped",[68830]],[[68767,68767],"mapped",[68831]],[[68768,68768],"mapped",[68832]],[[68769,68769],"mapped",[68833]],[[68770,68770],"mapped",[68834]],[[68771,68771],"mapped",[68835]],[[68772,68772],"mapped",[68836]],[[68773,68773],"mapped",[68837]],[[68774,68774],"mapped",[68838]],[[68775,68775],"mapped",[68839]],[[68776,68776],"mapped",[68840]],[[68777,68777],"mapped",[68841]],[[68778,68778],"mapped",[68842]],[[68779,68779],"mapped",[68843]],[[68780,68780],"mapped",[68844]],[[68781,68781],"mapped",[68845]],[[68782,68782],"mapped",[68846]],[[68783,68783],"mapped",[68847]],[[68784,68784],"mapped",[68848]],[[68785,68785],"mapped",[68849]],[[68786,68786],"mapped",[68850]],[[68787,68799],"disallowed"],[[68800,68850],"valid"],[[68851,68857],"disallowed"],[[68858,68863],"valid",[],"NV8"],[[68864,69215],"disallowed"],[[69216,69246],"valid",[],"NV8"],[[69247,69631],"disallowed"],[[69632,69702],"valid"],[[69703,69709],"valid",[],"NV8"],[[69710,69713],"disallowed"],[[69714,69733],"valid",[],"NV8"],[[69734,69743],"valid"],[[69744,69758],"disallowed"],[[69759,69759],"valid"],[[69760,69818],"valid"],[[69819,69820],"valid",[],"NV8"],[[69821,69821],"disallowed"],[[69822,69825],"valid",[],"NV8"],[[69826,69839],"disallowed"],[[69840,69864],"valid"],[[69865,69871],"disallowed"],[[69872,69881],"valid"],[[69882,69887],"disallowed"],[[69888,69940],"valid"],[[69941,69941],"disallowed"],[[69942,69951],"valid"],[[69952,69955],"valid",[],"NV8"],[[69956,69967],"disallowed"],[[69968,70003],"valid"],[[70004,70005],"valid",[],"NV8"],[[70006,70006],"valid"],[[70007,70015],"disallowed"],[[70016,70084],"valid"],[[70085,70088],"valid",[],"NV8"],[[70089,70089],"valid",[],"NV8"],[[70090,70092],"valid"],[[70093,70093],"valid",[],"NV8"],[[70094,70095],"disallowed"],[[70096,70105],"valid"],[[70106,70106],"valid"],[[70107,70107],"valid",[],"NV8"],[[70108,70108],"valid"],[[70109,70111],"valid",[],"NV8"],[[70112,70112],"disallowed"],[[70113,70132],"valid",[],"NV8"],[[70133,70143],"disallowed"],[[70144,70161],"valid"],[[70162,70162],"disallowed"],[[70163,70199],"valid"],[[70200,70205],"valid",[],"NV8"],[[70206,70271],"disallowed"],[[70272,70278],"valid"],[[70279,70279],"disallowed"],[[70280,70280],"valid"],[[70281,70281],"disallowed"],[[70282,70285],"valid"],[[70286,70286],"disallowed"],[[70287,70301],"valid"],[[70302,70302],"disallowed"],[[70303,70312],"valid"],[[70313,70313],"valid",[],"NV8"],[[70314,70319],"disallowed"],[[70320,70378],"valid"],[[70379,70383],"disallowed"],[[70384,70393],"valid"],[[70394,70399],"disallowed"],[[70400,70400],"valid"],[[70401,70403],"valid"],[[70404,70404],"disallowed"],[[70405,70412],"valid"],[[70413,70414],"disallowed"],[[70415,70416],"valid"],[[70417,70418],"disallowed"],[[70419,70440],"valid"],[[70441,70441],"disallowed"],[[70442,70448],"valid"],[[70449,70449],"disallowed"],[[70450,70451],"valid"],[[70452,70452],"disallowed"],[[70453,70457],"valid"],[[70458,70459],"disallowed"],[[70460,70468],"valid"],[[70469,70470],"disallowed"],[[70471,70472],"valid"],[[70473,70474],"disallowed"],[[70475,70477],"valid"],[[70478,70479],"disallowed"],[[70480,70480],"valid"],[[70481,70486],"disallowed"],[[70487,70487],"valid"],[[70488,70492],"disallowed"],[[70493,70499],"valid"],[[70500,70501],"disallowed"],[[70502,70508],"valid"],[[70509,70511],"disallowed"],[[70512,70516],"valid"],[[70517,70783],"disallowed"],[[70784,70853],"valid"],[[70854,70854],"valid",[],"NV8"],[[70855,70855],"valid"],[[70856,70863],"disallowed"],[[70864,70873],"valid"],[[70874,71039],"disallowed"],[[71040,71093],"valid"],[[71094,71095],"disallowed"],[[71096,71104],"valid"],[[71105,71113],"valid",[],"NV8"],[[71114,71127],"valid",[],"NV8"],[[71128,71133],"valid"],[[71134,71167],"disallowed"],[[71168,71232],"valid"],[[71233,71235],"valid",[],"NV8"],[[71236,71236],"valid"],[[71237,71247],"disallowed"],[[71248,71257],"valid"],[[71258,71295],"disallowed"],[[71296,71351],"valid"],[[71352,71359],"disallowed"],[[71360,71369],"valid"],[[71370,71423],"disallowed"],[[71424,71449],"valid"],[[71450,71452],"disallowed"],[[71453,71467],"valid"],[[71468,71471],"disallowed"],[[71472,71481],"valid"],[[71482,71487],"valid",[],"NV8"],[[71488,71839],"disallowed"],[[71840,71840],"mapped",[71872]],[[71841,71841],"mapped",[71873]],[[71842,71842],"mapped",[71874]],[[71843,71843],"mapped",[71875]],[[71844,71844],"mapped",[71876]],[[71845,71845],"mapped",[71877]],[[71846,71846],"mapped",[71878]],[[71847,71847],"mapped",[71879]],[[71848,71848],"mapped",[71880]],[[71849,71849],"mapped",[71881]],[[71850,71850],"mapped",[71882]],[[71851,71851],"mapped",[71883]],[[71852,71852],"mapped",[71884]],[[71853,71853],"mapped",[71885]],[[71854,71854],"mapped",[71886]],[[71855,71855],"mapped",[71887]],[[71856,71856],"mapped",[71888]],[[71857,71857],"mapped",[71889]],[[71858,71858],"mapped",[71890]],[[71859,71859],"mapped",[71891]],[[71860,71860],"mapped",[71892]],[[71861,71861],"mapped",[71893]],[[71862,71862],"mapped",[71894]],[[71863,71863],"mapped",[71895]],[[71864,71864],"mapped",[71896]],[[71865,71865],"mapped",[71897]],[[71866,71866],"mapped",[71898]],[[71867,71867],"mapped",[71899]],[[71868,71868],"mapped",[71900]],[[71869,71869],"mapped",[71901]],[[71870,71870],"mapped",[71902]],[[71871,71871],"mapped",[71903]],[[71872,71913],"valid"],[[71914,71922],"valid",[],"NV8"],[[71923,71934],"disallowed"],[[71935,71935],"valid"],[[71936,72383],"disallowed"],[[72384,72440],"valid"],[[72441,73727],"disallowed"],[[73728,74606],"valid"],[[74607,74648],"valid"],[[74649,74649],"valid"],[[74650,74751],"disallowed"],[[74752,74850],"valid",[],"NV8"],[[74851,74862],"valid",[],"NV8"],[[74863,74863],"disallowed"],[[74864,74867],"valid",[],"NV8"],[[74868,74868],"valid",[],"NV8"],[[74869,74879],"disallowed"],[[74880,75075],"valid"],[[75076,77823],"disallowed"],[[77824,78894],"valid"],[[78895,82943],"disallowed"],[[82944,83526],"valid"],[[83527,92159],"disallowed"],[[92160,92728],"valid"],[[92729,92735],"disallowed"],[[92736,92766],"valid"],[[92767,92767],"disallowed"],[[92768,92777],"valid"],[[92778,92781],"disallowed"],[[92782,92783],"valid",[],"NV8"],[[92784,92879],"disallowed"],[[92880,92909],"valid"],[[92910,92911],"disallowed"],[[92912,92916],"valid"],[[92917,92917],"valid",[],"NV8"],[[92918,92927],"disallowed"],[[92928,92982],"valid"],[[92983,92991],"valid",[],"NV8"],[[92992,92995],"valid"],[[92996,92997],"valid",[],"NV8"],[[92998,93007],"disallowed"],[[93008,93017],"valid"],[[93018,93018],"disallowed"],[[93019,93025],"valid",[],"NV8"],[[93026,93026],"disallowed"],[[93027,93047],"valid"],[[93048,93052],"disallowed"],[[93053,93071],"valid"],[[93072,93951],"disallowed"],[[93952,94020],"valid"],[[94021,94031],"disallowed"],[[94032,94078],"valid"],[[94079,94094],"disallowed"],[[94095,94111],"valid"],[[94112,110591],"disallowed"],[[110592,110593],"valid"],[[110594,113663],"disallowed"],[[113664,113770],"valid"],[[113771,113775],"disallowed"],[[113776,113788],"valid"],[[113789,113791],"disallowed"],[[113792,113800],"valid"],[[113801,113807],"disallowed"],[[113808,113817],"valid"],[[113818,113819],"disallowed"],[[113820,113820],"valid",[],"NV8"],[[113821,113822],"valid"],[[113823,113823],"valid",[],"NV8"],[[113824,113827],"ignored"],[[113828,118783],"disallowed"],[[118784,119029],"valid",[],"NV8"],[[119030,119039],"disallowed"],[[119040,119078],"valid",[],"NV8"],[[119079,119080],"disallowed"],[[119081,119081],"valid",[],"NV8"],[[119082,119133],"valid",[],"NV8"],[[119134,119134],"mapped",[119127,119141]],[[119135,119135],"mapped",[119128,119141]],[[119136,119136],"mapped",[119128,119141,119150]],[[119137,119137],"mapped",[119128,119141,119151]],[[119138,119138],"mapped",[119128,119141,119152]],[[119139,119139],"mapped",[119128,119141,119153]],[[119140,119140],"mapped",[119128,119141,119154]],[[119141,119154],"valid",[],"NV8"],[[119155,119162],"disallowed"],[[119163,119226],"valid",[],"NV8"],[[119227,119227],"mapped",[119225,119141]],[[119228,119228],"mapped",[119226,119141]],[[119229,119229],"mapped",[119225,119141,119150]],[[119230,119230],"mapped",[119226,119141,119150]],[[119231,119231],"mapped",[119225,119141,119151]],[[119232,119232],"mapped",[119226,119141,119151]],[[119233,119261],"valid",[],"NV8"],[[119262,119272],"valid",[],"NV8"],[[119273,119295],"disallowed"],[[119296,119365],"valid",[],"NV8"],[[119366,119551],"disallowed"],[[119552,119638],"valid",[],"NV8"],[[119639,119647],"disallowed"],[[119648,119665],"valid",[],"NV8"],[[119666,119807],"disallowed"],[[119808,119808],"mapped",[97]],[[119809,119809],"mapped",[98]],[[119810,119810],"mapped",[99]],[[119811,119811],"mapped",[100]],[[119812,119812],"mapped",[101]],[[119813,119813],"mapped",[102]],[[119814,119814],"mapped",[103]],[[119815,119815],"mapped",[104]],[[119816,119816],"mapped",[105]],[[119817,119817],"mapped",[106]],[[119818,119818],"mapped",[107]],[[119819,119819],"mapped",[108]],[[119820,119820],"mapped",[109]],[[119821,119821],"mapped",[110]],[[119822,119822],"mapped",[111]],[[119823,119823],"mapped",[112]],[[119824,119824],"mapped",[113]],[[119825,119825],"mapped",[114]],[[119826,119826],"mapped",[115]],[[119827,119827],"mapped",[116]],[[119828,119828],"mapped",[117]],[[119829,119829],"mapped",[118]],[[119830,119830],"mapped",[119]],[[119831,119831],"mapped",[120]],[[119832,119832],"mapped",[121]],[[119833,119833],"mapped",[122]],[[119834,119834],"mapped",[97]],[[119835,119835],"mapped",[98]],[[119836,119836],"mapped",[99]],[[119837,119837],"mapped",[100]],[[119838,119838],"mapped",[101]],[[119839,119839],"mapped",[102]],[[119840,119840],"mapped",[103]],[[119841,119841],"mapped",[104]],[[119842,119842],"mapped",[105]],[[119843,119843],"mapped",[106]],[[119844,119844],"mapped",[107]],[[119845,119845],"mapped",[108]],[[119846,119846],"mapped",[109]],[[119847,119847],"mapped",[110]],[[119848,119848],"mapped",[111]],[[119849,119849],"mapped",[112]],[[119850,119850],"mapped",[113]],[[119851,119851],"mapped",[114]],[[119852,119852],"mapped",[115]],[[119853,119853],"mapped",[116]],[[119854,119854],"mapped",[117]],[[119855,119855],"mapped",[118]],[[119856,119856],"mapped",[119]],[[119857,119857],"mapped",[120]],[[119858,119858],"mapped",[121]],[[119859,119859],"mapped",[122]],[[119860,119860],"mapped",[97]],[[119861,119861],"mapped",[98]],[[119862,119862],"mapped",[99]],[[119863,119863],"mapped",[100]],[[119864,119864],"mapped",[101]],[[119865,119865],"mapped",[102]],[[119866,119866],"mapped",[103]],[[119867,119867],"mapped",[104]],[[119868,119868],"mapped",[105]],[[119869,119869],"mapped",[106]],[[119870,119870],"mapped",[107]],[[119871,119871],"mapped",[108]],[[119872,119872],"mapped",[109]],[[119873,119873],"mapped",[110]],[[119874,119874],"mapped",[111]],[[119875,119875],"mapped",[112]],[[119876,119876],"mapped",[113]],[[119877,119877],"mapped",[114]],[[119878,119878],"mapped",[115]],[[119879,119879],"mapped",[116]],[[119880,119880],"mapped",[117]],[[119881,119881],"mapped",[118]],[[119882,119882],"mapped",[119]],[[119883,119883],"mapped",[120]],[[119884,119884],"mapped",[121]],[[119885,119885],"mapped",[122]],[[119886,119886],"mapped",[97]],[[119887,119887],"mapped",[98]],[[119888,119888],"mapped",[99]],[[119889,119889],"mapped",[100]],[[119890,119890],"mapped",[101]],[[119891,119891],"mapped",[102]],[[119892,119892],"mapped",[103]],[[119893,119893],"disallowed"],[[119894,119894],"mapped",[105]],[[119895,119895],"mapped",[106]],[[119896,119896],"mapped",[107]],[[119897,119897],"mapped",[108]],[[119898,119898],"mapped",[109]],[[119899,119899],"mapped",[110]],[[119900,119900],"mapped",[111]],[[119901,119901],"mapped",[112]],[[119902,119902],"mapped",[113]],[[119903,119903],"mapped",[114]],[[119904,119904],"mapped",[115]],[[119905,119905],"mapped",[116]],[[119906,119906],"mapped",[117]],[[119907,119907],"mapped",[118]],[[119908,119908],"mapped",[119]],[[119909,119909],"mapped",[120]],[[119910,119910],"mapped",[121]],[[119911,119911],"mapped",[122]],[[119912,119912],"mapped",[97]],[[119913,119913],"mapped",[98]],[[119914,119914],"mapped",[99]],[[119915,119915],"mapped",[100]],[[119916,119916],"mapped",[101]],[[119917,119917],"mapped",[102]],[[119918,119918],"mapped",[103]],[[119919,119919],"mapped",[104]],[[119920,119920],"mapped",[105]],[[119921,119921],"mapped",[106]],[[119922,119922],"mapped",[107]],[[119923,119923],"mapped",[108]],[[119924,119924],"mapped",[109]],[[119925,119925],"mapped",[110]],[[119926,119926],"mapped",[111]],[[119927,119927],"mapped",[112]],[[119928,119928],"mapped",[113]],[[119929,119929],"mapped",[114]],[[119930,119930],"mapped",[115]],[[119931,119931],"mapped",[116]],[[119932,119932],"mapped",[117]],[[119933,119933],"mapped",[118]],[[119934,119934],"mapped",[119]],[[119935,119935],"mapped",[120]],[[119936,119936],"mapped",[121]],[[119937,119937],"mapped",[122]],[[119938,119938],"mapped",[97]],[[119939,119939],"mapped",[98]],[[119940,119940],"mapped",[99]],[[119941,119941],"mapped",[100]],[[119942,119942],"mapped",[101]],[[119943,119943],"mapped",[102]],[[119944,119944],"mapped",[103]],[[119945,119945],"mapped",[104]],[[119946,119946],"mapped",[105]],[[119947,119947],"mapped",[106]],[[119948,119948],"mapped",[107]],[[119949,119949],"mapped",[108]],[[119950,119950],"mapped",[109]],[[119951,119951],"mapped",[110]],[[119952,119952],"mapped",[111]],[[119953,119953],"mapped",[112]],[[119954,119954],"mapped",[113]],[[119955,119955],"mapped",[114]],[[119956,119956],"mapped",[115]],[[119957,119957],"mapped",[116]],[[119958,119958],"mapped",[117]],[[119959,119959],"mapped",[118]],[[119960,119960],"mapped",[119]],[[119961,119961],"mapped",[120]],[[119962,119962],"mapped",[121]],[[119963,119963],"mapped",[122]],[[119964,119964],"mapped",[97]],[[119965,119965],"disallowed"],[[119966,119966],"mapped",[99]],[[119967,119967],"mapped",[100]],[[119968,119969],"disallowed"],[[119970,119970],"mapped",[103]],[[119971,119972],"disallowed"],[[119973,119973],"mapped",[106]],[[119974,119974],"mapped",[107]],[[119975,119976],"disallowed"],[[119977,119977],"mapped",[110]],[[119978,119978],"mapped",[111]],[[119979,119979],"mapped",[112]],[[119980,119980],"mapped",[113]],[[119981,119981],"disallowed"],[[119982,119982],"mapped",[115]],[[119983,119983],"mapped",[116]],[[119984,119984],"mapped",[117]],[[119985,119985],"mapped",[118]],[[119986,119986],"mapped",[119]],[[119987,119987],"mapped",[120]],[[119988,119988],"mapped",[121]],[[119989,119989],"mapped",[122]],[[119990,119990],"mapped",[97]],[[119991,119991],"mapped",[98]],[[119992,119992],"mapped",[99]],[[119993,119993],"mapped",[100]],[[119994,119994],"disallowed"],[[119995,119995],"mapped",[102]],[[119996,119996],"disallowed"],[[119997,119997],"mapped",[104]],[[119998,119998],"mapped",[105]],[[119999,119999],"mapped",[106]],[[12e4,12e4],"mapped",[107]],[[120001,120001],"mapped",[108]],[[120002,120002],"mapped",[109]],[[120003,120003],"mapped",[110]],[[120004,120004],"disallowed"],[[120005,120005],"mapped",[112]],[[120006,120006],"mapped",[113]],[[120007,120007],"mapped",[114]],[[120008,120008],"mapped",[115]],[[120009,120009],"mapped",[116]],[[120010,120010],"mapped",[117]],[[120011,120011],"mapped",[118]],[[120012,120012],"mapped",[119]],[[120013,120013],"mapped",[120]],[[120014,120014],"mapped",[121]],[[120015,120015],"mapped",[122]],[[120016,120016],"mapped",[97]],[[120017,120017],"mapped",[98]],[[120018,120018],"mapped",[99]],[[120019,120019],"mapped",[100]],[[120020,120020],"mapped",[101]],[[120021,120021],"mapped",[102]],[[120022,120022],"mapped",[103]],[[120023,120023],"mapped",[104]],[[120024,120024],"mapped",[105]],[[120025,120025],"mapped",[106]],[[120026,120026],"mapped",[107]],[[120027,120027],"mapped",[108]],[[120028,120028],"mapped",[109]],[[120029,120029],"mapped",[110]],[[120030,120030],"mapped",[111]],[[120031,120031],"mapped",[112]],[[120032,120032],"mapped",[113]],[[120033,120033],"mapped",[114]],[[120034,120034],"mapped",[115]],[[120035,120035],"mapped",[116]],[[120036,120036],"mapped",[117]],[[120037,120037],"mapped",[118]],[[120038,120038],"mapped",[119]],[[120039,120039],"mapped",[120]],[[120040,120040],"mapped",[121]],[[120041,120041],"mapped",[122]],[[120042,120042],"mapped",[97]],[[120043,120043],"mapped",[98]],[[120044,120044],"mapped",[99]],[[120045,120045],"mapped",[100]],[[120046,120046],"mapped",[101]],[[120047,120047],"mapped",[102]],[[120048,120048],"mapped",[103]],[[120049,120049],"mapped",[104]],[[120050,120050],"mapped",[105]],[[120051,120051],"mapped",[106]],[[120052,120052],"mapped",[107]],[[120053,120053],"mapped",[108]],[[120054,120054],"mapped",[109]],[[120055,120055],"mapped",[110]],[[120056,120056],"mapped",[111]],[[120057,120057],"mapped",[112]],[[120058,120058],"mapped",[113]],[[120059,120059],"mapped",[114]],[[120060,120060],"mapped",[115]],[[120061,120061],"mapped",[116]],[[120062,120062],"mapped",[117]],[[120063,120063],"mapped",[118]],[[120064,120064],"mapped",[119]],[[120065,120065],"mapped",[120]],[[120066,120066],"mapped",[121]],[[120067,120067],"mapped",[122]],[[120068,120068],"mapped",[97]],[[120069,120069],"mapped",[98]],[[120070,120070],"disallowed"],[[120071,120071],"mapped",[100]],[[120072,120072],"mapped",[101]],[[120073,120073],"mapped",[102]],[[120074,120074],"mapped",[103]],[[120075,120076],"disallowed"],[[120077,120077],"mapped",[106]],[[120078,120078],"mapped",[107]],[[120079,120079],"mapped",[108]],[[120080,120080],"mapped",[109]],[[120081,120081],"mapped",[110]],[[120082,120082],"mapped",[111]],[[120083,120083],"mapped",[112]],[[120084,120084],"mapped",[113]],[[120085,120085],"disallowed"],[[120086,120086],"mapped",[115]],[[120087,120087],"mapped",[116]],[[120088,120088],"mapped",[117]],[[120089,120089],"mapped",[118]],[[120090,120090],"mapped",[119]],[[120091,120091],"mapped",[120]],[[120092,120092],"mapped",[121]],[[120093,120093],"disallowed"],[[120094,120094],"mapped",[97]],[[120095,120095],"mapped",[98]],[[120096,120096],"mapped",[99]],[[120097,120097],"mapped",[100]],[[120098,120098],"mapped",[101]],[[120099,120099],"mapped",[102]],[[120100,120100],"mapped",[103]],[[120101,120101],"mapped",[104]],[[120102,120102],"mapped",[105]],[[120103,120103],"mapped",[106]],[[120104,120104],"mapped",[107]],[[120105,120105],"mapped",[108]],[[120106,120106],"mapped",[109]],[[120107,120107],"mapped",[110]],[[120108,120108],"mapped",[111]],[[120109,120109],"mapped",[112]],[[120110,120110],"mapped",[113]],[[120111,120111],"mapped",[114]],[[120112,120112],"mapped",[115]],[[120113,120113],"mapped",[116]],[[120114,120114],"mapped",[117]],[[120115,120115],"mapped",[118]],[[120116,120116],"mapped",[119]],[[120117,120117],"mapped",[120]],[[120118,120118],"mapped",[121]],[[120119,120119],"mapped",[122]],[[120120,120120],"mapped",[97]],[[120121,120121],"mapped",[98]],[[120122,120122],"disallowed"],[[120123,120123],"mapped",[100]],[[120124,120124],"mapped",[101]],[[120125,120125],"mapped",[102]],[[120126,120126],"mapped",[103]],[[120127,120127],"disallowed"],[[120128,120128],"mapped",[105]],[[120129,120129],"mapped",[106]],[[120130,120130],"mapped",[107]],[[120131,120131],"mapped",[108]],[[120132,120132],"mapped",[109]],[[120133,120133],"disallowed"],[[120134,120134],"mapped",[111]],[[120135,120137],"disallowed"],[[120138,120138],"mapped",[115]],[[120139,120139],"mapped",[116]],[[120140,120140],"mapped",[117]],[[120141,120141],"mapped",[118]],[[120142,120142],"mapped",[119]],[[120143,120143],"mapped",[120]],[[120144,120144],"mapped",[121]],[[120145,120145],"disallowed"],[[120146,120146],"mapped",[97]],[[120147,120147],"mapped",[98]],[[120148,120148],"mapped",[99]],[[120149,120149],"mapped",[100]],[[120150,120150],"mapped",[101]],[[120151,120151],"mapped",[102]],[[120152,120152],"mapped",[103]],[[120153,120153],"mapped",[104]],[[120154,120154],"mapped",[105]],[[120155,120155],"mapped",[106]],[[120156,120156],"mapped",[107]],[[120157,120157],"mapped",[108]],[[120158,120158],"mapped",[109]],[[120159,120159],"mapped",[110]],[[120160,120160],"mapped",[111]],[[120161,120161],"mapped",[112]],[[120162,120162],"mapped",[113]],[[120163,120163],"mapped",[114]],[[120164,120164],"mapped",[115]],[[120165,120165],"mapped",[116]],[[120166,120166],"mapped",[117]],[[120167,120167],"mapped",[118]],[[120168,120168],"mapped",[119]],[[120169,120169],"mapped",[120]],[[120170,120170],"mapped",[121]],[[120171,120171],"mapped",[122]],[[120172,120172],"mapped",[97]],[[120173,120173],"mapped",[98]],[[120174,120174],"mapped",[99]],[[120175,120175],"mapped",[100]],[[120176,120176],"mapped",[101]],[[120177,120177],"mapped",[102]],[[120178,120178],"mapped",[103]],[[120179,120179],"mapped",[104]],[[120180,120180],"mapped",[105]],[[120181,120181],"mapped",[106]],[[120182,120182],"mapped",[107]],[[120183,120183],"mapped",[108]],[[120184,120184],"mapped",[109]],[[120185,120185],"mapped",[110]],[[120186,120186],"mapped",[111]],[[120187,120187],"mapped",[112]],[[120188,120188],"mapped",[113]],[[120189,120189],"mapped",[114]],[[120190,120190],"mapped",[115]],[[120191,120191],"mapped",[116]],[[120192,120192],"mapped",[117]],[[120193,120193],"mapped",[118]],[[120194,120194],"mapped",[119]],[[120195,120195],"mapped",[120]],[[120196,120196],"mapped",[121]],[[120197,120197],"mapped",[122]],[[120198,120198],"mapped",[97]],[[120199,120199],"mapped",[98]],[[120200,120200],"mapped",[99]],[[120201,120201],"mapped",[100]],[[120202,120202],"mapped",[101]],[[120203,120203],"mapped",[102]],[[120204,120204],"mapped",[103]],[[120205,120205],"mapped",[104]],[[120206,120206],"mapped",[105]],[[120207,120207],"mapped",[106]],[[120208,120208],"mapped",[107]],[[120209,120209],"mapped",[108]],[[120210,120210],"mapped",[109]],[[120211,120211],"mapped",[110]],[[120212,120212],"mapped",[111]],[[120213,120213],"mapped",[112]],[[120214,120214],"mapped",[113]],[[120215,120215],"mapped",[114]],[[120216,120216],"mapped",[115]],[[120217,120217],"mapped",[116]],[[120218,120218],"mapped",[117]],[[120219,120219],"mapped",[118]],[[120220,120220],"mapped",[119]],[[120221,120221],"mapped",[120]],[[120222,120222],"mapped",[121]],[[120223,120223],"mapped",[122]],[[120224,120224],"mapped",[97]],[[120225,120225],"mapped",[98]],[[120226,120226],"mapped",[99]],[[120227,120227],"mapped",[100]],[[120228,120228],"mapped",[101]],[[120229,120229],"mapped",[102]],[[120230,120230],"mapped",[103]],[[120231,120231],"mapped",[104]],[[120232,120232],"mapped",[105]],[[120233,120233],"mapped",[106]],[[120234,120234],"mapped",[107]],[[120235,120235],"mapped",[108]],[[120236,120236],"mapped",[109]],[[120237,120237],"mapped",[110]],[[120238,120238],"mapped",[111]],[[120239,120239],"mapped",[112]],[[120240,120240],"mapped",[113]],[[120241,120241],"mapped",[114]],[[120242,120242],"mapped",[115]],[[120243,120243],"mapped",[116]],[[120244,120244],"mapped",[117]],[[120245,120245],"mapped",[118]],[[120246,120246],"mapped",[119]],[[120247,120247],"mapped",[120]],[[120248,120248],"mapped",[121]],[[120249,120249],"mapped",[122]],[[120250,120250],"mapped",[97]],[[120251,120251],"mapped",[98]],[[120252,120252],"mapped",[99]],[[120253,120253],"mapped",[100]],[[120254,120254],"mapped",[101]],[[120255,120255],"mapped",[102]],[[120256,120256],"mapped",[103]],[[120257,120257],"mapped",[104]],[[120258,120258],"mapped",[105]],[[120259,120259],"mapped",[106]],[[120260,120260],"mapped",[107]],[[120261,120261],"mapped",[108]],[[120262,120262],"mapped",[109]],[[120263,120263],"mapped",[110]],[[120264,120264],"mapped",[111]],[[120265,120265],"mapped",[112]],[[120266,120266],"mapped",[113]],[[120267,120267],"mapped",[114]],[[120268,120268],"mapped",[115]],[[120269,120269],"mapped",[116]],[[120270,120270],"mapped",[117]],[[120271,120271],"mapped",[118]],[[120272,120272],"mapped",[119]],[[120273,120273],"mapped",[120]],[[120274,120274],"mapped",[121]],[[120275,120275],"mapped",[122]],[[120276,120276],"mapped",[97]],[[120277,120277],"mapped",[98]],[[120278,120278],"mapped",[99]],[[120279,120279],"mapped",[100]],[[120280,120280],"mapped",[101]],[[120281,120281],"mapped",[102]],[[120282,120282],"mapped",[103]],[[120283,120283],"mapped",[104]],[[120284,120284],"mapped",[105]],[[120285,120285],"mapped",[106]],[[120286,120286],"mapped",[107]],[[120287,120287],"mapped",[108]],[[120288,120288],"mapped",[109]],[[120289,120289],"mapped",[110]],[[120290,120290],"mapped",[111]],[[120291,120291],"mapped",[112]],[[120292,120292],"mapped",[113]],[[120293,120293],"mapped",[114]],[[120294,120294],"mapped",[115]],[[120295,120295],"mapped",[116]],[[120296,120296],"mapped",[117]],[[120297,120297],"mapped",[118]],[[120298,120298],"mapped",[119]],[[120299,120299],"mapped",[120]],[[120300,120300],"mapped",[121]],[[120301,120301],"mapped",[122]],[[120302,120302],"mapped",[97]],[[120303,120303],"mapped",[98]],[[120304,120304],"mapped",[99]],[[120305,120305],"mapped",[100]],[[120306,120306],"mapped",[101]],[[120307,120307],"mapped",[102]],[[120308,120308],"mapped",[103]],[[120309,120309],"mapped",[104]],[[120310,120310],"mapped",[105]],[[120311,120311],"mapped",[106]],[[120312,120312],"mapped",[107]],[[120313,120313],"mapped",[108]],[[120314,120314],"mapped",[109]],[[120315,120315],"mapped",[110]],[[120316,120316],"mapped",[111]],[[120317,120317],"mapped",[112]],[[120318,120318],"mapped",[113]],[[120319,120319],"mapped",[114]],[[120320,120320],"mapped",[115]],[[120321,120321],"mapped",[116]],[[120322,120322],"mapped",[117]],[[120323,120323],"mapped",[118]],[[120324,120324],"mapped",[119]],[[120325,120325],"mapped",[120]],[[120326,120326],"mapped",[121]],[[120327,120327],"mapped",[122]],[[120328,120328],"mapped",[97]],[[120329,120329],"mapped",[98]],[[120330,120330],"mapped",[99]],[[120331,120331],"mapped",[100]],[[120332,120332],"mapped",[101]],[[120333,120333],"mapped",[102]],[[120334,120334],"mapped",[103]],[[120335,120335],"mapped",[104]],[[120336,120336],"mapped",[105]],[[120337,120337],"mapped",[106]],[[120338,120338],"mapped",[107]],[[120339,120339],"mapped",[108]],[[120340,120340],"mapped",[109]],[[120341,120341],"mapped",[110]],[[120342,120342],"mapped",[111]],[[120343,120343],"mapped",[112]],[[120344,120344],"mapped",[113]],[[120345,120345],"mapped",[114]],[[120346,120346],"mapped",[115]],[[120347,120347],"mapped",[116]],[[120348,120348],"mapped",[117]],[[120349,120349],"mapped",[118]],[[120350,120350],"mapped",[119]],[[120351,120351],"mapped",[120]],[[120352,120352],"mapped",[121]],[[120353,120353],"mapped",[122]],[[120354,120354],"mapped",[97]],[[120355,120355],"mapped",[98]],[[120356,120356],"mapped",[99]],[[120357,120357],"mapped",[100]],[[120358,120358],"mapped",[101]],[[120359,120359],"mapped",[102]],[[120360,120360],"mapped",[103]],[[120361,120361],"mapped",[104]],[[120362,120362],"mapped",[105]],[[120363,120363],"mapped",[106]],[[120364,120364],"mapped",[107]],[[120365,120365],"mapped",[108]],[[120366,120366],"mapped",[109]],[[120367,120367],"mapped",[110]],[[120368,120368],"mapped",[111]],[[120369,120369],"mapped",[112]],[[120370,120370],"mapped",[113]],[[120371,120371],"mapped",[114]],[[120372,120372],"mapped",[115]],[[120373,120373],"mapped",[116]],[[120374,120374],"mapped",[117]],[[120375,120375],"mapped",[118]],[[120376,120376],"mapped",[119]],[[120377,120377],"mapped",[120]],[[120378,120378],"mapped",[121]],[[120379,120379],"mapped",[122]],[[120380,120380],"mapped",[97]],[[120381,120381],"mapped",[98]],[[120382,120382],"mapped",[99]],[[120383,120383],"mapped",[100]],[[120384,120384],"mapped",[101]],[[120385,120385],"mapped",[102]],[[120386,120386],"mapped",[103]],[[120387,120387],"mapped",[104]],[[120388,120388],"mapped",[105]],[[120389,120389],"mapped",[106]],[[120390,120390],"mapped",[107]],[[120391,120391],"mapped",[108]],[[120392,120392],"mapped",[109]],[[120393,120393],"mapped",[110]],[[120394,120394],"mapped",[111]],[[120395,120395],"mapped",[112]],[[120396,120396],"mapped",[113]],[[120397,120397],"mapped",[114]],[[120398,120398],"mapped",[115]],[[120399,120399],"mapped",[116]],[[120400,120400],"mapped",[117]],[[120401,120401],"mapped",[118]],[[120402,120402],"mapped",[119]],[[120403,120403],"mapped",[120]],[[120404,120404],"mapped",[121]],[[120405,120405],"mapped",[122]],[[120406,120406],"mapped",[97]],[[120407,120407],"mapped",[98]],[[120408,120408],"mapped",[99]],[[120409,120409],"mapped",[100]],[[120410,120410],"mapped",[101]],[[120411,120411],"mapped",[102]],[[120412,120412],"mapped",[103]],[[120413,120413],"mapped",[104]],[[120414,120414],"mapped",[105]],[[120415,120415],"mapped",[106]],[[120416,120416],"mapped",[107]],[[120417,120417],"mapped",[108]],[[120418,120418],"mapped",[109]],[[120419,120419],"mapped",[110]],[[120420,120420],"mapped",[111]],[[120421,120421],"mapped",[112]],[[120422,120422],"mapped",[113]],[[120423,120423],"mapped",[114]],[[120424,120424],"mapped",[115]],[[120425,120425],"mapped",[116]],[[120426,120426],"mapped",[117]],[[120427,120427],"mapped",[118]],[[120428,120428],"mapped",[119]],[[120429,120429],"mapped",[120]],[[120430,120430],"mapped",[121]],[[120431,120431],"mapped",[122]],[[120432,120432],"mapped",[97]],[[120433,120433],"mapped",[98]],[[120434,120434],"mapped",[99]],[[120435,120435],"mapped",[100]],[[120436,120436],"mapped",[101]],[[120437,120437],"mapped",[102]],[[120438,120438],"mapped",[103]],[[120439,120439],"mapped",[104]],[[120440,120440],"mapped",[105]],[[120441,120441],"mapped",[106]],[[120442,120442],"mapped",[107]],[[120443,120443],"mapped",[108]],[[120444,120444],"mapped",[109]],[[120445,120445],"mapped",[110]],[[120446,120446],"mapped",[111]],[[120447,120447],"mapped",[112]],[[120448,120448],"mapped",[113]],[[120449,120449],"mapped",[114]],[[120450,120450],"mapped",[115]],[[120451,120451],"mapped",[116]],[[120452,120452],"mapped",[117]],[[120453,120453],"mapped",[118]],[[120454,120454],"mapped",[119]],[[120455,120455],"mapped",[120]],[[120456,120456],"mapped",[121]],[[120457,120457],"mapped",[122]],[[120458,120458],"mapped",[97]],[[120459,120459],"mapped",[98]],[[120460,120460],"mapped",[99]],[[120461,120461],"mapped",[100]],[[120462,120462],"mapped",[101]],[[120463,120463],"mapped",[102]],[[120464,120464],"mapped",[103]],[[120465,120465],"mapped",[104]],[[120466,120466],"mapped",[105]],[[120467,120467],"mapped",[106]],[[120468,120468],"mapped",[107]],[[120469,120469],"mapped",[108]],[[120470,120470],"mapped",[109]],[[120471,120471],"mapped",[110]],[[120472,120472],"mapped",[111]],[[120473,120473],"mapped",[112]],[[120474,120474],"mapped",[113]],[[120475,120475],"mapped",[114]],[[120476,120476],"mapped",[115]],[[120477,120477],"mapped",[116]],[[120478,120478],"mapped",[117]],[[120479,120479],"mapped",[118]],[[120480,120480],"mapped",[119]],[[120481,120481],"mapped",[120]],[[120482,120482],"mapped",[121]],[[120483,120483],"mapped",[122]],[[120484,120484],"mapped",[305]],[[120485,120485],"mapped",[567]],[[120486,120487],"disallowed"],[[120488,120488],"mapped",[945]],[[120489,120489],"mapped",[946]],[[120490,120490],"mapped",[947]],[[120491,120491],"mapped",[948]],[[120492,120492],"mapped",[949]],[[120493,120493],"mapped",[950]],[[120494,120494],"mapped",[951]],[[120495,120495],"mapped",[952]],[[120496,120496],"mapped",[953]],[[120497,120497],"mapped",[954]],[[120498,120498],"mapped",[955]],[[120499,120499],"mapped",[956]],[[120500,120500],"mapped",[957]],[[120501,120501],"mapped",[958]],[[120502,120502],"mapped",[959]],[[120503,120503],"mapped",[960]],[[120504,120504],"mapped",[961]],[[120505,120505],"mapped",[952]],[[120506,120506],"mapped",[963]],[[120507,120507],"mapped",[964]],[[120508,120508],"mapped",[965]],[[120509,120509],"mapped",[966]],[[120510,120510],"mapped",[967]],[[120511,120511],"mapped",[968]],[[120512,120512],"mapped",[969]],[[120513,120513],"mapped",[8711]],[[120514,120514],"mapped",[945]],[[120515,120515],"mapped",[946]],[[120516,120516],"mapped",[947]],[[120517,120517],"mapped",[948]],[[120518,120518],"mapped",[949]],[[120519,120519],"mapped",[950]],[[120520,120520],"mapped",[951]],[[120521,120521],"mapped",[952]],[[120522,120522],"mapped",[953]],[[120523,120523],"mapped",[954]],[[120524,120524],"mapped",[955]],[[120525,120525],"mapped",[956]],[[120526,120526],"mapped",[957]],[[120527,120527],"mapped",[958]],[[120528,120528],"mapped",[959]],[[120529,120529],"mapped",[960]],[[120530,120530],"mapped",[961]],[[120531,120532],"mapped",[963]],[[120533,120533],"mapped",[964]],[[120534,120534],"mapped",[965]],[[120535,120535],"mapped",[966]],[[120536,120536],"mapped",[967]],[[120537,120537],"mapped",[968]],[[120538,120538],"mapped",[969]],[[120539,120539],"mapped",[8706]],[[120540,120540],"mapped",[949]],[[120541,120541],"mapped",[952]],[[120542,120542],"mapped",[954]],[[120543,120543],"mapped",[966]],[[120544,120544],"mapped",[961]],[[120545,120545],"mapped",[960]],[[120546,120546],"mapped",[945]],[[120547,120547],"mapped",[946]],[[120548,120548],"mapped",[947]],[[120549,120549],"mapped",[948]],[[120550,120550],"mapped",[949]],[[120551,120551],"mapped",[950]],[[120552,120552],"mapped",[951]],[[120553,120553],"mapped",[952]],[[120554,120554],"mapped",[953]],[[120555,120555],"mapped",[954]],[[120556,120556],"mapped",[955]],[[120557,120557],"mapped",[956]],[[120558,120558],"mapped",[957]],[[120559,120559],"mapped",[958]],[[120560,120560],"mapped",[959]],[[120561,120561],"mapped",[960]],[[120562,120562],"mapped",[961]],[[120563,120563],"mapped",[952]],[[120564,120564],"mapped",[963]],[[120565,120565],"mapped",[964]],[[120566,120566],"mapped",[965]],[[120567,120567],"mapped",[966]],[[120568,120568],"mapped",[967]],[[120569,120569],"mapped",[968]],[[120570,120570],"mapped",[969]],[[120571,120571],"mapped",[8711]],[[120572,120572],"mapped",[945]],[[120573,120573],"mapped",[946]],[[120574,120574],"mapped",[947]],[[120575,120575],"mapped",[948]],[[120576,120576],"mapped",[949]],[[120577,120577],"mapped",[950]],[[120578,120578],"mapped",[951]],[[120579,120579],"mapped",[952]],[[120580,120580],"mapped",[953]],[[120581,120581],"mapped",[954]],[[120582,120582],"mapped",[955]],[[120583,120583],"mapped",[956]],[[120584,120584],"mapped",[957]],[[120585,120585],"mapped",[958]],[[120586,120586],"mapped",[959]],[[120587,120587],"mapped",[960]],[[120588,120588],"mapped",[961]],[[120589,120590],"mapped",[963]],[[120591,120591],"mapped",[964]],[[120592,120592],"mapped",[965]],[[120593,120593],"mapped",[966]],[[120594,120594],"mapped",[967]],[[120595,120595],"mapped",[968]],[[120596,120596],"mapped",[969]],[[120597,120597],"mapped",[8706]],[[120598,120598],"mapped",[949]],[[120599,120599],"mapped",[952]],[[120600,120600],"mapped",[954]],[[120601,120601],"mapped",[966]],[[120602,120602],"mapped",[961]],[[120603,120603],"mapped",[960]],[[120604,120604],"mapped",[945]],[[120605,120605],"mapped",[946]],[[120606,120606],"mapped",[947]],[[120607,120607],"mapped",[948]],[[120608,120608],"mapped",[949]],[[120609,120609],"mapped",[950]],[[120610,120610],"mapped",[951]],[[120611,120611],"mapped",[952]],[[120612,120612],"mapped",[953]],[[120613,120613],"mapped",[954]],[[120614,120614],"mapped",[955]],[[120615,120615],"mapped",[956]],[[120616,120616],"mapped",[957]],[[120617,120617],"mapped",[958]],[[120618,120618],"mapped",[959]],[[120619,120619],"mapped",[960]],[[120620,120620],"mapped",[961]],[[120621,120621],"mapped",[952]],[[120622,120622],"mapped",[963]],[[120623,120623],"mapped",[964]],[[120624,120624],"mapped",[965]],[[120625,120625],"mapped",[966]],[[120626,120626],"mapped",[967]],[[120627,120627],"mapped",[968]],[[120628,120628],"mapped",[969]],[[120629,120629],"mapped",[8711]],[[120630,120630],"mapped",[945]],[[120631,120631],"mapped",[946]],[[120632,120632],"mapped",[947]],[[120633,120633],"mapped",[948]],[[120634,120634],"mapped",[949]],[[120635,120635],"mapped",[950]],[[120636,120636],"mapped",[951]],[[120637,120637],"mapped",[952]],[[120638,120638],"mapped",[953]],[[120639,120639],"mapped",[954]],[[120640,120640],"mapped",[955]],[[120641,120641],"mapped",[956]],[[120642,120642],"mapped",[957]],[[120643,120643],"mapped",[958]],[[120644,120644],"mapped",[959]],[[120645,120645],"mapped",[960]],[[120646,120646],"mapped",[961]],[[120647,120648],"mapped",[963]],[[120649,120649],"mapped",[964]],[[120650,120650],"mapped",[965]],[[120651,120651],"mapped",[966]],[[120652,120652],"mapped",[967]],[[120653,120653],"mapped",[968]],[[120654,120654],"mapped",[969]],[[120655,120655],"mapped",[8706]],[[120656,120656],"mapped",[949]],[[120657,120657],"mapped",[952]],[[120658,120658],"mapped",[954]],[[120659,120659],"mapped",[966]],[[120660,120660],"mapped",[961]],[[120661,120661],"mapped",[960]],[[120662,120662],"mapped",[945]],[[120663,120663],"mapped",[946]],[[120664,120664],"mapped",[947]],[[120665,120665],"mapped",[948]],[[120666,120666],"mapped",[949]],[[120667,120667],"mapped",[950]],[[120668,120668],"mapped",[951]],[[120669,120669],"mapped",[952]],[[120670,120670],"mapped",[953]],[[120671,120671],"mapped",[954]],[[120672,120672],"mapped",[955]],[[120673,120673],"mapped",[956]],[[120674,120674],"mapped",[957]],[[120675,120675],"mapped",[958]],[[120676,120676],"mapped",[959]],[[120677,120677],"mapped",[960]],[[120678,120678],"mapped",[961]],[[120679,120679],"mapped",[952]],[[120680,120680],"mapped",[963]],[[120681,120681],"mapped",[964]],[[120682,120682],"mapped",[965]],[[120683,120683],"mapped",[966]],[[120684,120684],"mapped",[967]],[[120685,120685],"mapped",[968]],[[120686,120686],"mapped",[969]],[[120687,120687],"mapped",[8711]],[[120688,120688],"mapped",[945]],[[120689,120689],"mapped",[946]],[[120690,120690],"mapped",[947]],[[120691,120691],"mapped",[948]],[[120692,120692],"mapped",[949]],[[120693,120693],"mapped",[950]],[[120694,120694],"mapped",[951]],[[120695,120695],"mapped",[952]],[[120696,120696],"mapped",[953]],[[120697,120697],"mapped",[954]],[[120698,120698],"mapped",[955]],[[120699,120699],"mapped",[956]],[[120700,120700],"mapped",[957]],[[120701,120701],"mapped",[958]],[[120702,120702],"mapped",[959]],[[120703,120703],"mapped",[960]],[[120704,120704],"mapped",[961]],[[120705,120706],"mapped",[963]],[[120707,120707],"mapped",[964]],[[120708,120708],"mapped",[965]],[[120709,120709],"mapped",[966]],[[120710,120710],"mapped",[967]],[[120711,120711],"mapped",[968]],[[120712,120712],"mapped",[969]],[[120713,120713],"mapped",[8706]],[[120714,120714],"mapped",[949]],[[120715,120715],"mapped",[952]],[[120716,120716],"mapped",[954]],[[120717,120717],"mapped",[966]],[[120718,120718],"mapped",[961]],[[120719,120719],"mapped",[960]],[[120720,120720],"mapped",[945]],[[120721,120721],"mapped",[946]],[[120722,120722],"mapped",[947]],[[120723,120723],"mapped",[948]],[[120724,120724],"mapped",[949]],[[120725,120725],"mapped",[950]],[[120726,120726],"mapped",[951]],[[120727,120727],"mapped",[952]],[[120728,120728],"mapped",[953]],[[120729,120729],"mapped",[954]],[[120730,120730],"mapped",[955]],[[120731,120731],"mapped",[956]],[[120732,120732],"mapped",[957]],[[120733,120733],"mapped",[958]],[[120734,120734],"mapped",[959]],[[120735,120735],"mapped",[960]],[[120736,120736],"mapped",[961]],[[120737,120737],"mapped",[952]],[[120738,120738],"mapped",[963]],[[120739,120739],"mapped",[964]],[[120740,120740],"mapped",[965]],[[120741,120741],"mapped",[966]],[[120742,120742],"mapped",[967]],[[120743,120743],"mapped",[968]],[[120744,120744],"mapped",[969]],[[120745,120745],"mapped",[8711]],[[120746,120746],"mapped",[945]],[[120747,120747],"mapped",[946]],[[120748,120748],"mapped",[947]],[[120749,120749],"mapped",[948]],[[120750,120750],"mapped",[949]],[[120751,120751],"mapped",[950]],[[120752,120752],"mapped",[951]],[[120753,120753],"mapped",[952]],[[120754,120754],"mapped",[953]],[[120755,120755],"mapped",[954]],[[120756,120756],"mapped",[955]],[[120757,120757],"mapped",[956]],[[120758,120758],"mapped",[957]],[[120759,120759],"mapped",[958]],[[120760,120760],"mapped",[959]],[[120761,120761],"mapped",[960]],[[120762,120762],"mapped",[961]],[[120763,120764],"mapped",[963]],[[120765,120765],"mapped",[964]],[[120766,120766],"mapped",[965]],[[120767,120767],"mapped",[966]],[[120768,120768],"mapped",[967]],[[120769,120769],"mapped",[968]],[[120770,120770],"mapped",[969]],[[120771,120771],"mapped",[8706]],[[120772,120772],"mapped",[949]],[[120773,120773],"mapped",[952]],[[120774,120774],"mapped",[954]],[[120775,120775],"mapped",[966]],[[120776,120776],"mapped",[961]],[[120777,120777],"mapped",[960]],[[120778,120779],"mapped",[989]],[[120780,120781],"disallowed"],[[120782,120782],"mapped",[48]],[[120783,120783],"mapped",[49]],[[120784,120784],"mapped",[50]],[[120785,120785],"mapped",[51]],[[120786,120786],"mapped",[52]],[[120787,120787],"mapped",[53]],[[120788,120788],"mapped",[54]],[[120789,120789],"mapped",[55]],[[120790,120790],"mapped",[56]],[[120791,120791],"mapped",[57]],[[120792,120792],"mapped",[48]],[[120793,120793],"mapped",[49]],[[120794,120794],"mapped",[50]],[[120795,120795],"mapped",[51]],[[120796,120796],"mapped",[52]],[[120797,120797],"mapped",[53]],[[120798,120798],"mapped",[54]],[[120799,120799],"mapped",[55]],[[120800,120800],"mapped",[56]],[[120801,120801],"mapped",[57]],[[120802,120802],"mapped",[48]],[[120803,120803],"mapped",[49]],[[120804,120804],"mapped",[50]],[[120805,120805],"mapped",[51]],[[120806,120806],"mapped",[52]],[[120807,120807],"mapped",[53]],[[120808,120808],"mapped",[54]],[[120809,120809],"mapped",[55]],[[120810,120810],"mapped",[56]],[[120811,120811],"mapped",[57]],[[120812,120812],"mapped",[48]],[[120813,120813],"mapped",[49]],[[120814,120814],"mapped",[50]],[[120815,120815],"mapped",[51]],[[120816,120816],"mapped",[52]],[[120817,120817],"mapped",[53]],[[120818,120818],"mapped",[54]],[[120819,120819],"mapped",[55]],[[120820,120820],"mapped",[56]],[[120821,120821],"mapped",[57]],[[120822,120822],"mapped",[48]],[[120823,120823],"mapped",[49]],[[120824,120824],"mapped",[50]],[[120825,120825],"mapped",[51]],[[120826,120826],"mapped",[52]],[[120827,120827],"mapped",[53]],[[120828,120828],"mapped",[54]],[[120829,120829],"mapped",[55]],[[120830,120830],"mapped",[56]],[[120831,120831],"mapped",[57]],[[120832,121343],"valid",[],"NV8"],[[121344,121398],"valid"],[[121399,121402],"valid",[],"NV8"],[[121403,121452],"valid"],[[121453,121460],"valid",[],"NV8"],[[121461,121461],"valid"],[[121462,121475],"valid",[],"NV8"],[[121476,121476],"valid"],[[121477,121483],"valid",[],"NV8"],[[121484,121498],"disallowed"],[[121499,121503],"valid"],[[121504,121504],"disallowed"],[[121505,121519],"valid"],[[121520,124927],"disallowed"],[[124928,125124],"valid"],[[125125,125126],"disallowed"],[[125127,125135],"valid",[],"NV8"],[[125136,125142],"valid"],[[125143,126463],"disallowed"],[[126464,126464],"mapped",[1575]],[[126465,126465],"mapped",[1576]],[[126466,126466],"mapped",[1580]],[[126467,126467],"mapped",[1583]],[[126468,126468],"disallowed"],[[126469,126469],"mapped",[1608]],[[126470,126470],"mapped",[1586]],[[126471,126471],"mapped",[1581]],[[126472,126472],"mapped",[1591]],[[126473,126473],"mapped",[1610]],[[126474,126474],"mapped",[1603]],[[126475,126475],"mapped",[1604]],[[126476,126476],"mapped",[1605]],[[126477,126477],"mapped",[1606]],[[126478,126478],"mapped",[1587]],[[126479,126479],"mapped",[1593]],[[126480,126480],"mapped",[1601]],[[126481,126481],"mapped",[1589]],[[126482,126482],"mapped",[1602]],[[126483,126483],"mapped",[1585]],[[126484,126484],"mapped",[1588]],[[126485,126485],"mapped",[1578]],[[126486,126486],"mapped",[1579]],[[126487,126487],"mapped",[1582]],[[126488,126488],"mapped",[1584]],[[126489,126489],"mapped",[1590]],[[126490,126490],"mapped",[1592]],[[126491,126491],"mapped",[1594]],[[126492,126492],"mapped",[1646]],[[126493,126493],"mapped",[1722]],[[126494,126494],"mapped",[1697]],[[126495,126495],"mapped",[1647]],[[126496,126496],"disallowed"],[[126497,126497],"mapped",[1576]],[[126498,126498],"mapped",[1580]],[[126499,126499],"disallowed"],[[126500,126500],"mapped",[1607]],[[126501,126502],"disallowed"],[[126503,126503],"mapped",[1581]],[[126504,126504],"disallowed"],[[126505,126505],"mapped",[1610]],[[126506,126506],"mapped",[1603]],[[126507,126507],"mapped",[1604]],[[126508,126508],"mapped",[1605]],[[126509,126509],"mapped",[1606]],[[126510,126510],"mapped",[1587]],[[126511,126511],"mapped",[1593]],[[126512,126512],"mapped",[1601]],[[126513,126513],"mapped",[1589]],[[126514,126514],"mapped",[1602]],[[126515,126515],"disallowed"],[[126516,126516],"mapped",[1588]],[[126517,126517],"mapped",[1578]],[[126518,126518],"mapped",[1579]],[[126519,126519],"mapped",[1582]],[[126520,126520],"disallowed"],[[126521,126521],"mapped",[1590]],[[126522,126522],"disallowed"],[[126523,126523],"mapped",[1594]],[[126524,126529],"disallowed"],[[126530,126530],"mapped",[1580]],[[126531,126534],"disallowed"],[[126535,126535],"mapped",[1581]],[[126536,126536],"disallowed"],[[126537,126537],"mapped",[1610]],[[126538,126538],"disallowed"],[[126539,126539],"mapped",[1604]],[[126540,126540],"disallowed"],[[126541,126541],"mapped",[1606]],[[126542,126542],"mapped",[1587]],[[126543,126543],"mapped",[1593]],[[126544,126544],"disallowed"],[[126545,126545],"mapped",[1589]],[[126546,126546],"mapped",[1602]],[[126547,126547],"disallowed"],[[126548,126548],"mapped",[1588]],[[126549,126550],"disallowed"],[[126551,126551],"mapped",[1582]],[[126552,126552],"disallowed"],[[126553,126553],"mapped",[1590]],[[126554,126554],"disallowed"],[[126555,126555],"mapped",[1594]],[[126556,126556],"disallowed"],[[126557,126557],"mapped",[1722]],[[126558,126558],"disallowed"],[[126559,126559],"mapped",[1647]],[[126560,126560],"disallowed"],[[126561,126561],"mapped",[1576]],[[126562,126562],"mapped",[1580]],[[126563,126563],"disallowed"],[[126564,126564],"mapped",[1607]],[[126565,126566],"disallowed"],[[126567,126567],"mapped",[1581]],[[126568,126568],"mapped",[1591]],[[126569,126569],"mapped",[1610]],[[126570,126570],"mapped",[1603]],[[126571,126571],"disallowed"],[[126572,126572],"mapped",[1605]],[[126573,126573],"mapped",[1606]],[[126574,126574],"mapped",[1587]],[[126575,126575],"mapped",[1593]],[[126576,126576],"mapped",[1601]],[[126577,126577],"mapped",[1589]],[[126578,126578],"mapped",[1602]],[[126579,126579],"disallowed"],[[126580,126580],"mapped",[1588]],[[126581,126581],"mapped",[1578]],[[126582,126582],"mapped",[1579]],[[126583,126583],"mapped",[1582]],[[126584,126584],"disallowed"],[[126585,126585],"mapped",[1590]],[[126586,126586],"mapped",[1592]],[[126587,126587],"mapped",[1594]],[[126588,126588],"mapped",[1646]],[[126589,126589],"disallowed"],[[126590,126590],"mapped",[1697]],[[126591,126591],"disallowed"],[[126592,126592],"mapped",[1575]],[[126593,126593],"mapped",[1576]],[[126594,126594],"mapped",[1580]],[[126595,126595],"mapped",[1583]],[[126596,126596],"mapped",[1607]],[[126597,126597],"mapped",[1608]],[[126598,126598],"mapped",[1586]],[[126599,126599],"mapped",[1581]],[[126600,126600],"mapped",[1591]],[[126601,126601],"mapped",[1610]],[[126602,126602],"disallowed"],[[126603,126603],"mapped",[1604]],[[126604,126604],"mapped",[1605]],[[126605,126605],"mapped",[1606]],[[126606,126606],"mapped",[1587]],[[126607,126607],"mapped",[1593]],[[126608,126608],"mapped",[1601]],[[126609,126609],"mapped",[1589]],[[126610,126610],"mapped",[1602]],[[126611,126611],"mapped",[1585]],[[126612,126612],"mapped",[1588]],[[126613,126613],"mapped",[1578]],[[126614,126614],"mapped",[1579]],[[126615,126615],"mapped",[1582]],[[126616,126616],"mapped",[1584]],[[126617,126617],"mapped",[1590]],[[126618,126618],"mapped",[1592]],[[126619,126619],"mapped",[1594]],[[126620,126624],"disallowed"],[[126625,126625],"mapped",[1576]],[[126626,126626],"mapped",[1580]],[[126627,126627],"mapped",[1583]],[[126628,126628],"disallowed"],[[126629,126629],"mapped",[1608]],[[126630,126630],"mapped",[1586]],[[126631,126631],"mapped",[1581]],[[126632,126632],"mapped",[1591]],[[126633,126633],"mapped",[1610]],[[126634,126634],"disallowed"],[[126635,126635],"mapped",[1604]],[[126636,126636],"mapped",[1605]],[[126637,126637],"mapped",[1606]],[[126638,126638],"mapped",[1587]],[[126639,126639],"mapped",[1593]],[[126640,126640],"mapped",[1601]],[[126641,126641],"mapped",[1589]],[[126642,126642],"mapped",[1602]],[[126643,126643],"mapped",[1585]],[[126644,126644],"mapped",[1588]],[[126645,126645],"mapped",[1578]],[[126646,126646],"mapped",[1579]],[[126647,126647],"mapped",[1582]],[[126648,126648],"mapped",[1584]],[[126649,126649],"mapped",[1590]],[[126650,126650],"mapped",[1592]],[[126651,126651],"mapped",[1594]],[[126652,126703],"disallowed"],[[126704,126705],"valid",[],"NV8"],[[126706,126975],"disallowed"],[[126976,127019],"valid",[],"NV8"],[[127020,127023],"disallowed"],[[127024,127123],"valid",[],"NV8"],[[127124,127135],"disallowed"],[[127136,127150],"valid",[],"NV8"],[[127151,127152],"disallowed"],[[127153,127166],"valid",[],"NV8"],[[127167,127167],"valid",[],"NV8"],[[127168,127168],"disallowed"],[[127169,127183],"valid",[],"NV8"],[[127184,127184],"disallowed"],[[127185,127199],"valid",[],"NV8"],[[127200,127221],"valid",[],"NV8"],[[127222,127231],"disallowed"],[[127232,127232],"disallowed"],[[127233,127233],"disallowed_STD3_mapped",[48,44]],[[127234,127234],"disallowed_STD3_mapped",[49,44]],[[127235,127235],"disallowed_STD3_mapped",[50,44]],[[127236,127236],"disallowed_STD3_mapped",[51,44]],[[127237,127237],"disallowed_STD3_mapped",[52,44]],[[127238,127238],"disallowed_STD3_mapped",[53,44]],[[127239,127239],"disallowed_STD3_mapped",[54,44]],[[127240,127240],"disallowed_STD3_mapped",[55,44]],[[127241,127241],"disallowed_STD3_mapped",[56,44]],[[127242,127242],"disallowed_STD3_mapped",[57,44]],[[127243,127244],"valid",[],"NV8"],[[127245,127247],"disallowed"],[[127248,127248],"disallowed_STD3_mapped",[40,97,41]],[[127249,127249],"disallowed_STD3_mapped",[40,98,41]],[[127250,127250],"disallowed_STD3_mapped",[40,99,41]],[[127251,127251],"disallowed_STD3_mapped",[40,100,41]],[[127252,127252],"disallowed_STD3_mapped",[40,101,41]],[[127253,127253],"disallowed_STD3_mapped",[40,102,41]],[[127254,127254],"disallowed_STD3_mapped",[40,103,41]],[[127255,127255],"disallowed_STD3_mapped",[40,104,41]],[[127256,127256],"disallowed_STD3_mapped",[40,105,41]],[[127257,127257],"disallowed_STD3_mapped",[40,106,41]],[[127258,127258],"disallowed_STD3_mapped",[40,107,41]],[[127259,127259],"disallowed_STD3_mapped",[40,108,41]],[[127260,127260],"disallowed_STD3_mapped",[40,109,41]],[[127261,127261],"disallowed_STD3_mapped",[40,110,41]],[[127262,127262],"disallowed_STD3_mapped",[40,111,41]],[[127263,127263],"disallowed_STD3_mapped",[40,112,41]],[[127264,127264],"disallowed_STD3_mapped",[40,113,41]],[[127265,127265],"disallowed_STD3_mapped",[40,114,41]],[[127266,127266],"disallowed_STD3_mapped",[40,115,41]],[[127267,127267],"disallowed_STD3_mapped",[40,116,41]],[[127268,127268],"disallowed_STD3_mapped",[40,117,41]],[[127269,127269],"disallowed_STD3_mapped",[40,118,41]],[[127270,127270],"disallowed_STD3_mapped",[40,119,41]],[[127271,127271],"disallowed_STD3_mapped",[40,120,41]],[[127272,127272],"disallowed_STD3_mapped",[40,121,41]],[[127273,127273],"disallowed_STD3_mapped",[40,122,41]],[[127274,127274],"mapped",[12308,115,12309]],[[127275,127275],"mapped",[99]],[[127276,127276],"mapped",[114]],[[127277,127277],"mapped",[99,100]],[[127278,127278],"mapped",[119,122]],[[127279,127279],"disallowed"],[[127280,127280],"mapped",[97]],[[127281,127281],"mapped",[98]],[[127282,127282],"mapped",[99]],[[127283,127283],"mapped",[100]],[[127284,127284],"mapped",[101]],[[127285,127285],"mapped",[102]],[[127286,127286],"mapped",[103]],[[127287,127287],"mapped",[104]],[[127288,127288],"mapped",[105]],[[127289,127289],"mapped",[106]],[[127290,127290],"mapped",[107]],[[127291,127291],"mapped",[108]],[[127292,127292],"mapped",[109]],[[127293,127293],"mapped",[110]],[[127294,127294],"mapped",[111]],[[127295,127295],"mapped",[112]],[[127296,127296],"mapped",[113]],[[127297,127297],"mapped",[114]],[[127298,127298],"mapped",[115]],[[127299,127299],"mapped",[116]],[[127300,127300],"mapped",[117]],[[127301,127301],"mapped",[118]],[[127302,127302],"mapped",[119]],[[127303,127303],"mapped",[120]],[[127304,127304],"mapped",[121]],[[127305,127305],"mapped",[122]],[[127306,127306],"mapped",[104,118]],[[127307,127307],"mapped",[109,118]],[[127308,127308],"mapped",[115,100]],[[127309,127309],"mapped",[115,115]],[[127310,127310],"mapped",[112,112,118]],[[127311,127311],"mapped",[119,99]],[[127312,127318],"valid",[],"NV8"],[[127319,127319],"valid",[],"NV8"],[[127320,127326],"valid",[],"NV8"],[[127327,127327],"valid",[],"NV8"],[[127328,127337],"valid",[],"NV8"],[[127338,127338],"mapped",[109,99]],[[127339,127339],"mapped",[109,100]],[[127340,127343],"disallowed"],[[127344,127352],"valid",[],"NV8"],[[127353,127353],"valid",[],"NV8"],[[127354,127354],"valid",[],"NV8"],[[127355,127356],"valid",[],"NV8"],[[127357,127358],"valid",[],"NV8"],[[127359,127359],"valid",[],"NV8"],[[127360,127369],"valid",[],"NV8"],[[127370,127373],"valid",[],"NV8"],[[127374,127375],"valid",[],"NV8"],[[127376,127376],"mapped",[100,106]],[[127377,127386],"valid",[],"NV8"],[[127387,127461],"disallowed"],[[127462,127487],"valid",[],"NV8"],[[127488,127488],"mapped",[12411,12363]],[[127489,127489],"mapped",[12467,12467]],[[127490,127490],"mapped",[12469]],[[127491,127503],"disallowed"],[[127504,127504],"mapped",[25163]],[[127505,127505],"mapped",[23383]],[[127506,127506],"mapped",[21452]],[[127507,127507],"mapped",[12487]],[[127508,127508],"mapped",[20108]],[[127509,127509],"mapped",[22810]],[[127510,127510],"mapped",[35299]],[[127511,127511],"mapped",[22825]],[[127512,127512],"mapped",[20132]],[[127513,127513],"mapped",[26144]],[[127514,127514],"mapped",[28961]],[[127515,127515],"mapped",[26009]],[[127516,127516],"mapped",[21069]],[[127517,127517],"mapped",[24460]],[[127518,127518],"mapped",[20877]],[[127519,127519],"mapped",[26032]],[[127520,127520],"mapped",[21021]],[[127521,127521],"mapped",[32066]],[[127522,127522],"mapped",[29983]],[[127523,127523],"mapped",[36009]],[[127524,127524],"mapped",[22768]],[[127525,127525],"mapped",[21561]],[[127526,127526],"mapped",[28436]],[[127527,127527],"mapped",[25237]],[[127528,127528],"mapped",[25429]],[[127529,127529],"mapped",[19968]],[[127530,127530],"mapped",[19977]],[[127531,127531],"mapped",[36938]],[[127532,127532],"mapped",[24038]],[[127533,127533],"mapped",[20013]],[[127534,127534],"mapped",[21491]],[[127535,127535],"mapped",[25351]],[[127536,127536],"mapped",[36208]],[[127537,127537],"mapped",[25171]],[[127538,127538],"mapped",[31105]],[[127539,127539],"mapped",[31354]],[[127540,127540],"mapped",[21512]],[[127541,127541],"mapped",[28288]],[[127542,127542],"mapped",[26377]],[[127543,127543],"mapped",[26376]],[[127544,127544],"mapped",[30003]],[[127545,127545],"mapped",[21106]],[[127546,127546],"mapped",[21942]],[[127547,127551],"disallowed"],[[127552,127552],"mapped",[12308,26412,12309]],[[127553,127553],"mapped",[12308,19977,12309]],[[127554,127554],"mapped",[12308,20108,12309]],[[127555,127555],"mapped",[12308,23433,12309]],[[127556,127556],"mapped",[12308,28857,12309]],[[127557,127557],"mapped",[12308,25171,12309]],[[127558,127558],"mapped",[12308,30423,12309]],[[127559,127559],"mapped",[12308,21213,12309]],[[127560,127560],"mapped",[12308,25943,12309]],[[127561,127567],"disallowed"],[[127568,127568],"mapped",[24471]],[[127569,127569],"mapped",[21487]],[[127570,127743],"disallowed"],[[127744,127776],"valid",[],"NV8"],[[127777,127788],"valid",[],"NV8"],[[127789,127791],"valid",[],"NV8"],[[127792,127797],"valid",[],"NV8"],[[127798,127798],"valid",[],"NV8"],[[127799,127868],"valid",[],"NV8"],[[127869,127869],"valid",[],"NV8"],[[127870,127871],"valid",[],"NV8"],[[127872,127891],"valid",[],"NV8"],[[127892,127903],"valid",[],"NV8"],[[127904,127940],"valid",[],"NV8"],[[127941,127941],"valid",[],"NV8"],[[127942,127946],"valid",[],"NV8"],[[127947,127950],"valid",[],"NV8"],[[127951,127955],"valid",[],"NV8"],[[127956,127967],"valid",[],"NV8"],[[127968,127984],"valid",[],"NV8"],[[127985,127991],"valid",[],"NV8"],[[127992,127999],"valid",[],"NV8"],[[128e3,128062],"valid",[],"NV8"],[[128063,128063],"valid",[],"NV8"],[[128064,128064],"valid",[],"NV8"],[[128065,128065],"valid",[],"NV8"],[[128066,128247],"valid",[],"NV8"],[[128248,128248],"valid",[],"NV8"],[[128249,128252],"valid",[],"NV8"],[[128253,128254],"valid",[],"NV8"],[[128255,128255],"valid",[],"NV8"],[[128256,128317],"valid",[],"NV8"],[[128318,128319],"valid",[],"NV8"],[[128320,128323],"valid",[],"NV8"],[[128324,128330],"valid",[],"NV8"],[[128331,128335],"valid",[],"NV8"],[[128336,128359],"valid",[],"NV8"],[[128360,128377],"valid",[],"NV8"],[[128378,128378],"disallowed"],[[128379,128419],"valid",[],"NV8"],[[128420,128420],"disallowed"],[[128421,128506],"valid",[],"NV8"],[[128507,128511],"valid",[],"NV8"],[[128512,128512],"valid",[],"NV8"],[[128513,128528],"valid",[],"NV8"],[[128529,128529],"valid",[],"NV8"],[[128530,128532],"valid",[],"NV8"],[[128533,128533],"valid",[],"NV8"],[[128534,128534],"valid",[],"NV8"],[[128535,128535],"valid",[],"NV8"],[[128536,128536],"valid",[],"NV8"],[[128537,128537],"valid",[],"NV8"],[[128538,128538],"valid",[],"NV8"],[[128539,128539],"valid",[],"NV8"],[[128540,128542],"valid",[],"NV8"],[[128543,128543],"valid",[],"NV8"],[[128544,128549],"valid",[],"NV8"],[[128550,128551],"valid",[],"NV8"],[[128552,128555],"valid",[],"NV8"],[[128556,128556],"valid",[],"NV8"],[[128557,128557],"valid",[],"NV8"],[[128558,128559],"valid",[],"NV8"],[[128560,128563],"valid",[],"NV8"],[[128564,128564],"valid",[],"NV8"],[[128565,128576],"valid",[],"NV8"],[[128577,128578],"valid",[],"NV8"],[[128579,128580],"valid",[],"NV8"],[[128581,128591],"valid",[],"NV8"],[[128592,128639],"valid",[],"NV8"],[[128640,128709],"valid",[],"NV8"],[[128710,128719],"valid",[],"NV8"],[[128720,128720],"valid",[],"NV8"],[[128721,128735],"disallowed"],[[128736,128748],"valid",[],"NV8"],[[128749,128751],"disallowed"],[[128752,128755],"valid",[],"NV8"],[[128756,128767],"disallowed"],[[128768,128883],"valid",[],"NV8"],[[128884,128895],"disallowed"],[[128896,128980],"valid",[],"NV8"],[[128981,129023],"disallowed"],[[129024,129035],"valid",[],"NV8"],[[129036,129039],"disallowed"],[[129040,129095],"valid",[],"NV8"],[[129096,129103],"disallowed"],[[129104,129113],"valid",[],"NV8"],[[129114,129119],"disallowed"],[[129120,129159],"valid",[],"NV8"],[[129160,129167],"disallowed"],[[129168,129197],"valid",[],"NV8"],[[129198,129295],"disallowed"],[[129296,129304],"valid",[],"NV8"],[[129305,129407],"disallowed"],[[129408,129412],"valid",[],"NV8"],[[129413,129471],"disallowed"],[[129472,129472],"valid",[],"NV8"],[[129473,131069],"disallowed"],[[131070,131071],"disallowed"],[[131072,173782],"valid"],[[173783,173823],"disallowed"],[[173824,177972],"valid"],[[177973,177983],"disallowed"],[[177984,178205],"valid"],[[178206,178207],"disallowed"],[[178208,183969],"valid"],[[183970,194559],"disallowed"],[[194560,194560],"mapped",[20029]],[[194561,194561],"mapped",[20024]],[[194562,194562],"mapped",[20033]],[[194563,194563],"mapped",[131362]],[[194564,194564],"mapped",[20320]],[[194565,194565],"mapped",[20398]],[[194566,194566],"mapped",[20411]],[[194567,194567],"mapped",[20482]],[[194568,194568],"mapped",[20602]],[[194569,194569],"mapped",[20633]],[[194570,194570],"mapped",[20711]],[[194571,194571],"mapped",[20687]],[[194572,194572],"mapped",[13470]],[[194573,194573],"mapped",[132666]],[[194574,194574],"mapped",[20813]],[[194575,194575],"mapped",[20820]],[[194576,194576],"mapped",[20836]],[[194577,194577],"mapped",[20855]],[[194578,194578],"mapped",[132380]],[[194579,194579],"mapped",[13497]],[[194580,194580],"mapped",[20839]],[[194581,194581],"mapped",[20877]],[[194582,194582],"mapped",[132427]],[[194583,194583],"mapped",[20887]],[[194584,194584],"mapped",[20900]],[[194585,194585],"mapped",[20172]],[[194586,194586],"mapped",[20908]],[[194587,194587],"mapped",[20917]],[[194588,194588],"mapped",[168415]],[[194589,194589],"mapped",[20981]],[[194590,194590],"mapped",[20995]],[[194591,194591],"mapped",[13535]],[[194592,194592],"mapped",[21051]],[[194593,194593],"mapped",[21062]],[[194594,194594],"mapped",[21106]],[[194595,194595],"mapped",[21111]],[[194596,194596],"mapped",[13589]],[[194597,194597],"mapped",[21191]],[[194598,194598],"mapped",[21193]],[[194599,194599],"mapped",[21220]],[[194600,194600],"mapped",[21242]],[[194601,194601],"mapped",[21253]],[[194602,194602],"mapped",[21254]],[[194603,194603],"mapped",[21271]],[[194604,194604],"mapped",[21321]],[[194605,194605],"mapped",[21329]],[[194606,194606],"mapped",[21338]],[[194607,194607],"mapped",[21363]],[[194608,194608],"mapped",[21373]],[[194609,194611],"mapped",[21375]],[[194612,194612],"mapped",[133676]],[[194613,194613],"mapped",[28784]],[[194614,194614],"mapped",[21450]],[[194615,194615],"mapped",[21471]],[[194616,194616],"mapped",[133987]],[[194617,194617],"mapped",[21483]],[[194618,194618],"mapped",[21489]],[[194619,194619],"mapped",[21510]],[[194620,194620],"mapped",[21662]],[[194621,194621],"mapped",[21560]],[[194622,194622],"mapped",[21576]],[[194623,194623],"mapped",[21608]],[[194624,194624],"mapped",[21666]],[[194625,194625],"mapped",[21750]],[[194626,194626],"mapped",[21776]],[[194627,194627],"mapped",[21843]],[[194628,194628],"mapped",[21859]],[[194629,194630],"mapped",[21892]],[[194631,194631],"mapped",[21913]],[[194632,194632],"mapped",[21931]],[[194633,194633],"mapped",[21939]],[[194634,194634],"mapped",[21954]],[[194635,194635],"mapped",[22294]],[[194636,194636],"mapped",[22022]],[[194637,194637],"mapped",[22295]],[[194638,194638],"mapped",[22097]],[[194639,194639],"mapped",[22132]],[[194640,194640],"mapped",[20999]],[[194641,194641],"mapped",[22766]],[[194642,194642],"mapped",[22478]],[[194643,194643],"mapped",[22516]],[[194644,194644],"mapped",[22541]],[[194645,194645],"mapped",[22411]],[[194646,194646],"mapped",[22578]],[[194647,194647],"mapped",[22577]],[[194648,194648],"mapped",[22700]],[[194649,194649],"mapped",[136420]],[[194650,194650],"mapped",[22770]],[[194651,194651],"mapped",[22775]],[[194652,194652],"mapped",[22790]],[[194653,194653],"mapped",[22810]],[[194654,194654],"mapped",[22818]],[[194655,194655],"mapped",[22882]],[[194656,194656],"mapped",[136872]],[[194657,194657],"mapped",[136938]],[[194658,194658],"mapped",[23020]],[[194659,194659],"mapped",[23067]],[[194660,194660],"mapped",[23079]],[[194661,194661],"mapped",[23e3]],[[194662,194662],"mapped",[23142]],[[194663,194663],"mapped",[14062]],[[194664,194664],"disallowed"],[[194665,194665],"mapped",[23304]],[[194666,194667],"mapped",[23358]],[[194668,194668],"mapped",[137672]],[[194669,194669],"mapped",[23491]],[[194670,194670],"mapped",[23512]],[[194671,194671],"mapped",[23527]],[[194672,194672],"mapped",[23539]],[[194673,194673],"mapped",[138008]],[[194674,194674],"mapped",[23551]],[[194675,194675],"mapped",[23558]],[[194676,194676],"disallowed"],[[194677,194677],"mapped",[23586]],[[194678,194678],"mapped",[14209]],[[194679,194679],"mapped",[23648]],[[194680,194680],"mapped",[23662]],[[194681,194681],"mapped",[23744]],[[194682,194682],"mapped",[23693]],[[194683,194683],"mapped",[138724]],[[194684,194684],"mapped",[23875]],[[194685,194685],"mapped",[138726]],[[194686,194686],"mapped",[23918]],[[194687,194687],"mapped",[23915]],[[194688,194688],"mapped",[23932]],[[194689,194689],"mapped",[24033]],[[194690,194690],"mapped",[24034]],[[194691,194691],"mapped",[14383]],[[194692,194692],"mapped",[24061]],[[194693,194693],"mapped",[24104]],[[194694,194694],"mapped",[24125]],[[194695,194695],"mapped",[24169]],[[194696,194696],"mapped",[14434]],[[194697,194697],"mapped",[139651]],[[194698,194698],"mapped",[14460]],[[194699,194699],"mapped",[24240]],[[194700,194700],"mapped",[24243]],[[194701,194701],"mapped",[24246]],[[194702,194702],"mapped",[24266]],[[194703,194703],"mapped",[172946]],[[194704,194704],"mapped",[24318]],[[194705,194706],"mapped",[140081]],[[194707,194707],"mapped",[33281]],[[194708,194709],"mapped",[24354]],[[194710,194710],"mapped",[14535]],[[194711,194711],"mapped",[144056]],[[194712,194712],"mapped",[156122]],[[194713,194713],"mapped",[24418]],[[194714,194714],"mapped",[24427]],[[194715,194715],"mapped",[14563]],[[194716,194716],"mapped",[24474]],[[194717,194717],"mapped",[24525]],[[194718,194718],"mapped",[24535]],[[194719,194719],"mapped",[24569]],[[194720,194720],"mapped",[24705]],[[194721,194721],"mapped",[14650]],[[194722,194722],"mapped",[14620]],[[194723,194723],"mapped",[24724]],[[194724,194724],"mapped",[141012]],[[194725,194725],"mapped",[24775]],[[194726,194726],"mapped",[24904]],[[194727,194727],"mapped",[24908]],[[194728,194728],"mapped",[24910]],[[194729,194729],"mapped",[24908]],[[194730,194730],"mapped",[24954]],[[194731,194731],"mapped",[24974]],[[194732,194732],"mapped",[25010]],[[194733,194733],"mapped",[24996]],[[194734,194734],"mapped",[25007]],[[194735,194735],"mapped",[25054]],[[194736,194736],"mapped",[25074]],[[194737,194737],"mapped",[25078]],[[194738,194738],"mapped",[25104]],[[194739,194739],"mapped",[25115]],[[194740,194740],"mapped",[25181]],[[194741,194741],"mapped",[25265]],[[194742,194742],"mapped",[25300]],[[194743,194743],"mapped",[25424]],[[194744,194744],"mapped",[142092]],[[194745,194745],"mapped",[25405]],[[194746,194746],"mapped",[25340]],[[194747,194747],"mapped",[25448]],[[194748,194748],"mapped",[25475]],[[194749,194749],"mapped",[25572]],[[194750,194750],"mapped",[142321]],[[194751,194751],"mapped",[25634]],[[194752,194752],"mapped",[25541]],[[194753,194753],"mapped",[25513]],[[194754,194754],"mapped",[14894]],[[194755,194755],"mapped",[25705]],[[194756,194756],"mapped",[25726]],[[194757,194757],"mapped",[25757]],[[194758,194758],"mapped",[25719]],[[194759,194759],"mapped",[14956]],[[194760,194760],"mapped",[25935]],[[194761,194761],"mapped",[25964]],[[194762,194762],"mapped",[143370]],[[194763,194763],"mapped",[26083]],[[194764,194764],"mapped",[26360]],[[194765,194765],"mapped",[26185]],[[194766,194766],"mapped",[15129]],[[194767,194767],"mapped",[26257]],[[194768,194768],"mapped",[15112]],[[194769,194769],"mapped",[15076]],[[194770,194770],"mapped",[20882]],[[194771,194771],"mapped",[20885]],[[194772,194772],"mapped",[26368]],[[194773,194773],"mapped",[26268]],[[194774,194774],"mapped",[32941]],[[194775,194775],"mapped",[17369]],[[194776,194776],"mapped",[26391]],[[194777,194777],"mapped",[26395]],[[194778,194778],"mapped",[26401]],[[194779,194779],"mapped",[26462]],[[194780,194780],"mapped",[26451]],[[194781,194781],"mapped",[144323]],[[194782,194782],"mapped",[15177]],[[194783,194783],"mapped",[26618]],[[194784,194784],"mapped",[26501]],[[194785,194785],"mapped",[26706]],[[194786,194786],"mapped",[26757]],[[194787,194787],"mapped",[144493]],[[194788,194788],"mapped",[26766]],[[194789,194789],"mapped",[26655]],[[194790,194790],"mapped",[26900]],[[194791,194791],"mapped",[15261]],[[194792,194792],"mapped",[26946]],[[194793,194793],"mapped",[27043]],[[194794,194794],"mapped",[27114]],[[194795,194795],"mapped",[27304]],[[194796,194796],"mapped",[145059]],[[194797,194797],"mapped",[27355]],[[194798,194798],"mapped",[15384]],[[194799,194799],"mapped",[27425]],[[194800,194800],"mapped",[145575]],[[194801,194801],"mapped",[27476]],[[194802,194802],"mapped",[15438]],[[194803,194803],"mapped",[27506]],[[194804,194804],"mapped",[27551]],[[194805,194805],"mapped",[27578]],[[194806,194806],"mapped",[27579]],[[194807,194807],"mapped",[146061]],[[194808,194808],"mapped",[138507]],[[194809,194809],"mapped",[146170]],[[194810,194810],"mapped",[27726]],[[194811,194811],"mapped",[146620]],[[194812,194812],"mapped",[27839]],[[194813,194813],"mapped",[27853]],[[194814,194814],"mapped",[27751]],[[194815,194815],"mapped",[27926]],[[194816,194816],"mapped",[27966]],[[194817,194817],"mapped",[28023]],[[194818,194818],"mapped",[27969]],[[194819,194819],"mapped",[28009]],[[194820,194820],"mapped",[28024]],[[194821,194821],"mapped",[28037]],[[194822,194822],"mapped",[146718]],[[194823,194823],"mapped",[27956]],[[194824,194824],"mapped",[28207]],[[194825,194825],"mapped",[28270]],[[194826,194826],"mapped",[15667]],[[194827,194827],"mapped",[28363]],[[194828,194828],"mapped",[28359]],[[194829,194829],"mapped",[147153]],[[194830,194830],"mapped",[28153]],[[194831,194831],"mapped",[28526]],[[194832,194832],"mapped",[147294]],[[194833,194833],"mapped",[147342]],[[194834,194834],"mapped",[28614]],[[194835,194835],"mapped",[28729]],[[194836,194836],"mapped",[28702]],[[194837,194837],"mapped",[28699]],[[194838,194838],"mapped",[15766]],[[194839,194839],"mapped",[28746]],[[194840,194840],"mapped",[28797]],[[194841,194841],"mapped",[28791]],[[194842,194842],"mapped",[28845]],[[194843,194843],"mapped",[132389]],[[194844,194844],"mapped",[28997]],[[194845,194845],"mapped",[148067]],[[194846,194846],"mapped",[29084]],[[194847,194847],"disallowed"],[[194848,194848],"mapped",[29224]],[[194849,194849],"mapped",[29237]],[[194850,194850],"mapped",[29264]],[[194851,194851],"mapped",[149e3]],[[194852,194852],"mapped",[29312]],[[194853,194853],"mapped",[29333]],[[194854,194854],"mapped",[149301]],[[194855,194855],"mapped",[149524]],[[194856,194856],"mapped",[29562]],[[194857,194857],"mapped",[29579]],[[194858,194858],"mapped",[16044]],[[194859,194859],"mapped",[29605]],[[194860,194861],"mapped",[16056]],[[194862,194862],"mapped",[29767]],[[194863,194863],"mapped",[29788]],[[194864,194864],"mapped",[29809]],[[194865,194865],"mapped",[29829]],[[194866,194866],"mapped",[29898]],[[194867,194867],"mapped",[16155]],[[194868,194868],"mapped",[29988]],[[194869,194869],"mapped",[150582]],[[194870,194870],"mapped",[30014]],[[194871,194871],"mapped",[150674]],[[194872,194872],"mapped",[30064]],[[194873,194873],"mapped",[139679]],[[194874,194874],"mapped",[30224]],[[194875,194875],"mapped",[151457]],[[194876,194876],"mapped",[151480]],[[194877,194877],"mapped",[151620]],[[194878,194878],"mapped",[16380]],[[194879,194879],"mapped",[16392]],[[194880,194880],"mapped",[30452]],[[194881,194881],"mapped",[151795]],[[194882,194882],"mapped",[151794]],[[194883,194883],"mapped",[151833]],[[194884,194884],"mapped",[151859]],[[194885,194885],"mapped",[30494]],[[194886,194887],"mapped",[30495]],[[194888,194888],"mapped",[30538]],[[194889,194889],"mapped",[16441]],[[194890,194890],"mapped",[30603]],[[194891,194891],"mapped",[16454]],[[194892,194892],"mapped",[16534]],[[194893,194893],"mapped",[152605]],[[194894,194894],"mapped",[30798]],[[194895,194895],"mapped",[30860]],[[194896,194896],"mapped",[30924]],[[194897,194897],"mapped",[16611]],[[194898,194898],"mapped",[153126]],[[194899,194899],"mapped",[31062]],[[194900,194900],"mapped",[153242]],[[194901,194901],"mapped",[153285]],[[194902,194902],"mapped",[31119]],[[194903,194903],"mapped",[31211]],[[194904,194904],"mapped",[16687]],[[194905,194905],"mapped",[31296]],[[194906,194906],"mapped",[31306]],[[194907,194907],"mapped",[31311]],[[194908,194908],"mapped",[153980]],[[194909,194910],"mapped",[154279]],[[194911,194911],"disallowed"],[[194912,194912],"mapped",[16898]],[[194913,194913],"mapped",[154539]],[[194914,194914],"mapped",[31686]],[[194915,194915],"mapped",[31689]],[[194916,194916],"mapped",[16935]],[[194917,194917],"mapped",[154752]],[[194918,194918],"mapped",[31954]],[[194919,194919],"mapped",[17056]],[[194920,194920],"mapped",[31976]],[[194921,194921],"mapped",[31971]],[[194922,194922],"mapped",[32e3]],[[194923,194923],"mapped",[155526]],[[194924,194924],"mapped",[32099]],[[194925,194925],"mapped",[17153]],[[194926,194926],"mapped",[32199]],[[194927,194927],"mapped",[32258]],[[194928,194928],"mapped",[32325]],[[194929,194929],"mapped",[17204]],[[194930,194930],"mapped",[156200]],[[194931,194931],"mapped",[156231]],[[194932,194932],"mapped",[17241]],[[194933,194933],"mapped",[156377]],[[194934,194934],"mapped",[32634]],[[194935,194935],"mapped",[156478]],[[194936,194936],"mapped",[32661]],[[194937,194937],"mapped",[32762]],[[194938,194938],"mapped",[32773]],[[194939,194939],"mapped",[156890]],[[194940,194940],"mapped",[156963]],[[194941,194941],"mapped",[32864]],[[194942,194942],"mapped",[157096]],[[194943,194943],"mapped",[32880]],[[194944,194944],"mapped",[144223]],[[194945,194945],"mapped",[17365]],[[194946,194946],"mapped",[32946]],[[194947,194947],"mapped",[33027]],[[194948,194948],"mapped",[17419]],[[194949,194949],"mapped",[33086]],[[194950,194950],"mapped",[23221]],[[194951,194951],"mapped",[157607]],[[194952,194952],"mapped",[157621]],[[194953,194953],"mapped",[144275]],[[194954,194954],"mapped",[144284]],[[194955,194955],"mapped",[33281]],[[194956,194956],"mapped",[33284]],[[194957,194957],"mapped",[36766]],[[194958,194958],"mapped",[17515]],[[194959,194959],"mapped",[33425]],[[194960,194960],"mapped",[33419]],[[194961,194961],"mapped",[33437]],[[194962,194962],"mapped",[21171]],[[194963,194963],"mapped",[33457]],[[194964,194964],"mapped",[33459]],[[194965,194965],"mapped",[33469]],[[194966,194966],"mapped",[33510]],[[194967,194967],"mapped",[158524]],[[194968,194968],"mapped",[33509]],[[194969,194969],"mapped",[33565]],[[194970,194970],"mapped",[33635]],[[194971,194971],"mapped",[33709]],[[194972,194972],"mapped",[33571]],[[194973,194973],"mapped",[33725]],[[194974,194974],"mapped",[33767]],[[194975,194975],"mapped",[33879]],[[194976,194976],"mapped",[33619]],[[194977,194977],"mapped",[33738]],[[194978,194978],"mapped",[33740]],[[194979,194979],"mapped",[33756]],[[194980,194980],"mapped",[158774]],[[194981,194981],"mapped",[159083]],[[194982,194982],"mapped",[158933]],[[194983,194983],"mapped",[17707]],[[194984,194984],"mapped",[34033]],[[194985,194985],"mapped",[34035]],[[194986,194986],"mapped",[34070]],[[194987,194987],"mapped",[160714]],[[194988,194988],"mapped",[34148]],[[194989,194989],"mapped",[159532]],[[194990,194990],"mapped",[17757]],[[194991,194991],"mapped",[17761]],[[194992,194992],"mapped",[159665]],[[194993,194993],"mapped",[159954]],[[194994,194994],"mapped",[17771]],[[194995,194995],"mapped",[34384]],[[194996,194996],"mapped",[34396]],[[194997,194997],"mapped",[34407]],[[194998,194998],"mapped",[34409]],[[194999,194999],"mapped",[34473]],[[195e3,195e3],"mapped",[34440]],[[195001,195001],"mapped",[34574]],[[195002,195002],"mapped",[34530]],[[195003,195003],"mapped",[34681]],[[195004,195004],"mapped",[34600]],[[195005,195005],"mapped",[34667]],[[195006,195006],"mapped",[34694]],[[195007,195007],"disallowed"],[[195008,195008],"mapped",[34785]],[[195009,195009],"mapped",[34817]],[[195010,195010],"mapped",[17913]],[[195011,195011],"mapped",[34912]],[[195012,195012],"mapped",[34915]],[[195013,195013],"mapped",[161383]],[[195014,195014],"mapped",[35031]],[[195015,195015],"mapped",[35038]],[[195016,195016],"mapped",[17973]],[[195017,195017],"mapped",[35066]],[[195018,195018],"mapped",[13499]],[[195019,195019],"mapped",[161966]],[[195020,195020],"mapped",[162150]],[[195021,195021],"mapped",[18110]],[[195022,195022],"mapped",[18119]],[[195023,195023],"mapped",[35488]],[[195024,195024],"mapped",[35565]],[[195025,195025],"mapped",[35722]],[[195026,195026],"mapped",[35925]],[[195027,195027],"mapped",[162984]],[[195028,195028],"mapped",[36011]],[[195029,195029],"mapped",[36033]],[[195030,195030],"mapped",[36123]],[[195031,195031],"mapped",[36215]],[[195032,195032],"mapped",[163631]],[[195033,195033],"mapped",[133124]],[[195034,195034],"mapped",[36299]],[[195035,195035],"mapped",[36284]],[[195036,195036],"mapped",[36336]],[[195037,195037],"mapped",[133342]],[[195038,195038],"mapped",[36564]],[[195039,195039],"mapped",[36664]],[[195040,195040],"mapped",[165330]],[[195041,195041],"mapped",[165357]],[[195042,195042],"mapped",[37012]],[[195043,195043],"mapped",[37105]],[[195044,195044],"mapped",[37137]],[[195045,195045],"mapped",[165678]],[[195046,195046],"mapped",[37147]],[[195047,195047],"mapped",[37432]],[[195048,195048],"mapped",[37591]],[[195049,195049],"mapped",[37592]],[[195050,195050],"mapped",[37500]],[[195051,195051],"mapped",[37881]],[[195052,195052],"mapped",[37909]],[[195053,195053],"mapped",[166906]],[[195054,195054],"mapped",[38283]],[[195055,195055],"mapped",[18837]],[[195056,195056],"mapped",[38327]],[[195057,195057],"mapped",[167287]],[[195058,195058],"mapped",[18918]],[[195059,195059],"mapped",[38595]],[[195060,195060],"mapped",[23986]],[[195061,195061],"mapped",[38691]],[[195062,195062],"mapped",[168261]],[[195063,195063],"mapped",[168474]],[[195064,195064],"mapped",[19054]],[[195065,195065],"mapped",[19062]],[[195066,195066],"mapped",[38880]],[[195067,195067],"mapped",[168970]],[[195068,195068],"mapped",[19122]],[[195069,195069],"mapped",[169110]],[[195070,195071],"mapped",[38923]],[[195072,195072],"mapped",[38953]],[[195073,195073],"mapped",[169398]],[[195074,195074],"mapped",[39138]],[[195075,195075],"mapped",[19251]],[[195076,195076],"mapped",[39209]],[[195077,195077],"mapped",[39335]],[[195078,195078],"mapped",[39362]],[[195079,195079],"mapped",[39422]],[[195080,195080],"mapped",[19406]],[[195081,195081],"mapped",[170800]],[[195082,195082],"mapped",[39698]],[[195083,195083],"mapped",[4e4]],[[195084,195084],"mapped",[40189]],[[195085,195085],"mapped",[19662]],[[195086,195086],"mapped",[19693]],[[195087,195087],"mapped",[40295]],[[195088,195088],"mapped",[172238]],[[195089,195089],"mapped",[19704]],[[195090,195090],"mapped",[172293]],[[195091,195091],"mapped",[172558]],[[195092,195092],"mapped",[172689]],[[195093,195093],"mapped",[40635]],[[195094,195094],"mapped",[19798]],[[195095,195095],"mapped",[40697]],[[195096,195096],"mapped",[40702]],[[195097,195097],"mapped",[40709]],[[195098,195098],"mapped",[40719]],[[195099,195099],"mapped",[40726]],[[195100,195100],"mapped",[40763]],[[195101,195101],"mapped",[173568]],[[195102,196605],"disallowed"],[[196606,196607],"disallowed"],[[196608,262141],"disallowed"],[[262142,262143],"disallowed"],[[262144,327677],"disallowed"],[[327678,327679],"disallowed"],[[327680,393213],"disallowed"],[[393214,393215],"disallowed"],[[393216,458749],"disallowed"],[[458750,458751],"disallowed"],[[458752,524285],"disallowed"],[[524286,524287],"disallowed"],[[524288,589821],"disallowed"],[[589822,589823],"disallowed"],[[589824,655357],"disallowed"],[[655358,655359],"disallowed"],[[655360,720893],"disallowed"],[[720894,720895],"disallowed"],[[720896,786429],"disallowed"],[[786430,786431],"disallowed"],[[786432,851965],"disallowed"],[[851966,851967],"disallowed"],[[851968,917501],"disallowed"],[[917502,917503],"disallowed"],[[917504,917504],"disallowed"],[[917505,917505],"disallowed"],[[917506,917535],"disallowed"],[[917536,917631],"disallowed"],[[917632,917759],"disallowed"],[[917760,917999],"ignored"],[[918e3,983037],"disallowed"],[[983038,983039],"disallowed"],[[983040,1048573],"disallowed"],[[1048574,1048575],"disallowed"],[[1048576,1114109],"disallowed"],[[1114110,1114111],"disallowed"]],_2=w2,b2=h9,Ja={TRANSITIONAL:0,NONTRANSITIONAL:1};function E2(e){return e.split("\0").map(function(t){return t.normalize("NFC")}).join("\0")}function S2(e){for(var t=0,r=b2.length-1;t<=r;){var a=Math.floor((t+r)/2),i=b2[a];if(i[0][0]<=e&&i[0][1]>=e)return i;i[0][0]>e?r=a-1:t=a+1}return null}var m9=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function x2(e){return e.replace(m9,"_").length}function v9(e,t,r){for(var a=!1,i="",n=x2(e),p=0;p<n;++p){var s=e.codePointAt(p),o=S2(s);switch(o[1]){case"disallowed":a=!0,i+=String.fromCodePoint(s);break;case"ignored":break;case"mapped":i+=String.fromCodePoint.apply(String,o[2]);break;case"deviation":r===Ja.TRANSITIONAL?i+=String.fromCodePoint.apply(String,o[2]):i+=String.fromCodePoint(s);break;case"valid":i+=String.fromCodePoint(s);break;case"disallowed_STD3_mapped":t?(a=!0,i+=String.fromCodePoint(s)):i+=String.fromCodePoint.apply(String,o[2]);break;case"disallowed_STD3_valid":t&&(a=!0),i+=String.fromCodePoint(s);break}}return{string:i,error:a}}var g9=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function y9(e,t){e.substr(0,4)==="xn--"&&(e=_2.toUnicode(e),Ja.NONTRANSITIONAL);var r=!1;(E2(e)!==e||e[3]==="-"&&e[4]==="-"||e[0]==="-"||e[e.length-1]==="-"||e.indexOf(".")!==-1||e.search(g9)===0)&&(r=!0);for(var a=x2(e),i=0;i<a;++i){var n=S2(e.codePointAt(i));if(V1===Ja.TRANSITIONAL&&n[1]!=="valid"||V1===Ja.NONTRANSITIONAL&&n[1]!=="valid"&&n[1]!=="deviation"){r=!0;break}}return{label:e,error:r}}function V1(e,t,r){var a=v9(e,t,r);a.string=E2(a.string);for(var i=a.string.split("."),n=0;n<i.length;++n)try{var p=y9(i[n]);i[n]=p.label,a.error=a.error||p.error}catch{a.error=!0}return{string:i.join("."),error:a.error}}j1.toASCII=function(e,t,r,a){var i=V1(e,t,r),n=i.string.split(".");if(n=n.map(function(o){try{return _2.toASCII(o)}catch{return i.error=!0,o}}),a){var p=n.slice(0,n.length-1).join(".").length;(p.length>253||p.length===0)&&(i.error=!0);for(var s=0;s<n.length;++s)if(n.length>63||n.length===0){i.error=!0;break}}return i.error?null:n.join(".")},j1.toUnicode=function(e,t){var r=V1(e,t,Ja.NONTRANSITIONAL);return{domain:r.string,error:r.error}},j1.PROCESSING_OPTIONS=Ja,function(e){const t=w2,r=j1,a={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},i=Symbol("failure");function n(O){return t.ucs2.decode(O).length}function p(O,R){const Q=O[R];return isNaN(Q)?void 0:String.fromCodePoint(Q)}function s(O){return O>=48&&O<=57}function o(O){return O>=65&&O<=90||O>=97&&O<=122}function d(O){return o(O)||s(O)}function l(O){return s(O)||O>=65&&O<=70||O>=97&&O<=102}function h(O){return O==="."||O.toLowerCase()==="%2e"}function g(O){return O=O.toLowerCase(),O===".."||O==="%2e."||O===".%2e"||O==="%2e%2e"}function v(O,R){return o(O)&&(R===58||R===124)}function y(O){return O.length===2&&o(O.codePointAt(0))&&(O[1]===":"||O[1]==="|")}function A(O){return O.length===2&&o(O.codePointAt(0))&&O[1]===":"}function E(O){return O.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/)!==-1}function D(O){return O.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/)!==-1}function C(O){return a[O]!==void 0}function B(O){return C(O.scheme)}function S(O){return a[O]}function x(O){let R=O.toString(16).toUpperCase();return R.length===1&&(R="0"+R),"%"+R}function N(O){const R=new Buffer(O);let Q="";for(let w=0;w<R.length;++w)Q+=x(R[w]);return Q}function u(O){const R=new Buffer(O),Q=[];for(let w=0;w<R.length;++w)R[w]!==37?Q.push(R[w]):R[w]===37&&l(R[w+1])&&l(R[w+2])?(Q.push(parseInt(R.slice(w+1,w+3).toString(),16)),w+=2):Q.push(R[w]);return new Buffer(Q).toString()}function T(O){return O<=31||O>126}const Z=new Set([32,34,35,60,62,63,96,123,125]);function J(O){return T(O)||Z.has(O)}const ne=new Set([47,58,59,61,64,91,92,93,94,124]);function pe(O){return J(O)||ne.has(O)}function le(O,R){const Q=String.fromCodePoint(O);return R(O)?N(Q):Q}function z(O){let R=10;return O.length>=2&&O.charAt(0)==="0"&&O.charAt(1).toLowerCase()==="x"?(O=O.substring(2),R=16):O.length>=2&&O.charAt(0)==="0"&&(O=O.substring(1),R=8),O===""?0:(R===10?/[^0-9]/:R===16?/[^0-9A-Fa-f]/:/[^0-7]/).test(O)?i:parseInt(O,R)}function G(O){const R=O.split(".");if(R[R.length-1]===""&&R.length>1&&R.pop(),R.length>4)return O;const Q=[];for(const m of R){if(m==="")return O;const _=z(m);if(_===i)return O;Q.push(_)}for(let m=0;m<Q.length-1;++m)if(Q[m]>255)return i;if(Q[Q.length-1]>=Math.pow(256,5-Q.length))return i;let w=Q.pop(),c=0;for(const m of Q)w+=m*Math.pow(256,3-c),++c;return w}function de(O){let R="",Q=O;for(let w=1;w<=4;++w)R=String(Q%256)+R,w!==4&&(R="."+R),Q=Math.floor(Q/256);return R}function ce(O){const R=[0,0,0,0,0,0,0,0];let Q=0,w=null,c=0;if(O=t.ucs2.decode(O),O[c]===58){if(O[c+1]!==58)return i;c+=2,++Q,w=Q}for(;c<O.length;){if(Q===8)return i;if(O[c]===58){if(w!==null)return i;++c,++Q,w=Q;continue}let m=0,_=0;for(;_<4&&l(O[c]);)m=m*16+parseInt(p(O,c),16),++c,++_;if(O[c]===46){if(_===0||(c-=_,Q>6))return i;let k=0;for(;O[c]!==void 0;){let X=null;if(k>0)if(O[c]===46&&k<4)++c;else return i;if(!s(O[c]))return i;for(;s(O[c]);){const ae=parseInt(p(O,c));if(X===null)X=ae;else{if(X===0)return i;X=X*10+ae}if(X>255)return i;++c}R[Q]=R[Q]*256+X,++k,(k===2||k===4)&&++Q}if(k!==4)return i;break}else if(O[c]===58){if(++c,O[c]===void 0)return i}else if(O[c]!==void 0)return i;R[Q]=m,++Q}if(w!==null){let m=Q-w;for(Q=7;Q!==0&&m>0;){const _=R[w+m-1];R[w+m-1]=R[Q],R[Q]=_,--Q,--m}}else if(w===null&&Q!==8)return i;return R}function te(O){let R="";const w=Y(O).idx;let c=!1;for(let m=0;m<=7;++m)if(!(c&&O[m]===0)){if(c&&(c=!1),w===m){R+=m===0?"::":":",c=!0;continue}R+=O[m].toString(16),m!==7&&(R+=":")}return R}function ie(O,R){if(O[0]==="[")return O[O.length-1]!=="]"?i:ce(O.substring(1,O.length-1));if(!R)return W(O);const Q=u(O),w=r.toASCII(Q,!1,r.PROCESSING_OPTIONS.NONTRANSITIONAL,!1);if(w===null||E(w))return i;const c=G(w);return typeof c=="number"||c===i?c:w}function W(O){if(D(O))return i;let R="";const Q=t.ucs2.decode(O);for(let w=0;w<Q.length;++w)R+=le(Q[w],T);return R}function Y(O){let R=null,Q=1,w=null,c=0;for(let m=0;m<O.length;++m)O[m]!==0?(c>Q&&(R=w,Q=c),w=null,c=0):(w===null&&(w=m),++c);return c>Q&&(R=w,Q=c),{idx:R,len:Q}}function $(O){return typeof O=="number"?de(O):O instanceof Array?"["+te(O)+"]":O}function P(O){return O.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}function H(O){return O.replace(/\u0009|\u000A|\u000D/g,"")}function re(O){const R=O.path;R.length!==0&&(O.scheme==="file"&&R.length===1&&j(R[0])||R.pop())}function fe(O){return O.username!==""||O.password!==""}function V(O){return O.host===null||O.host===""||O.cannotBeABaseURL||O.scheme==="file"}function j(O){return/^[A-Za-z]:$/.test(O)}function U(O,R,Q,w,c){if(this.pointer=0,this.input=O,this.base=R||null,this.encodingOverride=Q||"utf-8",this.stateOverride=c,this.url=w,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};const _=P(this.input);_!==this.input&&(this.parseError=!0),this.input=_}const m=H(this.input);for(m!==this.input&&(this.parseError=!0),this.input=m,this.state=c||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=t.ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){const _=this.input[this.pointer],k=isNaN(_)?void 0:String.fromCodePoint(_),X=this["parse "+this.state](_,k);if(X){if(X===i){this.failure=!0;break}}else break}}U.prototype["parse scheme start"]=function(R,Q){if(o(R))this.buffer+=Q.toLowerCase(),this.state="scheme";else if(!this.stateOverride)this.state="no scheme",--this.pointer;else return this.parseError=!0,i;return!0},U.prototype["parse scheme"]=function(R,Q){if(d(R)||R===43||R===45||R===46)this.buffer+=Q.toLowerCase();else if(R===58){if(this.stateOverride&&(B(this.url)&&!C(this.buffer)||!B(this.url)&&C(this.buffer)||(fe(this.url)||this.url.port!==null)&&this.buffer==="file"||this.url.scheme==="file"&&(this.url.host===""||this.url.host===null))||(this.url.scheme=this.buffer,this.buffer="",this.stateOverride))return!1;this.url.scheme==="file"?((this.input[this.pointer+1]!==47||this.input[this.pointer+2]!==47)&&(this.parseError=!0),this.state="file"):B(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme?this.state="special relative or authority":B(this.url)?this.state="special authority slashes":this.input[this.pointer+1]===47?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else if(!this.stateOverride)this.buffer="",this.state="no scheme",this.pointer=-1;else return this.parseError=!0,i;return!0},U.prototype["parse no scheme"]=function(R){return this.base===null||this.base.cannotBeABaseURL&&R!==35?i:(this.base.cannotBeABaseURL&&R===35?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):this.base.scheme==="file"?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},U.prototype["parse special relative or authority"]=function(R){return R===47&&this.input[this.pointer+1]===47?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},U.prototype["parse path or authority"]=function(R){return R===47?this.state="authority":(this.state="path",--this.pointer),!0},U.prototype["parse relative"]=function(R){return this.url.scheme=this.base.scheme,isNaN(R)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):R===47?this.state="relative slash":R===63?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):R===35?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):B(this.url)&&R===92?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0},U.prototype["parse relative slash"]=function(R){return B(this.url)&&(R===47||R===92)?(R===92&&(this.parseError=!0),this.state="special authority ignore slashes"):R===47?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer),!0},U.prototype["parse special authority slashes"]=function(R){return R===47&&this.input[this.pointer+1]===47?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},U.prototype["parse special authority ignore slashes"]=function(R){return R!==47&&R!==92?(this.state="authority",--this.pointer):this.parseError=!0,!0},U.prototype["parse authority"]=function(R,Q){if(R===64){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;const w=n(this.buffer);for(let c=0;c<w;++c){const m=this.buffer.codePointAt(c);if(m===58&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const _=le(m,pe);this.passwordTokenSeenFlag?this.url.password+=_:this.url.username+=_}this.buffer=""}else if(isNaN(R)||R===47||R===63||R===35||B(this.url)&&R===92){if(this.atFlag&&this.buffer==="")return this.parseError=!0,i;this.pointer-=n(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=Q;return!0},U.prototype["parse hostname"]=U.prototype["parse host"]=function(R,Q){if(this.stateOverride&&this.url.scheme==="file")--this.pointer,this.state="file host";else if(R===58&&!this.arrFlag){if(this.buffer==="")return this.parseError=!0,i;const w=ie(this.buffer,B(this.url));if(w===i)return i;if(this.url.host=w,this.buffer="",this.state="port",this.stateOverride==="hostname")return!1}else if(isNaN(R)||R===47||R===63||R===35||B(this.url)&&R===92){if(--this.pointer,B(this.url)&&this.buffer==="")return this.parseError=!0,i;if(this.stateOverride&&this.buffer===""&&(fe(this.url)||this.url.port!==null))return this.parseError=!0,!1;const w=ie(this.buffer,B(this.url));if(w===i)return i;if(this.url.host=w,this.buffer="",this.state="path start",this.stateOverride)return!1}else R===91?this.arrFlag=!0:R===93&&(this.arrFlag=!1),this.buffer+=Q;return!0},U.prototype["parse port"]=function(R,Q){if(s(R))this.buffer+=Q;else if(isNaN(R)||R===47||R===63||R===35||B(this.url)&&R===92||this.stateOverride){if(this.buffer!==""){const w=parseInt(this.buffer);if(w>Math.pow(2,16)-1)return this.parseError=!0,i;this.url.port=w===S(this.url.scheme)?null:w,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}else return this.parseError=!0,i;return!0};const f=new Set([47,92,63,35]);U.prototype["parse file"]=function(R){return this.url.scheme="file",R===47||R===92?(R===92&&(this.parseError=!0),this.state="file slash"):this.base!==null&&this.base.scheme==="file"?isNaN(R)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):R===63?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):R===35?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(this.input.length-this.pointer-1===0||!v(R,this.input[this.pointer+1])||this.input.length-this.pointer-1>=2&&!f.has(this.input[this.pointer+2])?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),re(this.url)):this.parseError=!0,this.state="path",--this.pointer):(this.state="path",--this.pointer),!0},U.prototype["parse file slash"]=function(R){return R===47||R===92?(R===92&&(this.parseError=!0),this.state="file host"):(this.base!==null&&this.base.scheme==="file"&&(A(this.base.path[0])?this.url.path.push(this.base.path[0]):this.url.host=this.base.host),this.state="path",--this.pointer),!0},U.prototype["parse file host"]=function(R,Q){if(isNaN(R)||R===47||R===92||R===63||R===35)if(--this.pointer,!this.stateOverride&&y(this.buffer))this.parseError=!0,this.state="path";else if(this.buffer===""){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let w=ie(this.buffer,B(this.url));if(w===i)return i;if(w==="localhost"&&(w=""),this.url.host=w,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=Q;return!0},U.prototype["parse path start"]=function(R){return B(this.url)?(R===92&&(this.parseError=!0),this.state="path",R!==47&&R!==92&&--this.pointer):!this.stateOverride&&R===63?(this.url.query="",this.state="query"):!this.stateOverride&&R===35?(this.url.fragment="",this.state="fragment"):R!==void 0&&(this.state="path",R!==47&&--this.pointer),!0},U.prototype["parse path"]=function(R){if(isNaN(R)||R===47||B(this.url)&&R===92||!this.stateOverride&&(R===63||R===35)){if(B(this.url)&&R===92&&(this.parseError=!0),g(this.buffer)?(re(this.url),R!==47&&!(B(this.url)&&R===92)&&this.url.path.push("")):h(this.buffer)&&R!==47&&!(B(this.url)&&R===92)?this.url.path.push(""):h(this.buffer)||(this.url.scheme==="file"&&this.url.path.length===0&&y(this.buffer)&&(this.url.host!==""&&this.url.host!==null&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)),this.buffer="",this.url.scheme==="file"&&(R===void 0||R===63||R===35))for(;this.url.path.length>1&&this.url.path[0]==="";)this.parseError=!0,this.url.path.shift();R===63&&(this.url.query="",this.state="query"),R===35&&(this.url.fragment="",this.state="fragment")}else R===37&&(!l(this.input[this.pointer+1])||!l(this.input[this.pointer+2]))&&(this.parseError=!0),this.buffer+=le(R,J);return!0},U.prototype["parse cannot-be-a-base-URL path"]=function(R){return R===63?(this.url.query="",this.state="query"):R===35?(this.url.fragment="",this.state="fragment"):(!isNaN(R)&&R!==37&&(this.parseError=!0),R===37&&(!l(this.input[this.pointer+1])||!l(this.input[this.pointer+2]))&&(this.parseError=!0),isNaN(R)||(this.url.path[0]=this.url.path[0]+le(R,T))),!0},U.prototype["parse query"]=function(R,Q){if(isNaN(R)||!this.stateOverride&&R===35){(!B(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss")&&(this.encodingOverride="utf-8");const w=new Buffer(this.buffer);for(let c=0;c<w.length;++c)w[c]<33||w[c]>126||w[c]===34||w[c]===35||w[c]===60||w[c]===62?this.url.query+=x(w[c]):this.url.query+=String.fromCodePoint(w[c]);this.buffer="",R===35&&(this.url.fragment="",this.state="fragment")}else R===37&&(!l(this.input[this.pointer+1])||!l(this.input[this.pointer+2]))&&(this.parseError=!0),this.buffer+=Q;return!0},U.prototype["parse fragment"]=function(R){return isNaN(R)||(R===0?this.parseError=!0:(R===37&&(!l(this.input[this.pointer+1])||!l(this.input[this.pointer+2]))&&(this.parseError=!0),this.url.fragment+=le(R,T))),!0};function F(O,R){let Q=O.scheme+":";if(O.host!==null?(Q+="//",(O.username!==""||O.password!=="")&&(Q+=O.username,O.password!==""&&(Q+=":"+O.password),Q+="@"),Q+=$(O.host),O.port!==null&&(Q+=":"+O.port)):O.host===null&&O.scheme==="file"&&(Q+="//"),O.cannotBeABaseURL)Q+=O.path[0];else for(const w of O.path)Q+="/"+w;return O.query!==null&&(Q+="?"+O.query),!R&&O.fragment!==null&&(Q+="#"+O.fragment),Q}function se(O){let R=O.scheme+"://";return R+=$(O.host),O.port!==null&&(R+=":"+O.port),R}e.exports.serializeURL=F,e.exports.serializeURLOrigin=function(O){switch(O.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(O.path[0]))}catch{return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return se({scheme:O.scheme,host:O.host,port:O.port});case"file":return"file://";default:return"null"}},e.exports.basicURLParse=function(O,R){R===void 0&&(R={});const Q=new U(O,R.baseURL,R.encodingOverride,R.url,R.stateOverride);return Q.failure?"failure":Q.url},e.exports.setTheUsername=function(O,R){O.username="";const Q=t.ucs2.decode(R);for(let w=0;w<Q.length;++w)O.username+=le(Q[w],pe)},e.exports.setThePassword=function(O,R){O.password="";const Q=t.ucs2.decode(R);for(let w=0;w<Q.length;++w)O.password+=le(Q[w],pe)},e.exports.serializeHost=$,e.exports.cannotHaveAUsernamePasswordPort=V,e.exports.serializeInteger=function(O){return String(O)},e.exports.parseURL=function(O,R){return R===void 0&&(R={}),e.exports.basicURLParse(O,{baseURL:R.baseURL,encodingOverride:R.encodingOverride})}}(pr);const Ye=pr.exports;d2.implementation=class{constructor(t){const r=t[0],a=t[1];let i=null;if(a!==void 0&&(i=Ye.basicURLParse(a),i==="failure"))throw new TypeError("Invalid base URL");const n=Ye.basicURLParse(r,{baseURL:i});if(n==="failure")throw new TypeError("Invalid URL");this._url=n}get href(){return Ye.serializeURL(this._url)}set href(t){const r=Ye.basicURLParse(t);if(r==="failure")throw new TypeError("Invalid URL");this._url=r}get origin(){return Ye.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(t){Ye.basicURLParse(t+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(t){Ye.cannotHaveAUsernamePasswordPort(this._url)||Ye.setTheUsername(this._url,t)}get password(){return this._url.password}set password(t){Ye.cannotHaveAUsernamePasswordPort(this._url)||Ye.setThePassword(this._url,t)}get host(){const t=this._url;return t.host===null?"":t.port===null?Ye.serializeHost(t.host):Ye.serializeHost(t.host)+":"+Ye.serializeInteger(t.port)}set host(t){this._url.cannotBeABaseURL||Ye.basicURLParse(t,{url:this._url,stateOverride:"host"})}get hostname(){return this._url.host===null?"":Ye.serializeHost(this._url.host)}set hostname(t){this._url.cannotBeABaseURL||Ye.basicURLParse(t,{url:this._url,stateOverride:"hostname"})}get port(){return this._url.port===null?"":Ye.serializeInteger(this._url.port)}set port(t){Ye.cannotHaveAUsernamePasswordPort(this._url)||(t===""?this._url.port=null:Ye.basicURLParse(t,{url:this._url,stateOverride:"port"}))}get pathname(){return this._url.cannotBeABaseURL?this._url.path[0]:this._url.path.length===0?"":"/"+this._url.path.join("/")}set pathname(t){this._url.cannotBeABaseURL||(this._url.path=[],Ye.basicURLParse(t,{url:this._url,stateOverride:"path start"}))}get search(){return this._url.query===null||this._url.query===""?"":"?"+this._url.query}set search(t){const r=this._url;if(t===""){r.query=null;return}const a=t[0]==="?"?t.substring(1):t;r.query="",Ye.basicURLParse(a,{url:r,stateOverride:"query"})}get hash(){return this._url.fragment===null||this._url.fragment===""?"":"#"+this._url.fragment}set hash(t){if(t===""){this._url.fragment=null;return}const r=t[0]==="#"?t.substring(1):t;this._url.fragment="",Ye.basicURLParse(r,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}},function(e){const t=a9,r=o2.exports,a=d2,i=r.implSymbol;function n(p){if(!this||this[i]||!(this instanceof n))throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");if(arguments.length<1)throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.");const s=[];for(let o=0;o<arguments.length&&o<2;++o)s[o]=arguments[o];s[0]=t.USVString(s[0]),s[1]!==void 0&&(s[1]=t.USVString(s[1])),e.exports.setup(this,s)}n.prototype.toJSON=function(){if(!this||!e.exports.is(this))throw new TypeError("Illegal invocation");const s=[];for(let o=0;o<arguments.length&&o<0;++o)s[o]=arguments[o];return this[i].toJSON.apply(this[i],s)},Object.defineProperty(n.prototype,"href",{get(){return this[i].href},set(p){p=t.USVString(p),this[i].href=p},enumerable:!0,configurable:!0}),n.prototype.toString=function(){if(!this||!e.exports.is(this))throw new TypeError("Illegal invocation");return this.href},Object.defineProperty(n.prototype,"origin",{get(){return this[i].origin},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"protocol",{get(){return this[i].protocol},set(p){p=t.USVString(p),this[i].protocol=p},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"username",{get(){return this[i].username},set(p){p=t.USVString(p),this[i].username=p},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"password",{get(){return this[i].password},set(p){p=t.USVString(p),this[i].password=p},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"host",{get(){return this[i].host},set(p){p=t.USVString(p),this[i].host=p},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hostname",{get(){return this[i].hostname},set(p){p=t.USVString(p),this[i].hostname=p},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"port",{get(){return this[i].port},set(p){p=t.USVString(p),this[i].port=p},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"pathname",{get(){return this[i].pathname},set(p){p=t.USVString(p),this[i].pathname=p},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"search",{get(){return this[i].search},set(p){p=t.USVString(p),this[i].search=p},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hash",{get(){return this[i].hash},set(p){p=t.USVString(p),this[i].hash=p},enumerable:!0,configurable:!0}),e.exports={is(p){return!!p&&p[i]instanceof a.implementation},create(p,s){let o=Object.create(n.prototype);return this.setup(o,p,s),o},setup(p,s,o){o||(o={}),o.wrapper=p,p[i]=new a.implementation(s,o),p[i][r.wrapperSymbol]=p},interface:n,expose:{Window:{URL:n},Worker:{URL:n}}}}(s2),Qt.URL=s2.exports.interface,Qt.serializeURL=pr.exports.serializeURL,Qt.serializeURLOrigin=pr.exports.serializeURLOrigin,Qt.basicURLParse=pr.exports.basicURLParse,Qt.setTheUsername=pr.exports.setTheUsername,Qt.setThePassword=pr.exports.setThePassword,Qt.serializeHost=pr.exports.serializeHost,Qt.serializeInteger=pr.exports.serializeInteger,Qt.parseURL=pr.exports.parseURL;var D2={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"};function w9(){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}function Nr(e,t,r,a,i){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+a),i);return}for(var n=0;n<a;n++)e[i+n]=t[r+n]}var k1=Uint8Array,Kt=Uint16Array,z1=Int32Array,_9=4,T2=0,N2=1,b9=2;function Xa(e){for(var t=e.length;--t>=0;)e[t]=0}var E9=0,O2=1,S9=2,x9=3,D9=258,Hs=29,Pi=256,Mi=Pi+1+Hs,Qa=30,qs=19,A2=2*Mi+1,ha=15,Ks=16,T9=7,Gs=256,C2=16,I2=17,R2=18,Ws=[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],H1=[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],N9=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],L2=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],O9=512,Or=new Array((Mi+2)*2);Xa(Or);var Ui=new Array(Qa*2);Xa(Ui);var Bi=new Array(O9);Xa(Bi);var $i=new Array(D9-x9+1);Xa($i);var Zs=new Array(Hs);Xa(Zs);var q1=new Array(Qa);Xa(q1);function Ys(e,t,r,a,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=a,this.max_length=i,this.has_stree=e&&e.length}var F2,P2,M2;function Js(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function U2(e){return e<256?Bi[e]:Bi[256+(e>>>7)]}function ji(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function Ft(e,t,r){e.bi_valid>Ks-r?(e.bi_buf|=t<<e.bi_valid&65535,ji(e,e.bi_buf),e.bi_buf=t>>Ks-e.bi_valid,e.bi_valid+=r-Ks):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function lr(e,t,r){Ft(e,r[t*2],r[t*2+1])}function B2(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function A9(e){e.bi_valid===16?(ji(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function C9(e,t){var r=t.dyn_tree,a=t.max_code,i=t.stat_desc.static_tree,n=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,o=t.stat_desc.max_length,d,l,h,g,v,y,A=0;for(g=0;g<=ha;g++)e.bl_count[g]=0;for(r[e.heap[e.heap_max]*2+1]=0,d=e.heap_max+1;d<A2;d++)l=e.heap[d],g=r[r[l*2+1]*2+1]+1,g>o&&(g=o,A++),r[l*2+1]=g,!(l>a)&&(e.bl_count[g]++,v=0,l>=s&&(v=p[l-s]),y=r[l*2],e.opt_len+=y*(g+v),n&&(e.static_len+=y*(i[l*2+1]+v)));if(A!==0){do{for(g=o-1;e.bl_count[g]===0;)g--;e.bl_count[g]--,e.bl_count[g+1]+=2,e.bl_count[o]--,A-=2}while(A>0);for(g=o;g!==0;g--)for(l=e.bl_count[g];l!==0;)h=e.heap[--d],!(h>a)&&(r[h*2+1]!==g&&(e.opt_len+=(g-r[h*2+1])*r[h*2],r[h*2+1]=g),l--)}}function $2(e,t,r){var a=new Array(ha+1),i=0,n,p;for(n=1;n<=ha;n++)a[n]=i=i+r[n-1]<<1;for(p=0;p<=t;p++){var s=e[p*2+1];s!==0&&(e[p*2]=B2(a[s]++,s))}}function I9(){var e,t,r,a,i,n=new Array(ha+1);for(r=0,a=0;a<Hs-1;a++)for(Zs[a]=r,e=0;e<1<<Ws[a];e++)$i[r++]=a;for($i[r-1]=a,i=0,a=0;a<16;a++)for(q1[a]=i,e=0;e<1<<H1[a];e++)Bi[i++]=a;for(i>>=7;a<Qa;a++)for(q1[a]=i<<7,e=0;e<1<<H1[a]-7;e++)Bi[256+i++]=a;for(t=0;t<=ha;t++)n[t]=0;for(e=0;e<=143;)Or[e*2+1]=8,e++,n[8]++;for(;e<=255;)Or[e*2+1]=9,e++,n[9]++;for(;e<=279;)Or[e*2+1]=7,e++,n[7]++;for(;e<=287;)Or[e*2+1]=8,e++,n[8]++;for($2(Or,Mi+1,n),e=0;e<Qa;e++)Ui[e*2+1]=5,Ui[e*2]=B2(e,5);F2=new Ys(Or,Ws,Pi+1,Mi,ha),P2=new Ys(Ui,H1,0,Qa,ha),M2=new Ys(new Array(0),N9,0,qs,T9)}function j2(e){var t;for(t=0;t<Mi;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Qa;t++)e.dyn_dtree[t*2]=0;for(t=0;t<qs;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Gs*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function V2(e){e.bi_valid>8?ji(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 R9(e,t,r,a){V2(e),a&&(ji(e,r),ji(e,~r)),Nr(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function k2(e,t,r,a){var i=t*2,n=r*2;return e[i]<e[n]||e[i]===e[n]&&a[t]<=a[r]}function Xs(e,t,r){for(var a=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&k2(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!k2(t,a,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=a}function z2(e,t,r){var a,i,n=0,p,s;if(e.last_lit!==0)do a=e.pending_buf[e.d_buf+n*2]<<8|e.pending_buf[e.d_buf+n*2+1],i=e.pending_buf[e.l_buf+n],n++,a===0?lr(e,i,t):(p=$i[i],lr(e,p+Pi+1,t),s=Ws[p],s!==0&&(i-=Zs[p],Ft(e,i,s)),a--,p=U2(a),lr(e,p,r),s=H1[p],s!==0&&(a-=q1[p],Ft(e,a,s)));while(n<e.last_lit);lr(e,Gs,t)}function Qs(e,t){var r=t.dyn_tree,a=t.stat_desc.static_tree,i=t.stat_desc.has_stree,n=t.stat_desc.elems,p,s,o=-1,d;for(e.heap_len=0,e.heap_max=A2,p=0;p<n;p++)r[p*2]!==0?(e.heap[++e.heap_len]=o=p,e.depth[p]=0):r[p*2+1]=0;for(;e.heap_len<2;)d=e.heap[++e.heap_len]=o<2?++o:0,r[d*2]=1,e.depth[d]=0,e.opt_len--,i&&(e.static_len-=a[d*2+1]);for(t.max_code=o,p=e.heap_len>>1;p>=1;p--)Xs(e,r,p);d=n;do p=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Xs(e,r,1),s=e.heap[1],e.heap[--e.heap_max]=p,e.heap[--e.heap_max]=s,r[d*2]=r[p*2]+r[s*2],e.depth[d]=(e.depth[p]>=e.depth[s]?e.depth[p]:e.depth[s])+1,r[p*2+1]=r[s*2+1]=d,e.heap[1]=d++,Xs(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],C9(e,t),$2(r,o,e.bl_count)}function H2(e,t,r){var a,i=-1,n,p=t[0*2+1],s=0,o=7,d=4;for(p===0&&(o=138,d=3),t[(r+1)*2+1]=65535,a=0;a<=r;a++)n=p,p=t[(a+1)*2+1],!(++s<o&&n===p)&&(s<d?e.bl_tree[n*2]+=s:n!==0?(n!==i&&e.bl_tree[n*2]++,e.bl_tree[C2*2]++):s<=10?e.bl_tree[I2*2]++:e.bl_tree[R2*2]++,s=0,i=n,p===0?(o=138,d=3):n===p?(o=6,d=3):(o=7,d=4))}function q2(e,t,r){var a,i=-1,n,p=t[0*2+1],s=0,o=7,d=4;for(p===0&&(o=138,d=3),a=0;a<=r;a++)if(n=p,p=t[(a+1)*2+1],!(++s<o&&n===p)){if(s<d)do lr(e,n,e.bl_tree);while(--s!==0);else n!==0?(n!==i&&(lr(e,n,e.bl_tree),s--),lr(e,C2,e.bl_tree),Ft(e,s-3,2)):s<=10?(lr(e,I2,e.bl_tree),Ft(e,s-3,3)):(lr(e,R2,e.bl_tree),Ft(e,s-11,7));s=0,i=n,p===0?(o=138,d=3):n===p?(o=6,d=3):(o=7,d=4)}}function L9(e){var t;for(H2(e,e.dyn_ltree,e.l_desc.max_code),H2(e,e.dyn_dtree,e.d_desc.max_code),Qs(e,e.bl_desc),t=qs-1;t>=3&&e.bl_tree[L2[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function F9(e,t,r,a){var i;for(Ft(e,t-257,5),Ft(e,r-1,5),Ft(e,a-4,4),i=0;i<a;i++)Ft(e,e.bl_tree[L2[i]*2+1],3);q2(e,e.dyn_ltree,t-1),q2(e,e.dyn_dtree,r-1)}function P9(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return T2;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return N2;for(r=32;r<Pi;r++)if(e.dyn_ltree[r*2]!==0)return N2;return T2}var K2=!1;function M9(e){K2||(I9(),K2=!0),e.l_desc=new Js(e.dyn_ltree,F2),e.d_desc=new Js(e.dyn_dtree,P2),e.bl_desc=new Js(e.bl_tree,M2),e.bi_buf=0,e.bi_valid=0,j2(e)}function G2(e,t,r,a){Ft(e,(E9<<1)+(a?1:0),3),R9(e,t,r,!0)}function U9(e){Ft(e,O2<<1,3),lr(e,Gs,Or),A9(e)}function B9(e,t,r,a){var i,n,p=0;e.level>0?(e.strm.data_type===b9&&(e.strm.data_type=P9(e)),Qs(e,e.l_desc),Qs(e,e.d_desc),p=L9(e),i=e.opt_len+3+7>>>3,n=e.static_len+3+7>>>3,n<=i&&(i=n)):i=n=r+5,r+4<=i&&t!==-1?G2(e,t,r,a):e.strategy===_9||n===i?(Ft(e,(O2<<1)+(a?1:0),3),z2(e,Or,Ui)):(Ft(e,(S9<<1)+(a?1:0),3),F9(e,e.l_desc.max_code+1,e.d_desc.max_code+1,p+1),z2(e,e.dyn_ltree,e.dyn_dtree)),j2(e),a&&V2(e)}function qr(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[($i[r]+Pi+1)*2]++,e.dyn_dtree[U2(t)*2]++),e.last_lit===e.lit_bufsize-1}function ep(e,t,r,a){for(var i=e&65535|0,n=e>>>16&65535|0,p=0;r!==0;){p=r>2e3?2e3:r,r-=p;do i=i+t[a++]|0,n=n+i|0;while(--p);i%=65521,n%=65521}return i|n<<16|0}function $9(){for(var e,t=[],r=0;r<256;r++){e=r;for(var a=0;a<8;a++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var j9=$9();function ut(e,t,r,a){var i=j9,n=a+r;e^=-1;for(var p=a;p<n;p++)e=e>>>8^i[(e^t[p])&255];return e^-1}var ma=0,V9=1,k9=3,Kr=4,W2=5,Gr=0,Z2=1,Wr=-2,z9=-3,tp=-5,H9=-1,q9=1,K1=2,K9=3,G9=4,W9=2,rp=8,Z9=9,Y9=29,J9=256,ap=J9+1+Y9,X9=30,Q9=19,eh=2*ap+1,th=15,Ie=3,Zr=258,er=Zr+Ie+1,rh=32,ip=42,np=69,G1=73,W1=91,Z1=103,va=113,Vi=666,pt=1,ki=2,ga=3,ei=4,ah=3;function Yr(e,t){return e.msg=D2[t],t}function Y2(e){return(e<<1)-(e>4?9:0)}function ya(e){for(var t=e.length;--t>=0;)e[t]=0}function Jr(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(Nr(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function _t(e,t){B9(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Jr(e.strm)}function Ae(e,t){e.pending_buf[e.pending++]=t}function zi(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function ih(e,t,r,a){var i=e.avail_in;return i>a&&(i=a),i===0?0:(e.avail_in-=i,Nr(t,e.input,e.next_in,i,r),e.state.wrap===1?e.adler=ep(e.adler,t,i,r):e.state.wrap===2&&(e.adler=ut(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)}function J2(e,t){var r=e.max_chain_length,a=e.strstart,i,n,p=e.prev_length,s=e.nice_match,o=e.strstart>e.w_size-er?e.strstart-(e.w_size-er):0,d=e.window,l=e.w_mask,h=e.prev,g=e.strstart+Zr,v=d[a+p-1],y=d[a+p];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do if(i=t,!(d[i+p]!==y||d[i+p-1]!==v||d[i]!==d[a]||d[++i]!==d[a+1])){a+=2,i++;do;while(d[++a]===d[++i]&&d[++a]===d[++i]&&d[++a]===d[++i]&&d[++a]===d[++i]&&d[++a]===d[++i]&&d[++a]===d[++i]&&d[++a]===d[++i]&&d[++a]===d[++i]&&a<g);if(n=Zr-(g-a),a=g-Zr,n>p){if(e.match_start=t,p=n,n>=s)break;v=d[a+p-1],y=d[a+p]}}while((t=h[t&l])>o&&--r!==0);return p<=e.lookahead?p:e.lookahead}function Hi(e){var t=e.w_size,r,a,i,n,p;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-er)){Nr(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,a=e.hash_size,r=a;do i=e.head[--r],e.head[r]=i>=t?i-t:0;while(--a);a=t,r=a;do i=e.prev[--r],e.prev[r]=i>=t?i-t:0;while(--a);n+=t}if(e.strm.avail_in===0)break;if(a=ih(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=a,e.lookahead+e.insert>=Ie)for(p=e.strstart-e.insert,e.ins_h=e.window[p],e.ins_h=(e.ins_h<<e.hash_shift^e.window[p+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[p+Ie-1])&e.hash_mask,e.prev[p&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=p,p++,e.insert--,!(e.lookahead+e.insert<Ie)););}while(e.lookahead<er&&e.strm.avail_in!==0)}function nh(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Hi(e),e.lookahead===0&&t===ma)return pt;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var a=e.block_start+r;if((e.strstart===0||e.strstart>=a)&&(e.lookahead=e.strstart-a,e.strstart=a,_t(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-er&&(_t(e,!1),e.strm.avail_out===0))return pt}return e.insert=0,t===Kr?(_t(e,!0),e.strm.avail_out===0?ga:ei):(e.strstart>e.block_start&&(_t(e,!1),e.strm.avail_out===0),pt)}function sp(e,t){for(var r,a;;){if(e.lookahead<er){if(Hi(e),e.lookahead<er&&t===ma)return pt;if(e.lookahead===0)break}if(r=0,e.lookahead>=Ie&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Ie-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-er&&(e.match_length=J2(e,r)),e.match_length>=Ie)if(a=qr(e,e.strstart-e.match_start,e.match_length-Ie),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Ie){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Ie-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);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 a=qr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(a&&(_t(e,!1),e.strm.avail_out===0))return pt}return e.insert=e.strstart<Ie-1?e.strstart:Ie-1,t===Kr?(_t(e,!0),e.strm.avail_out===0?ga:ei):e.last_lit&&(_t(e,!1),e.strm.avail_out===0)?pt:ki}function ti(e,t){for(var r,a,i;;){if(e.lookahead<er){if(Hi(e),e.lookahead<er&&t===ma)return pt;if(e.lookahead===0)break}if(r=0,e.lookahead>=Ie&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Ie-1])&e.hash_mask,r=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=Ie-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-er&&(e.match_length=J2(e,r),e.match_length<=5&&(e.strategy===q9||e.match_length===Ie&&e.strstart-e.match_start>4096)&&(e.match_length=Ie-1)),e.prev_length>=Ie&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-Ie,a=qr(e,e.strstart-1-e.prev_match,e.prev_length-Ie),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+Ie-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Ie-1,e.strstart++,a&&(_t(e,!1),e.strm.avail_out===0))return pt}else if(e.match_available){if(a=qr(e,0,e.window[e.strstart-1]),a&&_t(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return pt}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(a=qr(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Ie-1?e.strstart:Ie-1,t===Kr?(_t(e,!0),e.strm.avail_out===0?ga:ei):e.last_lit&&(_t(e,!1),e.strm.avail_out===0)?pt:ki}function sh(e,t){for(var r,a,i,n,p=e.window;;){if(e.lookahead<=Zr){if(Hi(e),e.lookahead<=Zr&&t===ma)return pt;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Ie&&e.strstart>0&&(i=e.strstart-1,a=p[i],a===p[++i]&&a===p[++i]&&a===p[++i])){n=e.strstart+Zr;do;while(a===p[++i]&&a===p[++i]&&a===p[++i]&&a===p[++i]&&a===p[++i]&&a===p[++i]&&a===p[++i]&&a===p[++i]&&i<n);e.match_length=Zr-(n-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Ie?(r=qr(e,1,e.match_length-Ie),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=qr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(_t(e,!1),e.strm.avail_out===0))return pt}return e.insert=0,t===Kr?(_t(e,!0),e.strm.avail_out===0?ga:ei):e.last_lit&&(_t(e,!1),e.strm.avail_out===0)?pt:ki}function ph(e,t){for(var r;;){if(e.lookahead===0&&(Hi(e),e.lookahead===0)){if(t===ma)return pt;break}if(e.match_length=0,r=qr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(_t(e,!1),e.strm.avail_out===0))return pt}return e.insert=0,t===Kr?(_t(e,!0),e.strm.avail_out===0?ga:ei):e.last_lit&&(_t(e,!1),e.strm.avail_out===0)?pt:ki}function ur(e,t,r,a,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=a,this.func=i}var ri;ri=[new ur(0,0,0,0,nh),new ur(4,4,8,4,sp),new ur(4,5,16,8,sp),new ur(4,6,32,32,sp),new ur(4,4,16,16,ti),new ur(8,16,32,32,ti),new ur(8,16,128,128,ti),new ur(8,32,128,256,ti),new ur(32,128,258,1024,ti),new ur(32,258,258,4096,ti)];function oh(e){e.window_size=2*e.w_size,ya(e.head),e.max_lazy_match=ri[e.level].max_lazy,e.good_match=ri[e.level].good_length,e.nice_match=ri[e.level].nice_length,e.max_chain_length=ri[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Ie-1,e.match_available=0,e.ins_h=0}function dh(){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=rp,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 Kt(eh*2),this.dyn_dtree=new Kt((2*X9+1)*2),this.bl_tree=new Kt((2*Q9+1)*2),ya(this.dyn_ltree),ya(this.dyn_dtree),ya(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Kt(th+1),this.heap=new Kt(2*ap+1),ya(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Kt(2*ap+1),ya(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 lh(e){var t;return!e||!e.state?Yr(e,Wr):(e.total_in=e.total_out=0,e.data_type=W9,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?ip:va,e.adler=t.wrap===2?0:1,t.last_flush=ma,M9(t),Gr)}function X2(e){var t=lh(e);return t===Gr&&oh(e.state),t}function uh(e,t,r,a,i,n){if(!e)return Wr;var p=1;if(t===H9&&(t=6),a<0?(p=0,a=-a):a>15&&(p=2,a-=16),i<1||i>Z9||r!==rp||a<8||a>15||t<0||t>9||n<0||n>G9)return Yr(e,Wr);a===8&&(a=9);var s=new dh;return e.state=s,s.strm=e,s.wrap=p,s.gzhead=null,s.w_bits=a,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+Ie-1)/Ie),s.window=new k1(s.w_size*2),s.head=new Kt(s.hash_size),s.prev=new Kt(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new k1(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=(1+2)*s.lit_bufsize,s.level=t,s.strategy=n,s.method=r,X2(e)}function ch(e,t){var r,a,i,n;if(!e||!e.state||t>W2||t<0)return e?Yr(e,Wr):Wr;if(a=e.state,!e.output||!e.input&&e.avail_in!==0||a.status===Vi&&t!==Kr)return Yr(e,e.avail_out===0?tp:Wr);if(a.strm=e,r=a.last_flush,a.last_flush=t,a.status===ip)if(a.wrap===2)e.adler=0,Ae(a,31),Ae(a,139),Ae(a,8),a.gzhead?(Ae(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),Ae(a,a.gzhead.time&255),Ae(a,a.gzhead.time>>8&255),Ae(a,a.gzhead.time>>16&255),Ae(a,a.gzhead.time>>24&255),Ae(a,a.level===9?2:a.strategy>=K1||a.level<2?4:0),Ae(a,a.gzhead.os&255),a.gzhead.extra&&a.gzhead.extra.length&&(Ae(a,a.gzhead.extra.length&255),Ae(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=ut(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=np):(Ae(a,0),Ae(a,0),Ae(a,0),Ae(a,0),Ae(a,0),Ae(a,a.level===9?2:a.strategy>=K1||a.level<2?4:0),Ae(a,ah),a.status=va);else{var p=rp+(a.w_bits-8<<4)<<8,s=-1;a.strategy>=K1||a.level<2?s=0:a.level<6?s=1:a.level===6?s=2:s=3,p|=s<<6,a.strstart!==0&&(p|=rh),p+=31-p%31,a.status=va,zi(a,p),a.strstart!==0&&(zi(a,e.adler>>>16),zi(a,e.adler&65535)),e.adler=1}if(a.status===np)if(a.gzhead.extra){for(i=a.pending;a.gzindex<(a.gzhead.extra.length&65535)&&!(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>i&&(e.adler=ut(e.adler,a.pending_buf,a.pending-i,i)),Jr(e),i=a.pending,a.pending===a.pending_buf_size));)Ae(a,a.gzhead.extra[a.gzindex]&255),a.gzindex++;a.gzhead.hcrc&&a.pending>i&&(e.adler=ut(e.adler,a.pending_buf,a.pending-i,i)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=G1)}else a.status=G1;if(a.status===G1)if(a.gzhead.name){i=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>i&&(e.adler=ut(e.adler,a.pending_buf,a.pending-i,i)),Jr(e),i=a.pending,a.pending===a.pending_buf_size)){n=1;break}a.gzindex<a.gzhead.name.length?n=a.gzhead.name.charCodeAt(a.gzindex++)&255:n=0,Ae(a,n)}while(n!==0);a.gzhead.hcrc&&a.pending>i&&(e.adler=ut(e.adler,a.pending_buf,a.pending-i,i)),n===0&&(a.gzindex=0,a.status=W1)}else a.status=W1;if(a.status===W1)if(a.gzhead.comment){i=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>i&&(e.adler=ut(e.adler,a.pending_buf,a.pending-i,i)),Jr(e),i=a.pending,a.pending===a.pending_buf_size)){n=1;break}a.gzindex<a.gzhead.comment.length?n=a.gzhead.comment.charCodeAt(a.gzindex++)&255:n=0,Ae(a,n)}while(n!==0);a.gzhead.hcrc&&a.pending>i&&(e.adler=ut(e.adler,a.pending_buf,a.pending-i,i)),n===0&&(a.status=Z1)}else a.status=Z1;if(a.status===Z1&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&Jr(e),a.pending+2<=a.pending_buf_size&&(Ae(a,e.adler&255),Ae(a,e.adler>>8&255),e.adler=0,a.status=va)):a.status=va),a.pending!==0){if(Jr(e),e.avail_out===0)return a.last_flush=-1,Gr}else if(e.avail_in===0&&Y2(t)<=Y2(r)&&t!==Kr)return Yr(e,tp);if(a.status===Vi&&e.avail_in!==0)return Yr(e,tp);if(e.avail_in!==0||a.lookahead!==0||t!==ma&&a.status!==Vi){var o=a.strategy===K1?ph(a,t):a.strategy===K9?sh(a,t):ri[a.level].func(a,t);if((o===ga||o===ei)&&(a.status=Vi),o===pt||o===ga)return e.avail_out===0&&(a.last_flush=-1),Gr;if(o===ki&&(t===V9?U9(a):t!==W2&&(G2(a,0,0,!1),t===k9&&(ya(a.head),a.lookahead===0&&(a.strstart=0,a.block_start=0,a.insert=0))),Jr(e),e.avail_out===0))return a.last_flush=-1,Gr}return t!==Kr?Gr:a.wrap<=0?Z2:(a.wrap===2?(Ae(a,e.adler&255),Ae(a,e.adler>>8&255),Ae(a,e.adler>>16&255),Ae(a,e.adler>>24&255),Ae(a,e.total_in&255),Ae(a,e.total_in>>8&255),Ae(a,e.total_in>>16&255),Ae(a,e.total_in>>24&255)):(zi(a,e.adler>>>16),zi(a,e.adler&65535)),Jr(e),a.wrap>0&&(a.wrap=-a.wrap),a.pending!==0?Gr:Z2)}function fh(e){var t;return!e||!e.state?Wr:(t=e.state.status,t!==ip&&t!==np&&t!==G1&&t!==W1&&t!==Z1&&t!==va&&t!==Vi?Yr(e,Wr):(e.state=null,t===va?Yr(e,z9):Gr))}var Y1=30,hh=12;function mh(e,t){var r,a,i,n,p,s,o,d,l,h,g,v,y,A,E,D,C,B,S,x,N,u,T,Z,J;r=e.state,a=e.next_in,Z=e.input,i=a+(e.avail_in-5),n=e.next_out,J=e.output,p=n-(t-e.avail_out),s=n+(e.avail_out-257),o=r.dmax,d=r.wsize,l=r.whave,h=r.wnext,g=r.window,v=r.hold,y=r.bits,A=r.lencode,E=r.distcode,D=(1<<r.lenbits)-1,C=(1<<r.distbits)-1;e:do{y<15&&(v+=Z[a++]<<y,y+=8,v+=Z[a++]<<y,y+=8),B=A[v&D];t:for(;;){if(S=B>>>24,v>>>=S,y-=S,S=B>>>16&255,S===0)J[n++]=B&65535;else if(S&16){x=B&65535,S&=15,S&&(y<S&&(v+=Z[a++]<<y,y+=8),x+=v&(1<<S)-1,v>>>=S,y-=S),y<15&&(v+=Z[a++]<<y,y+=8,v+=Z[a++]<<y,y+=8),B=E[v&C];r:for(;;){if(S=B>>>24,v>>>=S,y-=S,S=B>>>16&255,S&16){if(N=B&65535,S&=15,y<S&&(v+=Z[a++]<<y,y+=8,y<S&&(v+=Z[a++]<<y,y+=8)),N+=v&(1<<S)-1,N>o){e.msg="invalid distance too far back",r.mode=Y1;break e}if(v>>>=S,y-=S,S=n-p,N>S){if(S=N-S,S>l&&r.sane){e.msg="invalid distance too far back",r.mode=Y1;break e}if(u=0,T=g,h===0){if(u+=d-S,S<x){x-=S;do J[n++]=g[u++];while(--S);u=n-N,T=J}}else if(h<S){if(u+=d+h-S,S-=h,S<x){x-=S;do J[n++]=g[u++];while(--S);if(u=0,h<x){S=h,x-=S;do J[n++]=g[u++];while(--S);u=n-N,T=J}}}else if(u+=h-S,S<x){x-=S;do J[n++]=g[u++];while(--S);u=n-N,T=J}for(;x>2;)J[n++]=T[u++],J[n++]=T[u++],J[n++]=T[u++],x-=3;x&&(J[n++]=T[u++],x>1&&(J[n++]=T[u++]))}else{u=n-N;do J[n++]=J[u++],J[n++]=J[u++],J[n++]=J[u++],x-=3;while(x>2);x&&(J[n++]=J[u++],x>1&&(J[n++]=J[u++]))}}else if((S&64)===0){B=E[(B&65535)+(v&(1<<S)-1)];continue r}else{e.msg="invalid distance code",r.mode=Y1;break e}break}}else if((S&64)===0){B=A[(B&65535)+(v&(1<<S)-1)];continue t}else if(S&32){r.mode=hh;break e}else{e.msg="invalid literal/length code",r.mode=Y1;break e}break}}while(a<i&&n<s);x=y>>3,a-=x,y-=x<<3,v&=(1<<y)-1,e.next_in=a,e.next_out=n,e.avail_in=a<i?5+(i-a):5-(a-i),e.avail_out=n<s?257+(s-n):257-(n-s),r.hold=v,r.bits=y}var ai=15,Q2=852,el=592,tl=0,pp=1,rl=2,vh=[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],gh=[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],yh=[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],wh=[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];function qi(e,t,r,a,i,n,p,s){var o=s.bits,d=0,l=0,h=0,g=0,v=0,y=0,A=0,E=0,D=0,C=0,B,S,x,N,u,T=null,Z=0,J,ne=new Kt(ai+1),pe=new Kt(ai+1),le=null,z=0,G,de,ce;for(d=0;d<=ai;d++)ne[d]=0;for(l=0;l<a;l++)ne[t[r+l]]++;for(v=o,g=ai;g>=1&&ne[g]===0;g--);if(v>g&&(v=g),g===0)return i[n++]=1<<24|64<<16|0,i[n++]=1<<24|64<<16|0,s.bits=1,0;for(h=1;h<g&&ne[h]===0;h++);for(v<h&&(v=h),E=1,d=1;d<=ai;d++)if(E<<=1,E-=ne[d],E<0)return-1;if(E>0&&(e===tl||g!==1))return-1;for(pe[1]=0,d=1;d<ai;d++)pe[d+1]=pe[d]+ne[d];for(l=0;l<a;l++)t[r+l]!==0&&(p[pe[t[r+l]]++]=l);if(e===tl?(T=le=p,J=19):e===pp?(T=vh,Z-=257,le=gh,z-=257,J=256):(T=yh,le=wh,J=-1),C=0,l=0,d=h,u=n,y=v,A=0,x=-1,D=1<<v,N=D-1,e===pp&&D>Q2||e===rl&&D>el)return 1;for(;;){G=d-A,p[l]<J?(de=0,ce=p[l]):p[l]>J?(de=le[z+p[l]],ce=T[Z+p[l]]):(de=32+64,ce=0),B=1<<d-A,S=1<<y,h=S;do S-=B,i[u+(C>>A)+S]=G<<24|de<<16|ce|0;while(S!==0);for(B=1<<d-1;C&B;)B>>=1;if(B!==0?(C&=B-1,C+=B):C=0,l++,--ne[d]===0){if(d===g)break;d=t[r+p[l]]}if(d>v&&(C&N)!==x){for(A===0&&(A=v),u+=h,y=d-A,E=1<<y;y+A<g&&(E-=ne[y+A],!(E<=0));)y++,E<<=1;if(D+=1<<y,e===pp&&D>Q2||e===rl&&D>el)return 1;x=C&N,i[x]=v<<24|y<<16|u-n|0}}return C!==0&&(i[u+C]=d-A<<24|64<<16|0),s.bits=v,0}var _h=0,al=1,il=2,nl=4,bh=5,J1=6,Ki=0,Eh=1,Sh=2,Xr=-2,xh=-3,Dh=-4,Th=-5,sl=8,pl=1,ol=2,dl=3,ll=4,ul=5,cl=6,fl=7,hl=8,ml=9,vl=10,gl=11,Ar=12,op=13,yl=14,dp=15,wl=16,_l=17,bl=18,El=19,X1=20,Q1=21,Sl=22,xl=23,Dl=24,Tl=25,Nl=26,lp=27,Ol=28,Al=29,je=30,Nh=31,Oh=32,Ah=852,Ch=592;function Cl(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function Ih(){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 Kt(320),this.work=new Kt(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Rh(e){var t;return!e||!e.state?Xr:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=pl,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new z1(Ah),t.distcode=t.distdyn=new z1(Ch),t.sane=1,t.back=-1,Ki)}function Il(e){var t;return!e||!e.state?Xr:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Rh(e))}function Lh(e,t){var r,a;return!e||!e.state||(a=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?Xr:(a.window!==null&&a.wbits!==t&&(a.window=null),a.wrap=r,a.wbits=t,Il(e))}function Fh(e,t){var r,a;return e?(a=new Ih,e.state=a,a.window=null,r=Lh(e,t),r!==Ki&&(e.state=null),r):Xr}var Rl=!0,up,cp;function Ph(e){if(Rl){var t;for(up=new z1(512),cp=new z1(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(qi(al,e.lens,0,288,up,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;qi(il,e.lens,0,32,cp,0,e.work,{bits:5}),Rl=!1}e.lencode=up,e.lenbits=9,e.distcode=cp,e.distbits=5}function Mh(e,t,r,a){var i,n=e.state;return n.window===null&&(n.wsize=1<<n.wbits,n.wnext=0,n.whave=0,n.window=new k1(n.wsize)),a>=n.wsize?(Nr(n.window,t,r-n.wsize,n.wsize,0),n.wnext=0,n.whave=n.wsize):(i=n.wsize-n.wnext,i>a&&(i=a),Nr(n.window,t,r-a,i,n.wnext),a-=i,a?(Nr(n.window,t,r-a,a,0),n.wnext=a,n.whave=n.wsize):(n.wnext+=i,n.wnext===n.wsize&&(n.wnext=0),n.whave<n.wsize&&(n.whave+=i))),0}function Uh(e,t){var r,a,i,n,p,s,o,d,l,h,g,v,y,A,E=0,D,C,B,S,x,N,u,T,Z=new k1(4),J,ne,pe=[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&&e.avail_in!==0)return Xr;r=e.state,r.mode===Ar&&(r.mode=op),p=e.next_out,i=e.output,o=e.avail_out,n=e.next_in,a=e.input,s=e.avail_in,d=r.hold,l=r.bits,h=s,g=o,T=Ki;e:for(;;)switch(r.mode){case pl:if(r.wrap===0){r.mode=op;break}for(;l<16;){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}if(r.wrap&2&&d===35615){r.check=0,Z[0]=d&255,Z[1]=d>>>8&255,r.check=ut(r.check,Z,2,0),d=0,l=0,r.mode=ol;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((d&255)<<8)+(d>>8))%31){e.msg="incorrect header check",r.mode=je;break}if((d&15)!==sl){e.msg="unknown compression method",r.mode=je;break}if(d>>>=4,l-=4,u=(d&15)+8,r.wbits===0)r.wbits=u;else if(u>r.wbits){e.msg="invalid window size",r.mode=je;break}r.dmax=1<<u,e.adler=r.check=1,r.mode=d&512?vl:Ar,d=0,l=0;break;case ol:for(;l<16;){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}if(r.flags=d,(r.flags&255)!==sl){e.msg="unknown compression method",r.mode=je;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=je;break}r.head&&(r.head.text=d>>8&1),r.flags&512&&(Z[0]=d&255,Z[1]=d>>>8&255,r.check=ut(r.check,Z,2,0)),d=0,l=0,r.mode=dl;case dl:for(;l<32;){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}r.head&&(r.head.time=d),r.flags&512&&(Z[0]=d&255,Z[1]=d>>>8&255,Z[2]=d>>>16&255,Z[3]=d>>>24&255,r.check=ut(r.check,Z,4,0)),d=0,l=0,r.mode=ll;case ll:for(;l<16;){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}r.head&&(r.head.xflags=d&255,r.head.os=d>>8),r.flags&512&&(Z[0]=d&255,Z[1]=d>>>8&255,r.check=ut(r.check,Z,2,0)),d=0,l=0,r.mode=ul;case ul:if(r.flags&1024){for(;l<16;){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}r.length=d,r.head&&(r.head.extra_len=d),r.flags&512&&(Z[0]=d&255,Z[1]=d>>>8&255,r.check=ut(r.check,Z,2,0)),d=0,l=0}else r.head&&(r.head.extra=null);r.mode=cl;case cl:if(r.flags&1024&&(v=r.length,v>s&&(v=s),v&&(r.head&&(u=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),Nr(r.head.extra,a,n,v,u)),r.flags&512&&(r.check=ut(r.check,a,v,n)),s-=v,n+=v,r.length-=v),r.length))break e;r.length=0,r.mode=fl;case fl:if(r.flags&2048){if(s===0)break e;v=0;do u=a[n+v++],r.head&&u&&r.length<65536&&(r.head.name+=String.fromCharCode(u));while(u&&v<s);if(r.flags&512&&(r.check=ut(r.check,a,v,n)),s-=v,n+=v,u)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=hl;case hl:if(r.flags&4096){if(s===0)break e;v=0;do u=a[n+v++],r.head&&u&&r.length<65536&&(r.head.comment+=String.fromCharCode(u));while(u&&v<s);if(r.flags&512&&(r.check=ut(r.check,a,v,n)),s-=v,n+=v,u)break e}else r.head&&(r.head.comment=null);r.mode=ml;case ml:if(r.flags&512){for(;l<16;){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}if(d!==(r.check&65535)){e.msg="header crc mismatch",r.mode=je;break}d=0,l=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Ar;break;case vl:for(;l<32;){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}e.adler=r.check=Cl(d),d=0,l=0,r.mode=gl;case gl:if(r.havedict===0)return e.next_out=p,e.avail_out=o,e.next_in=n,e.avail_in=s,r.hold=d,r.bits=l,Sh;e.adler=r.check=1,r.mode=Ar;case Ar:if(t===bh||t===J1)break e;case op:if(r.last){d>>>=l&7,l-=l&7,r.mode=lp;break}for(;l<3;){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}switch(r.last=d&1,d>>>=1,l-=1,d&3){case 0:r.mode=yl;break;case 1:if(Ph(r),r.mode=X1,t===J1){d>>>=2,l-=2;break e}break;case 2:r.mode=_l;break;case 3:e.msg="invalid block type",r.mode=je}d>>>=2,l-=2;break;case yl:for(d>>>=l&7,l-=l&7;l<32;){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}if((d&65535)!==(d>>>16^65535)){e.msg="invalid stored block lengths",r.mode=je;break}if(r.length=d&65535,d=0,l=0,r.mode=dp,t===J1)break e;case dp:r.mode=wl;case wl:if(v=r.length,v){if(v>s&&(v=s),v>o&&(v=o),v===0)break e;Nr(i,a,n,v,p),s-=v,n+=v,o-=v,p+=v,r.length-=v;break}r.mode=Ar;break;case _l:for(;l<14;){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}if(r.nlen=(d&31)+257,d>>>=5,l-=5,r.ndist=(d&31)+1,d>>>=5,l-=5,r.ncode=(d&15)+4,d>>>=4,l-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=je;break}r.have=0,r.mode=bl;case bl:for(;r.have<r.ncode;){for(;l<3;){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}r.lens[pe[r.have++]]=d&7,d>>>=3,l-=3}for(;r.have<19;)r.lens[pe[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,J={bits:r.lenbits},T=qi(_h,r.lens,0,19,r.lencode,0,r.work,J),r.lenbits=J.bits,T){e.msg="invalid code lengths set",r.mode=je;break}r.have=0,r.mode=El;case El:for(;r.have<r.nlen+r.ndist;){for(;E=r.lencode[d&(1<<r.lenbits)-1],D=E>>>24,C=E>>>16&255,B=E&65535,!(D<=l);){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}if(B<16)d>>>=D,l-=D,r.lens[r.have++]=B;else{if(B===16){for(ne=D+2;l<ne;){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}if(d>>>=D,l-=D,r.have===0){e.msg="invalid bit length repeat",r.mode=je;break}u=r.lens[r.have-1],v=3+(d&3),d>>>=2,l-=2}else if(B===17){for(ne=D+3;l<ne;){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}d>>>=D,l-=D,u=0,v=3+(d&7),d>>>=3,l-=3}else{for(ne=D+7;l<ne;){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}d>>>=D,l-=D,u=0,v=11+(d&127),d>>>=7,l-=7}if(r.have+v>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=je;break}for(;v--;)r.lens[r.have++]=u}}if(r.mode===je)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=je;break}if(r.lenbits=9,J={bits:r.lenbits},T=qi(al,r.lens,0,r.nlen,r.lencode,0,r.work,J),r.lenbits=J.bits,T){e.msg="invalid literal/lengths set",r.mode=je;break}if(r.distbits=6,r.distcode=r.distdyn,J={bits:r.distbits},T=qi(il,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,J),r.distbits=J.bits,T){e.msg="invalid distances set",r.mode=je;break}if(r.mode=X1,t===J1)break e;case X1:r.mode=Q1;case Q1:if(s>=6&&o>=258){e.next_out=p,e.avail_out=o,e.next_in=n,e.avail_in=s,r.hold=d,r.bits=l,mh(e,g),p=e.next_out,i=e.output,o=e.avail_out,n=e.next_in,a=e.input,s=e.avail_in,d=r.hold,l=r.bits,r.mode===Ar&&(r.back=-1);break}for(r.back=0;E=r.lencode[d&(1<<r.lenbits)-1],D=E>>>24,C=E>>>16&255,B=E&65535,!(D<=l);){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}if(C&&(C&240)===0){for(S=D,x=C,N=B;E=r.lencode[N+((d&(1<<S+x)-1)>>S)],D=E>>>24,C=E>>>16&255,B=E&65535,!(S+D<=l);){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}d>>>=S,l-=S,r.back+=S}if(d>>>=D,l-=D,r.back+=D,r.length=B,C===0){r.mode=Nl;break}if(C&32){r.back=-1,r.mode=Ar;break}if(C&64){e.msg="invalid literal/length code",r.mode=je;break}r.extra=C&15,r.mode=Sl;case Sl:if(r.extra){for(ne=r.extra;l<ne;){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}r.length+=d&(1<<r.extra)-1,d>>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=xl;case xl:for(;E=r.distcode[d&(1<<r.distbits)-1],D=E>>>24,C=E>>>16&255,B=E&65535,!(D<=l);){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}if((C&240)===0){for(S=D,x=C,N=B;E=r.distcode[N+((d&(1<<S+x)-1)>>S)],D=E>>>24,C=E>>>16&255,B=E&65535,!(S+D<=l);){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}d>>>=S,l-=S,r.back+=S}if(d>>>=D,l-=D,r.back+=D,C&64){e.msg="invalid distance code",r.mode=je;break}r.offset=B,r.extra=C&15,r.mode=Dl;case Dl:if(r.extra){for(ne=r.extra;l<ne;){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}r.offset+=d&(1<<r.extra)-1,d>>>=r.extra,l-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=je;break}r.mode=Tl;case Tl:if(o===0)break e;if(v=g-o,r.offset>v){if(v=r.offset-v,v>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=je;break}v>r.wnext?(v-=r.wnext,y=r.wsize-v):y=r.wnext-v,v>r.length&&(v=r.length),A=r.window}else A=i,y=p-r.offset,v=r.length;v>o&&(v=o),o-=v,r.length-=v;do i[p++]=A[y++];while(--v);r.length===0&&(r.mode=Q1);break;case Nl:if(o===0)break e;i[p++]=r.length,o--,r.mode=Q1;break;case lp:if(r.wrap){for(;l<32;){if(s===0)break e;s--,d|=a[n++]<<l,l+=8}if(g-=o,e.total_out+=g,r.total+=g,g&&(e.adler=r.check=r.flags?ut(r.check,i,g,p-g):ep(r.check,i,g,p-g)),g=o,(r.flags?d:Cl(d))!==r.check){e.msg="incorrect data check",r.mode=je;break}d=0,l=0}r.mode=Ol;case Ol:if(r.wrap&&r.flags){for(;l<32;){if(s===0)break e;s--,d+=a[n++]<<l,l+=8}if(d!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=je;break}d=0,l=0}r.mode=Al;case Al:T=Eh;break e;case je:T=xh;break e;case Nh:return Dh;case Oh:default:return Xr}return e.next_out=p,e.avail_out=o,e.next_in=n,e.avail_in=s,r.hold=d,r.bits=l,(r.wsize||g!==e.avail_out&&r.mode<je&&(r.mode<lp||t!==nl))&&Mh(e,e.output,e.next_out,g-e.avail_out),h-=e.avail_in,g-=e.avail_out,e.total_in+=h,e.total_out+=g,r.total+=g,r.wrap&&g&&(e.adler=r.check=r.flags?ut(r.check,i,g,e.next_out-g):ep(r.check,i,g,e.next_out-g)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Ar?128:0)+(r.mode===X1||r.mode===dp?256:0),(h===0&&g===0||t===nl)&&T===Ki&&(T=Th),T}function Bh(e){if(!e||!e.state)return Xr;var t=e.state;return t.window&&(t.window=null),e.state=null,Ki}var fp=0,ii=1,en=2,Gi=3,tn=4,ni=5,Wi=6,Zi=7,Ll=0,Fl=1,Pl=2,Ml=3,Ul=4,Bl=5,$h=6,rn=0,$l=1,jh=2,Vh=-1,kh=-2,zh=-3,Hh=-5,qh=0,Kh=1,Gh=9,Wh=-1,Zh=1,Yh=2,Jh=3,Xh=4,Qh=0,em=0,tm=1,rm=2,jl=8;function cr(e){if(e<ii||e>Zi)throw new TypeError("Bad argument");this.mode=e,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}cr.prototype.init=function(e,t,r,a,i){this.windowBits=e,this.level=t,this.memLevel=r,this.strategy=a,(this.mode===Gi||this.mode===tn)&&(this.windowBits+=16),this.mode===Zi&&(this.windowBits+=32),(this.mode===ni||this.mode===Wi)&&(this.windowBits=-this.windowBits),this.strm=new w9;var n;switch(this.mode){case ii:case Gi:case ni:n=uh(this.strm,this.level,jl,this.windowBits,this.memLevel,this.strategy);break;case en:case tn:case Wi:case Zi:n=Fh(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}if(n!==rn){this._error(n);return}this.write_in_progress=!1,this.init_done=!0},cr.prototype.params=function(){throw new Error("deflateParams Not supported")},cr.prototype._writeCheck=function(){if(!this.init_done)throw new Error("write before init");if(this.mode===fp)throw new Error("already finalized");if(this.write_in_progress)throw new Error("write already in progress");if(this.pending_close)throw new Error("close is pending")},cr.prototype.write=function(e,t,r,a,i,n,p){this._writeCheck(),this.write_in_progress=!0;var s=this;return process.nextTick(function(){s.write_in_progress=!1;var o=s._write(e,t,r,a,i,n,p);s.callback(o[0],o[1]),s.pending_close&&s.close()}),this};function am(e,t){for(var r=0;r<e.length;r++)this[t+r]=e[r]}cr.prototype.writeSync=function(e,t,r,a,i,n,p){return this._writeCheck(),this._write(e,t,r,a,i,n,p)},cr.prototype._write=function(e,t,r,a,i,n,p){if(this.write_in_progress=!0,e!==Ll&&e!==Fl&&e!==Pl&&e!==Ml&&e!==Ul&&e!==Bl)throw new Error("Invalid flush value");t==null&&(t=new Buffer(0),a=0,r=0),i._set?i.set=i._set:i.set=am;var s=this.strm;s.avail_in=a,s.input=t,s.next_in=r,s.avail_out=p,s.output=i,s.next_out=n;var o;switch(this.mode){case ii:case Gi:case ni:o=ch(s,e);break;case Zi:case en:case tn:case Wi:o=Uh(s,e);break;default:throw new Error("Unknown mode "+this.mode)}return o!==$l&&o!==rn&&this._error(o),this.write_in_progress=!1,[s.avail_in,s.avail_out]},cr.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,this.mode===ii||this.mode===Gi||this.mode===ni?fh(this.strm):Bh(this.strm),this.mode=fp};var an;cr.prototype.reset=function(){switch(this.mode){case ii:case ni:an=X2(this.strm);break;case en:case Wi:an=Il(this.strm);break}an!==rn&&this._error(an)},cr.prototype._error=function(e){this.onerror(D2[e]+": "+this.strm.msg,e),this.write_in_progress=!1,this.pending_close&&this.close()};var Vl=Object.freeze({__proto__:null,NONE:fp,DEFLATE:ii,INFLATE:en,GZIP:Gi,GUNZIP:tn,DEFLATERAW:ni,INFLATERAW:Wi,UNZIP:Zi,Z_NO_FLUSH:Ll,Z_PARTIAL_FLUSH:Fl,Z_SYNC_FLUSH:Pl,Z_FULL_FLUSH:Ml,Z_FINISH:Ul,Z_BLOCK:Bl,Z_TREES:$h,Z_OK:rn,Z_STREAM_END:$l,Z_NEED_DICT:jh,Z_ERRNO:Vh,Z_STREAM_ERROR:kh,Z_DATA_ERROR:zh,Z_BUF_ERROR:Hh,Z_NO_COMPRESSION:qh,Z_BEST_SPEED:Kh,Z_BEST_COMPRESSION:Gh,Z_DEFAULT_COMPRESSION:Wh,Z_FILTERED:Zh,Z_HUFFMAN_ONLY:Yh,Z_RLE:Jh,Z_FIXED:Xh,Z_DEFAULT_STRATEGY:Qh,Z_BINARY:em,Z_TEXT:tm,Z_UNKNOWN:rm,Z_DEFLATED:jl,Zlib:cr});function im(e,t){if(!e)throw new Error(t)}var ve={};Object.keys(Vl).forEach(function(e){ve[e]=Vl[e]}),ve.Z_MIN_WINDOWBITS=8,ve.Z_MAX_WINDOWBITS=15,ve.Z_DEFAULT_WINDOWBITS=15,ve.Z_MIN_CHUNK=64,ve.Z_MAX_CHUNK=1/0,ve.Z_DEFAULT_CHUNK=16*1024,ve.Z_MIN_MEMLEVEL=1,ve.Z_MAX_MEMLEVEL=9,ve.Z_DEFAULT_MEMLEVEL=8,ve.Z_MIN_LEVEL=-1,ve.Z_MAX_LEVEL=9,ve.Z_DEFAULT_LEVEL=ve.Z_DEFAULT_COMPRESSION;var nn={Z_OK:ve.Z_OK,Z_STREAM_END:ve.Z_STREAM_END,Z_NEED_DICT:ve.Z_NEED_DICT,Z_ERRNO:ve.Z_ERRNO,Z_STREAM_ERROR:ve.Z_STREAM_ERROR,Z_DATA_ERROR:ve.Z_DATA_ERROR,Z_MEM_ERROR:ve.Z_MEM_ERROR,Z_BUF_ERROR:ve.Z_BUF_ERROR,Z_VERSION_ERROR:ve.Z_VERSION_ERROR};Object.keys(nn).forEach(function(e){nn[nn[e]]=e});function nm(e){return new ba(e)}function sm(e){return new Ea(e)}function pm(e){return new Da(e)}function om(e){return new Ta(e)}function dm(e){return new Sa(e)}function lm(e){return new xa(e)}function um(e){return new Na(e)}function cm(e,t,r){return typeof t=="function"&&(r=t,t={}),wa(new ba(t),e,r)}function fm(e,t){return _a(new ba(t),e)}function hm(e,t,r){return typeof t=="function"&&(r=t,t={}),wa(new Sa(t),e,r)}function mm(e,t){return _a(new Sa(t),e)}function vm(e,t,r){return typeof t=="function"&&(r=t,t={}),wa(new Da(t),e,r)}function gm(e,t){return _a(new Da(t),e)}function ym(e,t,r){return typeof t=="function"&&(r=t,t={}),wa(new Na(t),e,r)}function wm(e,t){return _a(new Na(t),e)}function _m(e,t,r){return typeof t=="function"&&(r=t,t={}),wa(new Ea(t),e,r)}function bm(e,t){return _a(new Ea(t),e)}function Em(e,t,r){return typeof t=="function"&&(r=t,t={}),wa(new xa(t),e,r)}function Sm(e,t){return _a(new xa(t),e)}function xm(e,t,r){return typeof t=="function"&&(r=t,t={}),wa(new Ta(t),e,r)}function Dm(e,t){return _a(new Ta(t),e)}function wa(e,t,r){var a=[],i=0;e.on("error",p),e.on("end",s),e.end(t),n();function n(){for(var o;(o=e.read())!==null;)a.push(o),i+=o.length;e.once("readable",n)}function p(o){e.removeListener("end",s),e.removeListener("readable",n),r(o)}function s(){var o=Buffer.concat(a,i);a=[],r(null,o),e.close()}}function _a(e,t){if(typeof t=="string"&&(t=new Buffer(t)),!Buffer.isBuffer(t))throw new TypeError("Not a string or buffer");var r=ve.Z_FINISH;return e._processChunk(t,r)}function ba(e){if(!(this instanceof ba))return new ba(e);He.call(this,e,ve.DEFLATE)}function Ea(e){if(!(this instanceof Ea))return new Ea(e);He.call(this,e,ve.INFLATE)}function Sa(e){if(!(this instanceof Sa))return new Sa(e);He.call(this,e,ve.GZIP)}function xa(e){if(!(this instanceof xa))return new xa(e);He.call(this,e,ve.GUNZIP)}function Da(e){if(!(this instanceof Da))return new Da(e);He.call(this,e,ve.DEFLATERAW)}function Ta(e){if(!(this instanceof Ta))return new Ta(e);He.call(this,e,ve.INFLATERAW)}function Na(e){if(!(this instanceof Na))return new Na(e);He.call(this,e,ve.UNZIP)}function He(e,t){if(this._opts=e=e||{},this._chunkSize=e.chunkSize||ve.Z_DEFAULT_CHUNK,Ht.call(this,e),e.flush&&e.flush!==ve.Z_NO_FLUSH&&e.flush!==ve.Z_PARTIAL_FLUSH&&e.flush!==ve.Z_SYNC_FLUSH&&e.flush!==ve.Z_FULL_FLUSH&&e.flush!==ve.Z_FINISH&&e.flush!==ve.Z_BLOCK)throw new Error("Invalid flush flag: "+e.flush);if(this._flushFlag=e.flush||ve.Z_NO_FLUSH,e.chunkSize&&(e.chunkSize<ve.Z_MIN_CHUNK||e.chunkSize>ve.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<ve.Z_MIN_WINDOWBITS||e.windowBits>ve.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<ve.Z_MIN_LEVEL||e.level>ve.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<ve.Z_MIN_MEMLEVEL||e.memLevel>ve.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=ve.Z_FILTERED&&e.strategy!=ve.Z_HUFFMAN_ONLY&&e.strategy!=ve.Z_RLE&&e.strategy!=ve.Z_FIXED&&e.strategy!=ve.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!Buffer.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new ve.Zlib(t);var r=this;this._hadError=!1,this._binding.onerror=function(n,p){r._binding=null,r._hadError=!0;var s=new Error(n);s.errno=p,s.code=ve.codes[p],r.emit("error",s)};var a=ve.Z_DEFAULT_COMPRESSION;typeof e.level=="number"&&(a=e.level);var i=ve.Z_DEFAULT_STRATEGY;typeof e.strategy=="number"&&(i=e.strategy),this._binding.init(e.windowBits||ve.Z_DEFAULT_WINDOWBITS,a,e.memLevel||ve.Z_DEFAULT_MEMLEVEL,i,e.dictionary),this._buffer=new Buffer(this._chunkSize),this._offset=0,this._closed=!1,this._level=a,this._strategy=i,this.once("end",this.close)}lt.inherits(He,Ht),He.prototype.params=function(e,t,r){if(e<ve.Z_MIN_LEVEL||e>ve.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(t!=ve.Z_FILTERED&&t!=ve.Z_HUFFMAN_ONLY&&t!=ve.Z_RLE&&t!=ve.Z_FIXED&&t!=ve.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+t);if(this._level!==e||this._strategy!==t){var a=this;this.flush(ve.Z_SYNC_FLUSH,function(){a._binding.params(e,t),a._hadError||(a._level=e,a._strategy=t,r&&r())})}else process.nextTick(r)},He.prototype.reset=function(){return this._binding.reset()},He.prototype._flush=function(e){this._transform(new Buffer(0),"",e)},He.prototype.flush=function(e,t){var r=this._writableState;if((typeof e=="function"||e===void 0&&!t)&&(t=e,e=ve.Z_FULL_FLUSH),r.ended)t&&process.nextTick(t);else if(r.ending)t&&this.once("end",t);else if(r.needDrain){var a=this;this.once("drain",function(){a.flush(t)})}else this._flushFlag=e,this.write(new Buffer(0),"",t)},He.prototype.close=function(e){if(e&&process.nextTick(e),!this._closed){this._closed=!0,this._binding.close();var t=this;process.nextTick(function(){t.emit("close")})}},He.prototype._transform=function(e,t,r){var a,i=this._writableState,n=i.ending||i.ended,p=n&&(!e||i.length===e.length);if(!e===null&&!Buffer.isBuffer(e))return r(new Error("invalid input"));p?a=ve.Z_FINISH:(a=this._flushFlag,e.length>=i.length&&(this._flushFlag=this._opts.flush||ve.Z_NO_FLUSH)),this._processChunk(e,a,r)},He.prototype._processChunk=function(e,t,r){var a=e&&e.length,i=this._chunkSize-this._offset,n=0,p=this,s=typeof r=="function";if(!s){var o=[],d=0,l;this.on("error",function(A){l=A});do var h=this._binding.writeSync(t,e,n,a,this._buffer,this._offset,i);while(!this._hadError&&y(h[0],h[1]));if(this._hadError)throw l;var g=Buffer.concat(o,d);return this.close(),g}var v=this._binding.write(t,e,n,a,this._buffer,this._offset,i);v.buffer=e,v.callback=y;function y(A,E){if(!p._hadError){var D=i-E;if(im(D>=0,"have should not go down"),D>0){var C=p._buffer.slice(p._offset,p._offset+D);p._offset+=D,s?p.push(C):(o.push(C),d+=C.length)}if((E===0||p._offset>=p._chunkSize)&&(i=p._chunkSize,p._offset=0,p._buffer=new Buffer(p._chunkSize)),E===0){if(n+=a-A,a=A,!s)return!0;var B=p._binding.write(t,e,n,a,p._buffer,p._offset,p._chunkSize);B.callback=y,B.buffer=e;return}if(!s)return!1;r()}}},lt.inherits(ba,He),lt.inherits(Ea,He),lt.inherits(Sa,He),lt.inherits(xa,He),lt.inherits(Da,He),lt.inherits(Ta,He),lt.inherits(Na,He);var Oa={codes:nn,createDeflate:nm,createInflate:sm,createDeflateRaw:pm,createInflateRaw:om,createGzip:dm,createGunzip:lm,createUnzip:um,deflate:cm,deflateSync:fm,gzip:hm,gzipSync:mm,deflateRaw:vm,deflateRawSync:gm,unzip:ym,unzipSync:wm,inflate:_m,inflateSync:bm,gunzip:Em,gunzipSync:Sm,inflateRaw:xm,inflateRawSync:Dm,Deflate:ba,Inflate:Ea,Gzip:Sa,Gunzip:xa,DeflateRaw:Da,InflateRaw:Ta,Unzip:Na,Zlib:He};const Tm=at.Readable,Cr=Symbol("buffer"),hp=Symbol("type");class si{constructor(){this[hp]="";const t=arguments[0],r=arguments[1],a=[];let i=0;if(t){const p=t,s=Number(p.length);for(let o=0;o<s;o++){const d=p[o];let l;d instanceof Buffer?l=d:ArrayBuffer.isView(d)?l=Buffer.from(d.buffer,d.byteOffset,d.byteLength):d instanceof ArrayBuffer?l=Buffer.from(d):d instanceof si?l=d[Cr]:l=Buffer.from(typeof d=="string"?d:String(d)),i+=l.length,a.push(l)}}this[Cr]=Buffer.concat(a);let n=r&&r.type!==void 0&&String(r.type).toLowerCase();n&&!/[^\u0020-\u007E]/.test(n)&&(this[hp]=n)}get size(){return this[Cr].length}get type(){return this[hp]}text(){return Promise.resolve(this[Cr].toString())}arrayBuffer(){const t=this[Cr],r=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength);return Promise.resolve(r)}stream(){const t=new Tm;return t._read=function(){},t.push(this[Cr]),t.push(null),t}toString(){return"[object Blob]"}slice(){const t=this.size,r=arguments[0],a=arguments[1];let i,n;r===void 0?i=0:r<0?i=Math.max(t+r,0):i=Math.min(r,t),a===void 0?n=t:a<0?n=Math.max(t+a,0):n=Math.min(a,t);const p=Math.max(n-i,0),o=this[Cr].slice(i,i+p),d=new si([],{type:arguments[2]});return d[Cr]=o,d}}Object.defineProperties(si.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}}),Object.defineProperty(si.prototype,Symbol.toStringTag,{value:"Blob",writable:!1,enumerable:!1,configurable:!0});function bt(e,t,r){Error.call(this,e),this.message=e,this.type=t,r&&(this.code=this.errno=r.code),Error.captureStackTrace(this,this.constructor)}bt.prototype=Object.create(Error.prototype),bt.prototype.constructor=bt,bt.prototype.name="FetchError";let mp;try{mp=require("encoding").convert}catch{}const Ir=Symbol("Body internals"),kl=at.PassThrough;function ct(e){var t=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.size;let i=a===void 0?0:a;var n=r.timeout;let p=n===void 0?0:n;e==null?e=null:zl(e)?e=Buffer.from(e.toString()):Yi(e)||Buffer.isBuffer(e)||(Object.prototype.toString.call(e)==="[object ArrayBuffer]"?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof at||(e=Buffer.from(String(e)))),this[Ir]={body:e,disturbed:!1,error:null},this.size=i,this.timeout=p,e instanceof at&&e.on("error",function(s){const o=s.name==="AbortError"?s:new bt(`Invalid response body while trying to fetch ${t.url}: ${s.message}`,"system",s);t[Ir].error=o})}ct.prototype={get body(){return this[Ir].body},get bodyUsed(){return this[Ir].disturbed},arrayBuffer(){return pi.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return pi.call(this).then(function(t){return Object.assign(new si([],{type:e.toLowerCase()}),{[Cr]:t})})},json(){var e=this;return pi.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(r){return ct.Promise.reject(new bt(`invalid json response body at ${e.url} reason: ${r.message}`,"invalid-json"))}})},text(){return pi.call(this).then(function(e){return e.toString()})},buffer(){return pi.call(this)},textConverted(){var e=this;return pi.call(this).then(function(t){return Nm(t,e.headers)})}},Object.defineProperties(ct.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0}}),ct.mixIn=function(e){for(const t of Object.getOwnPropertyNames(ct.prototype))if(!(t in e)){const r=Object.getOwnPropertyDescriptor(ct.prototype,t);Object.defineProperty(e,t,r)}};function pi(){var e=this;if(this[Ir].disturbed)return ct.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[Ir].disturbed=!0,this[Ir].error)return ct.Promise.reject(this[Ir].error);let t=this.body;if(t===null)return ct.Promise.resolve(Buffer.alloc(0));if(Yi(t)&&(t=t.stream()),Buffer.isBuffer(t))return ct.Promise.resolve(t);if(!(t instanceof at))return ct.Promise.resolve(Buffer.alloc(0));let r=[],a=0,i=!1;return new ct.Promise(function(n,p){let s;e.timeout&&(s=setTimeout(function(){i=!0,p(new bt(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)),t.on("error",function(o){o.name==="AbortError"?(i=!0,p(o)):p(new bt(`Invalid response body while trying to fetch ${e.url}: ${o.message}`,"system",o))}),t.on("data",function(o){if(!(i||o===null)){if(e.size&&a+o.length>e.size){i=!0,p(new bt(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}a+=o.length,r.push(o)}}),t.on("end",function(){if(!i){clearTimeout(s);try{n(Buffer.concat(r,a))}catch(o){p(new bt(`Could not create Buffer from response body for ${e.url}: ${o.message}`,"system",o))}}})})}function Nm(e,t){if(typeof mp!="function")throw new Error("The package `encoding` must be installed to use the textConverted() function");const r=t.get("content-type");let a="utf-8",i,n;return r&&(i=/charset=([^;]*)/i.exec(r)),n=e.slice(0,1024).toString(),!i&&n&&(i=/<meta.+?charset=(['"])(.+?)\1/i.exec(n)),!i&&n&&(i=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(n),i||(i=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(n),i&&i.pop()),i&&(i=/charset=(.*)/i.exec(i.pop()))),!i&&n&&(i=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(n)),i&&(a=i.pop(),(a==="gb2312"||a==="gbk")&&(a="gb18030")),mp(e,"UTF-8",a).toString()}function zl(e){return typeof e!="object"||typeof e.append!="function"||typeof e.delete!="function"||typeof e.get!="function"||typeof e.getAll!="function"||typeof e.has!="function"||typeof e.set!="function"?!1:e.constructor.name==="URLSearchParams"||Object.prototype.toString.call(e)==="[object URLSearchParams]"||typeof e.sort=="function"}function Yi(e){return typeof e=="object"&&typeof e.arrayBuffer=="function"&&typeof e.type=="string"&&typeof e.stream=="function"&&typeof e.constructor=="function"&&typeof e.constructor.name=="string"&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function Hl(e){let t,r,a=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return a instanceof at&&typeof a.getBoundary!="function"&&(t=new kl,r=new kl,a.pipe(t),a.pipe(r),e[Ir].body=t,a=r),a}function ql(e){return e===null?null:typeof e=="string"?"text/plain;charset=UTF-8":zl(e)?"application/x-www-form-urlencoded;charset=UTF-8":Yi(e)?e.type||null:Buffer.isBuffer(e)||Object.prototype.toString.call(e)==="[object ArrayBuffer]"||ArrayBuffer.isView(e)?null:typeof e.getBoundary=="function"?`multipart/form-data;boundary=${e.getBoundary()}`:e instanceof at?null:"text/plain;charset=UTF-8"}function Kl(e){const t=e.body;return t===null?0:Yi(t)?t.size:Buffer.isBuffer(t)?t.length:t&&typeof t.getLengthSync=="function"&&(t._lengthRetrievers&&t._lengthRetrievers.length==0||t.hasKnownLength&&t.hasKnownLength())?t.getLengthSync():null}function Om(e,t){const r=t.body;r===null?e.end():Yi(r)?r.stream().pipe(e):Buffer.isBuffer(r)?(e.write(r),e.end()):r.pipe(e)}ct.Promise=global.Promise;const Gl=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/,vp=/[^\t\x20-\x7e\x80-\xff]/;function Ji(e){if(e=`${e}`,Gl.test(e)||e==="")throw new TypeError(`${e} is not a legal HTTP header name`)}function Wl(e){if(e=`${e}`,vp.test(e))throw new TypeError(`${e} is not a legal HTTP header value`)}function oi(e,t){t=t.toLowerCase();for(const r in e)if(r.toLowerCase()===t)return r}const Qe=Symbol("map");class Gt{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;if(this[Qe]=Object.create(null),t instanceof Gt){const r=t.raw(),a=Object.keys(r);for(const i of a)for(const n of r[i])this.append(i,n);return}if(t!=null)if(typeof t=="object"){const r=t[Symbol.iterator];if(r!=null){if(typeof r!="function")throw new TypeError("Header pairs must be iterable");const a=[];for(const i of t){if(typeof i!="object"||typeof i[Symbol.iterator]!="function")throw new TypeError("Each header pair must be iterable");a.push(Array.from(i))}for(const i of a){if(i.length!==2)throw new TypeError("Each header pair must be a name/value tuple");this.append(i[0],i[1])}}else for(const a of Object.keys(t)){const i=t[a];this.append(a,i)}}else throw new TypeError("Provided initializer must be an object")}get(t){t=`${t}`,Ji(t);const r=oi(this[Qe],t);return r===void 0?null:this[Qe][r].join(", ")}forEach(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,a=gp(this),i=0;for(;i<a.length;){var n=a[i];const p=n[0],s=n[1];t.call(r,s,p,this),a=gp(this),i++}}set(t,r){t=`${t}`,r=`${r}`,Ji(t),Wl(r);const a=oi(this[Qe],t);this[Qe][a!==void 0?a:t]=[r]}append(t,r){t=`${t}`,r=`${r}`,Ji(t),Wl(r);const a=oi(this[Qe],t);a!==void 0?this[Qe][a].push(r):this[Qe][t]=[r]}has(t){return t=`${t}`,Ji(t),oi(this[Qe],t)!==void 0}delete(t){t=`${t}`,Ji(t);const r=oi(this[Qe],t);r!==void 0&&delete this[Qe][r]}raw(){return this[Qe]}keys(){return wp(this,"key")}values(){return wp(this,"value")}[Symbol.iterator](){return wp(this,"key+value")}}Gt.prototype.entries=Gt.prototype[Symbol.iterator],Object.defineProperty(Gt.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Gt.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});function gp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key+value";return Object.keys(e[Qe]).sort().map(t==="key"?function(a){return a.toLowerCase()}:t==="value"?function(a){return e[Qe][a].join(", ")}:function(a){return[a.toLowerCase(),e[Qe][a].join(", ")]})}const yp=Symbol("internal");function wp(e,t){const r=Object.create(_p);return r[yp]={target:e,kind:t,index:0},r}const _p=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==_p)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[yp];const t=e.target,r=e.kind,a=e.index,i=gp(t,r),n=i.length;return a>=n?{value:void 0,done:!0}:(this[yp].index=a+1,{value:i[a],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(_p,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});function Am(e){const t=Object.assign({__proto__:null},e[Qe]),r=oi(e[Qe],"Host");return r!==void 0&&(t[r]=t[r][0]),t}function Cm(e){const t=new Gt;for(const r of Object.keys(e))if(!Gl.test(r))if(Array.isArray(e[r]))for(const a of e[r])vp.test(a)||(t[Qe][r]===void 0?t[Qe][r]=[a]:t[Qe][r].push(a));else vp.test(e[r])||(t[Qe][r]=[e[r]]);return t}const Qr=Symbol("Response internals"),Im=Us.STATUS_CODES;class tr{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ct.call(this,t,r);const a=r.status||200,i=new Gt(r.headers);if(t!=null&&!i.has("Content-Type")){const n=ql(t);n&&i.append("Content-Type",n)}this[Qr]={url:r.url,status:a,statusText:r.statusText||Im[a],headers:i,counter:r.counter}}get url(){return this[Qr].url||""}get status(){return this[Qr].status}get ok(){return this[Qr].status>=200&&this[Qr].status<300}get redirected(){return this[Qr].counter>0}get statusText(){return this[Qr].statusText}get headers(){return this[Qr].headers}clone(){return new tr(Hl(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}ct.mixIn(tr.prototype),Object.defineProperties(tr.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(tr.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const Rr=Symbol("Request internals"),Rm=Tr.URL||Qt.URL,Lm=Tr.parse,Fm=Tr.format;function bp(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)&&(e=new Rm(e).toString()),Lm(e)}const Pm="destroy"in at.Readable.prototype;function sn(e){return typeof e=="object"&&typeof e[Rr]=="object"}function Mm(e){const t=e&&typeof e=="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class ea{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a;sn(t)?a=bp(t.url):(t&&t.href?a=bp(t.href):a=bp(`${t}`),t={});let i=r.method||t.method||"GET";if(i=i.toUpperCase(),(r.body!=null||sn(t)&&t.body!==null)&&(i==="GET"||i==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let n=r.body!=null?r.body:sn(t)&&t.body!==null?Hl(t):null;ct.call(this,n,{timeout:r.timeout||t.timeout||0,size:r.size||t.size||0});const p=new Gt(r.headers||t.headers||{});if(n!=null&&!p.has("Content-Type")){const o=ql(n);o&&p.append("Content-Type",o)}let s=sn(t)?t.signal:null;if("signal"in r&&(s=r.signal),s!=null&&!Mm(s))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[Rr]={method:i,redirect:r.redirect||t.redirect||"follow",headers:p,parsedURL:a,signal:s},this.follow=r.follow!==void 0?r.follow:t.follow!==void 0?t.follow:20,this.compress=r.compress!==void 0?r.compress:t.compress!==void 0?t.compress:!0,this.counter=r.counter||t.counter||0,this.agent=r.agent||t.agent}get method(){return this[Rr].method}get url(){return Fm(this[Rr].parsedURL)}get headers(){return this[Rr].headers}get redirect(){return this[Rr].redirect}get signal(){return this[Rr].signal}clone(){return new ea(this)}}ct.mixIn(ea.prototype),Object.defineProperty(ea.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(ea.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}});function Um(e){const t=e[Rr].parsedURL,r=new Gt(e[Rr].headers);if(r.has("Accept")||r.set("Accept","*/*"),!t.protocol||!t.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(t.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof at.Readable&&!Pm)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let a=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)&&(a="0"),e.body!=null){const n=Kl(e);typeof n=="number"&&(a=String(n))}a&&r.set("Content-Length",a),r.has("User-Agent")||r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip,deflate");let i=e.agent;return typeof i=="function"&&(i=i(t)),!r.has("Connection")&&!i&&r.set("Connection","close"),Object.assign({},t,{method:e.method,headers:Am(r),agent:i})}function Xi(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}Xi.prototype=Object.create(Error.prototype),Xi.prototype.constructor=Xi,Xi.prototype.name="AbortError";const Ep=Tr.URL||Qt.URL,Zl=at.PassThrough,Bm=function(t,r){const a=new Ep(r).hostname,i=new Ep(t).hostname;return a===i||a[a.length-i.length-1]==="."&&a.endsWith(i)};function ta(e,t){if(!ta.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return ct.Promise=ta.Promise,new ta.Promise(function(r,a){const i=new ea(e,t),n=Um(i),p=(n.protocol==="https:",Us).request,s=i.signal;let o=null;const d=function(){let A=new Xi("The user aborted a request.");a(A),i.body&&i.body instanceof at.Readable&&i.body.destroy(A),!(!o||!o.body)&&o.body.emit("error",A)};if(s&&s.aborted){d();return}const l=function(){d(),v()},h=p(n);let g;s&&s.addEventListener("abort",l);function v(){h.abort(),s&&s.removeEventListener("abort",l),clearTimeout(g)}i.timeout&&h.once("socket",function(y){g=setTimeout(function(){a(new bt(`network timeout at: ${i.url}`,"request-timeout")),v()},i.timeout)}),h.on("error",function(y){a(new bt(`request to ${i.url} failed, reason: ${y.message}`,"system",y)),v()}),h.on("response",function(y){clearTimeout(g);const A=Cm(y.headers);if(ta.isRedirect(y.statusCode)){const S=A.get("Location");let x=null;try{x=S===null?null:new Ep(S,i.url).toString()}catch{if(i.redirect!=="manual"){a(new bt(`uri requested responds with an invalid redirect URL: ${S}`,"invalid-redirect")),v();return}}switch(i.redirect){case"error":a(new bt(`uri requested responds with a redirect, redirect mode is set to error: ${i.url}`,"no-redirect")),v();return;case"manual":if(x!==null)try{A.set("Location",x)}catch(u){a(u)}break;case"follow":if(x===null)break;if(i.counter>=i.follow){a(new bt(`maximum redirect reached at: ${i.url}`,"max-redirect")),v();return}const N={headers:new Gt(i.headers),follow:i.follow,counter:i.counter+1,agent:i.agent,compress:i.compress,method:i.method,body:i.body,signal:i.signal,timeout:i.timeout,size:i.size};if(!Bm(i.url,x))for(const u of["authorization","www-authenticate","cookie","cookie2"])N.headers.delete(u);if(y.statusCode!==303&&i.body&&Kl(i)===null){a(new bt("Cannot follow redirect with body being a readable stream","unsupported-redirect")),v();return}(y.statusCode===303||(y.statusCode===301||y.statusCode===302)&&i.method==="POST")&&(N.method="GET",N.body=void 0,N.headers.delete("content-length")),r(ta(new ea(x,N))),v();return}}y.once("end",function(){s&&s.removeEventListener("abort",l)});let E=y.pipe(new Zl);const D={url:i.url,status:y.statusCode,statusText:y.statusMessage,headers:A,size:i.size,timeout:i.timeout,counter:i.counter},C=A.get("Content-Encoding");if(!i.compress||i.method==="HEAD"||C===null||y.statusCode===204||y.statusCode===304){o=new tr(E,D),r(o);return}const B={flush:Oa.Z_SYNC_FLUSH,finishFlush:Oa.Z_SYNC_FLUSH};if(C=="gzip"||C=="x-gzip"){E=E.pipe(Oa.createGunzip(B)),o=new tr(E,D),r(o);return}if(C=="deflate"||C=="x-deflate"){y.pipe(new Zl).once("data",function(x){(x[0]&15)===8?E=E.pipe(Oa.createInflate()):E=E.pipe(Oa.createInflateRaw()),o=new tr(E,D),r(o)});return}if(C=="br"&&typeof Oa.createBrotliDecompress=="function"){E=E.pipe(Oa.createBrotliDecompress()),o=new tr(E,D),r(o);return}o=new tr(E,D),r(o)}),Om(h,i)})}ta.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308},ta.Promise=global.Promise;var $m=Object.freeze({__proto__:null,default:ta,Headers:Gt,Request:ea,Response:tr,FetchError:bt}),jm=Er($m);(function(e,t){const r=jm,a=r.default||r,i=function(n,p){return/^\/\//.test(n)&&(n="https:"+n),a.call(this,n,p)};i.ponyfill=!0,e.exports=t=i,t.fetch=i,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,t.default=i})(Qn,Qn.exports);var Yl=Qn.exports;function Sp(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e)}catch{return e}}function Qi(e){return typeof e=="string"?e:JSON.stringify(e)}const Jl={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"},Xl=10;class Vm{constructor(t){if(this.url=t,this.events=new It.EventEmitter,this.isAvailable=!1,this.registering=!1,!Xd(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);this.url=t}get connected(){return this.isAvailable}get connecting(){return this.registering}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async open(t=this.url){await this.register(t)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(t,r){this.isAvailable||await this.register();try{const a=Qi(t),n=await(await Yl(this.url,Object.assign(Object.assign({},Jl),{body:a}))).json();this.onPayload({data:n})}catch(a){this.onError(t.id,a)}}async register(t=this.url){if(!Xd(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);if(this.registering){const r=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=r||this.events.listenerCount("open")>=r)&&this.events.setMaxListeners(r+1),new Promise((a,i)=>{this.events.once("register_error",n=>{this.resetMaxListeners(),i(n)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return i(new Error("HTTP connection is missing or invalid"));a()})})}this.url=t,this.registering=!0;try{const r=Qi({id:1,jsonrpc:"2.0",method:"test",params:[]});await Yl(t,Object.assign(Object.assign({},Jl),{body:r})),this.onOpen()}catch(r){const a=this.parseError(r);throw this.events.emit("register_error",a),this.onClose(),a}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(t){if(typeof t.data>"u")return;const r=typeof t.data=="string"?Sp(t.data):t.data;this.events.emit("payload",r)}onError(t,r){const a=this.parseError(r),i=a.message||a.toString(),n=N1(t,i);this.events.emit("payload",n)}parseError(t,r=this.url){return qd(t,r,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>Xl&&this.events.setMaxListeners(Xl)}}var xp={},pn={},De={},Ql={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,o){var d=s>>>16&65535,l=s&65535,h=o>>>16&65535,g=o&65535;return l*g+(d*g+l*h<<16>>>0)|0}e.mul=Math.imul||t;function r(s,o){return s+o|0}e.add=r;function a(s,o){return s-o|0}e.sub=a;function i(s,o){return s<<o|s>>>32-o}e.rotl=i;function n(s,o){return s<<32-o|s>>>o}e.rotr=n;function p(s){return typeof s=="number"&&isFinite(s)&&Math.floor(s)===s}e.isInteger=Number.isInteger||p,e.MAX_SAFE_INTEGER=9007199254740991,e.isSafeInteger=function(s){return e.isInteger(s)&&s>=-e.MAX_SAFE_INTEGER&&s<=e.MAX_SAFE_INTEGER}})(Ql),Object.defineProperty(De,"__esModule",{value:!0});var e6=Ql;function km(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16}De.readInt16BE=km;function zm(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])>>>0}De.readUint16BE=zm;function Hm(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])<<16>>16}De.readInt16LE=Hm;function qm(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])>>>0}De.readUint16LE=qm;function t6(e,t,r){return t===void 0&&(t=new Uint8Array(2)),r===void 0&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}De.writeUint16BE=t6,De.writeInt16BE=t6;function r6(e,t,r){return t===void 0&&(t=new Uint8Array(2)),r===void 0&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}De.writeUint16LE=r6,De.writeInt16LE=r6;function Dp(e,t){return t===void 0&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}De.readInt32BE=Dp;function Tp(e,t){return t===void 0&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}De.readUint32BE=Tp;function Np(e,t){return t===void 0&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}De.readInt32LE=Np;function Op(e,t){return t===void 0&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}De.readUint32LE=Op;function on(e,t,r){return t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}De.writeUint32BE=on,De.writeInt32BE=on;function dn(e,t,r){return t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}De.writeUint32LE=dn,De.writeInt32LE=dn;function Km(e,t){t===void 0&&(t=0);var r=Dp(e,t),a=Dp(e,t+4);return r*4294967296+a-(a>>31)*4294967296}De.readInt64BE=Km;function Gm(e,t){t===void 0&&(t=0);var r=Tp(e,t),a=Tp(e,t+4);return r*4294967296+a}De.readUint64BE=Gm;function Wm(e,t){t===void 0&&(t=0);var r=Np(e,t),a=Np(e,t+4);return a*4294967296+r-(r>>31)*4294967296}De.readInt64LE=Wm;function Zm(e,t){t===void 0&&(t=0);var r=Op(e,t),a=Op(e,t+4);return a*4294967296+r}De.readUint64LE=Zm;function a6(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),on(e/4294967296>>>0,t,r),on(e>>>0,t,r+4),t}De.writeUint64BE=a6,De.writeInt64BE=a6;function i6(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),dn(e>>>0,t,r),dn(e/4294967296>>>0,t,r+4),t}De.writeUint64LE=i6,De.writeInt64LE=i6;function Ym(e,t,r){if(r===void 0&&(r=0),e%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var a=0,i=1,n=e/8+r-1;n>=r;n--)a+=t[n]*i,i*=256;return a}De.readUintBE=Ym;function Jm(e,t,r){if(r===void 0&&(r=0),e%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var a=0,i=1,n=r;n<r+e/8;n++)a+=t[n]*i,i*=256;return a}De.readUintLE=Jm;function Xm(e,t,r,a){if(r===void 0&&(r=new Uint8Array(e/8)),a===void 0&&(a=0),e%8!==0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!e6.isSafeInteger(t))throw new Error("writeUintBE value must be an integer");for(var i=1,n=e/8+a-1;n>=a;n--)r[n]=t/i&255,i*=256;return r}De.writeUintBE=Xm;function Qm(e,t,r,a){if(r===void 0&&(r=new Uint8Array(e/8)),a===void 0&&(a=0),e%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!e6.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var i=1,n=a;n<a+e/8;n++)r[n]=t/i&255,i*=256;return r}De.writeUintLE=Qm;function e7(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t)}De.readFloat32BE=e7;function t7(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t,!0)}De.readFloat32LE=t7;function r7(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t)}De.readFloat64BE=r7;function a7(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t,!0)}De.readFloat64LE=a7;function i7(e,t,r){t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0);var a=new DataView(t.buffer,t.byteOffset,t.byteLength);return a.setFloat32(r,e),t}De.writeFloat32BE=i7;function n7(e,t,r){t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0);var a=new DataView(t.buffer,t.byteOffset,t.byteLength);return a.setFloat32(r,e,!0),t}De.writeFloat32LE=n7;function s7(e,t,r){t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0);var a=new DataView(t.buffer,t.byteOffset,t.byteLength);return a.setFloat64(r,e),t}De.writeFloat64BE=s7;function p7(e,t,r){t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0);var a=new DataView(t.buffer,t.byteOffset,t.byteLength);return a.setFloat64(r,e,!0),t}De.writeFloat64LE=p7;var $t={};Object.defineProperty($t,"__esModule",{value:!0});function o7(e){for(var t=0;t<e.length;t++)e[t]=0;return e}$t.wipe=o7,Object.defineProperty(pn,"__esModule",{value:!0});var Ot=De,Ap=$t,d7=20;function l7(e,t,r){for(var a=1634760805,i=857760878,n=2036477234,p=1797285236,s=r[3]<<24|r[2]<<16|r[1]<<8|r[0],o=r[7]<<24|r[6]<<16|r[5]<<8|r[4],d=r[11]<<24|r[10]<<16|r[9]<<8|r[8],l=r[15]<<24|r[14]<<16|r[13]<<8|r[12],h=r[19]<<24|r[18]<<16|r[17]<<8|r[16],g=r[23]<<24|r[22]<<16|r[21]<<8|r[20],v=r[27]<<24|r[26]<<16|r[25]<<8|r[24],y=r[31]<<24|r[30]<<16|r[29]<<8|r[28],A=t[3]<<24|t[2]<<16|t[1]<<8|t[0],E=t[7]<<24|t[6]<<16|t[5]<<8|t[4],D=t[11]<<24|t[10]<<16|t[9]<<8|t[8],C=t[15]<<24|t[14]<<16|t[13]<<8|t[12],B=a,S=i,x=n,N=p,u=s,T=o,Z=d,J=l,ne=h,pe=g,le=v,z=y,G=A,de=E,ce=D,te=C,ie=0;ie<d7;ie+=2)B=B+u|0,G^=B,G=G>>>32-16|G<<16,ne=ne+G|0,u^=ne,u=u>>>32-12|u<<12,S=S+T|0,de^=S,de=de>>>32-16|de<<16,pe=pe+de|0,T^=pe,T=T>>>32-12|T<<12,x=x+Z|0,ce^=x,ce=ce>>>32-16|ce<<16,le=le+ce|0,Z^=le,Z=Z>>>32-12|Z<<12,N=N+J|0,te^=N,te=te>>>32-16|te<<16,z=z+te|0,J^=z,J=J>>>32-12|J<<12,x=x+Z|0,ce^=x,ce=ce>>>32-8|ce<<8,le=le+ce|0,Z^=le,Z=Z>>>32-7|Z<<7,N=N+J|0,te^=N,te=te>>>32-8|te<<8,z=z+te|0,J^=z,J=J>>>32-7|J<<7,S=S+T|0,de^=S,de=de>>>32-8|de<<8,pe=pe+de|0,T^=pe,T=T>>>32-7|T<<7,B=B+u|0,G^=B,G=G>>>32-8|G<<8,ne=ne+G|0,u^=ne,u=u>>>32-7|u<<7,B=B+T|0,te^=B,te=te>>>32-16|te<<16,le=le+te|0,T^=le,T=T>>>32-12|T<<12,S=S+Z|0,G^=S,G=G>>>32-16|G<<16,z=z+G|0,Z^=z,Z=Z>>>32-12|Z<<12,x=x+J|0,de^=x,de=de>>>32-16|de<<16,ne=ne+de|0,J^=ne,J=J>>>32-12|J<<12,N=N+u|0,ce^=N,ce=ce>>>32-16|ce<<16,pe=pe+ce|0,u^=pe,u=u>>>32-12|u<<12,x=x+J|0,de^=x,de=de>>>32-8|de<<8,ne=ne+de|0,J^=ne,J=J>>>32-7|J<<7,N=N+u|0,ce^=N,ce=ce>>>32-8|ce<<8,pe=pe+ce|0,u^=pe,u=u>>>32-7|u<<7,S=S+Z|0,G^=S,G=G>>>32-8|G<<8,z=z+G|0,Z^=z,Z=Z>>>32-7|Z<<7,B=B+T|0,te^=B,te=te>>>32-8|te<<8,le=le+te|0,T^=le,T=T>>>32-7|T<<7;Ot.writeUint32LE(B+a|0,e,0),Ot.writeUint32LE(S+i|0,e,4),Ot.writeUint32LE(x+n|0,e,8),Ot.writeUint32LE(N+p|0,e,12),Ot.writeUint32LE(u+s|0,e,16),Ot.writeUint32LE(T+o|0,e,20),Ot.writeUint32LE(Z+d|0,e,24),Ot.writeUint32LE(J+l|0,e,28),Ot.writeUint32LE(ne+h|0,e,32),Ot.writeUint32LE(pe+g|0,e,36),Ot.writeUint32LE(le+v|0,e,40),Ot.writeUint32LE(z+y|0,e,44),Ot.writeUint32LE(G+A|0,e,48),Ot.writeUint32LE(de+E|0,e,52),Ot.writeUint32LE(ce+D|0,e,56),Ot.writeUint32LE(te+C|0,e,60)}function n6(e,t,r,a,i){if(i===void 0&&(i=0),e.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(a.length<r.length)throw new Error("ChaCha: destination is shorter than source");var n,p;if(i===0){if(t.length!==8&&t.length!==12)throw new Error("ChaCha nonce must be 8 or 12 bytes");n=new Uint8Array(16),p=n.length-t.length,n.set(t,p)}else{if(t.length!==16)throw new Error("ChaCha nonce with counter must be 16 bytes");n=t,p=i}for(var s=new Uint8Array(64),o=0;o<r.length;o+=64){l7(s,n,e);for(var d=o;d<o+64&&d<r.length;d++)a[d]=r[d]^s[d-o];c7(n,0,p)}return Ap.wipe(s),i===0&&Ap.wipe(n),a}pn.streamXOR=n6;function u7(e,t,r,a){return a===void 0&&(a=0),Ap.wipe(r),n6(e,t,r,r,a)}pn.stream=u7;function c7(e,t,r){for(var a=1;r--;)a=a+(e[t]&255)|0,e[t]=a&255,a>>>=8,t++;if(a>0)throw new Error("ChaCha: counter overflow")}var s6={},ra={};Object.defineProperty(ra,"__esModule",{value:!0});function f7(e,t,r){return~(e-1)&t|e-1&r}ra.select=f7;function h7(e,t){return(e|0)-(t|0)-1>>>31&1}ra.lessOrEqual=h7;function p6(e,t){if(e.length!==t.length)return 0;for(var r=0,a=0;a<e.length;a++)r|=e[a]^t[a];return 1&r-1>>>8}ra.compare=p6;function m7(e,t){return e.length===0||t.length===0?!1:p6(e,t)!==0}ra.equal=m7,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ra,r=$t;e.DIGEST_LENGTH=16;var a=function(){function p(s){this.digestLength=e.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var o=s[0]|s[1]<<8;this._r[0]=o&8191;var d=s[2]|s[3]<<8;this._r[1]=(o>>>13|d<<3)&8191;var l=s[4]|s[5]<<8;this._r[2]=(d>>>10|l<<6)&7939;var h=s[6]|s[7]<<8;this._r[3]=(l>>>7|h<<9)&8191;var g=s[8]|s[9]<<8;this._r[4]=(h>>>4|g<<12)&255,this._r[5]=g>>>1&8190;var v=s[10]|s[11]<<8;this._r[6]=(g>>>14|v<<2)&8191;var y=s[12]|s[13]<<8;this._r[7]=(v>>>11|y<<5)&8065;var A=s[14]|s[15]<<8;this._r[8]=(y>>>8|A<<8)&8191,this._r[9]=A>>>5&127,this._pad[0]=s[16]|s[17]<<8,this._pad[1]=s[18]|s[19]<<8,this._pad[2]=s[20]|s[21]<<8,this._pad[3]=s[22]|s[23]<<8,this._pad[4]=s[24]|s[25]<<8,this._pad[5]=s[26]|s[27]<<8,this._pad[6]=s[28]|s[29]<<8,this._pad[7]=s[30]|s[31]<<8}return p.prototype._blocks=function(s,o,d){for(var l=this._fin?0:2048,h=this._h[0],g=this._h[1],v=this._h[2],y=this._h[3],A=this._h[4],E=this._h[5],D=this._h[6],C=this._h[7],B=this._h[8],S=this._h[9],x=this._r[0],N=this._r[1],u=this._r[2],T=this._r[3],Z=this._r[4],J=this._r[5],ne=this._r[6],pe=this._r[7],le=this._r[8],z=this._r[9];d>=16;){var G=s[o+0]|s[o+1]<<8;h+=G&8191;var de=s[o+2]|s[o+3]<<8;g+=(G>>>13|de<<3)&8191;var ce=s[o+4]|s[o+5]<<8;v+=(de>>>10|ce<<6)&8191;var te=s[o+6]|s[o+7]<<8;y+=(ce>>>7|te<<9)&8191;var ie=s[o+8]|s[o+9]<<8;A+=(te>>>4|ie<<12)&8191,E+=ie>>>1&8191;var W=s[o+10]|s[o+11]<<8;D+=(ie>>>14|W<<2)&8191;var Y=s[o+12]|s[o+13]<<8;C+=(W>>>11|Y<<5)&8191;var $=s[o+14]|s[o+15]<<8;B+=(Y>>>8|$<<8)&8191,S+=$>>>5|l;var P=0,H=P;H+=h*x,H+=g*(5*z),H+=v*(5*le),H+=y*(5*pe),H+=A*(5*ne),P=H>>>13,H&=8191,H+=E*(5*J),H+=D*(5*Z),H+=C*(5*T),H+=B*(5*u),H+=S*(5*N),P+=H>>>13,H&=8191;var re=P;re+=h*N,re+=g*x,re+=v*(5*z),re+=y*(5*le),re+=A*(5*pe),P=re>>>13,re&=8191,re+=E*(5*ne),re+=D*(5*J),re+=C*(5*Z),re+=B*(5*T),re+=S*(5*u),P+=re>>>13,re&=8191;var fe=P;fe+=h*u,fe+=g*N,fe+=v*x,fe+=y*(5*z),fe+=A*(5*le),P=fe>>>13,fe&=8191,fe+=E*(5*pe),fe+=D*(5*ne),fe+=C*(5*J),fe+=B*(5*Z),fe+=S*(5*T),P+=fe>>>13,fe&=8191;var V=P;V+=h*T,V+=g*u,V+=v*N,V+=y*x,V+=A*(5*z),P=V>>>13,V&=8191,V+=E*(5*le),V+=D*(5*pe),V+=C*(5*ne),V+=B*(5*J),V+=S*(5*Z),P+=V>>>13,V&=8191;var j=P;j+=h*Z,j+=g*T,j+=v*u,j+=y*N,j+=A*x,P=j>>>13,j&=8191,j+=E*(5*z),j+=D*(5*le),j+=C*(5*pe),j+=B*(5*ne),j+=S*(5*J),P+=j>>>13,j&=8191;var U=P;U+=h*J,U+=g*Z,U+=v*T,U+=y*u,U+=A*N,P=U>>>13,U&=8191,U+=E*x,U+=D*(5*z),U+=C*(5*le),U+=B*(5*pe),U+=S*(5*ne),P+=U>>>13,U&=8191;var f=P;f+=h*ne,f+=g*J,f+=v*Z,f+=y*T,f+=A*u,P=f>>>13,f&=8191,f+=E*N,f+=D*x,f+=C*(5*z),f+=B*(5*le),f+=S*(5*pe),P+=f>>>13,f&=8191;var F=P;F+=h*pe,F+=g*ne,F+=v*J,F+=y*Z,F+=A*T,P=F>>>13,F&=8191,F+=E*u,F+=D*N,F+=C*x,F+=B*(5*z),F+=S*(5*le),P+=F>>>13,F&=8191;var se=P;se+=h*le,se+=g*pe,se+=v*ne,se+=y*J,se+=A*Z,P=se>>>13,se&=8191,se+=E*T,se+=D*u,se+=C*N,se+=B*x,se+=S*(5*z),P+=se>>>13,se&=8191;var O=P;O+=h*z,O+=g*le,O+=v*pe,O+=y*ne,O+=A*J,P=O>>>13,O&=8191,O+=E*Z,O+=D*T,O+=C*u,O+=B*N,O+=S*x,P+=O>>>13,O&=8191,P=(P<<2)+P|0,P=P+H|0,H=P&8191,P=P>>>13,re+=P,h=H,g=re,v=fe,y=V,A=j,E=U,D=f,C=F,B=se,S=O,o+=16,d-=16}this._h[0]=h,this._h[1]=g,this._h[2]=v,this._h[3]=y,this._h[4]=A,this._h[5]=E,this._h[6]=D,this._h[7]=C,this._h[8]=B,this._h[9]=S},p.prototype.finish=function(s,o){o===void 0&&(o=0);var d=new Uint16Array(10),l,h,g,v;if(this._leftover){for(v=this._leftover,this._buffer[v++]=1;v<16;v++)this._buffer[v]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(l=this._h[1]>>>13,this._h[1]&=8191,v=2;v<10;v++)this._h[v]+=l,l=this._h[v]>>>13,this._h[v]&=8191;for(this._h[0]+=l*5,l=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=l,l=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=l,d[0]=this._h[0]+5,l=d[0]>>>13,d[0]&=8191,v=1;v<10;v++)d[v]=this._h[v]+l,l=d[v]>>>13,d[v]&=8191;for(d[9]-=1<<13,h=(l^1)-1,v=0;v<10;v++)d[v]&=h;for(h=~h,v=0;v<10;v++)this._h[v]=this._h[v]&h|d[v];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,g=this._h[0]+this._pad[0],this._h[0]=g&65535,v=1;v<8;v++)g=(this._h[v]+this._pad[v]|0)+(g>>>16)|0,this._h[v]=g&65535;return s[o+0]=this._h[0]>>>0,s[o+1]=this._h[0]>>>8,s[o+2]=this._h[1]>>>0,s[o+3]=this._h[1]>>>8,s[o+4]=this._h[2]>>>0,s[o+5]=this._h[2]>>>8,s[o+6]=this._h[3]>>>0,s[o+7]=this._h[3]>>>8,s[o+8]=this._h[4]>>>0,s[o+9]=this._h[4]>>>8,s[o+10]=this._h[5]>>>0,s[o+11]=this._h[5]>>>8,s[o+12]=this._h[6]>>>0,s[o+13]=this._h[6]>>>8,s[o+14]=this._h[7]>>>0,s[o+15]=this._h[7]>>>8,this._finished=!0,this},p.prototype.update=function(s){var o=0,d=s.length,l;if(this._leftover){l=16-this._leftover,l>d&&(l=d);for(var h=0;h<l;h++)this._buffer[this._leftover+h]=s[o+h];if(d-=l,o+=l,this._leftover+=l,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(d>=16&&(l=d-d%16,this._blocks(s,o,l),o+=l,d-=l),d){for(var h=0;h<d;h++)this._buffer[this._leftover+h]=s[o+h];this._leftover+=d}return this},p.prototype.digest=function(){if(this._finished)throw new Error("Poly1305 was finished");var s=new Uint8Array(16);return this.finish(s),s},p.prototype.clean=function(){return r.wipe(this._buffer),r.wipe(this._r),r.wipe(this._h),r.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},p}();e.Poly1305=a;function i(p,s){var o=new a(p);o.update(s);var d=o.digest();return o.clean(),d}e.oneTimeAuth=i;function n(p,s){return p.length!==e.DIGEST_LENGTH||s.length!==e.DIGEST_LENGTH?!1:t.equal(p,s)}e.equal=n}(s6),function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=pn,r=s6,a=$t,i=De,n=ra;e.KEY_LENGTH=32,e.NONCE_LENGTH=12,e.TAG_LENGTH=16;var p=new Uint8Array(16),s=function(){function o(d){if(this.nonceLength=e.NONCE_LENGTH,this.tagLength=e.TAG_LENGTH,d.length!==e.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(d)}return o.prototype.seal=function(d,l,h,g){if(d.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var v=new Uint8Array(16);v.set(d,v.length-d.length);var y=new Uint8Array(32);t.stream(this._key,v,y,4);var A=l.length+this.tagLength,E;if(g){if(g.length!==A)throw new Error("ChaCha20Poly1305: incorrect destination length");E=g}else E=new Uint8Array(A);return t.streamXOR(this._key,v,l,E,4),this._authenticate(E.subarray(E.length-this.tagLength,E.length),y,E.subarray(0,E.length-this.tagLength),h),a.wipe(v),E},o.prototype.open=function(d,l,h,g){if(d.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(l.length<this.tagLength)return null;var v=new Uint8Array(16);v.set(d,v.length-d.length);var y=new Uint8Array(32);t.stream(this._key,v,y,4);var A=new Uint8Array(this.tagLength);if(this._authenticate(A,y,l.subarray(0,l.length-this.tagLength),h),!n.equal(A,l.subarray(l.length-this.tagLength,l.length)))return null;var E=l.length-this.tagLength,D;if(g){if(g.length!==E)throw new Error("ChaCha20Poly1305: incorrect destination length");D=g}else D=new Uint8Array(E);return t.streamXOR(this._key,v,l.subarray(0,l.length-this.tagLength),D,4),a.wipe(v),D},o.prototype.clean=function(){return a.wipe(this._key),this},o.prototype._authenticate=function(d,l,h,g){var v=new r.Poly1305(l);g&&(v.update(g),g.length%16>0&&v.update(p.subarray(g.length%16))),v.update(h),h.length%16>0&&v.update(p.subarray(h.length%16));var y=new Uint8Array(8);g&&i.writeUint64LE(g.length,y),v.update(y),i.writeUint64LE(h.length,y),v.update(y);for(var A=v.digest(),E=0;E<A.length;E++)d[E]=A[E];v.clean(),a.wipe(A),a.wipe(y)},o}();e.ChaCha20Poly1305=s}(xp);var o6={},e1={},Cp={};Object.defineProperty(Cp,"__esModule",{value:!0});function v7(e){return typeof e.saveState<"u"&&typeof e.restoreState<"u"&&typeof e.cleanSavedState<"u"}Cp.isSerializableHash=v7,Object.defineProperty(e1,"__esModule",{value:!0});var fr=Cp,g7=ra,y7=$t,d6=function(){function e(t,r){this._finished=!1,this._inner=new t,this._outer=new t,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var a=new Uint8Array(this.blockSize);r.length>this.blockSize?this._inner.update(r).finish(a).clean():a.set(r);for(var i=0;i<a.length;i++)a[i]^=54;this._inner.update(a);for(var i=0;i<a.length;i++)a[i]^=106;this._outer.update(a),fr.isSerializableHash(this._inner)&&fr.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),y7.wipe(a)}return e.prototype.reset=function(){if(!fr.isSerializableHash(this._inner)||!fr.isSerializableHash(this._outer))throw new Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.clean=function(){fr.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),fr.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},e.prototype.update=function(t){return this._inner.update(t),this},e.prototype.finish=function(t){return this._finished?(this._outer.finish(t),this):(this._inner.finish(t),this._outer.update(t.subarray(0,this.digestLength)).finish(t),this._finished=!0,this)},e.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype.saveState=function(){if(!fr.isSerializableHash(this._inner))throw new Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},e.prototype.restoreState=function(t){if(!fr.isSerializableHash(this._inner)||!fr.isSerializableHash(this._outer))throw new Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(t),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.cleanSavedState=function(t){if(!fr.isSerializableHash(this._inner))throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(t)},e}();e1.HMAC=d6;function w7(e,t,r){var a=new d6(e,t);a.update(r);var i=a.digest();return a.clean(),i}e1.hmac=w7,e1.equal=g7.equal,Object.defineProperty(o6,"__esModule",{value:!0});var l6=e1,u6=$t,_7=function(){function e(t,r,a,i){a===void 0&&(a=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=t,this._info=i;var n=l6.hmac(this._hash,a,r);this._hmac=new l6.HMAC(t,n),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var t=this._counter[0];if(t===0)throw new Error("hkdf: cannot expand more");this._hmac.reset(),t>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(t){for(var r=new Uint8Array(t),a=0;a<r.length;a++)this._bufpos===this._buffer.length&&this._fillBuffer(),r[a]=this._buffer[this._bufpos++];return r},e.prototype.clean=function(){this._hmac.clean(),u6.wipe(this._buffer),u6.wipe(this._counter),this._bufpos=0},e}(),b7=o6.HKDF=_7,di={},Ip={},Rp={};Object.defineProperty(Rp,"__esModule",{value:!0});var c6=65536,E7=function(){function e(){this.isAvailable=!1,this.isInstantiated=!1;var t=typeof self<"u"?self.crypto||self.msCrypto:null;t&&t.getRandomValues&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}return e.prototype.randomBytes=function(t){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");for(var r=new Uint8Array(t),a=0;a<r.length;a+=c6)this._crypto.getRandomValues(r.subarray(a,a+Math.min(r.length-a,c6)));return r},e}();Rp.BrowserRandomSource=E7;function Lp(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Fp={},Pp={},S7=Object.freeze({__proto__:null,default:Pp}),t1=Er(S7);Object.defineProperty(Fp,"__esModule",{value:!0});var x7=$t,D7=function(){function e(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof Lp<"u"){var t=t1;t&&t.randomBytes&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}}return e.prototype.randomBytes=function(t){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");var r=this._crypto.randomBytes(t);if(r.length!==t)throw new Error("NodeRandomSource: got fewer bytes than requested");for(var a=new Uint8Array(t),i=0;i<a.length;i++)a[i]=r[i];return x7.wipe(r),a},e}();Fp.NodeRandomSource=D7,Object.defineProperty(Ip,"__esModule",{value:!0});var T7=Rp,N7=Fp,O7=function(){function e(){if(this.isAvailable=!1,this.name="",this._source=new T7.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new N7.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}return e.prototype.randomBytes=function(t){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(t)},e}();Ip.SystemRandomSource=O7,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Ip,r=De,a=$t;e.defaultRandomSource=new t.SystemRandomSource;function i(d,l){return l===void 0&&(l=e.defaultRandomSource),l.randomBytes(d)}e.randomBytes=i;function n(d){d===void 0&&(d=e.defaultRandomSource);var l=i(4,d),h=r.readUint32LE(l);return a.wipe(l),h}e.randomUint32=n;var p="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function s(d,l,h){if(l===void 0&&(l=p),h===void 0&&(h=e.defaultRandomSource),l.length<2)throw new Error("randomString charset is too short");if(l.length>256)throw new Error("randomString charset is too long");for(var g="",v=l.length,y=256-256%v;d>0;){for(var A=i(Math.ceil(d*256/y),h),E=0;E<A.length&&d>0;E++){var D=A[E];D<y&&(g+=l.charAt(D%v),d--)}a.wipe(A)}return g}e.randomString=s;function o(d,l,h){l===void 0&&(l=p),h===void 0&&(h=e.defaultRandomSource);var g=Math.ceil(d/(Math.log(l.length)/Math.LN2));return s(g,l,h)}e.randomStringForEntropy=o}(di);var ln={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=De,r=$t;e.DIGEST_LENGTH=32,e.BLOCK_SIZE=64;var a=function(){function s(){this.digestLength=e.DIGEST_LENGTH,this.blockSize=e.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return s.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},s.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},s.prototype.clean=function(){r.wipe(this._buffer),r.wipe(this._temp),this.reset()},s.prototype.update=function(o,d){if(d===void 0&&(d=o.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var l=0;if(this._bytesHashed+=d,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&d>0;)this._buffer[this._bufferLength++]=o[l++],d--;this._bufferLength===this.blockSize&&(n(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(d>=this.blockSize&&(l=n(this._temp,this._state,o,l,d),d%=this.blockSize);d>0;)this._buffer[this._bufferLength++]=o[l++],d--;return this},s.prototype.finish=function(o){if(!this._finished){var d=this._bytesHashed,l=this._bufferLength,h=d/536870912|0,g=d<<3,v=d%64<56?64:128;this._buffer[l]=128;for(var y=l+1;y<v-8;y++)this._buffer[y]=0;t.writeUint32BE(h,this._buffer,v-8),t.writeUint32BE(g,this._buffer,v-4),n(this._temp,this._state,this._buffer,0,v),this._finished=!0}for(var y=0;y<this.digestLength/4;y++)t.writeUint32BE(this._state[y],o,y*4);return this},s.prototype.digest=function(){var o=new Uint8Array(this.digestLength);return this.finish(o),o},s.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},s.prototype.restoreState=function(o){return this._state.set(o.state),this._bufferLength=o.bufferLength,o.buffer&&this._buffer.set(o.buffer),this._bytesHashed=o.bytesHashed,this._finished=!1,this},s.prototype.cleanSavedState=function(o){r.wipe(o.state),o.buffer&&r.wipe(o.buffer),o.bufferLength=0,o.bytesHashed=0},s}();e.SHA256=a;var i=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function n(s,o,d,l,h){for(;h>=64;){for(var g=o[0],v=o[1],y=o[2],A=o[3],E=o[4],D=o[5],C=o[6],B=o[7],S=0;S<16;S++){var x=l+S*4;s[S]=t.readUint32BE(d,x)}for(var S=16;S<64;S++){var N=s[S-2],u=(N>>>17|N<<32-17)^(N>>>19|N<<32-19)^N>>>10;N=s[S-15];var T=(N>>>7|N<<32-7)^(N>>>18|N<<32-18)^N>>>3;s[S]=(u+s[S-7]|0)+(T+s[S-16]|0)}for(var S=0;S<64;S++){var u=(((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&D^~E&C)|0)+(B+(i[S]+s[S]|0)|0)|0,T=((g>>>2|g<<32-2)^(g>>>13|g<<32-13)^(g>>>22|g<<32-22))+(g&v^g&y^v&y)|0;B=C,C=D,D=E,E=A+u|0,A=y,y=v,v=g,g=u+T|0}o[0]+=g,o[1]+=v,o[2]+=y,o[3]+=A,o[4]+=E,o[5]+=D,o[6]+=C,o[7]+=B,l+=64,h-=64}return l}function p(s){var o=new a;o.update(s);var d=o.digest();return o.clean(),d}e.hash=p})(ln);var Mp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=di,r=$t;e.PUBLIC_KEY_LENGTH=32,e.SECRET_KEY_LENGTH=32,e.SHARED_KEY_LENGTH=32;function a(S){var x=new Float64Array(16);if(S)for(var N=0;N<S.length;N++)x[N]=S[N];return x}var i=new Uint8Array(32);i[0]=9;var n=a([56129,1]);function p(S){for(var x=1,N=0;N<16;N++){var u=S[N]+x+65535;x=Math.floor(u/65536),S[N]=u-x*65536}S[0]+=x-1+37*(x-1)}function s(S,x,N){for(var u=~(N-1),T=0;T<16;T++){var Z=u&(S[T]^x[T]);S[T]^=Z,x[T]^=Z}}function o(S,x){for(var N=a(),u=a(),T=0;T<16;T++)u[T]=x[T];p(u),p(u),p(u);for(var Z=0;Z<2;Z++){N[0]=u[0]-65517;for(var T=1;T<15;T++)N[T]=u[T]-65535-(N[T-1]>>16&1),N[T-1]&=65535;N[15]=u[15]-32767-(N[14]>>16&1);var J=N[15]>>16&1;N[14]&=65535,s(u,N,1-J)}for(var T=0;T<16;T++)S[2*T]=u[T]&255,S[2*T+1]=u[T]>>8}function d(S,x){for(var N=0;N<16;N++)S[N]=x[2*N]+(x[2*N+1]<<8);S[15]&=32767}function l(S,x,N){for(var u=0;u<16;u++)S[u]=x[u]+N[u]}function h(S,x,N){for(var u=0;u<16;u++)S[u]=x[u]-N[u]}function g(S,x,N){var u,T,Z=0,J=0,ne=0,pe=0,le=0,z=0,G=0,de=0,ce=0,te=0,ie=0,W=0,Y=0,$=0,P=0,H=0,re=0,fe=0,V=0,j=0,U=0,f=0,F=0,se=0,O=0,R=0,Q=0,w=0,c=0,m=0,_=0,k=N[0],X=N[1],ae=N[2],me=N[3],ge=N[4],b=N[5],I=N[6],M=N[7],K=N[8],ee=N[9],oe=N[10],he=N[11],we=N[12],xe=N[13],Ne=N[14],Se=N[15];u=x[0],Z+=u*k,J+=u*X,ne+=u*ae,pe+=u*me,le+=u*ge,z+=u*b,G+=u*I,de+=u*M,ce+=u*K,te+=u*ee,ie+=u*oe,W+=u*he,Y+=u*we,$+=u*xe,P+=u*Ne,H+=u*Se,u=x[1],J+=u*k,ne+=u*X,pe+=u*ae,le+=u*me,z+=u*ge,G+=u*b,de+=u*I,ce+=u*M,te+=u*K,ie+=u*ee,W+=u*oe,Y+=u*he,$+=u*we,P+=u*xe,H+=u*Ne,re+=u*Se,u=x[2],ne+=u*k,pe+=u*X,le+=u*ae,z+=u*me,G+=u*ge,de+=u*b,ce+=u*I,te+=u*M,ie+=u*K,W+=u*ee,Y+=u*oe,$+=u*he,P+=u*we,H+=u*xe,re+=u*Ne,fe+=u*Se,u=x[3],pe+=u*k,le+=u*X,z+=u*ae,G+=u*me,de+=u*ge,ce+=u*b,te+=u*I,ie+=u*M,W+=u*K,Y+=u*ee,$+=u*oe,P+=u*he,H+=u*we,re+=u*xe,fe+=u*Ne,V+=u*Se,u=x[4],le+=u*k,z+=u*X,G+=u*ae,de+=u*me,ce+=u*ge,te+=u*b,ie+=u*I,W+=u*M,Y+=u*K,$+=u*ee,P+=u*oe,H+=u*he,re+=u*we,fe+=u*xe,V+=u*Ne,j+=u*Se,u=x[5],z+=u*k,G+=u*X,de+=u*ae,ce+=u*me,te+=u*ge,ie+=u*b,W+=u*I,Y+=u*M,$+=u*K,P+=u*ee,H+=u*oe,re+=u*he,fe+=u*we,V+=u*xe,j+=u*Ne,U+=u*Se,u=x[6],G+=u*k,de+=u*X,ce+=u*ae,te+=u*me,ie+=u*ge,W+=u*b,Y+=u*I,$+=u*M,P+=u*K,H+=u*ee,re+=u*oe,fe+=u*he,V+=u*we,j+=u*xe,U+=u*Ne,f+=u*Se,u=x[7],de+=u*k,ce+=u*X,te+=u*ae,ie+=u*me,W+=u*ge,Y+=u*b,$+=u*I,P+=u*M,H+=u*K,re+=u*ee,fe+=u*oe,V+=u*he,j+=u*we,U+=u*xe,f+=u*Ne,F+=u*Se,u=x[8],ce+=u*k,te+=u*X,ie+=u*ae,W+=u*me,Y+=u*ge,$+=u*b,P+=u*I,H+=u*M,re+=u*K,fe+=u*ee,V+=u*oe,j+=u*he,U+=u*we,f+=u*xe,F+=u*Ne,se+=u*Se,u=x[9],te+=u*k,ie+=u*X,W+=u*ae,Y+=u*me,$+=u*ge,P+=u*b,H+=u*I,re+=u*M,fe+=u*K,V+=u*ee,j+=u*oe,U+=u*he,f+=u*we,F+=u*xe,se+=u*Ne,O+=u*Se,u=x[10],ie+=u*k,W+=u*X,Y+=u*ae,$+=u*me,P+=u*ge,H+=u*b,re+=u*I,fe+=u*M,V+=u*K,j+=u*ee,U+=u*oe,f+=u*he,F+=u*we,se+=u*xe,O+=u*Ne,R+=u*Se,u=x[11],W+=u*k,Y+=u*X,$+=u*ae,P+=u*me,H+=u*ge,re+=u*b,fe+=u*I,V+=u*M,j+=u*K,U+=u*ee,f+=u*oe,F+=u*he,se+=u*we,O+=u*xe,R+=u*Ne,Q+=u*Se,u=x[12],Y+=u*k,$+=u*X,P+=u*ae,H+=u*me,re+=u*ge,fe+=u*b,V+=u*I,j+=u*M,U+=u*K,f+=u*ee,F+=u*oe,se+=u*he,O+=u*we,R+=u*xe,Q+=u*Ne,w+=u*Se,u=x[13],$+=u*k,P+=u*X,H+=u*ae,re+=u*me,fe+=u*ge,V+=u*b,j+=u*I,U+=u*M,f+=u*K,F+=u*ee,se+=u*oe,O+=u*he,R+=u*we,Q+=u*xe,w+=u*Ne,c+=u*Se,u=x[14],P+=u*k,H+=u*X,re+=u*ae,fe+=u*me,V+=u*ge,j+=u*b,U+=u*I,f+=u*M,F+=u*K,se+=u*ee,O+=u*oe,R+=u*he,Q+=u*we,w+=u*xe,c+=u*Ne,m+=u*Se,u=x[15],H+=u*k,re+=u*X,fe+=u*ae,V+=u*me,j+=u*ge,U+=u*b,f+=u*I,F+=u*M,se+=u*K,O+=u*ee,R+=u*oe,Q+=u*he,w+=u*we,c+=u*xe,m+=u*Ne,_+=u*Se,Z+=38*re,J+=38*fe,ne+=38*V,pe+=38*j,le+=38*U,z+=38*f,G+=38*F,de+=38*se,ce+=38*O,te+=38*R,ie+=38*Q,W+=38*w,Y+=38*c,$+=38*m,P+=38*_,T=1,u=Z+T+65535,T=Math.floor(u/65536),Z=u-T*65536,u=J+T+65535,T=Math.floor(u/65536),J=u-T*65536,u=ne+T+65535,T=Math.floor(u/65536),ne=u-T*65536,u=pe+T+65535,T=Math.floor(u/65536),pe=u-T*65536,u=le+T+65535,T=Math.floor(u/65536),le=u-T*65536,u=z+T+65535,T=Math.floor(u/65536),z=u-T*65536,u=G+T+65535,T=Math.floor(u/65536),G=u-T*65536,u=de+T+65535,T=Math.floor(u/65536),de=u-T*65536,u=ce+T+65535,T=Math.floor(u/65536),ce=u-T*65536,u=te+T+65535,T=Math.floor(u/65536),te=u-T*65536,u=ie+T+65535,T=Math.floor(u/65536),ie=u-T*65536,u=W+T+65535,T=Math.floor(u/65536),W=u-T*65536,u=Y+T+65535,T=Math.floor(u/65536),Y=u-T*65536,u=$+T+65535,T=Math.floor(u/65536),$=u-T*65536,u=P+T+65535,T=Math.floor(u/65536),P=u-T*65536,u=H+T+65535,T=Math.floor(u/65536),H=u-T*65536,Z+=T-1+37*(T-1),T=1,u=Z+T+65535,T=Math.floor(u/65536),Z=u-T*65536,u=J+T+65535,T=Math.floor(u/65536),J=u-T*65536,u=ne+T+65535,T=Math.floor(u/65536),ne=u-T*65536,u=pe+T+65535,T=Math.floor(u/65536),pe=u-T*65536,u=le+T+65535,T=Math.floor(u/65536),le=u-T*65536,u=z+T+65535,T=Math.floor(u/65536),z=u-T*65536,u=G+T+65535,T=Math.floor(u/65536),G=u-T*65536,u=de+T+65535,T=Math.floor(u/65536),de=u-T*65536,u=ce+T+65535,T=Math.floor(u/65536),ce=u-T*65536,u=te+T+65535,T=Math.floor(u/65536),te=u-T*65536,u=ie+T+65535,T=Math.floor(u/65536),ie=u-T*65536,u=W+T+65535,T=Math.floor(u/65536),W=u-T*65536,u=Y+T+65535,T=Math.floor(u/65536),Y=u-T*65536,u=$+T+65535,T=Math.floor(u/65536),$=u-T*65536,u=P+T+65535,T=Math.floor(u/65536),P=u-T*65536,u=H+T+65535,T=Math.floor(u/65536),H=u-T*65536,Z+=T-1+37*(T-1),S[0]=Z,S[1]=J,S[2]=ne,S[3]=pe,S[4]=le,S[5]=z,S[6]=G,S[7]=de,S[8]=ce,S[9]=te,S[10]=ie,S[11]=W,S[12]=Y,S[13]=$,S[14]=P,S[15]=H}function v(S,x){g(S,x,x)}function y(S,x){for(var N=a(),u=0;u<16;u++)N[u]=x[u];for(var u=253;u>=0;u--)v(N,N),u!==2&&u!==4&&g(N,N,x);for(var u=0;u<16;u++)S[u]=N[u]}function A(S,x){for(var N=new Uint8Array(32),u=new Float64Array(80),T=a(),Z=a(),J=a(),ne=a(),pe=a(),le=a(),z=0;z<31;z++)N[z]=S[z];N[31]=S[31]&127|64,N[0]&=248,d(u,x);for(var z=0;z<16;z++)Z[z]=u[z];T[0]=ne[0]=1;for(var z=254;z>=0;--z){var G=N[z>>>3]>>>(z&7)&1;s(T,Z,G),s(J,ne,G),l(pe,T,J),h(T,T,J),l(J,Z,ne),h(Z,Z,ne),v(ne,pe),v(le,T),g(T,J,T),g(J,Z,pe),l(pe,T,J),h(T,T,J),v(Z,T),h(J,ne,le),g(T,J,n),l(T,T,ne),g(J,J,T),g(T,ne,le),g(ne,Z,u),v(Z,pe),s(T,Z,G),s(J,ne,G)}for(var z=0;z<16;z++)u[z+16]=T[z],u[z+32]=J[z],u[z+48]=Z[z],u[z+64]=ne[z];var de=u.subarray(32),ce=u.subarray(16);y(de,de),g(ce,ce,de);var te=new Uint8Array(32);return o(te,ce),te}e.scalarMult=A;function E(S){return A(S,i)}e.scalarMultBase=E;function D(S){if(S.length!==e.SECRET_KEY_LENGTH)throw new Error("x25519: seed must be "+e.SECRET_KEY_LENGTH+" bytes");var x=new Uint8Array(S),N=E(x);return{publicKey:N,secretKey:x}}e.generateKeyPairFromSeed=D;function C(S){var x=t.randomBytes(32,S),N=D(x);return r.wipe(x),N}e.generateKeyPair=C;function B(S,x,N){if(N===void 0&&(N=!1),S.length!==e.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(x.length!==e.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");var u=A(S,x);if(N){for(var T=0,Z=0;Z<u.length;Z++)T|=u[Z];if(T===0)throw new Error("X25519: invalid shared key")}return u}e.sharedKey=B})(Mp);function Up(e,t){t||(t=e.reduce((i,n)=>i+n.length,0));const r=new Uint8Array(t);let a=0;for(const i of e)r.set(i,a),a+=i.length;return r}function A7(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),a=0;a<r.length;a++)r[a]=255;for(var i=0;i<e.length;i++){var n=e.charAt(i),p=n.charCodeAt(0);if(r[p]!==255)throw new TypeError(n+" is ambiguous");r[p]=i}var s=e.length,o=e.charAt(0),d=Math.log(s)/Math.log(256),l=Math.log(256)/Math.log(s);function h(y){if(y instanceof Uint8Array||(ArrayBuffer.isView(y)?y=new Uint8Array(y.buffer,y.byteOffset,y.byteLength):Array.isArray(y)&&(y=Uint8Array.from(y))),!(y instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(y.length===0)return"";for(var A=0,E=0,D=0,C=y.length;D!==C&&y[D]===0;)D++,A++;for(var B=(C-D)*l+1>>>0,S=new Uint8Array(B);D!==C;){for(var x=y[D],N=0,u=B-1;(x!==0||N<E)&&u!==-1;u--,N++)x+=256*S[u]>>>0,S[u]=x%s>>>0,x=x/s>>>0;if(x!==0)throw new Error("Non-zero carry");E=N,D++}for(var T=B-E;T!==B&&S[T]===0;)T++;for(var Z=o.repeat(A);T<B;++T)Z+=e.charAt(S[T]);return Z}function g(y){if(typeof y!="string")throw new TypeError("Expected String");if(y.length===0)return new Uint8Array;var A=0;if(y[A]!==" "){for(var E=0,D=0;y[A]===o;)E++,A++;for(var C=(y.length-A)*d+1>>>0,B=new Uint8Array(C);y[A];){var S=r[y.charCodeAt(A)];if(S===255)return;for(var x=0,N=C-1;(S!==0||x<D)&&N!==-1;N--,x++)S+=s*B[N]>>>0,B[N]=S%256>>>0,S=S/256>>>0;if(S!==0)throw new Error("Non-zero carry");D=x,A++}if(y[A]!==" "){for(var u=C-D;u!==C&&B[u]===0;)u++;for(var T=new Uint8Array(E+(C-u)),Z=E;u!==C;)T[Z++]=B[u++];return T}}}function v(y){var A=g(y);if(A)return A;throw new Error(`Non-${t} character`)}return{encode:h,decodeUnsafe:g,decode:v}}var C7=A7,I7=C7;const un=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")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")},R7=e=>new TextEncoder().encode(e),L7=e=>new TextDecoder().decode(e);class F7{constructor(t,r,a){this.name=t,this.prefix=r,this.baseEncode=a}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class P7{constructor(t,r,a){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=a}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return f6(this,t)}}class M7{constructor(t){this.decoders=t}or(t){return f6(this,t)}decode(t){const r=t[0],a=this.decoders[r];if(a)return a.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const f6=(e,t)=>new M7({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class U7{constructor(t,r,a,i){this.name=t,this.prefix=r,this.baseEncode=a,this.baseDecode=i,this.encoder=new F7(t,r,a),this.decoder=new P7(t,r,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const cn=({name:e,prefix:t,encode:r,decode:a})=>new U7(e,t,r,a),r1=({prefix:e,name:t,alphabet:r})=>{const{encode:a,decode:i}=I7(r,t);return cn({prefix:e,name:t,encode:a,decode:n=>un(i(n))})},B7=(e,t,r,a)=>{const i={};for(let l=0;l<t.length;++l)i[t[l]]=l;let n=e.length;for(;e[n-1]==="=";)--n;const p=new Uint8Array(n*r/8|0);let s=0,o=0,d=0;for(let l=0;l<n;++l){const h=i[e[l]];if(h===void 0)throw new SyntaxError(`Non-${a} character`);o=o<<r|h,s+=r,s>=8&&(s-=8,p[d++]=255&o>>s)}if(s>=r||255&o<<8-s)throw new SyntaxError("Unexpected end of data");return p},$7=(e,t,r)=>{const a=t[t.length-1]==="=",i=(1<<r)-1;let n="",p=0,s=0;for(let o=0;o<e.length;++o)for(s=s<<8|e[o],p+=8;p>r;)p-=r,n+=t[i&s>>p];if(p&&(n+=t[i&s<<r-p]),a)for(;n.length*r&7;)n+="=";return n},Et=({name:e,prefix:t,bitsPerChar:r,alphabet:a})=>cn({prefix:t,name:e,encode(i){return $7(i,a,r)},decode(i){return B7(i,a,r,e)}}),j7=cn({prefix:"\0",name:"identity",encode:e=>L7(e),decode:e=>R7(e)});var V7=Object.freeze({__proto__:null,identity:j7});const k7=Et({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var z7=Object.freeze({__proto__:null,base2:k7});const H7=Et({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var q7=Object.freeze({__proto__:null,base8:H7});const K7=r1({prefix:"9",name:"base10",alphabet:"0123456789"});var G7=Object.freeze({__proto__:null,base10:K7});const W7=Et({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Z7=Et({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Y7=Object.freeze({__proto__:null,base16:W7,base16upper:Z7});const J7=Et({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),X7=Et({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Q7=Et({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),ev=Et({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),tv=Et({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),rv=Et({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),av=Et({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),iv=Et({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),nv=Et({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var sv=Object.freeze({__proto__:null,base32:J7,base32upper:X7,base32pad:Q7,base32padupper:ev,base32hex:tv,base32hexupper:rv,base32hexpad:av,base32hexpadupper:iv,base32z:nv});const pv=r1({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),ov=r1({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var dv=Object.freeze({__proto__:null,base36:pv,base36upper:ov});const lv=r1({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),uv=r1({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var cv=Object.freeze({__proto__:null,base58btc:lv,base58flickr:uv});const fv=Et({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),hv=Et({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),mv=Et({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),vv=Et({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var gv=Object.freeze({__proto__:null,base64:fv,base64pad:hv,base64url:mv,base64urlpad:vv});const h6=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),yv=h6.reduce((e,t,r)=>(e[r]=t,e),[]),wv=h6.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function _v(e){return e.reduce((t,r)=>(t+=yv[r],t),"")}function bv(e){const t=[];for(const r of e){const a=wv[r.codePointAt(0)];if(a===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(a)}return new Uint8Array(t)}const Ev=cn({prefix:"\u{1F680}",name:"base256emoji",encode:_v,decode:bv});var Sv=Object.freeze({__proto__:null,base256emoji:Ev}),xv=v6,m6=128,Dv=127,Tv=~Dv,Nv=Math.pow(2,31);function v6(e,t,r){t=t||[],r=r||0;for(var a=r;e>=Nv;)t[r++]=e&255|m6,e/=128;for(;e&Tv;)t[r++]=e&255|m6,e>>>=7;return t[r]=e|0,v6.bytes=r-a+1,t}var Ov=Bp,Av=128,g6=127;function Bp(e,a){var r=0,a=a||0,i=0,n=a,p,s=e.length;do{if(n>=s)throw Bp.bytes=0,new RangeError("Could not decode varint");p=e[n++],r+=i<28?(p&g6)<<i:(p&g6)*Math.pow(2,i),i+=7}while(p>=Av);return Bp.bytes=n-a,r}var Cv=Math.pow(2,7),Iv=Math.pow(2,14),Rv=Math.pow(2,21),Lv=Math.pow(2,28),Fv=Math.pow(2,35),Pv=Math.pow(2,42),Mv=Math.pow(2,49),Uv=Math.pow(2,56),Bv=Math.pow(2,63),$v=function(e){return e<Cv?1:e<Iv?2:e<Rv?3:e<Lv?4:e<Fv?5:e<Pv?6:e<Mv?7:e<Uv?8:e<Bv?9:10},jv={encode:xv,decode:Ov,encodingLength:$v},y6=jv;const w6=(e,t,r=0)=>(y6.encode(e,t,r),t),_6=e=>y6.encodingLength(e),$p=(e,t)=>{const r=t.byteLength,a=_6(e),i=a+_6(r),n=new Uint8Array(i+r);return w6(e,n,0),w6(r,n,a),n.set(t,i),new Vv(e,r,t,n)};class Vv{constructor(t,r,a,i){this.code=t,this.size=r,this.digest=a,this.bytes=i}}const b6=({name:e,code:t,encode:r})=>new kv(e,t,r);class kv{constructor(t,r,a){this.name=t,this.code=r,this.encode=a}digest(t){if(t instanceof Uint8Array){const r=this.encode(t);return r instanceof Uint8Array?$p(this.code,r):r.then(a=>$p(this.code,a))}else throw Error("Unknown type, must be binary type")}}const zv=b6({name:"sha2-256",code:18,encode:e=>un(Pp.createHash("sha256").update(e).digest())}),Hv=b6({name:"sha2-512",code:19,encode:e=>un(Pp.createHash("sha512").update(e).digest())});var qv=Object.freeze({__proto__:null,sha256:zv,sha512:Hv});const E6=0,Kv="identity",S6=un;var Gv=Object.freeze({__proto__:null,identity:{code:E6,name:Kv,encode:S6,digest:e=>$p(E6,S6(e))}});new TextEncoder,new TextDecoder;const x6={...V7,...z7,...q7,...G7,...Y7,...sv,...dv,...cv,...gv,...Sv};({...qv,...Gv});function D6(e,t,r,a){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:a}}}const T6=D6("utf8","u",e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>new TextEncoder().encode(e.substring(1))),jp=D6("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),N6={utf8:T6,"utf-8":T6,hex:x6.base16,latin1:jp,ascii:jp,binary:jp,...x6};function Pt(e,t="utf8"){const r=N6[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return r.decoder.decode(`${r.prefix}${e}`)}function Mt(e,t="utf8"){const r=N6[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return r.encoder.encode(e).substring(1)}var O6=function(e,t,r){if(r||arguments.length===2)for(var a=0,i=t.length,n;a<i;a++)(n||!(a in t))&&(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))},Wv=function(){function e(t,r,a){this.name=t,this.version=r,this.os=a,this.type="browser"}return e}(),Zv=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return e}(),Yv=function(){function e(t,r,a,i){this.name=t,this.version=r,this.os=a,this.bot=i,this.type="bot-device"}return e}(),Jv=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}(),Xv=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}(),Qv=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,eg=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,A6=3,tg=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",Qv]],C6=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function rg(e){return e?I6(e):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Xv:typeof navigator<"u"?I6(navigator.userAgent):ng()}function ag(e){return e!==""&&tg.reduce(function(t,r){var a=r[0],i=r[1];if(t)return t;var n=i.exec(e);return!!n&&[a,n]},!1)}function I6(e){var t=ag(e);if(!t)return null;var r=t[0],a=t[1];if(r==="searchbot")return new Jv;var i=a[1]&&a[1].split(".").join("_").split("_").slice(0,3);i?i.length<A6&&(i=O6(O6([],i,!0),sg(A6-i.length),!0)):i=[];var n=i.join("."),p=ig(e),s=eg.exec(e);return s&&s[1]?new Yv(r,n,p,s[1]):new Wv(r,n,p)}function ig(e){for(var t=0,r=C6.length;t<r;t++){var a=C6[t],i=a[0],n=a[1],p=n.exec(e);if(p)return i}return null}function ng(){var e=typeof process<"u"&&process.version;return e?new Zv(process.version.slice(1)):null}function sg(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}var qe={},R6={},fn={};Object.defineProperty(fn,"__esModule",{value:!0}),fn.delay=void 0;function pg(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}fn.delay=pg;var li={},Vp={},ui={};Object.defineProperty(ui,"__esModule",{value:!0}),ui.ONE_THOUSAND=ui.ONE_HUNDRED=void 0,ui.ONE_HUNDRED=100,ui.ONE_THOUSAND=1e3;var L6={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ONE_YEAR=e.FOUR_WEEKS=e.THREE_WEEKS=e.TWO_WEEKS=e.ONE_WEEK=e.THIRTY_DAYS=e.SEVEN_DAYS=e.FIVE_DAYS=e.THREE_DAYS=e.ONE_DAY=e.TWENTY_FOUR_HOURS=e.TWELVE_HOURS=e.SIX_HOURS=e.THREE_HOURS=e.ONE_HOUR=e.SIXTY_MINUTES=e.THIRTY_MINUTES=e.TEN_MINUTES=e.FIVE_MINUTES=e.ONE_MINUTE=e.SIXTY_SECONDS=e.THIRTY_SECONDS=e.TEN_SECONDS=e.FIVE_SECONDS=e.ONE_SECOND=void 0,e.ONE_SECOND=1,e.FIVE_SECONDS=5,e.TEN_SECONDS=10,e.THIRTY_SECONDS=30,e.SIXTY_SECONDS=60,e.ONE_MINUTE=e.SIXTY_SECONDS,e.FIVE_MINUTES=e.ONE_MINUTE*5,e.TEN_MINUTES=e.ONE_MINUTE*10,e.THIRTY_MINUTES=e.ONE_MINUTE*30,e.SIXTY_MINUTES=e.ONE_MINUTE*60,e.ONE_HOUR=e.SIXTY_MINUTES,e.THREE_HOURS=e.ONE_HOUR*3,e.SIX_HOURS=e.ONE_HOUR*6,e.TWELVE_HOURS=e.ONE_HOUR*12,e.TWENTY_FOUR_HOURS=e.ONE_HOUR*24,e.ONE_DAY=e.TWENTY_FOUR_HOURS,e.THREE_DAYS=e.ONE_DAY*3,e.FIVE_DAYS=e.ONE_DAY*5,e.SEVEN_DAYS=e.ONE_DAY*7,e.THIRTY_DAYS=e.ONE_DAY*30,e.ONE_WEEK=e.SEVEN_DAYS,e.TWO_WEEKS=e.ONE_WEEK*2,e.THREE_WEEKS=e.ONE_WEEK*3,e.FOUR_WEEKS=e.ONE_WEEK*4,e.ONE_YEAR=e.ONE_DAY*365})(L6),function(e){var t=Ee&&Ee.__createBinding||(Object.create?function(a,i,n,p){p===void 0&&(p=n),Object.defineProperty(a,p,{enumerable:!0,get:function(){return i[n]}})}:function(a,i,n,p){p===void 0&&(p=n),a[p]=i[n]}),r=Ee&&Ee.__exportStar||function(a,i){for(var n in a)n!=="default"&&!i.hasOwnProperty(n)&&t(i,a,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(ui,e),r(L6,e)}(Vp),Object.defineProperty(li,"__esModule",{value:!0}),li.fromMiliseconds=li.toMiliseconds=void 0;const F6=Vp;function og(e){return e*F6.ONE_THOUSAND}li.toMiliseconds=og;function dg(e){return Math.floor(e/F6.ONE_THOUSAND)}li.fromMiliseconds=dg,function(e){var t=Ee&&Ee.__createBinding||(Object.create?function(a,i,n,p){p===void 0&&(p=n),Object.defineProperty(a,p,{enumerable:!0,get:function(){return i[n]}})}:function(a,i,n,p){p===void 0&&(p=n),a[p]=i[n]}),r=Ee&&Ee.__exportStar||function(a,i){for(var n in a)n!=="default"&&!i.hasOwnProperty(n)&&t(i,a,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(fn,e),r(li,e)}(R6);var a1={};Object.defineProperty(a1,"__esModule",{value:!0}),a1.Watch=void 0;class P6{constructor(){this.timestamps=new Map}start(t){if(this.timestamps.has(t))throw new Error(`Watch already started for label: ${t}`);this.timestamps.set(t,{started:Date.now()})}stop(t){const r=this.get(t);if(typeof r.elapsed<"u")throw new Error(`Watch already stopped for label: ${t}`);const a=Date.now()-r.started;this.timestamps.set(t,{started:r.started,elapsed:a})}get(t){const r=this.timestamps.get(t);if(typeof r>"u")throw new Error(`No timestamp found for label: ${t}`);return r}elapsed(t){const r=this.get(t);return r.elapsed||Date.now()-r.started}}a1.Watch=P6,a1.default=P6;var M6={},hn={};Object.defineProperty(hn,"__esModule",{value:!0}),hn.IWatch=void 0;class lg{}hn.IWatch=lg,function(e){var t=Ee&&Ee.__createBinding||(Object.create?function(a,i,n,p){p===void 0&&(p=n),Object.defineProperty(a,p,{enumerable:!0,get:function(){return i[n]}})}:function(a,i,n,p){p===void 0&&(p=n),a[p]=i[n]}),r=Ee&&Ee.__exportStar||function(a,i){for(var n in a)n!=="default"&&!i.hasOwnProperty(n)&&t(i,a,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(hn,e)}(M6),function(e){var t=Ee&&Ee.__createBinding||(Object.create?function(a,i,n,p){p===void 0&&(p=n),Object.defineProperty(a,p,{enumerable:!0,get:function(){return i[n]}})}:function(a,i,n,p){p===void 0&&(p=n),a[p]=i[n]}),r=Ee&&Ee.__exportStar||function(a,i){for(var n in a)n!=="default"&&!i.hasOwnProperty(n)&&t(i,a,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(R6,e),r(a1,e),r(M6,e),r(Vp,e)}(qe);var Fe={};Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.getLocalStorage=Fe.getLocalStorageOrThrow=Fe.getCrypto=Fe.getCryptoOrThrow=B6=Fe.getLocation=Fe.getLocationOrThrow=kp=Fe.getNavigator=Fe.getNavigatorOrThrow=U6=Fe.getDocument=Fe.getDocumentOrThrow=Fe.getFromWindowOrThrow=Fe.getFromWindow=void 0;function Aa(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}Fe.getFromWindow=Aa;function ci(e){const t=Aa(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Fe.getFromWindowOrThrow=ci;function ug(){return ci("document")}Fe.getDocumentOrThrow=ug;function cg(){return Aa("document")}var U6=Fe.getDocument=cg;function fg(){return ci("navigator")}Fe.getNavigatorOrThrow=fg;function hg(){return Aa("navigator")}var kp=Fe.getNavigator=hg;function mg(){return ci("location")}Fe.getLocationOrThrow=mg;function vg(){return Aa("location")}var B6=Fe.getLocation=vg;function gg(){return ci("crypto")}Fe.getCryptoOrThrow=gg;function yg(){return Aa("crypto")}Fe.getCrypto=yg;function wg(){return ci("localStorage")}Fe.getLocalStorageOrThrow=wg;function _g(){return Aa("localStorage")}Fe.getLocalStorage=_g;var zp={};Object.defineProperty(zp,"__esModule",{value:!0});var $6=zp.getWindowMetadata=void 0;const j6=Fe;function bg(){let e,t;try{e=j6.getDocumentOrThrow(),t=j6.getLocationOrThrow()}catch{return null}function r(){const h=e.getElementsByTagName("link"),g=[];for(let v=0;v<h.length;v++){const y=h[v],A=y.getAttribute("rel");if(A&&A.toLowerCase().indexOf("icon")>-1){const E=y.getAttribute("href");if(E)if(E.toLowerCase().indexOf("https:")===-1&&E.toLowerCase().indexOf("http:")===-1&&E.indexOf("//")!==0){let D=t.protocol+"//"+t.host;if(E.indexOf("/")===0)D+=E;else{const C=t.pathname.split("/");C.pop(),D+=C.join("/")+"/"+E}g.push(D)}else if(E.indexOf("//")===0){const D=t.protocol+E;g.push(D)}else g.push(E)}}return g}function a(...h){const g=e.getElementsByTagName("meta");for(let v=0;v<g.length;v++){const y=g[v],A=["itemprop","property","name"].map(E=>y.getAttribute(E)).filter(E=>E?h.includes(E):!1);if(A.length&&A){const E=y.getAttribute("content");if(E)return E}}return""}function i(){let h=a("name","og:site_name","og:title","twitter:title");return h||(h=e.title),h}function n(){return a("description","og:description","twitter:description","keywords")}const p=i(),s=n(),o=t.origin,d=r();return{description:s,url:o,icons:d,name:p}}$6=zp.getWindowMetadata=bg;var i1={},Eg=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),V6="%[a-f0-9]{2}",k6=new RegExp(V6,"gi"),z6=new RegExp("("+V6+")+","gi");function Hp(e,t){try{return decodeURIComponent(e.join(""))}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),a=e.slice(t);return Array.prototype.concat.call([],Hp(r),Hp(a))}function Sg(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(k6),r=1;r<t.length;r++)e=Hp(t,r).join(""),t=e.match(k6);return e}}function xg(e){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=z6.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var a=Sg(r[0]);a!==r[0]&&(t[r[0]]=a)}r=z6.exec(e)}t["%C2"]="\uFFFD";for(var i=Object.keys(t),n=0;n<i.length;n++){var p=i[n];e=e.replace(new RegExp(p,"g"),t[p])}return e}var Dg=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return xg(e)}},Tg=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]};(function(e){const t=Eg,r=Dg,a=Tg,i=E=>E==null;function n(E){switch(E.arrayFormat){case"index":return D=>(C,B)=>{const S=C.length;return B===void 0||E.skipNull&&B===null||E.skipEmptyString&&B===""?C:B===null?[...C,[o(D,E),"[",S,"]"].join("")]:[...C,[o(D,E),"[",o(S,E),"]=",o(B,E)].join("")]};case"bracket":return D=>(C,B)=>B===void 0||E.skipNull&&B===null||E.skipEmptyString&&B===""?C:B===null?[...C,[o(D,E),"[]"].join("")]:[...C,[o(D,E),"[]=",o(B,E)].join("")];case"comma":case"separator":return D=>(C,B)=>B==null||B.length===0?C:C.length===0?[[o(D,E),"=",o(B,E)].join("")]:[[C,o(B,E)].join(E.arrayFormatSeparator)];default:return D=>(C,B)=>B===void 0||E.skipNull&&B===null||E.skipEmptyString&&B===""?C:B===null?[...C,o(D,E)]:[...C,[o(D,E),"=",o(B,E)].join("")]}}function p(E){let D;switch(E.arrayFormat){case"index":return(C,B,S)=>{if(D=/\[(\d*)\]$/.exec(C),C=C.replace(/\[\d*\]$/,""),!D){S[C]=B;return}S[C]===void 0&&(S[C]={}),S[C][D[1]]=B};case"bracket":return(C,B,S)=>{if(D=/(\[\])$/.exec(C),C=C.replace(/\[\]$/,""),!D){S[C]=B;return}if(S[C]===void 0){S[C]=[B];return}S[C]=[].concat(S[C],B)};case"comma":case"separator":return(C,B,S)=>{const N=typeof B=="string"&&B.split("").indexOf(E.arrayFormatSeparator)>-1?B.split(E.arrayFormatSeparator).map(u=>d(u,E)):B===null?B:d(B,E);S[C]=N};default:return(C,B,S)=>{if(S[C]===void 0){S[C]=B;return}S[C]=[].concat(S[C],B)}}}function s(E){if(typeof E!="string"||E.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function o(E,D){return D.encode?D.strict?t(E):encodeURIComponent(E):E}function d(E,D){return D.decode?r(E):E}function l(E){return Array.isArray(E)?E.sort():typeof E=="object"?l(Object.keys(E)).sort((D,C)=>Number(D)-Number(C)).map(D=>E[D]):E}function h(E){const D=E.indexOf("#");return D!==-1&&(E=E.slice(0,D)),E}function g(E){let D="";const C=E.indexOf("#");return C!==-1&&(D=E.slice(C)),D}function v(E){E=h(E);const D=E.indexOf("?");return D===-1?"":E.slice(D+1)}function y(E,D){return D.parseNumbers&&!Number.isNaN(Number(E))&&typeof E=="string"&&E.trim()!==""?E=Number(E):D.parseBooleans&&E!==null&&(E.toLowerCase()==="true"||E.toLowerCase()==="false")&&(E=E.toLowerCase()==="true"),E}function A(E,D){D=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},D),s(D.arrayFormatSeparator);const C=p(D),B=Object.create(null);if(typeof E!="string"||(E=E.trim().replace(/^[?#&]/,""),!E))return B;for(const S of E.split("&")){let[x,N]=a(D.decode?S.replace(/\+/g," "):S,"=");N=N===void 0?null:["comma","separator"].includes(D.arrayFormat)?N:d(N,D),C(d(x,D),N,B)}for(const S of Object.keys(B)){const x=B[S];if(typeof x=="object"&&x!==null)for(const N of Object.keys(x))x[N]=y(x[N],D);else B[S]=y(x,D)}return D.sort===!1?B:(D.sort===!0?Object.keys(B).sort():Object.keys(B).sort(D.sort)).reduce((S,x)=>{const N=B[x];return Boolean(N)&&typeof N=="object"&&!Array.isArray(N)?S[x]=l(N):S[x]=N,S},Object.create(null))}e.extract=v,e.parse=A,e.stringify=(E,D)=>{if(!E)return"";D=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},D),s(D.arrayFormatSeparator);const C=N=>D.skipNull&&i(E[N])||D.skipEmptyString&&E[N]==="",B=n(D),S={};for(const N of Object.keys(E))C(N)||(S[N]=E[N]);const x=Object.keys(S);return D.sort!==!1&&x.sort(D.sort),x.map(N=>{const u=E[N];return u===void 0?"":u===null?o(N,D):Array.isArray(u)?u.reduce(B(N),[]).join("&"):o(N,D)+"="+o(u,D)}).filter(N=>N.length>0).join("&")},e.parseUrl=(E,D)=>{D=Object.assign({decode:!0},D);const[C,B]=a(E,"#");return Object.assign({url:C.split("?")[0]||"",query:A(v(E),D)},D&&D.parseFragmentIdentifier&&B?{fragmentIdentifier:d(B,D)}:{})},e.stringifyUrl=(E,D)=>{D=Object.assign({encode:!0,strict:!0},D);const C=h(E.url).split("?")[0]||"",B=e.extract(E.url),S=e.parse(B,{sort:!1}),x=Object.assign(S,E.query);let N=e.stringify(x,D);N&&(N=`?${N}`);let u=g(E.url);return E.fragmentIdentifier&&(u=`#${o(E.fragmentIdentifier,D)}`),`${C}${N}${u}`}})(i1);const Ng={waku:{publish:"waku_publish",subscribe:"waku_subscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe"},irn:{publish:"irn_publish",subscribe:"irn_subscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe"},iridium:{publish:"iridium_publish",subscribe:"iridium_subscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe"}},H6=":";function Og(e){const{namespace:t,reference:r}=e;return[t,r].join(H6)}function Ag(e){const[t,r,a]=e.split(H6);return{namespace:t,reference:r,address:a}}function Cg(e,t){const r=[];return e.forEach(a=>{const i=t(a);r.includes(i)||r.push(i)}),r}function Ig(e){const{namespace:t,reference:r}=Ag(e);return Og({namespace:t,reference:r})}function Rg(e){return Cg(e,Ig)}function qp(e,t=[]){const r=[];return Object.keys(e).forEach(a=>{if(t.length&&!t.includes(a))return;const i=e[a];r.push(...i.accounts)}),r}function Kp(e,t=[]){const r=[];return Object.keys(e).forEach(a=>{if(t.length&&!t.includes(a))return;const i=e[a];r.push(...Rg(i.accounts))}),r}function Lg(e,t=[]){const r=[];return Object.keys(e).forEach(a=>{if(t.length&&!t.includes(a))return;const i=e[a];r.push(...i.chains)}),r}const q6="base10",Ut="base16",Gp="base64pad",Wp="utf8",K6=0,n1=1,Fg=0,G6=1,Zp=12,Yp=32;function Pg(){const e=Mp.generateKeyPair();return{privateKey:Mt(e.secretKey,Ut),publicKey:Mt(e.publicKey,Ut)}}function Jp(){const e=di.randomBytes(Yp);return Mt(e,Ut)}function Mg(e,t){const r=Mp.sharedKey(Pt(e,Ut),Pt(t,Ut)),a=new b7(ln.SHA256,r).expand(Yp);return Mt(a,Ut)}function Ug(e){const t=ln.hash(Pt(e,Ut));return Mt(t,Ut)}function mn(e){const t=ln.hash(Pt(e,Wp));return Mt(t,Ut)}function Bg(e){return Pt(`${e}`,q6)}function vn(e){return Number(Mt(e,q6))}function $g(e){const t=Bg(typeof e.type<"u"?e.type:K6);if(vn(t)===n1&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const r=typeof e.senderPublicKey<"u"?Pt(e.senderPublicKey,Ut):void 0,a=typeof e.iv<"u"?Pt(e.iv,Ut):di.randomBytes(Zp),i=new xp.ChaCha20Poly1305(Pt(e.symKey,Ut)).seal(a,Pt(e.message,Wp));return Vg({type:t,sealed:i,iv:a,senderPublicKey:r})}function jg(e){const t=new xp.ChaCha20Poly1305(Pt(e.symKey,Ut)),{sealed:r,iv:a}=W6(e.encoded),i=t.open(a,r);if(i===null)throw new Error("Failed to decrypt");return Mt(i,Wp)}function Vg(e){if(vn(e.type)===n1){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return Mt(Up([e.type,e.senderPublicKey,e.iv,e.sealed]),Gp)}return Mt(Up([e.type,e.iv,e.sealed]),Gp)}function W6(e){const t=Pt(e,Gp),r=t.slice(Fg,G6),a=G6;if(vn(r)===n1){const s=a+Yp,o=s+Zp,d=t.slice(a,s),l=t.slice(s,o),h=t.slice(o);return{type:r,sealed:h,iv:l,senderPublicKey:d}}const i=a+Zp,n=t.slice(a,i),p=t.slice(i);return{type:r,sealed:p,iv:n}}function kg(e,t){const r=W6(e);return Z6({type:vn(r.type),senderPublicKey:typeof r.senderPublicKey<"u"?Mt(r.senderPublicKey,Ut):void 0,receiverPublicKey:t?.receiverPublicKey})}function Z6(e){const t=e?.type||K6;if(t===n1){if(typeof e?.senderPublicKey>"u")throw new Error("missing sender public key");if(typeof e?.receiverPublicKey>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:e?.senderPublicKey,receiverPublicKey:e?.receiverPublicKey}}function Y6(e){return e.type===n1&&typeof e.senderPublicKey=="string"&&typeof e.receiverPublicKey=="string"}var zg=Object.defineProperty,J6=Object.getOwnPropertySymbols,Hg=Object.prototype.hasOwnProperty,qg=Object.prototype.propertyIsEnumerable,X6=(e,t,r)=>t in e?zg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Q6=(e,t)=>{for(var r in t||(t={}))Hg.call(t,r)&&X6(e,r,t[r]);if(J6)for(var r of J6(t))qg.call(t,r)&&X6(e,r,t[r]);return e};const Kg="ReactNative",s1={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},Gg="js";function eu(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function Wg(){return!U6()&&!!kp()&&navigator.product===Kg}function Zg(){return!eu()&&!!kp()}function Yg(){return Wg()?s1.reactNative:eu()?s1.node:Zg()?s1.browser:s1.unknown}function Jg(e,t){let r=i1.parse(e);return r=Q6(Q6({},r),t),e=i1.stringify(r),e}function Xg(){return $6()||{name:"",description:"",url:"",icons:[""]}}function Qg(){const e=rg();if(e===null)return"unknown";const t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return e.type==="browser"?[t,e.name,e.version].join("-"):[t,e.version].join("-")}function ey(){var e;const t=Yg();return t===s1.browser?[t,((e=B6())==null?void 0:e.host)||"unknown"].join(":"):t}function ty(e,t,r){const a=Qg(),i=ey();return[[e,t].join("-"),[Gg,r].join("-"),a,i].join("/")}function ry({protocol:e,version:t,relayUrl:r,sdkVersion:a,auth:i,projectId:n}){const p=r.split("?"),s=ty(e,t,a),o={auth:i,ua:s,projectId:n},d=Jg(p[1]||"",o);return p[0]+"?"+d}function Bt(e,t){return e.filter(r=>t.includes(r)).length===e.length}function tu(e){return Object.fromEntries(e.entries())}function ru(e){return new Map(Object.entries(e))}function fi(e,t){return qe.fromMiliseconds((t||Date.now())+qe.toMiliseconds(e))}function Ca(e){return qe.fromMiliseconds(Date.now())>=qe.toMiliseconds(e)}function Ia(){const e=qe.toMiliseconds(qe.FIVE_MINUTES);let t,r,a;return{resolve:i=>{a&&t&&(clearTimeout(a),t(i))},reject:i=>{a&&r&&(clearTimeout(a),r(i))},done:()=>new Promise((i,n)=>{a=setTimeout(n,e),t=i,r=n})}}function au(e,t){if(typeof t=="string"&&t.startsWith(`${e}:`))return t;if(e.toLowerCase()==="topic"){if(typeof t!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}else if(e.toLowerCase()==="id"){if(typeof t!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw new Error(`Unknown expirer target type: ${e}`)}function ay(e){return au("topic",e)}function iy(e){return au("id",e)}function ny(e){const[t,r]=e.split(":"),a={id:void 0,topic:void 0};if(t==="topic"&&typeof r=="string")a.topic=r;else if(t==="id"&&Number.isInteger(Number(r)))a.id=Number(r);else throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${r}`);return a}function et(e,t){return`${e}${t?`:${t}`:""}`}const sy="irn";function Xp(e){return e?.relay||{protocol:sy}}function Qp(e){const t=Ng[e];if(typeof t>"u")throw new Error(`Relay Protocol not supported: ${e}`);return t}var py=Object.defineProperty,iu=Object.getOwnPropertySymbols,oy=Object.prototype.hasOwnProperty,dy=Object.prototype.propertyIsEnumerable,nu=(e,t,r)=>t in e?py(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ly=(e,t)=>{for(var r in t||(t={}))oy.call(t,r)&&nu(e,r,t[r]);if(iu)for(var r of iu(t))dy.call(t,r)&&nu(e,r,t[r]);return e};function uy(e,t="-"){const r={},a="relay"+t;return Object.keys(e).forEach(i=>{if(i.startsWith(a)){const n=i.replace(a,""),p=e[i];r[n]=p}}),r}function cy(e){const t=e.indexOf(":"),r=e.indexOf("?")!==-1?e.indexOf("?"):void 0,a=e.substring(0,t),i=e.substring(t+1,r).split("@"),n=typeof r<"u"?e.substring(r):"",p=i1.parse(n);return{protocol:a,topic:i[0],version:parseInt(i[1],10),symKey:p.symKey,relay:uy(p)}}function fy(e,t="-"){const r="relay",a={};return Object.keys(e).forEach(i=>{const n=r+t+i;e[i]&&(a[n]=e[i])}),a}function hy(e){return`${e.protocol}:${e.topic}@${e.version}?`+i1.stringify(ly({symKey:e.symKey},fy(e.relay)))}function hr(e){const t=[];return e.forEach(r=>{const[a,i]=r.split(":");t.push(`${a}:${i}`)}),t}function my(e){const t=[];return Object.values(e).forEach(r=>{t.push(...hr(r.accounts)),r.extension&&r.extension.forEach(a=>{t.push(...hr(a.accounts))})}),t}function vy(e,t){const r=[];return Object.values(e).forEach(a=>{hr(a.accounts).includes(t)&&r.push(...a.methods),a.extension&&a.extension.forEach(i=>{hr(i.accounts).includes(t)&&r.push(...i.methods)})}),r}function gy(e,t){const r=[];return Object.values(e).forEach(a=>{hr(a.accounts).includes(t)&&r.push(...a.events),a.extension&&a.extension.forEach(i=>{hr(i.accounts).includes(t)&&r.push(...i.events)})}),r}const yy={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3}},wy={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function ye(e,t){const{message:r,code:a}=wy[e];return{message:t?`${r} ${t}`:r,code:a}}function St(e,t){const{message:r,code:a}=yy[e];return{message:t?`${r} ${t}`:r,code:a}}function p1(e,t){return Array.isArray(e)?typeof t<"u"&&e.length?e.every(t):!0:!1}function su(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function rr(e){return typeof e>"u"}function At(e,t){return t&&rr(e)?!0:typeof e=="string"&&Boolean(e.trim().length)}function pu(e,t){return t&&rr(e)?!0:typeof e=="number"&&!isNaN(e)}function _y(e,t){const{requiredNamespaces:r}=t,a=Object.keys(e.namespaces),i=Object.keys(r);let n=!0;return Bt(i,a)?(a.forEach(p=>{const{accounts:s,methods:o,events:d,extension:l}=e.namespaces[p],h=hr(s),g=r[p];(!Bt(g.chains,h)||!Bt(g.methods,o)||!Bt(g.events,d))&&(n=!1),n&&l&&l.forEach(v=>{var y;const{accounts:A,methods:E,events:D}=v,C=hr(A);(y=g.extension)!=null&&y.find(B=>Bt(B.chains,C)&&Bt(B.methods,E)&&Bt(B.events,D))||(n=!1)})}),n):!1}function eo(e){return At(e,!1)&&e.includes(":")?e.split(":").length===2:!1}function by(e){if(At(e,!1)&&e.includes(":")){const t=e.split(":");if(t.length===3){const r=t[0]+":"+t[1];return!!t[2]&&eo(r)}}return!1}function Ey(e){if(At(e,!1))try{return typeof new URL(e)<"u"}catch{return!1}return!1}function Sy(e){var t;return(t=e?.proposer)==null?void 0:t.publicKey}function xy(e){return e?.topic}function Dy(e,t){let r=null;return At(e?.publicKey,!1)||(r=ye("MISSING_OR_INVALID",`${t} controller public key should be a string`)),r}function to(e,t){let r=null;return rr(e?.extension)||(!p1(e.extension)||!e.extension.length)&&(r=ye("MISSING_OR_INVALID",`${t} extension should be an array of namespaces, or omitted`)),r}function ou(e){let t=!0;return p1(e)?e.length&&(t=e.every(r=>At(r,!1))):t=!1,t}function du(e,t,r){let a=null;return p1(t)?t.forEach(i=>{a||(!eo(i)||!i.includes(e))&&(a=St("UNSUPPORTED_CHAINS",`${r}, chain ${i} should be a string and conform to "namespace:chainId" format`))}):a=St("UNSUPPORTED_CHAINS",`${r}, chains ${t} should be an array of strings conforming to "namespace:chainId" format`),a}function Ty(e,t){let r=null;return Object.entries(e).forEach(([a,i])=>{if(r)return;const n=du(a,i?.chains,`${t} requiredNamespace`),p=to(i,t);n?r=n:p?r=p:i.extension&&i.extension.forEach(s=>{if(r)return;const o=du(a,s.chains,`${t} extension`);o&&(r=o)})}),r}function lu(e,t){let r=null;return p1(e)?e.forEach(a=>{r||by(a)||(r=St("UNSUPPORTED_ACCOUNTS",`${t}, account ${a} should be a string and conform to "namespace:chainId:address" format`))}):r=St("UNSUPPORTED_ACCOUNTS",`${t}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),r}function Ny(e,t){let r=null;return Object.values(e).forEach(a=>{if(r)return;const i=lu(a?.accounts,`${t} namespace`),n=to(a,t);i?r=i:n?r=n:a.extension&&a.extension.forEach(p=>{if(r)return;const s=lu(p.accounts,`${t} extension`);s&&(r=s)})}),r}function uu(e,t){let r=null;return ou(e?.methods)?ou(e?.events)||(r=St("UNSUPPORTED_EVENTS",`${t}, events should be an array of strings or empty array for no events`)):r=St("UNSUPPORTED_METHODS",`${t}, methods should be an array of strings or empty array for no methods`),r}function cu(e,t){let r=null;return Object.values(e).forEach(a=>{if(r)return;const i=uu(a,`${t}, namespace`),n=to(a,t);i?r=i:n?r=n:a.extension&&a.extension.forEach(p=>{if(r)return;const s=uu(p,`${t}, extension`);s&&(r=s)})}),r}function Oy(e,t){let r=null;if(e&&su(e)){const a=cu(e,t);a&&(r=a);const i=Ty(e,t);i&&(r=i)}else r=ye("MISSING_OR_INVALID",`${t}, requiredNamespaces should be an object with data`);return r}function ro(e,t){let r=null;if(e&&su(e)){const a=cu(e,t);a&&(r=a);const i=Ny(e,t);i&&(r=i)}else r=ye("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return r}function fu(e){return At(e.protocol,!0)}function Ay(e,t){let r=!1;return t&&!e?r=!0:e&&p1(e)&&e.length&&e.forEach(a=>{r=fu(a)}),r}function Cy(e){return typeof e=="number"}function Wt(e){return typeof e<"u"&&typeof e!==null}function Iy(e){return!(!e||typeof e!="object"||!e.code||!pu(e.code,!1)||!e.message||!At(e.message,!1))}function Ry(e){return!(rr(e)||!At(e.method,!1))}function Ly(e){return!(rr(e)||rr(e.result)&&rr(e.error)||!pu(e.id,!1)||!At(e.jsonrpc,!1))}function Fy(e){return!(rr(e)||!At(e.name,!1))}function hu(e,t){return!(!eo(t)||!my(e).includes(t))}function Py(e,t,r){return At(r,!1)?vy(e,t).includes(r):!1}function My(e,t,r){return At(r,!1)?gy(e,t).includes(r):!1}function mu(e,t,r){let a=null;const i=Object.keys(e),n=Object.keys(t);return Bt(i,n)?i.forEach(p=>{var s;if(a)return;const o=e[p].chains,d=hr(t[p].accounts);Bt(o,d)?Bt(e[p].methods,t[p].methods)?Bt(e[p].events,t[p].events)?e[p].extension&&!t[p].extension?a=ye("NON_CONFORMING_NAMESPACES",`${r} namespaces extension doesn't satisfy requiredNamespaces extension for ${p}`):e[p].extension&&t[p].extension&&((s=e[p].extension)==null||s.forEach(({methods:l,events:h,chains:g})=>{var v;a||(v=t[p].extension)!=null&&v.find(y=>{const A=hr(y.accounts);return Bt(g,A)&&Bt(h,y.events)&&Bt(l,y.methods)})||(a=ye("NON_CONFORMING_NAMESPACES",`${r} namespaces extension doesn't satisfy requiredNamespaces extension for ${p}`))})):a=ye("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy requiredNamespaces events for ${p}`):a=ye("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy requiredNamespaces methods for ${p}`):a=ye("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy requiredNamespaces chains for ${p}`)}):a=ye("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy requiredNamespaces`),a}var gn;function vu(){if(typeof gn>"u"){var e=new ArrayBuffer(2),t=new Uint8Array(e),r=new Uint16Array(e);if(t[0]=1,t[1]=2,r[0]===258)gn="BE";else if(r[0]===513)gn="LE";else throw new Error("unable to figure out endianess")}return gn}function gu(){return typeof global.location<"u"?global.location.hostname:""}function yu(){return[]}function wu(){return 0}function _u(){return Number.MAX_VALUE}function bu(){return Number.MAX_VALUE}function Eu(){return[]}function Su(){return"Browser"}function xu(){return typeof global.navigator<"u"?global.navigator.appVersion:""}function Du(){}function Tu(){}function Uy(){return"javascript"}function By(){return"browser"}function ao(){return"/tmp"}var Nu=ao,Ou=`
17
- `,$y={EOL:Ou,tmpdir:Nu,tmpDir:ao,networkInterfaces:Du,getNetworkInterfaces:Tu,release:xu,type:Su,cpus:Eu,totalmem:bu,freemem:_u,uptime:wu,loadavg:yu,hostname:gu,endianness:vu},jy=Object.freeze({__proto__:null,endianness:vu,hostname:gu,loadavg:yu,uptime:wu,freemem:_u,totalmem:bu,cpus:Eu,type:Su,release:xu,networkInterfaces:Du,getNetworkInterfaces:Tu,arch:Uy,platform:By,tmpDir:ao,tmpdir:Nu,EOL:Ou,default:$y}),Au=Er(jy),Vy=Iu;const io=Symbol("circular-ref-tag"),no=Symbol("pino-raw-err-ref"),Cu=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[no]},set:function(e){this[no]=e}}});Object.defineProperty(Cu,no,{writable:!0,value:{}});function Iu(e){if(!(e instanceof Error))return e;e[io]=void 0;const t=Object.create(Cu);t.type=e.constructor.name,t.message=e.message,t.stack=e.stack;for(const r in e)if(t[r]===void 0){const a=e[r];a instanceof Error?a.hasOwnProperty(io)||(t[r]=Iu(a)):t[r]=a}return delete e[io],t.raw=e,t}var ky={mapHttpRequest:zy,reqSerializer:Lu},so=Symbol("pino-raw-req-ref"),Ru=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[so]},set:function(e){this[so]=e}}});Object.defineProperty(Ru,so,{writable:!0,value:{}});function Lu(e){var t=e.info||e.connection;const r=Object.create(Ru);return r.id=typeof e.id=="function"?e.id():e.id||(e.info?e.info.id:void 0),r.method=e.method,e.originalUrl?r.url=e.originalUrl:r.url=e.path||(e.url?e.url.path||e.url:void 0),r.headers=e.headers,r.remoteAddress=t&&t.remoteAddress,r.remotePort=t&&t.remotePort,r.raw=e.raw||e,r}function zy(e){return{req:Lu(e)}}var Hy={mapHttpResponse:qy,resSerializer:Pu},po=Symbol("pino-raw-res-ref"),Fu=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[po]},set:function(e){this[po]=e}}});Object.defineProperty(Fu,po,{writable:!0,value:{}});function Pu(e){const t=Object.create(Fu);return t.statusCode=e.statusCode,t.headers=e.getHeaders?e.getHeaders():e._headers,t.raw=e,t}function qy(e){return{res:Pu(e)}}var oo=Vy,yn=ky,wn=Hy,Mu={err:oo,mapHttpRequest:yn.mapHttpRequest,mapHttpResponse:wn.mapHttpResponse,req:yn.reqSerializer,res:wn.resSerializer,wrapErrorSerializer:function(t){return t===oo?t:function(a){return t(oo(a))}},wrapRequestSerializer:function(t){return t===yn.reqSerializer?t:function(a){return t(yn.reqSerializer(a))}},wrapResponseSerializer:function(t){return t===wn.resSerializer?t:function(a){return t(wn.resSerializer(a))}}};function hi(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t}function mi(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)}var lo;function Ky(e,t,r){typeof lo!="function"&&(lo=Gy),lo(e,t,r)}function Gy(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch{return function(t,r,a){t[r]=a}}}var Uu=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function _n(){}_n.prototype={};function ar(e){if(!(this instanceof ar))return new ar(e);this.code=e}function Wy(e,t){var r=hi(global);r.push("with (this.__ctx__){return eval(this.__code__)}");var a=Function.apply(null,r);return a.apply({__code__:e,__ctx__:t})}ar.prototype.runInContext=function(e){if(!(e instanceof _n))throw new TypeError("needs a 'context' argument.");if(global.document){var t=global.document.createElement("iframe");t.style||(t.style={}),t.style.display="none",global.document.body.appendChild(t);var r=t.contentWindow,a=r.eval,i=r.execScript;!a&&i&&(i.call(r,"null"),a=r.eval),mi(hi(e),function(s){r[s]=e[s]}),mi(Uu,function(s){e[s]&&(r[s]=e[s])});var n=hi(r),p=a.call(r,this.code);return mi(hi(r),function(s){(s in e||Jy(n,s)===-1)&&(e[s]=r[s])}),mi(Uu,function(s){s in e||Ky(e,s,r[s])}),global.document.body.removeChild(t),p}return Wy(this.code,e)},ar.prototype.runInThisContext=function(){var e=new Function("code","return eval(code);");return e.call(global,this.code)},ar.prototype.runInNewContext=function(e){var t=uo(e),r=this.runInContext(t);return e&&mi(hi(t),function(a){e[a]=t[a]}),r};function Bu(e){return new ar(e)}function uo(e){if(co(e))return e;var t=new _n;return typeof e=="object"&&mi(hi(e),function(r){t[r]=e[r]}),t}function $u(e,t,r){var a=new ar(e);return a.runInContext(t,r)}function ju(e,t){var r=new ar(e);return r.runInThisContext(t)}function co(e){return e instanceof _n}function Vu(e,t,r){var a=new ar(e);return a.runInNewContext(t,r)}var Zy={runInContext:$u,isContext:co,createContext:uo,createScript:Bu,Script:ar,runInThisContext:ju,runInNewContext:Vu},Yy=[].indexOf;function Jy(e,t){if(Yy)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}var Xy=Object.freeze({__proto__:null,Script:ar,createScript:Bu,createContext:uo,runInContext:$u,runInThisContext:ju,isContext:co,runInNewContext:Vu,default:Zy}),Qy=Er(Xy);const{createContext:ew,runInContext:tw}=Qy;var rw=aw;function aw(e={}){const{ERR_PATHS_MUST_BE_STRINGS:t=()=>"fast-redact - Paths must be (non-empty) strings",ERR_INVALID_PATH:r=a=>`fast-redact \u2013 Invalid path (${a})`}=e;return function({paths:i}){i.forEach(n=>{if(typeof n!="string")throw Error(t());try{if(/〇/.test(n))throw Error();const p=new Proxy({},{get:()=>p,set:()=>{throw Error()}}),s=(n[0]==="["?"":".")+n.replace(/^\*/,"\u3007").replace(/\.\*/g,".\u3007").replace(/\[\*\]/g,"[\u3007]");if(/\n|\r|;/.test(s)||/\/\*/.test(s))throw Error();tw(`
18
- (function () {
19
- 'use strict'
20
- o${s}
21
- if ([o${s}].length !== 1) throw Error()
22
- })()
23
- `,ew({o:p,"\u3007":null}),{codeGeneration:{strings:!1,wasm:!1}})}catch{throw Error(r(n))}})}}var fo=/[^.[\]]+|\[((?:.)*?)\]/g;const iw=fo;var nw=sw;function sw({paths:e}){const t=[];var r=0;const a=e.reduce(function(i,n,p){var s=n.match(iw).map(l=>l.replace(/'|"|`/g,""));const o=n[0]==="[";s=s.map(l=>l[0]==="["?l.substr(1,l.length-2):l);const d=s.indexOf("*");if(d>-1){const l=s.slice(0,d),h=l.join("."),g=s.slice(d+1,s.length),v=g.length>0;r++,t.push({before:l,beforeStr:h,after:g,nested:v})}else i[n]={path:s,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(n),leadingBracket:o};return i},{});return{wildcards:t,wcLen:r,secret:a}}const pw=fo;var ow=dw;function dw({secret:e,serialize:t,wcLen:r,strict:a,isCensorFct:i,censorFctTakesPath:n},p){const s=Function("o",`
24
- if (typeof o !== 'object' || o == null) {
25
- ${fw(a,t)}
26
- }
27
- const { censor, secret } = this
28
- ${lw(e,i,n)}
29
- this.compileRestore()
30
- ${uw(r>0,i,n)}
31
- ${cw(t)}
32
- `).bind(p);return t===!1&&(s.restore=o=>p.restore(o)),s}function lw(e,t,r){return Object.keys(e).map(a=>{const{escPath:i,leadingBracket:n,path:p}=e[a],s=n?1:0,o=n?"":".",d=[];for(var l;(l=pw.exec(a))!==null;){const[,y]=l,{index:A,input:E}=l;A>s&&d.push(E.substring(0,A-(y?0:1)))}var h=d.map(y=>`o${o}${y}`).join(" && ");h.length===0?h+=`o${o}${a} != null`:h+=` && o${o}${a} != null`;const g=`
33
- switch (true) {
34
- ${d.reverse().map(y=>`
35
- case o${o}${y} === censor:
36
- secret[${i}].circle = ${JSON.stringify(y)}
37
- break
38
- `).join(`
39
- `)}
40
- }
41
- `,v=r?`val, ${JSON.stringify(p)}`:"val";return`
42
- if (${h}) {
43
- const val = o${o}${a}
44
- if (val === censor) {
45
- secret[${i}].precensored = true
46
- } else {
47
- secret[${i}].val = val
48
- o${o}${a} = ${t?`censor(${v})`:"censor"}
49
- ${g}
50
- }
51
- }
52
- `}).join(`
53
- `)}function uw(e,t,r){return e===!0?`
54
- {
55
- const { wildcards, wcLen, groupRedact, nestedRedact } = this
56
- for (var i = 0; i < wcLen; i++) {
57
- const { before, beforeStr, after, nested } = wildcards[i]
58
- if (nested === true) {
59
- secret[beforeStr] = secret[beforeStr] || []
60
- nestedRedact(secret[beforeStr], o, before, after, censor, ${t}, ${r})
61
- } else secret[beforeStr] = groupRedact(o, before, censor, ${t}, ${r})
62
- }
63
- }
64
- `:""}function cw(e){return e===!1?"return o":`
65
- var s = this.serialize(o)
66
- this.restore(o)
67
- return s
68
- `}function fw(e,t){return e===!0?"throw Error('fast-redact: primitives cannot be redacted')":t===!1?"return o":"return this.serialize(o)"}var ku={groupRedact:mw,groupRestore:hw,nestedRedact:gw,nestedRestore:vw};function hw({keys:e,values:t,target:r}){if(r==null)return;const a=e.length;for(var i=0;i<a;i++){const n=e[i];r[n]=t[i]}}function mw(e,t,r,a,i){const n=zu(e,t);if(n==null)return{keys:null,values:null,target:null,flat:!0};const p=Object.keys(n),s=p.length,o=t.length,d=i?[...t]:void 0,l=new Array(s);for(var h=0;h<s;h++){const g=p[h];l[h]=n[g],i?(d[o]=g,n[g]=r(n[g],d)):a?n[g]=r(n[g]):n[g]=r}return{keys:p,values:l,target:n,flat:!0}}function vw(e){const t=e.length;for(var r=0;r<t;r++){const{key:i,target:n,value:p}=e[r];if(bn(n,i)&&(n[i]=p),typeof n=="object"){const s=Object.keys(n);for(var a=0;a<s.length;a++){const o=s[a],d=n[o];bn(d,i)&&(d[i]=p)}}}}function gw(e,t,r,a,i,n,p){const s=zu(t,r);if(s==null)return;const o=Object.keys(s),d=o.length;for(var l=0;l<d;l++){const h=o[l],{value:g,parent:v,exists:y}=yw(s,h,r,a,i,n,p);y===!0&&v!==null&&e.push({key:a[a.length-1],target:v,value:g})}return e}function bn(e,t){return e!=null?"hasOwn"in Object?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t):!1}function yw(e,t,r,a,i,n,p){const s=a.length,o=s-1,d=t;var l=-1,h,g,v,y=null,A=!0,E=null;if(v=h=e[t],typeof h!="object")return{value:null,parent:null,exists:A};for(;h!=null&&++l<s;){if(t=a[l],y=v,t!=="*"&&!E&&!(typeof h=="object"&&t in h)){A=!1;break}if(!(t==="*"&&(E=t,l!==o))){if(E){const C=Object.keys(h);for(var D=0;D<C.length;D++){const B=C[D],S=h[B],x=t==="*";(x||typeof S=="object"&&S!==null&&t in S)&&(x?v=S:v=S[t],g=l!==o?v:n?p?i(v,[...r,d,...a]):i(v):i,x?h[B]=g:S[t]=g===void 0&&i!==void 0||bn(S,t)&&g===v?S[t]:g)}E=null}else v=h[t],g=l!==o?v:n?p?i(v,[...r,d,...a]):i(v):i,h[t]=bn(h,t)&&g===v||g===void 0&&i!==void 0?h[t]:g,h=h[t];if(typeof h!="object")break}}return{value:v,parent:y,exists:A}}function zu(e,t){for(var r=-1,a=t.length,i=e;i!=null&&++r<a;)i=i[t[r]];return i}const{groupRestore:ww,nestedRestore:_w}=ku;var bw=Ew;function Ew({secret:e,wcLen:t}){return function(){if(this.restore)return;const a=Object.keys(e),i=Sw(e,a),n=t>0,p=n?{secret:e,groupRestore:ww,nestedRestore:_w}:{secret:e};this.restore=Function("o",xw(i,a,n)).bind(p)}}function Sw(e,t){return t.map(r=>{const{circle:a,escPath:i,leadingBracket:n}=e[r],s=a?`o.${a} = secret[${i}].val`:`o${n?"":"."}${r} = secret[${i}].val`,o=`secret[${i}].val = undefined`;return`
69
- if (secret[${i}].val !== undefined) {
70
- try { ${s} } catch (e) {}
71
- ${o}
72
- }
73
- `}).join("")}function xw(e,t,r){return`
74
- const secret = this.secret
75
- ${r===!0?`
76
- const keys = Object.keys(secret)
77
- const len = keys.length
78
- for (var i = len - 1; i >= ${t.length}; i--) {
79
- const k = keys[i]
80
- const o = secret[k]
81
- if (o.flat === true) this.groupRestore(o)
82
- else this.nestedRestore(o)
83
- secret[k] = null
84
- }
85
- `:""}
86
- ${e}
87
- return o
88
- `}var Dw=Tw;function Tw(e){const{secret:t,censor:r,compileRestore:a,serialize:i,groupRedact:n,nestedRedact:p,wildcards:s,wcLen:o}=e,d=[{secret:t,censor:r,compileRestore:a}];return i!==!1&&d.push({serialize:i}),o>0&&d.push({groupRedact:n,nestedRedact:p,wildcards:s,wcLen:o}),Object.assign(...d)}const Hu=rw,Nw=nw,Ow=ow,Aw=bw,{groupRedact:Cw,nestedRedact:Iw}=ku,Rw=Dw,Lw=fo,Fw=Hu(),ho=e=>e;ho.restore=ho;const Pw="[REDACTED]";mo.rx=Lw,mo.validator=Hu;var Mw=mo;function mo(e={}){const t=Array.from(new Set(e.paths||[])),r="serialize"in e&&(e.serialize===!1||typeof e.serialize=="function")?e.serialize:JSON.stringify,a=e.remove;if(a===!0&&r!==JSON.stringify)throw Error("fast-redact \u2013 remove option may only be set when serializer is JSON.stringify");const i=a===!0?void 0:"censor"in e?e.censor:Pw,n=typeof i=="function",p=n&&i.length>1;if(t.length===0)return r||ho;Fw({paths:t,serialize:r,censor:i});const{wildcards:s,wcLen:o,secret:d}=Nw({paths:t,censor:i}),l=Aw({secret:d,wcLen:o}),h="strict"in e?e.strict:!0;return Ow({secret:d,wcLen:o,serialize:r,strict:h,isCensorFct:n,censorFctTakesPath:p},Rw({secret:d,censor:i,compileRestore:l,serialize:r,groupRedact:Cw,nestedRedact:Iw,wildcards:s,wcLen:o}))}const Uw=Symbol("pino.setLevel"),Bw=Symbol("pino.getLevel"),$w=Symbol("pino.levelVal"),jw=Symbol("pino.useLevelLabels"),Vw=Symbol("pino.useOnlyCustomLevels"),kw=Symbol("pino.mixin"),zw=Symbol("pino.lsCache"),Hw=Symbol("pino.chindings"),qw=Symbol("pino.parsedChindings"),Kw=Symbol("pino.asJson"),Gw=Symbol("pino.write"),Ww=Symbol("pino.redactFmt"),Zw=Symbol("pino.time"),Yw=Symbol("pino.timeSliceIndex"),Jw=Symbol("pino.stream"),Xw=Symbol("pino.stringify"),Qw=Symbol("pino.stringifiers"),e_=Symbol("pino.end"),t_=Symbol("pino.formatOpts"),r_=Symbol("pino.messageKey"),a_=Symbol("pino.nestedKey"),i_=Symbol("pino.wildcardFirst"),n_=Symbol.for("pino.serializers"),s_=Symbol.for("pino.formatters"),p_=Symbol.for("pino.hooks"),o_=Symbol.for("pino.metadata");var o1={setLevelSym:Uw,getLevelSym:Bw,levelValSym:$w,useLevelLabelsSym:jw,mixinSym:kw,lsCacheSym:zw,chindingsSym:Hw,parsedChindingsSym:qw,asJsonSym:Kw,writeSym:Gw,serializersSym:n_,redactFmtSym:Ww,timeSym:Zw,timeSliceIndexSym:Yw,streamSym:Jw,stringifySym:Xw,stringifiersSym:Qw,endSym:e_,formatOptsSym:t_,messageKeySym:r_,nestedKeySym:a_,wildcardFirstSym:i_,needsMetadataGsym:o_,useOnlyCustomLevelsSym:Vw,formattersSym:s_,hooksSym:p_};const vo=Mw,{redactFmtSym:d_,wildcardFirstSym:En}=o1,{rx:go,validator:l_}=vo,qu=l_({ERR_PATHS_MUST_BE_STRINGS:()=>"pino \u2013 redacted paths must be strings",ERR_INVALID_PATH:e=>`pino \u2013 redact paths array contains an invalid path (${e})`}),Ku="[Redacted]",Gu=!1;function u_(e,t){const{paths:r,censor:a}=c_(e),i=r.reduce((s,o)=>{go.lastIndex=0;const d=go.exec(o),l=go.exec(o);let h=d[1]!==void 0?d[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):d[0];if(h==="*"&&(h=En),l===null)return s[h]=null,s;if(s[h]===null)return s;const{index:g}=l,v=`${o.substr(g,o.length-1)}`;return s[h]=s[h]||[],h!==En&&s[h].length===0&&s[h].push(...s[En]||[]),h===En&&Object.keys(s).forEach(function(y){s[y]&&s[y].push(v)}),s[h].push(v),s},{}),n={[d_]:vo({paths:r,censor:a,serialize:t,strict:Gu})},p=(...s)=>t(typeof a=="function"?a(...s):a);return[...Object.keys(i),...Object.getOwnPropertySymbols(i)].reduce((s,o)=>{if(i[o]===null)s[o]=d=>p(d,[o]);else{const d=typeof a=="function"?(l,h)=>a(l,[o,...h]):a;s[o]=vo({paths:i[o],censor:d,serialize:t,strict:Gu})}return s},n)}function c_(e){if(Array.isArray(e))return e={paths:e,censor:Ku},qu(e),e;var{paths:t,censor:r=Ku,remove:a}=e;if(Array.isArray(t)===!1)throw Error("pino \u2013 redact must contain an array of strings");return a===!0&&(r=void 0),qu({paths:t,censor:r}),{paths:t,censor:r}}var f_=u_,h_={nullTime:()=>"",epochTime:()=>`,"time":${Date.now()}`,unixTime:()=>`,"time":${Math.round(Date.now()/1e3)}`,isoTime:()=>`,"time":"${new Date(Date.now()).toISOString()}"`};function m_(e){return e}var Wu=m_,yo={exports:{}};if(typeof SharedArrayBuffer<"u"&&typeof Atomics<"u"){let t=function(r){if((r>0&&r<1/0)===!1)throw typeof r!="number"&&typeof r!="bigint"?TypeError("sleep: ms must be a number"):RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity");Atomics.wait(e,0,0,Number(r))};const e=new Int32Array(new SharedArrayBuffer(4));yo.exports=t}else{let e=function(t){if((t>0&&t<1/0)===!1)throw typeof t!="number"&&typeof t!="bigint"?TypeError("sleep: ms must be a number"):RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")};yo.exports=e}const mr=t1,v_=It,g_=P1().inherits,wo=100,Zu=yo.exports,_o=16*1024*1024;function Yu(e,t){t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1;function r(a,i){if(a){t._reopening=!1,t._writing=!1,t._opening=!1,t.sync?process.nextTick(()=>{t.listenerCount("error")>0&&t.emit("error",a)}):t.emit("error",a);return}if(t.fd=i,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick(()=>t.emit("ready")):t.emit("ready"),t._reopening)return;const n=t._buf.length;n>0&&n>t.minLength&&!t.destroyed&&vi(t)}if(t.sync)try{const a=mr.openSync(e,"a");r(null,a)}catch(a){throw r(a),a}else mr.open(e,"a",r)}function vr(e){if(!(this instanceof vr))return new vr(e);let{fd:t,dest:r,minLength:a,sync:i}=e||{};if(t=t||r,this._buf="",this.fd=-1,this._writing=!1,this._writingBuf="",this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this.file=null,this.destroyed=!1,this.sync=i||!1,this.minLength=a||0,typeof t=="number")this.fd=t,process.nextTick(()=>this.emit("ready"));else if(typeof t=="string")Yu(t,this);else throw new Error("SonicBoom supports only file descriptors and files");this.release=(n,p)=>{if(n){if(n.code==="EAGAIN")if(this.sync)try{Zu(wo),this.release(void 0,0)}catch(o){this.release(o)}else setTimeout(()=>{mr.write(this.fd,this._writingBuf,"utf8",this.release)},wo);else this._buf=this._writingBuf+this._buf,this._writingBuf="",this._writing=!1,this.emit("error",n);return}if(this._writingBuf.length!==p)if(this._writingBuf=this._writingBuf.slice(p),this.sync)try{do p=mr.writeSync(this.fd,this._writingBuf,"utf8"),this._writingBuf=this._writingBuf.slice(p);while(this._writingBuf.length!==0)}catch(o){this.release(o);return}else{mr.write(this.fd,this._writingBuf,"utf8",this.release);return}if(this._writingBuf="",this.destroyed)return;const s=this._buf.length;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):s>0&&s>this.minLength?vi(this):this._ending?s>0?vi(this):(this._writing=!1,Sn(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(y_,this)):this.emit("drain"))},this.on("newListener",function(n){n==="drain"&&(this._asyncDrainScheduled=!1)})}function y_(e){e.listenerCount("drain")>0&&(e._asyncDrainScheduled=!1,e.emit("drain"))}g_(vr,v_),vr.prototype.write=function(e){if(this.destroyed)throw new Error("SonicBoom destroyed");this._buf+=e;const t=this._buf.length;return!this._writing&&t>this.minLength&&vi(this),t<16384},vr.prototype.flush=function(){if(this.destroyed)throw new Error("SonicBoom destroyed");this._writing||this.minLength<=0||vi(this)},vr.prototype.reopen=function(e){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(e)});return}if(this._ending)return;if(!this.file)throw new Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(this._reopening=!0,this._writing)return;const t=this.fd;this.once("ready",()=>{t!==this.fd&&mr.close(t,r=>{if(r)return this.emit("error",r)})}),Yu(e||this.file,this)},vr.prototype.end=function(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}if(!this._ending){if(this._ending=!0,!this._writing&&this._buf.length>0&&this.fd>=0){vi(this);return}this._writing||Sn(this)}},vr.prototype.flushSync=function(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this.fd<0)throw new Error("sonic boom is not ready yet");for(;this._buf.length>0;)try{mr.writeSync(this.fd,this._buf,"utf8"),this._buf=""}catch(e){if(e.code!=="EAGAIN")throw e;Zu(wo)}},vr.prototype.destroy=function(){this.destroyed||Sn(this)};function vi(e){e._writing=!0;let t=e._buf;const r=e.release;if(t.length>_o?(t=t.slice(0,_o),e._buf=e._buf.slice(_o)):e._buf="",e._writingBuf=t,e.sync)try{const a=mr.writeSync(e.fd,t,"utf8");r(null,a)}catch(a){r(a)}else mr.write(e.fd,t,"utf8",r)}function Sn(e){if(e.fd===-1){e.once("ready",Sn.bind(null,e));return}mr.close(e.fd,t=>{if(t){e.emit("error",t);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}),e.destroyed=!0,e._buf=""}var Ju=vr;function w_(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}var __=b_;function b_(e,t,r){var a=r&&r.stringify||w_,i=1;if(typeof e=="object"&&e!==null){var n=t.length+i;if(n===1)return e;var p=new Array(n);p[0]=a(e);for(var s=1;s<n;s++)p[s]=a(t[s]);return p.join(" ")}if(typeof e!="string")return e;var o=t.length;if(o===0)return e;for(var d="",l=1-i,h=-1,g=e&&e.length||0,v=0;v<g;){if(e.charCodeAt(v)===37&&v+1<g){switch(h=h>-1?h:0,e.charCodeAt(v+1)){case 100:case 102:if(l>=o||t[l]==null)break;h<v&&(d+=e.slice(h,v)),d+=Number(t[l]),h=v+2,v++;break;case 105:if(l>=o||t[l]==null)break;h<v&&(d+=e.slice(h,v)),d+=Math.floor(Number(t[l])),h=v+2,v++;break;case 79:case 111:case 106:if(l>=o||t[l]===void 0)break;h<v&&(d+=e.slice(h,v));var y=typeof t[l];if(y==="string"){d+="'"+t[l]+"'",h=v+2,v++;break}if(y==="function"){d+=t[l].name||"<anonymous>",h=v+2,v++;break}d+=a(t[l]),h=v+2,v++;break;case 115:if(l>=o)break;h<v&&(d+=e.slice(h,v)),d+=String(t[l]),h=v+2,v++;break;case 37:h<v&&(d+=e.slice(h,v)),d+="%",h=v+2,v++,l--;break}++l}++v}return h===-1?e:(h<g&&(d+=e.slice(h)),d)}var Xu=d1;d1.default=d1,d1.stable=t4,d1.stableStringify=t4;var xn="[...]",Qu="[Circular]",Ra=[],La=[];function e4(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function d1(e,t,r,a){typeof a>"u"&&(a=e4()),bo(e,"",0,[],void 0,0,a);var i;try{La.length===0?i=JSON.stringify(e,t,r):i=JSON.stringify(e,r4(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Ra.length!==0;){var n=Ra.pop();n.length===4?Object.defineProperty(n[0],n[1],n[3]):n[0][n[1]]=n[2]}}return i}function gi(e,t,r,a){var i=Object.getOwnPropertyDescriptor(a,r);i.get!==void 0?i.configurable?(Object.defineProperty(a,r,{value:e}),Ra.push([a,r,t,i])):La.push([t,r,e]):(a[r]=e,Ra.push([a,r,t]))}function bo(e,t,r,a,i,n,p){n+=1;var s;if(typeof e=="object"&&e!==null){for(s=0;s<a.length;s++)if(a[s]===e){gi(Qu,e,t,i);return}if(typeof p.depthLimit<"u"&&n>p.depthLimit){gi(xn,e,t,i);return}if(typeof p.edgesLimit<"u"&&r+1>p.edgesLimit){gi(xn,e,t,i);return}if(a.push(e),Array.isArray(e))for(s=0;s<e.length;s++)bo(e[s],s,s,a,e,n,p);else{var o=Object.keys(e);for(s=0;s<o.length;s++){var d=o[s];bo(e[d],d,s,a,e,n,p)}}a.pop()}}function E_(e,t){return e<t?-1:e>t?1:0}function t4(e,t,r,a){typeof a>"u"&&(a=e4());var i=Eo(e,"",0,[],void 0,0,a)||e,n;try{La.length===0?n=JSON.stringify(i,t,r):n=JSON.stringify(i,r4(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Ra.length!==0;){var p=Ra.pop();p.length===4?Object.defineProperty(p[0],p[1],p[3]):p[0][p[1]]=p[2]}}return n}function Eo(e,t,r,a,i,n,p){n+=1;var s;if(typeof e=="object"&&e!==null){for(s=0;s<a.length;s++)if(a[s]===e){gi(Qu,e,t,i);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof p.depthLimit<"u"&&n>p.depthLimit){gi(xn,e,t,i);return}if(typeof p.edgesLimit<"u"&&r+1>p.edgesLimit){gi(xn,e,t,i);return}if(a.push(e),Array.isArray(e))for(s=0;s<e.length;s++)Eo(e[s],s,s,a,e,n,p);else{var o={},d=Object.keys(e).sort(E_);for(s=0;s<d.length;s++){var l=d[s];Eo(e[l],l,s,a,e,n,p),o[l]=e[l]}if(typeof i<"u")Ra.push([i,t,e]),i[t]=o;else return o}a.pop()}}function r4(e){return e=typeof e<"u"?e:function(t,r){return r},function(t,r){if(La.length>0)for(var a=0;a<La.length;a++){var i=La[a];if(i[1]===t&&i[0]===r){r=i[2],La.splice(a,1);break}}return e.call(this,t,r)}}var So={exports:{}},xo,a4;function S_(){return a4||(a4=1,xo={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),xo}var Do,i4;function n4(){if(i4)return Do;i4=1;const e=S_(),t={};for(const i of Object.keys(e))t[e[i]]=i;const r={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Do=r;for(const i of Object.keys(r)){if(!("channels"in r[i]))throw new Error("missing channels property: "+i);if(!("labels"in r[i]))throw new Error("missing channel labels property: "+i);if(r[i].labels.length!==r[i].channels)throw new Error("channel and label counts mismatch: "+i);const{channels:n,labels:p}=r[i];delete r[i].channels,delete r[i].labels,Object.defineProperty(r[i],"channels",{value:n}),Object.defineProperty(r[i],"labels",{value:p})}r.rgb.hsl=function(i){const n=i[0]/255,p=i[1]/255,s=i[2]/255,o=Math.min(n,p,s),d=Math.max(n,p,s),l=d-o;let h,g;d===o?h=0:n===d?h=(p-s)/l:p===d?h=2+(s-n)/l:s===d&&(h=4+(n-p)/l),h=Math.min(h*60,360),h<0&&(h+=360);const v=(o+d)/2;return d===o?g=0:v<=.5?g=l/(d+o):g=l/(2-d-o),[h,g*100,v*100]},r.rgb.hsv=function(i){let n,p,s,o,d;const l=i[0]/255,h=i[1]/255,g=i[2]/255,v=Math.max(l,h,g),y=v-Math.min(l,h,g),A=function(E){return(v-E)/6/y+1/2};return y===0?(o=0,d=0):(d=y/v,n=A(l),p=A(h),s=A(g),l===v?o=s-p:h===v?o=1/3+n-s:g===v&&(o=2/3+p-n),o<0?o+=1:o>1&&(o-=1)),[o*360,d*100,v*100]},r.rgb.hwb=function(i){const n=i[0],p=i[1];let s=i[2];const o=r.rgb.hsl(i)[0],d=1/255*Math.min(n,Math.min(p,s));return s=1-1/255*Math.max(n,Math.max(p,s)),[o,d*100,s*100]},r.rgb.cmyk=function(i){const n=i[0]/255,p=i[1]/255,s=i[2]/255,o=Math.min(1-n,1-p,1-s),d=(1-n-o)/(1-o)||0,l=(1-p-o)/(1-o)||0,h=(1-s-o)/(1-o)||0;return[d*100,l*100,h*100,o*100]};function a(i,n){return(i[0]-n[0])**2+(i[1]-n[1])**2+(i[2]-n[2])**2}return r.rgb.keyword=function(i){const n=t[i];if(n)return n;let p=1/0,s;for(const o of Object.keys(e)){const d=e[o],l=a(i,d);l<p&&(p=l,s=o)}return s},r.keyword.rgb=function(i){return e[i]},r.rgb.xyz=function(i){let n=i[0]/255,p=i[1]/255,s=i[2]/255;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,p=p>.04045?((p+.055)/1.055)**2.4:p/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92;const o=n*.4124+p*.3576+s*.1805,d=n*.2126+p*.7152+s*.0722,l=n*.0193+p*.1192+s*.9505;return[o*100,d*100,l*100]},r.rgb.lab=function(i){const n=r.rgb.xyz(i);let p=n[0],s=n[1],o=n[2];p/=95.047,s/=100,o/=108.883,p=p>.008856?p**(1/3):7.787*p+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const d=116*s-16,l=500*(p-s),h=200*(s-o);return[d,l,h]},r.hsl.rgb=function(i){const n=i[0]/360,p=i[1]/100,s=i[2]/100;let o,d,l;if(p===0)return l=s*255,[l,l,l];s<.5?o=s*(1+p):o=s+p-s*p;const h=2*s-o,g=[0,0,0];for(let v=0;v<3;v++)d=n+1/3*-(v-1),d<0&&d++,d>1&&d--,6*d<1?l=h+(o-h)*6*d:2*d<1?l=o:3*d<2?l=h+(o-h)*(2/3-d)*6:l=h,g[v]=l*255;return g},r.hsl.hsv=function(i){const n=i[0];let p=i[1]/100,s=i[2]/100,o=p;const d=Math.max(s,.01);s*=2,p*=s<=1?s:2-s,o*=d<=1?d:2-d;const l=(s+p)/2,h=s===0?2*o/(d+o):2*p/(s+p);return[n,h*100,l*100]},r.hsv.rgb=function(i){const n=i[0]/60,p=i[1]/100;let s=i[2]/100;const o=Math.floor(n)%6,d=n-Math.floor(n),l=255*s*(1-p),h=255*s*(1-p*d),g=255*s*(1-p*(1-d));switch(s*=255,o){case 0:return[s,g,l];case 1:return[h,s,l];case 2:return[l,s,g];case 3:return[l,h,s];case 4:return[g,l,s];case 5:return[s,l,h]}},r.hsv.hsl=function(i){const n=i[0],p=i[1]/100,s=i[2]/100,o=Math.max(s,.01);let d,l;l=(2-p)*s;const h=(2-p)*o;return d=p*o,d/=h<=1?h:2-h,d=d||0,l/=2,[n,d*100,l*100]},r.hwb.rgb=function(i){const n=i[0]/360;let p=i[1]/100,s=i[2]/100;const o=p+s;let d;o>1&&(p/=o,s/=o);const l=Math.floor(6*n),h=1-s;d=6*n-l,(l&1)!==0&&(d=1-d);const g=p+d*(h-p);let v,y,A;switch(l){default:case 6:case 0:v=h,y=g,A=p;break;case 1:v=g,y=h,A=p;break;case 2:v=p,y=h,A=g;break;case 3:v=p,y=g,A=h;break;case 4:v=g,y=p,A=h;break;case 5:v=h,y=p,A=g;break}return[v*255,y*255,A*255]},r.cmyk.rgb=function(i){const n=i[0]/100,p=i[1]/100,s=i[2]/100,o=i[3]/100,d=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,p*(1-o)+o),h=1-Math.min(1,s*(1-o)+o);return[d*255,l*255,h*255]},r.xyz.rgb=function(i){const n=i[0]/100,p=i[1]/100,s=i[2]/100;let o,d,l;return o=n*3.2406+p*-1.5372+s*-.4986,d=n*-.9689+p*1.8758+s*.0415,l=n*.0557+p*-.204+s*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,d=d>.0031308?1.055*d**(1/2.4)-.055:d*12.92,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,o=Math.min(Math.max(0,o),1),d=Math.min(Math.max(0,d),1),l=Math.min(Math.max(0,l),1),[o*255,d*255,l*255]},r.xyz.lab=function(i){let n=i[0],p=i[1],s=i[2];n/=95.047,p/=100,s/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,p=p>.008856?p**(1/3):7.787*p+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;const o=116*p-16,d=500*(n-p),l=200*(p-s);return[o,d,l]},r.lab.xyz=function(i){const n=i[0],p=i[1],s=i[2];let o,d,l;d=(n+16)/116,o=p/500+d,l=d-s/200;const h=d**3,g=o**3,v=l**3;return d=h>.008856?h:(d-16/116)/7.787,o=g>.008856?g:(o-16/116)/7.787,l=v>.008856?v:(l-16/116)/7.787,o*=95.047,d*=100,l*=108.883,[o,d,l]},r.lab.lch=function(i){const n=i[0],p=i[1],s=i[2];let o;o=Math.atan2(s,p)*360/2/Math.PI,o<0&&(o+=360);const l=Math.sqrt(p*p+s*s);return[n,l,o]},r.lch.lab=function(i){const n=i[0],p=i[1],o=i[2]/360*2*Math.PI,d=p*Math.cos(o),l=p*Math.sin(o);return[n,d,l]},r.rgb.ansi16=function(i,n=null){const[p,s,o]=i;let d=n===null?r.rgb.hsv(i)[2]:n;if(d=Math.round(d/50),d===0)return 30;let l=30+(Math.round(o/255)<<2|Math.round(s/255)<<1|Math.round(p/255));return d===2&&(l+=60),l},r.hsv.ansi16=function(i){return r.rgb.ansi16(r.hsv.rgb(i),i[2])},r.rgb.ansi256=function(i){const n=i[0],p=i[1],s=i[2];return n===p&&p===s?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(p/255*5)+Math.round(s/255*5)},r.ansi16.rgb=function(i){let n=i%10;if(n===0||n===7)return i>50&&(n+=3.5),n=n/10.5*255,[n,n,n];const p=(~~(i>50)+1)*.5,s=(n&1)*p*255,o=(n>>1&1)*p*255,d=(n>>2&1)*p*255;return[s,o,d]},r.ansi256.rgb=function(i){if(i>=232){const d=(i-232)*10+8;return[d,d,d]}i-=16;let n;const p=Math.floor(i/36)/5*255,s=Math.floor((n=i%36)/6)/5*255,o=n%6/5*255;return[p,s,o]},r.rgb.hex=function(i){const p=(((Math.round(i[0])&255)<<16)+((Math.round(i[1])&255)<<8)+(Math.round(i[2])&255)).toString(16).toUpperCase();return"000000".substring(p.length)+p},r.hex.rgb=function(i){const n=i.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];let p=n[0];n[0].length===3&&(p=p.split("").map(h=>h+h).join(""));const s=parseInt(p,16),o=s>>16&255,d=s>>8&255,l=s&255;return[o,d,l]},r.rgb.hcg=function(i){const n=i[0]/255,p=i[1]/255,s=i[2]/255,o=Math.max(Math.max(n,p),s),d=Math.min(Math.min(n,p),s),l=o-d;let h,g;return l<1?h=d/(1-l):h=0,l<=0?g=0:o===n?g=(p-s)/l%6:o===p?g=2+(s-n)/l:g=4+(n-p)/l,g/=6,g%=1,[g*360,l*100,h*100]},r.hsl.hcg=function(i){const n=i[1]/100,p=i[2]/100,s=p<.5?2*n*p:2*n*(1-p);let o=0;return s<1&&(o=(p-.5*s)/(1-s)),[i[0],s*100,o*100]},r.hsv.hcg=function(i){const n=i[1]/100,p=i[2]/100,s=n*p;let o=0;return s<1&&(o=(p-s)/(1-s)),[i[0],s*100,o*100]},r.hcg.rgb=function(i){const n=i[0]/360,p=i[1]/100,s=i[2]/100;if(p===0)return[s*255,s*255,s*255];const o=[0,0,0],d=n%1*6,l=d%1,h=1-l;let g=0;switch(Math.floor(d)){case 0:o[0]=1,o[1]=l,o[2]=0;break;case 1:o[0]=h,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=l;break;case 3:o[0]=0,o[1]=h,o[2]=1;break;case 4:o[0]=l,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=h}return g=(1-p)*s,[(p*o[0]+g)*255,(p*o[1]+g)*255,(p*o[2]+g)*255]},r.hcg.hsv=function(i){const n=i[1]/100,p=i[2]/100,s=n+p*(1-n);let o=0;return s>0&&(o=n/s),[i[0],o*100,s*100]},r.hcg.hsl=function(i){const n=i[1]/100,s=i[2]/100*(1-n)+.5*n;let o=0;return s>0&&s<.5?o=n/(2*s):s>=.5&&s<1&&(o=n/(2*(1-s))),[i[0],o*100,s*100]},r.hcg.hwb=function(i){const n=i[1]/100,p=i[2]/100,s=n+p*(1-n);return[i[0],(s-n)*100,(1-s)*100]},r.hwb.hcg=function(i){const n=i[1]/100,p=i[2]/100,s=1-p,o=s-n;let d=0;return o<1&&(d=(s-o)/(1-o)),[i[0],o*100,d*100]},r.apple.rgb=function(i){return[i[0]/65535*255,i[1]/65535*255,i[2]/65535*255]},r.rgb.apple=function(i){return[i[0]/255*65535,i[1]/255*65535,i[2]/255*65535]},r.gray.rgb=function(i){return[i[0]/100*255,i[0]/100*255,i[0]/100*255]},r.gray.hsl=function(i){return[0,0,i[0]]},r.gray.hsv=r.gray.hsl,r.gray.hwb=function(i){return[0,100,i[0]]},r.gray.cmyk=function(i){return[0,0,0,i[0]]},r.gray.lab=function(i){return[i[0],0,0]},r.gray.hex=function(i){const n=Math.round(i[0]/100*255)&255,s=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".substring(s.length)+s},r.rgb.gray=function(i){return[(i[0]+i[1]+i[2])/3/255*100]},Do}var To,s4;function x_(){if(s4)return To;s4=1;const e=n4();function t(){const n={},p=Object.keys(e);for(let s=p.length,o=0;o<s;o++)n[p[o]]={distance:-1,parent:null};return n}function r(n){const p=t(),s=[n];for(p[n].distance=0;s.length;){const o=s.pop(),d=Object.keys(e[o]);for(let l=d.length,h=0;h<l;h++){const g=d[h],v=p[g];v.distance===-1&&(v.distance=p[o].distance+1,v.parent=o,s.unshift(g))}}return p}function a(n,p){return function(s){return p(n(s))}}function i(n,p){const s=[p[n].parent,n];let o=e[p[n].parent][n],d=p[n].parent;for(;p[d].parent;)s.unshift(p[d].parent),o=a(e[p[d].parent][d],o),d=p[d].parent;return o.conversion=s,o}return To=function(n){const p=r(n),s={},o=Object.keys(p);for(let d=o.length,l=0;l<d;l++){const h=o[l];p[h].parent!==null&&(s[h]=i(h,p))}return s},To}var No,p4;function D_(){if(p4)return No;p4=1;const e=n4(),t=x_(),r={},a=Object.keys(e);function i(p){const s=function(...o){const d=o[0];return d==null?d:(d.length>1&&(o=d),p(o))};return"conversion"in p&&(s.conversion=p.conversion),s}function n(p){const s=function(...o){const d=o[0];if(d==null)return d;d.length>1&&(o=d);const l=p(o);if(typeof l=="object")for(let h=l.length,g=0;g<h;g++)l[g]=Math.round(l[g]);return l};return"conversion"in p&&(s.conversion=p.conversion),s}return a.forEach(p=>{r[p]={},Object.defineProperty(r[p],"channels",{value:e[p].channels}),Object.defineProperty(r[p],"labels",{value:e[p].labels});const s=t(p);Object.keys(s).forEach(d=>{const l=s[d];r[p][d]=n(l),r[p][d].raw=i(l)})}),No=r,No}var o4;function T_(){return o4||(o4=1,function(e){const t=(l,h)=>(...g)=>`\x1B[${l(...g)+h}m`,r=(l,h)=>(...g)=>{const v=l(...g);return`\x1B[${38+h};5;${v}m`},a=(l,h)=>(...g)=>{const v=l(...g);return`\x1B[${38+h};2;${v[0]};${v[1]};${v[2]}m`},i=l=>l,n=(l,h,g)=>[l,h,g],p=(l,h,g)=>{Object.defineProperty(l,h,{get:()=>{const v=g();return Object.defineProperty(l,h,{value:v,enumerable:!0,configurable:!0}),v},enumerable:!0,configurable:!0})};let s;const o=(l,h,g,v)=>{s===void 0&&(s=D_());const y=v?10:0,A={};for(const[E,D]of Object.entries(s)){const C=E==="ansi16"?"ansi":E;E===h?A[C]=l(g,y):typeof D=="object"&&(A[C]=l(D[h],y))}return A};function d(){const l=new Map,h={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};h.color.gray=h.color.blackBright,h.bgColor.bgGray=h.bgColor.bgBlackBright,h.color.grey=h.color.blackBright,h.bgColor.bgGrey=h.bgColor.bgBlackBright;for(const[g,v]of Object.entries(h)){for(const[y,A]of Object.entries(v))h[y]={open:`\x1B[${A[0]}m`,close:`\x1B[${A[1]}m`},v[y]=h[y],l.set(A[0],A[1]);Object.defineProperty(h,g,{value:v,enumerable:!1})}return Object.defineProperty(h,"codes",{value:l,enumerable:!1}),h.color.close="\x1B[39m",h.bgColor.close="\x1B[49m",p(h.color,"ansi",()=>o(t,"ansi16",i,!1)),p(h.color,"ansi256",()=>o(r,"ansi256",i,!1)),p(h.color,"ansi16m",()=>o(a,"rgb",n,!1)),p(h.bgColor,"ansi",()=>o(t,"ansi16",i,!0)),p(h.bgColor,"ansi256",()=>o(r,"ansi256",i,!0)),p(h.bgColor,"ansi16m",()=>o(a,"rgb",n,!0)),h}Object.defineProperty(e,"exports",{enumerable:!0,get:d})}(So)),So.exports}function d4(){return!1}function l4(){throw new Error("tty.ReadStream is not implemented")}function u4(){throw new Error("tty.ReadStream is not implemented")}var N_={isatty:d4,ReadStream:l4,WriteStream:u4},O_=Object.freeze({__proto__:null,isatty:d4,ReadStream:l4,WriteStream:u4,default:N_}),A_=Er(O_),Oo,c4;function C_(){return c4||(c4=1,Oo=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--",a=t.indexOf(r+e),i=t.indexOf("--");return a!==-1&&(i===-1||a<i)}),Oo}var Ao,f4;function I_(){if(f4)return Ao;f4=1;const e=Au,t=A_,r=C_(),{env:a}=process;let i;r("no-color")||r("no-colors")||r("color=false")||r("color=never")?i=0:(r("color")||r("colors")||r("color=true")||r("color=always"))&&(i=1),"FORCE_COLOR"in a&&(a.FORCE_COLOR==="true"?i=1:a.FORCE_COLOR==="false"?i=0:i=a.FORCE_COLOR.length===0?1:Math.min(parseInt(a.FORCE_COLOR,10),3));function n(o){return o===0?!1:{level:o,hasBasic:!0,has256:o>=2,has16m:o>=3}}function p(o,d){if(i===0)return 0;if(r("color=16m")||r("color=full")||r("color=truecolor"))return 3;if(r("color=256"))return 2;if(o&&!d&&i===void 0)return 0;const l=i||0;if(a.TERM==="dumb")return l;if(process.platform==="win32"){const h=e.release().split(".");return Number(h[0])>=10&&Number(h[2])>=10586?Number(h[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(h=>h in a)||a.CI_NAME==="codeship"?1:l;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if(a.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in a){const h=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return h>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:l}function s(o){const d=p(o,o&&o.isTTY);return n(d)}return Ao={supportsColor:s,stdout:n(p(!0,t.isatty(1))),stderr:n(p(!0,t.isatty(2)))},Ao}var Co,h4;function R_(){return h4||(h4=1,Co={stringReplaceAll:(r,a,i)=>{let n=r.indexOf(a);if(n===-1)return r;const p=a.length;let s=0,o="";do o+=r.substr(s,n-s)+a+i,s=n+p,n=r.indexOf(a,s);while(n!==-1);return o+=r.substr(s),o},stringEncaseCRLFWithFirstIndex:(r,a,i,n)=>{let p=0,s="";do{const o=r[n-1]==="\r";s+=r.substr(p,(o?n-1:n)-p)+a+(o?`\r
89
- `:`
90
- `)+i,p=n+1,n=r.indexOf(`
91
- `,p)}while(n!==-1);return s+=r.substr(p),s}}),Co}var Io,m4;function L_(){if(m4)return Io;m4=1;const e=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,t=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,a=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,i=new Map([["n",`
92
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function n(d){const l=d[0]==="u",h=d[1]==="{";return l&&!h&&d.length===5||d[0]==="x"&&d.length===3?String.fromCharCode(parseInt(d.slice(1),16)):l&&h?String.fromCodePoint(parseInt(d.slice(2,-1),16)):i.get(d)||d}function p(d,l){const h=[],g=l.trim().split(/\s*,\s*/g);let v;for(const y of g){const A=Number(y);if(!Number.isNaN(A))h.push(A);else if(v=y.match(r))h.push(v[2].replace(a,(E,D,C)=>D?n(D):C));else throw new Error(`Invalid Chalk template style argument: ${y} (in style '${d}')`)}return h}function s(d){t.lastIndex=0;const l=[];let h;for(;(h=t.exec(d))!==null;){const g=h[1];if(h[2]){const v=p(g,h[2]);l.push([g].concat(v))}else l.push([g])}return l}function o(d,l){const h={};for(const v of l)for(const y of v.styles)h[y[0]]=v.inverse?null:y.slice(1);let g=d;for(const[v,y]of Object.entries(h))if(!!Array.isArray(y)){if(!(v in g))throw new Error(`Unknown Chalk style: ${v}`);g=y.length>0?g[v](...y):g[v]}return g}return Io=(d,l)=>{const h=[],g=[];let v=[];if(l.replace(e,(y,A,E,D,C,B)=>{if(A)v.push(n(A));else if(D){const S=v.join("");v=[],g.push(h.length===0?S:o(d,h)(S)),h.push({inverse:E,styles:s(D)})}else if(C){if(h.length===0)throw new Error("Found extraneous } in Chalk template literal");g.push(o(d,h)(v.join(""))),v=[],h.pop()}else v.push(B)}),g.push(v.join("")),h.length>0){const y=`Chalk template literal is missing ${h.length} closing bracket${h.length===1?"":"s"} (\`}\`)`;throw new Error(y)}return g.join("")},Io}var Ro,v4;function g4(){if(v4)return Ro;v4=1;const e=T_(),{stdout:t,stderr:r}=I_(),{stringReplaceAll:a,stringEncaseCRLFWithFirstIndex:i}=R_(),{isArray:n}=Array,p=["ansi","ansi","ansi256","ansi16m"],s=Object.create(null),o=(S,x={})=>{if(x.level&&!(Number.isInteger(x.level)&&x.level>=0&&x.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const N=t?t.level:0;S.level=x.level===void 0?N:x.level};class d{constructor(x){return l(x)}}const l=S=>{const x={};return o(x,S),x.template=(...N)=>C(x.template,...N),Object.setPrototypeOf(x,h.prototype),Object.setPrototypeOf(x.template,x),x.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},x.template.Instance=d,x.template};function h(S){return l(S)}for(const[S,x]of Object.entries(e))s[S]={get(){const N=A(this,y(x.open,x.close,this._styler),this._isEmpty);return Object.defineProperty(this,S,{value:N}),N}};s.visible={get(){const S=A(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:S}),S}};const g=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const S of g)s[S]={get(){const{level:x}=this;return function(...N){const u=y(e.color[p[x]][S](...N),e.color.close,this._styler);return A(this,u,this._isEmpty)}}};for(const S of g){const x="bg"+S[0].toUpperCase()+S.slice(1);s[x]={get(){const{level:N}=this;return function(...u){const T=y(e.bgColor[p[N]][S](...u),e.bgColor.close,this._styler);return A(this,T,this._isEmpty)}}}}const v=Object.defineProperties(()=>{},{...s,level:{enumerable:!0,get(){return this._generator.level},set(S){this._generator.level=S}}}),y=(S,x,N)=>{let u,T;return N===void 0?(u=S,T=x):(u=N.openAll+S,T=x+N.closeAll),{open:S,close:x,openAll:u,closeAll:T,parent:N}},A=(S,x,N)=>{const u=(...T)=>n(T[0])&&n(T[0].raw)?E(u,C(u,...T)):E(u,T.length===1?""+T[0]:T.join(" "));return Object.setPrototypeOf(u,v),u._generator=S,u._styler=x,u._isEmpty=N,u},E=(S,x)=>{if(S.level<=0||!x)return S._isEmpty?"":x;let N=S._styler;if(N===void 0)return x;const{openAll:u,closeAll:T}=N;if(x.indexOf("\x1B")!==-1)for(;N!==void 0;)x=a(x,N.close,N.open),N=N.parent;const Z=x.indexOf(`
93
- `);return Z!==-1&&(x=i(x,T,u,Z)),u+x+T};let D;const C=(S,...x)=>{const[N]=x;if(!n(N)||!n(N.raw))return x.join(" ");const u=x.slice(1),T=[N.raw[0]];for(let Z=1;Z<N.length;Z++)T.push(String(u[Z-1]).replace(/[{}\\]/g,"\\$&"),String(N.raw[Z]));return D===void 0&&(D=L_()),D(S,T.join(""))};Object.defineProperties(h.prototype,s);const B=h();return B.supportsColor=t,B.stderr=h({level:r?r.level:0}),B.stderr.supportsColor=r,Ro=B,Ro}var Lo={},y4;function F_(){return y4||(y4=1,function(e){(function(t){function r(b){return b!==null?Object.prototype.toString.call(b)==="[object Array]":!1}function a(b){return b!==null?Object.prototype.toString.call(b)==="[object Object]":!1}function i(b,I){if(b===I)return!0;var M=Object.prototype.toString.call(b);if(M!==Object.prototype.toString.call(I))return!1;if(r(b)===!0){if(b.length!==I.length)return!1;for(var K=0;K<b.length;K++)if(i(b[K],I[K])===!1)return!1;return!0}if(a(b)===!0){var ee={};for(var oe in b)if(hasOwnProperty.call(b,oe)){if(i(b[oe],I[oe])===!1)return!1;ee[oe]=!0}for(var he in I)if(hasOwnProperty.call(I,he)&&ee[he]!==!0)return!1;return!0}return!1}function n(b){if(b===""||b===!1||b===null)return!0;if(r(b)&&b.length===0)return!0;if(a(b)){for(var I in b)if(b.hasOwnProperty(I))return!1;return!0}else return!1}function p(b){for(var I=Object.keys(b),M=[],K=0;K<I.length;K++)M.push(b[I[K]]);return M}var s;typeof String.prototype.trimLeft=="function"?s=function(b){return b.trimLeft()}:s=function(b){return b.match(/^\s*(.*)/)[1]};var o=0,d=1,l=2,h=3,g=4,v=5,y=6,A=7,E=8,D=9,C="EOF",B="UnquotedIdentifier",S="QuotedIdentifier",x="Rbracket",N="Rparen",u="Comma",T="Colon",Z="Rbrace",J="Number",ne="Current",pe="Expref",le="Pipe",z="Or",G="And",de="EQ",ce="GT",te="LT",ie="GTE",W="LTE",Y="NE",$="Flatten",P="Star",H="Filter",re="Dot",fe="Not",V="Lbrace",j="Lbracket",U="Lparen",f="Literal",F={".":re,"*":P,",":u,":":T,"{":V,"}":Z,"]":x,"(":U,")":N,"@":ne},se={"<":!0,">":!0,"=":!0,"!":!0},O={" ":!0," ":!0,"\n":!0};function R(b){return b>="a"&&b<="z"||b>="A"&&b<="Z"||b==="_"}function Q(b){return b>="0"&&b<="9"||b==="-"}function w(b){return b>="a"&&b<="z"||b>="A"&&b<="Z"||b>="0"&&b<="9"||b==="_"}function c(){}c.prototype={tokenize:function(b){var I=[];this._current=0;for(var M,K,ee;this._current<b.length;)if(R(b[this._current]))M=this._current,K=this._consumeUnquotedIdentifier(b),I.push({type:B,value:K,start:M});else if(F[b[this._current]]!==void 0)I.push({type:F[b[this._current]],value:b[this._current],start:this._current}),this._current++;else if(Q(b[this._current]))ee=this._consumeNumber(b),I.push(ee);else if(b[this._current]==="[")ee=this._consumeLBracket(b),I.push(ee);else if(b[this._current]==='"')M=this._current,K=this._consumeQuotedIdentifier(b),I.push({type:S,value:K,start:M});else if(b[this._current]==="'")M=this._current,K=this._consumeRawStringLiteral(b),I.push({type:f,value:K,start:M});else if(b[this._current]==="`"){M=this._current;var oe=this._consumeLiteral(b);I.push({type:f,value:oe,start:M})}else if(se[b[this._current]]!==void 0)I.push(this._consumeOperator(b));else if(O[b[this._current]]!==void 0)this._current++;else if(b[this._current]==="&")M=this._current,this._current++,b[this._current]==="&"?(this._current++,I.push({type:G,value:"&&",start:M})):I.push({type:pe,value:"&",start:M});else if(b[this._current]==="|")M=this._current,this._current++,b[this._current]==="|"?(this._current++,I.push({type:z,value:"||",start:M})):I.push({type:le,value:"|",start:M});else{var he=new Error("Unknown character:"+b[this._current]);throw he.name="LexerError",he}return I},_consumeUnquotedIdentifier:function(b){var I=this._current;for(this._current++;this._current<b.length&&w(b[this._current]);)this._current++;return b.slice(I,this._current)},_consumeQuotedIdentifier:function(b){var I=this._current;this._current++;for(var M=b.length;b[this._current]!=='"'&&this._current<M;){var K=this._current;b[K]==="\\"&&(b[K+1]==="\\"||b[K+1]==='"')?K+=2:K++,this._current=K}return this._current++,JSON.parse(b.slice(I,this._current))},_consumeRawStringLiteral:function(b){var I=this._current;this._current++;for(var M=b.length;b[this._current]!=="'"&&this._current<M;){var K=this._current;b[K]==="\\"&&(b[K+1]==="\\"||b[K+1]==="'")?K+=2:K++,this._current=K}this._current++;var ee=b.slice(I+1,this._current-1);return ee.replace("\\'","'")},_consumeNumber:function(b){var I=this._current;this._current++;for(var M=b.length;Q(b[this._current])&&this._current<M;)this._current++;var K=parseInt(b.slice(I,this._current));return{type:J,value:K,start:I}},_consumeLBracket:function(b){var I=this._current;return this._current++,b[this._current]==="?"?(this._current++,{type:H,value:"[?",start:I}):b[this._current]==="]"?(this._current++,{type:$,value:"[]",start:I}):{type:j,value:"[",start:I}},_consumeOperator:function(b){var I=this._current,M=b[I];if(this._current++,M==="!")return b[this._current]==="="?(this._current++,{type:Y,value:"!=",start:I}):{type:fe,value:"!",start:I};if(M==="<")return b[this._current]==="="?(this._current++,{type:W,value:"<=",start:I}):{type:te,value:"<",start:I};if(M===">")return b[this._current]==="="?(this._current++,{type:ie,value:">=",start:I}):{type:ce,value:">",start:I};if(M==="="&&b[this._current]==="=")return this._current++,{type:de,value:"==",start:I}},_consumeLiteral:function(b){this._current++;for(var I=this._current,M=b.length,K;b[this._current]!=="`"&&this._current<M;){var ee=this._current;b[ee]==="\\"&&(b[ee+1]==="\\"||b[ee+1]==="`")?ee+=2:ee++,this._current=ee}var oe=s(b.slice(I,this._current));return oe=oe.replace("\\`","`"),this._looksLikeJSON(oe)?K=JSON.parse(oe):K=JSON.parse('"'+oe+'"'),this._current++,K},_looksLikeJSON:function(b){var I='[{"',M=["true","false","null"],K="-0123456789";if(b==="")return!1;if(I.indexOf(b[0])>=0)return!0;if(M.indexOf(b)>=0)return!0;if(K.indexOf(b[0])>=0)try{return JSON.parse(b),!0}catch{return!1}else return!1}};var m={};m[C]=0,m[B]=0,m[S]=0,m[x]=0,m[N]=0,m[u]=0,m[Z]=0,m[J]=0,m[ne]=0,m[pe]=0,m[le]=1,m[z]=2,m[G]=3,m[de]=5,m[ce]=5,m[te]=5,m[ie]=5,m[W]=5,m[Y]=5,m[$]=9,m[P]=20,m[H]=21,m[re]=40,m[fe]=45,m[V]=50,m[j]=55,m[U]=60;function _(){}_.prototype={parse:function(b){this._loadTokens(b),this.index=0;var I=this.expression(0);if(this._lookahead(0)!==C){var M=this._lookaheadToken(0),K=new Error("Unexpected token type: "+M.type+", value: "+M.value);throw K.name="ParserError",K}return I},_loadTokens:function(b){var I=new c,M=I.tokenize(b);M.push({type:C,value:"",start:b.length}),this.tokens=M},expression:function(b){var I=this._lookaheadToken(0);this._advance();for(var M=this.nud(I),K=this._lookahead(0);b<m[K];)this._advance(),M=this.led(K,M),K=this._lookahead(0);return M},_lookahead:function(b){return this.tokens[this.index+b].type},_lookaheadToken:function(b){return this.tokens[this.index+b]},_advance:function(){this.index++},nud:function(b){var I,M,K;switch(b.type){case f:return{type:"Literal",value:b.value};case B:return{type:"Field",name:b.value};case S:var ee={type:"Field",name:b.value};if(this._lookahead(0)===U)throw new Error("Quoted identifier not allowed for function names.");return ee;case fe:return M=this.expression(m.Not),{type:"NotExpression",children:[M]};case P:return I={type:"Identity"},M=null,this._lookahead(0)===x?M={type:"Identity"}:M=this._parseProjectionRHS(m.Star),{type:"ValueProjection",children:[I,M]};case H:return this.led(b.type,{type:"Identity"});case V:return this._parseMultiselectHash();case $:return I={type:$,children:[{type:"Identity"}]},M=this._parseProjectionRHS(m.Flatten),{type:"Projection",children:[I,M]};case j:return this._lookahead(0)===J||this._lookahead(0)===T?(M=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},M)):this._lookahead(0)===P&&this._lookahead(1)===x?(this._advance(),this._advance(),M=this._parseProjectionRHS(m.Star),{type:"Projection",children:[{type:"Identity"},M]}):this._parseMultiselectList();case ne:return{type:ne};case pe:return K=this.expression(m.Expref),{type:"ExpressionReference",children:[K]};case U:for(var oe=[];this._lookahead(0)!==N;)this._lookahead(0)===ne?(K={type:ne},this._advance()):K=this.expression(0),oe.push(K);return this._match(N),oe[0];default:this._errorToken(b)}},led:function(b,I){var M;switch(b){case re:var K=m.Dot;return this._lookahead(0)!==P?(M=this._parseDotRHS(K),{type:"Subexpression",children:[I,M]}):(this._advance(),M=this._parseProjectionRHS(K),{type:"ValueProjection",children:[I,M]});case le:return M=this.expression(m.Pipe),{type:le,children:[I,M]};case z:return M=this.expression(m.Or),{type:"OrExpression",children:[I,M]};case G:return M=this.expression(m.And),{type:"AndExpression",children:[I,M]};case U:for(var ee=I.name,oe=[],he,we;this._lookahead(0)!==N;)this._lookahead(0)===ne?(he={type:ne},this._advance()):he=this.expression(0),this._lookahead(0)===u&&this._match(u),oe.push(he);return this._match(N),we={type:"Function",name:ee,children:oe},we;case H:var xe=this.expression(0);return this._match(x),this._lookahead(0)===$?M={type:"Identity"}:M=this._parseProjectionRHS(m.Filter),{type:"FilterProjection",children:[I,M,xe]};case $:var Ne={type:$,children:[I]},Se=this._parseProjectionRHS(m.Flatten);return{type:"Projection",children:[Ne,Se]};case de:case Y:case ce:case ie:case te:case W:return this._parseComparator(I,b);case j:var be=this._lookaheadToken(0);return be.type===J||be.type===T?(M=this._parseIndexExpression(),this._projectIfSlice(I,M)):(this._match(P),this._match(x),M=this._parseProjectionRHS(m.Star),{type:"Projection",children:[I,M]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(b){if(this._lookahead(0)===b)this._advance();else{var I=this._lookaheadToken(0),M=new Error("Expected "+b+", got: "+I.type);throw M.name="ParserError",M}},_errorToken:function(b){var I=new Error("Invalid token ("+b.type+'): "'+b.value+'"');throw I.name="ParserError",I},_parseIndexExpression:function(){if(this._lookahead(0)===T||this._lookahead(1)===T)return this._parseSliceExpression();var b={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(x),b},_projectIfSlice:function(b,I){var M={type:"IndexExpression",children:[b,I]};return I.type==="Slice"?{type:"Projection",children:[M,this._parseProjectionRHS(m.Star)]}:M},_parseSliceExpression:function(){for(var b=[null,null,null],I=0,M=this._lookahead(0);M!==x&&I<3;){if(M===T)I++,this._advance();else if(M===J)b[I]=this._lookaheadToken(0).value,this._advance();else{var K=this._lookahead(0),ee=new Error("Syntax error, unexpected token: "+K.value+"("+K.type+")");throw ee.name="Parsererror",ee}M=this._lookahead(0)}return this._match(x),{type:"Slice",children:b}},_parseComparator:function(b,I){var M=this.expression(m[I]);return{type:"Comparator",name:I,children:[b,M]}},_parseDotRHS:function(b){var I=this._lookahead(0),M=[B,S,P];if(M.indexOf(I)>=0)return this.expression(b);if(I===j)return this._match(j),this._parseMultiselectList();if(I===V)return this._match(V),this._parseMultiselectHash()},_parseProjectionRHS:function(b){var I;if(m[this._lookahead(0)]<10)I={type:"Identity"};else if(this._lookahead(0)===j)I=this.expression(b);else if(this._lookahead(0)===H)I=this.expression(b);else if(this._lookahead(0)===re)this._match(re),I=this._parseDotRHS(b);else{var M=this._lookaheadToken(0),K=new Error("Sytanx error, unexpected token: "+M.value+"("+M.type+")");throw K.name="ParserError",K}return I},_parseMultiselectList:function(){for(var b=[];this._lookahead(0)!==x;){var I=this.expression(0);if(b.push(I),this._lookahead(0)===u&&(this._match(u),this._lookahead(0)===x))throw new Error("Unexpected token Rbracket")}return this._match(x),{type:"MultiSelectList",children:b}},_parseMultiselectHash:function(){for(var b=[],I=[B,S],M,K,ee,oe;;){if(M=this._lookaheadToken(0),I.indexOf(M.type)<0)throw new Error("Expecting an identifier token, got: "+M.type);if(K=M.value,this._advance(),this._match(T),ee=this.expression(0),oe={type:"KeyValuePair",name:K,value:ee},b.push(oe),this._lookahead(0)===u)this._match(u);else if(this._lookahead(0)===Z){this._match(Z);break}}return{type:"MultiSelectHash",children:b}}};function k(b){this.runtime=b}k.prototype={search:function(b,I){return this.visit(b,I)},visit:function(b,I){var M,K,ee,oe,he,we,xe,Ne,Se,be;switch(b.type){case"Field":return I===null?null:a(I)?(we=I[b.name],we===void 0?null:we):null;case"Subexpression":for(ee=this.visit(b.children[0],I),be=1;be<b.children.length;be++)if(ee=this.visit(b.children[1],ee),ee===null)return null;return ee;case"IndexExpression":return xe=this.visit(b.children[0],I),Ne=this.visit(b.children[1],xe),Ne;case"Index":if(!r(I))return null;var it=b.value;return it<0&&(it=I.length+it),ee=I[it],ee===void 0&&(ee=null),ee;case"Slice":if(!r(I))return null;var _r=b.children.slice(0),Dt=this.computeSliceParams(I.length,_r),br=Dt[0],ia=Dt[1],na=Dt[2];if(ee=[],na>0)for(be=br;be<ia;be+=na)ee.push(I[be]);else for(be=br;be>ia;be+=na)ee.push(I[be]);return ee;case"Projection":var Ce=this.visit(b.children[0],I);if(!r(Ce))return null;for(Se=[],be=0;be<Ce.length;be++)K=this.visit(b.children[1],Ce[be]),K!==null&&Se.push(K);return Se;case"ValueProjection":if(Ce=this.visit(b.children[0],I),!a(Ce))return null;Se=[];var Ue=p(Ce);for(be=0;be<Ue.length;be++)K=this.visit(b.children[1],Ue[be]),K!==null&&Se.push(K);return Se;case"FilterProjection":if(Ce=this.visit(b.children[0],I),!r(Ce))return null;var Ve=[],Ke=[];for(be=0;be<Ce.length;be++)M=this.visit(b.children[2],Ce[be]),n(M)||Ve.push(Ce[be]);for(var ke=0;ke<Ve.length;ke++)K=this.visit(b.children[1],Ve[ke]),K!==null&&Ke.push(K);return Ke;case"Comparator":switch(oe=this.visit(b.children[0],I),he=this.visit(b.children[1],I),b.name){case de:ee=i(oe,he);break;case Y:ee=!i(oe,he);break;case ce:ee=oe>he;break;case ie:ee=oe>=he;break;case te:ee=oe<he;break;case W:ee=oe<=he;break;default:throw new Error("Unknown comparator: "+b.name)}return ee;case $:var Me=this.visit(b.children[0],I);if(!r(Me))return null;var Ge=[];for(be=0;be<Me.length;be++)K=Me[be],r(K)?Ge.push.apply(Ge,K):Ge.push(K);return Ge;case"Identity":return I;case"MultiSelectList":if(I===null)return null;for(Se=[],be=0;be<b.children.length;be++)Se.push(this.visit(b.children[be],I));return Se;case"MultiSelectHash":if(I===null)return null;Se={};var Je;for(be=0;be<b.children.length;be++)Je=b.children[be],Se[Je.name]=this.visit(Je.value,I);return Se;case"OrExpression":return M=this.visit(b.children[0],I),n(M)&&(M=this.visit(b.children[1],I)),M;case"AndExpression":return oe=this.visit(b.children[0],I),n(oe)===!0?oe:this.visit(b.children[1],I);case"NotExpression":return oe=this.visit(b.children[0],I),n(oe);case"Literal":return b.value;case le:return xe=this.visit(b.children[0],I),this.visit(b.children[1],xe);case ne:return I;case"Function":var tt=[];for(be=0;be<b.children.length;be++)tt.push(this.visit(b.children[be],I));return this.runtime.callFunction(b.name,tt);case"ExpressionReference":var rt=b.children[0];return rt.jmespathType=pe,rt;default:throw new Error("Unknown node type: "+b.type)}},computeSliceParams:function(b,I){var M=I[0],K=I[1],ee=I[2],oe=[null,null,null];if(ee===null)ee=1;else if(ee===0){var he=new Error("Invalid slice, step cannot be 0");throw he.name="RuntimeError",he}var we=ee<0;return M===null?M=we?b-1:0:M=this.capSliceRange(b,M,ee),K===null?K=we?-1:b:K=this.capSliceRange(b,K,ee),oe[0]=M,oe[1]=K,oe[2]=ee,oe},capSliceRange:function(b,I,M){return I<0?(I+=b,I<0&&(I=M<0?-1:0)):I>=b&&(I=M<0?b-1:b),I}};function X(b){this._interpreter=b,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[o]}]},avg:{_func:this._functionAvg,_signature:[{types:[E]}]},ceil:{_func:this._functionCeil,_signature:[{types:[o]}]},contains:{_func:this._functionContains,_signature:[{types:[l,h]},{types:[d]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[l]},{types:[l]}]},floor:{_func:this._functionFloor,_signature:[{types:[o]}]},length:{_func:this._functionLength,_signature:[{types:[l,h,g]}]},map:{_func:this._functionMap,_signature:[{types:[y]},{types:[h]}]},max:{_func:this._functionMax,_signature:[{types:[E,D]}]},merge:{_func:this._functionMerge,_signature:[{types:[g],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[h]},{types:[y]}]},sum:{_func:this._functionSum,_signature:[{types:[E]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[l]},{types:[l]}]},min:{_func:this._functionMin,_signature:[{types:[E,D]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[h]},{types:[y]}]},type:{_func:this._functionType,_signature:[{types:[d]}]},keys:{_func:this._functionKeys,_signature:[{types:[g]}]},values:{_func:this._functionValues,_signature:[{types:[g]}]},sort:{_func:this._functionSort,_signature:[{types:[D,E]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[h]},{types:[y]}]},join:{_func:this._functionJoin,_signature:[{types:[l]},{types:[D]}]},reverse:{_func:this._functionReverse,_signature:[{types:[l,h]}]},to_array:{_func:this._functionToArray,_signature:[{types:[d]}]},to_string:{_func:this._functionToString,_signature:[{types:[d]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[d]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[d],variadic:!0}]}}}X.prototype={callFunction:function(b,I){var M=this.functionTable[b];if(M===void 0)throw new Error("Unknown function: "+b+"()");return this._validateArgs(b,I,M._signature),M._func.call(this,I)},_validateArgs:function(b,I,M){var K;if(M[M.length-1].variadic){if(I.length<M.length)throw K=M.length===1?" argument":" arguments",new Error("ArgumentError: "+b+"() takes at least"+M.length+K+" but received "+I.length)}else if(I.length!==M.length)throw K=M.length===1?" argument":" arguments",new Error("ArgumentError: "+b+"() takes "+M.length+K+" but received "+I.length);for(var ee,oe,he,we=0;we<M.length;we++){he=!1,ee=M[we].types,oe=this._getTypeName(I[we]);for(var xe=0;xe<ee.length;xe++)if(this._typeMatches(oe,ee[xe],I[we])){he=!0;break}if(!he)throw new Error("TypeError: "+b+"() expected argument "+(we+1)+" to be type "+ee+" but received type "+oe+" instead.")}},_typeMatches:function(b,I,M){if(I===d)return!0;if(I===D||I===E||I===h){if(I===h)return b===h;if(b===h){var K;I===E?K=o:I===D&&(K=l);for(var ee=0;ee<M.length;ee++)if(!this._typeMatches(this._getTypeName(M[ee]),K,M[ee]))return!1;return!0}}else return b===I},_getTypeName:function(b){switch(Object.prototype.toString.call(b)){case"[object String]":return l;case"[object Number]":return o;case"[object Array]":return h;case"[object Boolean]":return v;case"[object Null]":return A;case"[object Object]":return b.jmespathType===pe?y:g}},_functionStartsWith:function(b){return b[0].lastIndexOf(b[1])===0},_functionEndsWith:function(b){var I=b[0],M=b[1];return I.indexOf(M,I.length-M.length)!==-1},_functionReverse:function(b){var I=this._getTypeName(b[0]);if(I===l){for(var M=b[0],K="",ee=M.length-1;ee>=0;ee--)K+=M[ee];return K}else{var oe=b[0].slice(0);return oe.reverse(),oe}},_functionAbs:function(b){return Math.abs(b[0])},_functionCeil:function(b){return Math.ceil(b[0])},_functionAvg:function(b){for(var I=0,M=b[0],K=0;K<M.length;K++)I+=M[K];return I/M.length},_functionContains:function(b){return b[0].indexOf(b[1])>=0},_functionFloor:function(b){return Math.floor(b[0])},_functionLength:function(b){return a(b[0])?Object.keys(b[0]).length:b[0].length},_functionMap:function(b){for(var I=[],M=this._interpreter,K=b[0],ee=b[1],oe=0;oe<ee.length;oe++)I.push(M.visit(K,ee[oe]));return I},_functionMerge:function(b){for(var I={},M=0;M<b.length;M++){var K=b[M];for(var ee in K)I[ee]=K[ee]}return I},_functionMax:function(b){if(b[0].length>0){var I=this._getTypeName(b[0][0]);if(I===o)return Math.max.apply(Math,b[0]);for(var M=b[0],K=M[0],ee=1;ee<M.length;ee++)K.localeCompare(M[ee])<0&&(K=M[ee]);return K}else return null},_functionMin:function(b){if(b[0].length>0){var I=this._getTypeName(b[0][0]);if(I===o)return Math.min.apply(Math,b[0]);for(var M=b[0],K=M[0],ee=1;ee<M.length;ee++)M[ee].localeCompare(K)<0&&(K=M[ee]);return K}else return null},_functionSum:function(b){for(var I=0,M=b[0],K=0;K<M.length;K++)I+=M[K];return I},_functionType:function(b){switch(this._getTypeName(b[0])){case o:return"number";case l:return"string";case h:return"array";case g:return"object";case v:return"boolean";case y:return"expref";case A:return"null"}},_functionKeys:function(b){return Object.keys(b[0])},_functionValues:function(b){for(var I=b[0],M=Object.keys(I),K=[],ee=0;ee<M.length;ee++)K.push(I[M[ee]]);return K},_functionJoin:function(b){var I=b[0],M=b[1];return M.join(I)},_functionToArray:function(b){return this._getTypeName(b[0])===h?b[0]:[b[0]]},_functionToString:function(b){return this._getTypeName(b[0])===l?b[0]:JSON.stringify(b[0])},_functionToNumber:function(b){var I=this._getTypeName(b[0]),M;return I===o?b[0]:I===l&&(M=+b[0],!isNaN(M))?M:null},_functionNotNull:function(b){for(var I=0;I<b.length;I++)if(this._getTypeName(b[I])!==A)return b[I];return null},_functionSort:function(b){var I=b[0].slice(0);return I.sort(),I},_functionSortBy:function(b){var I=b[0].slice(0);if(I.length===0)return I;var M=this._interpreter,K=b[1],ee=this._getTypeName(M.visit(K,I[0]));if([o,l].indexOf(ee)<0)throw new Error("TypeError");for(var oe=this,he=[],we=0;we<I.length;we++)he.push([we,I[we]]);he.sort(function(Ne,Se){var be=M.visit(K,Ne[1]),it=M.visit(K,Se[1]);if(oe._getTypeName(be)!==ee)throw new Error("TypeError: expected "+ee+", received "+oe._getTypeName(be));if(oe._getTypeName(it)!==ee)throw new Error("TypeError: expected "+ee+", received "+oe._getTypeName(it));return be>it?1:be<it?-1:Ne[0]-Se[0]});for(var xe=0;xe<he.length;xe++)I[xe]=he[xe][1];return I},_functionMaxBy:function(b){for(var I=b[1],M=b[0],K=this.createKeyFunction(I,[o,l]),ee=-1/0,oe,he,we=0;we<M.length;we++)he=K(M[we]),he>ee&&(ee=he,oe=M[we]);return oe},_functionMinBy:function(b){for(var I=b[1],M=b[0],K=this.createKeyFunction(I,[o,l]),ee=1/0,oe,he,we=0;we<M.length;we++)he=K(M[we]),he<ee&&(ee=he,oe=M[we]);return oe},createKeyFunction:function(b,I){var M=this,K=this._interpreter,ee=function(oe){var he=K.visit(b,oe);if(I.indexOf(M._getTypeName(he))<0){var we="TypeError: expected one of "+I+", received "+M._getTypeName(he);throw new Error(we)}return he};return ee}};function ae(b){var I=new _,M=I.parse(b);return M}function me(b){var I=new c;return I.tokenize(b)}function ge(b,I){var M=new _,K=new X,ee=new k(K);K._interpreter=ee;var oe=M.parse(I);return ee.search(oe,b)}t.tokenize=me,t.compile=ae,t.search=ge,t.strictDeepEqual=i})(e)}(Lo)),Lo}var Fo,w4;function Po(){return w4||(w4=1,Fo={DATE_FORMAT:"yyyy-mm-dd HH:MM:ss.l o",ERROR_LIKE_KEYS:["err","error"],MESSAGE_KEY:"msg",LEVEL_KEY:"level",LEVEL_LABEL:"levelLabel",TIMESTAMP_KEY:"time",LEVELS:{default:"USERLVL",60:"FATAL",50:"ERROR",40:"WARN",30:"INFO",20:"DEBUG",10:"TRACE"},LEVEL_NAMES:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},LOGGER_KEYS:["pid","hostname","name","level","time","timestamp","caller"]}),Fo}var Mo,_4;function b4(){if(_4)return Mo;_4=1;const{LEVELS:e,LEVEL_NAMES:t}=Po(),r=l=>l,a={default:r,60:r,50:r,40:r,30:r,20:r,10:r,message:r},i=g4(),n=new i.Instance({level:3}),p={default:n.white,60:n.bgRed,50:n.red,40:n.yellow,30:n.green,20:n.blue,10:n.grey,message:n.cyan};function s(l,h){if(Number.isInteger(+l))return Object.prototype.hasOwnProperty.call(e,l)?h[l](e[l]):h.default(e.default);const g=t[l.toLowerCase()]||"default";return h[g](e[g])}function o(l){return s(l,a)}o.message=a.message;function d(l){return s(l,p)}return d.message=p.message,Mo=function(h=!1){return h?d:o},Mo}var Dn={exports:{}},Uo={exports:{}},E4;function P_(){return E4||(E4=1,function(e,t){(function(r){var a=function(){var o=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|"[^"]*"|'[^']*'/g,d=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,l=/[^-+\dA-Z]/g;return function(h,g,v,y){if(arguments.length===1&&s(h)==="string"&&!/\d/.test(h)&&(g=h,h=void 0),h=h||new Date,h instanceof Date||(h=new Date(h)),isNaN(h))throw TypeError("Invalid date");g=String(a.masks[g]||g||a.masks.default);var A=g.slice(0,4);(A==="UTC:"||A==="GMT:")&&(g=g.slice(4),v=!0,A==="GMT:"&&(y=!0));var E=v?"getUTC":"get",D=h[E+"Date"](),C=h[E+"Day"](),B=h[E+"Month"](),S=h[E+"FullYear"](),x=h[E+"Hours"](),N=h[E+"Minutes"](),u=h[E+"Seconds"](),T=h[E+"Milliseconds"](),Z=v?0:h.getTimezoneOffset(),J=n(h),ne=p(h),pe={d:D,dd:i(D),ddd:a.i18n.dayNames[C],dddd:a.i18n.dayNames[C+7],m:B+1,mm:i(B+1),mmm:a.i18n.monthNames[B],mmmm:a.i18n.monthNames[B+12],yy:String(S).slice(2),yyyy:S,h:x%12||12,hh:i(x%12||12),H:x,HH:i(x),M:N,MM:i(N),s:u,ss:i(u),l:i(T,3),L:i(Math.round(T/10)),t:x<12?a.i18n.timeNames[0]:a.i18n.timeNames[1],tt:x<12?a.i18n.timeNames[2]:a.i18n.timeNames[3],T:x<12?a.i18n.timeNames[4]:a.i18n.timeNames[5],TT:x<12?a.i18n.timeNames[6]:a.i18n.timeNames[7],Z:y?"GMT":v?"UTC":(String(h).match(d)||[""]).pop().replace(l,""),o:(Z>0?"-":"+")+i(Math.floor(Math.abs(Z)/60)*100+Math.abs(Z)%60,4),S:["th","st","nd","rd"][D%10>3?0:(D%100-D%10!=10)*D%10],W:J,N:ne};return g.replace(o,function(le){return le in pe?pe[le]:le.slice(1,le.length-1)})}}();a.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},a.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};function i(o,d){for(o=String(o),d=d||2;o.length<d;)o="0"+o;return o}function n(o){var d=new Date(o.getFullYear(),o.getMonth(),o.getDate());d.setDate(d.getDate()-(d.getDay()+6)%7+3);var l=new Date(d.getFullYear(),0,4);l.setDate(l.getDate()-(l.getDay()+6)%7+3);var h=d.getTimezoneOffset()-l.getTimezoneOffset();d.setHours(d.getHours()-h);var g=(d-l)/(864e5*7);return 1+Math.floor(g)}function p(o){var d=o.getDay();return d===0&&(d=7),d}function s(o){return o===null?"null":o===void 0?"undefined":typeof o!="object"?typeof o:Array.isArray(o)?"array":{}.toString.call(o).slice(8,-1).toLowerCase()}e.exports=a})()}(Uo)),Uo.exports}var S4;function M_(){if(S4)return Dn.exports;S4=1;const e=P_(),t=Xu,r=b4()(),{DATE_FORMAT:a,ERROR_LIKE_KEYS:i,MESSAGE_KEY:n,LEVEL_KEY:p,LEVEL_LABEL:s,TIMESTAMP_KEY:o,LOGGER_KEYS:d,LEVELS:l}=Po();Dn.exports={isObject:g,prettifyErrorLog:y,prettifyLevel:A,prettifyMessage:E,prettifyMetadata:D,prettifyObject:C,prettifyTime:B},Dn.exports.internals={formatTime:h,joinLinesWithIndentation:v};function h(S,x=!1){if(x===!1)return S;const N=new Date(S);if(x===!0)return e(N,"UTC:"+a);const u=x.toUpperCase();if(u==="SYS:STANDARD")return e(N,a);const T=u.substr(0,4);return T==="SYS:"||T==="UTC:"?T==="UTC:"?e(N,x):e(N,x.slice(4)):e(N,`UTC:${x}`)}function g(S){return Object.prototype.toString.apply(S)==="[object Object]"}function v({input:S,ident:x=" ",eol:N=`
94
- `}){const u=S.split(/\r?\n/);for(var T=1;T<u.length;T+=1)u[T]=x+u[T];return u.join(N)}function y({log:S,messageKey:x=n,ident:N=" ",eol:u=`
95
- `,errorLikeKeys:T=i,errorProperties:Z=[]}){const J=S.stack,ne=v({input:J,ident:N,eol:u});let pe=`${N}${ne}${u}`;if(Z.length>0){const z=d.concat(x,"type","stack");let G;Z[0]==="*"?G=Object.keys(S).filter(de=>z.includes(de)===!1):G=Z.filter(de=>z.includes(de)===!1);for(var le=0;le<G.length;le+=1){const de=G[le];if(de in S){if(g(S[de])){const ce=C({input:S[de],errorLikeKeys:T,excludeLoggerKeys:!1,eol:u,ident:N});pe=`${pe}${de}: {${u}${ce}}${u}`;continue}pe=`${pe}${de}: ${S[de]}${u}`}}}return pe}function A({log:S,colorizer:x=r,levelKey:N=p}){if(N in S)return x(S[N])+" "}function E({log:S,messageFormat:x,messageKey:N=n,colorizer:u=r,levelLabel:T=s}){if(x){const Z=String(x).replace(/{([^{}]+)}/g,function(J,ne){return ne===T&&S[p]?l[S[p]]:ne.split(".").reduce(function(pe,le){return pe&&pe[le]?pe[le]:""},S)});return u.message(Z)}if(N in S&&typeof S[N]=="string")return u.message(S[N])}function D({log:S}){let x="";if((S.name||S.pid||S.hostname)&&(x+="(",S.name&&(x+=S.name),S.name&&S.pid?x+="/"+S.pid:S.pid&&(x+=S.pid),S.hostname&&(x+=`${x==="("?"on":" on"} ${S.hostname}`),x+=")"),S.caller&&(x+=`${x===""?"":" "}<${S.caller}>`),x!=="")return x}function C({input:S,ident:x=" ",eol:N=`
96
- `,skipKeys:u=[],customPrettifiers:T={},errorLikeKeys:Z=i,excludeLoggerKeys:J=!0}){const ne=Object.keys(S),pe=[].concat(u);J===!0&&Array.prototype.push.apply(pe,d);let le="";const z=ne.filter(ce=>pe.includes(ce)===!1);for(var G=0;G<ne.length;G+=1){const ce=z[G],te=S[ce];if(te===void 0)continue;let ie;if(typeof T[ce]=="function"?ie=T[ce](te,ce,S):ie=t(te,null,2),ie===void 0)continue;const W=v({input:ie,ident:x,eol:N});if(Z.includes(ce)===!0){const Y=`${x}${ce}: ${W}${N}`.split(N);for(var de=0;de<Y.length;de+=1){de!==0&&(le+=N);const $=Y[de];if(/^\s*"stack"/.test($)){const P=/^(\s*"stack":)\s*(".*"),?$/.exec($);if(P&&P.length===3){const H=/^\s*/.exec($)[0].length+4,re=" ".repeat(H),fe=P[2];le+=P[1]+N+re+JSON.parse(fe).replace(/\n/g,N+re)}}else le+=$}}else le+=`${x}${ce}: ${W}${N}`}return le}function B({log:S,timestampKey:x=o,translateFormat:N=void 0}){let u=null;if(x in S?u=S[x]:"timestamp"in S&&(u=S.timestamp),u!==null)return N?"["+h(u,N)+"]":`[${u}]`}return Dn.exports}var Bo={},x4;function U_(){return x4||(x4=1,function(e){const t={suspectRx:/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*\:/};e.parse=function(r,...a){const i=typeof a[0]=="object"&&a[0],n=a.length>1||!i?a[0]:void 0,p=a.length>1&&a[1]||i||{},s=JSON.parse(r,n);return p.protoAction==="ignore"||!s||typeof s!="object"||!r.match(t.suspectRx)||e.scan(s,p),s},e.scan=function(r,a={}){let i=[r];for(;i.length;){const n=i;i=[];for(const p of n){if(Object.prototype.hasOwnProperty.call(p,"__proto__")){if(a.protoAction!=="remove")throw new SyntaxError("Object contains forbidden prototype property");delete p.__proto__}for(const s in p){const o=p[s];o&&typeof o=="object"&&i.push(p[s])}}}},e.safeParse=function(r,a){try{return e.parse(r,a)}catch{return null}}}(Bo)),Bo}var $o,D4;function B_(){if(D4)return $o;D4=1;const e=g4(),t=F_(),r=b4(),{ERROR_LIKE_KEYS:a,MESSAGE_KEY:i,TIMESTAMP_KEY:n}=Po(),{isObject:p,prettifyErrorLog:s,prettifyLevel:o,prettifyMessage:d,prettifyMetadata:l,prettifyObject:h,prettifyTime:g}=M_(),v=U_(),y=E=>{try{return{value:v.parse(E,{protoAction:"remove"})}}catch(D){return{err:D}}},A={colorize:e.supportsColor,crlf:!1,errorLikeObjectKeys:a,errorProps:"",levelFirst:!1,messageKey:i,messageFormat:!1,timestampKey:n,translateTime:!1,useMetadata:!1,outputStream:process.stdout,customPrettifiers:{}};return $o=function(D){const C=Object.assign({},A,D),B=C.crlf?`\r
97
- `:`
98
- `,S=" ",x=C.messageKey,N=C.levelKey,u=C.levelLabel,T=C.messageFormat,Z=C.timestampKey,J=C.errorLikeObjectKeys,ne=C.errorProps.split(","),pe=C.customPrettifiers,le=C.ignore?new Set(C.ignore.split(",")):void 0,z=r(C.colorize),G=C.search;return de;function de(ce){let te;if(p(ce))te=ce;else{const H=y(ce);if(H.err||!p(H.value))return ce+B;te=H.value}if(G&&!t.search(te,G))return;const ie=d({log:te,messageKey:x,colorizer:z,messageFormat:T,levelLabel:u});le&&(te=Object.keys(te).filter(H=>!le.has(H)).reduce((H,re)=>(H[re]=te[re],H),{}));const W=o({log:te,colorizer:z,levelKey:N}),Y=l({log:te}),$=g({log:te,translateFormat:C.translateTime,timestampKey:Z});let P="";if(C.levelFirst&&W&&(P=`${W}`),$&&P===""?P=`${$}`:$&&(P=`${P} ${$}`),!C.levelFirst&&W&&(P.length>0?P=`${P} ${W}`:P=W),Y&&(P.length>0?P=`${P} ${Y}:`:P=Y),P.endsWith(":")===!1&&P!==""&&(P+=":"),ie&&(P.length>0?P=`${P} ${ie}`:P=ie),P.length>0&&(P+=B),te.type==="Error"&&te.stack)P+=s({log:te,errorLikeKeys:J,errorProperties:ne,ident:S,eol:B});else{const H=[x,N,Z].filter(fe=>typeof te[fe]=="string"||typeof te[fe]=="number");P+=h({input:te,skipKeys:H,customPrettifiers:pe,errorLikeKeys:J,eol:B,ident:S})}return P}},$o}const T4=__,{mapHttpRequest:$_,mapHttpResponse:j_}=Mu,N4=Ju,V_=Xu,{lsCacheSym:k_,chindingsSym:jo,parsedChindingsSym:Vo,writeSym:O4,serializersSym:ko,formatOptsSym:A4,endSym:z_,stringifiersSym:zo,stringifySym:C4,wildcardFirstSym:I4,needsMetadataGsym:R4,redactFmtSym:H_,streamSym:q_,nestedKeySym:L4,formattersSym:Ho,messageKeySym:F4}=o1;function l1(){}function K_(e,t){if(!t)return r;return function(...i){t.call(this,i,r)};function r(a,...i){if(typeof a=="object"){var n=a;a!==null&&(a.method&&a.headers&&a.socket?a=$_(a):typeof a.setHeader=="function"&&(a=j_(a))),this[L4]&&(a={[this[L4]]:a});var p;n===null&&i.length===0?p=[null]:(n=i.shift(),p=i),this[O4](a,T4(n,p,this[A4]),e)}else this[O4](null,T4(a,i,this[A4]),e)}}function G_(e){var t="",r=0,a=!1,i=255;const n=e.length;if(n>100)return JSON.stringify(e);for(var p=0;p<n&&i>=32;p++)i=e.charCodeAt(p),(i===34||i===92)&&(t+=e.slice(r,p)+"\\",r=p,a=!0);return a?t+=e.slice(r):t=e,i<32?JSON.stringify(e):'"'+t+'"'}function W_(e,t,r,a){const i=this[C4],n=this[zo],p=this[z_],s=this[jo],o=this[ko],d=this[Ho],l=this[F4];var h=this[k_][r]+a;h=h+s;var g,v=e.hasOwnProperty===void 0;d.log&&(e=d.log(e)),t!==void 0&&(e[l]=t);const y=n[I4];for(var A in e)if(g=e[A],(v||e.hasOwnProperty(A))&&g!==void 0){g=o[A]?o[A](g):g;const E=n[A]||y;switch(typeof g){case"undefined":case"function":continue;case"number":Number.isFinite(g)===!1&&(g=null);case"boolean":E&&(g=E(g));break;case"string":g=(E||G_)(g);break;default:g=(E||i)(g)}if(g===void 0)continue;h+=',"'+A+'":'+g}return h+p}function Z_(e,t){var r,a,i=e[jo];const n=e[C4],p=e[zo],s=p[I4],o=e[ko],d=e[Ho].bindings;t=d(t);for(r in t)if(a=t[r],(r!=="level"&&r!=="serializers"&&r!=="formatters"&&r!=="customLevels"&&t.hasOwnProperty(r)&&a!==void 0)===!0){if(a=o[r]?o[r](a):a,a=(p[r]||s||n)(a),a===void 0)continue;i+=',"'+r+'":'+a}return i}function P4(e,t,r,a){if(t&&typeof t=="function")return t=t.bind(a),qo(t(e),r,e);try{var i=B_();return i.asMetaWrapper=qo,qo(i(e),r,e)}catch{throw Error("Missing `pino-pretty` module: `pino-pretty` must be installed separately")}}function qo(e,t,r){r=Object.assign({suppressFlushSyncWarning:!1},r);var a=!1;return{[R4]:!0,lastLevel:0,lastMsg:null,lastObj:null,lastLogger:null,flushSync(){r.suppressFlushSyncWarning||a||(a=!0,M4(t,this),t.write(e(Object.assign({level:40,msg:"pino.final with prettyPrint does not support flushing",time:Date.now()},this.chindings()))))},chindings(){const i=this.lastLogger;var n=null;return i?(i.hasOwnProperty(Vo)?n=i[Vo]:(n=JSON.parse("{"+i[jo].substr(1)+"}"),i[Vo]=n),n):null},write(i){const n=this.lastLogger,p=this.chindings();var s=this.lastTime;s.match(/^\d+/)?s=parseInt(s):s=s.slice(1,-1);var o=this.lastObj,d=this.lastMsg,l=null;const h=n[Ho],g=h.log?h.log(o):o,v=n[F4];d&&g&&!g.hasOwnProperty(v)&&(g[v]=d);const y=Object.assign({level:this.lastLevel,time:s},g,l),A=n[ko],E=Object.keys(A);for(var D,C=0;C<E.length;C++)D=E[C],y[D]!==void 0&&(y[D]=A[D](y[D]));for(D in p)y.hasOwnProperty(D)||(y[D]=p[D]);const S=n[zo][H_],x=e(typeof S=="function"?S(y):y);x!==void 0&&(M4(t,this),t.write(x))}}}function Y_(e){return e.write!==e.constructor.prototype.write}function Tn(e){const t=new N4(e);return t.on("error",r),t;function r(a){if(a.code==="EPIPE"){t.write=l1,t.end=l1,t.flushSync=l1,t.destroy=l1;return}t.removeListener("error",r),t.emit("error",a)}}function J_(e){return function(r,a={},i){if(typeof a=="string"?(i=Tn({dest:a,sync:!0}),a={}):typeof i=="string"?i=Tn({dest:i,sync:!0}):(a instanceof N4||a.writable||a._writableState)&&(i=a,a=null),a=Object.assign({},e,a),"extreme"in a)throw Error("The extreme option has been removed, use pino.destination({ sync: false }) instead");if("onTerminated"in a)throw Error("The onTerminated option has been removed, use pino.final instead");"changeLevelName"in a&&(process.emitWarning("The changeLevelName option is deprecated and will be removed in v7. Use levelKey instead.",{code:"changeLevelName_deprecation"}),a.levelKey=a.changeLevelName,delete a.changeLevelName);const{enabled:n,prettyPrint:p,prettifier:s,messageKey:o}=a;if(n===!1&&(a.level="silent"),i=i||process.stdout,i===process.stdout&&i.fd>=0&&!Y_(i)&&(i=Tn({fd:i.fd,sync:!0})),p){const d=Object.assign({messageKey:o},p);i=P4(d,s,i,r)}return{opts:a,stream:i}}}function X_(e,t){if(typeof e>"u"||typeof e.child!="function")throw Error("expected a pino logger instance");const r=typeof t<"u";if(r&&typeof t!="function")throw Error("if supplied, the handler parameter should be a function");const a=e[q_];if(typeof a.flushSync!="function")throw Error("final requires a stream that has a flushSync method, such as pino.destination");const i=new Proxy(e,{get:(n,p)=>p in n.levels.values?(...s)=>{n[p](...s),a.flushSync()}:n[p]});return r?(n=null,...p)=>{try{a.flushSync()}catch{}return t(n,i,...p)}:i}function Q_(e){try{return JSON.stringify(e)}catch{return V_(e)}}function eb(e,t,r){return{level:e,bindings:t,log:r}}function M4(e,t){e[R4]===!0&&(e.lastLevel=t.lastLevel,e.lastMsg=t.lastMsg,e.lastObj=t.lastObj,e.lastTime=t.lastTime,e.lastLogger=t.lastLogger)}var Ko={noop:l1,buildSafeSonicBoom:Tn,getPrettyStream:P4,asChindings:Z_,asJson:W_,genLog:K_,createArgsNormalizer:J_,final:X_,stringify:Q_,buildFormatters:eb};const tb=Wu,{lsCacheSym:rb,levelValSym:Go,useOnlyCustomLevelsSym:ab,streamSym:ib,formattersSym:nb,hooksSym:sb}=o1,{noop:pb,genLog:Fa}=Ko,gr={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},U4={fatal:e=>{const t=Fa(gr.fatal,e);return function(...r){const a=this[ib];if(t.call(this,...r),typeof a.flushSync=="function")try{a.flushSync()}catch{}}},error:e=>Fa(gr.error,e),warn:e=>Fa(gr.warn,e),info:e=>Fa(gr.info,e),debug:e=>Fa(gr.debug,e),trace:e=>Fa(gr.trace,e)},Wo=Object.keys(gr).reduce((e,t)=>(e[gr[t]]=t,e),{}),ob=Object.keys(Wo).reduce((e,t)=>(e[t]=tb('{"level":'+Number(t)),e),{});function db(e){const t=e[nb].level,{labels:r}=e.levels,a={};for(const i in r){const n=t(r[i],Number(i));a[i]=JSON.stringify(n).slice(0,-1)}return e[rb]=a,e}function lb(e,t){if(t)return!1;switch(e){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}function ub(e){const{labels:t,values:r}=this.levels;if(typeof e=="number"){if(t[e]===void 0)throw Error("unknown level value"+e);e=t[e]}if(r[e]===void 0)throw Error("unknown level "+e);const a=this[Go],i=this[Go]=r[e],n=this[ab],p=this[sb].logMethod;for(var s in r){if(i>r[s]){this[s]=pb;continue}this[s]=lb(s,n)?U4[s](p):Fa(r[s],p)}this.emit("level-change",e,i,t[a],a)}function cb(e){const{levels:t,levelVal:r}=this;return t&&t.labels?t.labels[r]:""}function fb(e){const{values:t}=this.levels,r=t[e];return r!==void 0&&r>=this[Go]}function hb(e=null,t=!1){const r=e?Object.keys(e).reduce((n,p)=>(n[e[p]]=p,n),{}):null,a=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),t?null:Wo,r),i=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),t?null:gr,e);return{labels:a,values:i}}function mb(e,t,r){if(typeof e=="number"){if(![].concat(Object.keys(t||{}).map(n=>t[n]),r?[]:Object.keys(Wo).map(n=>+n),1/0).includes(e))throw Error(`default level:${e} must be included in custom levels`);return}const a=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),r?null:gr,t);if(!(e in a))throw Error(`default level:${e} must be included in custom levels`)}function vb(e,t){const{labels:r,values:a}=e;for(const i in t){if(i in a)throw Error("levels cannot be overridden");if(t[i]in r)throw Error("pre-existing level values cannot be used for new levels")}}var B4={initialLsCache:ob,genLsCache:db,levelMethods:U4,getLevel:cb,setLevel:ub,isLevelEnabled:fb,mappings:hb,assertNoLevelCollisions:vb,assertDefaultLevelFound:mb},gb="pino",yb="6.7.0",wb="super fast, all natural json logger",_b="pino.js",bb="./browser.js",Eb=["pino.js","bin.js","browser.js","pretty.js","usage.txt","test","docs","example.js","lib"],Sb={docs:"docsify serve","browser-test":"airtap --local 8080 test/browser*test.js",test:"standard | snazzy && tap --100 test/*test.js","cov-ui":"tap --coverage-report=html test/*test.js",bench:"node benchmarks/utils/runbench all","bench-basic":"node benchmarks/utils/runbench basic","bench-object":"node benchmarks/utils/runbench object","bench-deep-object":"node benchmarks/utils/runbench deep-object","bench-multi-arg":"node benchmarks/utils/runbench multi-arg","bench-longs-tring":"node benchmarks/utils/runbench long-string","bench-child":"node benchmarks/utils/runbench child","bench-child-child":"node benchmarks/utils/runbench child-child","bench-child-creation":"node benchmarks/utils/runbench child-creation","bench-formatters":"node benchmarks/utils/runbench formatters","update-bench-doc":"node benchmarks/utils/generate-benchmark-doc > docs/benchmarks.md"},xb={pino:"./bin.js"},Db="test",Tb={type:"git",url:"git+https://github.com/pinojs/pino.git"},Nb=["fast","logger","stream","json"],Ob="Matteo Collina <hello@matteocollina.com>",Ab=["David Mark Clements <huperekchuno@googlemail.com>","James Sumners <james.sumners@gmail.com>","Thomas Watson Steen <w@tson.dk> (https://twitter.com/wa7son)"],Cb="MIT",Ib={url:"https://github.com/pinojs/pino/issues"},Rb="http://getpino.io",Lb={airtap:"3.0.0",benchmark:"^2.1.4",bole:"^4.0.0",bunyan:"^1.8.14","docsify-cli":"^4.4.1",execa:"^4.0.0",fastbench:"^1.0.1","flush-write-stream":"^2.0.0","import-fresh":"^3.2.1",log:"^6.0.0",loglevel:"^1.6.7","pino-pretty":"^4.1.0","pre-commit":"^1.2.2",proxyquire:"^2.1.3",pump:"^3.0.0",semver:"^7.0.0",snazzy:"^8.0.0",split2:"^3.1.1",standard:"^14.3.3",steed:"^1.1.3","strip-ansi":"^6.0.0",tap:"^14.10.8",tape:"^5.0.0",through2:"^4.0.0",winston:"^3.3.3"},Fb={"fast-redact":"^3.0.0","fast-safe-stringify":"^2.0.7",flatstr:"^1.0.12","pino-std-serializers":"^2.4.2","quick-format-unescaped":"^4.0.1","sonic-boom":"^1.0.2"},Pb={name:gb,version:yb,description:wb,main:_b,browser:bb,files:Eb,scripts:Sb,bin:xb,precommit:Db,repository:Tb,keywords:Nb,author:Ob,contributors:Ab,license:Cb,bugs:Ib,homepage:Rb,devDependencies:Lb,dependencies:Fb};const{version:Mb}=Pb;var $4={version:Mb};const{EventEmitter:Ub}=It,Bb=Ju,$b=Wu,{lsCacheSym:jb,levelValSym:Vb,setLevelSym:Zo,getLevelSym:j4,chindingsSym:Yo,parsedChindingsSym:kb,mixinSym:zb,asJsonSym:V4,writeSym:Hb,timeSym:qb,timeSliceIndexSym:Kb,streamSym:k4,serializersSym:Pa,formattersSym:Jo,useOnlyCustomLevelsSym:Gb,needsMetadataGsym:Wb}=o1,{getLevel:Zb,setLevel:Yb,isLevelEnabled:Jb,mappings:Xb,initialLsCache:Qb,genLsCache:eE,assertNoLevelCollisions:tE}=B4,{asChindings:z4,asJson:rE,buildFormatters:H4}=Ko,{version:aE}=$4,q4={constructor:class{},child:nE,bindings:sE,setBindings:pE,flush:dE,isLevelEnabled:Jb,version:aE,get level(){return this[j4]()},set level(e){this[Zo](e)},get levelVal(){return this[Vb]},set levelVal(e){throw Error("levelVal is read-only")},[jb]:Qb,[Hb]:oE,[V4]:rE,[j4]:Zb,[Zo]:Yb};Object.setPrototypeOf(q4,Ub.prototype);var iE=function(){return Object.create(q4)};const K4=e=>e;function nE(e){if(!e)throw Error("missing bindings for child Pino");const t=this[Pa],r=this[Jo],a=Object.create(this);if(e.hasOwnProperty("serializers")===!0){a[Pa]=Object.create(null);for(var i in t)a[Pa][i]=t[i];const d=Object.getOwnPropertySymbols(t);for(var n=0;n<d.length;n++){const h=d[n];a[Pa][h]=t[h]}for(var p in e.serializers)a[Pa][p]=e.serializers[p];const l=Object.getOwnPropertySymbols(e.serializers);for(var s=0;s<l.length;s++){const h=l[s];a[Pa][h]=e.serializers[h]}}else a[Pa]=t;if(e.hasOwnProperty("formatters")){const{level:d,bindings:l,log:h}=e.formatters;a[Jo]=H4(d||r.level,l||K4,h||r.log)}else a[Jo]=H4(r.level,K4,r.log);e.hasOwnProperty("customLevels")===!0&&(tE(this.levels,e.customLevels),a.levels=Xb(e.customLevels,a[Gb]),eE(a)),a[Yo]=z4(a,e);const o=e.level||this.level;return a[Zo](o),a}function sE(){var t=`{${this[Yo].substr(1)}}`,r=JSON.parse(t);return delete r.pid,delete r.hostname,r}function pE(e){const t=z4(this,e);this[Yo]=t,delete this[kb]}function oE(e,t,r){const a=this[qb](),i=this[zb],n=e instanceof Error;var p;e==null?p=i?i():{}:(p=Object.assign(i?i():{},e),!t&&n&&(t=e.message),n&&(p.stack=e.stack,p.type||(p.type="Error")));const s=this[V4](p,t,r,a),o=this[k4];o[Wb]===!0&&(o.lastLevel=r,o.lastObj=p,o.lastMsg=t,o.lastTime=a.slice(this[Kb]),o.lastLogger=this),o instanceof Bb?o.write(s):o.write($b(s))}function dE(){const e=this[k4];"flush"in e&&e.flush()}const lE=Au,G4=Mu,uE=f_,W4=h_,cE=iE,Z4=o1,{assertDefaultLevelFound:fE,mappings:Y4,genLsCache:hE}=B4,{createArgsNormalizer:mE,asChindings:vE,final:gE,stringify:Nn,buildSafeSonicBoom:Xo,buildFormatters:yE,noop:wE}=Ko,{version:_E}=$4,{chindingsSym:J4,redactFmtSym:bE,serializersSym:X4,timeSym:EE,timeSliceIndexSym:SE,streamSym:xE,stringifySym:Q4,stringifiersSym:e3,setLevelSym:DE,endSym:TE,formatOptsSym:NE,messageKeySym:OE,nestedKeySym:AE,mixinSym:CE,useOnlyCustomLevelsSym:IE,formattersSym:t3,hooksSym:RE}=Z4,{epochTime:r3,nullTime:LE}=W4,{pid:FE}=process,PE=lE.hostname(),ME=G4.err,Qo={level:"info",messageKey:"msg",nestedKey:null,enabled:!0,prettyPrint:!1,base:{pid:FE,hostname:PE},serializers:Object.assign(Object.create(null),{err:ME}),formatters:Object.assign(Object.create(null),{bindings(e){return e},level(e,t){return{level:t}}}),hooks:{logMethod:void 0},timestamp:r3,name:void 0,redact:null,customLevels:null,levelKey:void 0,useOnlyCustomLevels:!1},UE=mE(Qo),BE=Object.assign(Object.create(null),G4);function Lr(...e){const t={},{opts:r,stream:a}=UE(t,...e),{redact:i,crlf:n,serializers:p,timestamp:s,messageKey:o,nestedKey:d,base:l,name:h,level:g,customLevels:v,useLevelLabels:y,changeLevelName:A,levelKey:E,mixin:D,useOnlyCustomLevels:C,formatters:B,hooks:S}=r,x=yE(B.level,B.bindings,B.log);y&&!(A||E)?(process.emitWarning("useLevelLabels is deprecated, use the formatters.level option instead","Warning","PINODEP001"),x.level=$E):(A||E)&&!y?(process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),x.level=jE(A||E)):(A||E)&&y&&(process.emitWarning("useLevelLabels is deprecated, use the formatters.level option instead","Warning","PINODEP001"),process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),x.level=VE(A||E)),p[Symbol.for("pino.*")]&&(process.emitWarning("The pino.* serializer is deprecated, use the formatters.log options instead","Warning","PINODEP003"),x.log=p[Symbol.for("pino.*")]),x.bindings||(x.bindings=Qo.formatters.bindings),x.level||(x.level=Qo.formatters.level);const N=i?uE(i,Nn):{},u=i?{stringify:N[bE]}:{stringify:Nn},T="}"+(n?`\r
99
- `:`
100
- `),Z=vE.bind(null,{[J4]:"",[X4]:p,[e3]:N,[Q4]:Nn,[t3]:x}),J=l===null?"":Z(h===void 0?l:Object.assign({},l,{name:h})),ne=s instanceof Function?s:s?r3:LE,pe=ne().indexOf(":")+1;if(C&&!v)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(D&&typeof D!="function")throw Error(`Unknown mixin type "${typeof D}" - expected "function"`);fE(g,v,C);const le=Y4(v,C);return Object.assign(t,{levels:le,[IE]:C,[xE]:a,[EE]:ne,[SE]:pe,[Q4]:Nn,[e3]:N,[TE]:T,[NE]:u,[OE]:o,[AE]:d,[X4]:p,[CE]:D,[J4]:J,[t3]:x,[RE]:S,silent:wE}),Object.setPrototypeOf(t,cE()),hE(t),t[DE](g),t}function $E(e,t){return{level:e}}function jE(e){return function(t,r){return{[e]:r}}}function VE(e){return function(t,r){return{[e]:t}}}Lr.extreme=(e=process.stdout.fd)=>(process.emitWarning("The pino.extreme() option is deprecated and will be removed in v7. Use pino.destination({ sync: false }) instead.",{code:"extreme_deprecation"}),Xo({dest:e,minLength:4096,sync:!1})),Lr.destination=(e=process.stdout.fd)=>typeof e=="object"?(e.dest=e.dest||process.stdout.fd,Xo(e)):Xo({dest:e,minLength:0,sync:!0}),Lr.final=gE,Lr.levels=Y4(),Lr.stdSerializers=BE,Lr.stdTimeFunctions=Object.assign({},W4),Lr.symbols=Z4,Lr.version=_E;var ed=Lr,a3={},td=function(e,t){return td=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},td(e,t)};function kE(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");td(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var rd=function(){return rd=Object.assign||function(t){for(var r,a=1,i=arguments.length;a<i;a++){r=arguments[a];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},rd.apply(this,arguments)};function zE(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]]);return r}function HE(e,t,r,a){var i=arguments.length,n=i<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,r):a,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,a);else for(var s=e.length-1;s>=0;s--)(p=e[s])&&(n=(i<3?p(n):i>3?p(t,r,n):p(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}function qE(e,t){return function(r,a){t(r,a,e)}}function KE(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function GE(e,t,r,a){function i(n){return n instanceof r?n:new r(function(p){p(n)})}return new(r||(r=Promise))(function(n,p){function s(l){try{d(a.next(l))}catch(h){p(h)}}function o(l){try{d(a.throw(l))}catch(h){p(h)}}function d(l){l.done?n(l.value):i(l.value).then(s,o)}d((a=a.apply(e,t||[])).next())})}function WE(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},a,i,n,p;return p={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function s(d){return function(l){return o([d,l])}}function o(d){if(a)throw new TypeError("Generator is already executing.");for(;r;)try{if(a=1,i&&(n=d[0]&2?i.return:d[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,d[1])).done)return n;switch(i=0,n&&(d=[d[0]&2,n.value]),d[0]){case 0:case 1:n=d;break;case 4:return r.label++,{value:d[1],done:!1};case 5:r.label++,i=d[1],d=[0];continue;case 7:d=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!n||d[1]>n[0]&&d[1]<n[3])){r.label=d[1];break}if(d[0]===6&&r.label<n[1]){r.label=n[1],n=d;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(d);break}n[2]&&r.ops.pop(),r.trys.pop();continue}d=t.call(e,r)}catch(l){d=[6,l],i=0}finally{a=n=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}var ad=Object.create?function(e,t,r,a){a===void 0&&(a=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,a,i)}:function(e,t,r,a){a===void 0&&(a=r),e[a]=t[r]};function ZE(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ad(t,e,r)}function id(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],a=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function i3(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),i,n=[],p;try{for(;(t===void 0||t-- >0)&&!(i=a.next()).done;)n.push(i.value)}catch(s){p={error:s}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(p)throw p.error}}return n}function YE(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i3(arguments[t]));return e}function JE(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var a=Array(e),i=0,t=0;t<r;t++)for(var n=arguments[t],p=0,s=n.length;p<s;p++,i++)a[i]=n[p];return a}function XE(e,t,r){if(r||arguments.length===2)for(var a=0,i=t.length,n;a<i;a++)(n||!(a in t))&&(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))}function u1(e){return this instanceof u1?(this.v=e,this):new u1(e)}function QE(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=r.apply(e,t||[]),i,n=[];return i={},p("next"),p("throw"),p("return"),i[Symbol.asyncIterator]=function(){return this},i;function p(g){a[g]&&(i[g]=function(v){return new Promise(function(y,A){n.push([g,v,y,A])>1||s(g,v)})})}function s(g,v){try{o(a[g](v))}catch(y){h(n[0][3],y)}}function o(g){g.value instanceof u1?Promise.resolve(g.value.v).then(d,l):h(n[0][2],g)}function d(g){s("next",g)}function l(g){s("throw",g)}function h(g,v){g(v),n.shift(),n.length&&s(n[0][0],n[0][1])}}function eS(e){var t,r;return t={},a("next"),a("throw",function(i){throw i}),a("return"),t[Symbol.iterator]=function(){return this},t;function a(i,n){t[i]=e[i]?function(p){return(r=!r)?{value:u1(e[i](p)),done:i==="return"}:n?n(p):p}:n}}function tS(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof id=="function"?id(e):e[Symbol.iterator](),r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r);function a(n){r[n]=e[n]&&function(p){return new Promise(function(s,o){p=e[n](p),i(s,o,p.done,p.value)})}}function i(n,p,s,o){Promise.resolve(o).then(function(d){n({value:d,done:s})},p)}}function rS(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var aS=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function iS(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&ad(t,e,r);return aS(t,e),t}function nS(e){return e&&e.__esModule?e:{default:e}}function sS(e,t,r,a){if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?a:r==="a"?a.call(e):a?a.value:t.get(e)}function pS(e,t,r,a,i){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function oS(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}var dS=Object.freeze({__proto__:null,__extends:kE,get __assign(){return rd},__rest:zE,__decorate:HE,__param:qE,__metadata:KE,__awaiter:GE,__generator:WE,__createBinding:ad,__exportStar:ZE,__values:id,__read:i3,__spread:YE,__spreadArrays:JE,__spreadArray:XE,__await:u1,__asyncGenerator:QE,__asyncDelegator:eS,__asyncValues:tS,__makeTemplateObject:rS,__importStar:iS,__importDefault:nS,__classPrivateFieldGet:sS,__classPrivateFieldSet:pS,__classPrivateFieldIn:oS}),On=Er(dS),yi={},nd={exports:{}};function n3(e,t){for(var r=0,a=e.length-1;a>=0;a--){var i=e[a];i==="."?e.splice(a,1):i===".."?(e.splice(a,1),r++):r&&(e.splice(a,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var lS=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,sd=function(e){return lS.exec(e).slice(1)};function An(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var a=r>=0?arguments[r]:"/";if(typeof a!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!a)continue;e=a+"/"+e,t=a.charAt(0)==="/"}return e=n3(dd(e.split("/"),function(i){return!!i}),!t).join("/"),(t?"/":"")+e||"."}function pd(e){var t=od(e),r=cS(e,-1)==="/";return e=n3(dd(e.split("/"),function(a){return!!a}),!t).join("/"),!e&&!t&&(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function od(e){return e.charAt(0)==="/"}function s3(){var e=Array.prototype.slice.call(arguments,0);return pd(dd(e,function(t,r){if(typeof t!="string")throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))}function p3(e,t){e=An(e).substr(1),t=An(t).substr(1);function r(d){for(var l=0;l<d.length&&d[l]==="";l++);for(var h=d.length-1;h>=0&&d[h]==="";h--);return l>h?[]:d.slice(l,h-l+1)}for(var a=r(e.split("/")),i=r(t.split("/")),n=Math.min(a.length,i.length),p=n,s=0;s<n;s++)if(a[s]!==i[s]){p=s;break}for(var o=[],s=p;s<a.length;s++)o.push("..");return o=o.concat(i.slice(p)),o.join("/")}var o3="/",d3=":";function l3(e){var t=sd(e),r=t[0],a=t[1];return!r&&!a?".":(a&&(a=a.substr(0,a.length-1)),r+a)}function u3(e,t){var r=sd(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r}function c3(e){return sd(e)[3]}var uS={extname:c3,basename:u3,dirname:l3,sep:o3,delimiter:d3,relative:p3,join:s3,isAbsolute:od,normalize:pd,resolve:An};function dd(e,t){if(e.filter)return e.filter(t);for(var r=[],a=0;a<e.length;a++)t(e[a],a,e)&&r.push(e[a]);return r}var cS="ab".substr(-1)==="b"?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)},fS=Object.freeze({__proto__:null,resolve:An,normalize:pd,isAbsolute:od,join:s3,relative:p3,sep:o3,delimiter:d3,dirname:l3,basename:u3,extname:c3,default:uS}),Cn=Er(fS),c1={},f3;function Fr(){return f3||(f3=1,c1.getBooleanOption=(e,t)=>{let r=!1;if(t in e&&typeof(r=e[t])!="boolean")throw new TypeError(`Expected the "${t}" option to be a boolean`);return r},c1.cppdb=Symbol(),c1.inspect=Symbol.for("nodejs.util.inspect.custom")),c1}var ld,h3;function m3(){if(h3)return ld;h3=1;const e={value:"SqliteError",writable:!0,enumerable:!1,configurable:!0};function t(r,a){if(new.target!==t)return new t(r,a);if(typeof a!="string")throw new TypeError("Expected second argument to be a string");Error.call(this,r),e.value=""+r,Object.defineProperty(this,"message",e),Error.captureStackTrace(this,t),this.code=a}return Object.setPrototypeOf(t,Error),Object.setPrototypeOf(t.prototype,Error.prototype),Object.defineProperty(t.prototype,"name",e),ld=t,ld}var In={exports:{}},ud,v3;function hS(){if(v3)return ud;v3=1;var e=Cn.sep||"/";ud=t;function t(r){if(typeof r!="string"||r.length<=7||r.substring(0,7)!="file://")throw new TypeError("must pass in a file:// URI to convert to a file path");var a=decodeURI(r.substring(7)),i=a.indexOf("/"),n=a.substring(0,i),p=a.substring(i+1);return n=="localhost"&&(n=""),n&&(n=e+e+n),p=p.replace(/^(.+)\|/,"$1:"),e=="\\"&&(p=p.replace(/\//g,"\\")),/^.+\:/.test(p)||(p=e+p),n+p}return ud}var g3;function mS(){return g3||(g3=1,function(e,t){var r=t1,a=Cn,i=hS(),n=a.join,p=a.dirname,s=r.accessSync&&function(l){try{r.accessSync(l)}catch{return!1}return!0}||r.existsSync||a.existsSync,o={arrow:process.env.NODE_BINDINGS_ARROW||" \u2192 ",compiled:process.env.NODE_BINDINGS_COMPILED_DIR||"compiled",platform:process.platform,arch:process.arch,nodePreGyp:"node-v"+process.versions.modules+"-"+process.platform+"-"+process.arch,version:process.versions.node,bindings:"bindings.node",try:[["module_root","build","bindings"],["module_root","build","Debug","bindings"],["module_root","build","Release","bindings"],["module_root","out","Debug","bindings"],["module_root","Debug","bindings"],["module_root","out","Release","bindings"],["module_root","Release","bindings"],["module_root","build","default","bindings"],["module_root","compiled","version","platform","arch","bindings"],["module_root","addon-build","release","install-root","bindings"],["module_root","addon-build","debug","install-root","bindings"],["module_root","addon-build","default","install-root","bindings"],["module_root","lib","binding","nodePreGyp","bindings"]]};function d(l){typeof l=="string"?l={bindings:l}:l||(l={}),Object.keys(o).map(function(C){C in l||(l[C]=o[C])}),l.module_root||(l.module_root=t.getRoot(t.getFileName())),a.extname(l.bindings)!=".node"&&(l.bindings+=".node");for(var h=typeof __webpack_require__=="function"?__non_webpack_require__:Lp,g=[],v=0,y=l.try.length,A,E,D;v<y;v++){A=n.apply(null,l.try[v].map(function(C){return l[C]||C})),g.push(A);try{return E=l.path?h.resolve(A):h(A),l.path||(E.path=A),E}catch(C){if(C.code!=="MODULE_NOT_FOUND"&&C.code!=="QUALIFIED_PATH_RESOLUTION_FAILED"&&!/not find/i.test(C.message))throw C}}throw D=new Error(`Could not locate the bindings file. Tried:
101
- `+g.map(function(C){return l.arrow+C}).join(`
102
- `)),D.tries=g,D}e.exports=t=d,t.getFileName=function(h){var g=Error.prepareStackTrace,v=Error.stackTraceLimit,y={},A;Error.stackTraceLimit=10,Error.prepareStackTrace=function(D,C){for(var B=0,S=C.length;B<S;B++)if(A=C[B].getFileName(),A!==__filename)if(h){if(A!==h)return}else return},Error.captureStackTrace(y),y.stack,Error.prepareStackTrace=g,Error.stackTraceLimit=v;var E="file://";return A.indexOf(E)===0&&(A=i(A)),A},t.getRoot=function(h){for(var g=p(h),v;;){if(g==="."&&(g=process.cwd()),s(n(g,"package.json"))||s(n(g,"node_modules")))return g;if(v===g)throw new Error('Could not find module root given file: "'+h+'". Do you have a `package.json` file? ');v=g,g=n(g,"..")}}}(In,In.exports)),In.exports}var Pr={},y3;function vS(){if(y3)return Pr;y3=1;const{cppdb:e}=Fr();return Pr.prepare=function(r){return this[e].prepare(r,this,!1)},Pr.exec=function(r){return this[e].exec(r),this},Pr.close=function(){return this[e].close(),this},Pr.loadExtension=function(...r){return this[e].loadExtension(...r),this},Pr.defaultSafeIntegers=function(...r){return this[e].defaultSafeIntegers(...r),this},Pr.unsafeMode=function(...r){return this[e].unsafeMode(...r),this},Pr.getters={name:{get:function(){return this[e].name},enumerable:!0},open:{get:function(){return this[e].open},enumerable:!0},inTransaction:{get:function(){return this[e].inTransaction},enumerable:!0},readonly:{get:function(){return this[e].readonly},enumerable:!0},memory:{get:function(){return this[e].memory},enumerable:!0}},Pr}var cd,w3;function gS(){if(w3)return cd;w3=1;const{cppdb:e}=Fr(),t=new WeakMap;cd=function(n){if(typeof n!="function")throw new TypeError("Expected first argument to be a function");const p=this[e],s=r(p,this),{apply:o}=Function.prototype,d={default:{value:a(o,n,p,s.default)},deferred:{value:a(o,n,p,s.deferred)},immediate:{value:a(o,n,p,s.immediate)},exclusive:{value:a(o,n,p,s.exclusive)},database:{value:this,enumerable:!0}};return Object.defineProperties(d.default.value,d),Object.defineProperties(d.deferred.value,d),Object.defineProperties(d.immediate.value,d),Object.defineProperties(d.exclusive.value,d),d.default.value};const r=(i,n)=>{let p=t.get(i);if(!p){const s={commit:i.prepare("COMMIT",n,!1),rollback:i.prepare("ROLLBACK",n,!1),savepoint:i.prepare("SAVEPOINT ` _bs3. `",n,!1),release:i.prepare("RELEASE ` _bs3. `",n,!1),rollbackTo:i.prepare("ROLLBACK TO ` _bs3. `",n,!1)};t.set(i,p={default:Object.assign({begin:i.prepare("BEGIN",n,!1)},s),deferred:Object.assign({begin:i.prepare("BEGIN DEFERRED",n,!1)},s),immediate:Object.assign({begin:i.prepare("BEGIN IMMEDIATE",n,!1)},s),exclusive:Object.assign({begin:i.prepare("BEGIN EXCLUSIVE",n,!1)},s)})}return p},a=(i,n,p,{begin:s,commit:o,rollback:d,savepoint:l,release:h,rollbackTo:g})=>function(){let y,A,E;p.inTransaction?(y=l,A=h,E=g):(y=s,A=o,E=d),y.run();try{const D=i.call(n,this,arguments);return A.run(),D}catch(D){throw p.inTransaction&&(E.run(),E!==d&&A.run()),D}};return cd}var fd,_3;function yS(){if(_3)return fd;_3=1;const{getBooleanOption:e,cppdb:t}=Fr();return fd=function(a,i){if(i==null&&(i={}),typeof a!="string")throw new TypeError("Expected first argument to be a string");if(typeof i!="object")throw new TypeError("Expected second argument to be an options object");const n=e(i,"simple"),p=this[t].prepare(`PRAGMA ${a}`,this,!0);return n?p.pluck().get():p.all()},fd}var hd,b3;function wS(){if(b3)return hd;b3=1;const e=t1,t=Cn,{promisify:r}=P1(),{cppdb:a}=Fr(),i=r(e.access);hd=async function(s,o){if(o==null&&(o={}),typeof s!="string")throw new TypeError("Expected first argument to be a string");if(typeof o!="object")throw new TypeError("Expected second argument to be an options object");s=s.trim();const d="attached"in o?o.attached:"main",l="progress"in o?o.progress:null;if(!s)throw new TypeError("Backup filename cannot be an empty string");if(s===":memory:")throw new TypeError('Invalid backup filename ":memory:"');if(typeof d!="string")throw new TypeError('Expected the "attached" option to be a string');if(!d)throw new TypeError('The "attached" option cannot be an empty string');if(l!=null&&typeof l!="function")throw new TypeError('Expected the "progress" option to be a function');await i(t.dirname(s)).catch(()=>{throw new TypeError("Cannot save backup because the directory does not exist")});const h=await i(s).then(()=>!1,()=>!0);return n(this[a].backup(this,d,s,h),l||null)};const n=(p,s)=>{let o=0,d=!0;return new Promise((l,h)=>{setImmediate(function g(){try{const v=p.transfer(o);if(!v.remainingPages){p.close(),l(v);return}if(d&&(d=!1,o=100),s){const y=s(v);if(y!==void 0)if(typeof y=="number"&&y===y)o=Math.max(0,Math.min(2147483647,Math.round(y)));else throw new TypeError("Expected progress callback to return a number or undefined")}setImmediate(g)}catch(v){p.close(),h(v)}})})};return hd}var md,E3;function _S(){if(E3)return md;E3=1;const{cppdb:e}=Fr();return md=function(r){if(r==null&&(r={}),typeof r!="object")throw new TypeError("Expected first argument to be an options object");const a="attached"in r?r.attached:"main";if(typeof a!="string")throw new TypeError('Expected the "attached" option to be a string');if(!a)throw new TypeError('The "attached" option cannot be an empty string');return this[e].serialize(a)},md}var vd,S3;function bS(){if(S3)return vd;S3=1;const{getBooleanOption:e,cppdb:t}=Fr();return vd=function(a,i,n){if(i==null&&(i={}),typeof i=="function"&&(n=i,i={}),typeof a!="string")throw new TypeError("Expected first argument to be a string");if(typeof n!="function")throw new TypeError("Expected last argument to be a function");if(typeof i!="object")throw new TypeError("Expected second argument to be an options object");if(!a)throw new TypeError("User-defined function name cannot be an empty string");const p="safeIntegers"in i?+e(i,"safeIntegers"):2,s=e(i,"deterministic"),o=e(i,"directOnly"),d=e(i,"varargs");let l=-1;if(!d){if(l=n.length,!Number.isInteger(l)||l<0)throw new TypeError("Expected function.length to be a positive integer");if(l>100)throw new RangeError("User-defined functions cannot have more than 100 arguments")}return this[t].function(n,a,l,p,s,o),this},vd}var gd,x3;function ES(){if(x3)return gd;x3=1;const{getBooleanOption:e,cppdb:t}=Fr();gd=function(n,p){if(typeof n!="string")throw new TypeError("Expected first argument to be a string");if(typeof p!="object"||p===null)throw new TypeError("Expected second argument to be an options object");if(!n)throw new TypeError("User-defined function name cannot be an empty string");const s="start"in p?p.start:null,o=r(p,"step",!0),d=r(p,"inverse",!1),l=r(p,"result",!1),h="safeIntegers"in p?+e(p,"safeIntegers"):2,g=e(p,"deterministic"),v=e(p,"directOnly"),y=e(p,"varargs");let A=-1;if(!y&&(A=Math.max(a(o),d?a(d):0),A>0&&(A-=1),A>100))throw new RangeError("User-defined functions cannot have more than 100 arguments");return this[t].aggregate(s,o,d,l,n,A,h,g,v),this};const r=(i,n,p)=>{const s=n in i?i[n]:null;if(typeof s=="function")return s;if(s!=null)throw new TypeError(`Expected the "${n}" option to be a function`);if(p)throw new TypeError(`Missing required option "${n}"`);return null},a=({length:i})=>{if(Number.isInteger(i)&&i>=0)return i;throw new TypeError("Expected function.length to be a positive integer")};return gd}var yd,D3;function SS(){if(D3)return yd;D3=1;const{cppdb:e}=Fr();yd=function(v,y){if(typeof v!="string")throw new TypeError("Expected first argument to be a string");if(!v)throw new TypeError("Virtual table module name cannot be an empty string");let A=!1;if(typeof y=="object"&&y!==null)A=!0,y=h(r(y,"used",v));else{if(typeof y!="function")throw new TypeError("Expected second argument to be a function or a table definition object");y=t(y)}return this[e].table(y,v,A),this};function t(g){return function(y,A,E,...D){const C={module:y,database:A,table:E},B=o.call(g,C,D);if(typeof B!="object"||B===null)throw new TypeError(`Virtual table module "${y}" did not return a table definition object`);return r(B,"returned",y)}}function r(g,v,y){if(!s.call(g,"rows"))throw new TypeError(`Virtual table module "${y}" ${v} a table definition without a "rows" property`);if(!s.call(g,"columns"))throw new TypeError(`Virtual table module "${y}" ${v} a table definition without a "columns" property`);const A=g.rows;if(typeof A!="function"||Object.getPrototypeOf(A)!==d)throw new TypeError(`Virtual table module "${y}" ${v} a table definition with an invalid "rows" property (should be a generator function)`);let E=g.columns;if(!Array.isArray(E)||!(E=[...E]).every(x=>typeof x=="string"))throw new TypeError(`Virtual table module "${y}" ${v} a table definition with an invalid "columns" property (should be an array of strings)`);if(E.length!==new Set(E).size)throw new TypeError(`Virtual table module "${y}" ${v} a table definition with duplicate column names`);if(!E.length)throw new RangeError(`Virtual table module "${y}" ${v} a table definition with zero columns`);let D;if(s.call(g,"parameters")){if(D=g.parameters,!Array.isArray(D)||!(D=[...D]).every(x=>typeof x=="string"))throw new TypeError(`Virtual table module "${y}" ${v} a table definition with an invalid "parameters" property (should be an array of strings)`)}else D=p(A);if(D.length!==new Set(D).size)throw new TypeError(`Virtual table module "${y}" ${v} a table definition with duplicate parameter names`);if(D.length>32)throw new RangeError(`Virtual table module "${y}" ${v} a table definition with more than the maximum number of 32 parameters`);for(const x of D)if(E.includes(x))throw new TypeError(`Virtual table module "${y}" ${v} a table definition with column "${x}" which was ambiguously defined as both a column and parameter`);let C=2;if(s.call(g,"safeIntegers")){const x=g.safeIntegers;if(typeof x!="boolean")throw new TypeError(`Virtual table module "${y}" ${v} a table definition with an invalid "safeIntegers" property (should be a boolean)`);C=+x}let B=!1;if(s.call(g,"directOnly")&&(B=g.directOnly,typeof B!="boolean"))throw new TypeError(`Virtual table module "${y}" ${v} a table definition with an invalid "directOnly" property (should be a boolean)`);return[`CREATE TABLE x(${[...D.map(l).map(x=>`${x} HIDDEN`),...E.map(l)].join(", ")});`,a(A,new Map(E.map((x,N)=>[x,D.length+N])),y),D,C,B]}function a(g,v,y){return function*(...E){const D=E.map(C=>Buffer.isBuffer(C)?Buffer.from(C):C);for(let C=0;C<v.size;++C)D.push(null);for(const C of g(...E))if(Array.isArray(C))i(C,D,v.size,y),yield D;else if(typeof C=="object"&&C!==null)n(C,D,v,y),yield D;else throw new TypeError(`Virtual table module "${y}" yielded something that isn't a valid row object`)}}function i(g,v,y,A){if(g.length!==y)throw new TypeError(`Virtual table module "${A}" yielded a row with an incorrect number of columns`);const E=v.length-y;for(let D=0;D<y;++D)v[D+E]=g[D]}function n(g,v,y,A){let E=0;for(const D of Object.keys(g)){const C=y.get(D);if(C===void 0)throw new TypeError(`Virtual table module "${A}" yielded a row with an undeclared column "${D}"`);v[C]=g[D],E+=1}if(E!==y.size)throw new TypeError(`Virtual table module "${A}" yielded a row with missing columns`)}function p({length:g}){if(!Number.isInteger(g)||g<0)throw new TypeError("Expected function.length to be a positive integer");const v=[];for(let y=0;y<g;++y)v.push(`$${y+1}`);return v}const{hasOwnProperty:s}=Object.prototype,{apply:o}=Function.prototype,d=Object.getPrototypeOf(function*(){}),l=g=>`"${g.replace(/"/g,'""')}"`,h=g=>()=>g;return yd}var wd,T3;function xS(){if(T3)return wd;T3=1;const e=function(){};return wd=function(r,a){return Object.assign(new e,this)},wd}var _d,N3;function DS(){if(N3)return _d;N3=1;const e=t1,t=Cn,r=Fr(),a=m3();let i;function n(s,o){if(new.target==null)return new n(s,o);let d;if(Buffer.isBuffer(s)&&(d=s,s=":memory:"),s==null&&(s=""),o==null&&(o={}),typeof s!="string")throw new TypeError("Expected first argument to be a string");if(typeof o!="object")throw new TypeError("Expected second argument to be an options object");if("readOnly"in o)throw new TypeError('Misspelled option "readOnly" should be "readonly"');if("memory"in o)throw new TypeError('Option "memory" was removed in v7.0.0 (use ":memory:" filename instead)');const l=s.trim(),h=l===""||l===":memory:",g=r.getBooleanOption(o,"readonly"),v=r.getBooleanOption(o,"fileMustExist"),y="timeout"in o?o.timeout:5e3,A="verbose"in o?o.verbose:null,E="nativeBinding"in o?o.nativeBinding:null;if(g&&h&&!d)throw new TypeError("In-memory/temporary databases cannot be readonly");if(!Number.isInteger(y)||y<0)throw new TypeError('Expected the "timeout" option to be a positive integer');if(y>2147483647)throw new RangeError('Option "timeout" cannot be greater than 2147483647');if(A!=null&&typeof A!="function")throw new TypeError('Expected the "verbose" option to be a function');if(E!=null&&typeof E!="string")throw new TypeError('Expected the "nativeBinding" option to be a string');let D;if(E==null?D=i||(i=mS()("better_sqlite3.node")):D=Lp(t.resolve(E).replace(/(\.node)?$/,".node")),D.isInitialized||(D.setErrorConstructor(a),D.isInitialized=!0),!h&&!e.existsSync(t.dirname(l)))throw new TypeError("Cannot open database because the directory does not exist");Object.defineProperties(this,{[r.cppdb]:{value:new D.Database(l,s,h,g,v,y,A||null,d||null)},...p.getters})}const p=vS();return n.prototype.prepare=p.prepare,n.prototype.transaction=gS(),n.prototype.pragma=yS(),n.prototype.backup=wS(),n.prototype.serialize=_S(),n.prototype.function=bS(),n.prototype.aggregate=ES(),n.prototype.table=SS(),n.prototype.loadExtension=p.loadExtension,n.prototype.exec=p.exec,n.prototype.close=p.close,n.prototype.defaultSafeIntegers=p.defaultSafeIntegers,n.prototype.unsafeMode=p.unsafeMode,n.prototype[r.inspect]=xS(),_d=n,_d}var O3;function TS(){return O3||(O3=1,function(e){e.exports=DS(),e.exports.SqliteError=m3()}(nd)),nd.exports}var f1={},A3;function C3(){if(A3)return f1;A3=1,Object.defineProperty(f1,"__esModule",{value:!0});function e(r){if(typeof r!="string")throw new Error(`Cannot safe json parse value of type ${typeof r}`);try{return JSON.parse(r)}catch{return r}}f1.safeJsonParse=e;function t(r){return typeof r=="string"?r:JSON.stringify(r,(a,i)=>typeof i>"u"?null:i)}return f1.safeJsonStringify=t,f1}var bd={},h1={},I3;function NS(){if(I3)return h1;I3=1,Object.defineProperty(h1,"__esModule",{value:!0}),h1.IKeyValueStorage=void 0;class e{}return h1.IKeyValueStorage=e,h1}var m1={},R3;function OS(){if(R3)return m1;R3=1,Object.defineProperty(m1,"__esModule",{value:!0}),m1.parseEntry=void 0;const e=C3();function t(r){var a;return[r[0],e.safeJsonParse((a=r[1])!==null&&a!==void 0?a:"")]}return m1.parseEntry=t,m1}var L3;function F3(){return L3||(L3=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=On;t.__exportStar(NS(),e),t.__exportStar(OS(),e)}(bd)),bd}var v1={},P3;function AS(){if(P3)return v1;P3=1,Object.defineProperty(v1,"__esModule",{value:!0}),v1.Statements=void 0;class e{constructor(r){this.tableName=r}createTable(){return`CREATE TABLE IF NOT EXISTS ${this.tableName} (key text unique, value text)`}replaceInto(){return`REPLACE INTO ${this.tableName} (key, value) VALUES (@key, @value)`}selectValueWhereKey(){return`SELECT value FROM ${this.tableName} WHERE key = ?`}selectValues(){return`SELECT value FROM ${this.tableName}`}selectKeys(){return`SELECT key FROM ${this.tableName}`}selectEntries(){return`SELECT key, value FROM ${this.tableName}`}deleteFromWhereKey(){return`DELETE FROM ${this.tableName} WHERE key = ?`}}return v1.Statements=e,v1}var M3;function U3(){if(M3)return yi;M3=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.KeyValueStorage=void 0;const e=On,t=e.__importDefault(TS()),r=C3(),a=F3(),i=AS(),n="walletconnect_kvs.db",p="keyvaluestorage";class s{constructor(d){this.database=new t.default(d?.database||n),this.statements=new i.Statements(d?.table||p),this.database.prepare(this.statements.createTable()).run()}getKeys(){return e.__awaiter(this,void 0,void 0,function*(){return this.database.prepare(this.statements.selectKeys()).all().map(l=>Object.values(l)).flat()})}getEntries(){return e.__awaiter(this,void 0,void 0,function*(){return this.database.prepare(this.statements.selectEntries()).all().map(l=>a.parseEntry(Object.values(l)))})}getItem(d){return e.__awaiter(this,void 0,void 0,function*(){const l=this.database.prepare(this.statements.selectValueWhereKey()).get(d);if(!(typeof l>"u"||typeof l.value>"u"))return r.safeJsonParse(l.value)})}setItem(d,l){return e.__awaiter(this,void 0,void 0,function*(){this.database.prepare(this.statements.replaceInto()).run({key:d,value:r.safeJsonStringify(l)})})}removeItem(d){return e.__awaiter(this,void 0,void 0,function*(){this.database.prepare(this.statements.deleteFromWhereKey()).run(d)})}}return yi.KeyValueStorage=s,yi.default=s,yi}(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=On,r=t.__importDefault(U3());t.__exportStar(U3(),e),t.__exportStar(F3(),e),e.default=r.default})(a3);var CS=rf(a3),g1={},Rn={},Ed={},Ln={};class Ma{}var IS=Object.freeze({__proto__:null,IEvents:Ma}),RS=Er(IS);Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.IHeartBeat=void 0;const LS=RS;class FS extends LS.IEvents{constructor(t){super()}}Ln.IHeartBeat=FS,function(e){var t=Ee&&Ee.__createBinding||(Object.create?function(a,i,n,p){p===void 0&&(p=n),Object.defineProperty(a,p,{enumerable:!0,get:function(){return i[n]}})}:function(a,i,n,p){p===void 0&&(p=n),a[p]=i[n]}),r=Ee&&Ee.__exportStar||function(a,i){for(var n in a)n!=="default"&&!i.hasOwnProperty(n)&&t(i,a,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(Ln,e)}(Ed);var Sd={},wi={};Object.defineProperty(wi,"__esModule",{value:!0}),wi.HEARTBEAT_EVENTS=wi.HEARTBEAT_INTERVAL=void 0;const PS=qe;wi.HEARTBEAT_INTERVAL=PS.FIVE_SECONDS,wi.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"},function(e){var t=Ee&&Ee.__createBinding||(Object.create?function(a,i,n,p){p===void 0&&(p=n),Object.defineProperty(a,p,{enumerable:!0,get:function(){return i[n]}})}:function(a,i,n,p){p===void 0&&(p=n),a[p]=i[n]}),r=Ee&&Ee.__exportStar||function(a,i){for(var n in a)n!=="default"&&!i.hasOwnProperty(n)&&t(i,a,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(wi,e)}(Sd);var xd=Ee&&Ee.__awaiter||function(e,t,r,a){function i(n){return n instanceof r?n:new r(function(p){p(n)})}return new(r||(r=Promise))(function(n,p){function s(l){try{d(a.next(l))}catch(h){p(h)}}function o(l){try{d(a.throw(l))}catch(h){p(h)}}function d(l){l.done?n(l.value):i(l.value).then(s,o)}d((a=a.apply(e,t||[])).next())})};Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.HeartBeat=void 0;const MS=It,US=qe,BS=Ed,Dd=Sd;class Td extends BS.IHeartBeat{constructor(t){super(t),this.events=new MS.EventEmitter,this.interval=Dd.HEARTBEAT_INTERVAL,this.interval=t?.interval||Dd.HEARTBEAT_INTERVAL}static init(t){return xd(this,void 0,void 0,function*(){const r=new Td(t);return yield r.init(),r})}init(){return xd(this,void 0,void 0,function*(){yield this.initialize()})}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}initialize(){return xd(this,void 0,void 0,function*(){setInterval(()=>this.pulse(),US.toMiliseconds(this.interval))})}pulse(){this.events.emit(Dd.HEARTBEAT_EVENTS.pulse)}}Rn.HeartBeat=Td,function(e){var t=Ee&&Ee.__createBinding||(Object.create?function(a,i,n,p){p===void 0&&(p=n),Object.defineProperty(a,p,{enumerable:!0,get:function(){return i[n]}})}:function(a,i,n,p){p===void 0&&(p=n),a[p]=i[n]}),r=Ee&&Ee.__exportStar||function(a,i){for(var n in a)n!=="default"&&!i.hasOwnProperty(n)&&t(i,a,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(Rn,e),r(Ed,e),r(Sd,e)}(g1);var Pe={},Ua={},B3;function $3(){return B3||(B3=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.PINO_CUSTOM_CONTEXT_KEY=Ua.PINO_LOGGER_DEFAULTS=void 0,Ua.PINO_LOGGER_DEFAULTS={level:"info"},Ua.PINO_CUSTOM_CONTEXT_KEY="custom_context"),Ua}var Rt={},j3;function $S(){if(j3)return Rt;j3=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.generateChildLogger=Rt.formatChildLoggerContext=Rt.getLoggerContext=Rt.setBrowserLoggerContext=Rt.getBrowserLoggerContext=Rt.getDefaultLoggerOptions=void 0;const e=$3();function t(s){return Object.assign(Object.assign({},s),{level:s?.level||e.PINO_LOGGER_DEFAULTS.level})}Rt.getDefaultLoggerOptions=t;function r(s,o=e.PINO_CUSTOM_CONTEXT_KEY){return s[o]||""}Rt.getBrowserLoggerContext=r;function a(s,o,d=e.PINO_CUSTOM_CONTEXT_KEY){return s[d]=o,s}Rt.setBrowserLoggerContext=a;function i(s,o=e.PINO_CUSTOM_CONTEXT_KEY){let d="";return typeof s.bindings>"u"?d=r(s,o):d=s.bindings().context||"",d}Rt.getLoggerContext=i;function n(s,o,d=e.PINO_CUSTOM_CONTEXT_KEY){const l=i(s,d);return l.trim()?`${l}/${o}`:o}Rt.formatChildLoggerContext=n;function p(s,o,d=e.PINO_CUSTOM_CONTEXT_KEY){const l=n(s,o,d),h=s.child({context:l});return a(h,l,d)}return Rt.generateChildLogger=p,Rt}(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=On;t.__exportStar($3(),e),t.__exportStar($S(),e)})(Pe);class jS extends Ma{constructor(t){super(),this.opts=t,this.protocol="wc",this.version=2}}class VS extends Ma{constructor(t,r){super(),this.core=t,this.logger=r,this.records=new Map}}class kS{constructor(t,r){this.logger=t,this.core=r}}class zS extends Ma{constructor(t,r){super(),this.relayer=t,this.logger=r}}class HS extends Ma{constructor(t){super()}}class qS{constructor(t,r,a,i){this.core=t,this.logger=r,this.name=a}}class KS extends Ma{constructor(t,r){super(),this.relayer=t,this.logger=r}}function ft(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}var GS=ft;ft.EventEmitter=ft,ft.prototype._events=void 0,ft.prototype._maxListeners=void 0,ft.defaultMaxListeners=10,ft.prototype.setMaxListeners=function(e){if(!WS(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},ft.prototype.emit=function(e){var t,r,a,i,n,p;if(this._events||(this._events={}),e==="error"&&(!this._events.error||y1(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var s=new Error('Uncaught, unspecified "error" event. ('+t+")");throw s.context=t,s}if(r=this._events[e],V3(r))return!1;if(Mr(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),r.apply(this,i)}else if(y1(r))for(i=Array.prototype.slice.call(arguments,1),p=r.slice(),a=p.length,n=0;n<a;n++)p[n].apply(this,i);return!0},ft.prototype.addListener=function(e,t){var r;if(!Mr(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Mr(t.listener)?t.listener:t),this._events[e]?y1(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,y1(this._events[e])&&!this._events[e].warned&&(V3(this._maxListeners)?r=ft.defaultMaxListeners:r=this._maxListeners,r&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),typeof console.trace=="function"&&console.trace())),this},ft.prototype.on=ft.prototype.addListener,ft.prototype.once=function(e,t){if(!Mr(t))throw TypeError("listener must be a function");var r=!1;function a(){this.removeListener(e,a),r||(r=!0,t.apply(this,arguments))}return a.listener=t,this.on(e,a),this},ft.prototype.removeListener=function(e,t){var r,a,i,n;if(!Mr(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],i=r.length,a=-1,r===t||Mr(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(y1(r)){for(n=i;n-- >0;)if(r[n]===t||r[n].listener&&r[n].listener===t){a=n;break}if(a<0)return this;r.length===1?(r.length=0,delete this._events[e]):r.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},ft.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[e]&&delete this._events[e],this;if(arguments.length===0){for(t in this._events)t!=="removeListener"&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],Mr(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},ft.prototype.listeners=function(e){var t;return!this._events||!this._events[e]?t=[]:Mr(this._events[e])?t=[this._events[e]]:t=this._events[e].slice(),t},ft.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(Mr(t))return 1;if(t)return t.length}return 0},ft.listenerCount=function(e,t){return e.listenerCount(t)};function Mr(e){return typeof e=="function"}function WS(e){return typeof e=="number"}function y1(e){return typeof e=="object"&&e!==null}function V3(e){return e===void 0}class ZS{constructor(t){this.opts=t,this.protocol="wc",this.version=2}}class sO extends GS.EventEmitter{constructor(){super()}}class YS{constructor(t){this.client=t}}class JS extends Ma{constructor(t,r){super(),this.core=t,this.logger=r}}var Nd={},k3={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=De,r=$t;e.DIGEST_LENGTH=64,e.BLOCK_SIZE=128;var a=function(){function s(){this.digestLength=e.DIGEST_LENGTH,this.blockSize=e.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return s.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},s.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},s.prototype.clean=function(){r.wipe(this._buffer),r.wipe(this._tempHi),r.wipe(this._tempLo),this.reset()},s.prototype.update=function(o,d){if(d===void 0&&(d=o.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var l=0;if(this._bytesHashed+=d,this._bufferLength>0){for(;this._bufferLength<e.BLOCK_SIZE&&d>0;)this._buffer[this._bufferLength++]=o[l++],d--;this._bufferLength===this.blockSize&&(n(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(d>=this.blockSize&&(l=n(this._tempHi,this._tempLo,this._stateHi,this._stateLo,o,l,d),d%=this.blockSize);d>0;)this._buffer[this._bufferLength++]=o[l++],d--;return this},s.prototype.finish=function(o){if(!this._finished){var d=this._bytesHashed,l=this._bufferLength,h=d/536870912|0,g=d<<3,v=d%128<112?128:256;this._buffer[l]=128;for(var y=l+1;y<v-8;y++)this._buffer[y]=0;t.writeUint32BE(h,this._buffer,v-8),t.writeUint32BE(g,this._buffer,v-4),n(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,v),this._finished=!0}for(var y=0;y<this.digestLength/8;y++)t.writeUint32BE(this._stateHi[y],o,y*8),t.writeUint32BE(this._stateLo[y],o,y*8+4);return this},s.prototype.digest=function(){var o=new Uint8Array(this.digestLength);return this.finish(o),o},s.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},s.prototype.restoreState=function(o){return this._stateHi.set(o.stateHi),this._stateLo.set(o.stateLo),this._bufferLength=o.bufferLength,o.buffer&&this._buffer.set(o.buffer),this._bytesHashed=o.bytesHashed,this._finished=!1,this},s.prototype.cleanSavedState=function(o){r.wipe(o.stateHi),r.wipe(o.stateLo),o.buffer&&r.wipe(o.buffer),o.bufferLength=0,o.bytesHashed=0},s}();e.SHA512=a;var i=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function n(s,o,d,l,h,g,v){for(var y=d[0],A=d[1],E=d[2],D=d[3],C=d[4],B=d[5],S=d[6],x=d[7],N=l[0],u=l[1],T=l[2],Z=l[3],J=l[4],ne=l[5],pe=l[6],le=l[7],z,G,de,ce,te,ie,W,Y;v>=128;){for(var $=0;$<16;$++){var P=8*$+g;s[$]=t.readUint32BE(h,P),o[$]=t.readUint32BE(h,P+4)}for(var $=0;$<80;$++){var H=y,re=A,fe=E,V=D,j=C,U=B,f=S,F=x,se=N,O=u,R=T,Q=Z,w=J,c=ne,m=pe,_=le;if(z=x,G=le,te=G&65535,ie=G>>>16,W=z&65535,Y=z>>>16,z=(C>>>14|J<<32-14)^(C>>>18|J<<32-18)^(J>>>41-32|C<<32-(41-32)),G=(J>>>14|C<<32-14)^(J>>>18|C<<32-18)^(C>>>41-32|J<<32-(41-32)),te+=G&65535,ie+=G>>>16,W+=z&65535,Y+=z>>>16,z=C&B^~C&S,G=J&ne^~J&pe,te+=G&65535,ie+=G>>>16,W+=z&65535,Y+=z>>>16,z=i[$*2],G=i[$*2+1],te+=G&65535,ie+=G>>>16,W+=z&65535,Y+=z>>>16,z=s[$%16],G=o[$%16],te+=G&65535,ie+=G>>>16,W+=z&65535,Y+=z>>>16,ie+=te>>>16,W+=ie>>>16,Y+=W>>>16,de=W&65535|Y<<16,ce=te&65535|ie<<16,z=de,G=ce,te=G&65535,ie=G>>>16,W=z&65535,Y=z>>>16,z=(y>>>28|N<<32-28)^(N>>>34-32|y<<32-(34-32))^(N>>>39-32|y<<32-(39-32)),G=(N>>>28|y<<32-28)^(y>>>34-32|N<<32-(34-32))^(y>>>39-32|N<<32-(39-32)),te+=G&65535,ie+=G>>>16,W+=z&65535,Y+=z>>>16,z=y&A^y&E^A&E,G=N&u^N&T^u&T,te+=G&65535,ie+=G>>>16,W+=z&65535,Y+=z>>>16,ie+=te>>>16,W+=ie>>>16,Y+=W>>>16,F=W&65535|Y<<16,_=te&65535|ie<<16,z=V,G=Q,te=G&65535,ie=G>>>16,W=z&65535,Y=z>>>16,z=de,G=ce,te+=G&65535,ie+=G>>>16,W+=z&65535,Y+=z>>>16,ie+=te>>>16,W+=ie>>>16,Y+=W>>>16,V=W&65535|Y<<16,Q=te&65535|ie<<16,A=H,E=re,D=fe,C=V,B=j,S=U,x=f,y=F,u=se,T=O,Z=R,J=Q,ne=w,pe=c,le=m,N=_,$%16===15)for(var P=0;P<16;P++)z=s[P],G=o[P],te=G&65535,ie=G>>>16,W=z&65535,Y=z>>>16,z=s[(P+9)%16],G=o[(P+9)%16],te+=G&65535,ie+=G>>>16,W+=z&65535,Y+=z>>>16,de=s[(P+1)%16],ce=o[(P+1)%16],z=(de>>>1|ce<<32-1)^(de>>>8|ce<<32-8)^de>>>7,G=(ce>>>1|de<<32-1)^(ce>>>8|de<<32-8)^(ce>>>7|de<<32-7),te+=G&65535,ie+=G>>>16,W+=z&65535,Y+=z>>>16,de=s[(P+14)%16],ce=o[(P+14)%16],z=(de>>>19|ce<<32-19)^(ce>>>61-32|de<<32-(61-32))^de>>>6,G=(ce>>>19|de<<32-19)^(de>>>61-32|ce<<32-(61-32))^(ce>>>6|de<<32-6),te+=G&65535,ie+=G>>>16,W+=z&65535,Y+=z>>>16,ie+=te>>>16,W+=ie>>>16,Y+=W>>>16,s[P]=W&65535|Y<<16,o[P]=te&65535|ie<<16}z=y,G=N,te=G&65535,ie=G>>>16,W=z&65535,Y=z>>>16,z=d[0],G=l[0],te+=G&65535,ie+=G>>>16,W+=z&65535,Y+=z>>>16,ie+=te>>>16,W+=ie>>>16,Y+=W>>>16,d[0]=y=W&65535|Y<<16,l[0]=N=te&65535|ie<<16,z=A,G=u,te=G&65535,ie=G>>>16,W=z&65535,Y=z>>>16,z=d[1],G=l[1],te+=G&65535,ie+=G>>>16,W+=z&65535,Y+=z>>>16,ie+=te>>>16,W+=ie>>>16,Y+=W>>>16,d[1]=A=W&65535|Y<<16,l[1]=u=te&65535|ie<<16,z=E,G=T,te=G&65535,ie=G>>>16,W=z&65535,Y=z>>>16,z=d[2],G=l[2],te+=G&65535,ie+=G>>>16,W+=z&65535,Y+=z>>>16,ie+=te>>>16,W+=ie>>>16,Y+=W>>>16,d[2]=E=W&65535|Y<<16,l[2]=T=te&65535|ie<<16,z=D,G=Z,te=G&65535,ie=G>>>16,W=z&65535,Y=z>>>16,z=d[3],G=l[3],te+=G&65535,ie+=G>>>16,W+=z&65535,Y+=z>>>16,ie+=te>>>16,W+=ie>>>16,Y+=W>>>16,d[3]=D=W&65535|Y<<16,l[3]=Z=te&65535|ie<<16,z=C,G=J,te=G&65535,ie=G>>>16,W=z&65535,Y=z>>>16,z=d[4],G=l[4],te+=G&65535,ie+=G>>>16,W+=z&65535,Y+=z>>>16,ie+=te>>>16,W+=ie>>>16,Y+=W>>>16,d[4]=C=W&65535|Y<<16,l[4]=J=te&65535|ie<<16,z=B,G=ne,te=G&65535,ie=G>>>16,W=z&65535,Y=z>>>16,z=d[5],G=l[5],te+=G&65535,ie+=G>>>16,W+=z&65535,Y+=z>>>16,ie+=te>>>16,W+=ie>>>16,Y+=W>>>16,d[5]=B=W&65535|Y<<16,l[5]=ne=te&65535|ie<<16,z=S,G=pe,te=G&65535,ie=G>>>16,W=z&65535,Y=z>>>16,z=d[6],G=l[6],te+=G&65535,ie+=G>>>16,W+=z&65535,Y+=z>>>16,ie+=te>>>16,W+=ie>>>16,Y+=W>>>16,d[6]=S=W&65535|Y<<16,l[6]=pe=te&65535|ie<<16,z=x,G=le,te=G&65535,ie=G>>>16,W=z&65535,Y=z>>>16,z=d[7],G=l[7],te+=G&65535,ie+=G>>>16,W+=z&65535,Y+=z>>>16,ie+=te>>>16,W+=ie>>>16,Y+=W>>>16,d[7]=x=W&65535|Y<<16,l[7]=le=te&65535|ie<<16,g+=128,v-=128}return g}function p(s){var o=new a;o.update(s);var d=o.digest();return o.clean(),d}e.hash=p})(k3),function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=di,r=k3,a=$t;e.SIGNATURE_LENGTH=64,e.PUBLIC_KEY_LENGTH=32,e.SECRET_KEY_LENGTH=64,e.SEED_LENGTH=32;function i(V){var j=new Float64Array(16);if(V)for(var U=0;U<V.length;U++)j[U]=V[U];return j}var n=new Uint8Array(32);n[0]=9;var p=i(),s=i([1]),o=i([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),d=i([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),l=i([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),h=i([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),g=i([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function v(V,j){for(var U=0;U<16;U++)V[U]=j[U]|0}function y(V){for(var j=1,U=0;U<16;U++){var f=V[U]+j+65535;j=Math.floor(f/65536),V[U]=f-j*65536}V[0]+=j-1+37*(j-1)}function A(V,j,U){for(var f=~(U-1),F=0;F<16;F++){var se=f&(V[F]^j[F]);V[F]^=se,j[F]^=se}}function E(V,j){for(var U=i(),f=i(),F=0;F<16;F++)f[F]=j[F];y(f),y(f),y(f);for(var se=0;se<2;se++){U[0]=f[0]-65517;for(var F=1;F<15;F++)U[F]=f[F]-65535-(U[F-1]>>16&1),U[F-1]&=65535;U[15]=f[15]-32767-(U[14]>>16&1);var O=U[15]>>16&1;U[14]&=65535,A(f,U,1-O)}for(var F=0;F<16;F++)V[2*F]=f[F]&255,V[2*F+1]=f[F]>>8}function D(V,j){for(var U=0,f=0;f<32;f++)U|=V[f]^j[f];return(1&U-1>>>8)-1}function C(V,j){var U=new Uint8Array(32),f=new Uint8Array(32);return E(U,V),E(f,j),D(U,f)}function B(V){var j=new Uint8Array(32);return E(j,V),j[0]&1}function S(V,j){for(var U=0;U<16;U++)V[U]=j[2*U]+(j[2*U+1]<<8);V[15]&=32767}function x(V,j,U){for(var f=0;f<16;f++)V[f]=j[f]+U[f]}function N(V,j,U){for(var f=0;f<16;f++)V[f]=j[f]-U[f]}function u(V,j,U){var f,F,se=0,O=0,R=0,Q=0,w=0,c=0,m=0,_=0,k=0,X=0,ae=0,me=0,ge=0,b=0,I=0,M=0,K=0,ee=0,oe=0,he=0,we=0,xe=0,Ne=0,Se=0,be=0,it=0,_r=0,Dt=0,br=0,ia=0,na=0,Ce=U[0],Ue=U[1],Ve=U[2],Ke=U[3],ke=U[4],Me=U[5],Ge=U[6],Je=U[7],tt=U[8],rt=U[9],vt=U[10],ot=U[11],nt=U[12],ze=U[13],gt=U[14],yt=U[15];f=j[0],se+=f*Ce,O+=f*Ue,R+=f*Ve,Q+=f*Ke,w+=f*ke,c+=f*Me,m+=f*Ge,_+=f*Je,k+=f*tt,X+=f*rt,ae+=f*vt,me+=f*ot,ge+=f*nt,b+=f*ze,I+=f*gt,M+=f*yt,f=j[1],O+=f*Ce,R+=f*Ue,Q+=f*Ve,w+=f*Ke,c+=f*ke,m+=f*Me,_+=f*Ge,k+=f*Je,X+=f*tt,ae+=f*rt,me+=f*vt,ge+=f*ot,b+=f*nt,I+=f*ze,M+=f*gt,K+=f*yt,f=j[2],R+=f*Ce,Q+=f*Ue,w+=f*Ve,c+=f*Ke,m+=f*ke,_+=f*Me,k+=f*Ge,X+=f*Je,ae+=f*tt,me+=f*rt,ge+=f*vt,b+=f*ot,I+=f*nt,M+=f*ze,K+=f*gt,ee+=f*yt,f=j[3],Q+=f*Ce,w+=f*Ue,c+=f*Ve,m+=f*Ke,_+=f*ke,k+=f*Me,X+=f*Ge,ae+=f*Je,me+=f*tt,ge+=f*rt,b+=f*vt,I+=f*ot,M+=f*nt,K+=f*ze,ee+=f*gt,oe+=f*yt,f=j[4],w+=f*Ce,c+=f*Ue,m+=f*Ve,_+=f*Ke,k+=f*ke,X+=f*Me,ae+=f*Ge,me+=f*Je,ge+=f*tt,b+=f*rt,I+=f*vt,M+=f*ot,K+=f*nt,ee+=f*ze,oe+=f*gt,he+=f*yt,f=j[5],c+=f*Ce,m+=f*Ue,_+=f*Ve,k+=f*Ke,X+=f*ke,ae+=f*Me,me+=f*Ge,ge+=f*Je,b+=f*tt,I+=f*rt,M+=f*vt,K+=f*ot,ee+=f*nt,oe+=f*ze,he+=f*gt,we+=f*yt,f=j[6],m+=f*Ce,_+=f*Ue,k+=f*Ve,X+=f*Ke,ae+=f*ke,me+=f*Me,ge+=f*Ge,b+=f*Je,I+=f*tt,M+=f*rt,K+=f*vt,ee+=f*ot,oe+=f*nt,he+=f*ze,we+=f*gt,xe+=f*yt,f=j[7],_+=f*Ce,k+=f*Ue,X+=f*Ve,ae+=f*Ke,me+=f*ke,ge+=f*Me,b+=f*Ge,I+=f*Je,M+=f*tt,K+=f*rt,ee+=f*vt,oe+=f*ot,he+=f*nt,we+=f*ze,xe+=f*gt,Ne+=f*yt,f=j[8],k+=f*Ce,X+=f*Ue,ae+=f*Ve,me+=f*Ke,ge+=f*ke,b+=f*Me,I+=f*Ge,M+=f*Je,K+=f*tt,ee+=f*rt,oe+=f*vt,he+=f*ot,we+=f*nt,xe+=f*ze,Ne+=f*gt,Se+=f*yt,f=j[9],X+=f*Ce,ae+=f*Ue,me+=f*Ve,ge+=f*Ke,b+=f*ke,I+=f*Me,M+=f*Ge,K+=f*Je,ee+=f*tt,oe+=f*rt,he+=f*vt,we+=f*ot,xe+=f*nt,Ne+=f*ze,Se+=f*gt,be+=f*yt,f=j[10],ae+=f*Ce,me+=f*Ue,ge+=f*Ve,b+=f*Ke,I+=f*ke,M+=f*Me,K+=f*Ge,ee+=f*Je,oe+=f*tt,he+=f*rt,we+=f*vt,xe+=f*ot,Ne+=f*nt,Se+=f*ze,be+=f*gt,it+=f*yt,f=j[11],me+=f*Ce,ge+=f*Ue,b+=f*Ve,I+=f*Ke,M+=f*ke,K+=f*Me,ee+=f*Ge,oe+=f*Je,he+=f*tt,we+=f*rt,xe+=f*vt,Ne+=f*ot,Se+=f*nt,be+=f*ze,it+=f*gt,_r+=f*yt,f=j[12],ge+=f*Ce,b+=f*Ue,I+=f*Ve,M+=f*Ke,K+=f*ke,ee+=f*Me,oe+=f*Ge,he+=f*Je,we+=f*tt,xe+=f*rt,Ne+=f*vt,Se+=f*ot,be+=f*nt,it+=f*ze,_r+=f*gt,Dt+=f*yt,f=j[13],b+=f*Ce,I+=f*Ue,M+=f*Ve,K+=f*Ke,ee+=f*ke,oe+=f*Me,he+=f*Ge,we+=f*Je,xe+=f*tt,Ne+=f*rt,Se+=f*vt,be+=f*ot,it+=f*nt,_r+=f*ze,Dt+=f*gt,br+=f*yt,f=j[14],I+=f*Ce,M+=f*Ue,K+=f*Ve,ee+=f*Ke,oe+=f*ke,he+=f*Me,we+=f*Ge,xe+=f*Je,Ne+=f*tt,Se+=f*rt,be+=f*vt,it+=f*ot,_r+=f*nt,Dt+=f*ze,br+=f*gt,ia+=f*yt,f=j[15],M+=f*Ce,K+=f*Ue,ee+=f*Ve,oe+=f*Ke,he+=f*ke,we+=f*Me,xe+=f*Ge,Ne+=f*Je,Se+=f*tt,be+=f*rt,it+=f*vt,_r+=f*ot,Dt+=f*nt,br+=f*ze,ia+=f*gt,na+=f*yt,se+=38*K,O+=38*ee,R+=38*oe,Q+=38*he,w+=38*we,c+=38*xe,m+=38*Ne,_+=38*Se,k+=38*be,X+=38*it,ae+=38*_r,me+=38*Dt,ge+=38*br,b+=38*ia,I+=38*na,F=1,f=se+F+65535,F=Math.floor(f/65536),se=f-F*65536,f=O+F+65535,F=Math.floor(f/65536),O=f-F*65536,f=R+F+65535,F=Math.floor(f/65536),R=f-F*65536,f=Q+F+65535,F=Math.floor(f/65536),Q=f-F*65536,f=w+F+65535,F=Math.floor(f/65536),w=f-F*65536,f=c+F+65535,F=Math.floor(f/65536),c=f-F*65536,f=m+F+65535,F=Math.floor(f/65536),m=f-F*65536,f=_+F+65535,F=Math.floor(f/65536),_=f-F*65536,f=k+F+65535,F=Math.floor(f/65536),k=f-F*65536,f=X+F+65535,F=Math.floor(f/65536),X=f-F*65536,f=ae+F+65535,F=Math.floor(f/65536),ae=f-F*65536,f=me+F+65535,F=Math.floor(f/65536),me=f-F*65536,f=ge+F+65535,F=Math.floor(f/65536),ge=f-F*65536,f=b+F+65535,F=Math.floor(f/65536),b=f-F*65536,f=I+F+65535,F=Math.floor(f/65536),I=f-F*65536,f=M+F+65535,F=Math.floor(f/65536),M=f-F*65536,se+=F-1+37*(F-1),F=1,f=se+F+65535,F=Math.floor(f/65536),se=f-F*65536,f=O+F+65535,F=Math.floor(f/65536),O=f-F*65536,f=R+F+65535,F=Math.floor(f/65536),R=f-F*65536,f=Q+F+65535,F=Math.floor(f/65536),Q=f-F*65536,f=w+F+65535,F=Math.floor(f/65536),w=f-F*65536,f=c+F+65535,F=Math.floor(f/65536),c=f-F*65536,f=m+F+65535,F=Math.floor(f/65536),m=f-F*65536,f=_+F+65535,F=Math.floor(f/65536),_=f-F*65536,f=k+F+65535,F=Math.floor(f/65536),k=f-F*65536,f=X+F+65535,F=Math.floor(f/65536),X=f-F*65536,f=ae+F+65535,F=Math.floor(f/65536),ae=f-F*65536,f=me+F+65535,F=Math.floor(f/65536),me=f-F*65536,f=ge+F+65535,F=Math.floor(f/65536),ge=f-F*65536,f=b+F+65535,F=Math.floor(f/65536),b=f-F*65536,f=I+F+65535,F=Math.floor(f/65536),I=f-F*65536,f=M+F+65535,F=Math.floor(f/65536),M=f-F*65536,se+=F-1+37*(F-1),V[0]=se,V[1]=O,V[2]=R,V[3]=Q,V[4]=w,V[5]=c,V[6]=m,V[7]=_,V[8]=k,V[9]=X,V[10]=ae,V[11]=me,V[12]=ge,V[13]=b,V[14]=I,V[15]=M}function T(V,j){u(V,j,j)}function Z(V,j){var U=i(),f;for(f=0;f<16;f++)U[f]=j[f];for(f=253;f>=0;f--)T(U,U),f!==2&&f!==4&&u(U,U,j);for(f=0;f<16;f++)V[f]=U[f]}function J(V,j){var U=i(),f;for(f=0;f<16;f++)U[f]=j[f];for(f=250;f>=0;f--)T(U,U),f!==1&&u(U,U,j);for(f=0;f<16;f++)V[f]=U[f]}function ne(V,j){var U=i(),f=i(),F=i(),se=i(),O=i(),R=i(),Q=i(),w=i(),c=i();N(U,V[1],V[0]),N(c,j[1],j[0]),u(U,U,c),x(f,V[0],V[1]),x(c,j[0],j[1]),u(f,f,c),u(F,V[3],j[3]),u(F,F,d),u(se,V[2],j[2]),x(se,se,se),N(O,f,U),N(R,se,F),x(Q,se,F),x(w,f,U),u(V[0],O,R),u(V[1],w,Q),u(V[2],Q,R),u(V[3],O,w)}function pe(V,j,U){for(var f=0;f<4;f++)A(V[f],j[f],U)}function le(V,j){var U=i(),f=i(),F=i();Z(F,j[2]),u(U,j[0],F),u(f,j[1],F),E(V,f),V[31]^=B(U)<<7}function z(V,j,U){v(V[0],p),v(V[1],s),v(V[2],s),v(V[3],p);for(var f=255;f>=0;--f){var F=U[f/8|0]>>(f&7)&1;pe(V,j,F),ne(j,V),ne(V,V),pe(V,j,F)}}function G(V,j){var U=[i(),i(),i(),i()];v(U[0],l),v(U[1],h),v(U[2],s),u(U[3],l,h),z(V,U,j)}function de(V){if(V.length!==e.SEED_LENGTH)throw new Error("ed25519: seed must be "+e.SEED_LENGTH+" bytes");var j=r.hash(V);j[0]&=248,j[31]&=127,j[31]|=64;var U=new Uint8Array(32),f=[i(),i(),i(),i()];G(f,j),le(U,f);var F=new Uint8Array(64);return F.set(V),F.set(U,32),{publicKey:U,secretKey:F}}e.generateKeyPairFromSeed=de;function ce(V){var j=t.randomBytes(32,V),U=de(j);return a.wipe(j),U}e.generateKeyPair=ce;function te(V){if(V.length!==e.SECRET_KEY_LENGTH)throw new Error("ed25519: secret key must be "+e.SECRET_KEY_LENGTH+" bytes");return new Uint8Array(V.subarray(32))}e.extractPublicKeyFromSecretKey=te;var ie=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function W(V,j){var U,f,F,se;for(f=63;f>=32;--f){for(U=0,F=f-32,se=f-12;F<se;++F)j[F]+=U-16*j[f]*ie[F-(f-32)],U=Math.floor((j[F]+128)/256),j[F]-=U*256;j[F]+=U,j[f]=0}for(U=0,F=0;F<32;F++)j[F]+=U-(j[31]>>4)*ie[F],U=j[F]>>8,j[F]&=255;for(F=0;F<32;F++)j[F]-=U*ie[F];for(f=0;f<32;f++)j[f+1]+=j[f]>>8,V[f]=j[f]&255}function Y(V){for(var j=new Float64Array(64),U=0;U<64;U++)j[U]=V[U];for(var U=0;U<64;U++)V[U]=0;W(V,j)}function $(V,j){var U=new Float64Array(64),f=[i(),i(),i(),i()],F=r.hash(V.subarray(0,32));F[0]&=248,F[31]&=127,F[31]|=64;var se=new Uint8Array(64);se.set(F.subarray(32),32);var O=new r.SHA512;O.update(se.subarray(32)),O.update(j);var R=O.digest();O.clean(),Y(R),G(f,R),le(se,f),O.reset(),O.update(se.subarray(0,32)),O.update(V.subarray(32)),O.update(j);var Q=O.digest();Y(Q);for(var w=0;w<32;w++)U[w]=R[w];for(var w=0;w<32;w++)for(var c=0;c<32;c++)U[w+c]+=Q[w]*F[c];return W(se.subarray(32),U),se}e.sign=$;function P(V,j){var U=i(),f=i(),F=i(),se=i(),O=i(),R=i(),Q=i();return v(V[2],s),S(V[1],j),T(F,V[1]),u(se,F,o),N(F,F,V[2]),x(se,V[2],se),T(O,se),T(R,O),u(Q,R,O),u(U,Q,F),u(U,U,se),J(U,U),u(U,U,F),u(U,U,se),u(U,U,se),u(V[0],U,se),T(f,V[0]),u(f,f,se),C(f,F)&&u(V[0],V[0],g),T(f,V[0]),u(f,f,se),C(f,F)?-1:(B(V[0])===j[31]>>7&&N(V[0],p,V[0]),u(V[3],V[0],V[1]),0)}function H(V,j,U){var f=new Uint8Array(32),F=[i(),i(),i(),i()],se=[i(),i(),i(),i()];if(U.length!==e.SIGNATURE_LENGTH)throw new Error("ed25519: signature must be "+e.SIGNATURE_LENGTH+" bytes");if(P(se,V))return!1;var O=new r.SHA512;O.update(U.subarray(0,32)),O.update(V),O.update(j);var R=O.digest();return Y(R),z(F,se,R),G(se,U.subarray(32)),ne(F,se),le(f,F),!D(U,f)}e.verify=H;function re(V){var j=[i(),i(),i(),i()];if(P(j,V))throw new Error("Ed25519: invalid public key");var U=i(),f=i(),F=j[1];x(U,s,F),N(f,s,F),Z(f,f),u(U,U,f);var se=new Uint8Array(32);return E(se,U),se}e.convertPublicKeyToX25519=re;function fe(V){var j=r.hash(V.subarray(0,32));j[0]&=248,j[31]&=127,j[31]|=64;var U=new Uint8Array(j.subarray(0,32));return a.wipe(j),U}e.convertSecretKeyToX25519=fe}(Nd);const XS="EdDSA",QS="JWT",z3=".",H3="base64url",ex="utf8",tx="utf8",rx=":",ax="did",ix="key",q3="base58btc",nx="z",sx="K36",px=32;function Fn(e){return Mt(Pt(Qi(e),ex),H3)}function K3(e){const t=Pt(sx,q3),r=nx+Mt(Up([t,e]),q3);return[ax,ix,r].join(rx)}function ox(e){return Mt(e,H3)}function dx(e){return Pt([Fn(e.header),Fn(e.payload)].join(z3),tx)}function lx(e){return[Fn(e.header),Fn(e.payload),ox(e.signature)].join(z3)}function G3(e=di.randomBytes(px)){return Nd.generateKeyPairFromSeed(e)}async function ux(e,t,r,a,i=qe.fromMiliseconds(Date.now())){const n={alg:XS,typ:QS},p=K3(a.publicKey),s=i+r,o={iss:p,sub:e,aud:t,iat:i,exp:s},d=dx({header:n,payload:o}),l=Nd.sign(a.secretKey,d);return lx({header:n,payload:o,signature:l})}const W3=10,cx=typeof global.WebSocket<"u"?global.WebSocket:require("ws");class fx{constructor(t){if(this.url=t,this.events=new It.EventEmitter,this.registering=!1,!Qd(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);this.url=t}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async open(t=this.url){await this.register(t)}async close(){if(typeof this.socket>"u")throw new Error("Connection already closed");this.socket.close(),this.onClose()}async send(t,r){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(Qi(t))}catch(a){this.onError(t.id,a)}}register(t=this.url){if(!Qd(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);if(this.registering){const r=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=r||this.events.listenerCount("open")>=r)&&this.events.setMaxListeners(r+1),new Promise((a,i)=>{this.events.once("register_error",n=>{this.resetMaxListeners(),i(n)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return i(new Error("WebSocket connection is missing or invalid"));a(this.socket)})})}return this.url=t,this.registering=!0,new Promise((r,a)=>{const i=Kd.isReactNative()?void 0:{rejectUnauthorized:!Ef(t)},n=new cx(t,[],i);n.onopen=()=>{this.onOpen(n),r(n)},n.onerror=p=>{const s=this.parseError(p.error);this.events.emit("register_error",s),this.onClose(),a(s)}})}onOpen(t){t.onmessage=r=>this.onPayload(r),t.onclose=()=>this.onClose(),t.onerror=r=>{const a=this.parseError(r.error);this.events.emit("error",a)},this.socket=t,this.registering=!1,this.events.emit("open")}onClose(){this.socket=void 0,this.registering=!1,this.events.emit("close")}onPayload(t){if(typeof t.data>"u")return;const r=typeof t.data=="string"?Sp(t.data):t.data;this.events.emit("payload",r)}onError(t,r){const a=this.parseError(r),i=a.message||a.toString(),n=N1(t,i);this.events.emit("payload",n)}parseError(t,r=this.url){return qd(t,r,"WS")}resetMaxListeners(){this.events.getMaxListeners()>W3&&this.events.setMaxListeners(W3)}}var Od={exports:{}};(function(e,t){var r=200,a="__lodash_hash_undefined__",i=1,n=2,p=9007199254740991,s="[object Arguments]",o="[object Array]",d="[object AsyncFunction]",l="[object Boolean]",h="[object Date]",g="[object Error]",v="[object Function]",y="[object GeneratorFunction]",A="[object Map]",E="[object Number]",D="[object Null]",C="[object Object]",B="[object Promise]",S="[object Proxy]",x="[object RegExp]",N="[object Set]",u="[object String]",T="[object Symbol]",Z="[object Undefined]",J="[object WeakMap]",ne="[object ArrayBuffer]",pe="[object DataView]",le="[object Float32Array]",z="[object Float64Array]",G="[object Int8Array]",de="[object Int16Array]",ce="[object Int32Array]",te="[object Uint8Array]",ie="[object Uint8ClampedArray]",W="[object Uint16Array]",Y="[object Uint32Array]",$=/[\\^$.*+?()[\]{}|]/g,P=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,re={};re[le]=re[z]=re[G]=re[de]=re[ce]=re[te]=re[ie]=re[W]=re[Y]=!0,re[s]=re[o]=re[ne]=re[l]=re[pe]=re[h]=re[g]=re[v]=re[A]=re[E]=re[C]=re[x]=re[N]=re[u]=re[J]=!1;var fe=typeof Ee=="object"&&Ee&&Ee.Object===Object&&Ee,V=typeof self=="object"&&self&&self.Object===Object&&self,j=fe||V||Function("return this")(),U=t&&!t.nodeType&&t,f=U&&!0&&e&&!e.nodeType&&e,F=f&&f.exports===U,se=F&&fe.process,O=function(){try{return se&&se.binding&&se.binding("util")}catch{}}(),R=O&&O.isTypedArray;function Q(L,q){for(var ue=-1,_e=L==null?0:L.length,Be=0,Te=[];++ue<_e;){var Xe=L[ue];q(Xe,ue,L)&&(Te[Be++]=Xe)}return Te}function w(L,q){for(var ue=-1,_e=q.length,Be=L.length;++ue<_e;)L[Be+ue]=q[ue];return L}function c(L,q){for(var ue=-1,_e=L==null?0:L.length;++ue<_e;)if(q(L[ue],ue,L))return!0;return!1}function m(L,q){for(var ue=-1,_e=Array(L);++ue<L;)_e[ue]=q(ue);return _e}function _(L){return function(q){return L(q)}}function k(L,q){return L.has(q)}function X(L,q){return L?.[q]}function ae(L){var q=-1,ue=Array(L.size);return L.forEach(function(_e,Be){ue[++q]=[Be,_e]}),ue}function me(L,q){return function(ue){return L(q(ue))}}function ge(L){var q=-1,ue=Array(L.size);return L.forEach(function(_e){ue[++q]=_e}),ue}var b=Array.prototype,I=Function.prototype,M=Object.prototype,K=j["__core-js_shared__"],ee=I.toString,oe=M.hasOwnProperty,he=function(){var L=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||"");return L?"Symbol(src)_1."+L:""}(),we=M.toString,xe=RegExp("^"+ee.call(oe).replace($,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ne=F?j.Buffer:void 0,Se=j.Symbol,be=j.Uint8Array,it=M.propertyIsEnumerable,_r=b.splice,Dt=Se?Se.toStringTag:void 0,br=Object.getOwnPropertySymbols,ia=Ne?Ne.isBuffer:void 0,na=me(Object.keys,Object),Ce=Si(j,"DataView"),Ue=Si(j,"Map"),Ve=Si(j,"Promise"),Ke=Si(j,"Set"),ke=Si(j,"WeakMap"),Me=Si(Object,"create"),Ge=ja(Ce),Je=ja(Ue),tt=ja(Ve),rt=ja(Ke),vt=ja(ke),ot=Se?Se.prototype:void 0,nt=ot?ot.valueOf:void 0;function ze(L){var q=-1,ue=L==null?0:L.length;for(this.clear();++q<ue;){var _e=L[q];this.set(_e[0],_e[1])}}function gt(){this.__data__=Me?Me(null):{},this.size=0}function yt(L){var q=this.has(L)&&delete this.__data__[L];return this.size-=q?1:0,q}function dN(L){var q=this.__data__;if(Me){var ue=q[L];return ue===a?void 0:ue}return oe.call(q,L)?q[L]:void 0}function lN(L){var q=this.__data__;return Me?q[L]!==void 0:oe.call(q,L)}function uN(L,q){var ue=this.__data__;return this.size+=this.has(L)?0:1,ue[L]=Me&&q===void 0?a:q,this}ze.prototype.clear=gt,ze.prototype.delete=yt,ze.prototype.get=dN,ze.prototype.has=lN,ze.prototype.set=uN;function $r(L){var q=-1,ue=L==null?0:L.length;for(this.clear();++q<ue;){var _e=L[q];this.set(_e[0],_e[1])}}function cN(){this.__data__=[],this.size=0}function fN(L){var q=this.__data__,ue=zn(q,L);if(ue<0)return!1;var _e=q.length-1;return ue==_e?q.pop():_r.call(q,ue,1),--this.size,!0}function hN(L){var q=this.__data__,ue=zn(q,L);return ue<0?void 0:q[ue][1]}function mN(L){return zn(this.__data__,L)>-1}function vN(L,q){var ue=this.__data__,_e=zn(ue,L);return _e<0?(++this.size,ue.push([L,q])):ue[_e][1]=q,this}$r.prototype.clear=cN,$r.prototype.delete=fN,$r.prototype.get=hN,$r.prototype.has=mN,$r.prototype.set=vN;function $a(L){var q=-1,ue=L==null?0:L.length;for(this.clear();++q<ue;){var _e=L[q];this.set(_e[0],_e[1])}}function gN(){this.size=0,this.__data__={hash:new ze,map:new(Ue||$r),string:new ze}}function yN(L){var q=Hn(this,L).delete(L);return this.size-=q?1:0,q}function wN(L){return Hn(this,L).get(L)}function _N(L){return Hn(this,L).has(L)}function bN(L,q){var ue=Hn(this,L),_e=ue.size;return ue.set(L,q),this.size+=ue.size==_e?0:1,this}$a.prototype.clear=gN,$a.prototype.delete=yN,$a.prototype.get=wN,$a.prototype.has=_N,$a.prototype.set=bN;function kn(L){var q=-1,ue=L==null?0:L.length;for(this.__data__=new $a;++q<ue;)this.add(L[q])}function EN(L){return this.__data__.set(L,a),this}function SN(L){return this.__data__.has(L)}kn.prototype.add=kn.prototype.push=EN,kn.prototype.has=SN;function sa(L){var q=this.__data__=new $r(L);this.size=q.size}function xN(){this.__data__=new $r,this.size=0}function DN(L){var q=this.__data__,ue=q.delete(L);return this.size=q.size,ue}function TN(L){return this.__data__.get(L)}function NN(L){return this.__data__.has(L)}function ON(L,q){var ue=this.__data__;if(ue instanceof $r){var _e=ue.__data__;if(!Ue||_e.length<r-1)return _e.push([L,q]),this.size=++ue.size,this;ue=this.__data__=new $a(_e)}return ue.set(L,q),this.size=ue.size,this}sa.prototype.clear=xN,sa.prototype.delete=DN,sa.prototype.get=TN,sa.prototype.has=NN,sa.prototype.set=ON;function AN(L,q){var ue=qn(L),_e=!ue&&HN(L),Be=!ue&&!_e&&jd(L),Te=!ue&&!_e&&!Be&&ef(L),Xe=ue||_e||Be||Te,wt=Xe?m(L.length,String):[],Tt=wt.length;for(var We in L)(q||oe.call(L,We))&&!(Xe&&(We=="length"||Be&&(We=="offset"||We=="parent")||Te&&(We=="buffer"||We=="byteLength"||We=="byteOffset")||$N(We,Tt)))&&wt.push(We);return wt}function zn(L,q){for(var ue=L.length;ue--;)if(Yc(L[ue][0],q))return ue;return-1}function CN(L,q,ue){var _e=q(L);return qn(L)?_e:w(_e,ue(L))}function D1(L){return L==null?L===void 0?Z:D:Dt&&Dt in Object(L)?UN(L):zN(L)}function Kc(L){return T1(L)&&D1(L)==s}function Gc(L,q,ue,_e,Be){return L===q?!0:L==null||q==null||!T1(L)&&!T1(q)?L!==L&&q!==q:IN(L,q,ue,_e,Gc,Be)}function IN(L,q,ue,_e,Be,Te){var Xe=qn(L),wt=qn(q),Tt=Xe?o:pa(L),We=wt?o:pa(q);Tt=Tt==s?C:Tt,We=We==s?C:We;var jt=Tt==C,nr=We==C,Ct=Tt==We;if(Ct&&jd(L)){if(!jd(q))return!1;Xe=!0,jt=!1}if(Ct&&!jt)return Te||(Te=new sa),Xe||ef(L)?Wc(L,q,ue,_e,Be,Te):PN(L,q,Tt,ue,_e,Be,Te);if(!(ue&i)){var Zt=jt&&oe.call(L,"__wrapped__"),Yt=nr&&oe.call(q,"__wrapped__");if(Zt||Yt){var oa=Zt?L.value():L,jr=Yt?q.value():q;return Te||(Te=new sa),Be(oa,jr,ue,_e,Te)}}return Ct?(Te||(Te=new sa),MN(L,q,ue,_e,Be,Te)):!1}function RN(L){if(!Qc(L)||VN(L))return!1;var q=Jc(L)?xe:P;return q.test(ja(L))}function LN(L){return T1(L)&&Xc(L.length)&&!!re[D1(L)]}function FN(L){if(!kN(L))return na(L);var q=[];for(var ue in Object(L))oe.call(L,ue)&&ue!="constructor"&&q.push(ue);return q}function Wc(L,q,ue,_e,Be,Te){var Xe=ue&i,wt=L.length,Tt=q.length;if(wt!=Tt&&!(Xe&&Tt>wt))return!1;var We=Te.get(L);if(We&&Te.get(q))return We==q;var jt=-1,nr=!0,Ct=ue&n?new kn:void 0;for(Te.set(L,q),Te.set(q,L);++jt<wt;){var Zt=L[jt],Yt=q[jt];if(_e)var oa=Xe?_e(Yt,Zt,jt,q,L,Te):_e(Zt,Yt,jt,L,q,Te);if(oa!==void 0){if(oa)continue;nr=!1;break}if(Ct){if(!c(q,function(jr,Va){if(!k(Ct,Va)&&(Zt===jr||Be(Zt,jr,ue,_e,Te)))return Ct.push(Va)})){nr=!1;break}}else if(!(Zt===Yt||Be(Zt,Yt,ue,_e,Te))){nr=!1;break}}return Te.delete(L),Te.delete(q),nr}function PN(L,q,ue,_e,Be,Te,Xe){switch(ue){case pe:if(L.byteLength!=q.byteLength||L.byteOffset!=q.byteOffset)return!1;L=L.buffer,q=q.buffer;case ne:return!(L.byteLength!=q.byteLength||!Te(new be(L),new be(q)));case l:case h:case E:return Yc(+L,+q);case g:return L.name==q.name&&L.message==q.message;case x:case u:return L==q+"";case A:var wt=ae;case N:var Tt=_e&i;if(wt||(wt=ge),L.size!=q.size&&!Tt)return!1;var We=Xe.get(L);if(We)return We==q;_e|=n,Xe.set(L,q);var jt=Wc(wt(L),wt(q),_e,Be,Te,Xe);return Xe.delete(L),jt;case T:if(nt)return nt.call(L)==nt.call(q)}return!1}function MN(L,q,ue,_e,Be,Te){var Xe=ue&i,wt=Zc(L),Tt=wt.length,We=Zc(q),jt=We.length;if(Tt!=jt&&!Xe)return!1;for(var nr=Tt;nr--;){var Ct=wt[nr];if(!(Xe?Ct in q:oe.call(q,Ct)))return!1}var Zt=Te.get(L);if(Zt&&Te.get(q))return Zt==q;var Yt=!0;Te.set(L,q),Te.set(q,L);for(var oa=Xe;++nr<Tt;){Ct=wt[nr];var jr=L[Ct],Va=q[Ct];if(_e)var tf=Xe?_e(Va,jr,Ct,q,L,Te):_e(jr,Va,Ct,L,q,Te);if(!(tf===void 0?jr===Va||Be(jr,Va,ue,_e,Te):tf)){Yt=!1;break}oa||(oa=Ct=="constructor")}if(Yt&&!oa){var Kn=L.constructor,Gn=q.constructor;Kn!=Gn&&"constructor"in L&&"constructor"in q&&!(typeof Kn=="function"&&Kn instanceof Kn&&typeof Gn=="function"&&Gn instanceof Gn)&&(Yt=!1)}return Te.delete(L),Te.delete(q),Yt}function Zc(L){return CN(L,GN,BN)}function Hn(L,q){var ue=L.__data__;return jN(q)?ue[typeof q=="string"?"string":"hash"]:ue.map}function Si(L,q){var ue=X(L,q);return RN(ue)?ue:void 0}function UN(L){var q=oe.call(L,Dt),ue=L[Dt];try{L[Dt]=void 0;var _e=!0}catch{}var Be=we.call(L);return _e&&(q?L[Dt]=ue:delete L[Dt]),Be}var BN=br?function(L){return L==null?[]:(L=Object(L),Q(br(L),function(q){return it.call(L,q)}))}:WN,pa=D1;(Ce&&pa(new Ce(new ArrayBuffer(1)))!=pe||Ue&&pa(new Ue)!=A||Ve&&pa(Ve.resolve())!=B||Ke&&pa(new Ke)!=N||ke&&pa(new ke)!=J)&&(pa=function(L){var q=D1(L),ue=q==C?L.constructor:void 0,_e=ue?ja(ue):"";if(_e)switch(_e){case Ge:return pe;case Je:return A;case tt:return B;case rt:return N;case vt:return J}return q});function $N(L,q){return q=q??p,!!q&&(typeof L=="number"||H.test(L))&&L>-1&&L%1==0&&L<q}function jN(L){var q=typeof L;return q=="string"||q=="number"||q=="symbol"||q=="boolean"?L!=="__proto__":L===null}function VN(L){return!!he&&he in L}function kN(L){var q=L&&L.constructor,ue=typeof q=="function"&&q.prototype||M;return L===ue}function zN(L){return we.call(L)}function ja(L){if(L!=null){try{return ee.call(L)}catch{}try{return L+""}catch{}}return""}function Yc(L,q){return L===q||L!==L&&q!==q}var HN=Kc(function(){return arguments}())?Kc:function(L){return T1(L)&&oe.call(L,"callee")&&!it.call(L,"callee")},qn=Array.isArray;function qN(L){return L!=null&&Xc(L.length)&&!Jc(L)}var jd=ia||ZN;function KN(L,q){return Gc(L,q)}function Jc(L){if(!Qc(L))return!1;var q=D1(L);return q==v||q==y||q==d||q==S}function Xc(L){return typeof L=="number"&&L>-1&&L%1==0&&L<=p}function Qc(L){var q=typeof L;return L!=null&&(q=="object"||q=="function")}function T1(L){return L!=null&&typeof L=="object"}var ef=R?_(R):LN;function GN(L){return qN(L)?AN(L):FN(L)}function WN(){return[]}function ZN(){return!1}e.exports=KN})(Od,Od.exports);var hx=Od.exports,mx=Object.defineProperty,Z3=Object.getOwnPropertySymbols,vx=Object.prototype.hasOwnProperty,gx=Object.prototype.propertyIsEnumerable,Y3=(e,t,r)=>t in e?mx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lt=(e,t)=>{for(var r in t||(t={}))vx.call(t,r)&&Y3(e,r,t[r]);if(Z3)for(var r of Z3(t))gx.call(t,r)&&Y3(e,r,t[r]);return e};function ht(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}var Pn=ht;ht.EventEmitter=ht,ht.prototype._events=void 0,ht.prototype._maxListeners=void 0,ht.defaultMaxListeners=10,ht.prototype.setMaxListeners=function(e){if(!yx(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},ht.prototype.emit=function(e){var t,r,a,i,n,p;if(this._events||(this._events={}),e==="error"&&(!this._events.error||w1(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var s=new Error('Uncaught, unspecified "error" event. ('+t+")");throw s.context=t,s}if(r=this._events[e],J3(r))return!1;if(Ur(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),r.apply(this,i)}else if(w1(r))for(i=Array.prototype.slice.call(arguments,1),p=r.slice(),a=p.length,n=0;n<a;n++)p[n].apply(this,i);return!0},ht.prototype.addListener=function(e,t){var r;if(!Ur(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Ur(t.listener)?t.listener:t),this._events[e]?w1(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,w1(this._events[e])&&!this._events[e].warned&&(J3(this._maxListeners)?r=ht.defaultMaxListeners:r=this._maxListeners,r&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),typeof console.trace=="function"&&console.trace())),this},ht.prototype.on=ht.prototype.addListener,ht.prototype.once=function(e,t){if(!Ur(t))throw TypeError("listener must be a function");var r=!1;function a(){this.removeListener(e,a),r||(r=!0,t.apply(this,arguments))}return a.listener=t,this.on(e,a),this},ht.prototype.removeListener=function(e,t){var r,a,i,n;if(!Ur(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],i=r.length,a=-1,r===t||Ur(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(w1(r)){for(n=i;n-- >0;)if(r[n]===t||r[n].listener&&r[n].listener===t){a=n;break}if(a<0)return this;r.length===1?(r.length=0,delete this._events[e]):r.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},ht.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[e]&&delete this._events[e],this;if(arguments.length===0){for(t in this._events)t!=="removeListener"&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],Ur(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},ht.prototype.listeners=function(e){var t;return!this._events||!this._events[e]?t=[]:Ur(this._events[e])?t=[this._events[e]]:t=this._events[e].slice(),t},ht.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(Ur(t))return 1;if(t)return t.length}return 0},ht.listenerCount=function(e,t){return e.listenerCount(t)};function Ur(e){return typeof e=="function"}function yx(e){return typeof e=="number"}function w1(e){return typeof e=="object"&&e!==null}function J3(e){return e===void 0}function wx(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),a=0;a<r.length;a++)r[a]=255;for(var i=0;i<e.length;i++){var n=e.charAt(i),p=n.charCodeAt(0);if(r[p]!==255)throw new TypeError(n+" is ambiguous");r[p]=i}var s=e.length,o=e.charAt(0),d=Math.log(s)/Math.log(256),l=Math.log(256)/Math.log(s);function h(y){if(y instanceof Uint8Array||(ArrayBuffer.isView(y)?y=new Uint8Array(y.buffer,y.byteOffset,y.byteLength):Array.isArray(y)&&(y=Uint8Array.from(y))),!(y instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(y.length===0)return"";for(var A=0,E=0,D=0,C=y.length;D!==C&&y[D]===0;)D++,A++;for(var B=(C-D)*l+1>>>0,S=new Uint8Array(B);D!==C;){for(var x=y[D],N=0,u=B-1;(x!==0||N<E)&&u!==-1;u--,N++)x+=256*S[u]>>>0,S[u]=x%s>>>0,x=x/s>>>0;if(x!==0)throw new Error("Non-zero carry");E=N,D++}for(var T=B-E;T!==B&&S[T]===0;)T++;for(var Z=o.repeat(A);T<B;++T)Z+=e.charAt(S[T]);return Z}function g(y){if(typeof y!="string")throw new TypeError("Expected String");if(y.length===0)return new Uint8Array;var A=0;if(y[A]!==" "){for(var E=0,D=0;y[A]===o;)E++,A++;for(var C=(y.length-A)*d+1>>>0,B=new Uint8Array(C);y[A];){var S=r[y.charCodeAt(A)];if(S===255)return;for(var x=0,N=C-1;(S!==0||x<D)&&N!==-1;N--,x++)S+=s*B[N]>>>0,B[N]=S%256>>>0,S=S/256>>>0;if(S!==0)throw new Error("Non-zero carry");D=x,A++}if(y[A]!==" "){for(var u=C-D;u!==C&&B[u]===0;)u++;for(var T=new Uint8Array(E+(C-u)),Z=E;u!==C;)T[Z++]=B[u++];return T}}}function v(y){var A=g(y);if(A)return A;throw new Error(`Non-${t} character`)}return{encode:h,decodeUnsafe:g,decode:v}}var _x=wx,bx=_x;const Mn=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")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")},Ex=e=>new TextEncoder().encode(e),Sx=e=>new TextDecoder().decode(e);class xx{constructor(t,r,a){this.name=t,this.prefix=r,this.baseEncode=a}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class Dx{constructor(t,r,a){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=a}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return X3(this,t)}}class Tx{constructor(t){this.decoders=t}or(t){return X3(this,t)}decode(t){const r=t[0],a=this.decoders[r];if(a)return a.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const X3=(e,t)=>new Tx(Lt(Lt({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t}));class Nx{constructor(t,r,a,i){this.name=t,this.prefix=r,this.baseEncode=a,this.baseDecode=i,this.encoder=new xx(t,r,a),this.decoder=new Dx(t,r,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const Un=({name:e,prefix:t,encode:r,decode:a})=>new Nx(e,t,r,a),_1=({prefix:e,name:t,alphabet:r})=>{const{encode:a,decode:i}=bx(r,t);return Un({prefix:e,name:t,encode:a,decode:n=>Mn(i(n))})},Ox=(e,t,r,a)=>{const i={};for(let l=0;l<t.length;++l)i[t[l]]=l;let n=e.length;for(;e[n-1]==="=";)--n;const p=new Uint8Array(n*r/8|0);let s=0,o=0,d=0;for(let l=0;l<n;++l){const h=i[e[l]];if(h===void 0)throw new SyntaxError(`Non-${a} character`);o=o<<r|h,s+=r,s>=8&&(s-=8,p[d++]=255&o>>s)}if(s>=r||255&o<<8-s)throw new SyntaxError("Unexpected end of data");return p},Ax=(e,t,r)=>{const a=t[t.length-1]==="=",i=(1<<r)-1;let n="",p=0,s=0;for(let o=0;o<e.length;++o)for(s=s<<8|e[o],p+=8;p>r;)p-=r,n+=t[i&s>>p];if(p&&(n+=t[i&s<<r-p]),a)for(;n.length*r&7;)n+="=";return n},xt=({name:e,prefix:t,bitsPerChar:r,alphabet:a})=>Un({prefix:t,name:e,encode(i){return Ax(i,a,r)},decode(i){return Ox(i,a,r,e)}}),Cx=Un({prefix:"\0",name:"identity",encode:e=>Sx(e),decode:e=>Ex(e)});var Ix=Object.freeze({__proto__:null,identity:Cx});const Rx=xt({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var Lx=Object.freeze({__proto__:null,base2:Rx});const Fx=xt({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var Px=Object.freeze({__proto__:null,base8:Fx});const Mx=_1({prefix:"9",name:"base10",alphabet:"0123456789"});var Ux=Object.freeze({__proto__:null,base10:Mx});const Bx=xt({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),$x=xt({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var jx=Object.freeze({__proto__:null,base16:Bx,base16upper:$x});const Vx=xt({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),kx=xt({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),zx=xt({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Hx=xt({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),qx=xt({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Kx=xt({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Gx=xt({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Wx=xt({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Zx=xt({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var Yx=Object.freeze({__proto__:null,base32:Vx,base32upper:kx,base32pad:zx,base32padupper:Hx,base32hex:qx,base32hexupper:Kx,base32hexpad:Gx,base32hexpadupper:Wx,base32z:Zx});const Jx=_1({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Xx=_1({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var Qx=Object.freeze({__proto__:null,base36:Jx,base36upper:Xx});const eD=_1({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),tD=_1({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var rD=Object.freeze({__proto__:null,base58btc:eD,base58flickr:tD});const aD=xt({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),iD=xt({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),nD=xt({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),sD=xt({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var pD=Object.freeze({__proto__:null,base64:aD,base64pad:iD,base64url:nD,base64urlpad:sD});const Q3=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),oD=Q3.reduce((e,t,r)=>(e[r]=t,e),[]),dD=Q3.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function lD(e){return e.reduce((t,r)=>(t+=oD[r],t),"")}function uD(e){const t=[];for(const r of e){const a=dD[r.codePointAt(0)];if(a===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(a)}return new Uint8Array(t)}const cD=Un({prefix:"\u{1F680}",name:"base256emoji",encode:lD,decode:uD});var fD=Object.freeze({__proto__:null,base256emoji:cD}),ec={},hD=rc,tc=128,mD=127,vD=~mD,gD=Math.pow(2,31);function rc(e,t,r){t=t||[],r=r||0;for(var a=r;e>=gD;)t[r++]=e&255|tc,e/=128;for(;e&vD;)t[r++]=e&255|tc,e>>>=7;return t[r]=e|0,rc.bytes=r-a+1,t}var yD=Ad,wD=128,ac=127;function Ad(e,a){var r=0,a=a||0,i=0,n=a,p,s=e.length;do{if(n>=s)throw Ad.bytes=0,new RangeError("Could not decode varint");p=e[n++],r+=i<28?(p&ac)<<i:(p&ac)*Math.pow(2,i),i+=7}while(p>=wD);return Ad.bytes=n-a,r}var _D=Math.pow(2,7),bD=Math.pow(2,14),ED=Math.pow(2,21),SD=Math.pow(2,28),xD=Math.pow(2,35),DD=Math.pow(2,42),TD=Math.pow(2,49),ND=Math.pow(2,56),OD=Math.pow(2,63),AD=function(e){return e<_D?1:e<bD?2:e<ED?3:e<SD?4:e<xD?5:e<DD?6:e<TD?7:e<ND?8:e<OD?9:10},CD={encode:hD,decode:yD,encodingLength:AD},ic=CD;const nc=(e,t,r=0)=>(ic.encode(e,t,r),t),sc=e=>ic.encodingLength(e),Cd=(e,t)=>{const r=t.byteLength,a=sc(e),i=a+sc(r),n=new Uint8Array(i+r);return nc(e,n,0),nc(r,n,a),n.set(t,i),new ID(e,r,t,n)};class ID{constructor(t,r,a,i){this.code=t,this.size=r,this.digest=a,this.bytes=i}}const pc=({name:e,code:t,encode:r})=>new RD(e,t,r);class RD{constructor(t,r,a){this.name=t,this.code=r,this.encode=a}digest(t){if(t instanceof Uint8Array){const r=this.encode(t);return r instanceof Uint8Array?Cd(this.code,r):r.then(a=>Cd(this.code,a))}else throw Error("Unknown type, must be binary type")}}const LD=pc({name:"sha2-256",code:18,encode:e=>Mn(ec.createHash("sha256").update(e).digest())}),FD=pc({name:"sha2-512",code:19,encode:e=>Mn(ec.createHash("sha512").update(e).digest())});var PD=Object.freeze({__proto__:null,sha256:LD,sha512:FD});const oc=0,MD="identity",dc=Mn;var UD=Object.freeze({__proto__:null,identity:{code:oc,name:MD,encode:dc,digest:e=>Cd(oc,dc(e))}});new TextEncoder,new TextDecoder;const lc=Lt(Lt(Lt(Lt(Lt(Lt(Lt(Lt(Lt(Lt({},Ix),Lx),Px),Ux),jx),Yx),Qx),rD),pD),fD);Lt(Lt({},PD),UD);function uc(e,t,r,a){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:a}}}const cc=uc("utf8","u",e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>new TextEncoder().encode(e.substring(1))),Id=uc("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),BD=Lt({utf8:cc,"utf-8":cc,hex:lc.base16,latin1:Id,ascii:Id,binary:Id},lc);function $D(e,t="utf8"){const r=BD[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return r.decoder.decode(`${r.prefix}${e}`)}const fc="wc",jD=2,Rd="core",b1=`${fc}@${2}:${Rd}:`,VD={name:Rd,logger:"error"},kD={database:":memory:"},zD="crypto",hc="client_ed25519_seed",HD=qe.ONE_DAY,qD="keychain",KD="0.3",GD="messages",WD="0.3",ZD=qe.SIX_HOURS,YD="publisher",mc="irn",JD="error",XD="wss://relay.walletconnect.com",QD="relayer",E1={message:"relayer_message",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error"},eT="_subscription",_i={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},tT=qe.ONE_SECOND,rT="2.0.0-rc.1",aT="0.3",Ba={created:"subscription_created",deleted:"subscription_deleted",expired:"subscription_expired",disabled:"subscription_disabled",sync:"subscription_sync"},iT="subscription",nT="0.3",sT=qe.FIVE_SECONDS*1e3;class pT{constructor(t,r){this.core=t,this.logger=r,this.keychain=new Map,this.name=qD,this.version=KD,this.initialized=!1,this.storagePrefix=b1,this.init=async()=>{if(!this.initialized){const a=await this.getKeyChain();typeof a<"u"&&(this.keychain=a),this.initialized=!0}},this.has=a=>(this.isInitialized(),this.keychain.has(a)),this.set=async(a,i)=>{this.isInitialized(),this.keychain.set(a,i),await this.persist()},this.get=a=>{this.isInitialized();const i=this.keychain.get(a);if(typeof i>"u"){const{message:n}=ye("NO_MATCHING_KEY",`${this.name}: ${a}`);throw new Error(n)}return i},this.del=async a=>{this.isInitialized(),this.keychain.delete(a),await this.persist()},this.core=t,this.logger=Pe.generateChildLogger(r,this.name)}get context(){return Pe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setKeyChain(t){await this.core.storage.setItem(this.storageKey,tu(t))}async getKeyChain(){const t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?ru(t):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:t}=ye("NOT_INITIALIZED",this.name);throw new Error(t)}}}class oT{constructor(t,r,a){this.core=t,this.logger=r,this.name=zD,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=i=>(this.isInitialized(),this.keychain.has(i)),this.getClientId=async()=>{this.isInitialized();const i=await this.getClientSeed(),n=G3(i);return K3(n.publicKey)},this.generateKeyPair=()=>{this.isInitialized();const i=Pg();return this.setPrivateKey(i.publicKey,i.privateKey)},this.signJWT=async i=>{this.isInitialized();const n=await this.getClientSeed(),p=G3(n),s=Jp();return await ux(s,i,HD,p)},this.generateSharedKey=(i,n,p)=>{this.isInitialized();const s=this.getPrivateKey(i),o=Mg(s,n);return this.setSymKey(o,p)},this.setSymKey=async(i,n)=>{this.isInitialized();const p=n||Ug(i);return await this.keychain.set(p,i),p},this.deleteKeyPair=async i=>{this.isInitialized(),await this.keychain.del(i)},this.deleteSymKey=async i=>{this.isInitialized(),await this.keychain.del(i)},this.encode=async(i,n,p)=>{this.isInitialized();const s=Z6(p),o=Qi(n);if(Y6(s)){const g=s.senderPublicKey,v=s.receiverPublicKey;i=await this.generateSharedKey(g,v)}const d=this.getSymKey(i),{type:l,senderPublicKey:h}=s;return $g({type:l,symKey:d,message:o,senderPublicKey:h})},this.decode=async(i,n,p)=>{this.isInitialized();const s=kg(n,p);if(Y6(s)){const l=s.receiverPublicKey,h=s.senderPublicKey;i=await this.generateSharedKey(l,h)}const o=this.getSymKey(i),d=jg({symKey:o,encoded:n});return Sp(d)},this.core=t,this.logger=Pe.generateChildLogger(r,this.name),this.keychain=a||new pT(this.core,this.logger)}get context(){return Pe.getLoggerContext(this.logger)}async setPrivateKey(t,r){return await this.keychain.set(t,r),t}getPrivateKey(t){return this.keychain.get(t)}async getClientSeed(){let t="";try{t=this.keychain.get(hc)}catch{t=Jp(),await this.keychain.set(hc,t)}return $D(t,"base16")}getSymKey(t){return this.keychain.get(t)}isInitialized(){if(!this.initialized){const{message:t}=ye("NOT_INITIALIZED",this.name);throw new Error(t)}}}class dT extends kS{constructor(t,r){super(t,r),this.logger=t,this.core=r,this.messages=new Map,this.name=GD,this.version=WD,this.initialized=!1,this.storagePrefix=b1,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const a=await this.getRelayerMessages();typeof a<"u"&&(this.messages=a),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(a){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(a)}finally{this.initialized=!0}}},this.set=async(a,i)=>{this.isInitialized();const n=mn(i);let p=this.messages.get(a);return typeof p>"u"&&(p={}),typeof p[n]<"u"||(p[n]=i,this.messages.set(a,p),await this.persist()),n},this.get=a=>{this.isInitialized();let i=this.messages.get(a);return typeof i>"u"&&(i={}),i},this.has=(a,i)=>{this.isInitialized();const n=this.get(a),p=mn(i);return typeof n[p]<"u"},this.del=async a=>{this.isInitialized(),this.messages.delete(a),await this.persist()},this.logger=Pe.generateChildLogger(t,this.name),this.core=r}get context(){return Pe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setRelayerMessages(t){await this.core.storage.setItem(this.storageKey,tu(t))}async getRelayerMessages(){const t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?ru(t):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:t}=ye("NOT_INITIALIZED",this.name);throw new Error(t)}}}class lT extends zS{constructor(t,r){super(t,r),this.relayer=t,this.logger=r,this.events=new Pn.EventEmitter,this.name=YD,this.queue=new Map,this.publish=async(a,i,n)=>{this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:a,message:i,opts:n}});try{const p=n?.ttl||ZD,s=Xp(n),o=n?.prompt||!1,d=n?.tag||0,l={topic:a,message:i,opts:{ttl:p,relay:s,prompt:o,tag:d}},h=mn(i);this.queue.set(h,l),await this.rpcPublish(a,i,p,s,o,d),this.onPublish(h,l),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:a,message:i,opts:n}})}catch(p){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(p),p}},this.on=(a,i)=>{this.events.on(a,i)},this.once=(a,i)=>{this.events.once(a,i)},this.off=(a,i)=>{this.events.off(a,i)},this.removeListener=(a,i)=>{this.events.removeListener(a,i)},this.relayer=t,this.logger=Pe.generateChildLogger(r,this.name),this.registerEventListeners()}get context(){return Pe.getLoggerContext(this.logger)}rpcPublish(t,r,a,i,n,p){var s,o,d,l;const h={method:Qp(i.protocol).publish,params:{topic:t,message:r,ttl:a,prompt:n,tag:p}};return rr((s=h.params)==null?void 0:s.prompt)&&((o=h.params)==null||delete o.prompt),rr((d=h.params)==null?void 0:d.tag)&&((l=h.params)==null||delete l.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:h}),this.relayer.provider.request(h)}onPublish(t,r){this.queue.delete(t)}checkQueue(){this.queue.forEach(async t=>{const{topic:r,message:a,opts:{ttl:i,relay:n,prompt:p,tag:s}}=t,o=mn(a);await this.rpcPublish(r,a,i,n,p,s),this.onPublish(o,t)})}registerEventListeners(){this.relayer.core.heartbeat.on(g1.HEARTBEAT_EVENTS.pulse,()=>{this.checkQueue()})}}class uT{constructor(){this.map=new Map,this.set=(t,r)=>{const a=this.get(t);this.exists(t,r)||this.map.set(t,[...a,r])},this.get=t=>this.map.get(t)||[],this.exists=(t,r)=>this.get(t).includes(r),this.delete=(t,r)=>{if(typeof r>"u"){this.map.delete(t);return}if(!this.map.has(t))return;const a=this.get(t);if(!this.exists(t,r))return;const i=a.filter(n=>n!==r);if(!i.length){this.map.delete(t);return}this.map.set(t,i)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var cT=Object.defineProperty,fT=Object.defineProperties,hT=Object.getOwnPropertyDescriptors,vc=Object.getOwnPropertySymbols,mT=Object.prototype.hasOwnProperty,vT=Object.prototype.propertyIsEnumerable,gc=(e,t,r)=>t in e?cT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bn=(e,t)=>{for(var r in t||(t={}))mT.call(t,r)&&gc(e,r,t[r]);if(vc)for(var r of vc(t))vT.call(t,r)&&gc(e,r,t[r]);return e},Ld=(e,t)=>fT(e,hT(t));class gT extends KS{constructor(t,r){super(t,r),this.relayer=t,this.logger=r,this.subscriptions=new Map,this.topicMap=new uT,this.events=new Pn.EventEmitter,this.name=iT,this.version=nT,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pendingSubInterval=20,this.storagePrefix=b1,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),await this.reset(),this.registerEventListeners(),this.onEnable())},this.subscribe=async(a,i)=>{this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:a,opts:i}});try{const n=Xp(i),p={topic:a,relay:n};this.pending.set(a,p);const s=await this.rpcSubscribe(a,n);return this.onSubscribe(s,p),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:a,opts:i}}),s}catch(n){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(n),n}},this.unsubscribe=async(a,i)=>{this.isInitialized(),typeof i?.id<"u"?await this.unsubscribeById(a,i.id,i):await this.unsubscribeByTopic(a,i)},this.isSubscribed=async a=>this.topics.includes(a)?!0:await new Promise((i,n)=>{const p=new qe.Watch;p.start(this.pendingSubscriptionWatchLabel);const s=setInterval(()=>{!this.pending.has(a)&&this.topics.includes(a)&&(clearInterval(s),p.stop(this.pendingSubscriptionWatchLabel),i(!0)),p.elapsed(this.pendingSubscriptionWatchLabel)>=sT&&(clearInterval(s),p.stop(this.pendingSubscriptionWatchLabel),n(!1))},this.pendingSubInterval)}),this.on=(a,i)=>{this.events.on(a,i)},this.once=(a,i)=>{this.events.once(a,i)},this.off=(a,i)=>{this.events.off(a,i)},this.removeListener=(a,i)=>{this.events.removeListener(a,i)},this.relayer=t,this.logger=Pe.generateChildLogger(r,this.name)}get context(){return Pe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(t,r){let a=!1;try{a=this.getSubscription(t).topic===r}catch{}return a}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear(),this.initialized=!1}async unsubscribeByTopic(t,r){const a=this.topicMap.get(t);await Promise.all(a.map(async i=>await this.unsubscribeById(t,i,r)))}async unsubscribeById(t,r,a){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:r,opts:a}});try{const i=Xp(a);await this.rpcUnsubscribe(t,r,i);const n=St("USER_DISCONNECTED",`${this.name}, ${t}`);await this.onUnsubscribe(t,r,n),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:r,opts:a}})}catch(i){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(i),i}}async rpcSubscribe(t,r){const a={method:Qp(r.protocol).subscribe,params:{topic:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:a}),await this.relayer.provider.request(a)}rpcUnsubscribe(t,r,a){const i={method:Qp(a.protocol).unsubscribe,params:{topic:t,id:r}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i}),this.relayer.provider.request(i)}onSubscribe(t,r){this.setSubscription(t,Ld(Bn({},r),{id:t})),this.pending.delete(r.topic)}onResubscribe(t,r){this.addSubscription(t,Ld(Bn({},r),{id:t})),this.pending.delete(r.topic)}async onUnsubscribe(t,r,a){this.events.removeAllListeners(r),this.hasSubscription(r,t)&&this.deleteSubscription(r,a),await this.relayer.messages.del(t)}async setRelayerSubscriptions(t){await this.relayer.core.storage.setItem(this.storageKey,t)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(t,r){this.subscriptions.has(t)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:t,subscription:r}),this.addSubscription(t,r))}addSubscription(t,r){this.subscriptions.set(t,Bn({},r)),this.topicMap.set(r.topic,t),this.events.emit(Ba.created,r)}getSubscription(t){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:t});const r=this.subscriptions.get(t);if(!r){const{message:a}=ye("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(a)}return r}deleteSubscription(t,r){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:t,reason:r});const a=this.getSubscription(t);this.subscriptions.delete(t),this.topicMap.delete(a.topic,t),this.events.emit(Ba.deleted,Ld(Bn({},a),{reason:r}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(Ba.sync)}async reset(){!this.cached.length||await Promise.all(this.cached.map(async t=>await this.resubscribe(t)))}async restore(){try{const t=await this.getRelayerSubscriptions();if(typeof t>"u"||!t.length)return;if(this.subscriptions.size){const{message:r}=ye("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(t){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(t)}}async resubscribe(t){if(!this.ids.includes(t.id)){const{topic:r,relay:a}=t,i={topic:r,relay:a};this.pending.set(i.topic,i);const n=await this.rpcSubscribe(i.topic,i.relay);this.onResubscribe(n,i)}}async onConnect(){await this.reset(),this.onEnable()}onDisconnect(){this.onDisable()}checkPending(){this.pending.forEach(async t=>{const r=await this.rpcSubscribe(t.topic,t.relay);this.onSubscribe(r,t)})}registerEventListeners(){this.relayer.core.heartbeat.on(g1.HEARTBEAT_EVENTS.pulse,()=>{this.checkPending()}),this.relayer.provider.on(_i.connect,async()=>{await this.onConnect()}),this.relayer.provider.on(_i.disconnect,()=>{this.onDisconnect()}),this.events.on(Ba.created,async t=>{const r=Ba.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),await this.persist()}),this.events.on(Ba.deleted,async t=>{const r=Ba.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),await this.persist()})}isInitialized(){if(!this.initialized){const{message:t}=ye("NOT_INITIALIZED",this.name);throw new Error(t)}}}var yT=Object.defineProperty,yc=Object.getOwnPropertySymbols,wT=Object.prototype.hasOwnProperty,_T=Object.prototype.propertyIsEnumerable,wc=(e,t,r)=>t in e?yT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bT=(e,t)=>{for(var r in t||(t={}))wT.call(t,r)&&wc(e,r,t[r]);if(yc)for(var r of yc(t))_T.call(t,r)&&wc(e,r,t[r]);return e};class ET extends HS{constructor(t){super(t),this.protocol="wc",this.version=2,this.events=new Pn.EventEmitter,this.name=QD,this.initialized=!1,this.core=t.core,this.logger=typeof t.logger<"u"&&typeof t.logger!="string"?Pe.generateChildLogger(t.logger,this.name):ed(Pe.getDefaultLoggerOptions({level:t.logger||JD})),this.messages=new dT(this.logger,t.core),this.subscriber=new gT(this,this.logger),this.publisher=new lT(this,this.logger),this.relayUrl=t?.relayUrl||XD,this.projectId=t.projectId,this.provider={}}async init(){this.logger.trace("Initialized");const t=await this.core.crypto.signJWT(this.relayUrl);this.provider=this.createProvider(t),await Promise.all([this.messages.init(),this.provider.connect(),this.subscriber.init()]),this.registerEventListeners(),this.initialized=!0}get context(){return Pe.getLoggerContext(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(t,r,a){this.isInitialized(),await this.publisher.publish(t,r,a),await this.recordMessageEvent({topic:t,message:r})}async subscribe(t,r){return this.isInitialized(),await this.subscriber.subscribe(t,r)}async unsubscribe(t,r){this.isInitialized(),await this.subscriber.unsubscribe(t,r)}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}createProvider(t){return new Xn(new fx(ry({sdkVersion:rT,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:t})))}async recordMessageEvent(t){const{topic:r,message:a}=t;await this.messages.set(r,a)}async shouldIgnoreMessageEvent(t){const{topic:r,message:a}=t;return await this.subscriber.isSubscribed(r)?this.messages.has(r,a):!0}async onProviderPayload(t){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:t}),t0(t)){if(!t.method.endsWith(eT))return;const r=t.params,{topic:a,message:i}=r.data,n={topic:a,message:i};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(bT({type:"event",event:r.id},n)),this.events.emit(r.id,n),await this.acknowledgePayload(t),await this.onMessageEvent(n)}}async onMessageEvent(t){await this.shouldIgnoreMessageEvent(t)||(this.events.emit(E1.message,t),await this.recordMessageEvent(t))}async acknowledgePayload(t){const r=Jn(t.id,!0);await this.provider.connection.send(r)}registerEventListeners(){this.provider.on(_i.payload,t=>this.onProviderPayload(t)),this.provider.on(_i.connect,()=>{this.events.emit(E1.connect)}),this.provider.on(_i.disconnect,()=>{this.events.emit(E1.disconnect),setTimeout(()=>{this.provider.connect()},qe.toMiliseconds(tT))}),this.provider.on(_i.error,t=>this.events.emit(E1.error,t))}isInitialized(){if(!this.initialized){const{message:t}=ye("NOT_INITIALIZED",this.name);throw new Error(t)}}}var ST=Object.defineProperty,_c=Object.getOwnPropertySymbols,xT=Object.prototype.hasOwnProperty,DT=Object.prototype.propertyIsEnumerable,bc=(e,t,r)=>t in e?ST(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ec=(e,t)=>{for(var r in t||(t={}))xT.call(t,r)&&bc(e,r,t[r]);if(_c)for(var r of _c(t))DT.call(t,r)&&bc(e,r,t[r]);return e};class Fd extends qS{constructor(t,r,a,i=b1){super(t,r,a,i),this.core=t,this.logger=r,this.name=a,this.map=new Map,this.version=aT,this.cached=[],this.initialized=!1,this.storagePrefix=b1,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>{Sy(n)?this.map.set(n.id,n):xy(n)&&this.map.set(n.topic,n)}),this.cached=[],this.initialized=!0)},this.set=async(n,p)=>{this.isInitialized(),this.map.has(n)?await this.update(n,p):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:n,value:p}),this.map.set(n,p),await this.persist())},this.get=n=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:n}),this.getData(n)),this.getAll=n=>n?this.values.filter(p=>Object.keys(n).every(s=>hx(p[s],n[s]))):this.values,this.update=async(n,p)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:n,update:p});const s=Ec(Ec({},this.getData(n)),p);this.map.set(n,s),await this.persist()},this.delete=async(n,p)=>{this.isInitialized(),this.map.has(n)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:n,reason:p}),this.map.delete(n),await this.persist())},this.logger=Pe.generateChildLogger(r,this.name),this.storagePrefix=i}get context(){return Pe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(t){await this.core.storage.setItem(this.storageKey,t)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(t){const r=this.map.get(t);if(!r){const{message:a}=ye("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.error(a),new Error(a)}return r}async persist(){await this.setDataStore(this.values)}async restore(){try{const t=await this.getDataStore();if(typeof t>"u"||!t.length)return;if(this.map.size){const{message:r}=ye("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(t){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(t)}}isInitialized(){if(!this.initialized){const{message:t}=ye("NOT_INITIALIZED",this.name);throw new Error(t)}}}var TT=Object.defineProperty,Sc=Object.getOwnPropertySymbols,NT=Object.prototype.hasOwnProperty,OT=Object.prototype.propertyIsEnumerable,xc=(e,t,r)=>t in e?TT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dc=(e,t)=>{for(var r in t||(t={}))NT.call(t,r)&&xc(e,r,t[r]);if(Sc)for(var r of Sc(t))OT.call(t,r)&&xc(e,r,t[r]);return e};class Pd extends jS{constructor(t){super(t),this.protocol=fc,this.version=jD,this.name=Rd,this.events=new Pn.EventEmitter,this.initialized=!1,this.on=(a,i)=>this.events.on(a,i),this.once=(a,i)=>this.events.once(a,i),this.off=(a,i)=>this.events.off(a,i),this.removeListener=(a,i)=>this.events.removeListener(a,i),this.projectId=t?.projectId;const r=typeof t?.logger<"u"&&typeof t?.logger!="string"?t.logger:ed(Pe.getDefaultLoggerOptions({level:t?.logger||VD.logger}));this.logger=Pe.generateChildLogger(r,this.name),this.heartbeat=new g1.HeartBeat,this.crypto=new oT(this,this.logger,t?.keychain),this.storage=t!=null&&t.storage?t.storage:new CS(Dc(Dc({},kD),t?.storageOptions)),this.relayer=new ET({core:this,logger:this.logger,relayUrl:t?.relayUrl,projectId:this.projectId})}static async init(t){const r=new Pd(t);return await r.initialize(),r}get context(){return Pe.getLoggerContext(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.relayer.init(),await this.heartbeat.init(),this.initialized=!0,this.logger.info("Core Initilization Success")}catch(t){throw this.logger.info("Core Initilization Failure"),this.logger.error(t.message),t}}}const AT=Pd;var bi={exports:{}},Ei=typeof Reflect=="object"?Reflect:null,Tc=Ei&&typeof Ei.apply=="function"?Ei.apply:function(t,r,a){return Function.prototype.apply.call(t,r,a)},$n;Ei&&typeof Ei.ownKeys=="function"?$n=Ei.ownKeys:Object.getOwnPropertySymbols?$n=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:$n=function(t){return Object.getOwnPropertyNames(t)};function CT(e){console&&console.warn&&console.warn(e)}var Nc=Number.isNaN||function(t){return t!==t};function Le(){Le.init.call(this)}bi.exports=Le,bi.exports.once=FT,Le.EventEmitter=Le,Le.prototype._events=void 0,Le.prototype._eventsCount=0,Le.prototype._maxListeners=void 0;var Oc=10;function jn(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Le,"defaultMaxListeners",{enumerable:!0,get:function(){return Oc},set:function(e){if(typeof e!="number"||e<0||Nc(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Oc=e}}),Le.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Le.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Nc(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function Ac(e){return e._maxListeners===void 0?Le.defaultMaxListeners:e._maxListeners}Le.prototype.getMaxListeners=function(){return Ac(this)},Le.prototype.emit=function(t){for(var r=[],a=1;a<arguments.length;a++)r.push(arguments[a]);var i=t==="error",n=this._events;if(n!==void 0)i=i&&n.error===void 0;else if(!i)return!1;if(i){var p;if(r.length>0&&(p=r[0]),p instanceof Error)throw p;var s=new Error("Unhandled error."+(p?" ("+p.message+")":""));throw s.context=p,s}var o=n[t];if(o===void 0)return!1;if(typeof o=="function")Tc(o,this,r);else for(var d=o.length,l=Fc(o,d),a=0;a<d;++a)Tc(l[a],this,r);return!0};function Cc(e,t,r,a){var i,n,p;if(jn(r),n=e._events,n===void 0?(n=e._events=Object.create(null),e._eventsCount=0):(n.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),n=e._events),p=n[t]),p===void 0)p=n[t]=r,++e._eventsCount;else if(typeof p=="function"?p=n[t]=a?[r,p]:[p,r]:a?p.unshift(r):p.push(r),i=Ac(e),i>0&&p.length>i&&!p.warned){p.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+p.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=p.length,CT(s)}return e}Le.prototype.addListener=function(t,r){return Cc(this,t,r,!1)},Le.prototype.on=Le.prototype.addListener,Le.prototype.prependListener=function(t,r){return Cc(this,t,r,!0)};function IT(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Ic(e,t,r){var a={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=IT.bind(a);return i.listener=r,a.wrapFn=i,i}Le.prototype.once=function(t,r){return jn(r),this.on(t,Ic(this,t,r)),this},Le.prototype.prependOnceListener=function(t,r){return jn(r),this.prependListener(t,Ic(this,t,r)),this},Le.prototype.removeListener=function(t,r){var a,i,n,p,s;if(jn(r),i=this._events,i===void 0)return this;if(a=i[t],a===void 0)return this;if(a===r||a.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,a.listener||r));else if(typeof a!="function"){for(n=-1,p=a.length-1;p>=0;p--)if(a[p]===r||a[p].listener===r){s=a[p].listener,n=p;break}if(n<0)return this;n===0?a.shift():RT(a,n),a.length===1&&(i[t]=a[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this},Le.prototype.off=Le.prototype.removeListener,Le.prototype.removeAllListeners=function(t){var r,a,i;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[t]),this;if(arguments.length===0){var n=Object.keys(a),p;for(i=0;i<n.length;++i)p=n[i],p!=="removeListener"&&this.removeAllListeners(p);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=a[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function Rc(e,t,r){var a=e._events;if(a===void 0)return[];var i=a[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?LT(i):Fc(i,i.length)}Le.prototype.listeners=function(t){return Rc(this,t,!0)},Le.prototype.rawListeners=function(t){return Rc(this,t,!1)},Le.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Lc.call(e,t)},Le.prototype.listenerCount=Lc;function Lc(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Le.prototype.eventNames=function(){return this._eventsCount>0?$n(this._events):[]};function Fc(e,t){for(var r=new Array(t),a=0;a<t;++a)r[a]=e[a];return r}function RT(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function LT(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function FT(e,t){return new Promise(function(r,a){function i(p){e.removeListener(t,n),a(p)}function n(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}Pc(e,t,n,{once:!0}),t!=="error"&&PT(e,i,{once:!0})})}function PT(e,t,r){typeof e.on=="function"&&Pc(e,"error",t,r)}function Pc(e,t,r,a){if(typeof e.on=="function")a.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(n){a.once&&e.removeEventListener(t,i),r(n)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}const Mc="wc",Uc=2,Bc="client",S1=`${Mc}@${Uc}:${Bc}:`,Md={name:Bc,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"},MT="expirer",ir={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},UT="0.3",yr={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},BT="history",$T="0.3",jT="pairing",VT="proposal",$c=fi(qe.THIRTY_DAYS),kT="session",zT=qe.SEVEN_DAYS,Vn=fi(zT),HT="engine",Ud={wc_pairingDelete:{req:{prompt:!1,tag:1e3},res:{prompt:!1,tag:1001}},wc_pairingPing:{req:{prompt:!1,tag:1002},res:{prompt:!1,tag:1003}},wc_sessionPropose:{req:{prompt:!0,tag:1100},res:{prompt:!1,tag:1101}},wc_sessionSettle:{req:{prompt:!1,tag:1102},res:{prompt:!1,tag:1103}},wc_sessionUpdate:{req:{prompt:!1,tag:1104},res:{prompt:!1,tag:1105}},wc_sessionExtend:{req:{prompt:!1,tag:1106},res:{prompt:!1,tag:1107}},wc_sessionRequest:{req:{prompt:!0,tag:1108},res:{prompt:!1,tag:1109}},wc_sessionEvent:{req:{prompt:!0,tag:1110},res:{prompt:!1,tag:1111}},wc_sessionDelete:{req:{prompt:!1,tag:1112},res:{prompt:!1,tag:1113}},wc_sessionPing:{req:{prompt:!1,tag:1114},res:{prompt:!1,tag:1115}}};var qT=Object.defineProperty,KT=Object.defineProperties,GT=Object.getOwnPropertyDescriptors,jc=Object.getOwnPropertySymbols,WT=Object.prototype.hasOwnProperty,ZT=Object.prototype.propertyIsEnumerable,Vc=(e,t,r)=>t in e?qT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,aa=(e,t)=>{for(var r in t||(t={}))WT.call(t,r)&&Vc(e,r,t[r]);if(jc)for(var r of jc(t))ZT.call(t,r)&&Vc(e,r,t[r]);return e},kc=(e,t)=>KT(e,GT(t));class YT extends YS{constructor(t){super(t),this.events=new bi.exports,this.initialized=!1,this.name=HT,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0)},this.connect=async r=>{this.isInitialized(),await this.isValidConnect(r);const{pairingTopic:a,requiredNamespaces:i,relays:n}=r;let p=a,s,o=!1;if(p&&(o=this.client.pairing.get(p).active),!p||!o){const{topic:E,uri:D}=await this.createPairing();p=E,s=D}const d=await this.client.core.crypto.generateKeyPair(),l={requiredNamespaces:i,relays:n??[{protocol:mc}],proposer:{publicKey:d,metadata:this.client.metadata}},{reject:h,resolve:g,done:v}=Ia();if(this.events.once(et("session_connect"),async({error:E,session:D})=>{if(E)h(E);else if(D){D.self.publicKey=d;const C=kc(aa({},D),{requiredNamespaces:i});await this.client.session.set(D.topic,C),await this.setExpiry(D.topic,D.expiry),p&&await this.client.pairing.update(p,{peerMetadata:D.peer.metadata}),g(C)}}),!p){const{message:E}=ye("NO_MATCHING_KEY",`connect() pairing topic: ${p}`);throw new Error(E)}const y=await this.sendRequest(p,"wc_sessionPropose",l),A=fi(qe.FIVE_MINUTES);return await this.setProposal(y,aa({id:y,expiry:A},l)),{uri:s,approval:v}},this.pair=async r=>{this.isInitialized(),this.isValidPair(r);const{topic:a,symKey:i,relay:n}=cy(r.uri),p=fi(qe.FIVE_MINUTES),s={topic:a,relay:n,expiry:p,active:!1};return await this.client.pairing.set(a,s),await this.client.core.crypto.setSymKey(i,a),await this.client.core.relayer.subscribe(a,{relay:n}),await this.setExpiry(a,p),s},this.approve=async r=>{this.isInitialized(),await this.isValidApprove(r);const{id:a,relayProtocol:i,namespaces:n}=r,{pairingTopic:p,proposer:s,requiredNamespaces:o}=this.client.proposal.get(a),d=await this.client.core.crypto.generateKeyPair(),l=s.publicKey,h=await this.client.core.crypto.generateSharedKey(d,l),g={relay:{protocol:i??"irn"},namespaces:n,requiredNamespaces:o,controller:{publicKey:d,metadata:this.client.metadata},expiry:Vn};await this.client.core.relayer.subscribe(h);const v=await this.sendRequest(h,"wc_sessionSettle",g),{done:y,resolve:A,reject:E}=Ia();this.events.once(et("session_approve",v),({error:C})=>{C?E(C):A(this.client.session.get(h))});const D=kc(aa({},g),{topic:h,acknowledged:!1,self:g.controller,peer:{publicKey:s.publicKey,metadata:s.metadata},controller:d});return await this.client.session.set(h,D),await this.setExpiry(h,Vn),p&&await this.client.pairing.update(p,{peerMetadata:D.peer.metadata}),p&&a&&(await this.sendResult(a,p,{relay:{protocol:i??"irn"},responderPublicKey:d}),await this.client.proposal.delete(a,St("USER_DISCONNECTED")),await this.activatePairing(p)),{topic:h,acknowledged:y}},this.reject=async r=>{this.isInitialized(),await this.isValidReject(r);const{id:a,reason:i}=r,{pairingTopic:n}=this.client.proposal.get(a);n&&(await this.sendError(a,n,i),await this.client.proposal.delete(a,St("USER_DISCONNECTED")))},this.update=async r=>{this.isInitialized(),await this.isValidUpdate(r);const{topic:a,namespaces:i}=r,n=await this.sendRequest(a,"wc_sessionUpdate",{namespaces:i}),{done:p,resolve:s,reject:o}=Ia();return this.events.once(et("session_update",n),({error:d})=>{d?o(d):s()}),await this.client.session.update(a,{namespaces:i}),{acknowledged:p}},this.extend=async r=>{this.isInitialized(),await this.isValidExtend(r);const{topic:a}=r,i=await this.sendRequest(a,"wc_sessionExtend",{}),{done:n,resolve:p,reject:s}=Ia();return this.events.once(et("session_extend",i),({error:o})=>{o?s(o):p()}),await this.setExpiry(a,Vn),{acknowledged:n}},this.request=async r=>{this.isInitialized(),await this.isValidRequest(r);const{chainId:a,request:i,topic:n}=r,p=await this.sendRequest(n,"wc_sessionRequest",{request:i,chainId:a}),{done:s,resolve:o,reject:d}=Ia();return this.events.once(et("session_request",p),({error:l,result:h})=>{l?d(l):o(h)}),await s()},this.respond=async r=>{this.isInitialized(),await this.isValidRespond(r);const{topic:a,response:i}=r,{id:n}=i;xr(i)?await this.sendResult(n,a,i.result):Xt(i)&&await this.sendError(n,a,i.error)},this.ping=async r=>{this.isInitialized(),await this.isValidPing(r);const{topic:a}=r;if(this.client.session.keys.includes(a)){const i=await this.sendRequest(a,"wc_sessionPing",{}),{done:n,resolve:p,reject:s}=Ia();this.events.once(et("session_ping",i),({error:o})=>{o?s(o):p()}),await n()}else if(this.client.pairing.keys.includes(a)){const i=await this.sendRequest(a,"wc_pairingPing",{}),{done:n,resolve:p,reject:s}=Ia();this.events.once(et("pairing_ping",i),({error:o})=>{o?s(o):p()}),await n()}},this.emit=async r=>{this.isInitialized(),await this.isValidEmit(r);const{topic:a,event:i,chainId:n}=r;await this.sendRequest(a,"wc_sessionEvent",{event:i,chainId:n})},this.disconnect=async r=>{this.isInitialized(),await this.isValidDisconnect(r);const{topic:a}=r;this.client.session.keys.includes(a)?(await this.sendRequest(a,"wc_sessionDelete",St("USER_DISCONNECTED")),await this.deleteSession(a)):this.client.pairing.keys.includes(a)&&(await this.sendRequest(a,"wc_pairingDelete",St("USER_DISCONNECTED")),await this.deletePairing(a))},this.find=r=>(this.isInitialized(),this.client.session.getAll().filter(a=>_y(a,r))),this.activatePairing=async r=>{await this.client.pairing.update(r,{active:!0,expiry:$c}),await this.setExpiry(r,$c)},this.deleteSession=async r=>{const{self:a}=this.client.session.get(r);await Promise.all([this.client.core.relayer.unsubscribe(r),this.client.session.delete(r,St("USER_DISCONNECTED")),this.client.core.crypto.deleteKeyPair(a.publicKey),this.client.core.crypto.deleteSymKey(r),this.client.expirer.del(r)])},this.deletePairing=async r=>{await Promise.all([this.client.core.relayer.unsubscribe(r),this.client.pairing.delete(r,St("USER_DISCONNECTED")),this.client.core.crypto.deleteSymKey(r),this.client.expirer.del(r)])},this.deleteProposal=async r=>{await Promise.all([this.client.proposal.delete(r,St("USER_DISCONNECTED")),this.client.expirer.del(r)])},this.setExpiry=async(r,a)=>{this.client.pairing.keys.includes(r)?await this.client.pairing.update(r,{expiry:a}):this.client.session.keys.includes(r)&&await this.client.session.update(r,{expiry:a}),this.client.expirer.set(r,a)},this.setProposal=async(r,a)=>{await this.client.proposal.set(r,a),this.client.expirer.set(r,a.expiry)},this.sendRequest=async(r,a,i)=>{const n=Yn(a,i),p=await this.client.core.crypto.encode(r,n),s=Ud[a].req;return await this.client.core.relayer.publish(r,p,s),this.client.history.set(r,n),n.id},this.sendResult=async(r,a,i)=>{const n=Jn(r,i),p=await this.client.core.crypto.encode(a,n),s=await this.client.history.get(a,r),o=Ud[s.request.method].res;await this.client.core.relayer.publish(a,p,o),await this.client.history.resolve(n)},this.sendError=async(r,a,i)=>{const n=N1(r,i),p=await this.client.core.crypto.encode(a,n),s=await this.client.history.get(a,r),o=Ud[s.request.method].res;await this.client.core.relayer.publish(a,p,o),await this.client.history.resolve(n)},this.cleanup=async()=>{const r=[],a=[],i=[];this.client.session.getAll().forEach(n=>{Ca(n.expiry)&&r.push(n.topic)}),this.client.pairing.getAll().forEach(n=>{Ca(n.expiry)&&a.push(n.topic)}),this.client.proposal.getAll().forEach(n=>{Ca(n.expiry)&&i.push(n.id)}),await Promise.all([...r.map(this.deleteSession),...a.map(this.deletePairing),...i.map(this.deleteProposal)])},this.onRelayEventRequest=r=>{const{topic:a,payload:i}=r,n=i.method;switch(n){case"wc_sessionPropose":return this.onSessionProposeRequest(a,i);case"wc_sessionSettle":return this.onSessionSettleRequest(a,i);case"wc_sessionUpdate":return this.onSessionUpdateRequest(a,i);case"wc_sessionExtend":return this.onSessionExtendRequest(a,i);case"wc_sessionPing":return this.onSessionPingRequest(a,i);case"wc_pairingPing":return this.onPairingPingRequest(a,i);case"wc_sessionDelete":return this.onSessionDeleteRequest(a,i);case"wc_pairingDelete":return this.onPairingDeleteRequest(a,i);case"wc_sessionRequest":return this.onSessionRequest(a,i);case"wc_sessionEvent":return this.onSessionEventRequest(a,i);default:return this.client.logger.info(`Unsupported request method ${n}`)}},this.onRelayEventResponse=async r=>{const{topic:a,payload:i}=r,n=(await this.client.history.get(a,i.id)).request.method;switch(n){case"wc_sessionPropose":return this.onSessionProposeResponse(a,i);case"wc_sessionSettle":return this.onSessionSettleResponse(a,i);case"wc_sessionUpdate":return this.onSessionUpdateResponse(a,i);case"wc_sessionExtend":return this.onSessionExtendResponse(a,i);case"wc_sessionPing":return this.onSessionPingResponse(a,i);case"wc_pairingPing":return this.onPairingPingResponse(a,i);case"wc_sessionRequest":return this.onSessionRequestResponse(a,i);default:return this.client.logger.info(`Unsupported response method ${n}`)}},this.onSessionProposeRequest=async(r,a)=>{const{params:i,id:n}=a;try{this.isValidConnect(aa({},a.params));const p=fi(qe.FIVE_MINUTES),s=aa({id:n,pairingTopic:r,expiry:p},i);await this.setProposal(n,s),this.client.events.emit("session_proposal",{id:n,params:s})}catch(p){await this.sendError(n,r,p),this.client.logger.error(p)}},this.onSessionProposeResponse=async(r,a)=>{const{id:i}=a;if(xr(a)){const{result:n}=a;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:n});const p=this.client.proposal.get(i);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:p});const s=p.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:s});const o=n.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:o});const d=await this.client.core.crypto.generateSharedKey(s,o);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:d});const l=await this.client.core.relayer.subscribe(d);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:l}),await this.activatePairing(r)}else Xt(a)&&(await this.client.proposal.delete(i,St("USER_DISCONNECTED")),this.events.emit(et("session_connect"),{error:a.error}))},this.onSessionSettleRequest=async(r,a)=>{const{id:i,params:n}=a;try{this.isValidSessionSettleRequest(n);const{relay:p,controller:s,expiry:o,namespaces:d}=a.params,l={topic:r,relay:p,expiry:o,namespaces:d,acknowledged:!0,controller:s.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:s.publicKey,metadata:s.metadata}};await this.sendResult(a.id,r,!0),this.events.emit(et("session_connect"),{session:l})}catch(p){await this.sendError(i,r,p),this.client.logger.error(p)}},this.onSessionSettleResponse=async(r,a)=>{const{id:i}=a;xr(a)?(await this.client.session.update(r,{acknowledged:!0}),this.events.emit(et("session_approve",i),{})):Xt(a)&&(await this.client.session.delete(r,St("USER_DISCONNECTED")),this.events.emit(et("session_approve",i),{error:a.error}))},this.onSessionUpdateRequest=async(r,a)=>{const{params:i,id:n}=a;try{this.isValidUpdate(aa({topic:r},i)),await this.client.session.update(r,{namespaces:i.namespaces}),await this.sendResult(n,r,!0),this.client.events.emit("session_update",{id:n,topic:r,params:i})}catch(p){await this.sendError(n,r,p),this.client.logger.error(p)}},this.onSessionUpdateResponse=(r,a)=>{const{id:i}=a;xr(a)?this.events.emit(et("session_update",i),{}):Xt(a)&&this.events.emit(et("session_update",i),{error:a.error})},this.onSessionExtendRequest=async(r,a)=>{const{id:i}=a;try{this.isValidExtend({topic:r}),await this.setExpiry(r,Vn),await this.sendResult(i,r,!0),this.client.events.emit("session_extend",{id:i,topic:r})}catch(n){await this.sendError(i,r,n),this.client.logger.error(n)}},this.onSessionExtendResponse=(r,a)=>{const{id:i}=a;xr(a)?this.events.emit(et("session_extend",i),{}):Xt(a)&&this.events.emit(et("session_extend",i),{error:a.error})},this.onSessionPingRequest=async(r,a)=>{const{id:i}=a;try{this.isValidPing({topic:r}),await this.sendResult(i,r,!0),this.client.events.emit("session_ping",{id:i,topic:r})}catch(n){await this.sendError(i,r,n),this.client.logger.error(n)}},this.onSessionPingResponse=(r,a)=>{const{id:i}=a;xr(a)?this.events.emit(et("session_ping",i),{}):Xt(a)&&this.events.emit(et("session_ping",i),{error:a.error})},this.onPairingPingRequest=async(r,a)=>{const{id:i}=a;try{this.isValidPing({topic:r}),await this.sendResult(i,r,!0),this.client.events.emit("pairing_ping",{id:i,topic:r})}catch(n){await this.sendError(i,r,n),this.client.logger.error(n)}},this.onPairingPingResponse=(r,a)=>{const{id:i}=a;xr(a)?this.events.emit(et("pairing_ping",i),{}):Xt(a)&&this.events.emit(et("pairing_ping",i),{error:a.error})},this.onSessionDeleteRequest=async(r,a)=>{const{id:i}=a;try{this.isValidDisconnect({topic:r,reason:a.params}),await this.sendResult(i,r,!0),await this.deleteSession(r),this.client.events.emit("session_delete",{id:i,topic:r})}catch(n){await this.sendError(i,r,n),this.client.logger.error(n)}},this.onPairingDeleteRequest=async(r,a)=>{const{id:i}=a;try{this.isValidDisconnect({topic:r,reason:a.params}),await this.sendResult(i,r,!0),await this.deletePairing(r),this.client.events.emit("pairing_delete",{id:i,topic:r})}catch(n){await this.sendError(i,r,n),this.client.logger.error(n)}},this.onSessionRequest=async(r,a)=>{const{id:i,params:n}=a;try{this.isValidRequest(aa({topic:r},n)),this.client.events.emit("session_request",{id:i,topic:r,params:n})}catch(p){await this.sendError(i,r,p),this.client.logger.error(p)}},this.onSessionRequestResponse=(r,a)=>{const{id:i}=a;xr(a)?this.events.emit(et("session_request",i),{result:a.result}):Xt(a)&&this.events.emit(et("session_request",i),{error:a.error})},this.onSessionEventRequest=async(r,a)=>{const{id:i,params:n}=a;try{this.isValidEmit(aa({topic:r},n)),this.client.events.emit("session_event",{id:i,topic:r,params:n})}catch(p){await this.sendError(i,r,p),this.client.logger.error(p)}},this.isValidConnect=async r=>{if(!Wt(r)){const{message:s}=ye("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(r)}`);throw new Error(s)}const{pairingTopic:a,requiredNamespaces:i,relays:n}=r;rr(a)||await this.isValidPairingTopic(a);const p=Oy(i,"connect()");if(p)throw new Error(p.message);if(!Ay(n,!0)){const{message:s}=ye("MISSING_OR_INVALID",`connect() relays: ${n}`);throw new Error(s)}},this.isValidPair=r=>{if(!Wt(r)){const{message:a}=ye("MISSING_OR_INVALID",`pair() params: ${r}`);throw new Error(a)}if(!Ey(r.uri)){const{message:a}=ye("MISSING_OR_INVALID",`pair() uri: ${r.uri}`);throw new Error(a)}},this.isValidApprove=async r=>{if(!Wt(r))throw new Error(ye("MISSING_OR_INVALID",`approve() params: ${r}`).message);const{id:a,namespaces:i,relayProtocol:n}=r;await this.isValidProposalId(a);const p=this.client.proposal.get(a),s=ro(i,"approve()");if(s)throw new Error(s.message);const o=mu(p.requiredNamespaces,i,"update()");if(o)throw new Error(o.message);if(!At(n,!0)){const{message:d}=ye("MISSING_OR_INVALID",`approve() relayProtocol: ${n}`);throw new Error(d)}},this.isValidReject=async r=>{if(!Wt(r)){const{message:n}=ye("MISSING_OR_INVALID",`reject() params: ${r}`);throw new Error(n)}const{id:a,reason:i}=r;if(await this.isValidProposalId(a),!Iy(i)){const{message:n}=ye("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(i)}`);throw new Error(n)}},this.isValidSessionSettleRequest=r=>{if(!Wt(r)){const{message:d}=ye("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${r}`);throw new Error(d)}const{relay:a,controller:i,namespaces:n,expiry:p}=r;if(!fu(a)){const{message:d}=ye("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(d)}const s=Dy(i,"onSessionSettleRequest()");if(s)throw new Error(s.message);const o=ro(n,"onSessionSettleRequest()");if(o)throw new Error(o.message);if(Ca(p)){const{message:d}=ye("EXPIRED","onSessionSettleRequest()");throw new Error(d)}},this.isValidUpdate=async r=>{if(!Wt(r)){const{message:o}=ye("MISSING_OR_INVALID",`update() params: ${r}`);throw new Error(o)}const{topic:a,namespaces:i}=r;await this.isValidSessionTopic(a);const n=this.client.session.get(a),p=ro(i,"update()");if(p)throw new Error(p.message);const s=mu(n.requiredNamespaces,i,"update()");if(s)throw new Error(s.message)},this.isValidExtend=async r=>{if(!Wt(r)){const{message:i}=ye("MISSING_OR_INVALID",`extend() params: ${r}`);throw new Error(i)}const{topic:a}=r;await this.isValidSessionTopic(a)},this.isValidRequest=async r=>{if(!Wt(r)){const{message:s}=ye("MISSING_OR_INVALID",`request() params: ${r}`);throw new Error(s)}const{topic:a,request:i,chainId:n}=r;await this.isValidSessionTopic(a);const{namespaces:p}=this.client.session.get(a);if(!hu(p,n)){const{message:s}=ye("MISSING_OR_INVALID",`request() chainId: ${n}`);throw new Error(s)}if(!Ry(i)){const{message:s}=ye("MISSING_OR_INVALID",`request() ${JSON.stringify(i)}`);throw new Error(s)}if(!Py(p,n,i.method)){const{message:s}=ye("MISSING_OR_INVALID",`request() method: ${i.method}`);throw new Error(s)}},this.isValidRespond=async r=>{if(!Wt(r)){const{message:n}=ye("MISSING_OR_INVALID",`respond() params: ${r}`);throw new Error(n)}const{topic:a,response:i}=r;if(await this.isValidSessionTopic(a),!Ly(i)){const{message:n}=ye("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(i)}`);throw new Error(n)}},this.isValidPing=async r=>{if(!Wt(r)){const{message:i}=ye("MISSING_OR_INVALID",`ping() params: ${r}`);throw new Error(i)}const{topic:a}=r;await this.isValidSessionOrPairingTopic(a)},this.isValidEmit=async r=>{if(!Wt(r)){const{message:s}=ye("MISSING_OR_INVALID",`emit() params: ${r}`);throw new Error(s)}const{topic:a,event:i,chainId:n}=r;await this.isValidSessionTopic(a);const{namespaces:p}=this.client.session.get(a);if(!hu(p,n)){const{message:s}=ye("MISSING_OR_INVALID",`emit() chainId: ${n}`);throw new Error(s)}if(!Fy(i)){const{message:s}=ye("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(i)}`);throw new Error(s)}if(!My(p,n,i.name)){const{message:s}=ye("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(i)}`);throw new Error(s)}},this.isValidDisconnect=async r=>{if(!Wt(r)){const{message:i}=ye("MISSING_OR_INVALID",`disconnect() params: ${r}`);throw new Error(i)}const{topic:a}=r;await this.isValidSessionOrPairingTopic(a)}}async createPairing(){const t=Jp(),r=await this.client.core.crypto.setSymKey(t),a=fi(qe.FIVE_MINUTES),i={protocol:mc},n={topic:r,expiry:a,relay:i,active:!1},p=hy({protocol:this.client.protocol,version:this.client.version,topic:r,symKey:t,relay:i});return await this.client.pairing.set(r,n),await this.client.core.relayer.subscribe(r),await this.setExpiry(r,a),{topic:r,uri:p}}isInitialized(){if(!this.initialized){const{message:t}=ye("NOT_INITIALIZED",this.name);throw new Error(t)}}registerRelayerEvents(){this.client.core.relayer.on(E1.message,async t=>{const{topic:r,message:a}=t,i=await this.client.core.crypto.decode(r,a);t0(i)?(this.client.history.set(r,i),this.onRelayEventRequest({topic:r,payload:i})):r0(i)&&(await this.client.history.resolve(i),this.onRelayEventResponse({topic:r,payload:i}))})}registerExpirerEvents(){this.client.expirer.on(ir.expired,async t=>{const{topic:r,id:a}=ny(t.target);r?this.client.session.keys.includes(r)?(await this.deleteSession(r),this.client.events.emit("session_expire",{topic:r})):this.client.pairing.keys.includes(r)&&(await this.deletePairing(r),this.client.events.emit("pairing_expire",{topic:r})):a&&await this.deleteProposal(a)})}async isValidPairingTopic(t){if(!At(t,!1)){const{message:r}=ye("MISSING_OR_INVALID",`pairing topic should be a string: ${t}`);throw new Error(r)}if(!this.client.pairing.keys.includes(t)){const{message:r}=ye("NO_MATCHING_KEY",`pairing topic doesn't exist: ${t}`);throw new Error(r)}if(Ca(this.client.pairing.get(t).expiry)){await this.deletePairing(t);const{message:r}=ye("EXPIRED",`pairing topic: ${t}`);throw new Error(r)}}async isValidSessionTopic(t){if(!At(t,!1)){const{message:r}=ye("MISSING_OR_INVALID",`session topic should be a string: ${t}`);throw new Error(r)}if(!this.client.session.keys.includes(t)){const{message:r}=ye("NO_MATCHING_KEY",`session topic doesn't exist: ${t}`);throw new Error(r)}if(Ca(this.client.session.get(t).expiry)){await this.deleteSession(t);const{message:r}=ye("EXPIRED",`session topic: ${t}`);throw new Error(r)}}async isValidSessionOrPairingTopic(t){if(this.client.session.keys.includes(t))await this.isValidSessionTopic(t);else if(this.client.pairing.keys.includes(t))await this.isValidPairingTopic(t);else if(At(t,!1)){const{message:r}=ye("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${t}`);throw new Error(r)}else{const{message:r}=ye("MISSING_OR_INVALID",`session or pairing topic should be a string: ${t}`);throw new Error(r)}}async isValidProposalId(t){if(!Cy(t)){const{message:r}=ye("MISSING_OR_INVALID",`proposal id should be a number: ${t}`);throw new Error(r)}if(!this.client.proposal.keys.includes(t)){const{message:r}=ye("NO_MATCHING_KEY",`proposal id doesn't exist: ${t}`);throw new Error(r)}if(Ca(this.client.proposal.get(t).expiry)){await this.deleteProposal(t);const{message:r}=ye("EXPIRED",`proposal id: ${t}`);throw new Error(r)}}}class JT extends JS{constructor(t,r){super(t,r),this.core=t,this.logger=r,this.expirations=new Map,this.events=new bi.exports.EventEmitter,this.name=MT,this.version=UT,this.cached=[],this.initialized=!1,this.storagePrefix=S1,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(a=>this.expirations.set(a.target,a)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=a=>{try{const i=this.formatTarget(a);return typeof this.getExpiration(i)<"u"}catch{return!1}},this.set=(a,i)=>{this.isInitialized();const n=this.formatTarget(a),p={target:n,expiry:i};this.expirations.set(n,p),this.checkExpiry(n,p),this.events.emit(ir.created,{target:n,expiration:p})},this.get=a=>{this.isInitialized();const i=this.formatTarget(a);return this.getExpiration(i)},this.del=a=>{this.isInitialized();const i=this.formatTarget(a);if(this.has(i)){const n=this.getExpiration(i);this.expirations.delete(i),this.events.emit(ir.deleted,{target:i,expiration:n})}},this.on=(a,i)=>{this.events.on(a,i)},this.once=(a,i)=>{this.events.once(a,i)},this.off=(a,i)=>{this.events.off(a,i)},this.removeListener=(a,i)=>{this.events.removeListener(a,i)},this.logger=Pe.generateChildLogger(r,this.name)}get context(){return Pe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(t){if(typeof t=="string")return ay(t);if(typeof t=="number")return iy(t);const{message:r}=ye("UNKNOWN_TYPE",`Target type: ${typeof t}`);throw new Error(r)}async setExpirations(t){await this.core.storage.setItem(this.storageKey,t)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(ir.sync)}async restore(){try{const t=await this.getExpirations();if(typeof t>"u"||!t.length)return;if(this.expirations.size){const{message:r}=ye("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(t){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(t)}}getExpiration(t){const r=this.expirations.get(t);if(!r){const{message:a}=ye("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.error(a),new Error(a)}return r}checkExpiry(t,r){const{expiry:a}=r;qe.toMiliseconds(a)-Date.now()<=0&&this.expire(t,r)}expire(t,r){this.expirations.delete(t),this.events.emit(ir.expired,{target:t,expiration:r})}checkExpirations(){this.expirations.forEach((t,r)=>this.checkExpiry(r,t))}registerEventListeners(){this.core.heartbeat.on(g1.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(ir.created,t=>{const r=ir.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()}),this.events.on(ir.expired,t=>{const r=ir.expired;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()}),this.events.on(ir.deleted,t=>{const r=ir.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()})}isInitialized(){if(!this.initialized){const{message:t}=ye("NOT_INITIALIZED",this.name);throw new Error(t)}}}class XT extends VS{constructor(t,r){super(t,r),this.core=t,this.logger=r,this.records=new Map,this.events=new bi.exports.EventEmitter,this.name=BT,this.version=$T,this.cached=[],this.initialized=!1,this.storagePrefix=S1,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(a=>this.records.set(a.id,a)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(a,i,n)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:a,request:i,chainId:n}),this.records.has(i.id))return;const p={id:i.id,topic:a,request:{method:i.method,params:i.params||null},chainId:n};this.records.set(p.id,p),this.events.emit(yr.created,p)},this.resolve=async a=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:a}),!this.records.has(a.id))return;const i=await this.getRecord(a.id);typeof i.response>"u"&&(i.response=Xt(a)?{error:a.error}:{result:a.result},this.records.set(i.id,i),this.events.emit(yr.updated,i))},this.get=async(a,i)=>{this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:a,id:i});const n=await this.getRecord(i);if(n.topic!==a){const{message:p}=ye("MISMATCHED_TOPIC",`${this.name}, ${i}`);throw this.logger.error(p),new Error(p)}return n},this.delete=(a,i)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:i}),this.values.forEach(n=>{if(n.topic===a){if(typeof i<"u"&&n.id!==i)return;this.records.delete(n.id),this.events.emit(yr.deleted,n)}})},this.exists=async(a,i)=>(this.isInitialized(),this.records.has(i)?(await this.getRecord(i)).topic===a:!1),this.on=(a,i)=>{this.events.on(a,i)},this.once=(a,i)=>{this.events.once(a,i)},this.off=(a,i)=>{this.events.off(a,i)},this.removeListener=(a,i)=>{this.events.removeListener(a,i)},this.logger=Pe.generateChildLogger(r,this.name)}get context(){return Pe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const t=[];return this.values.forEach(r=>{if(typeof r.response<"u")return;const a={topic:r.topic,request:Yn(r.request.method,r.request.params,r.id),chainId:r.chainId};return t.push(a)}),t}async setJsonRpcRecords(t){await this.core.storage.setItem(this.storageKey,t)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(t){this.isInitialized();const r=this.records.get(t);if(!r){const{message:a}=ye("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(a)}return r}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(yr.sync)}async restore(){try{const t=await this.getJsonRpcRecords();if(typeof t>"u"||!t.length)return;if(this.records.size){const{message:r}=ye("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(t){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(t)}}registerEventListeners(){this.events.on(yr.created,t=>{const r=yr.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()}),this.events.on(yr.updated,t=>{const r=yr.updated;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()}),this.events.on(yr.deleted,t=>{const r=yr.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()})}isInitialized(){if(!this.initialized){const{message:t}=ye("NOT_INITIALIZED",this.name);throw new Error(t)}}}class QT extends Fd{constructor(t,r){super(t,r,jT,S1),this.core=t,this.logger=r}}class eN extends Fd{constructor(t,r){super(t,r,VT,S1),this.core=t,this.logger=r}}class tN extends Fd{constructor(t,r){super(t,r,kT,S1),this.core=t,this.logger=r}}class Bd extends ZS{constructor(t){super(t),this.protocol=Mc,this.version=Uc,this.name=Md.name,this.events=new bi.exports.EventEmitter,this.on=(a,i)=>this.events.on(a,i),this.once=(a,i)=>this.events.once(a,i),this.off=(a,i)=>this.events.off(a,i),this.removeListener=(a,i)=>this.events.removeListener(a,i),this.connect=async a=>{try{return await this.engine.connect(a)}catch(i){throw this.logger.error(i.message),i}},this.pair=async a=>{try{return await this.engine.pair(a)}catch(i){throw this.logger.error(i.message),i}},this.approve=async a=>{try{return await this.engine.approve(a)}catch(i){throw this.logger.error(i.message),i}},this.reject=async a=>{try{return await this.engine.reject(a)}catch(i){throw this.logger.error(i.message),i}},this.update=async a=>{try{return await this.engine.update(a)}catch(i){throw this.logger.error(i.message),i}},this.extend=async a=>{try{return await this.engine.extend(a)}catch(i){throw this.logger.error(i.message),i}},this.request=async a=>{try{return await this.engine.request(a)}catch(i){throw this.logger.error(i.message),i}},this.respond=async a=>{try{return await this.engine.respond(a)}catch(i){throw this.logger.error(i.message),i}},this.ping=async a=>{try{return await this.engine.ping(a)}catch(i){throw this.logger.error(i.message),i}},this.emit=async a=>{try{return await this.engine.emit(a)}catch(i){throw this.logger.error(i.message),i}},this.disconnect=async a=>{try{return await this.engine.disconnect(a)}catch(i){throw this.logger.error(i.message),i}},this.find=a=>{try{return this.engine.find(a)}catch(i){throw this.logger.error(i.message),i}},this.name=t?.name||Md.name,this.metadata=t?.metadata||Xg();const r=typeof t?.logger<"u"&&typeof t?.logger!="string"?t.logger:ed(Pe.getDefaultLoggerOptions({level:t?.logger||Md.logger}));this.core=t?.core||new AT(t),this.logger=Pe.generateChildLogger(r,this.name),this.pairing=new QT(this.core,this.logger),this.session=new tN(this.core,this.logger),this.proposal=new eN(this.core,this.logger),this.history=new XT(this.core,this.logger),this.expirer=new JT(this.core,this.logger),this.engine=new YT(this)}static async init(t){const r=new Bd(t);return await r.initialize(),r}get context(){return Pe.getLoggerContext(this.logger)}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.pairing.init(),await this.session.init(),await this.proposal.init(),await this.history.init(),await this.expirer.init(),await this.engine.init(),this.logger.info("SignClient Initilization Success")}catch(t){throw this.logger.info("SignClient Initilization Failure"),this.logger.error(t.message),t}}}function mt(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}var rN=mt;mt.EventEmitter=mt,mt.prototype._events=void 0,mt.prototype._maxListeners=void 0,mt.defaultMaxListeners=10,mt.prototype.setMaxListeners=function(e){if(!aN(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},mt.prototype.emit=function(e){var t,r,a,i,n,p;if(this._events||(this._events={}),e==="error"&&(!this._events.error||x1(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var s=new Error('Uncaught, unspecified "error" event. ('+t+")");throw s.context=t,s}if(r=this._events[e],zc(r))return!1;if(Br(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),r.apply(this,i)}else if(x1(r))for(i=Array.prototype.slice.call(arguments,1),p=r.slice(),a=p.length,n=0;n<a;n++)p[n].apply(this,i);return!0},mt.prototype.addListener=function(e,t){var r;if(!Br(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Br(t.listener)?t.listener:t),this._events[e]?x1(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,x1(this._events[e])&&!this._events[e].warned&&(zc(this._maxListeners)?r=mt.defaultMaxListeners:r=this._maxListeners,r&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),typeof console.trace=="function"&&console.trace())),this},mt.prototype.on=mt.prototype.addListener,mt.prototype.once=function(e,t){if(!Br(t))throw TypeError("listener must be a function");var r=!1;function a(){this.removeListener(e,a),r||(r=!0,t.apply(this,arguments))}return a.listener=t,this.on(e,a),this},mt.prototype.removeListener=function(e,t){var r,a,i,n;if(!Br(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],i=r.length,a=-1,r===t||Br(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(x1(r)){for(n=i;n-- >0;)if(r[n]===t||r[n].listener&&r[n].listener===t){a=n;break}if(a<0)return this;r.length===1?(r.length=0,delete this._events[e]):r.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},mt.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[e]&&delete this._events[e],this;if(arguments.length===0){for(t in this._events)t!=="removeListener"&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],Br(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},mt.prototype.listeners=function(e){var t;return!this._events||!this._events[e]?t=[]:Br(this._events[e])?t=[this._events[e]]:t=this._events[e].slice(),t},mt.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(Br(t))return 1;if(t)return t.length}return 0},mt.listenerCount=function(e,t){return e.listenerCount(t)};function Br(e){return typeof e=="function"}function aN(e){return typeof e=="number"}function x1(e){return typeof e=="object"&&e!==null}function zc(e){return e===void 0}function iN(e){return typeof e<"u"&&typeof e.context<"u"}const wr={init:"signer_init",uri:"signer_uri",created:"signer_created",updated:"signer_updated",deleted:"signer_deleted",event:"signer_event"};class nN extends vf{constructor(t){super(),this.events=new rN.EventEmitter,this.pending=!1,this.initializing=!1,this.requiredNamespaces=t?.requiredNamespaces||{},this.opts=t?.client}get connected(){return typeof this.session<"u"}get connecting(){return this.pending}get chains(){return this.session?Kp(this.session.namespaces):Lg(this.requiredNamespaces)}get accounts(){return this.session?qp(this.session.namespaces):[]}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async open(){if(this.pending)return new Promise((t,r)=>{this.events.once("open",()=>{if(this.events.once("open_error",a=>{r(a)}),typeof this.client>"u")return r(new Error("Sign Client not initialized"));t()})});try{this.pending=!0;const t=await this.register(),r=t.find({requiredNamespaces:this.requiredNamespaces});if(r.length)return this.onOpen(r[0]);const{uri:a,approval:i}=await t.connect({requiredNamespaces:this.requiredNamespaces});this.events.emit(wr.uri,{uri:a}),this.session=await i(),this.events.emit(wr.created,this.session),this.onOpen()}catch(t){throw this.events.emit("open_error",t),t}}async close(){typeof this.session>"u"||(await(await this.register()).disconnect({topic:this.session.topic,reason:St("USER_DISCONNECTED")}),this.onClose())}async send(t,r){if(typeof this.client>"u"&&(this.client=await this.register(),this.connected||await this.open()),typeof this.session>"u")throw new Error("Signer connection is missing session");this.client.request({topic:this.session.topic,request:t,chainId:r?.chainId}).then(a=>this.events.emit("payload",Jn(t.id,a))).catch(a=>this.events.emit("payload",N1(t.id,a.message)))}async register(t=this.opts){if(typeof this.client<"u")return this.client;if(this.initializing)return new Promise((r,a)=>{this.events.once("register_error",i=>{a(i)}),this.events.once(wr.init,()=>{if(typeof this.client>"u")return a(new Error("Sign Client not initialized"));r(this.client)})});if(iN(t))return this.client=t,this.registerEventListeners(),this.client;try{return this.initializing=!0,this.client=await Bd.init(t),this.initializing=!1,this.registerEventListeners(),this.events.emit(wr.init),this.client}catch(r){throw this.events.emit("register_error",r),r}}onOpen(t){this.pending=!1,t&&(this.session=t),this.events.emit("open")}onClose(){this.pending=!1,this.client&&(this.client=void 0),this.events.emit("close")}registerEventListeners(){typeof this.client<"u"&&(this.client.on("session_event",t=>{var r;this.session&&((r=this.session)==null?void 0:r.topic)!==t.topic||this.events.emit(wr.event,t.params)}),this.client.on("session_update",t=>{var r;typeof this.client<"u"&&(this.session&&((r=this.session)==null?void 0:r.topic)!==t.topic||(this.session=this.client.session.get(t.topic),this.events.emit(wr.updated,this.session)))}),this.client.on("session_delete",t=>{var r;!this.session||this.session&&((r=this.session)==null?void 0:r.topic)!==t.topic||(this.onClose(),this.events.emit(wr.deleted,this.session),this.session=void 0)}))}}const sN=["eth_requestAccounts","eth_accounts","eth_chainId","eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","personal_sign"],pN=["chainChanged","accountsChanged"];function Hc(e){return{chains:e!=null&&e.chainId?[`eip155:${e.chainId}`]:[],methods:e?.methods||[],events:e?.events||[],rpcMap:e?.rpcMap||void 0}}function qc(e,t){let r;return t.rpcMap&&(r=t.rpcMap[$d([e])]),r}function $d(e){return Number(e[0].split(":")[1])}class oN{constructor(t){this.events=new It.EventEmitter,this.namespace="eip155",this.accounts=[],this.rpc=Hc(t),this.signer=this.setSignerProvider(t?.client),this.chainId=$d(this.rpc.chains),this.http=this.setHttpProvider(this.chainId),this.registerEventListeners()}async request(t){switch(t.method){case"eth_requestAccounts":return await this.connect(),this.accounts;case"eth_accounts":return this.accounts;case"eth_chainId":return this.chainId}if(t.method.startsWith("eth_signTypedData")||this.rpc.methods.includes(t.method))return this.signer.request(t,{chainId:this.formatChainId(this.chainId)});if(typeof this.http>"u")throw new Error(`Cannot request JSON-RPC method (${t.method}) without provided rpc url`);return this.http.request(t)}sendAsync(t,r){this.request(t).then(a=>r(null,a)).catch(a=>r(a,void 0))}get connected(){return this.signer.connection.connected}get connecting(){return this.signer.connection.connecting}async enable(){return await this.request({method:"eth_requestAccounts"})}async connect(){await this.signer.connect()}async disconnect(){await this.signer.disconnect()}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}removeListener(t,r){this.events.removeListener(t,r)}off(t,r){this.events.off(t,r)}get isWalletConnect(){return!0}registerEventListeners(){this.signer.on("connect",()=>{const t=this.signer.connection.chains;t&&t.length&&this.setChainIds(t);const r=this.signer.connection.accounts;r&&r.length&&this.setAccounts(r)}),this.signer.connection.on(wr.created,t=>{const r=Kp(t.namespaces,[this.namespace]);this.setChainIds(r);const a=qp(t.namespaces,[this.namespace]);this.setAccounts(a)}),this.signer.connection.on(wr.updated,t=>{const r=Kp(t.namespaces,[this.namespace]);this.setChainIds(r);const a=qp(t.namespaces,[this.namespace]);a!==this.accounts&&this.setAccounts(a)}),this.signer.connection.on(wr.event,t=>{if(!this.rpc.chains.includes(t.chainId))return;const{event:r}=t;r.name==="accountsChanged"?(this.accounts=r.data,this.events.emit("accountsChanged",this.accounts)):r.name==="chainChanged"?this.setChainId(r.data):this.events.emit(r.name,r.data)}),this.signer.on("disconnect",()=>{this.events.emit("disconnect")}),this.events.on("chainChanged",t=>this.setHttpProvider(t))}setSignerProvider(t){const r=new nN({requiredNamespaces:{[this.namespace]:{chains:this.rpc.chains,methods:this.rpc.methods,events:this.rpc.events}},client:t});return new Xn(r)}setHttpProvider(t){const r=qc(`${this.namespace}:${t}`,this.rpc);return typeof r>"u"?void 0:new Xn(new Vm(r))}isCompatibleChainId(t){return typeof t=="string"?t.startsWith(`${this.namespace}:`):!1}formatChainId(t){return`${this.namespace}:${t}`}parseChainId(t){return Number(t.split(":")[1])}setChainIds(t){const r=t.filter(a=>this.isCompatibleChainId(a)).map(a=>this.parseChainId(a)).filter(a=>a!==this.chainId);r.length&&(this.chainId=r[0],this.events.emit("chainChanged",this.chainId))}setChainId(t){if(this.isCompatibleChainId(t)){const r=this.parseChainId(t);this.chainId=r,this.events.emit("chainChanged",this.chainId)}}parseAccountId(t){const[r,a,i]=t.split(":");return{chainId:`${r}:${a}`,address:i}}setAccounts(t){this.accounts=t.filter(r=>this.parseChainId(this.parseAccountId(r).chainId)===this.chainId).map(r=>this.parseAccountId(r).address),this.events.emit("accountsChanged",this.accounts)}}Jt.default=oN,Jt.getEthereumChainId=$d,Jt.getRpcConfig=Hc,Jt.getRpcUrl=qc,Jt.signerEvents=pN,Jt.signerMethods=sN,Object.defineProperty(Jt,"__esModule",{value:!0})});
1
+ (function(mt,Z){typeof exports=="object"&&typeof module<"u"?Z(exports):typeof define=="function"&&define.amd?define(["exports"],Z):(mt=typeof globalThis<"u"?globalThis:mt||self,Z(mt["@walletconnect/ethereum-provider"]={}))})(this,function(mt){"use strict";var Z=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ja(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function wn(t){var e=t.default;if(typeof e=="function"){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}function Ke(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}var vr=Ke;Ke.EventEmitter=Ke,Ke.prototype._events=void 0,Ke.prototype._maxListeners=void 0,Ke.defaultMaxListeners=10,Ke.prototype.setMaxListeners=function(t){if(!Xa(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},Ke.prototype.emit=function(t){var e,r,n,i,s,c;if(this._events||(this._events={}),t==="error"&&(!this._events.error||yr(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;var u=new Error('Uncaught, unspecified "error" event. ('+e+")");throw u.context=e,u}if(r=this._events[t],Ri(r))return!1;if(Nt(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),r.apply(this,i)}else if(yr(r))for(i=Array.prototype.slice.call(arguments,1),c=r.slice(),n=c.length,s=0;s<n;s++)c[s].apply(this,i);return!0},Ke.prototype.addListener=function(t,e){var r;if(!Nt(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,Nt(e.listener)?e.listener:e),this._events[t]?yr(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,yr(this._events[t])&&!this._events[t].warned&&(Ri(this._maxListeners)?r=Ke.defaultMaxListeners:r=this._maxListeners,r&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),typeof console.trace=="function"&&console.trace())),this},Ke.prototype.on=Ke.prototype.addListener,Ke.prototype.once=function(t,e){if(!Nt(e))throw TypeError("listener must be a function");var r=!1;function n(){this.removeListener(t,n),r||(r=!0,e.apply(this,arguments))}return n.listener=e,this.on(t,n),this},Ke.prototype.removeListener=function(t,e){var r,n,i,s;if(!Nt(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(r=this._events[t],i=r.length,n=-1,r===e||Nt(r.listener)&&r.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(yr(r)){for(s=i;s-- >0;)if(r[s]===e||r[s].listener&&r[s].listener===e){n=s;break}if(n<0)return this;r.length===1?(r.length=0,delete this._events[t]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},Ke.prototype.removeAllListeners=function(t){var e,r;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[t]&&delete this._events[t],this;if(arguments.length===0){for(e in this._events)e!=="removeListener"&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],Nt(r))this.removeListener(t,r);else if(r)for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},Ke.prototype.listeners=function(t){var e;return!this._events||!this._events[t]?e=[]:Nt(this._events[t])?e=[this._events[t]]:e=this._events[t].slice(),e},Ke.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(Nt(e))return 1;if(e)return e.length}return 0},Ke.listenerCount=function(t,e){return t.listenerCount(e)};function Nt(t){return typeof t=="function"}function Xa(t){return typeof t=="number"}function yr(t){return typeof t=="object"&&t!==null}function Ri(t){return t===void 0}const Za="PARSE_ERROR",Qa="INVALID_REQUEST",ec="METHOD_NOT_FOUND",tc="INVALID_PARAMS",Fi="INTERNAL_ERROR",En="SERVER_ERROR",rc=[-32700,-32600,-32601,-32602,-32603],_r={[Za]:{code:-32700,message:"Parse error"},[Qa]:{code:-32600,message:"Invalid Request"},[ec]:{code:-32601,message:"Method not found"},[tc]:{code:-32602,message:"Invalid params"},[Fi]:{code:-32603,message:"Internal error"},[En]:{code:-32e3,message:"Server error"}},Ui=En;function nc(t){return rc.includes(t)}function Mi(t){return Object.keys(_r).includes(t)?_r[t]:_r[Ui]}function ic(t){const e=Object.values(_r).find(r=>r.code===t);return e||_r[Ui]}function ji(t,e,r){return t.message.includes("getaddrinfo ENOTFOUND")||t.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${e}`):t}var $i={},$t={};Object.defineProperty($t,"__esModule",{value:!0}),$t.isBrowserCryptoAvailable=$t.getSubtleCrypto=$t.getBrowerCrypto=void 0;function Dn(){return Z?.crypto||Z?.msCrypto||{}}$t.getBrowerCrypto=Dn;function Bi(){const t=Dn();return t.subtle||t.webkitSubtle}$t.getSubtleCrypto=Bi;function sc(){return!!Dn()&&!!Bi()}$t.isBrowserCryptoAvailable=sc;var Bt={};Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.isBrowser=Bt.isNode=Bt.isReactNative=void 0;function zi(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}Bt.isReactNative=zi;function Hi(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}Bt.isNode=Hi;function oc(){return!zi()&&!Hi()}Bt.isBrowser=oc,function(t){var e=Z&&Z.__createBinding||(Object.create?function(n,i,s,c){c===void 0&&(c=s),Object.defineProperty(n,c,{enumerable:!0,get:function(){return i[s]}})}:function(n,i,s,c){c===void 0&&(c=s),n[c]=i[s]}),r=Z&&Z.__exportStar||function(n,i){for(var s in n)s!=="default"&&!i.hasOwnProperty(s)&&e(i,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r($t,t),r(Bt,t)}($i);function ac(){const t=Date.now()*Math.pow(10,3),e=Math.floor(Math.random()*Math.pow(10,3));return t+e}function xn(t,e,r){return{id:r||ac(),jsonrpc:"2.0",method:t,params:e}}function Sn(t,e){return{id:t,jsonrpc:"2.0",result:e}}function qr(t,e,r){return{id:t,jsonrpc:"2.0",error:cc(e,r)}}function cc(t,e){return typeof t>"u"?Mi(Fi):(typeof t=="string"&&(t=Object.assign(Object.assign({},Mi(En)),{message:t})),typeof e<"u"&&(t.data=e),nc(t.code)&&(t=ic(t.code)),t)}class Ki{}class uc extends Ki{constructor(e){super()}}class hc extends Ki{constructor(){super()}}class fc extends hc{constructor(e){super()}}const lc="^https?:",dc="^wss?:";function pc(t){const e=t.match(new RegExp(/^\w+:/,"gi"));if(!(!e||!e.length))return e[0]}function qi(t,e){const r=pc(t);return typeof r>"u"?!1:new RegExp(e).test(r)}function Vi(t){return qi(t,lc)}function Gi(t){return qi(t,dc)}function gc(t){return new RegExp("wss?://localhost(:d{2,5})?").test(t)}function Wi(t){return typeof t=="object"&&"id"in t&&"jsonrpc"in t&&t.jsonrpc==="2.0"}function ki(t){return Wi(t)&&"method"in t}function Yi(t){return Wi(t)&&(Pt(t)||wt(t))}function Pt(t){return"result"in t}function wt(t){return"error"in t}class On extends fc{constructor(e){super(e),this.events=new vr.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}off(e,r){this.events.off(e,r)}removeListener(e,r){this.events.removeListener(e,r)}async request(e,r){return this.requestStrict(xn(e.method,e.params||[]),r)}async requestStrict(e,r){return new Promise(async(n,i)=>{if(!this.connection.connected)try{await this.open()}catch(s){i(s)}this.events.on(`${e.id}`,s=>{wt(s)?i(s.error):n(s.result)});try{await this.connection.send(e,r)}catch(s){i(s)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),Yi(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),typeof e=="string"&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",()=>this.events.emit("disconnect")),this.connection.on("error",e=>this.events.emit("error",e)),this.hasRegisteredEventListeners=!0)}}var An={exports:{}};(function(t,e){var r=typeof self<"u"?self:Z,n=function(){function s(){this.fetch=!1,this.DOMException=r.DOMException}return s.prototype=r,new s}();(function(s){(function(c){var u={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function h(f){return f&&DataView.prototype.isPrototypeOf(f)}if(u.arrayBuffer)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(f){return f&&l.indexOf(Object.prototype.toString.call(f))>-1};function E(f){if(typeof f!="string"&&(f=String(f)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(f))throw new TypeError("Invalid character in header field name");return f.toLowerCase()}function T(f){return typeof f!="string"&&(f=String(f)),f}function w(f){var _={next:function(){var M=f.shift();return{done:M===void 0,value:M}}};return u.iterable&&(_[Symbol.iterator]=function(){return _}),_}function b(f){this.map={},f instanceof b?f.forEach(function(_,M){this.append(M,_)},this):Array.isArray(f)?f.forEach(function(_){this.append(_[0],_[1])},this):f&&Object.getOwnPropertyNames(f).forEach(function(_){this.append(_,f[_])},this)}b.prototype.append=function(f,_){f=E(f),_=T(_);var M=this.map[f];this.map[f]=M?M+", "+_:_},b.prototype.delete=function(f){delete this.map[E(f)]},b.prototype.get=function(f){return f=E(f),this.has(f)?this.map[f]:null},b.prototype.has=function(f){return this.map.hasOwnProperty(E(f))},b.prototype.set=function(f,_){this.map[E(f)]=T(_)},b.prototype.forEach=function(f,_){for(var M in this.map)this.map.hasOwnProperty(M)&&f.call(_,this.map[M],M,this)},b.prototype.keys=function(){var f=[];return this.forEach(function(_,M){f.push(M)}),w(f)},b.prototype.values=function(){var f=[];return this.forEach(function(_){f.push(_)}),w(f)},b.prototype.entries=function(){var f=[];return this.forEach(function(_,M){f.push([M,_])}),w(f)},u.iterable&&(b.prototype[Symbol.iterator]=b.prototype.entries);function F(f){if(f.bodyUsed)return Promise.reject(new TypeError("Already read"));f.bodyUsed=!0}function y(f){return new Promise(function(_,M){f.onload=function(){_(f.result)},f.onerror=function(){M(f.error)}})}function O(f){var _=new FileReader,M=y(_);return _.readAsArrayBuffer(f),M}function N(f){var _=new FileReader,M=y(_);return _.readAsText(f),M}function L(f){for(var _=new Uint8Array(f),M=new Array(_.length),K=0;K<_.length;K++)M[K]=String.fromCharCode(_[K]);return M.join("")}function S(f){if(f.slice)return f.slice(0);var _=new Uint8Array(f.byteLength);return _.set(new Uint8Array(f)),_.buffer}function C(){return this.bodyUsed=!1,this._initBody=function(f){this._bodyInit=f,f?typeof f=="string"?this._bodyText=f:u.blob&&Blob.prototype.isPrototypeOf(f)?this._bodyBlob=f:u.formData&&FormData.prototype.isPrototypeOf(f)?this._bodyFormData=f:u.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)?this._bodyText=f.toString():u.arrayBuffer&&u.blob&&h(f)?(this._bodyArrayBuffer=S(f.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(f)||p(f))?this._bodyArrayBuffer=S(f):this._bodyText=f=Object.prototype.toString.call(f):this._bodyText="",this.headers.get("content-type")||(typeof f=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):u.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},u.blob&&(this.blob=function(){var f=F(this);if(f)return f;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?F(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(O)}),this.text=function(){var f=F(this);if(f)return f;if(this._bodyBlob)return N(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(L(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},u.formData&&(this.formData=function(){return this.text().then(B)}),this.json=function(){return this.text().then(JSON.parse)},this}var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function o(f){var _=f.toUpperCase();return m.indexOf(_)>-1?_:f}function g(f,_){_=_||{};var M=_.body;if(f instanceof g){if(f.bodyUsed)throw new TypeError("Already read");this.url=f.url,this.credentials=f.credentials,_.headers||(this.headers=new b(f.headers)),this.method=f.method,this.mode=f.mode,this.signal=f.signal,!M&&f._bodyInit!=null&&(M=f._bodyInit,f.bodyUsed=!0)}else this.url=String(f);if(this.credentials=_.credentials||this.credentials||"same-origin",(_.headers||!this.headers)&&(this.headers=new b(_.headers)),this.method=o(_.method||this.method||"GET"),this.mode=_.mode||this.mode||null,this.signal=_.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&M)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(M)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})};function B(f){var _=new FormData;return f.trim().split("&").forEach(function(M){if(M){var K=M.split("="),R=K.shift().replace(/\+/g," "),P=K.join("=").replace(/\+/g," ");_.append(decodeURIComponent(R),decodeURIComponent(P))}}),_}function q(f){var _=new b,M=f.replace(/\r?\n[\t ]+/g," ");return M.split(/\r?\n/).forEach(function(K){var R=K.split(":"),P=R.shift().trim();if(P){var j=R.join(":").trim();_.append(P,j)}}),_}C.call(g.prototype);function V(f,_){_||(_={}),this.type="default",this.status=_.status===void 0?200:_.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in _?_.statusText:"OK",this.headers=new b(_.headers),this.url=_.url||"",this._initBody(f)}C.call(V.prototype),V.prototype.clone=function(){return new V(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new b(this.headers),url:this.url})},V.error=function(){var f=new V(null,{status:0,statusText:""});return f.type="error",f};var J=[301,302,303,307,308];V.redirect=function(f,_){if(J.indexOf(_)===-1)throw new RangeError("Invalid status code");return new V(null,{status:_,headers:{location:f}})},c.DOMException=s.DOMException;try{new c.DOMException}catch{c.DOMException=function(_,M){this.message=_,this.name=M;var K=Error(_);this.stack=K.stack},c.DOMException.prototype=Object.create(Error.prototype),c.DOMException.prototype.constructor=c.DOMException}function X(f,_){return new Promise(function(M,K){var R=new g(f,_);if(R.signal&&R.signal.aborted)return K(new c.DOMException("Aborted","AbortError"));var P=new XMLHttpRequest;function j(){P.abort()}P.onload=function(){var $={status:P.status,statusText:P.statusText,headers:q(P.getAllResponseHeaders()||"")};$.url="responseURL"in P?P.responseURL:$.headers.get("X-Request-URL");var Q="response"in P?P.response:P.responseText;M(new V(Q,$))},P.onerror=function(){K(new TypeError("Network request failed"))},P.ontimeout=function(){K(new TypeError("Network request failed"))},P.onabort=function(){K(new c.DOMException("Aborted","AbortError"))},P.open(R.method,R.url,!0),R.credentials==="include"?P.withCredentials=!0:R.credentials==="omit"&&(P.withCredentials=!1),"responseType"in P&&u.blob&&(P.responseType="blob"),R.headers.forEach(function($,Q){P.setRequestHeader(Q,$)}),R.signal&&(R.signal.addEventListener("abort",j),P.onreadystatechange=function(){P.readyState===4&&R.signal.removeEventListener("abort",j)}),P.send(typeof R._bodyInit>"u"?null:R._bodyInit)})}return X.polyfill=!0,s.fetch||(s.fetch=X,s.Headers=b,s.Request=g,s.Response=V),c.Headers=b,c.Request=g,c.Response=V,c.fetch=X,Object.defineProperty(c,"__esModule",{value:!0}),c})({})})(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e})(An,An.exports);var Ji=Ja(An.exports);function In(t){if(typeof t!="string")throw new Error(`Cannot safe json parse value of type ${typeof t}`);try{return JSON.parse(t)}catch{return t}}function br(t){return typeof t=="string"?t:JSON.stringify(t)}const Xi={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"},Zi=10;class vc{constructor(e){if(this.url=e,this.events=new vr.EventEmitter,this.isAvailable=!1,this.registering=!1,!Vi(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e}get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}off(e,r){this.events.off(e,r)}removeListener(e,r){this.events.removeListener(e,r)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(e,r){this.isAvailable||await this.register();try{const n=br(e),s=await(await Ji(this.url,Object.assign(Object.assign({},Xi),{body:n}))).json();this.onPayload({data:s})}catch(n){this.onError(e.id,n)}}async register(e=this.url){if(!Vi(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){const r=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=r||this.events.listenerCount("open")>=r)&&this.events.setMaxListeners(r+1),new Promise((n,i)=>{this.events.once("register_error",s=>{this.resetMaxListeners(),i(s)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return i(new Error("HTTP connection is missing or invalid"));n()})})}this.url=e,this.registering=!0;try{const r=br({id:1,jsonrpc:"2.0",method:"test",params:[]});await Ji(e,Object.assign(Object.assign({},Xi),{body:r})),this.onOpen()}catch(r){const n=this.parseError(r);throw this.events.emit("register_error",n),this.onClose(),n}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(e){if(typeof e.data>"u")return;const r=typeof e.data=="string"?In(e.data):e.data;this.events.emit("payload",r)}onError(e,r){const n=this.parseError(r),i=n.message||n.toString(),s=qr(e,i);this.events.emit("payload",s)}parseError(e,r=this.url){return ji(e,r,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>Zi&&this.events.setMaxListeners(Zi)}}var Ln={},Vr={},re={},Qi={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(u,h){var l=u>>>16&65535,p=u&65535,E=h>>>16&65535,T=h&65535;return p*T+(l*T+p*E<<16>>>0)|0}t.mul=Math.imul||e;function r(u,h){return u+h|0}t.add=r;function n(u,h){return u-h|0}t.sub=n;function i(u,h){return u<<h|u>>>32-h}t.rotl=i;function s(u,h){return u<<32-h|u>>>h}t.rotr=s;function c(u){return typeof u=="number"&&isFinite(u)&&Math.floor(u)===u}t.isInteger=Number.isInteger||c,t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(u){return t.isInteger(u)&&u>=-t.MAX_SAFE_INTEGER&&u<=t.MAX_SAFE_INTEGER}})(Qi),Object.defineProperty(re,"__esModule",{value:!0});var es=Qi;function yc(t,e){return e===void 0&&(e=0),(t[e+0]<<8|t[e+1])<<16>>16}re.readInt16BE=yc;function _c(t,e){return e===void 0&&(e=0),(t[e+0]<<8|t[e+1])>>>0}re.readUint16BE=_c;function bc(t,e){return e===void 0&&(e=0),(t[e+1]<<8|t[e])<<16>>16}re.readInt16LE=bc;function mc(t,e){return e===void 0&&(e=0),(t[e+1]<<8|t[e])>>>0}re.readUint16LE=mc;function ts(t,e,r){return e===void 0&&(e=new Uint8Array(2)),r===void 0&&(r=0),e[r+0]=t>>>8,e[r+1]=t>>>0,e}re.writeUint16BE=ts,re.writeInt16BE=ts;function rs(t,e,r){return e===void 0&&(e=new Uint8Array(2)),r===void 0&&(r=0),e[r+0]=t>>>0,e[r+1]=t>>>8,e}re.writeUint16LE=rs,re.writeInt16LE=rs;function Cn(t,e){return e===void 0&&(e=0),t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]}re.readInt32BE=Cn;function Tn(t,e){return e===void 0&&(e=0),(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}re.readUint32BE=Tn;function Nn(t,e){return e===void 0&&(e=0),t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]}re.readInt32LE=Nn;function Pn(t,e){return e===void 0&&(e=0),(t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e])>>>0}re.readUint32LE=Pn;function Gr(t,e,r){return e===void 0&&(e=new Uint8Array(4)),r===void 0&&(r=0),e[r+0]=t>>>24,e[r+1]=t>>>16,e[r+2]=t>>>8,e[r+3]=t>>>0,e}re.writeUint32BE=Gr,re.writeInt32BE=Gr;function Wr(t,e,r){return e===void 0&&(e=new Uint8Array(4)),r===void 0&&(r=0),e[r+0]=t>>>0,e[r+1]=t>>>8,e[r+2]=t>>>16,e[r+3]=t>>>24,e}re.writeUint32LE=Wr,re.writeInt32LE=Wr;function wc(t,e){e===void 0&&(e=0);var r=Cn(t,e),n=Cn(t,e+4);return r*4294967296+n-(n>>31)*4294967296}re.readInt64BE=wc;function Ec(t,e){e===void 0&&(e=0);var r=Tn(t,e),n=Tn(t,e+4);return r*4294967296+n}re.readUint64BE=Ec;function Dc(t,e){e===void 0&&(e=0);var r=Nn(t,e),n=Nn(t,e+4);return n*4294967296+r-(r>>31)*4294967296}re.readInt64LE=Dc;function xc(t,e){e===void 0&&(e=0);var r=Pn(t,e),n=Pn(t,e+4);return n*4294967296+r}re.readUint64LE=xc;function ns(t,e,r){return e===void 0&&(e=new Uint8Array(8)),r===void 0&&(r=0),Gr(t/4294967296>>>0,e,r),Gr(t>>>0,e,r+4),e}re.writeUint64BE=ns,re.writeInt64BE=ns;function is(t,e,r){return e===void 0&&(e=new Uint8Array(8)),r===void 0&&(r=0),Wr(t>>>0,e,r),Wr(t/4294967296>>>0,e,r+4),e}re.writeUint64LE=is,re.writeInt64LE=is;function Sc(t,e,r){if(r===void 0&&(r=0),t%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(t/8>e.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,s=t/8+r-1;s>=r;s--)n+=e[s]*i,i*=256;return n}re.readUintBE=Sc;function Oc(t,e,r){if(r===void 0&&(r=0),t%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(t/8>e.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,s=r;s<r+t/8;s++)n+=e[s]*i,i*=256;return n}re.readUintLE=Oc;function Ac(t,e,r,n){if(r===void 0&&(r=new Uint8Array(t/8)),n===void 0&&(n=0),t%8!==0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!es.isSafeInteger(e))throw new Error("writeUintBE value must be an integer");for(var i=1,s=t/8+n-1;s>=n;s--)r[s]=e/i&255,i*=256;return r}re.writeUintBE=Ac;function Ic(t,e,r,n){if(r===void 0&&(r=new Uint8Array(t/8)),n===void 0&&(n=0),t%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!es.isSafeInteger(e))throw new Error("writeUintLE value must be an integer");for(var i=1,s=n;s<n+t/8;s++)r[s]=e/i&255,i*=256;return r}re.writeUintLE=Ic;function Lc(t,e){e===void 0&&(e=0);var r=new DataView(t.buffer,t.byteOffset,t.byteLength);return r.getFloat32(e)}re.readFloat32BE=Lc;function Cc(t,e){e===void 0&&(e=0);var r=new DataView(t.buffer,t.byteOffset,t.byteLength);return r.getFloat32(e,!0)}re.readFloat32LE=Cc;function Tc(t,e){e===void 0&&(e=0);var r=new DataView(t.buffer,t.byteOffset,t.byteLength);return r.getFloat64(e)}re.readFloat64BE=Tc;function Nc(t,e){e===void 0&&(e=0);var r=new DataView(t.buffer,t.byteOffset,t.byteLength);return r.getFloat64(e,!0)}re.readFloat64LE=Nc;function Pc(t,e,r){e===void 0&&(e=new Uint8Array(4)),r===void 0&&(r=0);var n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.setFloat32(r,t),e}re.writeFloat32BE=Pc;function Rc(t,e,r){e===void 0&&(e=new Uint8Array(4)),r===void 0&&(r=0);var n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.setFloat32(r,t,!0),e}re.writeFloat32LE=Rc;function Fc(t,e,r){e===void 0&&(e=new Uint8Array(8)),r===void 0&&(r=0);var n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.setFloat64(r,t),e}re.writeFloat64BE=Fc;function Uc(t,e,r){e===void 0&&(e=new Uint8Array(8)),r===void 0&&(r=0);var n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.setFloat64(r,t,!0),e}re.writeFloat64LE=Uc;var pt={};Object.defineProperty(pt,"__esModule",{value:!0});function Mc(t){for(var e=0;e<t.length;e++)t[e]=0;return t}pt.wipe=Mc,Object.defineProperty(Vr,"__esModule",{value:!0});var st=re,Rn=pt,jc=20;function $c(t,e,r){for(var n=1634760805,i=857760878,s=2036477234,c=1797285236,u=r[3]<<24|r[2]<<16|r[1]<<8|r[0],h=r[7]<<24|r[6]<<16|r[5]<<8|r[4],l=r[11]<<24|r[10]<<16|r[9]<<8|r[8],p=r[15]<<24|r[14]<<16|r[13]<<8|r[12],E=r[19]<<24|r[18]<<16|r[17]<<8|r[16],T=r[23]<<24|r[22]<<16|r[21]<<8|r[20],w=r[27]<<24|r[26]<<16|r[25]<<8|r[24],b=r[31]<<24|r[30]<<16|r[29]<<8|r[28],F=e[3]<<24|e[2]<<16|e[1]<<8|e[0],y=e[7]<<24|e[6]<<16|e[5]<<8|e[4],O=e[11]<<24|e[10]<<16|e[9]<<8|e[8],N=e[15]<<24|e[14]<<16|e[13]<<8|e[12],L=n,S=i,C=s,m=c,o=u,g=h,B=l,q=p,V=E,J=T,X=w,f=b,_=F,M=y,K=O,R=N,P=0;P<jc;P+=2)L=L+o|0,_^=L,_=_>>>32-16|_<<16,V=V+_|0,o^=V,o=o>>>32-12|o<<12,S=S+g|0,M^=S,M=M>>>32-16|M<<16,J=J+M|0,g^=J,g=g>>>32-12|g<<12,C=C+B|0,K^=C,K=K>>>32-16|K<<16,X=X+K|0,B^=X,B=B>>>32-12|B<<12,m=m+q|0,R^=m,R=R>>>32-16|R<<16,f=f+R|0,q^=f,q=q>>>32-12|q<<12,C=C+B|0,K^=C,K=K>>>32-8|K<<8,X=X+K|0,B^=X,B=B>>>32-7|B<<7,m=m+q|0,R^=m,R=R>>>32-8|R<<8,f=f+R|0,q^=f,q=q>>>32-7|q<<7,S=S+g|0,M^=S,M=M>>>32-8|M<<8,J=J+M|0,g^=J,g=g>>>32-7|g<<7,L=L+o|0,_^=L,_=_>>>32-8|_<<8,V=V+_|0,o^=V,o=o>>>32-7|o<<7,L=L+g|0,R^=L,R=R>>>32-16|R<<16,X=X+R|0,g^=X,g=g>>>32-12|g<<12,S=S+B|0,_^=S,_=_>>>32-16|_<<16,f=f+_|0,B^=f,B=B>>>32-12|B<<12,C=C+q|0,M^=C,M=M>>>32-16|M<<16,V=V+M|0,q^=V,q=q>>>32-12|q<<12,m=m+o|0,K^=m,K=K>>>32-16|K<<16,J=J+K|0,o^=J,o=o>>>32-12|o<<12,C=C+q|0,M^=C,M=M>>>32-8|M<<8,V=V+M|0,q^=V,q=q>>>32-7|q<<7,m=m+o|0,K^=m,K=K>>>32-8|K<<8,J=J+K|0,o^=J,o=o>>>32-7|o<<7,S=S+B|0,_^=S,_=_>>>32-8|_<<8,f=f+_|0,B^=f,B=B>>>32-7|B<<7,L=L+g|0,R^=L,R=R>>>32-8|R<<8,X=X+R|0,g^=X,g=g>>>32-7|g<<7;st.writeUint32LE(L+n|0,t,0),st.writeUint32LE(S+i|0,t,4),st.writeUint32LE(C+s|0,t,8),st.writeUint32LE(m+c|0,t,12),st.writeUint32LE(o+u|0,t,16),st.writeUint32LE(g+h|0,t,20),st.writeUint32LE(B+l|0,t,24),st.writeUint32LE(q+p|0,t,28),st.writeUint32LE(V+E|0,t,32),st.writeUint32LE(J+T|0,t,36),st.writeUint32LE(X+w|0,t,40),st.writeUint32LE(f+b|0,t,44),st.writeUint32LE(_+F|0,t,48),st.writeUint32LE(M+y|0,t,52),st.writeUint32LE(K+O|0,t,56),st.writeUint32LE(R+N|0,t,60)}function ss(t,e,r,n,i){if(i===void 0&&(i=0),t.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(n.length<r.length)throw new Error("ChaCha: destination is shorter than source");var s,c;if(i===0){if(e.length!==8&&e.length!==12)throw new Error("ChaCha nonce must be 8 or 12 bytes");s=new Uint8Array(16),c=s.length-e.length,s.set(e,c)}else{if(e.length!==16)throw new Error("ChaCha nonce with counter must be 16 bytes");s=e,c=i}for(var u=new Uint8Array(64),h=0;h<r.length;h+=64){$c(u,s,t);for(var l=h;l<h+64&&l<r.length;l++)n[l]=r[l]^u[l-h];zc(s,0,c)}return Rn.wipe(u),i===0&&Rn.wipe(s),n}Vr.streamXOR=ss;function Bc(t,e,r,n){return n===void 0&&(n=0),Rn.wipe(r),ss(t,e,r,r,n)}Vr.stream=Bc;function zc(t,e,r){for(var n=1;r--;)n=n+(t[e]&255)|0,t[e]=n&255,n>>>=8,e++;if(n>0)throw new Error("ChaCha: counter overflow")}var os={},zt={};Object.defineProperty(zt,"__esModule",{value:!0});function Hc(t,e,r){return~(t-1)&e|t-1&r}zt.select=Hc;function Kc(t,e){return(t|0)-(e|0)-1>>>31&1}zt.lessOrEqual=Kc;function as(t,e){if(t.length!==e.length)return 0;for(var r=0,n=0;n<t.length;n++)r|=t[n]^e[n];return 1&r-1>>>8}zt.compare=as;function qc(t,e){return t.length===0||e.length===0?!1:as(t,e)!==0}zt.equal=qc,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=zt,r=pt;t.DIGEST_LENGTH=16;var n=function(){function c(u){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var h=u[0]|u[1]<<8;this._r[0]=h&8191;var l=u[2]|u[3]<<8;this._r[1]=(h>>>13|l<<3)&8191;var p=u[4]|u[5]<<8;this._r[2]=(l>>>10|p<<6)&7939;var E=u[6]|u[7]<<8;this._r[3]=(p>>>7|E<<9)&8191;var T=u[8]|u[9]<<8;this._r[4]=(E>>>4|T<<12)&255,this._r[5]=T>>>1&8190;var w=u[10]|u[11]<<8;this._r[6]=(T>>>14|w<<2)&8191;var b=u[12]|u[13]<<8;this._r[7]=(w>>>11|b<<5)&8065;var F=u[14]|u[15]<<8;this._r[8]=(b>>>8|F<<8)&8191,this._r[9]=F>>>5&127,this._pad[0]=u[16]|u[17]<<8,this._pad[1]=u[18]|u[19]<<8,this._pad[2]=u[20]|u[21]<<8,this._pad[3]=u[22]|u[23]<<8,this._pad[4]=u[24]|u[25]<<8,this._pad[5]=u[26]|u[27]<<8,this._pad[6]=u[28]|u[29]<<8,this._pad[7]=u[30]|u[31]<<8}return c.prototype._blocks=function(u,h,l){for(var p=this._fin?0:2048,E=this._h[0],T=this._h[1],w=this._h[2],b=this._h[3],F=this._h[4],y=this._h[5],O=this._h[6],N=this._h[7],L=this._h[8],S=this._h[9],C=this._r[0],m=this._r[1],o=this._r[2],g=this._r[3],B=this._r[4],q=this._r[5],V=this._r[6],J=this._r[7],X=this._r[8],f=this._r[9];l>=16;){var _=u[h+0]|u[h+1]<<8;E+=_&8191;var M=u[h+2]|u[h+3]<<8;T+=(_>>>13|M<<3)&8191;var K=u[h+4]|u[h+5]<<8;w+=(M>>>10|K<<6)&8191;var R=u[h+6]|u[h+7]<<8;b+=(K>>>7|R<<9)&8191;var P=u[h+8]|u[h+9]<<8;F+=(R>>>4|P<<12)&8191,y+=P>>>1&8191;var j=u[h+10]|u[h+11]<<8;O+=(P>>>14|j<<2)&8191;var $=u[h+12]|u[h+13]<<8;N+=(j>>>11|$<<5)&8191;var Q=u[h+14]|u[h+15]<<8;L+=($>>>8|Q<<8)&8191,S+=Q>>>5|p;var H=0,ee=H;ee+=E*C,ee+=T*(5*f),ee+=w*(5*X),ee+=b*(5*J),ee+=F*(5*V),H=ee>>>13,ee&=8191,ee+=y*(5*q),ee+=O*(5*B),ee+=N*(5*g),ee+=L*(5*o),ee+=S*(5*m),H+=ee>>>13,ee&=8191;var k=H;k+=E*m,k+=T*C,k+=w*(5*f),k+=b*(5*X),k+=F*(5*J),H=k>>>13,k&=8191,k+=y*(5*V),k+=O*(5*q),k+=N*(5*B),k+=L*(5*g),k+=S*(5*o),H+=k>>>13,k&=8191;var ae=H;ae+=E*o,ae+=T*m,ae+=w*C,ae+=b*(5*f),ae+=F*(5*X),H=ae>>>13,ae&=8191,ae+=y*(5*J),ae+=O*(5*V),ae+=N*(5*q),ae+=L*(5*B),ae+=S*(5*g),H+=ae>>>13,ae&=8191;var I=H;I+=E*g,I+=T*o,I+=w*m,I+=b*C,I+=F*(5*f),H=I>>>13,I&=8191,I+=y*(5*X),I+=O*(5*J),I+=N*(5*V),I+=L*(5*q),I+=S*(5*B),H+=I>>>13,I&=8191;var A=H;A+=E*B,A+=T*g,A+=w*o,A+=b*m,A+=F*C,H=A>>>13,A&=8191,A+=y*(5*f),A+=O*(5*X),A+=N*(5*J),A+=L*(5*V),A+=S*(5*q),H+=A>>>13,A&=8191;var D=H;D+=E*q,D+=T*B,D+=w*g,D+=b*o,D+=F*m,H=D>>>13,D&=8191,D+=y*C,D+=O*(5*f),D+=N*(5*X),D+=L*(5*J),D+=S*(5*V),H+=D>>>13,D&=8191;var a=H;a+=E*V,a+=T*q,a+=w*B,a+=b*g,a+=F*o,H=a>>>13,a&=8191,a+=y*m,a+=O*C,a+=N*(5*f),a+=L*(5*X),a+=S*(5*J),H+=a>>>13,a&=8191;var v=H;v+=E*J,v+=T*V,v+=w*q,v+=b*B,v+=F*g,H=v>>>13,v&=8191,v+=y*o,v+=O*m,v+=N*C,v+=L*(5*f),v+=S*(5*X),H+=v>>>13,v&=8191;var z=H;z+=E*X,z+=T*J,z+=w*V,z+=b*q,z+=F*B,H=z>>>13,z&=8191,z+=y*g,z+=O*o,z+=N*m,z+=L*C,z+=S*(5*f),H+=z>>>13,z&=8191;var Y=H;Y+=E*f,Y+=T*X,Y+=w*J,Y+=b*V,Y+=F*q,H=Y>>>13,Y&=8191,Y+=y*B,Y+=O*g,Y+=N*o,Y+=L*m,Y+=S*C,H+=Y>>>13,Y&=8191,H=(H<<2)+H|0,H=H+ee|0,ee=H&8191,H=H>>>13,k+=H,E=ee,T=k,w=ae,b=I,F=A,y=D,O=a,N=v,L=z,S=Y,h+=16,l-=16}this._h[0]=E,this._h[1]=T,this._h[2]=w,this._h[3]=b,this._h[4]=F,this._h[5]=y,this._h[6]=O,this._h[7]=N,this._h[8]=L,this._h[9]=S},c.prototype.finish=function(u,h){h===void 0&&(h=0);var l=new Uint16Array(10),p,E,T,w;if(this._leftover){for(w=this._leftover,this._buffer[w++]=1;w<16;w++)this._buffer[w]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(p=this._h[1]>>>13,this._h[1]&=8191,w=2;w<10;w++)this._h[w]+=p,p=this._h[w]>>>13,this._h[w]&=8191;for(this._h[0]+=p*5,p=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=p,p=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=p,l[0]=this._h[0]+5,p=l[0]>>>13,l[0]&=8191,w=1;w<10;w++)l[w]=this._h[w]+p,p=l[w]>>>13,l[w]&=8191;for(l[9]-=1<<13,E=(p^1)-1,w=0;w<10;w++)l[w]&=E;for(E=~E,w=0;w<10;w++)this._h[w]=this._h[w]&E|l[w];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,T=this._h[0]+this._pad[0],this._h[0]=T&65535,w=1;w<8;w++)T=(this._h[w]+this._pad[w]|0)+(T>>>16)|0,this._h[w]=T&65535;return u[h+0]=this._h[0]>>>0,u[h+1]=this._h[0]>>>8,u[h+2]=this._h[1]>>>0,u[h+3]=this._h[1]>>>8,u[h+4]=this._h[2]>>>0,u[h+5]=this._h[2]>>>8,u[h+6]=this._h[3]>>>0,u[h+7]=this._h[3]>>>8,u[h+8]=this._h[4]>>>0,u[h+9]=this._h[4]>>>8,u[h+10]=this._h[5]>>>0,u[h+11]=this._h[5]>>>8,u[h+12]=this._h[6]>>>0,u[h+13]=this._h[6]>>>8,u[h+14]=this._h[7]>>>0,u[h+15]=this._h[7]>>>8,this._finished=!0,this},c.prototype.update=function(u){var h=0,l=u.length,p;if(this._leftover){p=16-this._leftover,p>l&&(p=l);for(var E=0;E<p;E++)this._buffer[this._leftover+E]=u[h+E];if(l-=p,h+=p,this._leftover+=p,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(l>=16&&(p=l-l%16,this._blocks(u,h,p),h+=p,l-=p),l){for(var E=0;E<l;E++)this._buffer[this._leftover+E]=u[h+E];this._leftover+=l}return this},c.prototype.digest=function(){if(this._finished)throw new Error("Poly1305 was finished");var u=new Uint8Array(16);return this.finish(u),u},c.prototype.clean=function(){return r.wipe(this._buffer),r.wipe(this._r),r.wipe(this._h),r.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},c}();t.Poly1305=n;function i(c,u){var h=new n(c);h.update(u);var l=h.digest();return h.clean(),l}t.oneTimeAuth=i;function s(c,u){return c.length!==t.DIGEST_LENGTH||u.length!==t.DIGEST_LENGTH?!1:e.equal(c,u)}t.equal=s}(os),function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Vr,r=os,n=pt,i=re,s=zt;t.KEY_LENGTH=32,t.NONCE_LENGTH=12,t.TAG_LENGTH=16;var c=new Uint8Array(16),u=function(){function h(l){if(this.nonceLength=t.NONCE_LENGTH,this.tagLength=t.TAG_LENGTH,l.length!==t.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(l)}return h.prototype.seal=function(l,p,E,T){if(l.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var w=new Uint8Array(16);w.set(l,w.length-l.length);var b=new Uint8Array(32);e.stream(this._key,w,b,4);var F=p.length+this.tagLength,y;if(T){if(T.length!==F)throw new Error("ChaCha20Poly1305: incorrect destination length");y=T}else y=new Uint8Array(F);return e.streamXOR(this._key,w,p,y,4),this._authenticate(y.subarray(y.length-this.tagLength,y.length),b,y.subarray(0,y.length-this.tagLength),E),n.wipe(w),y},h.prototype.open=function(l,p,E,T){if(l.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(p.length<this.tagLength)return null;var w=new Uint8Array(16);w.set(l,w.length-l.length);var b=new Uint8Array(32);e.stream(this._key,w,b,4);var F=new Uint8Array(this.tagLength);if(this._authenticate(F,b,p.subarray(0,p.length-this.tagLength),E),!s.equal(F,p.subarray(p.length-this.tagLength,p.length)))return null;var y=p.length-this.tagLength,O;if(T){if(T.length!==y)throw new Error("ChaCha20Poly1305: incorrect destination length");O=T}else O=new Uint8Array(y);return e.streamXOR(this._key,w,p.subarray(0,p.length-this.tagLength),O,4),n.wipe(w),O},h.prototype.clean=function(){return n.wipe(this._key),this},h.prototype._authenticate=function(l,p,E,T){var w=new r.Poly1305(p);T&&(w.update(T),T.length%16>0&&w.update(c.subarray(T.length%16))),w.update(E),E.length%16>0&&w.update(c.subarray(E.length%16));var b=new Uint8Array(8);T&&i.writeUint64LE(T.length,b),w.update(b),i.writeUint64LE(E.length,b),w.update(b);for(var F=w.digest(),y=0;y<F.length;y++)l[y]=F[y];w.clean(),n.wipe(F),n.wipe(b)},h}();t.ChaCha20Poly1305=u}(Ln);var cs={},mr={},Fn={};Object.defineProperty(Fn,"__esModule",{value:!0});function Vc(t){return typeof t.saveState<"u"&&typeof t.restoreState<"u"&&typeof t.cleanSavedState<"u"}Fn.isSerializableHash=Vc,Object.defineProperty(mr,"__esModule",{value:!0});var Ot=Fn,Gc=zt,Wc=pt,us=function(){function t(e,r){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var n=new Uint8Array(this.blockSize);r.length>this.blockSize?this._inner.update(r).finish(n).clean():n.set(r);for(var i=0;i<n.length;i++)n[i]^=54;this._inner.update(n);for(var i=0;i<n.length;i++)n[i]^=106;this._outer.update(n),Ot.isSerializableHash(this._inner)&&Ot.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),Wc.wipe(n)}return t.prototype.reset=function(){if(!Ot.isSerializableHash(this._inner)||!Ot.isSerializableHash(this._outer))throw new Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},t.prototype.clean=function(){Ot.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),Ot.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},t.prototype.update=function(e){return this._inner.update(e),this},t.prototype.finish=function(e){return this._finished?(this._outer.finish(e),this):(this._inner.finish(e),this._outer.update(e.subarray(0,this.digestLength)).finish(e),this._finished=!0,this)},t.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},t.prototype.saveState=function(){if(!Ot.isSerializableHash(this._inner))throw new Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},t.prototype.restoreState=function(e){if(!Ot.isSerializableHash(this._inner)||!Ot.isSerializableHash(this._outer))throw new Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(e),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},t.prototype.cleanSavedState=function(e){if(!Ot.isSerializableHash(this._inner))throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(e)},t}();mr.HMAC=us;function kc(t,e,r){var n=new us(t,e);n.update(r);var i=n.digest();return n.clean(),i}mr.hmac=kc,mr.equal=Gc.equal,Object.defineProperty(cs,"__esModule",{value:!0});var hs=mr,fs=pt,Yc=function(){function t(e,r,n,i){n===void 0&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=i;var s=hs.hmac(this._hash,n,r);this._hmac=new hs.HMAC(e,s),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return t.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(e===0)throw new Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},t.prototype.expand=function(e){for(var r=new Uint8Array(e),n=0;n<r.length;n++)this._bufpos===this._buffer.length&&this._fillBuffer(),r[n]=this._buffer[this._bufpos++];return r},t.prototype.clean=function(){this._hmac.clean(),fs.wipe(this._buffer),fs.wipe(this._counter),this._bufpos=0},t}(),Jc=cs.HKDF=Yc,nr={},Un={},Mn={};Object.defineProperty(Mn,"__esModule",{value:!0});var ls=65536,Xc=function(){function t(){this.isAvailable=!1,this.isInstantiated=!1;var e=typeof self<"u"?self.crypto||self.msCrypto:null;e&&e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}return t.prototype.randomBytes=function(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");for(var r=new Uint8Array(e),n=0;n<r.length;n+=ls)this._crypto.getRandomValues(r.subarray(n,n+Math.min(r.length-n,ls)));return r},t}();Mn.BrowserRandomSource=Xc;function Zc(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var jn={},Qc={},eu=Object.freeze({__proto__:null,default:Qc}),tu=wn(eu);Object.defineProperty(jn,"__esModule",{value:!0});var ru=pt,nu=function(){function t(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof Zc<"u"){var e=tu;e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}return t.prototype.randomBytes=function(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");var r=this._crypto.randomBytes(e);if(r.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");for(var n=new Uint8Array(e),i=0;i<n.length;i++)n[i]=r[i];return ru.wipe(r),n},t}();jn.NodeRandomSource=nu,Object.defineProperty(Un,"__esModule",{value:!0});var iu=Mn,su=jn,ou=function(){function t(){if(this.isAvailable=!1,this.name="",this._source=new iu.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new su.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}return t.prototype.randomBytes=function(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)},t}();Un.SystemRandomSource=ou,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Un,r=re,n=pt;t.defaultRandomSource=new e.SystemRandomSource;function i(l,p){return p===void 0&&(p=t.defaultRandomSource),p.randomBytes(l)}t.randomBytes=i;function s(l){l===void 0&&(l=t.defaultRandomSource);var p=i(4,l),E=r.readUint32LE(p);return n.wipe(p),E}t.randomUint32=s;var c="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function u(l,p,E){if(p===void 0&&(p=c),E===void 0&&(E=t.defaultRandomSource),p.length<2)throw new Error("randomString charset is too short");if(p.length>256)throw new Error("randomString charset is too long");for(var T="",w=p.length,b=256-256%w;l>0;){for(var F=i(Math.ceil(l*256/b),E),y=0;y<F.length&&l>0;y++){var O=F[y];O<b&&(T+=p.charAt(O%w),l--)}n.wipe(F)}return T}t.randomString=u;function h(l,p,E){p===void 0&&(p=c),E===void 0&&(E=t.defaultRandomSource);var T=Math.ceil(l/(Math.log(p.length)/Math.LN2));return u(T,p,E)}t.randomStringForEntropy=h}(nr);var kr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=re,r=pt;t.DIGEST_LENGTH=32,t.BLOCK_SIZE=64;var n=function(){function u(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return u.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},u.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},u.prototype.clean=function(){r.wipe(this._buffer),r.wipe(this._temp),this.reset()},u.prototype.update=function(h,l){if(l===void 0&&(l=h.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var p=0;if(this._bytesHashed+=l,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&l>0;)this._buffer[this._bufferLength++]=h[p++],l--;this._bufferLength===this.blockSize&&(s(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(l>=this.blockSize&&(p=s(this._temp,this._state,h,p,l),l%=this.blockSize);l>0;)this._buffer[this._bufferLength++]=h[p++],l--;return this},u.prototype.finish=function(h){if(!this._finished){var l=this._bytesHashed,p=this._bufferLength,E=l/536870912|0,T=l<<3,w=l%64<56?64:128;this._buffer[p]=128;for(var b=p+1;b<w-8;b++)this._buffer[b]=0;e.writeUint32BE(E,this._buffer,w-8),e.writeUint32BE(T,this._buffer,w-4),s(this._temp,this._state,this._buffer,0,w),this._finished=!0}for(var b=0;b<this.digestLength/4;b++)e.writeUint32BE(this._state[b],h,b*4);return this},u.prototype.digest=function(){var h=new Uint8Array(this.digestLength);return this.finish(h),h},u.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},u.prototype.restoreState=function(h){return this._state.set(h.state),this._bufferLength=h.bufferLength,h.buffer&&this._buffer.set(h.buffer),this._bytesHashed=h.bytesHashed,this._finished=!1,this},u.prototype.cleanSavedState=function(h){r.wipe(h.state),h.buffer&&r.wipe(h.buffer),h.bufferLength=0,h.bytesHashed=0},u}();t.SHA256=n;var i=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function s(u,h,l,p,E){for(;E>=64;){for(var T=h[0],w=h[1],b=h[2],F=h[3],y=h[4],O=h[5],N=h[6],L=h[7],S=0;S<16;S++){var C=p+S*4;u[S]=e.readUint32BE(l,C)}for(var S=16;S<64;S++){var m=u[S-2],o=(m>>>17|m<<32-17)^(m>>>19|m<<32-19)^m>>>10;m=u[S-15];var g=(m>>>7|m<<32-7)^(m>>>18|m<<32-18)^m>>>3;u[S]=(o+u[S-7]|0)+(g+u[S-16]|0)}for(var S=0;S<64;S++){var o=(((y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&O^~y&N)|0)+(L+(i[S]+u[S]|0)|0)|0,g=((T>>>2|T<<32-2)^(T>>>13|T<<32-13)^(T>>>22|T<<32-22))+(T&w^T&b^w&b)|0;L=N,N=O,O=y,y=F+o|0,F=b,b=w,w=T,T=o+g|0}h[0]+=T,h[1]+=w,h[2]+=b,h[3]+=F,h[4]+=y,h[5]+=O,h[6]+=N,h[7]+=L,p+=64,E-=64}return p}function c(u){var h=new n;h.update(u);var l=h.digest();return h.clean(),l}t.hash=c})(kr);var $n={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=nr,r=pt;t.PUBLIC_KEY_LENGTH=32,t.SECRET_KEY_LENGTH=32,t.SHARED_KEY_LENGTH=32;function n(S){var C=new Float64Array(16);if(S)for(var m=0;m<S.length;m++)C[m]=S[m];return C}var i=new Uint8Array(32);i[0]=9;var s=n([56129,1]);function c(S){for(var C=1,m=0;m<16;m++){var o=S[m]+C+65535;C=Math.floor(o/65536),S[m]=o-C*65536}S[0]+=C-1+37*(C-1)}function u(S,C,m){for(var o=~(m-1),g=0;g<16;g++){var B=o&(S[g]^C[g]);S[g]^=B,C[g]^=B}}function h(S,C){for(var m=n(),o=n(),g=0;g<16;g++)o[g]=C[g];c(o),c(o),c(o);for(var B=0;B<2;B++){m[0]=o[0]-65517;for(var g=1;g<15;g++)m[g]=o[g]-65535-(m[g-1]>>16&1),m[g-1]&=65535;m[15]=o[15]-32767-(m[14]>>16&1);var q=m[15]>>16&1;m[14]&=65535,u(o,m,1-q)}for(var g=0;g<16;g++)S[2*g]=o[g]&255,S[2*g+1]=o[g]>>8}function l(S,C){for(var m=0;m<16;m++)S[m]=C[2*m]+(C[2*m+1]<<8);S[15]&=32767}function p(S,C,m){for(var o=0;o<16;o++)S[o]=C[o]+m[o]}function E(S,C,m){for(var o=0;o<16;o++)S[o]=C[o]-m[o]}function T(S,C,m){var o,g,B=0,q=0,V=0,J=0,X=0,f=0,_=0,M=0,K=0,R=0,P=0,j=0,$=0,Q=0,H=0,ee=0,k=0,ae=0,I=0,A=0,D=0,a=0,v=0,z=0,Y=0,fe=0,ye=0,de=0,me=0,Ue=0,Te=0,ve=m[0],pe=m[1],le=m[2],ue=m[3],ce=m[4],oe=m[5],se=m[6],te=m[7],he=m[8],ge=m[9],ne=m[10],_e=m[11],be=m[12],Ee=m[13],De=m[14],we=m[15];o=C[0],B+=o*ve,q+=o*pe,V+=o*le,J+=o*ue,X+=o*ce,f+=o*oe,_+=o*se,M+=o*te,K+=o*he,R+=o*ge,P+=o*ne,j+=o*_e,$+=o*be,Q+=o*Ee,H+=o*De,ee+=o*we,o=C[1],q+=o*ve,V+=o*pe,J+=o*le,X+=o*ue,f+=o*ce,_+=o*oe,M+=o*se,K+=o*te,R+=o*he,P+=o*ge,j+=o*ne,$+=o*_e,Q+=o*be,H+=o*Ee,ee+=o*De,k+=o*we,o=C[2],V+=o*ve,J+=o*pe,X+=o*le,f+=o*ue,_+=o*ce,M+=o*oe,K+=o*se,R+=o*te,P+=o*he,j+=o*ge,$+=o*ne,Q+=o*_e,H+=o*be,ee+=o*Ee,k+=o*De,ae+=o*we,o=C[3],J+=o*ve,X+=o*pe,f+=o*le,_+=o*ue,M+=o*ce,K+=o*oe,R+=o*se,P+=o*te,j+=o*he,$+=o*ge,Q+=o*ne,H+=o*_e,ee+=o*be,k+=o*Ee,ae+=o*De,I+=o*we,o=C[4],X+=o*ve,f+=o*pe,_+=o*le,M+=o*ue,K+=o*ce,R+=o*oe,P+=o*se,j+=o*te,$+=o*he,Q+=o*ge,H+=o*ne,ee+=o*_e,k+=o*be,ae+=o*Ee,I+=o*De,A+=o*we,o=C[5],f+=o*ve,_+=o*pe,M+=o*le,K+=o*ue,R+=o*ce,P+=o*oe,j+=o*se,$+=o*te,Q+=o*he,H+=o*ge,ee+=o*ne,k+=o*_e,ae+=o*be,I+=o*Ee,A+=o*De,D+=o*we,o=C[6],_+=o*ve,M+=o*pe,K+=o*le,R+=o*ue,P+=o*ce,j+=o*oe,$+=o*se,Q+=o*te,H+=o*he,ee+=o*ge,k+=o*ne,ae+=o*_e,I+=o*be,A+=o*Ee,D+=o*De,a+=o*we,o=C[7],M+=o*ve,K+=o*pe,R+=o*le,P+=o*ue,j+=o*ce,$+=o*oe,Q+=o*se,H+=o*te,ee+=o*he,k+=o*ge,ae+=o*ne,I+=o*_e,A+=o*be,D+=o*Ee,a+=o*De,v+=o*we,o=C[8],K+=o*ve,R+=o*pe,P+=o*le,j+=o*ue,$+=o*ce,Q+=o*oe,H+=o*se,ee+=o*te,k+=o*he,ae+=o*ge,I+=o*ne,A+=o*_e,D+=o*be,a+=o*Ee,v+=o*De,z+=o*we,o=C[9],R+=o*ve,P+=o*pe,j+=o*le,$+=o*ue,Q+=o*ce,H+=o*oe,ee+=o*se,k+=o*te,ae+=o*he,I+=o*ge,A+=o*ne,D+=o*_e,a+=o*be,v+=o*Ee,z+=o*De,Y+=o*we,o=C[10],P+=o*ve,j+=o*pe,$+=o*le,Q+=o*ue,H+=o*ce,ee+=o*oe,k+=o*se,ae+=o*te,I+=o*he,A+=o*ge,D+=o*ne,a+=o*_e,v+=o*be,z+=o*Ee,Y+=o*De,fe+=o*we,o=C[11],j+=o*ve,$+=o*pe,Q+=o*le,H+=o*ue,ee+=o*ce,k+=o*oe,ae+=o*se,I+=o*te,A+=o*he,D+=o*ge,a+=o*ne,v+=o*_e,z+=o*be,Y+=o*Ee,fe+=o*De,ye+=o*we,o=C[12],$+=o*ve,Q+=o*pe,H+=o*le,ee+=o*ue,k+=o*ce,ae+=o*oe,I+=o*se,A+=o*te,D+=o*he,a+=o*ge,v+=o*ne,z+=o*_e,Y+=o*be,fe+=o*Ee,ye+=o*De,de+=o*we,o=C[13],Q+=o*ve,H+=o*pe,ee+=o*le,k+=o*ue,ae+=o*ce,I+=o*oe,A+=o*se,D+=o*te,a+=o*he,v+=o*ge,z+=o*ne,Y+=o*_e,fe+=o*be,ye+=o*Ee,de+=o*De,me+=o*we,o=C[14],H+=o*ve,ee+=o*pe,k+=o*le,ae+=o*ue,I+=o*ce,A+=o*oe,D+=o*se,a+=o*te,v+=o*he,z+=o*ge,Y+=o*ne,fe+=o*_e,ye+=o*be,de+=o*Ee,me+=o*De,Ue+=o*we,o=C[15],ee+=o*ve,k+=o*pe,ae+=o*le,I+=o*ue,A+=o*ce,D+=o*oe,a+=o*se,v+=o*te,z+=o*he,Y+=o*ge,fe+=o*ne,ye+=o*_e,de+=o*be,me+=o*Ee,Ue+=o*De,Te+=o*we,B+=38*k,q+=38*ae,V+=38*I,J+=38*A,X+=38*D,f+=38*a,_+=38*v,M+=38*z,K+=38*Y,R+=38*fe,P+=38*ye,j+=38*de,$+=38*me,Q+=38*Ue,H+=38*Te,g=1,o=B+g+65535,g=Math.floor(o/65536),B=o-g*65536,o=q+g+65535,g=Math.floor(o/65536),q=o-g*65536,o=V+g+65535,g=Math.floor(o/65536),V=o-g*65536,o=J+g+65535,g=Math.floor(o/65536),J=o-g*65536,o=X+g+65535,g=Math.floor(o/65536),X=o-g*65536,o=f+g+65535,g=Math.floor(o/65536),f=o-g*65536,o=_+g+65535,g=Math.floor(o/65536),_=o-g*65536,o=M+g+65535,g=Math.floor(o/65536),M=o-g*65536,o=K+g+65535,g=Math.floor(o/65536),K=o-g*65536,o=R+g+65535,g=Math.floor(o/65536),R=o-g*65536,o=P+g+65535,g=Math.floor(o/65536),P=o-g*65536,o=j+g+65535,g=Math.floor(o/65536),j=o-g*65536,o=$+g+65535,g=Math.floor(o/65536),$=o-g*65536,o=Q+g+65535,g=Math.floor(o/65536),Q=o-g*65536,o=H+g+65535,g=Math.floor(o/65536),H=o-g*65536,o=ee+g+65535,g=Math.floor(o/65536),ee=o-g*65536,B+=g-1+37*(g-1),g=1,o=B+g+65535,g=Math.floor(o/65536),B=o-g*65536,o=q+g+65535,g=Math.floor(o/65536),q=o-g*65536,o=V+g+65535,g=Math.floor(o/65536),V=o-g*65536,o=J+g+65535,g=Math.floor(o/65536),J=o-g*65536,o=X+g+65535,g=Math.floor(o/65536),X=o-g*65536,o=f+g+65535,g=Math.floor(o/65536),f=o-g*65536,o=_+g+65535,g=Math.floor(o/65536),_=o-g*65536,o=M+g+65535,g=Math.floor(o/65536),M=o-g*65536,o=K+g+65535,g=Math.floor(o/65536),K=o-g*65536,o=R+g+65535,g=Math.floor(o/65536),R=o-g*65536,o=P+g+65535,g=Math.floor(o/65536),P=o-g*65536,o=j+g+65535,g=Math.floor(o/65536),j=o-g*65536,o=$+g+65535,g=Math.floor(o/65536),$=o-g*65536,o=Q+g+65535,g=Math.floor(o/65536),Q=o-g*65536,o=H+g+65535,g=Math.floor(o/65536),H=o-g*65536,o=ee+g+65535,g=Math.floor(o/65536),ee=o-g*65536,B+=g-1+37*(g-1),S[0]=B,S[1]=q,S[2]=V,S[3]=J,S[4]=X,S[5]=f,S[6]=_,S[7]=M,S[8]=K,S[9]=R,S[10]=P,S[11]=j,S[12]=$,S[13]=Q,S[14]=H,S[15]=ee}function w(S,C){T(S,C,C)}function b(S,C){for(var m=n(),o=0;o<16;o++)m[o]=C[o];for(var o=253;o>=0;o--)w(m,m),o!==2&&o!==4&&T(m,m,C);for(var o=0;o<16;o++)S[o]=m[o]}function F(S,C){for(var m=new Uint8Array(32),o=new Float64Array(80),g=n(),B=n(),q=n(),V=n(),J=n(),X=n(),f=0;f<31;f++)m[f]=S[f];m[31]=S[31]&127|64,m[0]&=248,l(o,C);for(var f=0;f<16;f++)B[f]=o[f];g[0]=V[0]=1;for(var f=254;f>=0;--f){var _=m[f>>>3]>>>(f&7)&1;u(g,B,_),u(q,V,_),p(J,g,q),E(g,g,q),p(q,B,V),E(B,B,V),w(V,J),w(X,g),T(g,q,g),T(q,B,J),p(J,g,q),E(g,g,q),w(B,g),E(q,V,X),T(g,q,s),p(g,g,V),T(q,q,g),T(g,V,X),T(V,B,o),w(B,J),u(g,B,_),u(q,V,_)}for(var f=0;f<16;f++)o[f+16]=g[f],o[f+32]=q[f],o[f+48]=B[f],o[f+64]=V[f];var M=o.subarray(32),K=o.subarray(16);b(M,M),T(K,K,M);var R=new Uint8Array(32);return h(R,K),R}t.scalarMult=F;function y(S){return F(S,i)}t.scalarMultBase=y;function O(S){if(S.length!==t.SECRET_KEY_LENGTH)throw new Error("x25519: seed must be "+t.SECRET_KEY_LENGTH+" bytes");var C=new Uint8Array(S),m=y(C);return{publicKey:m,secretKey:C}}t.generateKeyPairFromSeed=O;function N(S){var C=e.randomBytes(32,S),m=O(C);return r.wipe(C),m}t.generateKeyPair=N;function L(S,C,m){if(m===void 0&&(m=!1),S.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(C.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");var o=F(S,C);if(m){for(var g=0,B=0;B<o.length;B++)g|=o[B];if(g===0)throw new Error("X25519: invalid shared key")}return o}t.sharedKey=L})($n);function Bn(t,e){e||(e=t.reduce((i,s)=>i+s.length,0));const r=new Uint8Array(e);let n=0;for(const i of t)r.set(i,n),n+=i.length;return r}function au(t,e){if(t.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<t.length;i++){var s=t.charAt(i),c=s.charCodeAt(0);if(r[c]!==255)throw new TypeError(s+" is ambiguous");r[c]=i}var u=t.length,h=t.charAt(0),l=Math.log(u)/Math.log(256),p=Math.log(256)/Math.log(u);function E(b){if(b instanceof Uint8Array||(ArrayBuffer.isView(b)?b=new Uint8Array(b.buffer,b.byteOffset,b.byteLength):Array.isArray(b)&&(b=Uint8Array.from(b))),!(b instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(b.length===0)return"";for(var F=0,y=0,O=0,N=b.length;O!==N&&b[O]===0;)O++,F++;for(var L=(N-O)*p+1>>>0,S=new Uint8Array(L);O!==N;){for(var C=b[O],m=0,o=L-1;(C!==0||m<y)&&o!==-1;o--,m++)C+=256*S[o]>>>0,S[o]=C%u>>>0,C=C/u>>>0;if(C!==0)throw new Error("Non-zero carry");y=m,O++}for(var g=L-y;g!==L&&S[g]===0;)g++;for(var B=h.repeat(F);g<L;++g)B+=t.charAt(S[g]);return B}function T(b){if(typeof b!="string")throw new TypeError("Expected String");if(b.length===0)return new Uint8Array;var F=0;if(b[F]!==" "){for(var y=0,O=0;b[F]===h;)y++,F++;for(var N=(b.length-F)*l+1>>>0,L=new Uint8Array(N);b[F];){var S=r[b.charCodeAt(F)];if(S===255)return;for(var C=0,m=N-1;(S!==0||C<O)&&m!==-1;m--,C++)S+=u*L[m]>>>0,L[m]=S%256>>>0,S=S/256>>>0;if(S!==0)throw new Error("Non-zero carry");O=C,F++}if(b[F]!==" "){for(var o=N-O;o!==N&&L[o]===0;)o++;for(var g=new Uint8Array(y+(N-o)),B=y;o!==N;)g[B++]=L[o++];return g}}}function w(b){var F=T(b);if(F)return F;throw new Error(`Non-${e} character`)}return{encode:E,decodeUnsafe:T,decode:w}}var cu=au,uu=cu;const ds=t=>{if(t instanceof Uint8Array&&t.constructor.name==="Uint8Array")return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error("Unknown type, must be binary type")},hu=t=>new TextEncoder().encode(t),fu=t=>new TextDecoder().decode(t);class lu{constructor(e,r,n){this.name=e,this.prefix=r,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class du{constructor(e,r,n){if(this.name=e,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){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))}else throw Error("Can only multibase decode strings")}or(e){return ps(this,e)}}class pu{constructor(e){this.decoders=e}or(e){return ps(this,e)}decode(e){const r=e[0],n=this.decoders[r];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 ps=(t,e)=>new pu({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}});class gu{constructor(e,r,n,i){this.name=e,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new lu(e,r,n),this.decoder=new du(e,r,i)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const Yr=({name:t,prefix:e,encode:r,decode:n})=>new gu(t,e,r,n),wr=({prefix:t,name:e,alphabet:r})=>{const{encode:n,decode:i}=uu(r,e);return Yr({prefix:t,name:e,encode:n,decode:s=>ds(i(s))})},vu=(t,e,r,n)=>{const i={};for(let p=0;p<e.length;++p)i[e[p]]=p;let s=t.length;for(;t[s-1]==="=";)--s;const c=new Uint8Array(s*r/8|0);let u=0,h=0,l=0;for(let p=0;p<s;++p){const E=i[t[p]];if(E===void 0)throw new SyntaxError(`Non-${n} character`);h=h<<r|E,u+=r,u>=8&&(u-=8,c[l++]=255&h>>u)}if(u>=r||255&h<<8-u)throw new SyntaxError("Unexpected end of data");return c},yu=(t,e,r)=>{const n=e[e.length-1]==="=",i=(1<<r)-1;let s="",c=0,u=0;for(let h=0;h<t.length;++h)for(u=u<<8|t[h],c+=8;c>r;)c-=r,s+=e[i&u>>c];if(c&&(s+=e[i&u<<r-c]),n)for(;s.length*r&7;)s+="=";return s},tt=({name:t,prefix:e,bitsPerChar:r,alphabet:n})=>Yr({prefix:e,name:t,encode(i){return yu(i,n,r)},decode(i){return vu(i,n,r,t)}}),_u=Yr({prefix:"\0",name:"identity",encode:t=>fu(t),decode:t=>hu(t)});var bu=Object.freeze({__proto__:null,identity:_u});const mu=tt({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var wu=Object.freeze({__proto__:null,base2:mu});const Eu=tt({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var Du=Object.freeze({__proto__:null,base8:Eu});const xu=wr({prefix:"9",name:"base10",alphabet:"0123456789"});var Su=Object.freeze({__proto__:null,base10:xu});const Ou=tt({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Au=tt({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Iu=Object.freeze({__proto__:null,base16:Ou,base16upper:Au});const Lu=tt({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Cu=tt({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Tu=tt({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Nu=tt({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Pu=tt({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Ru=tt({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Fu=tt({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Uu=tt({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Mu=tt({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var ju=Object.freeze({__proto__:null,base32:Lu,base32upper:Cu,base32pad:Tu,base32padupper:Nu,base32hex:Pu,base32hexupper:Ru,base32hexpad:Fu,base32hexpadupper:Uu,base32z:Mu});const $u=wr({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Bu=wr({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var zu=Object.freeze({__proto__:null,base36:$u,base36upper:Bu});const Hu=wr({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Ku=wr({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var qu=Object.freeze({__proto__:null,base58btc:Hu,base58flickr:Ku});const Vu=tt({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Gu=tt({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Wu=tt({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),ku=tt({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var Yu=Object.freeze({__proto__:null,base64:Vu,base64pad:Gu,base64url:Wu,base64urlpad:ku});const gs=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),Ju=gs.reduce((t,e,r)=>(t[r]=e,t),[]),Xu=gs.reduce((t,e,r)=>(t[e.codePointAt(0)]=r,t),[]);function Zu(t){return t.reduce((e,r)=>(e+=Ju[r],e),"")}function Qu(t){const e=[];for(const r of t){const n=Xu[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);e.push(n)}return new Uint8Array(e)}const eh=Yr({prefix:"\u{1F680}",name:"base256emoji",encode:Zu,decode:Qu});var th=Object.freeze({__proto__:null,base256emoji:eh}),rh=ys,vs=128,nh=127,ih=~nh,sh=Math.pow(2,31);function ys(t,e,r){e=e||[],r=r||0;for(var n=r;t>=sh;)e[r++]=t&255|vs,t/=128;for(;t&ih;)e[r++]=t&255|vs,t>>>=7;return e[r]=t|0,ys.bytes=r-n+1,e}var oh=zn,ah=128,_s=127;function zn(t,n){var r=0,n=n||0,i=0,s=n,c,u=t.length;do{if(s>=u)throw zn.bytes=0,new RangeError("Could not decode varint");c=t[s++],r+=i<28?(c&_s)<<i:(c&_s)*Math.pow(2,i),i+=7}while(c>=ah);return zn.bytes=s-n,r}var ch=Math.pow(2,7),uh=Math.pow(2,14),hh=Math.pow(2,21),fh=Math.pow(2,28),lh=Math.pow(2,35),dh=Math.pow(2,42),ph=Math.pow(2,49),gh=Math.pow(2,56),vh=Math.pow(2,63),yh=function(t){return t<ch?1:t<uh?2:t<hh?3:t<fh?4:t<lh?5:t<dh?6:t<ph?7:t<gh?8:t<vh?9:10},_h={encode:rh,decode:oh,encodingLength:yh},bs=_h;const ms=(t,e,r=0)=>(bs.encode(t,e,r),e),ws=t=>bs.encodingLength(t),Hn=(t,e)=>{const r=e.byteLength,n=ws(t),i=n+ws(r),s=new Uint8Array(i+r);return ms(t,s,0),ms(r,s,n),s.set(e,i),new bh(t,r,e,s)};class bh{constructor(e,r,n,i){this.code=e,this.size=r,this.digest=n,this.bytes=i}}const Es=({name:t,code:e,encode:r})=>new mh(t,e,r);class mh{constructor(e,r,n){this.name=e,this.code=r,this.encode=n}digest(e){if(e instanceof Uint8Array){const r=this.encode(e);return r instanceof Uint8Array?Hn(this.code,r):r.then(n=>Hn(this.code,n))}else throw Error("Unknown type, must be binary type")}}const Ds=t=>async e=>new Uint8Array(await crypto.subtle.digest(t,e)),wh=Es({name:"sha2-256",code:18,encode:Ds("SHA-256")}),Eh=Es({name:"sha2-512",code:19,encode:Ds("SHA-512")});var Dh=Object.freeze({__proto__:null,sha256:wh,sha512:Eh});const xs=0,xh="identity",Ss=ds;var Sh=Object.freeze({__proto__:null,identity:{code:xs,name:xh,encode:Ss,digest:t=>Hn(xs,Ss(t))}});new TextEncoder,new TextDecoder;const Os={...bu,...wu,...Du,...Su,...Iu,...ju,...zu,...qu,...Yu,...th};({...Dh,...Sh});function As(t,e,r,n){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:r},decoder:{decode:n}}}const Is=As("utf8","u",t=>{const e=new TextDecoder("utf8");return"u"+e.decode(t)},t=>new TextEncoder().encode(t.substring(1))),Kn=As("ascii","a",t=>{let e="a";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},t=>{t=t.substring(1);const e=new Uint8Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}),Ls={utf8:Is,"utf-8":Is,hex:Os.base16,latin1:Kn,ascii:Kn,binary:Kn,...Os};function ht(t,e="utf8"){const r=Ls[e];if(!r)throw new Error(`Unsupported encoding "${e}"`);return r.decoder.decode(`${r.prefix}${t}`)}function ft(t,e="utf8"){const r=Ls[e];if(!r)throw new Error(`Unsupported encoding "${e}"`);return r.encoder.encode(t).substring(1)}var Cs=function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,s;n<i;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))},Oh=function(){function t(e,r,n){this.name=e,this.version=r,this.os=n,this.type="browser"}return t}(),Ah=function(){function t(e){this.version=e,this.type="node",this.name="node",this.os=process.platform}return t}(),Ih=function(){function t(e,r,n,i){this.name=e,this.version=r,this.os=n,this.bot=i,this.type="bot-device"}return t}(),Lh=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),Ch=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),Th=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,Nh=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Ts=3,Ph=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",Th]],Ns=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Rh(t){return t?Ps(t):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Ch:typeof navigator<"u"?Ps(navigator.userAgent):Mh()}function Fh(t){return t!==""&&Ph.reduce(function(e,r){var n=r[0],i=r[1];if(e)return e;var s=i.exec(t);return!!s&&[n,s]},!1)}function Ps(t){var e=Fh(t);if(!e)return null;var r=e[0],n=e[1];if(r==="searchbot")return new Lh;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?i.length<Ts&&(i=Cs(Cs([],i,!0),jh(Ts-i.length),!0)):i=[];var s=i.join("."),c=Uh(t),u=Nh.exec(t);return u&&u[1]?new Ih(r,s,c,u[1]):new Oh(r,s,c)}function Uh(t){for(var e=0,r=Ns.length;e<r;e++){var n=Ns[e],i=n[0],s=n[1],c=s.exec(t);if(c)return i}return null}function Mh(){var t=typeof process<"u"&&process.version;return t?new Ah(process.version.slice(1)):null}function jh(t){for(var e=[],r=0;r<t;r++)e.push("0");return e}var Le={},Rs={},Jr={};Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.delay=void 0;function $h(t){return new Promise(e=>{setTimeout(()=>{e(!0)},t)})}Jr.delay=$h;var ir={},qn={},sr={};Object.defineProperty(sr,"__esModule",{value:!0}),sr.ONE_THOUSAND=sr.ONE_HUNDRED=void 0,sr.ONE_HUNDRED=100,sr.ONE_THOUSAND=1e3;var Fs={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=t.ONE_MINUTE*5,t.TEN_MINUTES=t.ONE_MINUTE*10,t.THIRTY_MINUTES=t.ONE_MINUTE*30,t.SIXTY_MINUTES=t.ONE_MINUTE*60,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=t.ONE_HOUR*3,t.SIX_HOURS=t.ONE_HOUR*6,t.TWELVE_HOURS=t.ONE_HOUR*12,t.TWENTY_FOUR_HOURS=t.ONE_HOUR*24,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=t.ONE_DAY*3,t.FIVE_DAYS=t.ONE_DAY*5,t.SEVEN_DAYS=t.ONE_DAY*7,t.THIRTY_DAYS=t.ONE_DAY*30,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=t.ONE_WEEK*2,t.THREE_WEEKS=t.ONE_WEEK*3,t.FOUR_WEEKS=t.ONE_WEEK*4,t.ONE_YEAR=t.ONE_DAY*365})(Fs),function(t){var e=Z&&Z.__createBinding||(Object.create?function(n,i,s,c){c===void 0&&(c=s),Object.defineProperty(n,c,{enumerable:!0,get:function(){return i[s]}})}:function(n,i,s,c){c===void 0&&(c=s),n[c]=i[s]}),r=Z&&Z.__exportStar||function(n,i){for(var s in n)s!=="default"&&!i.hasOwnProperty(s)&&e(i,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(sr,t),r(Fs,t)}(qn),Object.defineProperty(ir,"__esModule",{value:!0}),ir.fromMiliseconds=ir.toMiliseconds=void 0;const Us=qn;function Bh(t){return t*Us.ONE_THOUSAND}ir.toMiliseconds=Bh;function zh(t){return Math.floor(t/Us.ONE_THOUSAND)}ir.fromMiliseconds=zh,function(t){var e=Z&&Z.__createBinding||(Object.create?function(n,i,s,c){c===void 0&&(c=s),Object.defineProperty(n,c,{enumerable:!0,get:function(){return i[s]}})}:function(n,i,s,c){c===void 0&&(c=s),n[c]=i[s]}),r=Z&&Z.__exportStar||function(n,i){for(var s in n)s!=="default"&&!i.hasOwnProperty(s)&&e(i,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Jr,t),r(ir,t)}(Rs);var Er={};Object.defineProperty(Er,"__esModule",{value:!0}),Er.Watch=void 0;class Ms{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw new Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){const r=this.get(e);if(typeof r.elapsed<"u")throw new Error(`Watch already stopped for label: ${e}`);const n=Date.now()-r.started;this.timestamps.set(e,{started:r.started,elapsed:n})}get(e){const r=this.timestamps.get(e);if(typeof r>"u")throw new Error(`No timestamp found for label: ${e}`);return r}elapsed(e){const r=this.get(e);return r.elapsed||Date.now()-r.started}}Er.Watch=Ms,Er.default=Ms;var js={},Xr={};Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.IWatch=void 0;class Hh{}Xr.IWatch=Hh,function(t){var e=Z&&Z.__createBinding||(Object.create?function(n,i,s,c){c===void 0&&(c=s),Object.defineProperty(n,c,{enumerable:!0,get:function(){return i[s]}})}:function(n,i,s,c){c===void 0&&(c=s),n[c]=i[s]}),r=Z&&Z.__exportStar||function(n,i){for(var s in n)s!=="default"&&!i.hasOwnProperty(s)&&e(i,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Xr,t)}(js),function(t){var e=Z&&Z.__createBinding||(Object.create?function(n,i,s,c){c===void 0&&(c=s),Object.defineProperty(n,c,{enumerable:!0,get:function(){return i[s]}})}:function(n,i,s,c){c===void 0&&(c=s),n[c]=i[s]}),r=Z&&Z.__exportStar||function(n,i){for(var s in n)s!=="default"&&!i.hasOwnProperty(s)&&e(i,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Rs,t),r(Er,t),r(js,t),r(qn,t)}(Le);var Se={};Object.defineProperty(Se,"__esModule",{value:!0}),Se.getLocalStorage=Se.getLocalStorageOrThrow=Se.getCrypto=Se.getCryptoOrThrow=Bs=Se.getLocation=Se.getLocationOrThrow=Vn=Se.getNavigator=Se.getNavigatorOrThrow=$s=Se.getDocument=Se.getDocumentOrThrow=Se.getFromWindowOrThrow=Se.getFromWindow=void 0;function Wt(t){let e;return typeof window<"u"&&typeof window[t]<"u"&&(e=window[t]),e}Se.getFromWindow=Wt;function or(t){const e=Wt(t);if(!e)throw new Error(`${t} is not defined in Window`);return e}Se.getFromWindowOrThrow=or;function Kh(){return or("document")}Se.getDocumentOrThrow=Kh;function qh(){return Wt("document")}var $s=Se.getDocument=qh;function Vh(){return or("navigator")}Se.getNavigatorOrThrow=Vh;function Gh(){return Wt("navigator")}var Vn=Se.getNavigator=Gh;function Wh(){return or("location")}Se.getLocationOrThrow=Wh;function kh(){return Wt("location")}var Bs=Se.getLocation=kh;function Yh(){return or("crypto")}Se.getCryptoOrThrow=Yh;function Jh(){return Wt("crypto")}Se.getCrypto=Jh;function Xh(){return or("localStorage")}Se.getLocalStorageOrThrow=Xh;function Zh(){return Wt("localStorage")}Se.getLocalStorage=Zh;var Gn={};Object.defineProperty(Gn,"__esModule",{value:!0});var zs=Gn.getWindowMetadata=void 0;const Hs=Se;function Qh(){let t,e;try{t=Hs.getDocumentOrThrow(),e=Hs.getLocationOrThrow()}catch{return null}function r(){const E=t.getElementsByTagName("link"),T=[];for(let w=0;w<E.length;w++){const b=E[w],F=b.getAttribute("rel");if(F&&F.toLowerCase().indexOf("icon")>-1){const y=b.getAttribute("href");if(y)if(y.toLowerCase().indexOf("https:")===-1&&y.toLowerCase().indexOf("http:")===-1&&y.indexOf("//")!==0){let O=e.protocol+"//"+e.host;if(y.indexOf("/")===0)O+=y;else{const N=e.pathname.split("/");N.pop(),O+=N.join("/")+"/"+y}T.push(O)}else if(y.indexOf("//")===0){const O=e.protocol+y;T.push(O)}else T.push(y)}}return T}function n(...E){const T=t.getElementsByTagName("meta");for(let w=0;w<T.length;w++){const b=T[w],F=["itemprop","property","name"].map(y=>b.getAttribute(y)).filter(y=>y?E.includes(y):!1);if(F.length&&F){const y=b.getAttribute("content");if(y)return y}}return""}function i(){let E=n("name","og:site_name","og:title","twitter:title");return E||(E=t.title),E}function s(){return n("description","og:description","twitter:description","keywords")}const c=i(),u=s(),h=e.origin,l=r();return{description:u,url:h,icons:l,name:c}}zs=Gn.getWindowMetadata=Qh;var Dr={},ef=t=>encodeURIComponent(t).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),Ks="%[a-f0-9]{2}",qs=new RegExp(Ks,"gi"),Vs=new RegExp("("+Ks+")+","gi");function Wn(t,e){try{return decodeURIComponent(t.join(""))}catch{}if(t.length===1)return t;e=e||1;var r=t.slice(0,e),n=t.slice(e);return Array.prototype.concat.call([],Wn(r),Wn(n))}function tf(t){try{return decodeURIComponent(t)}catch{for(var e=t.match(qs),r=1;r<e.length;r++)t=Wn(e,r).join(""),e=t.match(qs);return t}}function rf(t){for(var e={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=Vs.exec(t);r;){try{e[r[0]]=decodeURIComponent(r[0])}catch{var n=tf(r[0]);n!==r[0]&&(e[r[0]]=n)}r=Vs.exec(t)}e["%C2"]="\uFFFD";for(var i=Object.keys(e),s=0;s<i.length;s++){var c=i[s];t=t.replace(new RegExp(c,"g"),e[c])}return t}var nf=function(t){if(typeof t!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch{return rf(t)}},sf=(t,e)=>{if(!(typeof t=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e==="")return[t];const r=t.indexOf(e);return r===-1?[t]:[t.slice(0,r),t.slice(r+e.length)]};(function(t){const e=ef,r=nf,n=sf,i=y=>y==null;function s(y){switch(y.arrayFormat){case"index":return O=>(N,L)=>{const S=N.length;return L===void 0||y.skipNull&&L===null||y.skipEmptyString&&L===""?N:L===null?[...N,[h(O,y),"[",S,"]"].join("")]:[...N,[h(O,y),"[",h(S,y),"]=",h(L,y)].join("")]};case"bracket":return O=>(N,L)=>L===void 0||y.skipNull&&L===null||y.skipEmptyString&&L===""?N:L===null?[...N,[h(O,y),"[]"].join("")]:[...N,[h(O,y),"[]=",h(L,y)].join("")];case"comma":case"separator":return O=>(N,L)=>L==null||L.length===0?N:N.length===0?[[h(O,y),"=",h(L,y)].join("")]:[[N,h(L,y)].join(y.arrayFormatSeparator)];default:return O=>(N,L)=>L===void 0||y.skipNull&&L===null||y.skipEmptyString&&L===""?N:L===null?[...N,h(O,y)]:[...N,[h(O,y),"=",h(L,y)].join("")]}}function c(y){let O;switch(y.arrayFormat){case"index":return(N,L,S)=>{if(O=/\[(\d*)\]$/.exec(N),N=N.replace(/\[\d*\]$/,""),!O){S[N]=L;return}S[N]===void 0&&(S[N]={}),S[N][O[1]]=L};case"bracket":return(N,L,S)=>{if(O=/(\[\])$/.exec(N),N=N.replace(/\[\]$/,""),!O){S[N]=L;return}if(S[N]===void 0){S[N]=[L];return}S[N]=[].concat(S[N],L)};case"comma":case"separator":return(N,L,S)=>{const m=typeof L=="string"&&L.split("").indexOf(y.arrayFormatSeparator)>-1?L.split(y.arrayFormatSeparator).map(o=>l(o,y)):L===null?L:l(L,y);S[N]=m};default:return(N,L,S)=>{if(S[N]===void 0){S[N]=L;return}S[N]=[].concat(S[N],L)}}}function u(y){if(typeof y!="string"||y.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function h(y,O){return O.encode?O.strict?e(y):encodeURIComponent(y):y}function l(y,O){return O.decode?r(y):y}function p(y){return Array.isArray(y)?y.sort():typeof y=="object"?p(Object.keys(y)).sort((O,N)=>Number(O)-Number(N)).map(O=>y[O]):y}function E(y){const O=y.indexOf("#");return O!==-1&&(y=y.slice(0,O)),y}function T(y){let O="";const N=y.indexOf("#");return N!==-1&&(O=y.slice(N)),O}function w(y){y=E(y);const O=y.indexOf("?");return O===-1?"":y.slice(O+1)}function b(y,O){return O.parseNumbers&&!Number.isNaN(Number(y))&&typeof y=="string"&&y.trim()!==""?y=Number(y):O.parseBooleans&&y!==null&&(y.toLowerCase()==="true"||y.toLowerCase()==="false")&&(y=y.toLowerCase()==="true"),y}function F(y,O){O=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},O),u(O.arrayFormatSeparator);const N=c(O),L=Object.create(null);if(typeof y!="string"||(y=y.trim().replace(/^[?#&]/,""),!y))return L;for(const S of y.split("&")){let[C,m]=n(O.decode?S.replace(/\+/g," "):S,"=");m=m===void 0?null:["comma","separator"].includes(O.arrayFormat)?m:l(m,O),N(l(C,O),m,L)}for(const S of Object.keys(L)){const C=L[S];if(typeof C=="object"&&C!==null)for(const m of Object.keys(C))C[m]=b(C[m],O);else L[S]=b(C,O)}return O.sort===!1?L:(O.sort===!0?Object.keys(L).sort():Object.keys(L).sort(O.sort)).reduce((S,C)=>{const m=L[C];return Boolean(m)&&typeof m=="object"&&!Array.isArray(m)?S[C]=p(m):S[C]=m,S},Object.create(null))}t.extract=w,t.parse=F,t.stringify=(y,O)=>{if(!y)return"";O=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},O),u(O.arrayFormatSeparator);const N=m=>O.skipNull&&i(y[m])||O.skipEmptyString&&y[m]==="",L=s(O),S={};for(const m of Object.keys(y))N(m)||(S[m]=y[m]);const C=Object.keys(S);return O.sort!==!1&&C.sort(O.sort),C.map(m=>{const o=y[m];return o===void 0?"":o===null?h(m,O):Array.isArray(o)?o.reduce(L(m),[]).join("&"):h(m,O)+"="+h(o,O)}).filter(m=>m.length>0).join("&")},t.parseUrl=(y,O)=>{O=Object.assign({decode:!0},O);const[N,L]=n(y,"#");return Object.assign({url:N.split("?")[0]||"",query:F(w(y),O)},O&&O.parseFragmentIdentifier&&L?{fragmentIdentifier:l(L,O)}:{})},t.stringifyUrl=(y,O)=>{O=Object.assign({encode:!0,strict:!0},O);const N=E(y.url).split("?")[0]||"",L=t.extract(y.url),S=t.parse(L,{sort:!1}),C=Object.assign(S,y.query);let m=t.stringify(C,O);m&&(m=`?${m}`);let o=T(y.url);return y.fragmentIdentifier&&(o=`#${h(y.fragmentIdentifier,O)}`),`${N}${m}${o}`}})(Dr);const of={waku:{publish:"waku_publish",subscribe:"waku_subscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe"},irn:{publish:"irn_publish",subscribe:"irn_subscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe"},iridium:{publish:"iridium_publish",subscribe:"iridium_subscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe"}},Gs=":";function af(t){const{namespace:e,reference:r}=t;return[e,r].join(Gs)}function cf(t){const[e,r,n]=t.split(Gs);return{namespace:e,reference:r,address:n}}function uf(t,e){const r=[];return t.forEach(n=>{const i=e(n);r.includes(i)||r.push(i)}),r}function hf(t){const{namespace:e,reference:r}=cf(t);return af({namespace:e,reference:r})}function ff(t){return uf(t,hf)}function kn(t,e=[]){const r=[];return Object.keys(t).forEach(n=>{if(e.length&&!e.includes(n))return;const i=t[n];r.push(...i.accounts)}),r}function Yn(t,e=[]){const r=[];return Object.keys(t).forEach(n=>{if(e.length&&!e.includes(n))return;const i=t[n];r.push(...ff(i.accounts))}),r}function lf(t,e=[]){const r=[];return Object.keys(t).forEach(n=>{if(e.length&&!e.includes(n))return;const i=t[n];r.push(...i.chains)}),r}const Ws="base10",lt="base16",Jn="base64pad",Xn="utf8",ks=0,xr=1,df=0,Ys=1,Zn=12,Qn=32;function pf(){const t=$n.generateKeyPair();return{privateKey:ft(t.secretKey,lt),publicKey:ft(t.publicKey,lt)}}function ei(){const t=nr.randomBytes(Qn);return ft(t,lt)}function gf(t,e){const r=$n.sharedKey(ht(t,lt),ht(e,lt)),n=new Jc(kr.SHA256,r).expand(Qn);return ft(n,lt)}function vf(t){const e=kr.hash(ht(t,lt));return ft(e,lt)}function Zr(t){const e=kr.hash(ht(t,Xn));return ft(e,lt)}function yf(t){return ht(`${t}`,Ws)}function Qr(t){return Number(ft(t,Ws))}function _f(t){const e=yf(typeof t.type<"u"?t.type:ks);if(Qr(e)===xr&&typeof t.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const r=typeof t.senderPublicKey<"u"?ht(t.senderPublicKey,lt):void 0,n=typeof t.iv<"u"?ht(t.iv,lt):nr.randomBytes(Zn),i=new Ln.ChaCha20Poly1305(ht(t.symKey,lt)).seal(n,ht(t.message,Xn));return mf({type:e,sealed:i,iv:n,senderPublicKey:r})}function bf(t){const e=new Ln.ChaCha20Poly1305(ht(t.symKey,lt)),{sealed:r,iv:n}=Js(t.encoded),i=e.open(n,r);if(i===null)throw new Error("Failed to decrypt");return ft(i,Xn)}function mf(t){if(Qr(t.type)===xr){if(typeof t.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return ft(Bn([t.type,t.senderPublicKey,t.iv,t.sealed]),Jn)}return ft(Bn([t.type,t.iv,t.sealed]),Jn)}function Js(t){const e=ht(t,Jn),r=e.slice(df,Ys),n=Ys;if(Qr(r)===xr){const u=n+Qn,h=u+Zn,l=e.slice(n,u),p=e.slice(u,h),E=e.slice(h);return{type:r,sealed:E,iv:p,senderPublicKey:l}}const i=n+Zn,s=e.slice(n,i),c=e.slice(i);return{type:r,sealed:c,iv:s}}function wf(t,e){const r=Js(t);return Xs({type:Qr(r.type),senderPublicKey:typeof r.senderPublicKey<"u"?ft(r.senderPublicKey,lt):void 0,receiverPublicKey:e?.receiverPublicKey})}function Xs(t){const e=t?.type||ks;if(e===xr){if(typeof t?.senderPublicKey>"u")throw new Error("missing sender public key");if(typeof t?.receiverPublicKey>"u")throw new Error("missing receiver public key")}return{type:e,senderPublicKey:t?.senderPublicKey,receiverPublicKey:t?.receiverPublicKey}}function Zs(t){return t.type===xr&&typeof t.senderPublicKey=="string"&&typeof t.receiverPublicKey=="string"}var Ef=Object.defineProperty,Qs=Object.getOwnPropertySymbols,Df=Object.prototype.hasOwnProperty,xf=Object.prototype.propertyIsEnumerable,eo=(t,e,r)=>e in t?Ef(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,to=(t,e)=>{for(var r in e||(e={}))Df.call(e,r)&&eo(t,r,e[r]);if(Qs)for(var r of Qs(e))xf.call(e,r)&&eo(t,r,e[r]);return t};const Sf="ReactNative",Sr={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},Of="js";function ro(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function Af(){return!$s()&&!!Vn()&&navigator.product===Sf}function If(){return!ro()&&!!Vn()}function Lf(){return Af()?Sr.reactNative:ro()?Sr.node:If()?Sr.browser:Sr.unknown}function Cf(t,e){let r=Dr.parse(t);return r=to(to({},r),e),t=Dr.stringify(r),t}function Tf(){return zs()||{name:"",description:"",url:"",icons:[""]}}function Nf(){const t=Rh();if(t===null)return"unknown";const e=t.os?t.os.replace(" ","").toLowerCase():"unknown";return t.type==="browser"?[e,t.name,t.version].join("-"):[e,t.version].join("-")}function Pf(){var t;const e=Lf();return e===Sr.browser?[e,((t=Bs())==null?void 0:t.host)||"unknown"].join(":"):e}function Rf(t,e,r){const n=Nf(),i=Pf();return[[t,e].join("-"),[Of,r].join("-"),n,i].join("/")}function Ff({protocol:t,version:e,relayUrl:r,sdkVersion:n,auth:i,projectId:s}){const c=r.split("?"),u=Rf(t,e,n),h={auth:i,ua:u,projectId:s},l=Cf(c[1]||"",h);return c[0]+"?"+l}function dt(t,e){return t.filter(r=>e.includes(r)).length===t.length}function no(t){return Object.fromEntries(t.entries())}function io(t){return new Map(Object.entries(t))}function ar(t,e){return Le.fromMiliseconds((e||Date.now())+Le.toMiliseconds(t))}function kt(t){return Le.fromMiliseconds(Date.now())>=Le.toMiliseconds(t)}function Yt(){const t=Le.toMiliseconds(Le.FIVE_MINUTES);let e,r,n;return{resolve:i=>{n&&e&&(clearTimeout(n),e(i))},reject:i=>{n&&r&&(clearTimeout(n),r(i))},done:()=>new Promise((i,s)=>{n=setTimeout(s,t),e=i,r=s})}}function so(t,e){if(typeof e=="string"&&e.startsWith(`${t}:`))return e;if(t.toLowerCase()==="topic"){if(typeof e!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${e}`}else if(t.toLowerCase()==="id"){if(typeof e!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${e}`}throw new Error(`Unknown expirer target type: ${t}`)}function Uf(t){return so("topic",t)}function Mf(t){return so("id",t)}function jf(t){const[e,r]=t.split(":"),n={id:void 0,topic:void 0};if(e==="topic"&&typeof r=="string")n.topic=r;else if(e==="id"&&Number.isInteger(Number(r)))n.id=Number(r);else throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${r}`);return n}function Fe(t,e){return`${t}${e?`:${e}`:""}`}const $f="irn";function ti(t){return t?.relay||{protocol:$f}}function ri(t){const e=of[t];if(typeof e>"u")throw new Error(`Relay Protocol not supported: ${t}`);return e}var Bf=Object.defineProperty,oo=Object.getOwnPropertySymbols,zf=Object.prototype.hasOwnProperty,Hf=Object.prototype.propertyIsEnumerable,ao=(t,e,r)=>e in t?Bf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Kf=(t,e)=>{for(var r in e||(e={}))zf.call(e,r)&&ao(t,r,e[r]);if(oo)for(var r of oo(e))Hf.call(e,r)&&ao(t,r,e[r]);return t};function qf(t,e="-"){const r={},n="relay"+e;return Object.keys(t).forEach(i=>{if(i.startsWith(n)){const s=i.replace(n,""),c=t[i];r[s]=c}}),r}function Vf(t){const e=t.indexOf(":"),r=t.indexOf("?")!==-1?t.indexOf("?"):void 0,n=t.substring(0,e),i=t.substring(e+1,r).split("@"),s=typeof r<"u"?t.substring(r):"",c=Dr.parse(s);return{protocol:n,topic:i[0],version:parseInt(i[1],10),symKey:c.symKey,relay:qf(c)}}function Gf(t,e="-"){const r="relay",n={};return Object.keys(t).forEach(i=>{const s=r+e+i;t[i]&&(n[s]=t[i])}),n}function Wf(t){return`${t.protocol}:${t.topic}@${t.version}?`+Dr.stringify(Kf({symKey:t.symKey},Gf(t.relay)))}function At(t){const e=[];return t.forEach(r=>{const[n,i]=r.split(":");e.push(`${n}:${i}`)}),e}function kf(t){const e=[];return Object.values(t).forEach(r=>{e.push(...At(r.accounts)),r.extension&&r.extension.forEach(n=>{e.push(...At(n.accounts))})}),e}function Yf(t,e){const r=[];return Object.values(t).forEach(n=>{At(n.accounts).includes(e)&&r.push(...n.methods),n.extension&&n.extension.forEach(i=>{At(i.accounts).includes(e)&&r.push(...i.methods)})}),r}function Jf(t,e){const r=[];return Object.values(t).forEach(n=>{At(n.accounts).includes(e)&&r.push(...n.events),n.extension&&n.extension.forEach(i=>{At(i.accounts).includes(e)&&r.push(...i.events)})}),r}const Xf={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3}},Zf={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function G(t,e){const{message:r,code:n}=Zf[t];return{message:e?`${r} ${e}`:r,code:n}}function rt(t,e){const{message:r,code:n}=Xf[t];return{message:e?`${r} ${e}`:r,code:n}}function Or(t,e){return Array.isArray(t)?typeof e<"u"&&t.length?t.every(e):!0:!1}function co(t){return Object.getPrototypeOf(t)===Object.prototype&&Object.keys(t).length}function Et(t){return typeof t>"u"}function ot(t,e){return e&&Et(t)?!0:typeof t=="string"&&Boolean(t.trim().length)}function uo(t,e){return e&&Et(t)?!0:typeof t=="number"&&!isNaN(t)}function Qf(t,e){const{requiredNamespaces:r}=e,n=Object.keys(t.namespaces),i=Object.keys(r);let s=!0;return dt(i,n)?(n.forEach(c=>{const{accounts:u,methods:h,events:l,extension:p}=t.namespaces[c],E=At(u),T=r[c];(!dt(T.chains,E)||!dt(T.methods,h)||!dt(T.events,l))&&(s=!1),s&&p&&p.forEach(w=>{var b;const{accounts:F,methods:y,events:O}=w,N=At(F);(b=T.extension)!=null&&b.find(L=>dt(L.chains,N)&&dt(L.methods,y)&&dt(L.events,O))||(s=!1)})}),s):!1}function ni(t){return ot(t,!1)&&t.includes(":")?t.split(":").length===2:!1}function el(t){if(ot(t,!1)&&t.includes(":")){const e=t.split(":");if(e.length===3){const r=e[0]+":"+e[1];return!!e[2]&&ni(r)}}return!1}function tl(t){if(ot(t,!1))try{return typeof new URL(t)<"u"}catch{return!1}return!1}function rl(t){var e;return(e=t?.proposer)==null?void 0:e.publicKey}function nl(t){return t?.topic}function il(t,e){let r=null;return ot(t?.publicKey,!1)||(r=G("MISSING_OR_INVALID",`${e} controller public key should be a string`)),r}function ii(t,e){let r=null;return Et(t?.extension)||(!Or(t.extension)||!t.extension.length)&&(r=G("MISSING_OR_INVALID",`${e} extension should be an array of namespaces, or omitted`)),r}function ho(t){let e=!0;return Or(t)?t.length&&(e=t.every(r=>ot(r,!1))):e=!1,e}function fo(t,e,r){let n=null;return Or(e)?e.forEach(i=>{n||(!ni(i)||!i.includes(t))&&(n=rt("UNSUPPORTED_CHAINS",`${r}, chain ${i} should be a string and conform to "namespace:chainId" format`))}):n=rt("UNSUPPORTED_CHAINS",`${r}, chains ${e} should be an array of strings conforming to "namespace:chainId" format`),n}function sl(t,e){let r=null;return Object.entries(t).forEach(([n,i])=>{if(r)return;const s=fo(n,i?.chains,`${e} requiredNamespace`),c=ii(i,e);s?r=s:c?r=c:i.extension&&i.extension.forEach(u=>{if(r)return;const h=fo(n,u.chains,`${e} extension`);h&&(r=h)})}),r}function lo(t,e){let r=null;return Or(t)?t.forEach(n=>{r||el(n)||(r=rt("UNSUPPORTED_ACCOUNTS",`${e}, account ${n} should be a string and conform to "namespace:chainId:address" format`))}):r=rt("UNSUPPORTED_ACCOUNTS",`${e}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),r}function ol(t,e){let r=null;return Object.values(t).forEach(n=>{if(r)return;const i=lo(n?.accounts,`${e} namespace`),s=ii(n,e);i?r=i:s?r=s:n.extension&&n.extension.forEach(c=>{if(r)return;const u=lo(c.accounts,`${e} extension`);u&&(r=u)})}),r}function po(t,e){let r=null;return ho(t?.methods)?ho(t?.events)||(r=rt("UNSUPPORTED_EVENTS",`${e}, events should be an array of strings or empty array for no events`)):r=rt("UNSUPPORTED_METHODS",`${e}, methods should be an array of strings or empty array for no methods`),r}function go(t,e){let r=null;return Object.values(t).forEach(n=>{if(r)return;const i=po(n,`${e}, namespace`),s=ii(n,e);i?r=i:s?r=s:n.extension&&n.extension.forEach(c=>{if(r)return;const u=po(c,`${e}, extension`);u&&(r=u)})}),r}function al(t,e){let r=null;if(t&&co(t)){const n=go(t,e);n&&(r=n);const i=sl(t,e);i&&(r=i)}else r=G("MISSING_OR_INVALID",`${e}, requiredNamespaces should be an object with data`);return r}function si(t,e){let r=null;if(t&&co(t)){const n=go(t,e);n&&(r=n);const i=ol(t,e);i&&(r=i)}else r=G("MISSING_OR_INVALID",`${e}, namespaces should be an object with data`);return r}function vo(t){return ot(t.protocol,!0)}function cl(t,e){let r=!1;return e&&!t?r=!0:t&&Or(t)&&t.length&&t.forEach(n=>{r=vo(n)}),r}function ul(t){return typeof t=="number"}function yt(t){return typeof t<"u"&&typeof t!==null}function hl(t){return!(!t||typeof t!="object"||!t.code||!uo(t.code,!1)||!t.message||!ot(t.message,!1))}function fl(t){return!(Et(t)||!ot(t.method,!1))}function ll(t){return!(Et(t)||Et(t.result)&&Et(t.error)||!uo(t.id,!1)||!ot(t.jsonrpc,!1))}function dl(t){return!(Et(t)||!ot(t.name,!1))}function yo(t,e){return!(!ni(e)||!kf(t).includes(e))}function pl(t,e,r){return ot(r,!1)?Yf(t,e).includes(r):!1}function gl(t,e,r){return ot(r,!1)?Jf(t,e).includes(r):!1}function _o(t,e,r){let n=null;const i=Object.keys(t),s=Object.keys(e);return dt(i,s)?i.forEach(c=>{var u;if(n)return;const h=t[c].chains,l=At(e[c].accounts);dt(h,l)?dt(t[c].methods,e[c].methods)?dt(t[c].events,e[c].events)?t[c].extension&&!e[c].extension?n=G("NON_CONFORMING_NAMESPACES",`${r} namespaces extension doesn't satisfy requiredNamespaces extension for ${c}`):t[c].extension&&e[c].extension&&((u=t[c].extension)==null||u.forEach(({methods:p,events:E,chains:T})=>{var w;n||(w=e[c].extension)!=null&&w.find(b=>{const F=At(b.accounts);return dt(T,F)&&dt(E,b.events)&&dt(p,b.methods)})||(n=G("NON_CONFORMING_NAMESPACES",`${r} namespaces extension doesn't satisfy requiredNamespaces extension for ${c}`))})):n=G("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy requiredNamespaces events for ${c}`):n=G("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy requiredNamespaces methods for ${c}`):n=G("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy requiredNamespaces chains for ${c}`)}):n=G("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy requiredNamespaces`),n}function vl(t){try{return JSON.stringify(t)}catch{return'"[Circular]"'}}var yl=_l;function _l(t,e,r){var n=r&&r.stringify||vl,i=1;if(typeof t=="object"&&t!==null){var s=e.length+i;if(s===1)return t;var c=new Array(s);c[0]=n(t);for(var u=1;u<s;u++)c[u]=n(e[u]);return c.join(" ")}if(typeof t!="string")return t;var h=e.length;if(h===0)return t;for(var l="",p=1-i,E=-1,T=t&&t.length||0,w=0;w<T;){if(t.charCodeAt(w)===37&&w+1<T){switch(E=E>-1?E:0,t.charCodeAt(w+1)){case 100:case 102:if(p>=h||e[p]==null)break;E<w&&(l+=t.slice(E,w)),l+=Number(e[p]),E=w+2,w++;break;case 105:if(p>=h||e[p]==null)break;E<w&&(l+=t.slice(E,w)),l+=Math.floor(Number(e[p])),E=w+2,w++;break;case 79:case 111:case 106:if(p>=h||e[p]===void 0)break;E<w&&(l+=t.slice(E,w));var b=typeof e[p];if(b==="string"){l+="'"+e[p]+"'",E=w+2,w++;break}if(b==="function"){l+=e[p].name||"<anonymous>",E=w+2,w++;break}l+=n(e[p]),E=w+2,w++;break;case 115:if(p>=h)break;E<w&&(l+=t.slice(E,w)),l+=String(e[p]),E=w+2,w++;break;case 37:E<w&&(l+=t.slice(E,w)),l+="%",E=w+2,w++,p--;break}++p}++w}return E===-1?t:(E<T&&(l+=t.slice(E)),l)}var bo=yl,oi=It,Ar=Al().console||{},bl={mapHttpRequest:tn,mapHttpResponse:tn,wrapRequestSerializer:ci,wrapResponseSerializer:ci,wrapErrorSerializer:ci,req:tn,res:tn,err:Dl};function It(t){t=t||{},t.browser=t.browser||{};var e=t.browser.transmit;if(e&&typeof e.send!="function")throw Error("pino: transmit option must have a send function");var r=t.browser.write||Ar;t.browser.write&&(t.browser.asObject=!0);var n=t.serializers||{},i=Array.isArray(t.browser.serialize)?t.browser.serialize.filter(function(b){return b!=="!stdSerializers.err"}):t.browser.serialize===!0?Object.keys(n):!1,s=t.browser.serialize;Array.isArray(t.browser.serialize)&&t.browser.serialize.indexOf("!stdSerializers.err")>-1&&(s=!1);var c=["error","fatal","warn","info","debug","trace"];typeof r=="function"&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),t.enabled===!1&&(t.level="silent");var u=t.level||"info",h=Object.create(r);h.log||(h.log=Ir),Object.defineProperty(h,"levelVal",{get:p}),Object.defineProperty(h,"level",{get:E,set:T});var l={transmit:e,serialize:i,asObject:t.browser.asObject,levels:c,timestamp:xl(t)};h.levels=It.levels,h.level=u,h.setMaxListeners=h.getMaxListeners=h.emit=h.addListener=h.on=h.prependListener=h.once=h.prependOnceListener=h.removeListener=h.removeAllListeners=h.listeners=h.listenerCount=h.eventNames=h.write=h.flush=Ir,h.serializers=n,h._serialize=i,h._stdErrSerialize=s,h.child=w,e&&(h._logEvent=ai());function p(){return this.level==="silent"?1/0:this.levels.values[this.level]}function E(){return this._level}function T(b){if(b!=="silent"&&!this.levels.values[b])throw Error("unknown level "+b);this._level=b,cr(l,h,"error","log"),cr(l,h,"fatal","error"),cr(l,h,"warn","error"),cr(l,h,"info","log"),cr(l,h,"debug","log"),cr(l,h,"trace","log")}function w(b){if(!b)throw new Error("missing bindings for child Pino");var F=b.serializers;if(i&&F){var y=Object.assign({},n,F),O=t.browser.serialize===!0?Object.keys(y):i;delete b.serializers,en([b],O,y,this._stdErrSerialize)}function N(L){this._childLevel=(L._childLevel|0)+1,this.error=ur(L,b,"error"),this.fatal=ur(L,b,"fatal"),this.warn=ur(L,b,"warn"),this.info=ur(L,b,"info"),this.debug=ur(L,b,"debug"),this.trace=ur(L,b,"trace"),y&&(this.serializers=y,this._serialize=O),e&&(this._logEvent=ai([].concat(L._logEvent.bindings,b)))}return N.prototype=this,new N(this)}return h}It.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},It.stdSerializers=bl,It.stdTimeFunctions=Object.assign({},{nullTime:mo,epochTime:wo,unixTime:Sl,isoTime:Ol});function cr(t,e,r,n){var i=Object.getPrototypeOf(e);e[r]=e.levelVal>e.levels.values[r]?Ir:i[r]?i[r]:Ar[r]||Ar[n]||Ir,ml(t,e,r)}function ml(t,e,r){!t.transmit&&e[r]===Ir||(e[r]=function(n){return function(){for(var s=t.timestamp(),c=new Array(arguments.length),u=Object.getPrototypeOf&&Object.getPrototypeOf(this)===Ar?Ar:this,h=0;h<c.length;h++)c[h]=arguments[h];if(t.serialize&&!t.asObject&&en(c,this._serialize,this.serializers,this._stdErrSerialize),t.asObject?n.call(u,wl(this,r,c,s)):n.apply(u,c),t.transmit){var l=t.transmit.level||e.level,p=It.levels.values[l],E=It.levels.values[r];if(E<p)return;El(this,{ts:s,methodLevel:r,methodValue:E,transmitLevel:l,transmitValue:It.levels.values[t.transmit.level||e.level],send:t.transmit.send,val:e.levelVal},c)}}}(e[r]))}function wl(t,e,r,n){t._serialize&&en(r,t._serialize,t.serializers,t._stdErrSerialize);var i=r.slice(),s=i[0],c={};n&&(c.time=n),c.level=It.levels.values[e];var u=(t._childLevel|0)+1;if(u<1&&(u=1),s!==null&&typeof s=="object"){for(;u--&&typeof i[0]=="object";)Object.assign(c,i.shift());s=i.length?bo(i.shift(),i):void 0}else typeof s=="string"&&(s=bo(i.shift(),i));return s!==void 0&&(c.msg=s),c}function en(t,e,r,n){for(var i in t)if(n&&t[i]instanceof Error)t[i]=It.stdSerializers.err(t[i]);else if(typeof t[i]=="object"&&!Array.isArray(t[i]))for(var s in t[i])e&&e.indexOf(s)>-1&&s in r&&(t[i][s]=r[s](t[i][s]))}function ur(t,e,r){return function(){var n=new Array(1+arguments.length);n[0]=e;for(var i=1;i<n.length;i++)n[i]=arguments[i-1];return t[r].apply(this,n)}}function El(t,e,r){var n=e.send,i=e.ts,s=e.methodLevel,c=e.methodValue,u=e.val,h=t._logEvent.bindings;en(r,t._serialize||Object.keys(t.serializers),t.serializers,t._stdErrSerialize===void 0?!0:t._stdErrSerialize),t._logEvent.ts=i,t._logEvent.messages=r.filter(function(l){return h.indexOf(l)===-1}),t._logEvent.level.label=s,t._logEvent.level.value=c,n(s,t._logEvent,u),t._logEvent=ai(h)}function ai(t){return{ts:0,messages:[],bindings:t||[],level:{label:"",value:0}}}function Dl(t){var e={type:t.constructor.name,msg:t.message,stack:t.stack};for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e}function xl(t){return typeof t.timestamp=="function"?t.timestamp:t.timestamp===!1?mo:wo}function tn(){return{}}function ci(t){return t}function Ir(){}function mo(){return!1}function wo(){return Date.now()}function Sl(){return Math.round(Date.now()/1e3)}function Ol(){return new Date(Date.now()).toISOString()}function Al(){function t(e){return typeof e<"u"&&e}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return t(self)||t(window)||t(this)||{}}}var rn={},ui=function(t,e){return ui=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ui(t,e)};function Il(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ui(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var hi=function(){return hi=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},hi.apply(this,arguments)};function Ll(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function Cl(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(c=t[u])&&(s=(i<3?c(s):i>3?c(e,r,s):c(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}function Tl(t,e){return function(r,n){e(r,n,t)}}function Nl(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function Pl(t,e,r,n){function i(s){return s instanceof r?s:new r(function(c){c(s)})}return new(r||(r=Promise))(function(s,c){function u(p){try{l(n.next(p))}catch(E){c(E)}}function h(p){try{l(n.throw(p))}catch(E){c(E)}}function l(p){p.done?s(p.value):i(p.value).then(u,h)}l((n=n.apply(t,e||[])).next())})}function Rl(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(l){return function(p){return h([l,p])}}function h(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=l[0]&2?i.return:l[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,l[1])).done)return s;switch(i=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){r.label=l[1];break}if(l[0]===6&&r.label<s[1]){r.label=s[1],s=l;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(l);break}s[2]&&r.ops.pop(),r.trys.pop();continue}l=e.call(t,r)}catch(p){l=[6,p],i=0}finally{n=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var fi=Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]};function Fl(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&fi(e,t,r)}function li(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Eo(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,s=[],c;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(u){c={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(c)throw c.error}}return s}function Ul(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Eo(arguments[e]));return t}function Ml(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),i=0,e=0;e<r;e++)for(var s=arguments[e],c=0,u=s.length;c<u;c++,i++)n[i]=s[c];return n}function jl(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,s;n<i;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))}function Lr(t){return this instanceof Lr?(this.v=t,this):new Lr(t)}function $l(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,s=[];return i={},c("next"),c("throw"),c("return"),i[Symbol.asyncIterator]=function(){return this},i;function c(T){n[T]&&(i[T]=function(w){return new Promise(function(b,F){s.push([T,w,b,F])>1||u(T,w)})})}function u(T,w){try{h(n[T](w))}catch(b){E(s[0][3],b)}}function h(T){T.value instanceof Lr?Promise.resolve(T.value.v).then(l,p):E(s[0][2],T)}function l(T){u("next",T)}function p(T){u("throw",T)}function E(T,w){T(w),s.shift(),s.length&&u(s[0][0],s[0][1])}}function Bl(t){var e,r;return e={},n("next"),n("throw",function(i){throw i}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(i,s){e[i]=t[i]?function(c){return(r=!r)?{value:Lr(t[i](c)),done:i==="return"}:s?s(c):c}:s}}function zl(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof li=="function"?li(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(c){return new Promise(function(u,h){c=t[s](c),i(u,h,c.done,c.value)})}}function i(s,c,u,h){Promise.resolve(h).then(function(l){s({value:l,done:u})},c)}}function Hl(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var Kl=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function ql(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&fi(e,t,r);return Kl(e,t),e}function Vl(t){return t&&t.__esModule?t:{default:t}}function Gl(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}function Wl(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r}function kl(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}var Yl=Object.freeze({__proto__:null,__extends:Il,get __assign(){return hi},__rest:Ll,__decorate:Cl,__param:Tl,__metadata:Nl,__awaiter:Pl,__generator:Rl,__createBinding:fi,__exportStar:Fl,__values:li,__read:Eo,__spread:Ul,__spreadArrays:Ml,__spreadArray:jl,__await:Lr,__asyncGenerator:$l,__asyncDelegator:Bl,__asyncValues:zl,__makeTemplateObject:Hl,__importStar:ql,__importDefault:Vl,__classPrivateFieldGet:Gl,__classPrivateFieldSet:Wl,__classPrivateFieldIn:kl}),di=wn(Yl),nn={exports:{}},Do;function Jl(){return Do||(Do=1,function(){var t;function e(){}t=e,t.prototype.getItem=function(r){return this.hasOwnProperty(r)?String(this[r]):null},t.prototype.setItem=function(r,n){this[r]=String(n)},t.prototype.removeItem=function(r){delete this[r]},t.prototype.clear=function(){var r=this;Object.keys(r).forEach(function(n){r[n]=void 0,delete r[n]})},t.prototype.key=function(r){return r=r||0,Object.keys(this)[r]},t.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),Z.localStorage?nn.exports=localStorage:nn.exports=new e}()),nn.exports}var Cr={},xo;function So(){if(xo)return Cr;xo=1,Object.defineProperty(Cr,"__esModule",{value:!0});function t(r){if(typeof r!="string")throw new Error(`Cannot safe json parse value of type ${typeof r}`);try{return JSON.parse(r)}catch{return r}}Cr.safeJsonParse=t;function e(r){return typeof r=="string"?r:JSON.stringify(r,(n,i)=>typeof i>"u"?null:i)}return Cr.safeJsonStringify=e,Cr}var pi={},Tr={},Oo;function Xl(){if(Oo)return Tr;Oo=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.IKeyValueStorage=void 0;class t{}return Tr.IKeyValueStorage=t,Tr}var Nr={},Ao;function Zl(){if(Ao)return Nr;Ao=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.parseEntry=void 0;const t=So();function e(r){var n;return[r[0],t.safeJsonParse((n=r[1])!==null&&n!==void 0?n:"")]}return Nr.parseEntry=e,Nr}var Io;function Ql(){return Io||(Io=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=di;e.__exportStar(Xl(),t),e.__exportStar(Zl(),t)}(pi)),pi}Object.defineProperty(rn,"__esModule",{value:!0}),rn.KeyValueStorage=void 0;const hr=di,ed=hr.__importDefault(Jl()),Lo=So(),td=Ql();class Co{constructor(){this.localStorage=ed.default}getKeys(){return hr.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return hr.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(td.parseEntry)})}getItem(e){return hr.__awaiter(this,void 0,void 0,function*(){const r=this.localStorage.getItem(e);if(r!==null)return Lo.safeJsonParse(r)})}setItem(e,r){return hr.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(e,Lo.safeJsonStringify(r))})}removeItem(e){return hr.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(e)})}}rn.KeyValueStorage=Co;var rd=rn.default=Co,Pr={},sn={},gi={},on={};class Jt{}var nd=Object.freeze({__proto__:null,IEvents:Jt}),id=wn(nd);Object.defineProperty(on,"__esModule",{value:!0}),on.IHeartBeat=void 0;const sd=id;class od extends sd.IEvents{constructor(e){super()}}on.IHeartBeat=od,function(t){var e=Z&&Z.__createBinding||(Object.create?function(n,i,s,c){c===void 0&&(c=s),Object.defineProperty(n,c,{enumerable:!0,get:function(){return i[s]}})}:function(n,i,s,c){c===void 0&&(c=s),n[c]=i[s]}),r=Z&&Z.__exportStar||function(n,i){for(var s in n)s!=="default"&&!i.hasOwnProperty(s)&&e(i,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(on,t)}(gi);var vi={},fr={};Object.defineProperty(fr,"__esModule",{value:!0}),fr.HEARTBEAT_EVENTS=fr.HEARTBEAT_INTERVAL=void 0;const ad=Le;fr.HEARTBEAT_INTERVAL=ad.FIVE_SECONDS,fr.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"},function(t){var e=Z&&Z.__createBinding||(Object.create?function(n,i,s,c){c===void 0&&(c=s),Object.defineProperty(n,c,{enumerable:!0,get:function(){return i[s]}})}:function(n,i,s,c){c===void 0&&(c=s),n[c]=i[s]}),r=Z&&Z.__exportStar||function(n,i){for(var s in n)s!=="default"&&!i.hasOwnProperty(s)&&e(i,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(fr,t)}(vi);var yi=Z&&Z.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(c){c(s)})}return new(r||(r=Promise))(function(s,c){function u(p){try{l(n.next(p))}catch(E){c(E)}}function h(p){try{l(n.throw(p))}catch(E){c(E)}}function l(p){p.done?s(p.value):i(p.value).then(u,h)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(sn,"__esModule",{value:!0}),sn.HeartBeat=void 0;const cd=vr,ud=Le,hd=gi,_i=vi;class bi extends hd.IHeartBeat{constructor(e){super(e),this.events=new cd.EventEmitter,this.interval=_i.HEARTBEAT_INTERVAL,this.interval=e?.interval||_i.HEARTBEAT_INTERVAL}static init(e){return yi(this,void 0,void 0,function*(){const r=new bi(e);return yield r.init(),r})}init(){return yi(this,void 0,void 0,function*(){yield this.initialize()})}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}off(e,r){this.events.off(e,r)}removeListener(e,r){this.events.removeListener(e,r)}initialize(){return yi(this,void 0,void 0,function*(){setInterval(()=>this.pulse(),ud.toMiliseconds(this.interval))})}pulse(){this.events.emit(_i.HEARTBEAT_EVENTS.pulse)}}sn.HeartBeat=bi,function(t){var e=Z&&Z.__createBinding||(Object.create?function(n,i,s,c){c===void 0&&(c=s),Object.defineProperty(n,c,{enumerable:!0,get:function(){return i[s]}})}:function(n,i,s,c){c===void 0&&(c=s),n[c]=i[s]}),r=Z&&Z.__exportStar||function(n,i){for(var s in n)s!=="default"&&!i.hasOwnProperty(s)&&e(i,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(sn,t),r(gi,t),r(vi,t)}(Pr);var Oe={},Xt={},To;function No(){return To||(To=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.PINO_CUSTOM_CONTEXT_KEY=Xt.PINO_LOGGER_DEFAULTS=void 0,Xt.PINO_LOGGER_DEFAULTS={level:"info"},Xt.PINO_CUSTOM_CONTEXT_KEY="custom_context"),Xt}var ct={},Po;function fd(){if(Po)return ct;Po=1,Object.defineProperty(ct,"__esModule",{value:!0}),ct.generateChildLogger=ct.formatChildLoggerContext=ct.getLoggerContext=ct.setBrowserLoggerContext=ct.getBrowserLoggerContext=ct.getDefaultLoggerOptions=void 0;const t=No();function e(u){return Object.assign(Object.assign({},u),{level:u?.level||t.PINO_LOGGER_DEFAULTS.level})}ct.getDefaultLoggerOptions=e;function r(u,h=t.PINO_CUSTOM_CONTEXT_KEY){return u[h]||""}ct.getBrowserLoggerContext=r;function n(u,h,l=t.PINO_CUSTOM_CONTEXT_KEY){return u[l]=h,u}ct.setBrowserLoggerContext=n;function i(u,h=t.PINO_CUSTOM_CONTEXT_KEY){let l="";return typeof u.bindings>"u"?l=r(u,h):l=u.bindings().context||"",l}ct.getLoggerContext=i;function s(u,h,l=t.PINO_CUSTOM_CONTEXT_KEY){const p=i(u,l);return p.trim()?`${p}/${h}`:h}ct.formatChildLoggerContext=s;function c(u,h,l=t.PINO_CUSTOM_CONTEXT_KEY){const p=s(u,h,l),E=u.child({context:p});return n(E,p,l)}return ct.generateChildLogger=c,ct}(function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=di;e.__exportStar(No(),t),e.__exportStar(fd(),t)})(Oe);class ld extends Jt{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}}class dd extends Jt{constructor(e,r){super(),this.core=e,this.logger=r,this.records=new Map}}class pd{constructor(e,r){this.logger=e,this.core=r}}class gd extends Jt{constructor(e,r){super(),this.relayer=e,this.logger=r}}class vd extends Jt{constructor(e){super()}}class yd{constructor(e,r,n,i){this.core=e,this.logger=r,this.name=n}}class _d extends Jt{constructor(e,r){super(),this.relayer=e,this.logger=r}}function qe(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}var bd=qe;qe.EventEmitter=qe,qe.prototype._events=void 0,qe.prototype._maxListeners=void 0,qe.defaultMaxListeners=10,qe.prototype.setMaxListeners=function(t){if(!md(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},qe.prototype.emit=function(t){var e,r,n,i,s,c;if(this._events||(this._events={}),t==="error"&&(!this._events.error||Rr(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;var u=new Error('Uncaught, unspecified "error" event. ('+e+")");throw u.context=e,u}if(r=this._events[t],Ro(r))return!1;if(Rt(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),r.apply(this,i)}else if(Rr(r))for(i=Array.prototype.slice.call(arguments,1),c=r.slice(),n=c.length,s=0;s<n;s++)c[s].apply(this,i);return!0},qe.prototype.addListener=function(t,e){var r;if(!Rt(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,Rt(e.listener)?e.listener:e),this._events[t]?Rr(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,Rr(this._events[t])&&!this._events[t].warned&&(Ro(this._maxListeners)?r=qe.defaultMaxListeners:r=this._maxListeners,r&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),typeof console.trace=="function"&&console.trace())),this},qe.prototype.on=qe.prototype.addListener,qe.prototype.once=function(t,e){if(!Rt(e))throw TypeError("listener must be a function");var r=!1;function n(){this.removeListener(t,n),r||(r=!0,e.apply(this,arguments))}return n.listener=e,this.on(t,n),this},qe.prototype.removeListener=function(t,e){var r,n,i,s;if(!Rt(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(r=this._events[t],i=r.length,n=-1,r===e||Rt(r.listener)&&r.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(Rr(r)){for(s=i;s-- >0;)if(r[s]===e||r[s].listener&&r[s].listener===e){n=s;break}if(n<0)return this;r.length===1?(r.length=0,delete this._events[t]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},qe.prototype.removeAllListeners=function(t){var e,r;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[t]&&delete this._events[t],this;if(arguments.length===0){for(e in this._events)e!=="removeListener"&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],Rt(r))this.removeListener(t,r);else if(r)for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},qe.prototype.listeners=function(t){var e;return!this._events||!this._events[t]?e=[]:Rt(this._events[t])?e=[this._events[t]]:e=this._events[t].slice(),e},qe.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(Rt(e))return 1;if(e)return e.length}return 0},qe.listenerCount=function(t,e){return t.listenerCount(e)};function Rt(t){return typeof t=="function"}function md(t){return typeof t=="number"}function Rr(t){return typeof t=="object"&&t!==null}function Ro(t){return t===void 0}class wd{constructor(e){this.opts=e,this.protocol="wc",this.version=2}}class O0 extends bd.EventEmitter{constructor(){super()}}class Ed{constructor(e){this.client=e}}class Dd extends Jt{constructor(e,r){super(),this.core=e,this.logger=r}}var mi={},Fo={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=re,r=pt;t.DIGEST_LENGTH=64,t.BLOCK_SIZE=128;var n=function(){function u(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return u.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},u.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},u.prototype.clean=function(){r.wipe(this._buffer),r.wipe(this._tempHi),r.wipe(this._tempLo),this.reset()},u.prototype.update=function(h,l){if(l===void 0&&(l=h.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var p=0;if(this._bytesHashed+=l,this._bufferLength>0){for(;this._bufferLength<t.BLOCK_SIZE&&l>0;)this._buffer[this._bufferLength++]=h[p++],l--;this._bufferLength===this.blockSize&&(s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(l>=this.blockSize&&(p=s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,h,p,l),l%=this.blockSize);l>0;)this._buffer[this._bufferLength++]=h[p++],l--;return this},u.prototype.finish=function(h){if(!this._finished){var l=this._bytesHashed,p=this._bufferLength,E=l/536870912|0,T=l<<3,w=l%128<112?128:256;this._buffer[p]=128;for(var b=p+1;b<w-8;b++)this._buffer[b]=0;e.writeUint32BE(E,this._buffer,w-8),e.writeUint32BE(T,this._buffer,w-4),s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,w),this._finished=!0}for(var b=0;b<this.digestLength/8;b++)e.writeUint32BE(this._stateHi[b],h,b*8),e.writeUint32BE(this._stateLo[b],h,b*8+4);return this},u.prototype.digest=function(){var h=new Uint8Array(this.digestLength);return this.finish(h),h},u.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},u.prototype.restoreState=function(h){return this._stateHi.set(h.stateHi),this._stateLo.set(h.stateLo),this._bufferLength=h.bufferLength,h.buffer&&this._buffer.set(h.buffer),this._bytesHashed=h.bytesHashed,this._finished=!1,this},u.prototype.cleanSavedState=function(h){r.wipe(h.stateHi),r.wipe(h.stateLo),h.buffer&&r.wipe(h.buffer),h.bufferLength=0,h.bytesHashed=0},u}();t.SHA512=n;var i=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function s(u,h,l,p,E,T,w){for(var b=l[0],F=l[1],y=l[2],O=l[3],N=l[4],L=l[5],S=l[6],C=l[7],m=p[0],o=p[1],g=p[2],B=p[3],q=p[4],V=p[5],J=p[6],X=p[7],f,_,M,K,R,P,j,$;w>=128;){for(var Q=0;Q<16;Q++){var H=8*Q+T;u[Q]=e.readUint32BE(E,H),h[Q]=e.readUint32BE(E,H+4)}for(var Q=0;Q<80;Q++){var ee=b,k=F,ae=y,I=O,A=N,D=L,a=S,v=C,z=m,Y=o,fe=g,ye=B,de=q,me=V,Ue=J,Te=X;if(f=C,_=X,R=_&65535,P=_>>>16,j=f&65535,$=f>>>16,f=(N>>>14|q<<32-14)^(N>>>18|q<<32-18)^(q>>>41-32|N<<32-(41-32)),_=(q>>>14|N<<32-14)^(q>>>18|N<<32-18)^(N>>>41-32|q<<32-(41-32)),R+=_&65535,P+=_>>>16,j+=f&65535,$+=f>>>16,f=N&L^~N&S,_=q&V^~q&J,R+=_&65535,P+=_>>>16,j+=f&65535,$+=f>>>16,f=i[Q*2],_=i[Q*2+1],R+=_&65535,P+=_>>>16,j+=f&65535,$+=f>>>16,f=u[Q%16],_=h[Q%16],R+=_&65535,P+=_>>>16,j+=f&65535,$+=f>>>16,P+=R>>>16,j+=P>>>16,$+=j>>>16,M=j&65535|$<<16,K=R&65535|P<<16,f=M,_=K,R=_&65535,P=_>>>16,j=f&65535,$=f>>>16,f=(b>>>28|m<<32-28)^(m>>>34-32|b<<32-(34-32))^(m>>>39-32|b<<32-(39-32)),_=(m>>>28|b<<32-28)^(b>>>34-32|m<<32-(34-32))^(b>>>39-32|m<<32-(39-32)),R+=_&65535,P+=_>>>16,j+=f&65535,$+=f>>>16,f=b&F^b&y^F&y,_=m&o^m&g^o&g,R+=_&65535,P+=_>>>16,j+=f&65535,$+=f>>>16,P+=R>>>16,j+=P>>>16,$+=j>>>16,v=j&65535|$<<16,Te=R&65535|P<<16,f=I,_=ye,R=_&65535,P=_>>>16,j=f&65535,$=f>>>16,f=M,_=K,R+=_&65535,P+=_>>>16,j+=f&65535,$+=f>>>16,P+=R>>>16,j+=P>>>16,$+=j>>>16,I=j&65535|$<<16,ye=R&65535|P<<16,F=ee,y=k,O=ae,N=I,L=A,S=D,C=a,b=v,o=z,g=Y,B=fe,q=ye,V=de,J=me,X=Ue,m=Te,Q%16===15)for(var H=0;H<16;H++)f=u[H],_=h[H],R=_&65535,P=_>>>16,j=f&65535,$=f>>>16,f=u[(H+9)%16],_=h[(H+9)%16],R+=_&65535,P+=_>>>16,j+=f&65535,$+=f>>>16,M=u[(H+1)%16],K=h[(H+1)%16],f=(M>>>1|K<<32-1)^(M>>>8|K<<32-8)^M>>>7,_=(K>>>1|M<<32-1)^(K>>>8|M<<32-8)^(K>>>7|M<<32-7),R+=_&65535,P+=_>>>16,j+=f&65535,$+=f>>>16,M=u[(H+14)%16],K=h[(H+14)%16],f=(M>>>19|K<<32-19)^(K>>>61-32|M<<32-(61-32))^M>>>6,_=(K>>>19|M<<32-19)^(M>>>61-32|K<<32-(61-32))^(K>>>6|M<<32-6),R+=_&65535,P+=_>>>16,j+=f&65535,$+=f>>>16,P+=R>>>16,j+=P>>>16,$+=j>>>16,u[H]=j&65535|$<<16,h[H]=R&65535|P<<16}f=b,_=m,R=_&65535,P=_>>>16,j=f&65535,$=f>>>16,f=l[0],_=p[0],R+=_&65535,P+=_>>>16,j+=f&65535,$+=f>>>16,P+=R>>>16,j+=P>>>16,$+=j>>>16,l[0]=b=j&65535|$<<16,p[0]=m=R&65535|P<<16,f=F,_=o,R=_&65535,P=_>>>16,j=f&65535,$=f>>>16,f=l[1],_=p[1],R+=_&65535,P+=_>>>16,j+=f&65535,$+=f>>>16,P+=R>>>16,j+=P>>>16,$+=j>>>16,l[1]=F=j&65535|$<<16,p[1]=o=R&65535|P<<16,f=y,_=g,R=_&65535,P=_>>>16,j=f&65535,$=f>>>16,f=l[2],_=p[2],R+=_&65535,P+=_>>>16,j+=f&65535,$+=f>>>16,P+=R>>>16,j+=P>>>16,$+=j>>>16,l[2]=y=j&65535|$<<16,p[2]=g=R&65535|P<<16,f=O,_=B,R=_&65535,P=_>>>16,j=f&65535,$=f>>>16,f=l[3],_=p[3],R+=_&65535,P+=_>>>16,j+=f&65535,$+=f>>>16,P+=R>>>16,j+=P>>>16,$+=j>>>16,l[3]=O=j&65535|$<<16,p[3]=B=R&65535|P<<16,f=N,_=q,R=_&65535,P=_>>>16,j=f&65535,$=f>>>16,f=l[4],_=p[4],R+=_&65535,P+=_>>>16,j+=f&65535,$+=f>>>16,P+=R>>>16,j+=P>>>16,$+=j>>>16,l[4]=N=j&65535|$<<16,p[4]=q=R&65535|P<<16,f=L,_=V,R=_&65535,P=_>>>16,j=f&65535,$=f>>>16,f=l[5],_=p[5],R+=_&65535,P+=_>>>16,j+=f&65535,$+=f>>>16,P+=R>>>16,j+=P>>>16,$+=j>>>16,l[5]=L=j&65535|$<<16,p[5]=V=R&65535|P<<16,f=S,_=J,R=_&65535,P=_>>>16,j=f&65535,$=f>>>16,f=l[6],_=p[6],R+=_&65535,P+=_>>>16,j+=f&65535,$+=f>>>16,P+=R>>>16,j+=P>>>16,$+=j>>>16,l[6]=S=j&65535|$<<16,p[6]=J=R&65535|P<<16,f=C,_=X,R=_&65535,P=_>>>16,j=f&65535,$=f>>>16,f=l[7],_=p[7],R+=_&65535,P+=_>>>16,j+=f&65535,$+=f>>>16,P+=R>>>16,j+=P>>>16,$+=j>>>16,l[7]=C=j&65535|$<<16,p[7]=X=R&65535|P<<16,T+=128,w-=128}return T}function c(u){var h=new n;h.update(u);var l=h.digest();return h.clean(),l}t.hash=c})(Fo),function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=nr,r=Fo,n=pt;t.SIGNATURE_LENGTH=64,t.PUBLIC_KEY_LENGTH=32,t.SECRET_KEY_LENGTH=64,t.SEED_LENGTH=32;function i(I){var A=new Float64Array(16);if(I)for(var D=0;D<I.length;D++)A[D]=I[D];return A}var s=new Uint8Array(32);s[0]=9;var c=i(),u=i([1]),h=i([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),l=i([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),p=i([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),E=i([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),T=i([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function w(I,A){for(var D=0;D<16;D++)I[D]=A[D]|0}function b(I){for(var A=1,D=0;D<16;D++){var a=I[D]+A+65535;A=Math.floor(a/65536),I[D]=a-A*65536}I[0]+=A-1+37*(A-1)}function F(I,A,D){for(var a=~(D-1),v=0;v<16;v++){var z=a&(I[v]^A[v]);I[v]^=z,A[v]^=z}}function y(I,A){for(var D=i(),a=i(),v=0;v<16;v++)a[v]=A[v];b(a),b(a),b(a);for(var z=0;z<2;z++){D[0]=a[0]-65517;for(var v=1;v<15;v++)D[v]=a[v]-65535-(D[v-1]>>16&1),D[v-1]&=65535;D[15]=a[15]-32767-(D[14]>>16&1);var Y=D[15]>>16&1;D[14]&=65535,F(a,D,1-Y)}for(var v=0;v<16;v++)I[2*v]=a[v]&255,I[2*v+1]=a[v]>>8}function O(I,A){for(var D=0,a=0;a<32;a++)D|=I[a]^A[a];return(1&D-1>>>8)-1}function N(I,A){var D=new Uint8Array(32),a=new Uint8Array(32);return y(D,I),y(a,A),O(D,a)}function L(I){var A=new Uint8Array(32);return y(A,I),A[0]&1}function S(I,A){for(var D=0;D<16;D++)I[D]=A[2*D]+(A[2*D+1]<<8);I[15]&=32767}function C(I,A,D){for(var a=0;a<16;a++)I[a]=A[a]+D[a]}function m(I,A,D){for(var a=0;a<16;a++)I[a]=A[a]-D[a]}function o(I,A,D){var a,v,z=0,Y=0,fe=0,ye=0,de=0,me=0,Ue=0,Te=0,ve=0,pe=0,le=0,ue=0,ce=0,oe=0,se=0,te=0,he=0,ge=0,ne=0,_e=0,be=0,Ee=0,De=0,we=0,xt=0,Tt=0,Kt=0,gt=0,Qt=0,zr=0,pn=0,Me=D[0],Ne=D[1],je=D[2],$e=D[3],Be=D[4],Pe=D[5],We=D[6],ke=D[7],Ye=D[8],Je=D[9],Xe=D[10],He=D[11],ze=D[12],Ie=D[13],Ze=D[14],Qe=D[15];a=A[0],z+=a*Me,Y+=a*Ne,fe+=a*je,ye+=a*$e,de+=a*Be,me+=a*Pe,Ue+=a*We,Te+=a*ke,ve+=a*Ye,pe+=a*Je,le+=a*Xe,ue+=a*He,ce+=a*ze,oe+=a*Ie,se+=a*Ze,te+=a*Qe,a=A[1],Y+=a*Me,fe+=a*Ne,ye+=a*je,de+=a*$e,me+=a*Be,Ue+=a*Pe,Te+=a*We,ve+=a*ke,pe+=a*Ye,le+=a*Je,ue+=a*Xe,ce+=a*He,oe+=a*ze,se+=a*Ie,te+=a*Ze,he+=a*Qe,a=A[2],fe+=a*Me,ye+=a*Ne,de+=a*je,me+=a*$e,Ue+=a*Be,Te+=a*Pe,ve+=a*We,pe+=a*ke,le+=a*Ye,ue+=a*Je,ce+=a*Xe,oe+=a*He,se+=a*ze,te+=a*Ie,he+=a*Ze,ge+=a*Qe,a=A[3],ye+=a*Me,de+=a*Ne,me+=a*je,Ue+=a*$e,Te+=a*Be,ve+=a*Pe,pe+=a*We,le+=a*ke,ue+=a*Ye,ce+=a*Je,oe+=a*Xe,se+=a*He,te+=a*ze,he+=a*Ie,ge+=a*Ze,ne+=a*Qe,a=A[4],de+=a*Me,me+=a*Ne,Ue+=a*je,Te+=a*$e,ve+=a*Be,pe+=a*Pe,le+=a*We,ue+=a*ke,ce+=a*Ye,oe+=a*Je,se+=a*Xe,te+=a*He,he+=a*ze,ge+=a*Ie,ne+=a*Ze,_e+=a*Qe,a=A[5],me+=a*Me,Ue+=a*Ne,Te+=a*je,ve+=a*$e,pe+=a*Be,le+=a*Pe,ue+=a*We,ce+=a*ke,oe+=a*Ye,se+=a*Je,te+=a*Xe,he+=a*He,ge+=a*ze,ne+=a*Ie,_e+=a*Ze,be+=a*Qe,a=A[6],Ue+=a*Me,Te+=a*Ne,ve+=a*je,pe+=a*$e,le+=a*Be,ue+=a*Pe,ce+=a*We,oe+=a*ke,se+=a*Ye,te+=a*Je,he+=a*Xe,ge+=a*He,ne+=a*ze,_e+=a*Ie,be+=a*Ze,Ee+=a*Qe,a=A[7],Te+=a*Me,ve+=a*Ne,pe+=a*je,le+=a*$e,ue+=a*Be,ce+=a*Pe,oe+=a*We,se+=a*ke,te+=a*Ye,he+=a*Je,ge+=a*Xe,ne+=a*He,_e+=a*ze,be+=a*Ie,Ee+=a*Ze,De+=a*Qe,a=A[8],ve+=a*Me,pe+=a*Ne,le+=a*je,ue+=a*$e,ce+=a*Be,oe+=a*Pe,se+=a*We,te+=a*ke,he+=a*Ye,ge+=a*Je,ne+=a*Xe,_e+=a*He,be+=a*ze,Ee+=a*Ie,De+=a*Ze,we+=a*Qe,a=A[9],pe+=a*Me,le+=a*Ne,ue+=a*je,ce+=a*$e,oe+=a*Be,se+=a*Pe,te+=a*We,he+=a*ke,ge+=a*Ye,ne+=a*Je,_e+=a*Xe,be+=a*He,Ee+=a*ze,De+=a*Ie,we+=a*Ze,xt+=a*Qe,a=A[10],le+=a*Me,ue+=a*Ne,ce+=a*je,oe+=a*$e,se+=a*Be,te+=a*Pe,he+=a*We,ge+=a*ke,ne+=a*Ye,_e+=a*Je,be+=a*Xe,Ee+=a*He,De+=a*ze,we+=a*Ie,xt+=a*Ze,Tt+=a*Qe,a=A[11],ue+=a*Me,ce+=a*Ne,oe+=a*je,se+=a*$e,te+=a*Be,he+=a*Pe,ge+=a*We,ne+=a*ke,_e+=a*Ye,be+=a*Je,Ee+=a*Xe,De+=a*He,we+=a*ze,xt+=a*Ie,Tt+=a*Ze,Kt+=a*Qe,a=A[12],ce+=a*Me,oe+=a*Ne,se+=a*je,te+=a*$e,he+=a*Be,ge+=a*Pe,ne+=a*We,_e+=a*ke,be+=a*Ye,Ee+=a*Je,De+=a*Xe,we+=a*He,xt+=a*ze,Tt+=a*Ie,Kt+=a*Ze,gt+=a*Qe,a=A[13],oe+=a*Me,se+=a*Ne,te+=a*je,he+=a*$e,ge+=a*Be,ne+=a*Pe,_e+=a*We,be+=a*ke,Ee+=a*Ye,De+=a*Je,we+=a*Xe,xt+=a*He,Tt+=a*ze,Kt+=a*Ie,gt+=a*Ze,Qt+=a*Qe,a=A[14],se+=a*Me,te+=a*Ne,he+=a*je,ge+=a*$e,ne+=a*Be,_e+=a*Pe,be+=a*We,Ee+=a*ke,De+=a*Ye,we+=a*Je,xt+=a*Xe,Tt+=a*He,Kt+=a*ze,gt+=a*Ie,Qt+=a*Ze,zr+=a*Qe,a=A[15],te+=a*Me,he+=a*Ne,ge+=a*je,ne+=a*$e,_e+=a*Be,be+=a*Pe,Ee+=a*We,De+=a*ke,we+=a*Ye,xt+=a*Je,Tt+=a*Xe,Kt+=a*He,gt+=a*ze,Qt+=a*Ie,zr+=a*Ze,pn+=a*Qe,z+=38*he,Y+=38*ge,fe+=38*ne,ye+=38*_e,de+=38*be,me+=38*Ee,Ue+=38*De,Te+=38*we,ve+=38*xt,pe+=38*Tt,le+=38*Kt,ue+=38*gt,ce+=38*Qt,oe+=38*zr,se+=38*pn,v=1,a=z+v+65535,v=Math.floor(a/65536),z=a-v*65536,a=Y+v+65535,v=Math.floor(a/65536),Y=a-v*65536,a=fe+v+65535,v=Math.floor(a/65536),fe=a-v*65536,a=ye+v+65535,v=Math.floor(a/65536),ye=a-v*65536,a=de+v+65535,v=Math.floor(a/65536),de=a-v*65536,a=me+v+65535,v=Math.floor(a/65536),me=a-v*65536,a=Ue+v+65535,v=Math.floor(a/65536),Ue=a-v*65536,a=Te+v+65535,v=Math.floor(a/65536),Te=a-v*65536,a=ve+v+65535,v=Math.floor(a/65536),ve=a-v*65536,a=pe+v+65535,v=Math.floor(a/65536),pe=a-v*65536,a=le+v+65535,v=Math.floor(a/65536),le=a-v*65536,a=ue+v+65535,v=Math.floor(a/65536),ue=a-v*65536,a=ce+v+65535,v=Math.floor(a/65536),ce=a-v*65536,a=oe+v+65535,v=Math.floor(a/65536),oe=a-v*65536,a=se+v+65535,v=Math.floor(a/65536),se=a-v*65536,a=te+v+65535,v=Math.floor(a/65536),te=a-v*65536,z+=v-1+37*(v-1),v=1,a=z+v+65535,v=Math.floor(a/65536),z=a-v*65536,a=Y+v+65535,v=Math.floor(a/65536),Y=a-v*65536,a=fe+v+65535,v=Math.floor(a/65536),fe=a-v*65536,a=ye+v+65535,v=Math.floor(a/65536),ye=a-v*65536,a=de+v+65535,v=Math.floor(a/65536),de=a-v*65536,a=me+v+65535,v=Math.floor(a/65536),me=a-v*65536,a=Ue+v+65535,v=Math.floor(a/65536),Ue=a-v*65536,a=Te+v+65535,v=Math.floor(a/65536),Te=a-v*65536,a=ve+v+65535,v=Math.floor(a/65536),ve=a-v*65536,a=pe+v+65535,v=Math.floor(a/65536),pe=a-v*65536,a=le+v+65535,v=Math.floor(a/65536),le=a-v*65536,a=ue+v+65535,v=Math.floor(a/65536),ue=a-v*65536,a=ce+v+65535,v=Math.floor(a/65536),ce=a-v*65536,a=oe+v+65535,v=Math.floor(a/65536),oe=a-v*65536,a=se+v+65535,v=Math.floor(a/65536),se=a-v*65536,a=te+v+65535,v=Math.floor(a/65536),te=a-v*65536,z+=v-1+37*(v-1),I[0]=z,I[1]=Y,I[2]=fe,I[3]=ye,I[4]=de,I[5]=me,I[6]=Ue,I[7]=Te,I[8]=ve,I[9]=pe,I[10]=le,I[11]=ue,I[12]=ce,I[13]=oe,I[14]=se,I[15]=te}function g(I,A){o(I,A,A)}function B(I,A){var D=i(),a;for(a=0;a<16;a++)D[a]=A[a];for(a=253;a>=0;a--)g(D,D),a!==2&&a!==4&&o(D,D,A);for(a=0;a<16;a++)I[a]=D[a]}function q(I,A){var D=i(),a;for(a=0;a<16;a++)D[a]=A[a];for(a=250;a>=0;a--)g(D,D),a!==1&&o(D,D,A);for(a=0;a<16;a++)I[a]=D[a]}function V(I,A){var D=i(),a=i(),v=i(),z=i(),Y=i(),fe=i(),ye=i(),de=i(),me=i();m(D,I[1],I[0]),m(me,A[1],A[0]),o(D,D,me),C(a,I[0],I[1]),C(me,A[0],A[1]),o(a,a,me),o(v,I[3],A[3]),o(v,v,l),o(z,I[2],A[2]),C(z,z,z),m(Y,a,D),m(fe,z,v),C(ye,z,v),C(de,a,D),o(I[0],Y,fe),o(I[1],de,ye),o(I[2],ye,fe),o(I[3],Y,de)}function J(I,A,D){for(var a=0;a<4;a++)F(I[a],A[a],D)}function X(I,A){var D=i(),a=i(),v=i();B(v,A[2]),o(D,A[0],v),o(a,A[1],v),y(I,a),I[31]^=L(D)<<7}function f(I,A,D){w(I[0],c),w(I[1],u),w(I[2],u),w(I[3],c);for(var a=255;a>=0;--a){var v=D[a/8|0]>>(a&7)&1;J(I,A,v),V(A,I),V(I,I),J(I,A,v)}}function _(I,A){var D=[i(),i(),i(),i()];w(D[0],p),w(D[1],E),w(D[2],u),o(D[3],p,E),f(I,D,A)}function M(I){if(I.length!==t.SEED_LENGTH)throw new Error("ed25519: seed must be "+t.SEED_LENGTH+" bytes");var A=r.hash(I);A[0]&=248,A[31]&=127,A[31]|=64;var D=new Uint8Array(32),a=[i(),i(),i(),i()];_(a,A),X(D,a);var v=new Uint8Array(64);return v.set(I),v.set(D,32),{publicKey:D,secretKey:v}}t.generateKeyPairFromSeed=M;function K(I){var A=e.randomBytes(32,I),D=M(A);return n.wipe(A),D}t.generateKeyPair=K;function R(I){if(I.length!==t.SECRET_KEY_LENGTH)throw new Error("ed25519: secret key must be "+t.SECRET_KEY_LENGTH+" bytes");return new Uint8Array(I.subarray(32))}t.extractPublicKeyFromSecretKey=R;var P=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function j(I,A){var D,a,v,z;for(a=63;a>=32;--a){for(D=0,v=a-32,z=a-12;v<z;++v)A[v]+=D-16*A[a]*P[v-(a-32)],D=Math.floor((A[v]+128)/256),A[v]-=D*256;A[v]+=D,A[a]=0}for(D=0,v=0;v<32;v++)A[v]+=D-(A[31]>>4)*P[v],D=A[v]>>8,A[v]&=255;for(v=0;v<32;v++)A[v]-=D*P[v];for(a=0;a<32;a++)A[a+1]+=A[a]>>8,I[a]=A[a]&255}function $(I){for(var A=new Float64Array(64),D=0;D<64;D++)A[D]=I[D];for(var D=0;D<64;D++)I[D]=0;j(I,A)}function Q(I,A){var D=new Float64Array(64),a=[i(),i(),i(),i()],v=r.hash(I.subarray(0,32));v[0]&=248,v[31]&=127,v[31]|=64;var z=new Uint8Array(64);z.set(v.subarray(32),32);var Y=new r.SHA512;Y.update(z.subarray(32)),Y.update(A);var fe=Y.digest();Y.clean(),$(fe),_(a,fe),X(z,a),Y.reset(),Y.update(z.subarray(0,32)),Y.update(I.subarray(32)),Y.update(A);var ye=Y.digest();$(ye);for(var de=0;de<32;de++)D[de]=fe[de];for(var de=0;de<32;de++)for(var me=0;me<32;me++)D[de+me]+=ye[de]*v[me];return j(z.subarray(32),D),z}t.sign=Q;function H(I,A){var D=i(),a=i(),v=i(),z=i(),Y=i(),fe=i(),ye=i();return w(I[2],u),S(I[1],A),g(v,I[1]),o(z,v,h),m(v,v,I[2]),C(z,I[2],z),g(Y,z),g(fe,Y),o(ye,fe,Y),o(D,ye,v),o(D,D,z),q(D,D),o(D,D,v),o(D,D,z),o(D,D,z),o(I[0],D,z),g(a,I[0]),o(a,a,z),N(a,v)&&o(I[0],I[0],T),g(a,I[0]),o(a,a,z),N(a,v)?-1:(L(I[0])===A[31]>>7&&m(I[0],c,I[0]),o(I[3],I[0],I[1]),0)}function ee(I,A,D){var a=new Uint8Array(32),v=[i(),i(),i(),i()],z=[i(),i(),i(),i()];if(D.length!==t.SIGNATURE_LENGTH)throw new Error("ed25519: signature must be "+t.SIGNATURE_LENGTH+" bytes");if(H(z,I))return!1;var Y=new r.SHA512;Y.update(D.subarray(0,32)),Y.update(I),Y.update(A);var fe=Y.digest();return $(fe),f(v,z,fe),_(z,D.subarray(32)),V(v,z),X(a,v),!O(D,a)}t.verify=ee;function k(I){var A=[i(),i(),i(),i()];if(H(A,I))throw new Error("Ed25519: invalid public key");var D=i(),a=i(),v=A[1];C(D,u,v),m(a,u,v),B(a,a),o(D,D,a);var z=new Uint8Array(32);return y(z,D),z}t.convertPublicKeyToX25519=k;function ae(I){var A=r.hash(I.subarray(0,32));A[0]&=248,A[31]&=127,A[31]|=64;var D=new Uint8Array(A.subarray(0,32));return n.wipe(A),D}t.convertSecretKeyToX25519=ae}(mi);const xd="EdDSA",Sd="JWT",Uo=".",Mo="base64url",Od="utf8",Ad="utf8",Id=":",Ld="did",Cd="key",jo="base58btc",Td="z",Nd="K36",Pd=32;function an(t){return ft(ht(br(t),Od),Mo)}function $o(t){const e=ht(Nd,jo),r=Td+ft(Bn([e,t]),jo);return[Ld,Cd,r].join(Id)}function Rd(t){return ft(t,Mo)}function Fd(t){return ht([an(t.header),an(t.payload)].join(Uo),Ad)}function Ud(t){return[an(t.header),an(t.payload),Rd(t.signature)].join(Uo)}function Bo(t=nr.randomBytes(Pd)){return mi.generateKeyPairFromSeed(t)}async function Md(t,e,r,n,i=Le.fromMiliseconds(Date.now())){const s={alg:xd,typ:Sd},c=$o(n.publicKey),u=i+r,h={iss:c,sub:t,aud:e,iat:i,exp:u},l=Fd({header:s,payload:h}),p=mi.sign(n.secretKey,l);return Ud({header:s,payload:h,signature:p})}const zo=10,jd=typeof global.WebSocket<"u"?global.WebSocket:require("ws");class $d{constructor(e){if(this.url=e,this.events=new vr.EventEmitter,this.registering=!1,!Gi(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}off(e,r){this.events.off(e,r)}removeListener(e,r){this.events.removeListener(e,r)}async open(e=this.url){await this.register(e)}async close(){if(typeof this.socket>"u")throw new Error("Connection already closed");this.socket.close(),this.onClose()}async send(e,r){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(br(e))}catch(n){this.onError(e.id,n)}}register(e=this.url){if(!Gi(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){const r=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=r||this.events.listenerCount("open")>=r)&&this.events.setMaxListeners(r+1),new Promise((n,i)=>{this.events.once("register_error",s=>{this.resetMaxListeners(),i(s)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return i(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=e,this.registering=!0,new Promise((r,n)=>{const i=$i.isReactNative()?void 0:{rejectUnauthorized:!gc(e)},s=new jd(e,[],i);s.onopen=()=>{this.onOpen(s),r(s)},s.onerror=c=>{const u=this.parseError(c.error);this.events.emit("register_error",u),this.onClose(),n(u)}})}onOpen(e){e.onmessage=r=>this.onPayload(r),e.onclose=()=>this.onClose(),e.onerror=r=>{const n=this.parseError(r.error);this.events.emit("error",n)},this.socket=e,this.registering=!1,this.events.emit("open")}onClose(){this.socket=void 0,this.registering=!1,this.events.emit("close")}onPayload(e){if(typeof e.data>"u")return;const r=typeof e.data=="string"?In(e.data):e.data;this.events.emit("payload",r)}onError(e,r){const n=this.parseError(r),i=n.message||n.toString(),s=qr(e,i);this.events.emit("payload",s)}parseError(e,r=this.url){return ji(e,r,"WS")}resetMaxListeners(){this.events.getMaxListeners()>zo&&this.events.setMaxListeners(zo)}}var wi={exports:{}};(function(t,e){var r=200,n="__lodash_hash_undefined__",i=1,s=2,c=9007199254740991,u="[object Arguments]",h="[object Array]",l="[object AsyncFunction]",p="[object Boolean]",E="[object Date]",T="[object Error]",w="[object Function]",b="[object GeneratorFunction]",F="[object Map]",y="[object Number]",O="[object Null]",N="[object Object]",L="[object Promise]",S="[object Proxy]",C="[object RegExp]",m="[object Set]",o="[object String]",g="[object Symbol]",B="[object Undefined]",q="[object WeakMap]",V="[object ArrayBuffer]",J="[object DataView]",X="[object Float32Array]",f="[object Float64Array]",_="[object Int8Array]",M="[object Int16Array]",K="[object Int32Array]",R="[object Uint8Array]",P="[object Uint8ClampedArray]",j="[object Uint16Array]",$="[object Uint32Array]",Q=/[\\^$.*+?()[\]{}|]/g,H=/^\[object .+?Constructor\]$/,ee=/^(?:0|[1-9]\d*)$/,k={};k[X]=k[f]=k[_]=k[M]=k[K]=k[R]=k[P]=k[j]=k[$]=!0,k[u]=k[h]=k[V]=k[p]=k[J]=k[E]=k[T]=k[w]=k[F]=k[y]=k[N]=k[C]=k[m]=k[o]=k[q]=!1;var ae=typeof Z=="object"&&Z&&Z.Object===Object&&Z,I=typeof self=="object"&&self&&self.Object===Object&&self,A=ae||I||Function("return this")(),D=e&&!e.nodeType&&e,a=D&&!0&&t&&!t.nodeType&&t,v=a&&a.exports===D,z=v&&ae.process,Y=function(){try{return z&&z.binding&&z.binding("util")}catch{}}(),fe=Y&&Y.isTypedArray;function ye(d,x){for(var U=-1,W=d==null?0:d.length,Ae=0,ie=[];++U<W;){var Re=d[U];x(Re,U,d)&&(ie[Ae++]=Re)}return ie}function de(d,x){for(var U=-1,W=x.length,Ae=d.length;++U<W;)d[Ae+U]=x[U];return d}function me(d,x){for(var U=-1,W=d==null?0:d.length;++U<W;)if(x(d[U],U,d))return!0;return!1}function Ue(d,x){for(var U=-1,W=Array(d);++U<d;)W[U]=x(U);return W}function Te(d){return function(x){return d(x)}}function ve(d,x){return d.has(x)}function pe(d,x){return d?.[x]}function le(d){var x=-1,U=Array(d.size);return d.forEach(function(W,Ae){U[++x]=[Ae,W]}),U}function ue(d,x){return function(U){return d(x(U))}}function ce(d){var x=-1,U=Array(d.size);return d.forEach(function(W){U[++x]=W}),U}var oe=Array.prototype,se=Function.prototype,te=Object.prototype,he=A["__core-js_shared__"],ge=se.toString,ne=te.hasOwnProperty,_e=function(){var d=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}(),be=te.toString,Ee=RegExp("^"+ge.call(ne).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),De=v?A.Buffer:void 0,we=A.Symbol,xt=A.Uint8Array,Tt=te.propertyIsEnumerable,Kt=oe.splice,gt=we?we.toStringTag:void 0,Qt=Object.getOwnPropertySymbols,zr=De?De.isBuffer:void 0,pn=ue(Object.keys,Object),Me=gr(A,"DataView"),Ne=gr(A,"Map"),je=gr(A,"Promise"),$e=gr(A,"Set"),Be=gr(A,"WeakMap"),Pe=gr(Object,"create"),We=tr(Me),ke=tr(Ne),Ye=tr(je),Je=tr($e),Xe=tr(Be),He=we?we.prototype:void 0,ze=He?He.valueOf:void 0;function Ie(d){var x=-1,U=d==null?0:d.length;for(this.clear();++x<U;){var W=d[x];this.set(W[0],W[1])}}function Ze(){this.__data__=Pe?Pe(null):{},this.size=0}function Qe(d){var x=this.has(d)&&delete this.__data__[d];return this.size-=x?1:0,x}function Fv(d){var x=this.__data__;if(Pe){var U=x[d];return U===n?void 0:U}return ne.call(x,d)?x[d]:void 0}function Uv(d){var x=this.__data__;return Pe?x[d]!==void 0:ne.call(x,d)}function Mv(d,x){var U=this.__data__;return this.size+=this.has(d)?0:1,U[d]=Pe&&x===void 0?n:x,this}Ie.prototype.clear=Ze,Ie.prototype.delete=Qe,Ie.prototype.get=Fv,Ie.prototype.has=Uv,Ie.prototype.set=Mv;function Mt(d){var x=-1,U=d==null?0:d.length;for(this.clear();++x<U;){var W=d[x];this.set(W[0],W[1])}}function jv(){this.__data__=[],this.size=0}function $v(d){var x=this.__data__,U=vn(x,d);if(U<0)return!1;var W=x.length-1;return U==W?x.pop():Kt.call(x,U,1),--this.size,!0}function Bv(d){var x=this.__data__,U=vn(x,d);return U<0?void 0:x[U][1]}function zv(d){return vn(this.__data__,d)>-1}function Hv(d,x){var U=this.__data__,W=vn(U,d);return W<0?(++this.size,U.push([d,x])):U[W][1]=x,this}Mt.prototype.clear=jv,Mt.prototype.delete=$v,Mt.prototype.get=Bv,Mt.prototype.has=zv,Mt.prototype.set=Hv;function er(d){var x=-1,U=d==null?0:d.length;for(this.clear();++x<U;){var W=d[x];this.set(W[0],W[1])}}function Kv(){this.size=0,this.__data__={hash:new Ie,map:new(Ne||Mt),string:new Ie}}function qv(d){var x=yn(this,d).delete(d);return this.size-=x?1:0,x}function Vv(d){return yn(this,d).get(d)}function Gv(d){return yn(this,d).has(d)}function Wv(d,x){var U=yn(this,d),W=U.size;return U.set(d,x),this.size+=U.size==W?0:1,this}er.prototype.clear=Kv,er.prototype.delete=qv,er.prototype.get=Vv,er.prototype.has=Gv,er.prototype.set=Wv;function gn(d){var x=-1,U=d==null?0:d.length;for(this.__data__=new er;++x<U;)this.add(d[x])}function kv(d){return this.__data__.set(d,n),this}function Yv(d){return this.__data__.has(d)}gn.prototype.add=gn.prototype.push=kv,gn.prototype.has=Yv;function qt(d){var x=this.__data__=new Mt(d);this.size=x.size}function Jv(){this.__data__=new Mt,this.size=0}function Xv(d){var x=this.__data__,U=x.delete(d);return this.size=x.size,U}function Zv(d){return this.__data__.get(d)}function Qv(d){return this.__data__.has(d)}function e0(d,x){var U=this.__data__;if(U instanceof Mt){var W=U.__data__;if(!Ne||W.length<r-1)return W.push([d,x]),this.size=++U.size,this;U=this.__data__=new er(W)}return U.set(d,x),this.size=U.size,this}qt.prototype.clear=Jv,qt.prototype.delete=Xv,qt.prototype.get=Zv,qt.prototype.has=Qv,qt.prototype.set=e0;function t0(d,x){var U=_n(d),W=!U&&v0(d),Ae=!U&&!W&&Pi(d),ie=!U&&!W&&!Ae&&ka(d),Re=U||W||Ae||ie,et=Re?Ue(d.length,String):[],it=et.length;for(var Ce in d)(x||ne.call(d,Ce))&&!(Re&&(Ce=="length"||Ae&&(Ce=="offset"||Ce=="parent")||ie&&(Ce=="buffer"||Ce=="byteLength"||Ce=="byteOffset")||f0(Ce,it)))&&et.push(Ce);return et}function vn(d,x){for(var U=d.length;U--;)if(qa(d[U][0],x))return U;return-1}function r0(d,x,U){var W=x(d);return _n(d)?W:de(W,U(d))}function Hr(d){return d==null?d===void 0?B:O:gt&&gt in Object(d)?u0(d):g0(d)}function Ba(d){return Kr(d)&&Hr(d)==u}function za(d,x,U,W,Ae){return d===x?!0:d==null||x==null||!Kr(d)&&!Kr(x)?d!==d&&x!==x:n0(d,x,U,W,za,Ae)}function n0(d,x,U,W,Ae,ie){var Re=_n(d),et=_n(x),it=Re?h:Vt(d),Ce=et?h:Vt(x);it=it==u?N:it,Ce=Ce==u?N:Ce;var vt=it==N,St=Ce==N,at=it==Ce;if(at&&Pi(d)){if(!Pi(x))return!1;Re=!0,vt=!1}if(at&&!vt)return ie||(ie=new qt),Re||ka(d)?Ha(d,x,U,W,Ae,ie):a0(d,x,it,U,W,Ae,ie);if(!(U&i)){var _t=vt&&ne.call(d,"__wrapped__"),bt=St&&ne.call(x,"__wrapped__");if(_t||bt){var Gt=_t?d.value():d,jt=bt?x.value():x;return ie||(ie=new qt),Ae(Gt,jt,U,W,ie)}}return at?(ie||(ie=new qt),c0(d,x,U,W,Ae,ie)):!1}function i0(d){if(!Wa(d)||d0(d))return!1;var x=Va(d)?Ee:H;return x.test(tr(d))}function s0(d){return Kr(d)&&Ga(d.length)&&!!k[Hr(d)]}function o0(d){if(!p0(d))return pn(d);var x=[];for(var U in Object(d))ne.call(d,U)&&U!="constructor"&&x.push(U);return x}function Ha(d,x,U,W,Ae,ie){var Re=U&i,et=d.length,it=x.length;if(et!=it&&!(Re&&it>et))return!1;var Ce=ie.get(d);if(Ce&&ie.get(x))return Ce==x;var vt=-1,St=!0,at=U&s?new gn:void 0;for(ie.set(d,x),ie.set(x,d);++vt<et;){var _t=d[vt],bt=x[vt];if(W)var Gt=Re?W(bt,_t,vt,x,d,ie):W(_t,bt,vt,d,x,ie);if(Gt!==void 0){if(Gt)continue;St=!1;break}if(at){if(!me(x,function(jt,rr){if(!ve(at,rr)&&(_t===jt||Ae(_t,jt,U,W,ie)))return at.push(rr)})){St=!1;break}}else if(!(_t===bt||Ae(_t,bt,U,W,ie))){St=!1;break}}return ie.delete(d),ie.delete(x),St}function a0(d,x,U,W,Ae,ie,Re){switch(U){case J:if(d.byteLength!=x.byteLength||d.byteOffset!=x.byteOffset)return!1;d=d.buffer,x=x.buffer;case V:return!(d.byteLength!=x.byteLength||!ie(new xt(d),new xt(x)));case p:case E:case y:return qa(+d,+x);case T:return d.name==x.name&&d.message==x.message;case C:case o:return d==x+"";case F:var et=le;case m:var it=W&i;if(et||(et=ce),d.size!=x.size&&!it)return!1;var Ce=Re.get(d);if(Ce)return Ce==x;W|=s,Re.set(d,x);var vt=Ha(et(d),et(x),W,Ae,ie,Re);return Re.delete(d),vt;case g:if(ze)return ze.call(d)==ze.call(x)}return!1}function c0(d,x,U,W,Ae,ie){var Re=U&i,et=Ka(d),it=et.length,Ce=Ka(x),vt=Ce.length;if(it!=vt&&!Re)return!1;for(var St=it;St--;){var at=et[St];if(!(Re?at in x:ne.call(x,at)))return!1}var _t=ie.get(d);if(_t&&ie.get(x))return _t==x;var bt=!0;ie.set(d,x),ie.set(x,d);for(var Gt=Re;++St<it;){at=et[St];var jt=d[at],rr=x[at];if(W)var Ya=Re?W(rr,jt,at,x,d,ie):W(jt,rr,at,d,x,ie);if(!(Ya===void 0?jt===rr||Ae(jt,rr,U,W,ie):Ya)){bt=!1;break}Gt||(Gt=at=="constructor")}if(bt&&!Gt){var bn=d.constructor,mn=x.constructor;bn!=mn&&"constructor"in d&&"constructor"in x&&!(typeof bn=="function"&&bn instanceof bn&&typeof mn=="function"&&mn instanceof mn)&&(bt=!1)}return ie.delete(d),ie.delete(x),bt}function Ka(d){return r0(d,b0,h0)}function yn(d,x){var U=d.__data__;return l0(x)?U[typeof x=="string"?"string":"hash"]:U.map}function gr(d,x){var U=pe(d,x);return i0(U)?U:void 0}function u0(d){var x=ne.call(d,gt),U=d[gt];try{d[gt]=void 0;var W=!0}catch{}var Ae=be.call(d);return W&&(x?d[gt]=U:delete d[gt]),Ae}var h0=Qt?function(d){return d==null?[]:(d=Object(d),ye(Qt(d),function(x){return Tt.call(d,x)}))}:m0,Vt=Hr;(Me&&Vt(new Me(new ArrayBuffer(1)))!=J||Ne&&Vt(new Ne)!=F||je&&Vt(je.resolve())!=L||$e&&Vt(new $e)!=m||Be&&Vt(new Be)!=q)&&(Vt=function(d){var x=Hr(d),U=x==N?d.constructor:void 0,W=U?tr(U):"";if(W)switch(W){case We:return J;case ke:return F;case Ye:return L;case Je:return m;case Xe:return q}return x});function f0(d,x){return x=x??c,!!x&&(typeof d=="number"||ee.test(d))&&d>-1&&d%1==0&&d<x}function l0(d){var x=typeof d;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?d!=="__proto__":d===null}function d0(d){return!!_e&&_e in d}function p0(d){var x=d&&d.constructor,U=typeof x=="function"&&x.prototype||te;return d===U}function g0(d){return be.call(d)}function tr(d){if(d!=null){try{return ge.call(d)}catch{}try{return d+""}catch{}}return""}function qa(d,x){return d===x||d!==d&&x!==x}var v0=Ba(function(){return arguments}())?Ba:function(d){return Kr(d)&&ne.call(d,"callee")&&!Tt.call(d,"callee")},_n=Array.isArray;function y0(d){return d!=null&&Ga(d.length)&&!Va(d)}var Pi=zr||w0;function _0(d,x){return za(d,x)}function Va(d){if(!Wa(d))return!1;var x=Hr(d);return x==w||x==b||x==l||x==S}function Ga(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=c}function Wa(d){var x=typeof d;return d!=null&&(x=="object"||x=="function")}function Kr(d){return d!=null&&typeof d=="object"}var ka=fe?Te(fe):s0;function b0(d){return y0(d)?t0(d):o0(d)}function m0(){return[]}function w0(){return!1}t.exports=_0})(wi,wi.exports);var Bd=wi.exports,zd=Object.defineProperty,Ho=Object.getOwnPropertySymbols,Hd=Object.prototype.hasOwnProperty,Kd=Object.prototype.propertyIsEnumerable,Ko=(t,e,r)=>e in t?zd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ut=(t,e)=>{for(var r in e||(e={}))Hd.call(e,r)&&Ko(t,r,e[r]);if(Ho)for(var r of Ho(e))Kd.call(e,r)&&Ko(t,r,e[r]);return t};function Ve(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}var cn=Ve;Ve.EventEmitter=Ve,Ve.prototype._events=void 0,Ve.prototype._maxListeners=void 0,Ve.defaultMaxListeners=10,Ve.prototype.setMaxListeners=function(t){if(!qd(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},Ve.prototype.emit=function(t){var e,r,n,i,s,c;if(this._events||(this._events={}),t==="error"&&(!this._events.error||Fr(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;var u=new Error('Uncaught, unspecified "error" event. ('+e+")");throw u.context=e,u}if(r=this._events[t],qo(r))return!1;if(Ft(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),r.apply(this,i)}else if(Fr(r))for(i=Array.prototype.slice.call(arguments,1),c=r.slice(),n=c.length,s=0;s<n;s++)c[s].apply(this,i);return!0},Ve.prototype.addListener=function(t,e){var r;if(!Ft(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,Ft(e.listener)?e.listener:e),this._events[t]?Fr(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,Fr(this._events[t])&&!this._events[t].warned&&(qo(this._maxListeners)?r=Ve.defaultMaxListeners:r=this._maxListeners,r&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),typeof console.trace=="function"&&console.trace())),this},Ve.prototype.on=Ve.prototype.addListener,Ve.prototype.once=function(t,e){if(!Ft(e))throw TypeError("listener must be a function");var r=!1;function n(){this.removeListener(t,n),r||(r=!0,e.apply(this,arguments))}return n.listener=e,this.on(t,n),this},Ve.prototype.removeListener=function(t,e){var r,n,i,s;if(!Ft(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(r=this._events[t],i=r.length,n=-1,r===e||Ft(r.listener)&&r.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(Fr(r)){for(s=i;s-- >0;)if(r[s]===e||r[s].listener&&r[s].listener===e){n=s;break}if(n<0)return this;r.length===1?(r.length=0,delete this._events[t]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},Ve.prototype.removeAllListeners=function(t){var e,r;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[t]&&delete this._events[t],this;if(arguments.length===0){for(e in this._events)e!=="removeListener"&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],Ft(r))this.removeListener(t,r);else if(r)for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},Ve.prototype.listeners=function(t){var e;return!this._events||!this._events[t]?e=[]:Ft(this._events[t])?e=[this._events[t]]:e=this._events[t].slice(),e},Ve.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(Ft(e))return 1;if(e)return e.length}return 0},Ve.listenerCount=function(t,e){return t.listenerCount(e)};function Ft(t){return typeof t=="function"}function qd(t){return typeof t=="number"}function Fr(t){return typeof t=="object"&&t!==null}function qo(t){return t===void 0}function Vd(t,e){if(t.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<t.length;i++){var s=t.charAt(i),c=s.charCodeAt(0);if(r[c]!==255)throw new TypeError(s+" is ambiguous");r[c]=i}var u=t.length,h=t.charAt(0),l=Math.log(u)/Math.log(256),p=Math.log(256)/Math.log(u);function E(b){if(b instanceof Uint8Array||(ArrayBuffer.isView(b)?b=new Uint8Array(b.buffer,b.byteOffset,b.byteLength):Array.isArray(b)&&(b=Uint8Array.from(b))),!(b instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(b.length===0)return"";for(var F=0,y=0,O=0,N=b.length;O!==N&&b[O]===0;)O++,F++;for(var L=(N-O)*p+1>>>0,S=new Uint8Array(L);O!==N;){for(var C=b[O],m=0,o=L-1;(C!==0||m<y)&&o!==-1;o--,m++)C+=256*S[o]>>>0,S[o]=C%u>>>0,C=C/u>>>0;if(C!==0)throw new Error("Non-zero carry");y=m,O++}for(var g=L-y;g!==L&&S[g]===0;)g++;for(var B=h.repeat(F);g<L;++g)B+=t.charAt(S[g]);return B}function T(b){if(typeof b!="string")throw new TypeError("Expected String");if(b.length===0)return new Uint8Array;var F=0;if(b[F]!==" "){for(var y=0,O=0;b[F]===h;)y++,F++;for(var N=(b.length-F)*l+1>>>0,L=new Uint8Array(N);b[F];){var S=r[b.charCodeAt(F)];if(S===255)return;for(var C=0,m=N-1;(S!==0||C<O)&&m!==-1;m--,C++)S+=u*L[m]>>>0,L[m]=S%256>>>0,S=S/256>>>0;if(S!==0)throw new Error("Non-zero carry");O=C,F++}if(b[F]!==" "){for(var o=N-O;o!==N&&L[o]===0;)o++;for(var g=new Uint8Array(y+(N-o)),B=y;o!==N;)g[B++]=L[o++];return g}}}function w(b){var F=T(b);if(F)return F;throw new Error(`Non-${e} character`)}return{encode:E,decodeUnsafe:T,decode:w}}var Gd=Vd,Wd=Gd;const Vo=t=>{if(t instanceof Uint8Array&&t.constructor.name==="Uint8Array")return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error("Unknown type, must be binary type")},kd=t=>new TextEncoder().encode(t),Yd=t=>new TextDecoder().decode(t);class Jd{constructor(e,r,n){this.name=e,this.prefix=r,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class Xd{constructor(e,r,n){if(this.name=e,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){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))}else throw Error("Can only multibase decode strings")}or(e){return Go(this,e)}}class Zd{constructor(e){this.decoders=e}or(e){return Go(this,e)}decode(e){const r=e[0],n=this.decoders[r];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 Go=(t,e)=>new Zd(ut(ut({},t.decoders||{[t.prefix]:t}),e.decoders||{[e.prefix]:e}));class Qd{constructor(e,r,n,i){this.name=e,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new Jd(e,r,n),this.decoder=new Xd(e,r,i)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const un=({name:t,prefix:e,encode:r,decode:n})=>new Qd(t,e,r,n),Ur=({prefix:t,name:e,alphabet:r})=>{const{encode:n,decode:i}=Wd(r,e);return un({prefix:t,name:e,encode:n,decode:s=>Vo(i(s))})},ep=(t,e,r,n)=>{const i={};for(let p=0;p<e.length;++p)i[e[p]]=p;let s=t.length;for(;t[s-1]==="=";)--s;const c=new Uint8Array(s*r/8|0);let u=0,h=0,l=0;for(let p=0;p<s;++p){const E=i[t[p]];if(E===void 0)throw new SyntaxError(`Non-${n} character`);h=h<<r|E,u+=r,u>=8&&(u-=8,c[l++]=255&h>>u)}if(u>=r||255&h<<8-u)throw new SyntaxError("Unexpected end of data");return c},tp=(t,e,r)=>{const n=e[e.length-1]==="=",i=(1<<r)-1;let s="",c=0,u=0;for(let h=0;h<t.length;++h)for(u=u<<8|t[h],c+=8;c>r;)c-=r,s+=e[i&u>>c];if(c&&(s+=e[i&u<<r-c]),n)for(;s.length*r&7;)s+="=";return s},nt=({name:t,prefix:e,bitsPerChar:r,alphabet:n})=>un({prefix:e,name:t,encode(i){return tp(i,n,r)},decode(i){return ep(i,n,r,t)}}),rp=un({prefix:"\0",name:"identity",encode:t=>Yd(t),decode:t=>kd(t)});var np=Object.freeze({__proto__:null,identity:rp});const ip=nt({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var sp=Object.freeze({__proto__:null,base2:ip});const op=nt({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var ap=Object.freeze({__proto__:null,base8:op});const cp=Ur({prefix:"9",name:"base10",alphabet:"0123456789"});var up=Object.freeze({__proto__:null,base10:cp});const hp=nt({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),fp=nt({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var lp=Object.freeze({__proto__:null,base16:hp,base16upper:fp});const dp=nt({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),pp=nt({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),gp=nt({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),vp=nt({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),yp=nt({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),_p=nt({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),bp=nt({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),mp=nt({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),wp=nt({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var Ep=Object.freeze({__proto__:null,base32:dp,base32upper:pp,base32pad:gp,base32padupper:vp,base32hex:yp,base32hexupper:_p,base32hexpad:bp,base32hexpadupper:mp,base32z:wp});const Dp=Ur({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),xp=Ur({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var Sp=Object.freeze({__proto__:null,base36:Dp,base36upper:xp});const Op=Ur({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Ap=Ur({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var Ip=Object.freeze({__proto__:null,base58btc:Op,base58flickr:Ap});const Lp=nt({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Cp=nt({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Tp=nt({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Np=nt({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var Pp=Object.freeze({__proto__:null,base64:Lp,base64pad:Cp,base64url:Tp,base64urlpad:Np});const Wo=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),Rp=Wo.reduce((t,e,r)=>(t[r]=e,t),[]),Fp=Wo.reduce((t,e,r)=>(t[e.codePointAt(0)]=r,t),[]);function Up(t){return t.reduce((e,r)=>(e+=Rp[r],e),"")}function Mp(t){const e=[];for(const r of t){const n=Fp[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);e.push(n)}return new Uint8Array(e)}const jp=un({prefix:"\u{1F680}",name:"base256emoji",encode:Up,decode:Mp});var $p=Object.freeze({__proto__:null,base256emoji:jp}),Bp=Yo,ko=128,zp=127,Hp=~zp,Kp=Math.pow(2,31);function Yo(t,e,r){e=e||[],r=r||0;for(var n=r;t>=Kp;)e[r++]=t&255|ko,t/=128;for(;t&Hp;)e[r++]=t&255|ko,t>>>=7;return e[r]=t|0,Yo.bytes=r-n+1,e}var qp=Ei,Vp=128,Jo=127;function Ei(t,n){var r=0,n=n||0,i=0,s=n,c,u=t.length;do{if(s>=u)throw Ei.bytes=0,new RangeError("Could not decode varint");c=t[s++],r+=i<28?(c&Jo)<<i:(c&Jo)*Math.pow(2,i),i+=7}while(c>=Vp);return Ei.bytes=s-n,r}var Gp=Math.pow(2,7),Wp=Math.pow(2,14),kp=Math.pow(2,21),Yp=Math.pow(2,28),Jp=Math.pow(2,35),Xp=Math.pow(2,42),Zp=Math.pow(2,49),Qp=Math.pow(2,56),eg=Math.pow(2,63),tg=function(t){return t<Gp?1:t<Wp?2:t<kp?3:t<Yp?4:t<Jp?5:t<Xp?6:t<Zp?7:t<Qp?8:t<eg?9:10},rg={encode:Bp,decode:qp,encodingLength:tg},Xo=rg;const Zo=(t,e,r=0)=>(Xo.encode(t,e,r),e),Qo=t=>Xo.encodingLength(t),Di=(t,e)=>{const r=e.byteLength,n=Qo(t),i=n+Qo(r),s=new Uint8Array(i+r);return Zo(t,s,0),Zo(r,s,n),s.set(e,i),new ng(t,r,e,s)};class ng{constructor(e,r,n,i){this.code=e,this.size=r,this.digest=n,this.bytes=i}}const ea=({name:t,code:e,encode:r})=>new ig(t,e,r);class ig{constructor(e,r,n){this.name=e,this.code=r,this.encode=n}digest(e){if(e instanceof Uint8Array){const r=this.encode(e);return r instanceof Uint8Array?Di(this.code,r):r.then(n=>Di(this.code,n))}else throw Error("Unknown type, must be binary type")}}const ta=t=>async e=>new Uint8Array(await crypto.subtle.digest(t,e)),sg=ea({name:"sha2-256",code:18,encode:ta("SHA-256")}),og=ea({name:"sha2-512",code:19,encode:ta("SHA-512")});var ag=Object.freeze({__proto__:null,sha256:sg,sha512:og});const ra=0,cg="identity",na=Vo;var ug=Object.freeze({__proto__:null,identity:{code:ra,name:cg,encode:na,digest:t=>Di(ra,na(t))}});new TextEncoder,new TextDecoder;const ia=ut(ut(ut(ut(ut(ut(ut(ut(ut(ut({},np),sp),ap),up),lp),Ep),Sp),Ip),Pp),$p);ut(ut({},ag),ug);function sa(t,e,r,n){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:r},decoder:{decode:n}}}const oa=sa("utf8","u",t=>{const e=new TextDecoder("utf8");return"u"+e.decode(t)},t=>new TextEncoder().encode(t.substring(1))),xi=sa("ascii","a",t=>{let e="a";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},t=>{t=t.substring(1);const e=new Uint8Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}),hg=ut({utf8:oa,"utf-8":oa,hex:ia.base16,latin1:xi,ascii:xi,binary:xi},ia);function fg(t,e="utf8"){const r=hg[e];if(!r)throw new Error(`Unsupported encoding "${e}"`);return r.decoder.decode(`${r.prefix}${t}`)}const aa="wc",lg=2,Si="core",Mr=`${aa}@${2}:${Si}:`,dg={name:Si,logger:"error"},pg={database:":memory:"},gg="crypto",ca="client_ed25519_seed",vg=Le.ONE_DAY,yg="keychain",_g="0.3",bg="messages",mg="0.3",wg=Le.SIX_HOURS,Eg="publisher",ua="irn",Dg="error",xg="wss://relay.walletconnect.com",Sg="relayer",jr={message:"relayer_message",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error"},Og="_subscription",lr={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},Ag=Le.ONE_SECOND,Ig="2.0.0-rc.1",Lg="0.3",Zt={created:"subscription_created",deleted:"subscription_deleted",expired:"subscription_expired",disabled:"subscription_disabled",sync:"subscription_sync"},Cg="subscription",Tg="0.3",Ng=Le.FIVE_SECONDS*1e3;class Pg{constructor(e,r){this.core=e,this.logger=r,this.keychain=new Map,this.name=yg,this.version=_g,this.initialized=!1,this.storagePrefix=Mr,this.init=async()=>{if(!this.initialized){const n=await this.getKeyChain();typeof n<"u"&&(this.keychain=n),this.initialized=!0}},this.has=n=>(this.isInitialized(),this.keychain.has(n)),this.set=async(n,i)=>{this.isInitialized(),this.keychain.set(n,i),await this.persist()},this.get=n=>{this.isInitialized();const i=this.keychain.get(n);if(typeof i>"u"){const{message:s}=G("NO_MATCHING_KEY",`${this.name}: ${n}`);throw new Error(s)}return i},this.del=async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()},this.core=e,this.logger=Oe.generateChildLogger(r,this.name)}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,no(e))}async getKeyChain(){const e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?io(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:e}=G("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Rg{constructor(e,r,n){this.core=e,this.logger=r,this.name=gg,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=i=>(this.isInitialized(),this.keychain.has(i)),this.getClientId=async()=>{this.isInitialized();const i=await this.getClientSeed(),s=Bo(i);return $o(s.publicKey)},this.generateKeyPair=()=>{this.isInitialized();const i=pf();return this.setPrivateKey(i.publicKey,i.privateKey)},this.signJWT=async i=>{this.isInitialized();const s=await this.getClientSeed(),c=Bo(s),u=ei();return await Md(u,i,vg,c)},this.generateSharedKey=(i,s,c)=>{this.isInitialized();const u=this.getPrivateKey(i),h=gf(u,s);return this.setSymKey(h,c)},this.setSymKey=async(i,s)=>{this.isInitialized();const c=s||vf(i);return await this.keychain.set(c,i),c},this.deleteKeyPair=async i=>{this.isInitialized(),await this.keychain.del(i)},this.deleteSymKey=async i=>{this.isInitialized(),await this.keychain.del(i)},this.encode=async(i,s,c)=>{this.isInitialized();const u=Xs(c),h=br(s);if(Zs(u)){const T=u.senderPublicKey,w=u.receiverPublicKey;i=await this.generateSharedKey(T,w)}const l=this.getSymKey(i),{type:p,senderPublicKey:E}=u;return _f({type:p,symKey:l,message:h,senderPublicKey:E})},this.decode=async(i,s,c)=>{this.isInitialized();const u=wf(s,c);if(Zs(u)){const p=u.receiverPublicKey,E=u.senderPublicKey;i=await this.generateSharedKey(p,E)}const h=this.getSymKey(i),l=bf({symKey:h,encoded:s});return In(l)},this.core=e,this.logger=Oe.generateChildLogger(r,this.name),this.keychain=n||new Pg(this.core,this.logger)}get context(){return Oe.getLoggerContext(this.logger)}async setPrivateKey(e,r){return await this.keychain.set(e,r),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e="";try{e=this.keychain.get(ca)}catch{e=ei(),await this.keychain.set(ca,e)}return fg(e,"base16")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){const{message:e}=G("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Fg extends pd{constructor(e,r){super(e,r),this.logger=e,this.core=r,this.messages=new Map,this.name=bg,this.version=mg,this.initialized=!1,this.storagePrefix=Mr,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const n=await this.getRelayerMessages();typeof n<"u"&&(this.messages=n),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(n){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(n)}finally{this.initialized=!0}}},this.set=async(n,i)=>{this.isInitialized();const s=Zr(i);let c=this.messages.get(n);return typeof c>"u"&&(c={}),typeof c[s]<"u"||(c[s]=i,this.messages.set(n,c),await this.persist()),s},this.get=n=>{this.isInitialized();let i=this.messages.get(n);return typeof i>"u"&&(i={}),i},this.has=(n,i)=>{this.isInitialized();const s=this.get(n),c=Zr(i);return typeof s[c]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=Oe.generateChildLogger(e,this.name),this.core=r}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,no(e))}async getRelayerMessages(){const e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?io(e):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:e}=G("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Ug extends gd{constructor(e,r){super(e,r),this.relayer=e,this.logger=r,this.events=new cn.EventEmitter,this.name=Eg,this.queue=new Map,this.publish=async(n,i,s)=>{this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:i,opts:s}});try{const c=s?.ttl||wg,u=ti(s),h=s?.prompt||!1,l=s?.tag||0,p={topic:n,message:i,opts:{ttl:c,relay:u,prompt:h,tag:l}},E=Zr(i);this.queue.set(E,p),await this.rpcPublish(n,i,c,u,h,l),this.onPublish(E,p),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:i,opts:s}})}catch(c){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(c),c}},this.on=(n,i)=>{this.events.on(n,i)},this.once=(n,i)=>{this.events.once(n,i)},this.off=(n,i)=>{this.events.off(n,i)},this.removeListener=(n,i)=>{this.events.removeListener(n,i)},this.relayer=e,this.logger=Oe.generateChildLogger(r,this.name),this.registerEventListeners()}get context(){return Oe.getLoggerContext(this.logger)}rpcPublish(e,r,n,i,s,c){var u,h,l,p;const E={method:ri(i.protocol).publish,params:{topic:e,message:r,ttl:n,prompt:s,tag:c}};return Et((u=E.params)==null?void 0:u.prompt)&&((h=E.params)==null||delete h.prompt),Et((l=E.params)==null?void 0:l.tag)&&((p=E.params)==null||delete p.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:E}),this.relayer.provider.request(E)}onPublish(e,r){this.queue.delete(e)}checkQueue(){this.queue.forEach(async e=>{const{topic:r,message:n,opts:{ttl:i,relay:s,prompt:c,tag:u}}=e,h=Zr(n);await this.rpcPublish(r,n,i,s,c,u),this.onPublish(h,e)})}registerEventListeners(){this.relayer.core.heartbeat.on(Pr.HEARTBEAT_EVENTS.pulse,()=>{this.checkQueue()})}}class Mg{constructor(){this.map=new Map,this.set=(e,r)=>{const n=this.get(e);this.exists(e,r)||this.map.set(e,[...n,r])},this.get=e=>this.map.get(e)||[],this.exists=(e,r)=>this.get(e).includes(r),this.delete=(e,r)=>{if(typeof r>"u"){this.map.delete(e);return}if(!this.map.has(e))return;const n=this.get(e);if(!this.exists(e,r))return;const i=n.filter(s=>s!==r);if(!i.length){this.map.delete(e);return}this.map.set(e,i)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var jg=Object.defineProperty,$g=Object.defineProperties,Bg=Object.getOwnPropertyDescriptors,ha=Object.getOwnPropertySymbols,zg=Object.prototype.hasOwnProperty,Hg=Object.prototype.propertyIsEnumerable,fa=(t,e,r)=>e in t?jg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,hn=(t,e)=>{for(var r in e||(e={}))zg.call(e,r)&&fa(t,r,e[r]);if(ha)for(var r of ha(e))Hg.call(e,r)&&fa(t,r,e[r]);return t},Oi=(t,e)=>$g(t,Bg(e));class Kg extends _d{constructor(e,r){super(e,r),this.relayer=e,this.logger=r,this.subscriptions=new Map,this.topicMap=new Mg,this.events=new cn.EventEmitter,this.name=Cg,this.version=Tg,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pendingSubInterval=20,this.storagePrefix=Mr,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),await this.reset(),this.registerEventListeners(),this.onEnable())},this.subscribe=async(n,i)=>{this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:i}});try{const s=ti(i),c={topic:n,relay:s};this.pending.set(n,c);const u=await this.rpcSubscribe(n,s);return this.onSubscribe(u,c),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:i}}),u}catch(s){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(s),s}},this.unsubscribe=async(n,i)=>{this.isInitialized(),typeof i?.id<"u"?await this.unsubscribeById(n,i.id,i):await this.unsubscribeByTopic(n,i)},this.isSubscribed=async n=>this.topics.includes(n)?!0:await new Promise((i,s)=>{const c=new Le.Watch;c.start(this.pendingSubscriptionWatchLabel);const u=setInterval(()=>{!this.pending.has(n)&&this.topics.includes(n)&&(clearInterval(u),c.stop(this.pendingSubscriptionWatchLabel),i(!0)),c.elapsed(this.pendingSubscriptionWatchLabel)>=Ng&&(clearInterval(u),c.stop(this.pendingSubscriptionWatchLabel),s(!1))},this.pendingSubInterval)}),this.on=(n,i)=>{this.events.on(n,i)},this.once=(n,i)=>{this.events.once(n,i)},this.off=(n,i)=>{this.events.off(n,i)},this.removeListener=(n,i)=>{this.events.removeListener(n,i)},this.relayer=e,this.logger=Oe.generateChildLogger(r,this.name)}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(e,r){let n=!1;try{n=this.getSubscription(e).topic===r}catch{}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear(),this.initialized=!1}async unsubscribeByTopic(e,r){const n=this.topicMap.get(e);await Promise.all(n.map(async i=>await this.unsubscribeById(e,i,r)))}async unsubscribeById(e,r,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:r,opts:n}});try{const i=ti(n);await this.rpcUnsubscribe(e,r,i);const s=rt("USER_DISCONNECTED",`${this.name}, ${e}`);await this.onUnsubscribe(e,r,s),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:r,opts:n}})}catch(i){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(i),i}}async rpcSubscribe(e,r){const n={method:ri(r.protocol).subscribe,params:{topic:e}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n}),await this.relayer.provider.request(n)}rpcUnsubscribe(e,r,n){const i={method:ri(n.protocol).unsubscribe,params:{topic:e,id:r}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i}),this.relayer.provider.request(i)}onSubscribe(e,r){this.setSubscription(e,Oi(hn({},r),{id:e})),this.pending.delete(r.topic)}onResubscribe(e,r){this.addSubscription(e,Oi(hn({},r),{id:e})),this.pending.delete(r.topic)}async onUnsubscribe(e,r,n){this.events.removeAllListeners(r),this.hasSubscription(r,e)&&this.deleteSubscription(r,n),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,r){this.subscriptions.has(e)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:r}),this.addSubscription(e,r))}addSubscription(e,r){this.subscriptions.set(e,hn({},r)),this.topicMap.set(r.topic,e),this.events.emit(Zt.created,r)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});const r=this.subscriptions.get(e);if(!r){const{message:n}=G("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(n)}return r}deleteSubscription(e,r){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:r});const n=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(n.topic,e),this.events.emit(Zt.deleted,Oi(hn({},n),{reason:r}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(Zt.sync)}async reset(){!this.cached.length||await Promise.all(this.cached.map(async e=>await this.resubscribe(e)))}async restore(){try{const e=await this.getRelayerSubscriptions();if(typeof e>"u"||!e.length)return;if(this.subscriptions.size){const{message:r}=G("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async resubscribe(e){if(!this.ids.includes(e.id)){const{topic:r,relay:n}=e,i={topic:r,relay:n};this.pending.set(i.topic,i);const s=await this.rpcSubscribe(i.topic,i.relay);this.onResubscribe(s,i)}}async onConnect(){await this.reset(),this.onEnable()}onDisconnect(){this.onDisable()}checkPending(){this.pending.forEach(async e=>{const r=await this.rpcSubscribe(e.topic,e.relay);this.onSubscribe(r,e)})}registerEventListeners(){this.relayer.core.heartbeat.on(Pr.HEARTBEAT_EVENTS.pulse,()=>{this.checkPending()}),this.relayer.provider.on(lr.connect,async()=>{await this.onConnect()}),this.relayer.provider.on(lr.disconnect,()=>{this.onDisconnect()}),this.events.on(Zt.created,async e=>{const r=Zt.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:e}),await this.persist()}),this.events.on(Zt.deleted,async e=>{const r=Zt.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:e}),await this.persist()})}isInitialized(){if(!this.initialized){const{message:e}=G("NOT_INITIALIZED",this.name);throw new Error(e)}}}var qg=Object.defineProperty,la=Object.getOwnPropertySymbols,Vg=Object.prototype.hasOwnProperty,Gg=Object.prototype.propertyIsEnumerable,da=(t,e,r)=>e in t?qg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Wg=(t,e)=>{for(var r in e||(e={}))Vg.call(e,r)&&da(t,r,e[r]);if(la)for(var r of la(e))Gg.call(e,r)&&da(t,r,e[r]);return t};class kg extends vd{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new cn.EventEmitter,this.name=Sg,this.initialized=!1,this.core=e.core,this.logger=typeof e.logger<"u"&&typeof e.logger!="string"?Oe.generateChildLogger(e.logger,this.name):oi(Oe.getDefaultLoggerOptions({level:e.logger||Dg})),this.messages=new Fg(this.logger,e.core),this.subscriber=new Kg(this,this.logger),this.publisher=new Ug(this,this.logger),this.relayUrl=e?.relayUrl||xg,this.projectId=e.projectId,this.provider={}}async init(){this.logger.trace("Initialized");const e=await this.core.crypto.signJWT(this.relayUrl);this.provider=this.createProvider(e),await Promise.all([this.messages.init(),this.provider.connect(),this.subscriber.init()]),this.registerEventListeners(),this.initialized=!0}get context(){return Oe.getLoggerContext(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(e,r,n){this.isInitialized(),await this.publisher.publish(e,r,n),await this.recordMessageEvent({topic:e,message:r})}async subscribe(e,r){return this.isInitialized(),await this.subscriber.subscribe(e,r)}async unsubscribe(e,r){this.isInitialized(),await this.subscriber.unsubscribe(e,r)}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}off(e,r){this.events.off(e,r)}removeListener(e,r){this.events.removeListener(e,r)}createProvider(e){return new On(new $d(Ff({sdkVersion:Ig,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e})))}async recordMessageEvent(e){const{topic:r,message:n}=e;await this.messages.set(r,n)}async shouldIgnoreMessageEvent(e){const{topic:r,message:n}=e;return await this.subscriber.isSubscribed(r)?this.messages.has(r,n):!0}async onProviderPayload(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),ki(e)){if(!e.method.endsWith(Og))return;const r=e.params,{topic:n,message:i}=r.data,s={topic:n,message:i};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(Wg({type:"event",event:r.id},s)),this.events.emit(r.id,s),await this.acknowledgePayload(e),await this.onMessageEvent(s)}}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(this.events.emit(jr.message,e),await this.recordMessageEvent(e))}async acknowledgePayload(e){const r=Sn(e.id,!0);await this.provider.connection.send(r)}registerEventListeners(){this.provider.on(lr.payload,e=>this.onProviderPayload(e)),this.provider.on(lr.connect,()=>{this.events.emit(jr.connect)}),this.provider.on(lr.disconnect,()=>{this.events.emit(jr.disconnect),setTimeout(()=>{this.provider.connect()},Le.toMiliseconds(Ag))}),this.provider.on(lr.error,e=>this.events.emit(jr.error,e))}isInitialized(){if(!this.initialized){const{message:e}=G("NOT_INITIALIZED",this.name);throw new Error(e)}}}var Yg=Object.defineProperty,pa=Object.getOwnPropertySymbols,Jg=Object.prototype.hasOwnProperty,Xg=Object.prototype.propertyIsEnumerable,ga=(t,e,r)=>e in t?Yg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,va=(t,e)=>{for(var r in e||(e={}))Jg.call(e,r)&&ga(t,r,e[r]);if(pa)for(var r of pa(e))Xg.call(e,r)&&ga(t,r,e[r]);return t};class Ai extends yd{constructor(e,r,n,i=Mr){super(e,r,n,i),this.core=e,this.logger=r,this.name=n,this.map=new Map,this.version=Lg,this.cached=[],this.initialized=!1,this.storagePrefix=Mr,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(s=>{rl(s)?this.map.set(s.id,s):nl(s)&&this.map.set(s.topic,s)}),this.cached=[],this.initialized=!0)},this.set=async(s,c)=>{this.isInitialized(),this.map.has(s)?await this.update(s,c):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:s,value:c}),this.map.set(s,c),await this.persist())},this.get=s=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:s}),this.getData(s)),this.getAll=s=>s?this.values.filter(c=>Object.keys(s).every(u=>Bd(c[u],s[u]))):this.values,this.update=async(s,c)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:s,update:c});const u=va(va({},this.getData(s)),c);this.map.set(s,u),await this.persist()},this.delete=async(s,c)=>{this.isInitialized(),this.map.has(s)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:s,reason:c}),this.map.delete(s),await this.persist())},this.logger=Oe.generateChildLogger(r,this.name),this.storagePrefix=i}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){const r=this.map.get(e);if(!r){const{message:n}=G("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(n),new Error(n)}return r}async persist(){await this.setDataStore(this.values)}async restore(){try{const e=await this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){const{message:r}=G("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){const{message:e}=G("NOT_INITIALIZED",this.name);throw new Error(e)}}}var Zg=Object.defineProperty,ya=Object.getOwnPropertySymbols,Qg=Object.prototype.hasOwnProperty,ev=Object.prototype.propertyIsEnumerable,_a=(t,e,r)=>e in t?Zg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ba=(t,e)=>{for(var r in e||(e={}))Qg.call(e,r)&&_a(t,r,e[r]);if(ya)for(var r of ya(e))ev.call(e,r)&&_a(t,r,e[r]);return t};class Ii extends ld{constructor(e){super(e),this.protocol=aa,this.version=lg,this.name=Si,this.events=new cn.EventEmitter,this.initialized=!1,this.on=(n,i)=>this.events.on(n,i),this.once=(n,i)=>this.events.once(n,i),this.off=(n,i)=>this.events.off(n,i),this.removeListener=(n,i)=>this.events.removeListener(n,i),this.projectId=e?.projectId;const r=typeof e?.logger<"u"&&typeof e?.logger!="string"?e.logger:oi(Oe.getDefaultLoggerOptions({level:e?.logger||dg.logger}));this.logger=Oe.generateChildLogger(r,this.name),this.heartbeat=new Pr.HeartBeat,this.crypto=new Rg(this,this.logger,e?.keychain),this.storage=e!=null&&e.storage?e.storage:new rd(ba(ba({},pg),e?.storageOptions)),this.relayer=new kg({core:this,logger:this.logger,relayUrl:e?.relayUrl,projectId:this.projectId})}static async init(e){const r=new Ii(e);return await r.initialize(),r}get context(){return Oe.getLoggerContext(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.relayer.init(),await this.heartbeat.init(),this.initialized=!0,this.logger.info("Core Initilization Success")}catch(e){throw this.logger.info("Core Initilization Failure"),this.logger.error(e.message),e}}}const tv=Ii;var dr={exports:{}},pr=typeof Reflect=="object"?Reflect:null,ma=pr&&typeof pr.apply=="function"?pr.apply:function(e,r,n){return Function.prototype.apply.call(e,r,n)},fn;pr&&typeof pr.ownKeys=="function"?fn=pr.ownKeys:Object.getOwnPropertySymbols?fn=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:fn=function(e){return Object.getOwnPropertyNames(e)};function rv(t){console&&console.warn&&console.warn(t)}var wa=Number.isNaN||function(e){return e!==e};function xe(){xe.init.call(this)}dr.exports=xe,dr.exports.once=ov,xe.EventEmitter=xe,xe.prototype._events=void 0,xe.prototype._eventsCount=0,xe.prototype._maxListeners=void 0;var Ea=10;function ln(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(xe,"defaultMaxListeners",{enumerable:!0,get:function(){return Ea},set:function(t){if(typeof t!="number"||t<0||wa(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");Ea=t}}),xe.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},xe.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||wa(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function Da(t){return t._maxListeners===void 0?xe.defaultMaxListeners:t._maxListeners}xe.prototype.getMaxListeners=function(){return Da(this)},xe.prototype.emit=function(e){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=e==="error",s=this._events;if(s!==void 0)i=i&&s.error===void 0;else if(!i)return!1;if(i){var c;if(r.length>0&&(c=r[0]),c instanceof Error)throw c;var u=new Error("Unhandled error."+(c?" ("+c.message+")":""));throw u.context=c,u}var h=s[e];if(h===void 0)return!1;if(typeof h=="function")ma(h,this,r);else for(var l=h.length,p=Ia(h,l),n=0;n<l;++n)ma(p[n],this,r);return!0};function xa(t,e,r,n){var i,s,c;if(ln(r),s=t._events,s===void 0?(s=t._events=Object.create(null),t._eventsCount=0):(s.newListener!==void 0&&(t.emit("newListener",e,r.listener?r.listener:r),s=t._events),c=s[e]),c===void 0)c=s[e]=r,++t._eventsCount;else if(typeof c=="function"?c=s[e]=n?[r,c]:[c,r]:n?c.unshift(r):c.push(r),i=Da(t),i>0&&c.length>i&&!c.warned){c.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=c.length,rv(u)}return t}xe.prototype.addListener=function(e,r){return xa(this,e,r,!1)},xe.prototype.on=xe.prototype.addListener,xe.prototype.prependListener=function(e,r){return xa(this,e,r,!0)};function nv(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Sa(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=nv.bind(n);return i.listener=r,n.wrapFn=i,i}xe.prototype.once=function(e,r){return ln(r),this.on(e,Sa(this,e,r)),this},xe.prototype.prependOnceListener=function(e,r){return ln(r),this.prependListener(e,Sa(this,e,r)),this},xe.prototype.removeListener=function(e,r){var n,i,s,c,u;if(ln(r),i=this._events,i===void 0)return this;if(n=i[e],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||r));else if(typeof n!="function"){for(s=-1,c=n.length-1;c>=0;c--)if(n[c]===r||n[c].listener===r){u=n[c].listener,s=c;break}if(s<0)return this;s===0?n.shift():iv(n,s),n.length===1&&(i[e]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",e,u||r)}return this},xe.prototype.off=xe.prototype.removeListener,xe.prototype.removeAllListeners=function(e){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var s=Object.keys(n),c;for(i=0;i<s.length;++i)c=s[i],c!=="removeListener"&&this.removeAllListeners(c);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[e],typeof r=="function")this.removeListener(e,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(e,r[i]);return this};function Oa(t,e,r){var n=t._events;if(n===void 0)return[];var i=n[e];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?sv(i):Ia(i,i.length)}xe.prototype.listeners=function(e){return Oa(this,e,!0)},xe.prototype.rawListeners=function(e){return Oa(this,e,!1)},xe.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Aa.call(t,e)},xe.prototype.listenerCount=Aa;function Aa(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}xe.prototype.eventNames=function(){return this._eventsCount>0?fn(this._events):[]};function Ia(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function iv(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function sv(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}function ov(t,e){return new Promise(function(r,n){function i(c){t.removeListener(e,s),n(c)}function s(){typeof t.removeListener=="function"&&t.removeListener("error",i),r([].slice.call(arguments))}La(t,e,s,{once:!0}),e!=="error"&&av(t,i,{once:!0})})}function av(t,e,r){typeof t.on=="function"&&La(t,"error",e,r)}function La(t,e,r,n){if(typeof t.on=="function")n.once?t.once(e,r):t.on(e,r);else if(typeof t.addEventListener=="function")t.addEventListener(e,function i(s){n.once&&t.removeEventListener(e,i),r(s)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}const Ca="wc",Ta=2,Na="client",$r=`${Ca}@${Ta}:${Na}:`,Li={name:Na,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"},cv="expirer",Dt={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},uv="0.3",Lt={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},hv="history",fv="0.3",lv="pairing",dv="proposal",Pa=ar(Le.THIRTY_DAYS),pv="session",gv=Le.SEVEN_DAYS,dn=ar(gv),vv="engine",Ci={wc_pairingDelete:{req:{prompt:!1,tag:1e3},res:{prompt:!1,tag:1001}},wc_pairingPing:{req:{prompt:!1,tag:1002},res:{prompt:!1,tag:1003}},wc_sessionPropose:{req:{prompt:!0,tag:1100},res:{prompt:!1,tag:1101}},wc_sessionSettle:{req:{prompt:!1,tag:1102},res:{prompt:!1,tag:1103}},wc_sessionUpdate:{req:{prompt:!1,tag:1104},res:{prompt:!1,tag:1105}},wc_sessionExtend:{req:{prompt:!1,tag:1106},res:{prompt:!1,tag:1107}},wc_sessionRequest:{req:{prompt:!0,tag:1108},res:{prompt:!1,tag:1109}},wc_sessionEvent:{req:{prompt:!0,tag:1110},res:{prompt:!1,tag:1111}},wc_sessionDelete:{req:{prompt:!1,tag:1112},res:{prompt:!1,tag:1113}},wc_sessionPing:{req:{prompt:!1,tag:1114},res:{prompt:!1,tag:1115}}};var yv=Object.defineProperty,_v=Object.defineProperties,bv=Object.getOwnPropertyDescriptors,Ra=Object.getOwnPropertySymbols,mv=Object.prototype.hasOwnProperty,wv=Object.prototype.propertyIsEnumerable,Fa=(t,e,r)=>e in t?yv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ht=(t,e)=>{for(var r in e||(e={}))mv.call(e,r)&&Fa(t,r,e[r]);if(Ra)for(var r of Ra(e))wv.call(e,r)&&Fa(t,r,e[r]);return t},Ua=(t,e)=>_v(t,bv(e));class Ev extends Ed{constructor(e){super(e),this.events=new dr.exports,this.initialized=!1,this.name=vv,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0)},this.connect=async r=>{this.isInitialized(),await this.isValidConnect(r);const{pairingTopic:n,requiredNamespaces:i,relays:s}=r;let c=n,u,h=!1;if(c&&(h=this.client.pairing.get(c).active),!c||!h){const{topic:y,uri:O}=await this.createPairing();c=y,u=O}const l=await this.client.core.crypto.generateKeyPair(),p={requiredNamespaces:i,relays:s??[{protocol:ua}],proposer:{publicKey:l,metadata:this.client.metadata}},{reject:E,resolve:T,done:w}=Yt();if(this.events.once(Fe("session_connect"),async({error:y,session:O})=>{if(y)E(y);else if(O){O.self.publicKey=l;const N=Ua(Ht({},O),{requiredNamespaces:i});await this.client.session.set(O.topic,N),await this.setExpiry(O.topic,O.expiry),c&&await this.client.pairing.update(c,{peerMetadata:O.peer.metadata}),T(N)}}),!c){const{message:y}=G("NO_MATCHING_KEY",`connect() pairing topic: ${c}`);throw new Error(y)}const b=await this.sendRequest(c,"wc_sessionPropose",p),F=ar(Le.FIVE_MINUTES);return await this.setProposal(b,Ht({id:b,expiry:F},p)),{uri:u,approval:w}},this.pair=async r=>{this.isInitialized(),this.isValidPair(r);const{topic:n,symKey:i,relay:s}=Vf(r.uri),c=ar(Le.FIVE_MINUTES),u={topic:n,relay:s,expiry:c,active:!1};return await this.client.pairing.set(n,u),await this.client.core.crypto.setSymKey(i,n),await this.client.core.relayer.subscribe(n,{relay:s}),await this.setExpiry(n,c),u},this.approve=async r=>{this.isInitialized(),await this.isValidApprove(r);const{id:n,relayProtocol:i,namespaces:s}=r,{pairingTopic:c,proposer:u,requiredNamespaces:h}=this.client.proposal.get(n),l=await this.client.core.crypto.generateKeyPair(),p=u.publicKey,E=await this.client.core.crypto.generateSharedKey(l,p),T={relay:{protocol:i??"irn"},namespaces:s,requiredNamespaces:h,controller:{publicKey:l,metadata:this.client.metadata},expiry:dn};await this.client.core.relayer.subscribe(E);const w=await this.sendRequest(E,"wc_sessionSettle",T),{done:b,resolve:F,reject:y}=Yt();this.events.once(Fe("session_approve",w),({error:N})=>{N?y(N):F(this.client.session.get(E))});const O=Ua(Ht({},T),{topic:E,acknowledged:!1,self:T.controller,peer:{publicKey:u.publicKey,metadata:u.metadata},controller:l});return await this.client.session.set(E,O),await this.setExpiry(E,dn),c&&await this.client.pairing.update(c,{peerMetadata:O.peer.metadata}),c&&n&&(await this.sendResult(n,c,{relay:{protocol:i??"irn"},responderPublicKey:l}),await this.client.proposal.delete(n,rt("USER_DISCONNECTED")),await this.activatePairing(c)),{topic:E,acknowledged:b}},this.reject=async r=>{this.isInitialized(),await this.isValidReject(r);const{id:n,reason:i}=r,{pairingTopic:s}=this.client.proposal.get(n);s&&(await this.sendError(n,s,i),await this.client.proposal.delete(n,rt("USER_DISCONNECTED")))},this.update=async r=>{this.isInitialized(),await this.isValidUpdate(r);const{topic:n,namespaces:i}=r,s=await this.sendRequest(n,"wc_sessionUpdate",{namespaces:i}),{done:c,resolve:u,reject:h}=Yt();return this.events.once(Fe("session_update",s),({error:l})=>{l?h(l):u()}),await this.client.session.update(n,{namespaces:i}),{acknowledged:c}},this.extend=async r=>{this.isInitialized(),await this.isValidExtend(r);const{topic:n}=r,i=await this.sendRequest(n,"wc_sessionExtend",{}),{done:s,resolve:c,reject:u}=Yt();return this.events.once(Fe("session_extend",i),({error:h})=>{h?u(h):c()}),await this.setExpiry(n,dn),{acknowledged:s}},this.request=async r=>{this.isInitialized(),await this.isValidRequest(r);const{chainId:n,request:i,topic:s}=r,c=await this.sendRequest(s,"wc_sessionRequest",{request:i,chainId:n}),{done:u,resolve:h,reject:l}=Yt();return this.events.once(Fe("session_request",c),({error:p,result:E})=>{p?l(p):h(E)}),await u()},this.respond=async r=>{this.isInitialized(),await this.isValidRespond(r);const{topic:n,response:i}=r,{id:s}=i;Pt(i)?await this.sendResult(s,n,i.result):wt(i)&&await this.sendError(s,n,i.error)},this.ping=async r=>{this.isInitialized(),await this.isValidPing(r);const{topic:n}=r;if(this.client.session.keys.includes(n)){const i=await this.sendRequest(n,"wc_sessionPing",{}),{done:s,resolve:c,reject:u}=Yt();this.events.once(Fe("session_ping",i),({error:h})=>{h?u(h):c()}),await s()}else if(this.client.pairing.keys.includes(n)){const i=await this.sendRequest(n,"wc_pairingPing",{}),{done:s,resolve:c,reject:u}=Yt();this.events.once(Fe("pairing_ping",i),({error:h})=>{h?u(h):c()}),await s()}},this.emit=async r=>{this.isInitialized(),await this.isValidEmit(r);const{topic:n,event:i,chainId:s}=r;await this.sendRequest(n,"wc_sessionEvent",{event:i,chainId:s})},this.disconnect=async r=>{this.isInitialized(),await this.isValidDisconnect(r);const{topic:n}=r;this.client.session.keys.includes(n)?(await this.sendRequest(n,"wc_sessionDelete",rt("USER_DISCONNECTED")),await this.deleteSession(n)):this.client.pairing.keys.includes(n)&&(await this.sendRequest(n,"wc_pairingDelete",rt("USER_DISCONNECTED")),await this.deletePairing(n))},this.find=r=>(this.isInitialized(),this.client.session.getAll().filter(n=>Qf(n,r))),this.activatePairing=async r=>{await this.client.pairing.update(r,{active:!0,expiry:Pa}),await this.setExpiry(r,Pa)},this.deleteSession=async r=>{const{self:n}=this.client.session.get(r);await Promise.all([this.client.core.relayer.unsubscribe(r),this.client.session.delete(r,rt("USER_DISCONNECTED")),this.client.core.crypto.deleteKeyPair(n.publicKey),this.client.core.crypto.deleteSymKey(r),this.client.expirer.del(r)])},this.deletePairing=async r=>{await Promise.all([this.client.core.relayer.unsubscribe(r),this.client.pairing.delete(r,rt("USER_DISCONNECTED")),this.client.core.crypto.deleteSymKey(r),this.client.expirer.del(r)])},this.deleteProposal=async r=>{await Promise.all([this.client.proposal.delete(r,rt("USER_DISCONNECTED")),this.client.expirer.del(r)])},this.setExpiry=async(r,n)=>{this.client.pairing.keys.includes(r)?await this.client.pairing.update(r,{expiry:n}):this.client.session.keys.includes(r)&&await this.client.session.update(r,{expiry:n}),this.client.expirer.set(r,n)},this.setProposal=async(r,n)=>{await this.client.proposal.set(r,n),this.client.expirer.set(r,n.expiry)},this.sendRequest=async(r,n,i)=>{const s=xn(n,i),c=await this.client.core.crypto.encode(r,s),u=Ci[n].req;return await this.client.core.relayer.publish(r,c,u),this.client.history.set(r,s),s.id},this.sendResult=async(r,n,i)=>{const s=Sn(r,i),c=await this.client.core.crypto.encode(n,s),u=await this.client.history.get(n,r),h=Ci[u.request.method].res;await this.client.core.relayer.publish(n,c,h),await this.client.history.resolve(s)},this.sendError=async(r,n,i)=>{const s=qr(r,i),c=await this.client.core.crypto.encode(n,s),u=await this.client.history.get(n,r),h=Ci[u.request.method].res;await this.client.core.relayer.publish(n,c,h),await this.client.history.resolve(s)},this.cleanup=async()=>{const r=[],n=[],i=[];this.client.session.getAll().forEach(s=>{kt(s.expiry)&&r.push(s.topic)}),this.client.pairing.getAll().forEach(s=>{kt(s.expiry)&&n.push(s.topic)}),this.client.proposal.getAll().forEach(s=>{kt(s.expiry)&&i.push(s.id)}),await Promise.all([...r.map(this.deleteSession),...n.map(this.deletePairing),...i.map(this.deleteProposal)])},this.onRelayEventRequest=r=>{const{topic:n,payload:i}=r,s=i.method;switch(s){case"wc_sessionPropose":return this.onSessionProposeRequest(n,i);case"wc_sessionSettle":return this.onSessionSettleRequest(n,i);case"wc_sessionUpdate":return this.onSessionUpdateRequest(n,i);case"wc_sessionExtend":return this.onSessionExtendRequest(n,i);case"wc_sessionPing":return this.onSessionPingRequest(n,i);case"wc_pairingPing":return this.onPairingPingRequest(n,i);case"wc_sessionDelete":return this.onSessionDeleteRequest(n,i);case"wc_pairingDelete":return this.onPairingDeleteRequest(n,i);case"wc_sessionRequest":return this.onSessionRequest(n,i);case"wc_sessionEvent":return this.onSessionEventRequest(n,i);default:return this.client.logger.info(`Unsupported request method ${s}`)}},this.onRelayEventResponse=async r=>{const{topic:n,payload:i}=r,s=(await this.client.history.get(n,i.id)).request.method;switch(s){case"wc_sessionPropose":return this.onSessionProposeResponse(n,i);case"wc_sessionSettle":return this.onSessionSettleResponse(n,i);case"wc_sessionUpdate":return this.onSessionUpdateResponse(n,i);case"wc_sessionExtend":return this.onSessionExtendResponse(n,i);case"wc_sessionPing":return this.onSessionPingResponse(n,i);case"wc_pairingPing":return this.onPairingPingResponse(n,i);case"wc_sessionRequest":return this.onSessionRequestResponse(n,i);default:return this.client.logger.info(`Unsupported response method ${s}`)}},this.onSessionProposeRequest=async(r,n)=>{const{params:i,id:s}=n;try{this.isValidConnect(Ht({},n.params));const c=ar(Le.FIVE_MINUTES),u=Ht({id:s,pairingTopic:r,expiry:c},i);await this.setProposal(s,u),this.client.events.emit("session_proposal",{id:s,params:u})}catch(c){await this.sendError(s,r,c),this.client.logger.error(c)}},this.onSessionProposeResponse=async(r,n)=>{const{id:i}=n;if(Pt(n)){const{result:s}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:s});const c=this.client.proposal.get(i);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:c});const u=c.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:u});const h=s.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:h});const l=await this.client.core.crypto.generateSharedKey(u,h);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:l});const p=await this.client.core.relayer.subscribe(l);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:p}),await this.activatePairing(r)}else wt(n)&&(await this.client.proposal.delete(i,rt("USER_DISCONNECTED")),this.events.emit(Fe("session_connect"),{error:n.error}))},this.onSessionSettleRequest=async(r,n)=>{const{id:i,params:s}=n;try{this.isValidSessionSettleRequest(s);const{relay:c,controller:u,expiry:h,namespaces:l}=n.params,p={topic:r,relay:c,expiry:h,namespaces:l,acknowledged:!0,controller:u.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:u.publicKey,metadata:u.metadata}};await this.sendResult(n.id,r,!0),this.events.emit(Fe("session_connect"),{session:p})}catch(c){await this.sendError(i,r,c),this.client.logger.error(c)}},this.onSessionSettleResponse=async(r,n)=>{const{id:i}=n;Pt(n)?(await this.client.session.update(r,{acknowledged:!0}),this.events.emit(Fe("session_approve",i),{})):wt(n)&&(await this.client.session.delete(r,rt("USER_DISCONNECTED")),this.events.emit(Fe("session_approve",i),{error:n.error}))},this.onSessionUpdateRequest=async(r,n)=>{const{params:i,id:s}=n;try{this.isValidUpdate(Ht({topic:r},i)),await this.client.session.update(r,{namespaces:i.namespaces}),await this.sendResult(s,r,!0),this.client.events.emit("session_update",{id:s,topic:r,params:i})}catch(c){await this.sendError(s,r,c),this.client.logger.error(c)}},this.onSessionUpdateResponse=(r,n)=>{const{id:i}=n;Pt(n)?this.events.emit(Fe("session_update",i),{}):wt(n)&&this.events.emit(Fe("session_update",i),{error:n.error})},this.onSessionExtendRequest=async(r,n)=>{const{id:i}=n;try{this.isValidExtend({topic:r}),await this.setExpiry(r,dn),await this.sendResult(i,r,!0),this.client.events.emit("session_extend",{id:i,topic:r})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.onSessionExtendResponse=(r,n)=>{const{id:i}=n;Pt(n)?this.events.emit(Fe("session_extend",i),{}):wt(n)&&this.events.emit(Fe("session_extend",i),{error:n.error})},this.onSessionPingRequest=async(r,n)=>{const{id:i}=n;try{this.isValidPing({topic:r}),await this.sendResult(i,r,!0),this.client.events.emit("session_ping",{id:i,topic:r})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.onSessionPingResponse=(r,n)=>{const{id:i}=n;Pt(n)?this.events.emit(Fe("session_ping",i),{}):wt(n)&&this.events.emit(Fe("session_ping",i),{error:n.error})},this.onPairingPingRequest=async(r,n)=>{const{id:i}=n;try{this.isValidPing({topic:r}),await this.sendResult(i,r,!0),this.client.events.emit("pairing_ping",{id:i,topic:r})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.onPairingPingResponse=(r,n)=>{const{id:i}=n;Pt(n)?this.events.emit(Fe("pairing_ping",i),{}):wt(n)&&this.events.emit(Fe("pairing_ping",i),{error:n.error})},this.onSessionDeleteRequest=async(r,n)=>{const{id:i}=n;try{this.isValidDisconnect({topic:r,reason:n.params}),await this.sendResult(i,r,!0),await this.deleteSession(r),this.client.events.emit("session_delete",{id:i,topic:r})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.onPairingDeleteRequest=async(r,n)=>{const{id:i}=n;try{this.isValidDisconnect({topic:r,reason:n.params}),await this.sendResult(i,r,!0),await this.deletePairing(r),this.client.events.emit("pairing_delete",{id:i,topic:r})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.onSessionRequest=async(r,n)=>{const{id:i,params:s}=n;try{this.isValidRequest(Ht({topic:r},s)),this.client.events.emit("session_request",{id:i,topic:r,params:s})}catch(c){await this.sendError(i,r,c),this.client.logger.error(c)}},this.onSessionRequestResponse=(r,n)=>{const{id:i}=n;Pt(n)?this.events.emit(Fe("session_request",i),{result:n.result}):wt(n)&&this.events.emit(Fe("session_request",i),{error:n.error})},this.onSessionEventRequest=async(r,n)=>{const{id:i,params:s}=n;try{this.isValidEmit(Ht({topic:r},s)),this.client.events.emit("session_event",{id:i,topic:r,params:s})}catch(c){await this.sendError(i,r,c),this.client.logger.error(c)}},this.isValidConnect=async r=>{if(!yt(r)){const{message:u}=G("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(r)}`);throw new Error(u)}const{pairingTopic:n,requiredNamespaces:i,relays:s}=r;Et(n)||await this.isValidPairingTopic(n);const c=al(i,"connect()");if(c)throw new Error(c.message);if(!cl(s,!0)){const{message:u}=G("MISSING_OR_INVALID",`connect() relays: ${s}`);throw new Error(u)}},this.isValidPair=r=>{if(!yt(r)){const{message:n}=G("MISSING_OR_INVALID",`pair() params: ${r}`);throw new Error(n)}if(!tl(r.uri)){const{message:n}=G("MISSING_OR_INVALID",`pair() uri: ${r.uri}`);throw new Error(n)}},this.isValidApprove=async r=>{if(!yt(r))throw new Error(G("MISSING_OR_INVALID",`approve() params: ${r}`).message);const{id:n,namespaces:i,relayProtocol:s}=r;await this.isValidProposalId(n);const c=this.client.proposal.get(n),u=si(i,"approve()");if(u)throw new Error(u.message);const h=_o(c.requiredNamespaces,i,"update()");if(h)throw new Error(h.message);if(!ot(s,!0)){const{message:l}=G("MISSING_OR_INVALID",`approve() relayProtocol: ${s}`);throw new Error(l)}},this.isValidReject=async r=>{if(!yt(r)){const{message:s}=G("MISSING_OR_INVALID",`reject() params: ${r}`);throw new Error(s)}const{id:n,reason:i}=r;if(await this.isValidProposalId(n),!hl(i)){const{message:s}=G("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(i)}`);throw new Error(s)}},this.isValidSessionSettleRequest=r=>{if(!yt(r)){const{message:l}=G("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${r}`);throw new Error(l)}const{relay:n,controller:i,namespaces:s,expiry:c}=r;if(!vo(n)){const{message:l}=G("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(l)}const u=il(i,"onSessionSettleRequest()");if(u)throw new Error(u.message);const h=si(s,"onSessionSettleRequest()");if(h)throw new Error(h.message);if(kt(c)){const{message:l}=G("EXPIRED","onSessionSettleRequest()");throw new Error(l)}},this.isValidUpdate=async r=>{if(!yt(r)){const{message:h}=G("MISSING_OR_INVALID",`update() params: ${r}`);throw new Error(h)}const{topic:n,namespaces:i}=r;await this.isValidSessionTopic(n);const s=this.client.session.get(n),c=si(i,"update()");if(c)throw new Error(c.message);const u=_o(s.requiredNamespaces,i,"update()");if(u)throw new Error(u.message)},this.isValidExtend=async r=>{if(!yt(r)){const{message:i}=G("MISSING_OR_INVALID",`extend() params: ${r}`);throw new Error(i)}const{topic:n}=r;await this.isValidSessionTopic(n)},this.isValidRequest=async r=>{if(!yt(r)){const{message:u}=G("MISSING_OR_INVALID",`request() params: ${r}`);throw new Error(u)}const{topic:n,request:i,chainId:s}=r;await this.isValidSessionTopic(n);const{namespaces:c}=this.client.session.get(n);if(!yo(c,s)){const{message:u}=G("MISSING_OR_INVALID",`request() chainId: ${s}`);throw new Error(u)}if(!fl(i)){const{message:u}=G("MISSING_OR_INVALID",`request() ${JSON.stringify(i)}`);throw new Error(u)}if(!pl(c,s,i.method)){const{message:u}=G("MISSING_OR_INVALID",`request() method: ${i.method}`);throw new Error(u)}},this.isValidRespond=async r=>{if(!yt(r)){const{message:s}=G("MISSING_OR_INVALID",`respond() params: ${r}`);throw new Error(s)}const{topic:n,response:i}=r;if(await this.isValidSessionTopic(n),!ll(i)){const{message:s}=G("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(i)}`);throw new Error(s)}},this.isValidPing=async r=>{if(!yt(r)){const{message:i}=G("MISSING_OR_INVALID",`ping() params: ${r}`);throw new Error(i)}const{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async r=>{if(!yt(r)){const{message:u}=G("MISSING_OR_INVALID",`emit() params: ${r}`);throw new Error(u)}const{topic:n,event:i,chainId:s}=r;await this.isValidSessionTopic(n);const{namespaces:c}=this.client.session.get(n);if(!yo(c,s)){const{message:u}=G("MISSING_OR_INVALID",`emit() chainId: ${s}`);throw new Error(u)}if(!dl(i)){const{message:u}=G("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(i)}`);throw new Error(u)}if(!gl(c,s,i.name)){const{message:u}=G("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(i)}`);throw new Error(u)}},this.isValidDisconnect=async r=>{if(!yt(r)){const{message:i}=G("MISSING_OR_INVALID",`disconnect() params: ${r}`);throw new Error(i)}const{topic:n}=r;await this.isValidSessionOrPairingTopic(n)}}async createPairing(){const e=ei(),r=await this.client.core.crypto.setSymKey(e),n=ar(Le.FIVE_MINUTES),i={protocol:ua},s={topic:r,expiry:n,relay:i,active:!1},c=Wf({protocol:this.client.protocol,version:this.client.version,topic:r,symKey:e,relay:i});return await this.client.pairing.set(r,s),await this.client.core.relayer.subscribe(r),await this.setExpiry(r,n),{topic:r,uri:c}}isInitialized(){if(!this.initialized){const{message:e}=G("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.client.core.relayer.on(jr.message,async e=>{const{topic:r,message:n}=e,i=await this.client.core.crypto.decode(r,n);ki(i)?(this.client.history.set(r,i),this.onRelayEventRequest({topic:r,payload:i})):Yi(i)&&(await this.client.history.resolve(i),this.onRelayEventResponse({topic:r,payload:i}))})}registerExpirerEvents(){this.client.expirer.on(Dt.expired,async e=>{const{topic:r,id:n}=jf(e.target);r?this.client.session.keys.includes(r)?(await this.deleteSession(r),this.client.events.emit("session_expire",{topic:r})):this.client.pairing.keys.includes(r)&&(await this.deletePairing(r),this.client.events.emit("pairing_expire",{topic:r})):n&&await this.deleteProposal(n)})}async isValidPairingTopic(e){if(!ot(e,!1)){const{message:r}=G("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw new Error(r)}if(!this.client.pairing.keys.includes(e)){const{message:r}=G("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw new Error(r)}if(kt(this.client.pairing.get(e).expiry)){await this.deletePairing(e);const{message:r}=G("EXPIRED",`pairing topic: ${e}`);throw new Error(r)}}async isValidSessionTopic(e){if(!ot(e,!1)){const{message:r}=G("MISSING_OR_INVALID",`session topic should be a string: ${e}`);throw new Error(r)}if(!this.client.session.keys.includes(e)){const{message:r}=G("NO_MATCHING_KEY",`session topic doesn't exist: ${e}`);throw new Error(r)}if(kt(this.client.session.get(e).expiry)){await this.deleteSession(e);const{message:r}=G("EXPIRED",`session topic: ${e}`);throw new Error(r)}}async isValidSessionOrPairingTopic(e){if(this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else if(this.client.pairing.keys.includes(e))await this.isValidPairingTopic(e);else if(ot(e,!1)){const{message:r}=G("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${e}`);throw new Error(r)}else{const{message:r}=G("MISSING_OR_INVALID",`session or pairing topic should be a string: ${e}`);throw new Error(r)}}async isValidProposalId(e){if(!ul(e)){const{message:r}=G("MISSING_OR_INVALID",`proposal id should be a number: ${e}`);throw new Error(r)}if(!this.client.proposal.keys.includes(e)){const{message:r}=G("NO_MATCHING_KEY",`proposal id doesn't exist: ${e}`);throw new Error(r)}if(kt(this.client.proposal.get(e).expiry)){await this.deleteProposal(e);const{message:r}=G("EXPIRED",`proposal id: ${e}`);throw new Error(r)}}}class Dv extends Dd{constructor(e,r){super(e,r),this.core=e,this.logger=r,this.expirations=new Map,this.events=new dr.exports.EventEmitter,this.name=cv,this.version=uv,this.cached=[],this.initialized=!1,this.storagePrefix=$r,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.expirations.set(n.target,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=n=>{try{const i=this.formatTarget(n);return typeof this.getExpiration(i)<"u"}catch{return!1}},this.set=(n,i)=>{this.isInitialized();const s=this.formatTarget(n),c={target:s,expiry:i};this.expirations.set(s,c),this.checkExpiry(s,c),this.events.emit(Dt.created,{target:s,expiration:c})},this.get=n=>{this.isInitialized();const i=this.formatTarget(n);return this.getExpiration(i)},this.del=n=>{this.isInitialized();const i=this.formatTarget(n);if(this.has(i)){const s=this.getExpiration(i);this.expirations.delete(i),this.events.emit(Dt.deleted,{target:i,expiration:s})}},this.on=(n,i)=>{this.events.on(n,i)},this.once=(n,i)=>{this.events.once(n,i)},this.off=(n,i)=>{this.events.off(n,i)},this.removeListener=(n,i)=>{this.events.removeListener(n,i)},this.logger=Oe.generateChildLogger(r,this.name)}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if(typeof e=="string")return Uf(e);if(typeof e=="number")return Mf(e);const{message:r}=G("UNKNOWN_TYPE",`Target type: ${typeof e}`);throw new Error(r)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(Dt.sync)}async restore(){try{const e=await this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){const{message:r}=G("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){const r=this.expirations.get(e);if(!r){const{message:n}=G("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(n),new Error(n)}return r}checkExpiry(e,r){const{expiry:n}=r;Le.toMiliseconds(n)-Date.now()<=0&&this.expire(e,r)}expire(e,r){this.expirations.delete(e),this.events.emit(Dt.expired,{target:e,expiration:r})}checkExpirations(){this.expirations.forEach((e,r)=>this.checkExpiry(r,e))}registerEventListeners(){this.core.heartbeat.on(Pr.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(Dt.created,e=>{const r=Dt.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:e}),this.persist()}),this.events.on(Dt.expired,e=>{const r=Dt.expired;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:e}),this.persist()}),this.events.on(Dt.deleted,e=>{const r=Dt.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:e}),this.persist()})}isInitialized(){if(!this.initialized){const{message:e}=G("NOT_INITIALIZED",this.name);throw new Error(e)}}}class xv extends dd{constructor(e,r){super(e,r),this.core=e,this.logger=r,this.records=new Map,this.events=new dr.exports.EventEmitter,this.name=hv,this.version=fv,this.cached=[],this.initialized=!1,this.storagePrefix=$r,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.records.set(n.id,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(n,i,s)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:n,request:i,chainId:s}),this.records.has(i.id))return;const c={id:i.id,topic:n,request:{method:i.method,params:i.params||null},chainId:s};this.records.set(c.id,c),this.events.emit(Lt.created,c)},this.resolve=async n=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:n}),!this.records.has(n.id))return;const i=await this.getRecord(n.id);typeof i.response>"u"&&(i.response=wt(n)?{error:n.error}:{result:n.result},this.records.set(i.id,i),this.events.emit(Lt.updated,i))},this.get=async(n,i)=>{this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:n,id:i});const s=await this.getRecord(i);if(s.topic!==n){const{message:c}=G("MISMATCHED_TOPIC",`${this.name}, ${i}`);throw this.logger.error(c),new Error(c)}return s},this.delete=(n,i)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:i}),this.values.forEach(s=>{if(s.topic===n){if(typeof i<"u"&&s.id!==i)return;this.records.delete(s.id),this.events.emit(Lt.deleted,s)}})},this.exists=async(n,i)=>(this.isInitialized(),this.records.has(i)?(await this.getRecord(i)).topic===n:!1),this.on=(n,i)=>{this.events.on(n,i)},this.once=(n,i)=>{this.events.once(n,i)},this.off=(n,i)=>{this.events.off(n,i)},this.removeListener=(n,i)=>{this.events.removeListener(n,i)},this.logger=Oe.generateChildLogger(r,this.name)}get context(){return Oe.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const e=[];return this.values.forEach(r=>{if(typeof r.response<"u")return;const n={topic:r.topic,request:xn(r.request.method,r.request.params,r.id),chainId:r.chainId};return e.push(n)}),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();const r=this.records.get(e);if(!r){const{message:n}=G("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(n)}return r}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(Lt.sync)}async restore(){try{const e=await this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){const{message:r}=G("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(Lt.created,e=>{const r=Lt.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:e}),this.persist()}),this.events.on(Lt.updated,e=>{const r=Lt.updated;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:e}),this.persist()}),this.events.on(Lt.deleted,e=>{const r=Lt.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:e}),this.persist()})}isInitialized(){if(!this.initialized){const{message:e}=G("NOT_INITIALIZED",this.name);throw new Error(e)}}}class Sv extends Ai{constructor(e,r){super(e,r,lv,$r),this.core=e,this.logger=r}}class Ov extends Ai{constructor(e,r){super(e,r,dv,$r),this.core=e,this.logger=r}}class Av extends Ai{constructor(e,r){super(e,r,pv,$r),this.core=e,this.logger=r}}class Ti extends wd{constructor(e){super(e),this.protocol=Ca,this.version=Ta,this.name=Li.name,this.events=new dr.exports.EventEmitter,this.on=(n,i)=>this.events.on(n,i),this.once=(n,i)=>this.events.once(n,i),this.off=(n,i)=>this.events.off(n,i),this.removeListener=(n,i)=>this.events.removeListener(n,i),this.connect=async n=>{try{return await this.engine.connect(n)}catch(i){throw this.logger.error(i.message),i}},this.pair=async n=>{try{return await this.engine.pair(n)}catch(i){throw this.logger.error(i.message),i}},this.approve=async n=>{try{return await this.engine.approve(n)}catch(i){throw this.logger.error(i.message),i}},this.reject=async n=>{try{return await this.engine.reject(n)}catch(i){throw this.logger.error(i.message),i}},this.update=async n=>{try{return await this.engine.update(n)}catch(i){throw this.logger.error(i.message),i}},this.extend=async n=>{try{return await this.engine.extend(n)}catch(i){throw this.logger.error(i.message),i}},this.request=async n=>{try{return await this.engine.request(n)}catch(i){throw this.logger.error(i.message),i}},this.respond=async n=>{try{return await this.engine.respond(n)}catch(i){throw this.logger.error(i.message),i}},this.ping=async n=>{try{return await this.engine.ping(n)}catch(i){throw this.logger.error(i.message),i}},this.emit=async n=>{try{return await this.engine.emit(n)}catch(i){throw this.logger.error(i.message),i}},this.disconnect=async n=>{try{return await this.engine.disconnect(n)}catch(i){throw this.logger.error(i.message),i}},this.find=n=>{try{return this.engine.find(n)}catch(i){throw this.logger.error(i.message),i}},this.name=e?.name||Li.name,this.metadata=e?.metadata||Tf();const r=typeof e?.logger<"u"&&typeof e?.logger!="string"?e.logger:oi(Oe.getDefaultLoggerOptions({level:e?.logger||Li.logger}));this.core=e?.core||new tv(e),this.logger=Oe.generateChildLogger(r,this.name),this.pairing=new Sv(this.core,this.logger),this.session=new Av(this.core,this.logger),this.proposal=new Ov(this.core,this.logger),this.history=new xv(this.core,this.logger),this.expirer=new Dv(this.core,this.logger),this.engine=new Ev(this)}static async init(e){const r=new Ti(e);return await r.initialize(),r}get context(){return Oe.getLoggerContext(this.logger)}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.pairing.init(),await this.session.init(),await this.proposal.init(),await this.history.init(),await this.expirer.init(),await this.engine.init(),this.logger.info("SignClient Initilization Success")}catch(e){throw this.logger.info("SignClient Initilization Failure"),this.logger.error(e.message),e}}}function Ge(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}var Iv=Ge;Ge.EventEmitter=Ge,Ge.prototype._events=void 0,Ge.prototype._maxListeners=void 0,Ge.defaultMaxListeners=10,Ge.prototype.setMaxListeners=function(t){if(!Lv(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},Ge.prototype.emit=function(t){var e,r,n,i,s,c;if(this._events||(this._events={}),t==="error"&&(!this._events.error||Br(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;var u=new Error('Uncaught, unspecified "error" event. ('+e+")");throw u.context=e,u}if(r=this._events[t],Ma(r))return!1;if(Ut(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),r.apply(this,i)}else if(Br(r))for(i=Array.prototype.slice.call(arguments,1),c=r.slice(),n=c.length,s=0;s<n;s++)c[s].apply(this,i);return!0},Ge.prototype.addListener=function(t,e){var r;if(!Ut(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,Ut(e.listener)?e.listener:e),this._events[t]?Br(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,Br(this._events[t])&&!this._events[t].warned&&(Ma(this._maxListeners)?r=Ge.defaultMaxListeners:r=this._maxListeners,r&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),typeof console.trace=="function"&&console.trace())),this},Ge.prototype.on=Ge.prototype.addListener,Ge.prototype.once=function(t,e){if(!Ut(e))throw TypeError("listener must be a function");var r=!1;function n(){this.removeListener(t,n),r||(r=!0,e.apply(this,arguments))}return n.listener=e,this.on(t,n),this},Ge.prototype.removeListener=function(t,e){var r,n,i,s;if(!Ut(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(r=this._events[t],i=r.length,n=-1,r===e||Ut(r.listener)&&r.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(Br(r)){for(s=i;s-- >0;)if(r[s]===e||r[s].listener&&r[s].listener===e){n=s;break}if(n<0)return this;r.length===1?(r.length=0,delete this._events[t]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},Ge.prototype.removeAllListeners=function(t){var e,r;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[t]&&delete this._events[t],this;if(arguments.length===0){for(e in this._events)e!=="removeListener"&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],Ut(r))this.removeListener(t,r);else if(r)for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},Ge.prototype.listeners=function(t){var e;return!this._events||!this._events[t]?e=[]:Ut(this._events[t])?e=[this._events[t]]:e=this._events[t].slice(),e},Ge.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(Ut(e))return 1;if(e)return e.length}return 0},Ge.listenerCount=function(t,e){return t.listenerCount(e)};function Ut(t){return typeof t=="function"}function Lv(t){return typeof t=="number"}function Br(t){return typeof t=="object"&&t!==null}function Ma(t){return t===void 0}function Cv(t){return typeof t<"u"&&typeof t.context<"u"}const Ct={init:"signer_init",uri:"signer_uri",created:"signer_created",updated:"signer_updated",deleted:"signer_deleted",event:"signer_event"};class Tv extends uc{constructor(e){super(),this.events=new Iv.EventEmitter,this.pending=!1,this.initializing=!1,this.requiredNamespaces=e?.requiredNamespaces||{},this.opts=e?.client}get connected(){return typeof this.session<"u"}get connecting(){return this.pending}get chains(){return this.session?Yn(this.session.namespaces):lf(this.requiredNamespaces)}get accounts(){return this.session?kn(this.session.namespaces):[]}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}off(e,r){this.events.off(e,r)}removeListener(e,r){this.events.removeListener(e,r)}async open(){if(this.pending)return new Promise((e,r)=>{this.events.once("open",()=>{if(this.events.once("open_error",n=>{r(n)}),typeof this.client>"u")return r(new Error("Sign Client not initialized"));e()})});try{this.pending=!0;const e=await this.register(),r=e.find({requiredNamespaces:this.requiredNamespaces});if(r.length)return this.onOpen(r[0]);const{uri:n,approval:i}=await e.connect({requiredNamespaces:this.requiredNamespaces});this.events.emit(Ct.uri,{uri:n}),this.session=await i(),this.events.emit(Ct.created,this.session),this.onOpen()}catch(e){throw this.events.emit("open_error",e),e}}async close(){typeof this.session>"u"||(await(await this.register()).disconnect({topic:this.session.topic,reason:rt("USER_DISCONNECTED")}),this.onClose())}async send(e,r){if(typeof this.client>"u"&&(this.client=await this.register(),this.connected||await this.open()),typeof this.session>"u")throw new Error("Signer connection is missing session");this.client.request({topic:this.session.topic,request:e,chainId:r?.chainId}).then(n=>this.events.emit("payload",Sn(e.id,n))).catch(n=>this.events.emit("payload",qr(e.id,n.message)))}async register(e=this.opts){if(typeof this.client<"u")return this.client;if(this.initializing)return new Promise((r,n)=>{this.events.once("register_error",i=>{n(i)}),this.events.once(Ct.init,()=>{if(typeof this.client>"u")return n(new Error("Sign Client not initialized"));r(this.client)})});if(Cv(e))return this.client=e,this.registerEventListeners(),this.client;try{return this.initializing=!0,this.client=await Ti.init(e),this.initializing=!1,this.registerEventListeners(),this.events.emit(Ct.init),this.client}catch(r){throw this.events.emit("register_error",r),r}}onOpen(e){this.pending=!1,e&&(this.session=e),this.events.emit("open")}onClose(){this.pending=!1,this.client&&(this.client=void 0),this.events.emit("close")}registerEventListeners(){typeof this.client<"u"&&(this.client.on("session_event",e=>{var r;this.session&&((r=this.session)==null?void 0:r.topic)!==e.topic||this.events.emit(Ct.event,e.params)}),this.client.on("session_update",e=>{var r;typeof this.client<"u"&&(this.session&&((r=this.session)==null?void 0:r.topic)!==e.topic||(this.session=this.client.session.get(e.topic),this.events.emit(Ct.updated,this.session)))}),this.client.on("session_delete",e=>{var r;!this.session||this.session&&((r=this.session)==null?void 0:r.topic)!==e.topic||(this.onClose(),this.events.emit(Ct.deleted,this.session),this.session=void 0)}))}}const Nv=["eth_requestAccounts","eth_accounts","eth_chainId","eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","personal_sign"],Pv=["chainChanged","accountsChanged"];function ja(t){return{chains:t!=null&&t.chainId?[`eip155:${t.chainId}`]:[],methods:t?.methods||[],events:t?.events||[],rpcMap:t?.rpcMap||void 0}}function $a(t,e){let r;return e.rpcMap&&(r=e.rpcMap[Ni([t])]),r}function Ni(t){return Number(t[0].split(":")[1])}class Rv{constructor(e){this.events=new vr.EventEmitter,this.namespace="eip155",this.accounts=[],this.rpc=ja(e),this.signer=this.setSignerProvider(e?.client),this.chainId=Ni(this.rpc.chains),this.http=this.setHttpProvider(this.chainId),this.registerEventListeners()}async request(e){switch(e.method){case"eth_requestAccounts":return await this.connect(),this.accounts;case"eth_accounts":return this.accounts;case"eth_chainId":return this.chainId}if(e.method.startsWith("eth_signTypedData")||this.rpc.methods.includes(e.method))return this.signer.request(e,{chainId:this.formatChainId(this.chainId)});if(typeof this.http>"u")throw new Error(`Cannot request JSON-RPC method (${e.method}) without provided rpc url`);return this.http.request(e)}sendAsync(e,r){this.request(e).then(n=>r(null,n)).catch(n=>r(n,void 0))}get connected(){return this.signer.connection.connected}get connecting(){return this.signer.connection.connecting}async enable(){return await this.request({method:"eth_requestAccounts"})}async connect(){await this.signer.connect()}async disconnect(){await this.signer.disconnect()}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}removeListener(e,r){this.events.removeListener(e,r)}off(e,r){this.events.off(e,r)}get isWalletConnect(){return!0}registerEventListeners(){this.signer.on("connect",()=>{const e=this.signer.connection.chains;e&&e.length&&this.setChainIds(e);const r=this.signer.connection.accounts;r&&r.length&&this.setAccounts(r)}),this.signer.connection.on(Ct.created,e=>{const r=Yn(e.namespaces,[this.namespace]);this.setChainIds(r);const n=kn(e.namespaces,[this.namespace]);this.setAccounts(n)}),this.signer.connection.on(Ct.updated,e=>{const r=Yn(e.namespaces,[this.namespace]);this.setChainIds(r);const n=kn(e.namespaces,[this.namespace]);n!==this.accounts&&this.setAccounts(n)}),this.signer.connection.on(Ct.event,e=>{if(!this.rpc.chains.includes(e.chainId))return;const{event:r}=e;r.name==="accountsChanged"?(this.accounts=r.data,this.events.emit("accountsChanged",this.accounts)):r.name==="chainChanged"?this.setChainId(r.data):this.events.emit(r.name,r.data)}),this.signer.on("disconnect",()=>{this.events.emit("disconnect")}),this.events.on("chainChanged",e=>this.setHttpProvider(e))}setSignerProvider(e){const r=new Tv({requiredNamespaces:{[this.namespace]:{chains:this.rpc.chains,methods:this.rpc.methods,events:this.rpc.events}},client:e});return new On(r)}setHttpProvider(e){const r=$a(`${this.namespace}:${e}`,this.rpc);return typeof r>"u"?void 0:new On(new vc(r))}isCompatibleChainId(e){return typeof e=="string"?e.startsWith(`${this.namespace}:`):!1}formatChainId(e){return`${this.namespace}:${e}`}parseChainId(e){return Number(e.split(":")[1])}setChainIds(e){const r=e.filter(n=>this.isCompatibleChainId(n)).map(n=>this.parseChainId(n)).filter(n=>n!==this.chainId);r.length&&(this.chainId=r[0],this.events.emit("chainChanged",this.chainId))}setChainId(e){if(this.isCompatibleChainId(e)){const r=this.parseChainId(e);this.chainId=r,this.events.emit("chainChanged",this.chainId)}}parseAccountId(e){const[r,n,i]=e.split(":");return{chainId:`${r}:${n}`,address:i}}setAccounts(e){this.accounts=e.filter(r=>this.parseChainId(this.parseAccountId(r).chainId)===this.chainId).map(r=>this.parseAccountId(r).address),this.events.emit("accountsChanged",this.accounts)}}mt.default=Rv,mt.getEthereumChainId=Ni,mt.getRpcConfig=ja,mt.getRpcUrl=$a,mt.signerEvents=Pv,mt.signerMethods=Nv,Object.defineProperty(mt,"__esModule",{value:!0})});
103
2
  //# sourceMappingURL=index.umd.js.map