@chillicream/nitro-embedded 32.0.2 → 33.0.0-insider.2

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.
@@ -1,4 +1,4 @@
1
- var pr=(r,n)=>()=>(n||r((n={exports:{}}).exports,n),n.exports);import{p as process$1,B as Buffer}from"./monaco.cbb9dd2a.D_5Blgsx.js";var vr=pr((exports,module)=>{getOsName();isMacLike();const IS_RUNNING_IN_ELECTRON=navigator.userAgent.indexOf("Electron")>=0;function getOsName(){return navigator.userAgent.indexOf("Win")>=0?"Windows":navigator.userAgent.indexOf("Mac")>=0?"macOS":navigator.userAgent.indexOf("X11")>=0||navigator.userAgent.indexOf("Linux")>=0?"Linux":"Unknown"}function isMacLike(){const r=navigator.userAgent.toLowerCase();return r.includes("mac os")||r.includes("ipad")}const APP_NAME="Nitro",APP_VERSION="32.0.2",APP_GRAPHQL_CLIENT_ID="Q2xpZW50Cmc5ZjAwOTFmNTY5NmQ0NTZkOWUwZDQ0ZDMzYjJhZDJlOA==",cloudUriPattern=new RegExp("^https?:\\/\\/.*?\\.(bananacakepop\\.com|chillicream\\.com|chillicream\\.cloud)","i"),IS_RUNNING_IN_CLOUD=cloudUriPattern?.test(self.origin)??!1,APP_TYPE=IS_RUNNING_IN_CLOUD?"cloud":IS_RUNNING_IN_ELECTRON?"app":"middleware",APP_AGENT=`${APP_NAME}/${APP_VERSION} (${APP_TYPE})`,HEADER_AUTHORIZATION="Authorization",HEADER_CONTENT_TYPE="Content-Type",HEADER_USER_AGENT="User-Agent",HTTP_SCHEME_PATTERN=/^https?:\/\//i,INTERPOLATION_VARIABLE_NAME_PATTERN=/{{\s*([a-z0-9_\-|.:+#$!?;,]+)\s*}}/gi,FUSION_OPERATION_PLAN_HEADER_NAME_PATTERN=/fusion-operation-plan/i,INTROSPECTION_PREFIX=/^_{2}(?!_)/i,ABORT_ERROR_NAME="AbortError",ABORT_ERROR=new DOMException("Action cancelled",ABORT_ERROR_NAME),TIMEOUT_ABORT_ERROR_MESSAGE="Action timed out",TIMEOUT_ABORT_ERROR=new DOMException(TIMEOUT_ABORT_ERROR_MESSAGE,ABORT_ERROR_NAME);class TimeoutAbortSignal{#e;#t;#r;constructor(n,a){this.#e=n,this.#t=a}get aborted(){return this.#e.aborted}get cancelled(){return this.#t()}get onabort(){return this.#e.onabort}get reason(){return this.#e.reason}dispatchEvent(n){return this.#e.dispatchEvent(n)}throwIfAborted(){this.#e.throwIfAborted()}toAbortSignal(){return this.#e}toPromise(){if(this.#r)return this.#r;const n=this;let a=!1;return this.#r=new Promise((i,o)=>{if(n.aborted){a=!0,o(TIMEOUT_ABORT_ERROR);return}if(n.cancelled){a=!0,i();return}function s(){n.removeEventListener("abort",s),n.removeEventListener("cancelled",l),a||(a=!0,o(TIMEOUT_ABORT_ERROR))}function l(){n.removeEventListener("abort",s),n.removeEventListener("cancelled",l),a||(a=!0,i())}n.addEventListener("abort",s),n.addEventListener("cancelled",l)}),this.#r}addEventListener(n,a,i){this.#e.addEventListener(n,a,i)}removeEventListener(n,a,i){this.#e.removeEventListener(n,a,i)}}class TimeoutAbortController{_controller=new AbortController;_signal=new TimeoutAbortSignal(this._controller.signal,()=>this._cancelled);_cancelled=!1;_timeoutHandle;constructor(n){this._timeoutHandle=self.setTimeout(()=>{this.abort(TIMEOUT_ABORT_ERROR_MESSAGE)},n)}get signal(){return this._signal}abort(n){this._controller.abort(n)}cancel(){this._cancelled=!0,self.clearTimeout(this._timeoutHandle),this._signal.dispatchEvent(new Event("cancelled"))}}function isAbortError(r){return r instanceof DOMException&&r.name===ABORT_ERROR_NAME}function isTimeoutAbortError(r){return isAbortError(r)&&r.message===TIMEOUT_ABORT_ERROR_MESSAGE}function createAbortScope(r,n,a){return a?a.aborted?Promise.reject(ABORT_ERROR):(a.addEventListener("abort",r),n().finally(()=>{a.removeEventListener("abort",r)})):n()}function distinct(r){return r.filter((n,a,i)=>i.indexOf(n)===a)}function isObjectArray(r){return typeof r!="string"&&Array.isArray(r)&&r.every(n=>typeof n=="object"&&!Array.isArray(n))}function isStringArray(r){return typeof r!="string"&&Array.isArray(r)&&r.every(n=>typeof n=="string")}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function getAugmentedNamespace(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var n=r.default;if(typeof n=="function"){var a=function i(){var o=!1;try{o=this instanceof i}catch{}return o?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};a.prototype=n.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(r).forEach(function(i){var o=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(a,i,o.get?o:{enumerable:!0,get:function(){return r[i]}})}),a}var inherits_browser={exports:{}},hasRequiredInherits_browser;function requireInherits_browser(){return hasRequiredInherits_browser||(hasRequiredInherits_browser=1,typeof Object.create=="function"?inherits_browser.exports=function(n,a){a&&(n.super_=a,n.prototype=Object.create(a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(n,a){if(a){n.super_=a;var i=function(){};i.prototype=a.prototype,n.prototype=new i,n.prototype.constructor=n}}),inherits_browser.exports}var safeBuffer$1={exports:{}},dist={},hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(r){Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var n={},a={};a.byteLength=c,a.toByteArray=h,a.fromByteArray=_;for(var i=[],o=[],s=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,d=l.length;f<d;++f)i[f]=l[f],o[l.charCodeAt(f)]=f;o[45]=62,o[95]=63;function u(O){var M=O.length;if(M%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var F=O.indexOf("=");F===-1&&(F=M);var L=F===M?0:4-F%4;return[F,L]}function c(O){var M=u(O),F=M[0],L=M[1];return(F+L)*3/4-L}function v(O,M,F){return(M+F)*3/4-F}function h(O){var M,F=u(O),L=F[0],k=F[1],P=new s(v(O,L,k)),U=0,B=k>0?L-4:L,j;for(j=0;j<B;j+=4)M=o[O.charCodeAt(j)]<<18|o[O.charCodeAt(j+1)]<<12|o[O.charCodeAt(j+2)]<<6|o[O.charCodeAt(j+3)],P[U++]=M>>16&255,P[U++]=M>>8&255,P[U++]=M&255;return k===2&&(M=o[O.charCodeAt(j)]<<2|o[O.charCodeAt(j+1)]>>4,P[U++]=M&255),k===1&&(M=o[O.charCodeAt(j)]<<10|o[O.charCodeAt(j+1)]<<4|o[O.charCodeAt(j+2)]>>2,P[U++]=M>>8&255,P[U++]=M&255),P}function m(O){return i[O>>18&63]+i[O>>12&63]+i[O>>6&63]+i[O&63]}function g(O,M,F){for(var L,k=[],P=M;P<F;P+=3)L=(O[P]<<16&16711680)+(O[P+1]<<8&65280)+(O[P+2]&255),k.push(m(L));return k.join("")}function _(O){for(var M,F=O.length,L=F%3,k=[],P=16383,U=0,B=F-L;U<B;U+=P)k.push(g(O,U,U+P>B?B:U+P));return L===1?(M=O[F-1],k.push(i[M>>2]+i[M<<4&63]+"==")):L===2&&(M=(O[F-2]<<8)+O[F-1],k.push(i[M>>10]+i[M>>4&63]+i[M<<2&63]+"=")),k.join("")}var S={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */S.read=function(O,M,F,L,k){var P,U,B=k*8-L-1,j=(1<<B)-1,$=j>>1,A=-7,R=F?k-1:0,y=F?-1:1,b=O[M+R];for(R+=y,P=b&(1<<-A)-1,b>>=-A,A+=B;A>0;P=P*256+O[M+R],R+=y,A-=8);for(U=P&(1<<-A)-1,P>>=-A,A+=L;A>0;U=U*256+O[M+R],R+=y,A-=8);if(P===0)P=1-$;else{if(P===j)return U?NaN:(b?-1:1)*(1/0);U=U+Math.pow(2,L),P=P-$}return(b?-1:1)*U*Math.pow(2,P-L)},S.write=function(O,M,F,L,k,P){var U,B,j,$=P*8-k-1,A=(1<<$)-1,R=A>>1,y=k===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=L?0:P-1,D=L?1:-1,I=M<0||M===0&&1/M<0?1:0;for(M=Math.abs(M),isNaN(M)||M===1/0?(B=isNaN(M)?1:0,U=A):(U=Math.floor(Math.log(M)/Math.LN2),M*(j=Math.pow(2,-U))<1&&(U--,j*=2),U+R>=1?M+=y/j:M+=y*Math.pow(2,1-R),M*j>=2&&(U++,j/=2),U+R>=A?(B=0,U=A):U+R>=1?(B=(M*j-1)*Math.pow(2,k),U=U+R):(B=M*Math.pow(2,R-1)*Math.pow(2,k),U=0));k>=8;O[F+b]=B&255,b+=D,B/=256,k-=8);for(U=U<<k|B,$+=k;$>0;O[F+b]=U&255,b+=D,U/=256,$-=8);O[F+b-D]|=I*128};/*!
1
+ var pr=(r,n)=>()=>(n||r((n={exports:{}}).exports,n),n.exports);import{p as process$1,B as Buffer}from"./monaco.cbb9dd2a.D_5Blgsx.js";var vr=pr((exports,module)=>{getOsName();isMacLike();const IS_RUNNING_IN_ELECTRON=navigator.userAgent.indexOf("Electron")>=0;function getOsName(){return navigator.userAgent.indexOf("Win")>=0?"Windows":navigator.userAgent.indexOf("Mac")>=0?"macOS":navigator.userAgent.indexOf("X11")>=0||navigator.userAgent.indexOf("Linux")>=0?"Linux":"Unknown"}function isMacLike(){const r=navigator.userAgent.toLowerCase();return r.includes("mac os")||r.includes("ipad")}const APP_NAME="Nitro",APP_VERSION="33.0.0-insider.2",APP_GRAPHQL_CLIENT_ID="Q2xpZW50Cmc5ZjAwOTFmNTY5NmQ0NTZkOWUwZDQ0ZDMzYjJhZDJlOA==",cloudUriPattern=new RegExp("^https?:\\/\\/.*?\\.(bananacakepop\\.com|chillicream\\.com|chillicream\\.cloud)","i"),IS_RUNNING_IN_CLOUD=cloudUriPattern?.test(self.origin)??!1,APP_TYPE=IS_RUNNING_IN_CLOUD?"cloud":IS_RUNNING_IN_ELECTRON?"app":"middleware",APP_AGENT=`${APP_NAME}/${APP_VERSION} (${APP_TYPE})`,HEADER_AUTHORIZATION="Authorization",HEADER_CONTENT_TYPE="Content-Type",HEADER_USER_AGENT="User-Agent",HTTP_SCHEME_PATTERN=/^https?:\/\//i,INTERPOLATION_VARIABLE_NAME_PATTERN=/{{\s*([a-z0-9_\-|.:+#$!?;,]+)\s*}}/gi,FUSION_OPERATION_PLAN_HEADER_NAME_PATTERN=/fusion-operation-plan/i,INTROSPECTION_PREFIX=/^_{2}(?!_)/i,ABORT_ERROR_NAME="AbortError",ABORT_ERROR=new DOMException("Action cancelled",ABORT_ERROR_NAME),TIMEOUT_ABORT_ERROR_MESSAGE="Action timed out",TIMEOUT_ABORT_ERROR=new DOMException(TIMEOUT_ABORT_ERROR_MESSAGE,ABORT_ERROR_NAME);class TimeoutAbortSignal{#e;#t;#r;constructor(n,a){this.#e=n,this.#t=a}get aborted(){return this.#e.aborted}get cancelled(){return this.#t()}get onabort(){return this.#e.onabort}get reason(){return this.#e.reason}dispatchEvent(n){return this.#e.dispatchEvent(n)}throwIfAborted(){this.#e.throwIfAborted()}toAbortSignal(){return this.#e}toPromise(){if(this.#r)return this.#r;const n=this;let a=!1;return this.#r=new Promise((i,o)=>{if(n.aborted){a=!0,o(TIMEOUT_ABORT_ERROR);return}if(n.cancelled){a=!0,i();return}function s(){n.removeEventListener("abort",s),n.removeEventListener("cancelled",l),a||(a=!0,o(TIMEOUT_ABORT_ERROR))}function l(){n.removeEventListener("abort",s),n.removeEventListener("cancelled",l),a||(a=!0,i())}n.addEventListener("abort",s),n.addEventListener("cancelled",l)}),this.#r}addEventListener(n,a,i){this.#e.addEventListener(n,a,i)}removeEventListener(n,a,i){this.#e.removeEventListener(n,a,i)}}class TimeoutAbortController{_controller=new AbortController;_signal=new TimeoutAbortSignal(this._controller.signal,()=>this._cancelled);_cancelled=!1;_timeoutHandle;constructor(n){this._timeoutHandle=self.setTimeout(()=>{this.abort(TIMEOUT_ABORT_ERROR_MESSAGE)},n)}get signal(){return this._signal}abort(n){this._controller.abort(n)}cancel(){this._cancelled=!0,self.clearTimeout(this._timeoutHandle),this._signal.dispatchEvent(new Event("cancelled"))}}function isAbortError(r){return r instanceof DOMException&&r.name===ABORT_ERROR_NAME}function isTimeoutAbortError(r){return isAbortError(r)&&r.message===TIMEOUT_ABORT_ERROR_MESSAGE}function createAbortScope(r,n,a){return a?a.aborted?Promise.reject(ABORT_ERROR):(a.addEventListener("abort",r),n().finally(()=>{a.removeEventListener("abort",r)})):n()}function distinct(r){return r.filter((n,a,i)=>i.indexOf(n)===a)}function isObjectArray(r){return typeof r!="string"&&Array.isArray(r)&&r.every(n=>typeof n=="object"&&!Array.isArray(n))}function isStringArray(r){return typeof r!="string"&&Array.isArray(r)&&r.every(n=>typeof n=="string")}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function getAugmentedNamespace(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var n=r.default;if(typeof n=="function"){var a=function i(){var o=!1;try{o=this instanceof i}catch{}return o?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};a.prototype=n.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(r).forEach(function(i){var o=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(a,i,o.get?o:{enumerable:!0,get:function(){return r[i]}})}),a}var inherits_browser={exports:{}},hasRequiredInherits_browser;function requireInherits_browser(){return hasRequiredInherits_browser||(hasRequiredInherits_browser=1,typeof Object.create=="function"?inherits_browser.exports=function(n,a){a&&(n.super_=a,n.prototype=Object.create(a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(n,a){if(a){n.super_=a;var i=function(){};i.prototype=a.prototype,n.prototype=new i,n.prototype.constructor=n}}),inherits_browser.exports}var safeBuffer$1={exports:{}},dist={},hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(r){Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var n={},a={};a.byteLength=c,a.toByteArray=h,a.fromByteArray=_;for(var i=[],o=[],s=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,d=l.length;f<d;++f)i[f]=l[f],o[l.charCodeAt(f)]=f;o[45]=62,o[95]=63;function u(O){var M=O.length;if(M%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var F=O.indexOf("=");F===-1&&(F=M);var L=F===M?0:4-F%4;return[F,L]}function c(O){var M=u(O),F=M[0],L=M[1];return(F+L)*3/4-L}function v(O,M,F){return(M+F)*3/4-F}function h(O){var M,F=u(O),L=F[0],k=F[1],P=new s(v(O,L,k)),U=0,B=k>0?L-4:L,j;for(j=0;j<B;j+=4)M=o[O.charCodeAt(j)]<<18|o[O.charCodeAt(j+1)]<<12|o[O.charCodeAt(j+2)]<<6|o[O.charCodeAt(j+3)],P[U++]=M>>16&255,P[U++]=M>>8&255,P[U++]=M&255;return k===2&&(M=o[O.charCodeAt(j)]<<2|o[O.charCodeAt(j+1)]>>4,P[U++]=M&255),k===1&&(M=o[O.charCodeAt(j)]<<10|o[O.charCodeAt(j+1)]<<4|o[O.charCodeAt(j+2)]>>2,P[U++]=M>>8&255,P[U++]=M&255),P}function m(O){return i[O>>18&63]+i[O>>12&63]+i[O>>6&63]+i[O&63]}function g(O,M,F){for(var L,k=[],P=M;P<F;P+=3)L=(O[P]<<16&16711680)+(O[P+1]<<8&65280)+(O[P+2]&255),k.push(m(L));return k.join("")}function _(O){for(var M,F=O.length,L=F%3,k=[],P=16383,U=0,B=F-L;U<B;U+=P)k.push(g(O,U,U+P>B?B:U+P));return L===1?(M=O[F-1],k.push(i[M>>2]+i[M<<4&63]+"==")):L===2&&(M=(O[F-2]<<8)+O[F-1],k.push(i[M>>10]+i[M>>4&63]+i[M<<2&63]+"=")),k.join("")}var S={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */S.read=function(O,M,F,L,k){var P,U,B=k*8-L-1,j=(1<<B)-1,$=j>>1,A=-7,R=F?k-1:0,y=F?-1:1,b=O[M+R];for(R+=y,P=b&(1<<-A)-1,b>>=-A,A+=B;A>0;P=P*256+O[M+R],R+=y,A-=8);for(U=P&(1<<-A)-1,P>>=-A,A+=L;A>0;U=U*256+O[M+R],R+=y,A-=8);if(P===0)P=1-$;else{if(P===j)return U?NaN:(b?-1:1)*(1/0);U=U+Math.pow(2,L),P=P-$}return(b?-1:1)*U*Math.pow(2,P-L)},S.write=function(O,M,F,L,k,P){var U,B,j,$=P*8-k-1,A=(1<<$)-1,R=A>>1,y=k===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=L?0:P-1,D=L?1:-1,I=M<0||M===0&&1/M<0?1:0;for(M=Math.abs(M),isNaN(M)||M===1/0?(B=isNaN(M)?1:0,U=A):(U=Math.floor(Math.log(M)/Math.LN2),M*(j=Math.pow(2,-U))<1&&(U--,j*=2),U+R>=1?M+=y/j:M+=y*Math.pow(2,1-R),M*j>=2&&(U++,j/=2),U+R>=A?(B=0,U=A):U+R>=1?(B=(M*j-1)*Math.pow(2,k),U=U+R):(B=M*Math.pow(2,R-1)*Math.pow(2,k),U=0));k>=8;O[F+b]=B&255,b+=D,B/=256,k-=8);for(U=U<<k|B,$+=k;$>0;O[F+b]=U&255,b+=D,U/=256,$-=8);O[F+b-D]|=I*128};/*!
2
2
  * The buffer module from node.js, for the browser.
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
@@ -32,7 +32,7 @@ var pr=(r,n)=>()=>(n||r((n={exports:{}}).exports,n),n.exports);import{p as proce
32
32
  *
33
33
  * Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
34
34
  * Released under the MIT License.
35
- */var setValue_1,hasRequiredSetValue;function requireSetValue(){if(hasRequiredSetValue)return setValue_1;hasRequiredSetValue=1;const{deleteProperty:r}=Reflect,n=requireIsPrimitive(),a=requireIsPlainObject(),i=m=>typeof m=="object"&&m!==null||typeof m=="function",o=m=>m==="__proto__"||m==="constructor"||m==="prototype",s=m=>{if(!n(m))throw new TypeError("Object keys must be strings or symbols");if(o(m))throw new Error(`Cannot set unsafe key: "${m}"`)},l=m=>Array.isArray(m)?m.flat().map(String).join(","):m,f=(m,g)=>{if(typeof m!="string"||!g)return m;let _=m+";";return g.arrays!==void 0&&(_+=`arrays=${g.arrays};`),g.separator!==void 0&&(_+=`separator=${g.separator};`),g.split!==void 0&&(_+=`split=${g.split};`),g.merge!==void 0&&(_+=`merge=${g.merge};`),g.preservePaths!==void 0&&(_+=`preservePaths=${g.preservePaths};`),_},d=(m,g,_)=>{const S=l(g?f(m,g):m);s(S);const N=h.cache.get(S)||_();return h.cache.set(S,N),N},u=(m,g={})=>{const _=g.separator||".",S=_==="/"?!1:g.preservePaths;if(typeof m=="string"&&S!==!1&&/\//.test(m))return[m];const N=[];let O="";const M=F=>{let L;F.trim()!==""&&Number.isInteger(L=Number(F))?N.push(L):N.push(F)};for(let F=0;F<m.length;F++){const L=m[F];if(L==="\\"){O+=m[++F];continue}if(L===_){M(O),O="";continue}O+=L}return O&&M(O),N},c=(m,g)=>g&&typeof g.split=="function"?g.split(m):typeof m=="symbol"?[m]:Array.isArray(m)?m:d(m,g,()=>u(m,g)),v=(m,g,_,S)=>{if(s(g),_===void 0)r(m,g);else if(S&&S.merge){const N=S.merge==="function"?S.merge:Object.assign;N&&a(m[g])&&a(_)?m[g]=N(m[g],_):m[g]=_}else m[g]=_;return m},h=(m,g,_,S)=>{if(!g||!i(m))return m;const N=c(g,S);let O=m;for(let M=0;M<N.length;M++){const F=N[M],L=N[M+1];if(s(F),L===void 0){v(O,F,_,S);break}if(typeof L=="number"&&!Array.isArray(O[F])){O=O[F]=[];continue}i(O[F])||(O[F]={}),O=O[F]}return m};return h.split=c,h.cache=new Map,h.clear=()=>{h.cache=new Map},setValue_1=h,setValue_1}requireSetValue();function isURL(r){return HTTP_SCHEME_PATTERN.test(r)}function delay(r){return new Promise(n=>void self.setTimeout(n,r))}const FIFTY_MILLISECONDS=50,ONE_SECOND=1e3,FIVE_SECONDS=5e3,ONE_MINUTE=6e4;function isSessionExpired(r,n=ONE_MINUTE){return msUntilSessionExpired(r,n)<1}function msUntilSessionExpired(r,n=ONE_MINUTE){return r.expiresAt-now()-n}const instanceOfAny=(r,n)=>n.some(a=>r instanceof a);let idbProxyableTypes,cursorAdvanceMethods;function getIdbProxyableTypes(){return idbProxyableTypes||(idbProxyableTypes=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function getCursorAdvanceMethods(){return cursorAdvanceMethods||(cursorAdvanceMethods=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const cursorRequestMap=new WeakMap,transactionDoneMap=new WeakMap,transactionStoreNamesMap=new WeakMap,transformCache=new WeakMap,reverseTransformCache=new WeakMap;function promisifyRequest(r){const n=new Promise((a,i)=>{const o=()=>{r.removeEventListener("success",s),r.removeEventListener("error",l)},s=()=>{a(wrap$1(r.result)),o()},l=()=>{i(r.error),o()};r.addEventListener("success",s),r.addEventListener("error",l)});return n.then(a=>{a instanceof IDBCursor&&cursorRequestMap.set(a,r)}).catch(()=>{}),reverseTransformCache.set(n,r),n}function cacheDonePromiseForTransaction(r){if(transactionDoneMap.has(r))return;const n=new Promise((a,i)=>{const o=()=>{r.removeEventListener("complete",s),r.removeEventListener("error",l),r.removeEventListener("abort",l)},s=()=>{a(),o()},l=()=>{i(r.error||new DOMException("AbortError","AbortError")),o()};r.addEventListener("complete",s),r.addEventListener("error",l),r.addEventListener("abort",l)});transactionDoneMap.set(r,n)}let idbProxyTraps={get(r,n,a){if(r instanceof IDBTransaction){if(n==="done")return transactionDoneMap.get(r);if(n==="objectStoreNames")return r.objectStoreNames||transactionStoreNamesMap.get(r);if(n==="store")return a.objectStoreNames[1]?void 0:a.objectStore(a.objectStoreNames[0])}return wrap$1(r[n])},set(r,n,a){return r[n]=a,!0},has(r,n){return r instanceof IDBTransaction&&(n==="done"||n==="store")?!0:n in r}};function replaceTraps(r){idbProxyTraps=r(idbProxyTraps)}function wrapFunction(r){return r===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(n,...a){const i=r.call(unwrap(this),n,...a);return transactionStoreNamesMap.set(i,n.sort?n.sort():[n]),wrap$1(i)}:getCursorAdvanceMethods().includes(r)?function(...n){return r.apply(unwrap(this),n),wrap$1(cursorRequestMap.get(this))}:function(...n){return wrap$1(r.apply(unwrap(this),n))}}function transformCachableValue(r){return typeof r=="function"?wrapFunction(r):(r instanceof IDBTransaction&&cacheDonePromiseForTransaction(r),instanceOfAny(r,getIdbProxyableTypes())?new Proxy(r,idbProxyTraps):r)}function wrap$1(r){if(r instanceof IDBRequest)return promisifyRequest(r);if(transformCache.has(r))return transformCache.get(r);const n=transformCachableValue(r);return n!==r&&(transformCache.set(r,n),reverseTransformCache.set(n,r)),n}const unwrap=r=>reverseTransformCache.get(r);function openDB(r,n,{blocked:a,upgrade:i,blocking:o,terminated:s}={}){const l=indexedDB.open(r,n),f=wrap$1(l);return i&&l.addEventListener("upgradeneeded",d=>{i(wrap$1(l.result),d.oldVersion,d.newVersion,wrap$1(l.transaction),d)}),a&&l.addEventListener("blocked",d=>a(d.oldVersion,d.newVersion,d)),f.then(d=>{s&&d.addEventListener("close",()=>s()),o&&d.addEventListener("versionchange",u=>o(u.oldVersion,u.newVersion,u))}).catch(()=>{}),f}const readMethods=["get","getKey","getAll","getAllKeys","count"],writeMethods=["put","add","delete","clear"],cachedMethods=new Map;function getMethod(r,n){if(!(r instanceof IDBDatabase&&!(n in r)&&typeof n=="string"))return;if(cachedMethods.get(n))return cachedMethods.get(n);const a=n.replace(/FromIndex$/,""),i=n!==a,o=writeMethods.includes(a);if(!(a in(i?IDBIndex:IDBObjectStore).prototype)||!(o||readMethods.includes(a)))return;const s=async function(l,...f){const d=this.transaction(l,o?"readwrite":"readonly");let u=d.store;return i&&(u=u.index(f.shift())),(await Promise.all([u[a](...f),o&&d.done]))[0]};return cachedMethods.set(n,s),s}replaceTraps(r=>({...r,get:(n,a,i)=>getMethod(n,a)||r.get(n,a,i),has:(n,a)=>!!getMethod(n,a)||r.has(n,a)}));const advanceMethodProps=["continue","continuePrimaryKey","advance"],methodMap={},advanceResults=new WeakMap,ittrProxiedCursorToOriginalProxy=new WeakMap,cursorIteratorTraps={get(r,n){if(!advanceMethodProps.includes(n))return r[n];let a=methodMap[n];return a||(a=methodMap[n]=function(...i){advanceResults.set(this,ittrProxiedCursorToOriginalProxy.get(this)[n](...i))}),a}};async function*iterate(...r){let n=this;if(n instanceof IDBCursor||(n=await n.openCursor(...r)),!n)return;n=n;const a=new Proxy(n,cursorIteratorTraps);for(ittrProxiedCursorToOriginalProxy.set(a,n),reverseTransformCache.set(a,unwrap(n));n;)yield a,n=await(advanceResults.get(a)||n.continue()),advanceResults.delete(a)}function isIteratorProp(r,n){return n===Symbol.asyncIterator&&instanceOfAny(r,[IDBIndex,IDBObjectStore,IDBCursor])||n==="iterate"&&instanceOfAny(r,[IDBIndex,IDBObjectStore])}replaceTraps(r=>({...r,get(n,a,i){return isIteratorProp(n,a)?iterate:r.get(n,a,i)},has(n,a){return isIteratorProp(n,a)||r.has(n,a)}}));const DB_NAME="chillicream-nitro";function getDatabaseName(){return self.appNamespace?`${DB_NAME}-${self.appNamespace}`:DB_NAME}function getEntityByKey(r,n){return openDatabaseScope(a=>a.get(r,n))}function putEntity(r,n){return openDatabaseScope(async a=>{await a.put(r,n)})}function openDatabase(){return openDB(getDatabaseName())}async function openDatabaseScope(r){const n=await openDatabase();try{return await r(n)}finally{n.close()}}async function openTransactionScope(r,n,a,i,o){const s=await createTransaction(r,n,a);try{return o?await createAbortScope(()=>s.abort("transaction aborted"),()=>i(s,r.version),o):await i(s,r.version)}finally{await s.done}}function openDatabaseWithTransactionScope(r,n,a,i){return openDatabaseScope(o=>openTransactionScope(o,r,n,a,i))}const camelizationCache=new Map;function camelizeString(r){let n=camelizationCache.get(r);return n||(n=r.split("-").reduce((a,i)=>(i&&(a!==""?(a+=i[0].toUpperCase(),a+=i.substring(1)):a=i),a),""),camelizationCache.set(r,n)),n}async function createTransaction(r,n,a){const i=r.transaction(n,a),o={},s={};for(const l of n){const f=i.objectStore(l),d=camelizeString(l);o[d]=f,s[d]={};for(const u of f.indexNames)s[d][u]=f.index(u)}return{abort:l=>abortWithError(i,l),done:i.done.catch(l=>{if(!isAbortError(l))throw l}),store:o,index:s}}function abortWithError(r,n){throw r.abort(),new Error(n)}globalThis.idbGet=function(r,n){return openDatabaseScope(async a=>{console.log("IDB_GET",{store:r,key:n,data:await a.get(r,n)})})};globalThis.idbSet=function(r,n,a){return openDatabaseScope(async i=>{console.log("IDB_SET",{store:r,key:a,value:n,result:await i.put(r,n,a)})})};async function getUserSession({sub:r,tenant:n,issuer:a}){return openDatabaseWithTransactionScope(["session"],"readonly",i=>i.index.session.key.get([r,n,a]))}async function replaceUserSession(r){return await putEntity("session",r),r}const APP_CURRENT_TENANT="current-tenant";function getCurrentTenant(){return getEntityByKey("app",APP_CURRENT_TENANT)}var cryptoJs$1={exports:{}};function commonjsRequire(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core$1={exports:{}},cryptoBrowserify={},browser$b={exports:{}},hasRequiredBrowser$b;function requireBrowser$b(){if(hasRequiredBrowser$b)return browser$b.exports;hasRequiredBrowser$b=1;var r=65536,n=4294967295;function a(){throw new Error(`Secure random number generation is not supported by this browser.
35
+ */var setValue_1,hasRequiredSetValue;function requireSetValue(){if(hasRequiredSetValue)return setValue_1;hasRequiredSetValue=1;const{deleteProperty:r}=Reflect,n=requireIsPrimitive(),a=requireIsPlainObject(),i=m=>typeof m=="object"&&m!==null||typeof m=="function",o=m=>m==="__proto__"||m==="constructor"||m==="prototype",s=m=>{if(!n(m))throw new TypeError("Object keys must be strings or symbols");if(o(m))throw new Error(`Cannot set unsafe key: "${m}"`)},l=m=>Array.isArray(m)?m.flat().map(String).join(","):m,f=(m,g)=>{if(typeof m!="string"||!g)return m;let _=m+";";return g.arrays!==void 0&&(_+=`arrays=${g.arrays};`),g.separator!==void 0&&(_+=`separator=${g.separator};`),g.split!==void 0&&(_+=`split=${g.split};`),g.merge!==void 0&&(_+=`merge=${g.merge};`),g.preservePaths!==void 0&&(_+=`preservePaths=${g.preservePaths};`),_},d=(m,g,_)=>{const S=l(g?f(m,g):m);s(S);const N=h.cache.get(S)||_();return h.cache.set(S,N),N},u=(m,g={})=>{const _=g.separator||".",S=_==="/"?!1:g.preservePaths;if(typeof m=="string"&&S!==!1&&/\//.test(m))return[m];const N=[];let O="";const M=F=>{let L;F.trim()!==""&&Number.isInteger(L=Number(F))?N.push(L):N.push(F)};for(let F=0;F<m.length;F++){const L=m[F];if(L==="\\"){O+=m[++F];continue}if(L===_){M(O),O="";continue}O+=L}return O&&M(O),N},c=(m,g)=>g&&typeof g.split=="function"?g.split(m):typeof m=="symbol"?[m]:Array.isArray(m)?m:d(m,g,()=>u(m,g)),v=(m,g,_,S)=>{if(s(g),_===void 0)r(m,g);else if(S&&S.merge){const N=S.merge==="function"?S.merge:Object.assign;N&&a(m[g])&&a(_)?m[g]=N(m[g],_):m[g]=_}else m[g]=_;return m},h=(m,g,_,S)=>{if(!g||!i(m))return m;const N=c(g,S);let O=m;for(let M=0;M<N.length;M++){const F=N[M],L=N[M+1];if(s(F),L===void 0){v(O,F,_,S);break}if(typeof L=="number"&&!Array.isArray(O[F])){O=O[F]=[];continue}i(O[F])||(O[F]={}),O=O[F]}return m};return h.split=c,h.cache=new Map,h.clear=()=>{h.cache=new Map},setValue_1=h,setValue_1}requireSetValue();function isURL(r){return HTTP_SCHEME_PATTERN.test(r)}function delay(r){return new Promise(n=>void self.setTimeout(n,r))}const FIFTY_MILLISECONDS=50,ONE_SECOND=1e3,FIVE_SECONDS=5e3,ONE_MINUTE=6e4;function isSessionExpired(r,n=ONE_MINUTE){return msUntilSessionExpired(r,n)<1}function msUntilSessionExpired(r,n=ONE_MINUTE){return r.expiresAt-now()-n}const instanceOfAny=(r,n)=>n.some(a=>r instanceof a);let idbProxyableTypes,cursorAdvanceMethods;function getIdbProxyableTypes(){return idbProxyableTypes||(idbProxyableTypes=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function getCursorAdvanceMethods(){return cursorAdvanceMethods||(cursorAdvanceMethods=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const cursorRequestMap=new WeakMap,transactionDoneMap=new WeakMap,transactionStoreNamesMap=new WeakMap,transformCache=new WeakMap,reverseTransformCache=new WeakMap;function promisifyRequest(r){const n=new Promise((a,i)=>{const o=()=>{r.removeEventListener("success",s),r.removeEventListener("error",l)},s=()=>{a(wrap$1(r.result)),o()},l=()=>{i(r.error),o()};r.addEventListener("success",s),r.addEventListener("error",l)});return n.then(a=>{a instanceof IDBCursor&&cursorRequestMap.set(a,r)}).catch(()=>{}),reverseTransformCache.set(n,r),n}function cacheDonePromiseForTransaction(r){if(transactionDoneMap.has(r))return;const n=new Promise((a,i)=>{const o=()=>{r.removeEventListener("complete",s),r.removeEventListener("error",l),r.removeEventListener("abort",l)},s=()=>{a(),o()},l=()=>{i(r.error||new DOMException("AbortError","AbortError")),o()};r.addEventListener("complete",s),r.addEventListener("error",l),r.addEventListener("abort",l)});transactionDoneMap.set(r,n)}let idbProxyTraps={get(r,n,a){if(r instanceof IDBTransaction){if(n==="done")return transactionDoneMap.get(r);if(n==="objectStoreNames")return r.objectStoreNames||transactionStoreNamesMap.get(r);if(n==="store")return a.objectStoreNames[1]?void 0:a.objectStore(a.objectStoreNames[0])}return wrap$1(r[n])},set(r,n,a){return r[n]=a,!0},has(r,n){return r instanceof IDBTransaction&&(n==="done"||n==="store")?!0:n in r}};function replaceTraps(r){idbProxyTraps=r(idbProxyTraps)}function wrapFunction(r){return r===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(n,...a){const i=r.call(unwrap(this),n,...a);return transactionStoreNamesMap.set(i,n.sort?n.sort():[n]),wrap$1(i)}:getCursorAdvanceMethods().includes(r)?function(...n){return r.apply(unwrap(this),n),wrap$1(cursorRequestMap.get(this))}:function(...n){return wrap$1(r.apply(unwrap(this),n))}}function transformCachableValue(r){return typeof r=="function"?wrapFunction(r):(r instanceof IDBTransaction&&cacheDonePromiseForTransaction(r),instanceOfAny(r,getIdbProxyableTypes())?new Proxy(r,idbProxyTraps):r)}function wrap$1(r){if(r instanceof IDBRequest)return promisifyRequest(r);if(transformCache.has(r))return transformCache.get(r);const n=transformCachableValue(r);return n!==r&&(transformCache.set(r,n),reverseTransformCache.set(n,r)),n}const unwrap=r=>reverseTransformCache.get(r);function openDB(r,n,{blocked:a,upgrade:i,blocking:o,terminated:s}={}){const l=indexedDB.open(r,n),f=wrap$1(l);return i&&l.addEventListener("upgradeneeded",d=>{i(wrap$1(l.result),d.oldVersion,d.newVersion,wrap$1(l.transaction),d)}),a&&l.addEventListener("blocked",d=>a(d.oldVersion,d.newVersion,d)),f.then(d=>{s&&d.addEventListener("close",()=>s()),o&&d.addEventListener("versionchange",u=>o(u.oldVersion,u.newVersion,u))}).catch(()=>{}),f}const readMethods=["get","getKey","getAll","getAllKeys","count"],writeMethods=["put","add","delete","clear"],cachedMethods=new Map;function getMethod(r,n){if(!(r instanceof IDBDatabase&&!(n in r)&&typeof n=="string"))return;if(cachedMethods.get(n))return cachedMethods.get(n);const a=n.replace(/FromIndex$/,""),i=n!==a,o=writeMethods.includes(a);if(!(a in(i?IDBIndex:IDBObjectStore).prototype)||!(o||readMethods.includes(a)))return;const s=async function(l,...f){const d=this.transaction(l,o?"readwrite":"readonly");let u=d.store;return i&&(u=u.index(f.shift())),(await Promise.all([u[a](...f),o&&d.done]))[0]};return cachedMethods.set(n,s),s}replaceTraps(r=>({...r,get:(n,a,i)=>getMethod(n,a)||r.get(n,a,i),has:(n,a)=>!!getMethod(n,a)||r.has(n,a)}));const advanceMethodProps=["continue","continuePrimaryKey","advance"],methodMap={},advanceResults=new WeakMap,ittrProxiedCursorToOriginalProxy=new WeakMap,cursorIteratorTraps={get(r,n){if(!advanceMethodProps.includes(n))return r[n];let a=methodMap[n];return a||(a=methodMap[n]=function(...i){advanceResults.set(this,ittrProxiedCursorToOriginalProxy.get(this)[n](...i))}),a}};async function*iterate(...r){let n=this;if(n instanceof IDBCursor||(n=await n.openCursor(...r)),!n)return;n=n;const a=new Proxy(n,cursorIteratorTraps);for(ittrProxiedCursorToOriginalProxy.set(a,n),reverseTransformCache.set(a,unwrap(n));n;)yield a,n=await(advanceResults.get(a)||n.continue()),advanceResults.delete(a)}function isIteratorProp(r,n){return n===Symbol.asyncIterator&&instanceOfAny(r,[IDBIndex,IDBObjectStore,IDBCursor])||n==="iterate"&&instanceOfAny(r,[IDBIndex,IDBObjectStore])}replaceTraps(r=>({...r,get(n,a,i){return isIteratorProp(n,a)?iterate:r.get(n,a,i)},has(n,a){return isIteratorProp(n,a)||r.has(n,a)}}));const DB_NAME="chillicream-nitro-insider";function getDatabaseName(){return self.appNamespace?`${DB_NAME}-${self.appNamespace}`:DB_NAME}function getEntityByKey(r,n){return openDatabaseScope(a=>a.get(r,n))}function putEntity(r,n){return openDatabaseScope(async a=>{await a.put(r,n)})}function openDatabase(){return openDB(getDatabaseName())}async function openDatabaseScope(r){const n=await openDatabase();try{return await r(n)}finally{n.close()}}async function openTransactionScope(r,n,a,i,o){const s=await createTransaction(r,n,a);try{return o?await createAbortScope(()=>s.abort("transaction aborted"),()=>i(s,r.version),o):await i(s,r.version)}finally{await s.done}}function openDatabaseWithTransactionScope(r,n,a,i){return openDatabaseScope(o=>openTransactionScope(o,r,n,a,i))}const camelizationCache=new Map;function camelizeString(r){let n=camelizationCache.get(r);return n||(n=r.split("-").reduce((a,i)=>(i&&(a!==""?(a+=i[0].toUpperCase(),a+=i.substring(1)):a=i),a),""),camelizationCache.set(r,n)),n}async function createTransaction(r,n,a){const i=r.transaction(n,a),o={},s={};for(const l of n){const f=i.objectStore(l),d=camelizeString(l);o[d]=f,s[d]={};for(const u of f.indexNames)s[d][u]=f.index(u)}return{abort:l=>abortWithError(i,l),done:i.done.catch(l=>{if(!isAbortError(l))throw l}),store:o,index:s}}function abortWithError(r,n){throw r.abort(),new Error(n)}globalThis.idbGet=function(r,n){return openDatabaseScope(async a=>{console.log("IDB_GET",{store:r,key:n,data:await a.get(r,n)})})};globalThis.idbSet=function(r,n,a){return openDatabaseScope(async i=>{console.log("IDB_SET",{store:r,key:a,value:n,result:await i.put(r,n,a)})})};async function getUserSession({sub:r,tenant:n,issuer:a}){return openDatabaseWithTransactionScope(["session"],"readonly",i=>i.index.session.key.get([r,n,a]))}async function replaceUserSession(r){return await putEntity("session",r),r}const APP_CURRENT_TENANT="current-tenant";function getCurrentTenant(){return getEntityByKey("app",APP_CURRENT_TENANT)}var cryptoJs$1={exports:{}};function commonjsRequire(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core$1={exports:{}},cryptoBrowserify={},browser$b={exports:{}},hasRequiredBrowser$b;function requireBrowser$b(){if(hasRequiredBrowser$b)return browser$b.exports;hasRequiredBrowser$b=1;var r=65536,n=4294967295;function a(){throw new Error(`Secure random number generation is not supported by this browser.
36
36
  Use Chrome, Firefox or Internet Explorer 11`)}var i=requireSafeBuffer$1().Buffer,o=commonjsGlobal.crypto||commonjsGlobal.msCrypto;o&&o.getRandomValues?browser$b.exports=s:browser$b.exports=a;function s(l,f){if(l>n)throw new RangeError("requested too many random bytes");var d=i.allocUnsafe(l);if(l>0)if(l>r)for(var u=0;u<l;u+=r)o.getRandomValues(d.slice(u,u+r));else o.getRandomValues(d);return typeof f=="function"?process$1.nextTick(function(){f(null,d)}):d}return browser$b.exports}var hashBase$1,hasRequiredHashBase$1;function requireHashBase$1(){if(hasRequiredHashBase$1)return hashBase$1;hasRequiredHashBase$1=1;var r=requireSafeBuffer$1().Buffer,n=requireReadableBrowser$1().Transform,a=requireInherits_browser();function i(s,l){if(!r.isBuffer(s)&&typeof s!="string")throw new TypeError(l+" must be a string or a buffer")}function o(s){n.call(this),this._block=r.allocUnsafe(s),this._blockSize=s,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return a(o,n),o.prototype._transform=function(s,l,f){var d=null;try{this.update(s,l)}catch(u){d=u}f(d)},o.prototype._flush=function(s){var l=null;try{this.push(this.digest())}catch(f){l=f}s(l)},o.prototype.update=function(s,l){if(i(s,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(s)||(s=r.from(s,l));for(var f=this._block,d=0;this._blockOffset+s.length-d>=this._blockSize;){for(var u=this._blockOffset;u<this._blockSize;)f[u++]=s[d++];this._update(),this._blockOffset=0}for(;d<s.length;)f[this._blockOffset++]=s[d++];for(var c=0,v=s.length*8;v>0;++c)this._length[c]+=v,v=this._length[c]/4294967296|0,v>0&&(this._length[c]-=4294967296*v);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(s){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var l=this._digest();s!==void 0&&(l=l.toString(s)),this._block.fill(0),this._blockOffset=0;for(var f=0;f<4;++f)this._length[f]=0;return l},o.prototype._digest=function(){throw new Error("_digest is not implemented")},hashBase$1=o,hashBase$1}var ripemd160$3,hasRequiredRipemd160$2;function requireRipemd160$2(){if(hasRequiredRipemd160$2)return ripemd160$3;hasRequiredRipemd160$2=1;var r=requireDist().Buffer,n=requireInherits_browser(),a=requireHashBase$1(),i=new Array(16),o=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],s=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],l=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],f=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],u=[1352829926,1548603684,1836072691,2053994217,0];function c(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}n(c,a),c.prototype._update=function(){for(var N=i,O=0;O<16;++O)N[O]=this._block.readInt32LE(O*4);for(var M=this._a|0,F=this._b|0,L=this._c|0,k=this._d|0,P=this._e|0,U=this._a|0,B=this._b|0,j=this._c|0,$=this._d|0,A=this._e|0,R=0;R<80;R+=1){var y,b;R<16?(y=h(M,F,L,k,P,N[o[R]],d[0],l[R]),b=S(U,B,j,$,A,N[s[R]],u[0],f[R])):R<32?(y=m(M,F,L,k,P,N[o[R]],d[1],l[R]),b=_(U,B,j,$,A,N[s[R]],u[1],f[R])):R<48?(y=g(M,F,L,k,P,N[o[R]],d[2],l[R]),b=g(U,B,j,$,A,N[s[R]],u[2],f[R])):R<64?(y=_(M,F,L,k,P,N[o[R]],d[3],l[R]),b=m(U,B,j,$,A,N[s[R]],u[3],f[R])):(y=S(M,F,L,k,P,N[o[R]],d[4],l[R]),b=h(U,B,j,$,A,N[s[R]],u[4],f[R])),M=P,P=k,k=v(L,10),L=F,F=y,U=A,A=$,$=v(j,10),j=B,B=b}var D=this._b+L+$|0;this._b=this._c+k+A|0,this._c=this._d+P+U|0,this._d=this._e+M+B|0,this._e=this._a+F+j|0,this._a=D},c.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var N=r.alloc?r.alloc(20):new r(20);return N.writeInt32LE(this._a,0),N.writeInt32LE(this._b,4),N.writeInt32LE(this._c,8),N.writeInt32LE(this._d,12),N.writeInt32LE(this._e,16),N};function v(N,O){return N<<O|N>>>32-O}function h(N,O,M,F,L,k,P,U){return v(N+(O^M^F)+k+P|0,U)+L|0}function m(N,O,M,F,L,k,P,U){return v(N+(O&M|~O&F)+k+P|0,U)+L|0}function g(N,O,M,F,L,k,P,U){return v(N+((O|~M)^F)+k+P|0,U)+L|0}function _(N,O,M,F,L,k,P,U){return v(N+(O&F|M&~F)+k+P|0,U)+L|0}function S(N,O,M,F,L,k,P,U){return v(N+(O^(M|~F))+k+P|0,U)+L|0}return ripemd160$3=c,ripemd160$3}var sha_js={exports:{}},isarray$1,hasRequiredIsarray$1;function requireIsarray$1(){if(hasRequiredIsarray$1)return isarray$1;hasRequiredIsarray$1=1;var r={}.toString;return isarray$1=Array.isArray||function(n){return r.call(n)=="[object Array]"},isarray$1}var isTypedArray,hasRequiredIsTypedArray;function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray;hasRequiredIsTypedArray=1;var r=requireWhichTypedArray();return isTypedArray=function(a){return!!r(a)},isTypedArray}var typedArrayBuffer,hasRequiredTypedArrayBuffer;function requireTypedArrayBuffer(){if(hasRequiredTypedArrayBuffer)return typedArrayBuffer;hasRequiredTypedArrayBuffer=1;var r=requireType(),n=requireCallBound(),a=n("TypedArray.prototype.buffer",!0),i=requireIsTypedArray();return typedArrayBuffer=a||function(s){if(!i(s))throw new r("Not a Typed Array");return s.buffer},typedArrayBuffer}var toBuffer,hasRequiredToBuffer$1;function requireToBuffer$1(){if(hasRequiredToBuffer$1)return toBuffer;hasRequiredToBuffer$1=1;var r=requireSafeBuffer$1().Buffer,n=requireIsarray$1(),a=requireTypedArrayBuffer(),i=ArrayBuffer.isView||function(d){try{return a(d),!0}catch{return!1}},o=typeof Uint8Array<"u",s=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",l=s&&(r.prototype instanceof Uint8Array||r.TYPED_ARRAY_SUPPORT);return toBuffer=function(d,u){if(d instanceof r)return d;if(typeof d=="string")return r.from(d,u);if(s&&i(d)){if(d.byteLength===0)return r.alloc(0);if(l){var c=r.from(d.buffer,d.byteOffset,d.byteLength);if(c.byteLength===d.byteLength)return c}var v=d instanceof Uint8Array?d:new Uint8Array(d.buffer,d.byteOffset,d.byteLength),h=r.from(v);if(h.length===d.byteLength)return h}if(o&&d instanceof Uint8Array)return r.from(d);var m=n(d);if(m)for(var g=0;g<d.length;g+=1){var _=d[g];if(typeof _!="number"||_<0||_>255||~~_!==_)throw new RangeError("Array items must be numbers in the range 0-255.")}if(m||r.isBuffer(d)&&d.constructor&&typeof d.constructor.isBuffer=="function"&&d.constructor.isBuffer(d))return r.from(d);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},toBuffer}var hash$1,hasRequiredHash$1;function requireHash$1(){if(hasRequiredHash$1)return hash$1;hasRequiredHash$1=1;var r=requireSafeBuffer$1().Buffer,n=requireToBuffer$1();function a(i,o){this._block=r.alloc(i),this._finalSize=o,this._blockSize=i,this._len=0}return a.prototype.update=function(i,o){i=n(i,o||"utf8");for(var s=this._block,l=this._blockSize,f=i.length,d=this._len,u=0;u<f;){for(var c=d%l,v=Math.min(f-u,l-c),h=0;h<v;h++)s[c+h]=i[u+h];d+=v,u+=v,d%l===0&&this._update(s)}return this._len+=f,this},a.prototype.digest=function(i){var o=this._len%this._blockSize;this._block[o]=128,this._block.fill(0,o+1),o>=this._finalSize&&(this._update(this._block),this._block.fill(0));var s=this._len*8;if(s<=4294967295)this._block.writeUInt32BE(s,this._blockSize-4);else{var l=(s&4294967295)>>>0,f=(s-l)/4294967296;this._block.writeUInt32BE(f,this._blockSize-8),this._block.writeUInt32BE(l,this._blockSize-4)}this._update(this._block);var d=this._hash();return i?d.toString(i):d},a.prototype._update=function(){throw new Error("_update must be implemented by subclass")},hash$1=a,hash$1}var sha$1,hasRequiredSha$1;function requireSha$1(){if(hasRequiredSha$1)return sha$1;hasRequiredSha$1=1;var r=requireInherits_browser(),n=requireHash$1(),a=requireSafeBuffer$1().Buffer,i=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function s(){this.init(),this._w=o,n.call(this,64,56)}r(s,n),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function l(u){return u<<5|u>>>27}function f(u){return u<<30|u>>>2}function d(u,c,v,h){return u===0?c&v|~c&h:u===2?c&v|c&h|v&h:c^v^h}return s.prototype._update=function(u){for(var c=this._w,v=this._a|0,h=this._b|0,m=this._c|0,g=this._d|0,_=this._e|0,S=0;S<16;++S)c[S]=u.readInt32BE(S*4);for(;S<80;++S)c[S]=c[S-3]^c[S-8]^c[S-14]^c[S-16];for(var N=0;N<80;++N){var O=~~(N/20),M=l(v)+d(O,h,m,g)+_+c[N]+i[O]|0;_=g,g=m,m=f(h),h=v,v=M}this._a=v+this._a|0,this._b=h+this._b|0,this._c=m+this._c|0,this._d=g+this._d|0,this._e=_+this._e|0},s.prototype._hash=function(){var u=a.allocUnsafe(20);return u.writeInt32BE(this._a|0,0),u.writeInt32BE(this._b|0,4),u.writeInt32BE(this._c|0,8),u.writeInt32BE(this._d|0,12),u.writeInt32BE(this._e|0,16),u},sha$1=s,sha$1}var sha1$2,hasRequiredSha1$1;function requireSha1$1(){if(hasRequiredSha1$1)return sha1$2;hasRequiredSha1$1=1;var r=requireInherits_browser(),n=requireHash$1(),a=requireSafeBuffer$1().Buffer,i=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function s(){this.init(),this._w=o,n.call(this,64,56)}r(s,n),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function l(c){return c<<1|c>>>31}function f(c){return c<<5|c>>>27}function d(c){return c<<30|c>>>2}function u(c,v,h,m){return c===0?v&h|~v&m:c===2?v&h|v&m|h&m:v^h^m}return s.prototype._update=function(c){for(var v=this._w,h=this._a|0,m=this._b|0,g=this._c|0,_=this._d|0,S=this._e|0,N=0;N<16;++N)v[N]=c.readInt32BE(N*4);for(;N<80;++N)v[N]=l(v[N-3]^v[N-8]^v[N-14]^v[N-16]);for(var O=0;O<80;++O){var M=~~(O/20),F=f(h)+u(M,m,g,_)+S+v[O]+i[M]|0;S=_,_=g,g=d(m),m=h,h=F}this._a=h+this._a|0,this._b=m+this._b|0,this._c=g+this._c|0,this._d=_+this._d|0,this._e=S+this._e|0},s.prototype._hash=function(){var c=a.allocUnsafe(20);return c.writeInt32BE(this._a|0,0),c.writeInt32BE(this._b|0,4),c.writeInt32BE(this._c|0,8),c.writeInt32BE(this._d|0,12),c.writeInt32BE(this._e|0,16),c},sha1$2=s,sha1$2}var sha256$3,hasRequiredSha256$1;function requireSha256$1(){if(hasRequiredSha256$1)return sha256$3;hasRequiredSha256$1=1;var r=requireInherits_browser(),n=requireHash$1(),a=requireSafeBuffer$1().Buffer,i=[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],o=new Array(64);function s(){this.init(),this._w=o,n.call(this,64,56)}r(s,n),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function l(h,m,g){return g^h&(m^g)}function f(h,m,g){return h&m|g&(h|m)}function d(h){return(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10)}function u(h){return(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7)}function c(h){return(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3}function v(h){return(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10}return s.prototype._update=function(h){for(var m=this._w,g=this._a|0,_=this._b|0,S=this._c|0,N=this._d|0,O=this._e|0,M=this._f|0,F=this._g|0,L=this._h|0,k=0;k<16;++k)m[k]=h.readInt32BE(k*4);for(;k<64;++k)m[k]=v(m[k-2])+m[k-7]+c(m[k-15])+m[k-16]|0;for(var P=0;P<64;++P){var U=L+u(O)+l(O,M,F)+i[P]+m[P]|0,B=d(g)+f(g,_,S)|0;L=F,F=M,M=O,O=N+U|0,N=S,S=_,_=g,g=U+B|0}this._a=g+this._a|0,this._b=_+this._b|0,this._c=S+this._c|0,this._d=N+this._d|0,this._e=O+this._e|0,this._f=M+this._f|0,this._g=F+this._g|0,this._h=L+this._h|0},s.prototype._hash=function(){var h=a.allocUnsafe(32);return h.writeInt32BE(this._a,0),h.writeInt32BE(this._b,4),h.writeInt32BE(this._c,8),h.writeInt32BE(this._d,12),h.writeInt32BE(this._e,16),h.writeInt32BE(this._f,20),h.writeInt32BE(this._g,24),h.writeInt32BE(this._h,28),h},sha256$3=s,sha256$3}var sha224$3,hasRequiredSha224$1;function requireSha224$1(){if(hasRequiredSha224$1)return sha224$3;hasRequiredSha224$1=1;var r=requireInherits_browser(),n=requireSha256$1(),a=requireHash$1(),i=requireSafeBuffer$1().Buffer,o=new Array(64);function s(){this.init(),this._w=o,a.call(this,64,56)}return r(s,n),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var l=i.allocUnsafe(28);return l.writeInt32BE(this._a,0),l.writeInt32BE(this._b,4),l.writeInt32BE(this._c,8),l.writeInt32BE(this._d,12),l.writeInt32BE(this._e,16),l.writeInt32BE(this._f,20),l.writeInt32BE(this._g,24),l},sha224$3=s,sha224$3}var sha512$3,hasRequiredSha512$1;function requireSha512$1(){if(hasRequiredSha512$1)return sha512$3;hasRequiredSha512$1=1;var r=requireInherits_browser(),n=requireHash$1(),a=requireSafeBuffer$1().Buffer,i=[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],o=new Array(160);function s(){this.init(),this._w=o,n.call(this,128,112)}r(s,n),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function l(_,S,N){return N^_&(S^N)}function f(_,S,N){return _&S|N&(_|S)}function d(_,S){return(_>>>28|S<<4)^(S>>>2|_<<30)^(S>>>7|_<<25)}function u(_,S){return(_>>>14|S<<18)^(_>>>18|S<<14)^(S>>>9|_<<23)}function c(_,S){return(_>>>1|S<<31)^(_>>>8|S<<24)^_>>>7}function v(_,S){return(_>>>1|S<<31)^(_>>>8|S<<24)^(_>>>7|S<<25)}function h(_,S){return(_>>>19|S<<13)^(S>>>29|_<<3)^_>>>6}function m(_,S){return(_>>>19|S<<13)^(S>>>29|_<<3)^(_>>>6|S<<26)}function g(_,S){return _>>>0<S>>>0?1:0}return s.prototype._update=function(_){for(var S=this._w,N=this._ah|0,O=this._bh|0,M=this._ch|0,F=this._dh|0,L=this._eh|0,k=this._fh|0,P=this._gh|0,U=this._hh|0,B=this._al|0,j=this._bl|0,$=this._cl|0,A=this._dl|0,R=this._el|0,y=this._fl|0,b=this._gl|0,D=this._hl|0,I=0;I<32;I+=2)S[I]=_.readInt32BE(I*4),S[I+1]=_.readInt32BE(I*4+4);for(;I<160;I+=2){var T=S[I-30],C=S[I-30+1],x=c(T,C),w=v(C,T);T=S[I-4],C=S[I-4+1];var E=h(T,C),q=m(C,T),G=S[I-14],z=S[I-14+1],H=S[I-32],V=S[I-32+1],K=w+z|0,Z=x+G+g(K,w)|0;K=K+q|0,Z=Z+E+g(K,q)|0,K=K+V|0,Z=Z+H+g(K,V)|0,S[I]=Z,S[I+1]=K}for(var re=0;re<160;re+=2){Z=S[re],K=S[re+1];var W=f(N,O,M),X=f(B,j,$),J=d(N,B),ie=d(B,N),ne=u(L,R),ae=u(R,L),ue=i[re],fe=i[re+1],se=l(L,k,P),pe=l(R,y,b),ce=D+ae|0,he=U+ne+g(ce,D)|0;ce=ce+pe|0,he=he+se+g(ce,pe)|0,ce=ce+fe|0,he=he+ue+g(ce,fe)|0,ce=ce+K|0,he=he+Z+g(ce,K)|0;var ve=ie+X|0,ye=J+W+g(ve,ie)|0;U=P,D=b,P=k,b=y,k=L,y=R,R=A+ce|0,L=F+he+g(R,A)|0,F=M,A=$,M=O,$=j,O=N,j=B,B=ce+ve|0,N=he+ye+g(B,ce)|0}this._al=this._al+B|0,this._bl=this._bl+j|0,this._cl=this._cl+$|0,this._dl=this._dl+A|0,this._el=this._el+R|0,this._fl=this._fl+y|0,this._gl=this._gl+b|0,this._hl=this._hl+D|0,this._ah=this._ah+N+g(this._al,B)|0,this._bh=this._bh+O+g(this._bl,j)|0,this._ch=this._ch+M+g(this._cl,$)|0,this._dh=this._dh+F+g(this._dl,A)|0,this._eh=this._eh+L+g(this._el,R)|0,this._fh=this._fh+k+g(this._fl,y)|0,this._gh=this._gh+P+g(this._gl,b)|0,this._hh=this._hh+U+g(this._hl,D)|0},s.prototype._hash=function(){var _=a.allocUnsafe(64);function S(N,O,M){_.writeInt32BE(N,M),_.writeInt32BE(O,M+4)}return S(this._ah,this._al,0),S(this._bh,this._bl,8),S(this._ch,this._cl,16),S(this._dh,this._dl,24),S(this._eh,this._el,32),S(this._fh,this._fl,40),S(this._gh,this._gl,48),S(this._hh,this._hl,56),_},sha512$3=s,sha512$3}var sha384$3,hasRequiredSha384$1;function requireSha384$1(){if(hasRequiredSha384$1)return sha384$3;hasRequiredSha384$1=1;var r=requireInherits_browser(),n=requireSha512$1(),a=requireHash$1(),i=requireSafeBuffer$1().Buffer,o=new Array(160);function s(){this.init(),this._w=o,a.call(this,128,112)}return r(s,n),s.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},s.prototype._hash=function(){var l=i.allocUnsafe(48);function f(d,u,c){l.writeInt32BE(d,c),l.writeInt32BE(u,c+4)}return f(this._ah,this._al,0),f(this._bh,this._bl,8),f(this._ch,this._cl,16),f(this._dh,this._dl,24),f(this._eh,this._el,32),f(this._fh,this._fl,40),l},sha384$3=s,sha384$3}var hasRequiredSha_js;function requireSha_js(){return hasRequiredSha_js||(hasRequiredSha_js=1,function(r){r.exports=function(a){var i=a.toLowerCase(),o=r.exports[i];if(!o)throw new Error(i+" is not supported (we accept pull requests)");return new o},r.exports.sha=requireSha$1(),r.exports.sha1=requireSha1$1(),r.exports.sha224=requireSha224$1(),r.exports.sha256=requireSha256$1(),r.exports.sha384=requireSha384$1(),r.exports.sha512=requireSha512$1()}(sha_js)),sha_js.exports}var streamBrowserify,hasRequiredStreamBrowserify;function requireStreamBrowserify(){if(hasRequiredStreamBrowserify)return streamBrowserify;hasRequiredStreamBrowserify=1,streamBrowserify=a;var r=requireEvents().EventEmitter,n=requireInherits_browser();n(a,r),a.Readable=require_stream_readable$1(),a.Writable=require_stream_writable$1(),a.Duplex=require_stream_duplex$1(),a.Transform=require_stream_transform$1(),a.PassThrough=require_stream_passthrough$1(),a.finished=requireEndOfStream(),a.pipeline=requirePipeline(),a.Stream=a;function a(){r.call(this)}return a.prototype.pipe=function(i,o){var s=this;function l(m){i.writable&&i.write(m)===!1&&s.pause&&s.pause()}s.on("data",l);function f(){s.readable&&s.resume&&s.resume()}i.on("drain",f),!i._isStdio&&(!o||o.end!==!1)&&(s.on("end",u),s.on("close",c));var d=!1;function u(){d||(d=!0,i.end())}function c(){d||(d=!0,typeof i.destroy=="function"&&i.destroy())}function v(m){if(h(),r.listenerCount(this,"error")===0)throw m}s.on("error",v),i.on("error",v);function h(){s.removeListener("data",l),i.removeListener("drain",f),s.removeListener("end",u),s.removeListener("close",c),s.removeListener("error",v),i.removeListener("error",v),s.removeListener("end",h),s.removeListener("close",h),i.removeListener("close",h)}return s.on("end",h),s.on("close",h),i.on("close",h),i.emit("pipe",s),i},streamBrowserify}var cipherBase,hasRequiredCipherBase;function requireCipherBase(){if(hasRequiredCipherBase)return cipherBase;hasRequiredCipherBase=1;var r=requireSafeBuffer$1().Buffer,n=requireStreamBrowserify().Transform,a=requireString_decoder().StringDecoder,i=requireInherits_browser();function o(d){n.call(this),this.hashMode=typeof d=="string",this.hashMode?this[d]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}i(o,n);var s=typeof Uint8Array<"u",l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(r.prototype instanceof Uint8Array||r.TYPED_ARRAY_SUPPORT);function f(d,u){if(d instanceof r)return d;if(typeof d=="string")return r.from(d,u);if(l&&ArrayBuffer.isView(d)){if(d.byteLength===0)return r.alloc(0);var c=r.from(d.buffer,d.byteOffset,d.byteLength);if(c.byteLength===d.byteLength)return c}if(s&&d instanceof Uint8Array||r.isBuffer(d)&&d.constructor&&typeof d.constructor.isBuffer=="function"&&d.constructor.isBuffer(d))return r.from(d);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}return o.prototype.update=function(d,u,c){var v=f(d,u),h=this._update(v);return this.hashMode?this:(c&&(h=this._toString(h,c)),h)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(d,u,c){var v;try{this.hashMode?this._update(d):this.push(this._update(d))}catch(h){v=h}finally{c(v)}},o.prototype._flush=function(d){var u;try{this.push(this.__final())}catch(c){u=c}d(u)},o.prototype._finalOrDigest=function(d){var u=this.__final()||r.alloc(0);return d&&(u=this._toString(u,d,!0)),u},o.prototype._toString=function(d,u,c){if(this._decoder||(this._decoder=new a(u),this._encoding=u),this._encoding!==u)throw new Error("can’t switch encodings");var v=this._decoder.write(d);return c&&(v+=this._decoder.end()),v},cipherBase=o,cipherBase}var browser$a,hasRequiredBrowser$a;function requireBrowser$a(){if(hasRequiredBrowser$a)return browser$a;hasRequiredBrowser$a=1;var r=requireInherits_browser(),n=requireMd5_js(),a=requireRipemd160$2(),i=requireSha_js(),o=requireCipherBase();function s(l){o.call(this,"digest"),this._hash=l}return r(s,o),s.prototype._update=function(l){this._hash.update(l)},s.prototype._final=function(){return this._hash.digest()},browser$a=function(f){return f=f.toLowerCase(),f==="md5"?new n:f==="rmd160"||f==="ripemd160"?new a:new s(i(f))},browser$a}var legacy,hasRequiredLegacy;function requireLegacy(){if(hasRequiredLegacy)return legacy;hasRequiredLegacy=1;var r=requireInherits_browser(),n=requireSafeBuffer$1().Buffer,a=requireCipherBase(),i=n.alloc(128),o=64;function s(l,f){a.call(this,"digest"),typeof f=="string"&&(f=n.from(f)),this._alg=l,this._key=f,f.length>o?f=l(f):f.length<o&&(f=n.concat([f,i],o));for(var d=this._ipad=n.allocUnsafe(o),u=this._opad=n.allocUnsafe(o),c=0;c<o;c++)d[c]=f[c]^54,u[c]=f[c]^92;this._hash=[d]}return r(s,a),s.prototype._update=function(l){this._hash.push(l)},s.prototype._final=function(){var l=this._alg(n.concat(this._hash));return this._alg(n.concat([this._opad,l]))},legacy=s,legacy}var md5$3,hasRequiredMd5$2;function requireMd5$2(){if(hasRequiredMd5$2)return md5$3;hasRequiredMd5$2=1;var r=requireMd5_js();return md5$3=function(n){return new r().update(n).digest()},md5$3}var browser$9,hasRequiredBrowser$9;function requireBrowser$9(){if(hasRequiredBrowser$9)return browser$9;hasRequiredBrowser$9=1;var r=requireInherits_browser(),n=requireLegacy(),a=requireCipherBase(),i=requireSafeBuffer$1().Buffer,o=requireMd5$2(),s=requireRipemd160$2(),l=requireSha_js(),f=i.alloc(128);function d(u,c){a.call(this,"digest"),typeof c=="string"&&(c=i.from(c));var v=u==="sha512"||u==="sha384"?128:64;if(this._alg=u,this._key=c,c.length>v){var h=u==="rmd160"?new s:l(u);c=h.update(c).digest()}else c.length<v&&(c=i.concat([c,f],v));for(var m=this._ipad=i.allocUnsafe(v),g=this._opad=i.allocUnsafe(v),_=0;_<v;_++)m[_]=c[_]^54,g[_]=c[_]^92;this._hash=u==="rmd160"?new s:l(u),this._hash.update(m)}return r(d,a),d.prototype._update=function(u){this._hash.update(u)},d.prototype._final=function(){var u=this._hash.digest(),c=this._alg==="rmd160"?new s:l(this._alg);return c.update(this._opad).update(u).digest()},browser$9=function(c,v){return c=c.toLowerCase(),c==="rmd160"||c==="ripemd160"?new d("rmd160",v):c==="md5"?new n(o,v):new d(c,v)},browser$9}const sha224WithRSAEncryption={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},sha256$2={sign:"ecdsa",hash:"sha256",id:""},sha224$2={sign:"ecdsa",hash:"sha224",id:""},sha384$2={sign:"ecdsa",hash:"sha384",id:""},sha512$2={sign:"ecdsa",hash:"sha512",id:""},DSA={sign:"dsa",hash:"sha1",id:""},ripemd160WithRSA={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"};var require$$6={sha224WithRSAEncryption,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption,"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:sha256$2,sha224:sha224$2,sha384:sha384$2,sha512:sha512$2,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA,"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}},algos,hasRequiredAlgos;function requireAlgos(){return hasRequiredAlgos||(hasRequiredAlgos=1,algos=require$$6),algos}var browser$8={},precondition,hasRequiredPrecondition;function requirePrecondition(){if(hasRequiredPrecondition)return precondition;hasRequiredPrecondition=1;var r=Math.pow(2,30)-1;return precondition=function(n,a){if(typeof n!="number")throw new TypeError("Iterations not a number");if(n<0)throw new TypeError("Bad iterations");if(typeof a!="number")throw new TypeError("Key length not a number");if(a<0||a>r||a!==a)throw new TypeError("Bad key length")},precondition}var defaultEncoding_1,hasRequiredDefaultEncoding;function requireDefaultEncoding(){if(hasRequiredDefaultEncoding)return defaultEncoding_1;hasRequiredDefaultEncoding=1;var r;if(commonjsGlobal.process&&commonjsGlobal.process.browser)r="utf-8";else if(commonjsGlobal.process&&commonjsGlobal.process.version){var n=parseInt(process$1.version.split(".")[0].slice(1),10);r=n>=6?"utf-8":"binary"}else r="utf-8";return defaultEncoding_1=r,defaultEncoding_1}var makeHash,hasRequiredMakeHash;function requireMakeHash(){if(hasRequiredMakeHash)return makeHash;hasRequiredMakeHash=1;var r=4,n=new Buffer(r);n.fill(0);var a=8,i=16;function o(s){if(s.length%r!==0){var l=s.length+(r-s.length%r);s=Buffer.concat([s,n],l)}for(var f=new Array(s.length>>>2),d=0,u=0;d<s.length;d+=r,u++)f[u]=s.readInt32LE(d);return f}return makeHash=function(l,f){var d=f(o(l),l.length*a);l=new Buffer(i);for(var u=0;u<d.length;u++)l.writeInt32LE(d[u],u<<2,!0);return l},makeHash}var md5$2,hasRequiredMd5$1;function requireMd5$1(){if(hasRequiredMd5$1)return md5$2;hasRequiredMd5$1=1;var r=requireMakeHash();function n(u,c){u[c>>5]|=128<<c%32,u[(c+64>>>9<<4)+14]=c;for(var v=1732584193,h=-271733879,m=-1732584194,g=271733878,_=0;_<u.length;_+=16){var S=v,N=h,O=m,M=g;v=i(v,h,m,g,u[_+0],7,-680876936),g=i(g,v,h,m,u[_+1],12,-389564586),m=i(m,g,v,h,u[_+2],17,606105819),h=i(h,m,g,v,u[_+3],22,-1044525330),v=i(v,h,m,g,u[_+4],7,-176418897),g=i(g,v,h,m,u[_+5],12,1200080426),m=i(m,g,v,h,u[_+6],17,-1473231341),h=i(h,m,g,v,u[_+7],22,-45705983),v=i(v,h,m,g,u[_+8],7,1770035416),g=i(g,v,h,m,u[_+9],12,-1958414417),m=i(m,g,v,h,u[_+10],17,-42063),h=i(h,m,g,v,u[_+11],22,-1990404162),v=i(v,h,m,g,u[_+12],7,1804603682),g=i(g,v,h,m,u[_+13],12,-40341101),m=i(m,g,v,h,u[_+14],17,-1502002290),h=i(h,m,g,v,u[_+15],22,1236535329),v=o(v,h,m,g,u[_+1],5,-165796510),g=o(g,v,h,m,u[_+6],9,-1069501632),m=o(m,g,v,h,u[_+11],14,643717713),h=o(h,m,g,v,u[_+0],20,-373897302),v=o(v,h,m,g,u[_+5],5,-701558691),g=o(g,v,h,m,u[_+10],9,38016083),m=o(m,g,v,h,u[_+15],14,-660478335),h=o(h,m,g,v,u[_+4],20,-405537848),v=o(v,h,m,g,u[_+9],5,568446438),g=o(g,v,h,m,u[_+14],9,-1019803690),m=o(m,g,v,h,u[_+3],14,-187363961),h=o(h,m,g,v,u[_+8],20,1163531501),v=o(v,h,m,g,u[_+13],5,-1444681467),g=o(g,v,h,m,u[_+2],9,-51403784),m=o(m,g,v,h,u[_+7],14,1735328473),h=o(h,m,g,v,u[_+12],20,-1926607734),v=s(v,h,m,g,u[_+5],4,-378558),g=s(g,v,h,m,u[_+8],11,-2022574463),m=s(m,g,v,h,u[_+11],16,1839030562),h=s(h,m,g,v,u[_+14],23,-35309556),v=s(v,h,m,g,u[_+1],4,-1530992060),g=s(g,v,h,m,u[_+4],11,1272893353),m=s(m,g,v,h,u[_+7],16,-155497632),h=s(h,m,g,v,u[_+10],23,-1094730640),v=s(v,h,m,g,u[_+13],4,681279174),g=s(g,v,h,m,u[_+0],11,-358537222),m=s(m,g,v,h,u[_+3],16,-722521979),h=s(h,m,g,v,u[_+6],23,76029189),v=s(v,h,m,g,u[_+9],4,-640364487),g=s(g,v,h,m,u[_+12],11,-421815835),m=s(m,g,v,h,u[_+15],16,530742520),h=s(h,m,g,v,u[_+2],23,-995338651),v=l(v,h,m,g,u[_+0],6,-198630844),g=l(g,v,h,m,u[_+7],10,1126891415),m=l(m,g,v,h,u[_+14],15,-1416354905),h=l(h,m,g,v,u[_+5],21,-57434055),v=l(v,h,m,g,u[_+12],6,1700485571),g=l(g,v,h,m,u[_+3],10,-1894986606),m=l(m,g,v,h,u[_+10],15,-1051523),h=l(h,m,g,v,u[_+1],21,-2054922799),v=l(v,h,m,g,u[_+8],6,1873313359),g=l(g,v,h,m,u[_+15],10,-30611744),m=l(m,g,v,h,u[_+6],15,-1560198380),h=l(h,m,g,v,u[_+13],21,1309151649),v=l(v,h,m,g,u[_+4],6,-145523070),g=l(g,v,h,m,u[_+11],10,-1120210379),m=l(m,g,v,h,u[_+2],15,718787259),h=l(h,m,g,v,u[_+9],21,-343485551),v=f(v,S),h=f(h,N),m=f(m,O),g=f(g,M)}return[v,h,m,g]}function a(u,c,v,h,m,g){return f(d(f(f(c,u),f(h,g)),m),v)}function i(u,c,v,h,m,g,_){return a(c&v|~c&h,u,c,m,g,_)}function o(u,c,v,h,m,g,_){return a(c&h|v&~h,u,c,m,g,_)}function s(u,c,v,h,m,g,_){return a(c^v^h,u,c,m,g,_)}function l(u,c,v,h,m,g,_){return a(v^(c|~h),u,c,m,g,_)}function f(u,c){var v=(u&65535)+(c&65535),h=(u>>16)+(c>>16)+(v>>16);return h<<16|v&65535}function d(u,c){return u<<c|u>>>32-c}return md5$2=function(c){return r(c,n)},md5$2}var hashBase,hasRequiredHashBase;function requireHashBase(){if(hasRequiredHashBase)return hashBase;hasRequiredHashBase=1;var r=requireStreamBrowserify().Transform,n=requireInherits_browser();function a(i){r.call(this),this._block=new Buffer(i),this._blockSize=i,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return n(a,r),a.prototype._transform=function(i,o,s){var l=null;try{o!=="buffer"&&(i=new Buffer(i,o)),this.update(i)}catch(f){l=f}s(l)},a.prototype._flush=function(i){var o=null;try{this.push(this._digest())}catch(s){o=s}i(o)},a.prototype.update=function(i,o){if(!Buffer.isBuffer(i)&&typeof i!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");Buffer.isBuffer(i)||(i=new Buffer(i,o||"binary"));for(var s=this._block,l=0;this._blockOffset+i.length-l>=this._blockSize;){for(var f=this._blockOffset;f<this._blockSize;)s[f++]=i[l++];this._update(),this._blockOffset=0}for(;l<i.length;)s[this._blockOffset++]=i[l++];for(var d=0,u=i.length*8;u>0;++d)this._length[d]+=u,u=this._length[d]/4294967296|0,u>0&&(this._length[d]-=4294967296*u);return this},a.prototype._update=function(i){throw new Error("_update is not implemented")},a.prototype.digest=function(i){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var o=this._digest();return i!==void 0&&(o=o.toString(i)),o},a.prototype._digest=function(){throw new Error("_digest is not implemented")},hashBase=a,hashBase}var ripemd160$2,hasRequiredRipemd160$1;function requireRipemd160$1(){if(hasRequiredRipemd160$1)return ripemd160$2;hasRequiredRipemd160$1=1;var r=requireInherits_browser(),n=requireHashBase();function a(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}r(a,n),a.prototype._update=function(){for(var u=new Array(16),c=0;c<16;++c)u[c]=this._block.readInt32LE(c*4);var v=this._a,h=this._b,m=this._c,g=this._d,_=this._e;v=o(v,h,m,g,_,u[0],0,11),m=i(m,10),_=o(_,v,h,m,g,u[1],0,14),h=i(h,10),g=o(g,_,v,h,m,u[2],0,15),v=i(v,10),m=o(m,g,_,v,h,u[3],0,12),_=i(_,10),h=o(h,m,g,_,v,u[4],0,5),g=i(g,10),v=o(v,h,m,g,_,u[5],0,8),m=i(m,10),_=o(_,v,h,m,g,u[6],0,7),h=i(h,10),g=o(g,_,v,h,m,u[7],0,9),v=i(v,10),m=o(m,g,_,v,h,u[8],0,11),_=i(_,10),h=o(h,m,g,_,v,u[9],0,13),g=i(g,10),v=o(v,h,m,g,_,u[10],0,14),m=i(m,10),_=o(_,v,h,m,g,u[11],0,15),h=i(h,10),g=o(g,_,v,h,m,u[12],0,6),v=i(v,10),m=o(m,g,_,v,h,u[13],0,7),_=i(_,10),h=o(h,m,g,_,v,u[14],0,9),g=i(g,10),v=o(v,h,m,g,_,u[15],0,8),m=i(m,10),_=s(_,v,h,m,g,u[7],1518500249,7),h=i(h,10),g=s(g,_,v,h,m,u[4],1518500249,6),v=i(v,10),m=s(m,g,_,v,h,u[13],1518500249,8),_=i(_,10),h=s(h,m,g,_,v,u[1],1518500249,13),g=i(g,10),v=s(v,h,m,g,_,u[10],1518500249,11),m=i(m,10),_=s(_,v,h,m,g,u[6],1518500249,9),h=i(h,10),g=s(g,_,v,h,m,u[15],1518500249,7),v=i(v,10),m=s(m,g,_,v,h,u[3],1518500249,15),_=i(_,10),h=s(h,m,g,_,v,u[12],1518500249,7),g=i(g,10),v=s(v,h,m,g,_,u[0],1518500249,12),m=i(m,10),_=s(_,v,h,m,g,u[9],1518500249,15),h=i(h,10),g=s(g,_,v,h,m,u[5],1518500249,9),v=i(v,10),m=s(m,g,_,v,h,u[2],1518500249,11),_=i(_,10),h=s(h,m,g,_,v,u[14],1518500249,7),g=i(g,10),v=s(v,h,m,g,_,u[11],1518500249,13),m=i(m,10),_=s(_,v,h,m,g,u[8],1518500249,12),h=i(h,10),g=l(g,_,v,h,m,u[3],1859775393,11),v=i(v,10),m=l(m,g,_,v,h,u[10],1859775393,13),_=i(_,10),h=l(h,m,g,_,v,u[14],1859775393,6),g=i(g,10),v=l(v,h,m,g,_,u[4],1859775393,7),m=i(m,10),_=l(_,v,h,m,g,u[9],1859775393,14),h=i(h,10),g=l(g,_,v,h,m,u[15],1859775393,9),v=i(v,10),m=l(m,g,_,v,h,u[8],1859775393,13),_=i(_,10),h=l(h,m,g,_,v,u[1],1859775393,15),g=i(g,10),v=l(v,h,m,g,_,u[2],1859775393,14),m=i(m,10),_=l(_,v,h,m,g,u[7],1859775393,8),h=i(h,10),g=l(g,_,v,h,m,u[0],1859775393,13),v=i(v,10),m=l(m,g,_,v,h,u[6],1859775393,6),_=i(_,10),h=l(h,m,g,_,v,u[13],1859775393,5),g=i(g,10),v=l(v,h,m,g,_,u[11],1859775393,12),m=i(m,10),_=l(_,v,h,m,g,u[5],1859775393,7),h=i(h,10),g=l(g,_,v,h,m,u[12],1859775393,5),v=i(v,10),m=f(m,g,_,v,h,u[1],2400959708,11),_=i(_,10),h=f(h,m,g,_,v,u[9],2400959708,12),g=i(g,10),v=f(v,h,m,g,_,u[11],2400959708,14),m=i(m,10),_=f(_,v,h,m,g,u[10],2400959708,15),h=i(h,10),g=f(g,_,v,h,m,u[0],2400959708,14),v=i(v,10),m=f(m,g,_,v,h,u[8],2400959708,15),_=i(_,10),h=f(h,m,g,_,v,u[12],2400959708,9),g=i(g,10),v=f(v,h,m,g,_,u[4],2400959708,8),m=i(m,10),_=f(_,v,h,m,g,u[13],2400959708,9),h=i(h,10),g=f(g,_,v,h,m,u[3],2400959708,14),v=i(v,10),m=f(m,g,_,v,h,u[7],2400959708,5),_=i(_,10),h=f(h,m,g,_,v,u[15],2400959708,6),g=i(g,10),v=f(v,h,m,g,_,u[14],2400959708,8),m=i(m,10),_=f(_,v,h,m,g,u[5],2400959708,6),h=i(h,10),g=f(g,_,v,h,m,u[6],2400959708,5),v=i(v,10),m=f(m,g,_,v,h,u[2],2400959708,12),_=i(_,10),h=d(h,m,g,_,v,u[4],2840853838,9),g=i(g,10),v=d(v,h,m,g,_,u[0],2840853838,15),m=i(m,10),_=d(_,v,h,m,g,u[5],2840853838,5),h=i(h,10),g=d(g,_,v,h,m,u[9],2840853838,11),v=i(v,10),m=d(m,g,_,v,h,u[7],2840853838,6),_=i(_,10),h=d(h,m,g,_,v,u[12],2840853838,8),g=i(g,10),v=d(v,h,m,g,_,u[2],2840853838,13),m=i(m,10),_=d(_,v,h,m,g,u[10],2840853838,12),h=i(h,10),g=d(g,_,v,h,m,u[14],2840853838,5),v=i(v,10),m=d(m,g,_,v,h,u[1],2840853838,12),_=i(_,10),h=d(h,m,g,_,v,u[3],2840853838,13),g=i(g,10),v=d(v,h,m,g,_,u[8],2840853838,14),m=i(m,10),_=d(_,v,h,m,g,u[11],2840853838,11),h=i(h,10),g=d(g,_,v,h,m,u[6],2840853838,8),v=i(v,10),m=d(m,g,_,v,h,u[15],2840853838,5),_=i(_,10),h=d(h,m,g,_,v,u[13],2840853838,6),g=i(g,10);var S=this._a,N=this._b,O=this._c,M=this._d,F=this._e;S=d(S,N,O,M,F,u[5],1352829926,8),O=i(O,10),F=d(F,S,N,O,M,u[14],1352829926,9),N=i(N,10),M=d(M,F,S,N,O,u[7],1352829926,9),S=i(S,10),O=d(O,M,F,S,N,u[0],1352829926,11),F=i(F,10),N=d(N,O,M,F,S,u[9],1352829926,13),M=i(M,10),S=d(S,N,O,M,F,u[2],1352829926,15),O=i(O,10),F=d(F,S,N,O,M,u[11],1352829926,15),N=i(N,10),M=d(M,F,S,N,O,u[4],1352829926,5),S=i(S,10),O=d(O,M,F,S,N,u[13],1352829926,7),F=i(F,10),N=d(N,O,M,F,S,u[6],1352829926,7),M=i(M,10),S=d(S,N,O,M,F,u[15],1352829926,8),O=i(O,10),F=d(F,S,N,O,M,u[8],1352829926,11),N=i(N,10),M=d(M,F,S,N,O,u[1],1352829926,14),S=i(S,10),O=d(O,M,F,S,N,u[10],1352829926,14),F=i(F,10),N=d(N,O,M,F,S,u[3],1352829926,12),M=i(M,10),S=d(S,N,O,M,F,u[12],1352829926,6),O=i(O,10),F=f(F,S,N,O,M,u[6],1548603684,9),N=i(N,10),M=f(M,F,S,N,O,u[11],1548603684,13),S=i(S,10),O=f(O,M,F,S,N,u[3],1548603684,15),F=i(F,10),N=f(N,O,M,F,S,u[7],1548603684,7),M=i(M,10),S=f(S,N,O,M,F,u[0],1548603684,12),O=i(O,10),F=f(F,S,N,O,M,u[13],1548603684,8),N=i(N,10),M=f(M,F,S,N,O,u[5],1548603684,9),S=i(S,10),O=f(O,M,F,S,N,u[10],1548603684,11),F=i(F,10),N=f(N,O,M,F,S,u[14],1548603684,7),M=i(M,10),S=f(S,N,O,M,F,u[15],1548603684,7),O=i(O,10),F=f(F,S,N,O,M,u[8],1548603684,12),N=i(N,10),M=f(M,F,S,N,O,u[12],1548603684,7),S=i(S,10),O=f(O,M,F,S,N,u[4],1548603684,6),F=i(F,10),N=f(N,O,M,F,S,u[9],1548603684,15),M=i(M,10),S=f(S,N,O,M,F,u[1],1548603684,13),O=i(O,10),F=f(F,S,N,O,M,u[2],1548603684,11),N=i(N,10),M=l(M,F,S,N,O,u[15],1836072691,9),S=i(S,10),O=l(O,M,F,S,N,u[5],1836072691,7),F=i(F,10),N=l(N,O,M,F,S,u[1],1836072691,15),M=i(M,10),S=l(S,N,O,M,F,u[3],1836072691,11),O=i(O,10),F=l(F,S,N,O,M,u[7],1836072691,8),N=i(N,10),M=l(M,F,S,N,O,u[14],1836072691,6),S=i(S,10),O=l(O,M,F,S,N,u[6],1836072691,6),F=i(F,10),N=l(N,O,M,F,S,u[9],1836072691,14),M=i(M,10),S=l(S,N,O,M,F,u[11],1836072691,12),O=i(O,10),F=l(F,S,N,O,M,u[8],1836072691,13),N=i(N,10),M=l(M,F,S,N,O,u[12],1836072691,5),S=i(S,10),O=l(O,M,F,S,N,u[2],1836072691,14),F=i(F,10),N=l(N,O,M,F,S,u[10],1836072691,13),M=i(M,10),S=l(S,N,O,M,F,u[0],1836072691,13),O=i(O,10),F=l(F,S,N,O,M,u[4],1836072691,7),N=i(N,10),M=l(M,F,S,N,O,u[13],1836072691,5),S=i(S,10),O=s(O,M,F,S,N,u[8],2053994217,15),F=i(F,10),N=s(N,O,M,F,S,u[6],2053994217,5),M=i(M,10),S=s(S,N,O,M,F,u[4],2053994217,8),O=i(O,10),F=s(F,S,N,O,M,u[1],2053994217,11),N=i(N,10),M=s(M,F,S,N,O,u[3],2053994217,14),S=i(S,10),O=s(O,M,F,S,N,u[11],2053994217,14),F=i(F,10),N=s(N,O,M,F,S,u[15],2053994217,6),M=i(M,10),S=s(S,N,O,M,F,u[0],2053994217,14),O=i(O,10),F=s(F,S,N,O,M,u[5],2053994217,6),N=i(N,10),M=s(M,F,S,N,O,u[12],2053994217,9),S=i(S,10),O=s(O,M,F,S,N,u[2],2053994217,12),F=i(F,10),N=s(N,O,M,F,S,u[13],2053994217,9),M=i(M,10),S=s(S,N,O,M,F,u[9],2053994217,12),O=i(O,10),F=s(F,S,N,O,M,u[7],2053994217,5),N=i(N,10),M=s(M,F,S,N,O,u[10],2053994217,15),S=i(S,10),O=s(O,M,F,S,N,u[14],2053994217,8),F=i(F,10),N=o(N,O,M,F,S,u[12],0,8),M=i(M,10),S=o(S,N,O,M,F,u[15],0,5),O=i(O,10),F=o(F,S,N,O,M,u[10],0,12),N=i(N,10),M=o(M,F,S,N,O,u[4],0,9),S=i(S,10),O=o(O,M,F,S,N,u[1],0,12),F=i(F,10),N=o(N,O,M,F,S,u[5],0,5),M=i(M,10),S=o(S,N,O,M,F,u[8],0,14),O=i(O,10),F=o(F,S,N,O,M,u[7],0,6),N=i(N,10),M=o(M,F,S,N,O,u[6],0,8),S=i(S,10),O=o(O,M,F,S,N,u[2],0,13),F=i(F,10),N=o(N,O,M,F,S,u[13],0,6),M=i(M,10),S=o(S,N,O,M,F,u[14],0,5),O=i(O,10),F=o(F,S,N,O,M,u[0],0,15),N=i(N,10),M=o(M,F,S,N,O,u[3],0,13),S=i(S,10),O=o(O,M,F,S,N,u[9],0,11),F=i(F,10),N=o(N,O,M,F,S,u[11],0,11),M=i(M,10);var L=this._b+m+M|0;this._b=this._c+g+F|0,this._c=this._d+_+S|0,this._d=this._e+v+N|0,this._e=this._a+h+O|0,this._a=L},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var u=new Buffer(20);return u.writeInt32LE(this._a,0),u.writeInt32LE(this._b,4),u.writeInt32LE(this._c,8),u.writeInt32LE(this._d,12),u.writeInt32LE(this._e,16),u};function i(u,c){return u<<c|u>>>32-c}function o(u,c,v,h,m,g,_,S){return i(u+(c^v^h)+g+_|0,S)+m|0}function s(u,c,v,h,m,g,_,S){return i(u+(c&v|~c&h)+g+_|0,S)+m|0}function l(u,c,v,h,m,g,_,S){return i(u+((c|~v)^h)+g+_|0,S)+m|0}function f(u,c,v,h,m,g,_,S){return i(u+(c&h|v&~h)+g+_|0,S)+m|0}function d(u,c,v,h,m,g,_,S){return i(u+(c^(v|~h))+g+_|0,S)+m|0}return ripemd160$2=a,ripemd160$2}var toBuffer_1,hasRequiredToBuffer;function requireToBuffer(){if(hasRequiredToBuffer)return toBuffer_1;hasRequiredToBuffer=1;var r=requireSafeBuffer$1().Buffer,n=requireToBuffer$1(),a=typeof Uint8Array<"u",i=a&&typeof ArrayBuffer<"u",o=i&&ArrayBuffer.isView;return toBuffer_1=function(s,l,f){if(typeof s=="string"||r.isBuffer(s)||a&&s instanceof Uint8Array||o&&o(s))return n(s,l);throw new TypeError(f+" must be a string, a Buffer, a Uint8Array, or a DataView")},toBuffer_1}var syncBrowser,hasRequiredSyncBrowser;function requireSyncBrowser(){if(hasRequiredSyncBrowser)return syncBrowser;hasRequiredSyncBrowser=1;var r=requireMd5$1(),n=requireRipemd160$1(),a=requireSha_js(),i=requireSafeBuffer$1().Buffer,o=requirePrecondition(),s=requireDefaultEncoding(),l=requireToBuffer(),f=i.alloc(128),d={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},u={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function c(g){return new n().update(g).digest()}function v(g){function _(S){return a(g).update(S).digest()}return g==="rmd160"||g==="ripemd160"?c:g==="md5"?r:_}function h(g,_,S){var N=v(g),O=g==="sha512"||g==="sha384"?128:64;_.length>O?_=N(_):_.length<O&&(_=i.concat([_,f],O));for(var M=i.allocUnsafe(O+d[g]),F=i.allocUnsafe(O+d[g]),L=0;L<O;L++)M[L]=_[L]^54,F[L]=_[L]^92;var k=i.allocUnsafe(O+S+4);M.copy(k,0,0,O),this.ipad1=k,this.ipad2=M,this.opad=F,this.alg=g,this.blocksize=O,this.hash=N,this.size=d[g]}h.prototype.run=function(g,_){g.copy(_,this.blocksize);var S=this.hash(_);return S.copy(this.opad,this.blocksize),this.hash(this.opad)};function m(g,_,S,N,O){o(S,N),g=l(g,s,"Password"),_=l(_,s,"Salt");var M=(O||"sha1").toLowerCase(),F=u[M]||M,L=d[F];if(typeof L!="number"||!L)throw new TypeError("Digest algorithm not supported: "+O);var k=new h(F,g,_.length),P=i.allocUnsafe(N),U=i.allocUnsafe(_.length+4);_.copy(U,0,0,_.length);for(var B=0,j=L,$=Math.ceil(N/j),A=1;A<=$;A++){U.writeUInt32BE(A,_.length);for(var R=k.run(U,k.ipad1),y=R,b=1;b<S;b++){y=k.run(y,k.ipad2);for(var D=0;D<j;D++)R[D]^=y[D]}R.copy(P,B),B+=j}return P}return syncBrowser=m,syncBrowser}var async,hasRequiredAsync;function requireAsync(){if(hasRequiredAsync)return async;hasRequiredAsync=1;var r=requireSafeBuffer$1().Buffer,n=requirePrecondition(),a=requireDefaultEncoding(),i=requireSyncBrowser(),o=requireToBuffer(),s,l=commonjsGlobal.crypto&&commonjsGlobal.crypto.subtle,f={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[],u;function c(){return u||(commonjsGlobal.process&&commonjsGlobal.process.nextTick?u=commonjsGlobal.process.nextTick:commonjsGlobal.queueMicrotask?u=commonjsGlobal.queueMicrotask:commonjsGlobal.setImmediate?u=commonjsGlobal.setImmediate:u=commonjsGlobal.setTimeout,u)}function v(g,_,S,N,O){return l.importKey("raw",g,{name:"PBKDF2"},!1,["deriveBits"]).then(function(M){return l.deriveBits({name:"PBKDF2",salt:_,iterations:S,hash:{name:O}},M,N<<3)}).then(function(M){return r.from(M)})}function h(g){if(commonjsGlobal.process&&!commonjsGlobal.process.browser||!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(d[g]!==void 0)return d[g];s=s||r.alloc(8);var _=v(s,s,10,128,g).then(function(){return!0},function(){return!1});return d[g]=_,_}function m(g,_){g.then(function(S){c()(function(){_(null,S)})},function(S){c()(function(){_(S)})})}return async=function(g,_,S,N,O,M){typeof O=="function"&&(M=O,O=void 0),O=O||"sha1";var F=f[O.toLowerCase()];if(!F||typeof commonjsGlobal.Promise!="function"){c()(function(){var L;try{L=i(g,_,S,N,O)}catch(k){M(k);return}M(null,L)});return}if(n(S,N),g=o(g,a,"Password"),_=o(_,a,"Salt"),typeof M!="function")throw new Error("No callback provided to pbkdf2");m(h(F).then(function(L){return L?v(g,_,S,N,F):i(g,_,S,N,O)}),M)},async}var hasRequiredBrowser$8;function requireBrowser$8(){return hasRequiredBrowser$8||(hasRequiredBrowser$8=1,browser$8.pbkdf2=requireAsync(),browser$8.pbkdf2Sync=requireSyncBrowser()),browser$8}var browser$7={},des$1={},utils$3={},hasRequiredUtils$3;function requireUtils$3(){if(hasRequiredUtils$3)return utils$3;hasRequiredUtils$3=1,utils$3.readUInt32BE=function(o,s){var l=o[0+s]<<24|o[1+s]<<16|o[2+s]<<8|o[3+s];return l>>>0},utils$3.writeUInt32BE=function(o,s,l){o[0+l]=s>>>24,o[1+l]=s>>>16&255,o[2+l]=s>>>8&255,o[3+l]=s&255},utils$3.ip=function(o,s,l,f){for(var d=0,u=0,c=6;c>=0;c-=2){for(var v=0;v<=24;v+=8)d<<=1,d|=s>>>v+c&1;for(var v=0;v<=24;v+=8)d<<=1,d|=o>>>v+c&1}for(var c=6;c>=0;c-=2){for(var v=1;v<=25;v+=8)u<<=1,u|=s>>>v+c&1;for(var v=1;v<=25;v+=8)u<<=1,u|=o>>>v+c&1}l[f+0]=d>>>0,l[f+1]=u>>>0},utils$3.rip=function(o,s,l,f){for(var d=0,u=0,c=0;c<4;c++)for(var v=24;v>=0;v-=8)d<<=1,d|=s>>>v+c&1,d<<=1,d|=o>>>v+c&1;for(var c=4;c<8;c++)for(var v=24;v>=0;v-=8)u<<=1,u|=s>>>v+c&1,u<<=1,u|=o>>>v+c&1;l[f+0]=d>>>0,l[f+1]=u>>>0},utils$3.pc1=function(o,s,l,f){for(var d=0,u=0,c=7;c>=5;c--){for(var v=0;v<=24;v+=8)d<<=1,d|=s>>v+c&1;for(var v=0;v<=24;v+=8)d<<=1,d|=o>>v+c&1}for(var v=0;v<=24;v+=8)d<<=1,d|=s>>v+c&1;for(var c=1;c<=3;c++){for(var v=0;v<=24;v+=8)u<<=1,u|=s>>v+c&1;for(var v=0;v<=24;v+=8)u<<=1,u|=o>>v+c&1}for(var v=0;v<=24;v+=8)u<<=1,u|=o>>v+c&1;l[f+0]=d>>>0,l[f+1]=u>>>0},utils$3.r28shl=function(o,s){return o<<s&268435455|o>>>28-s};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$3.pc2=function(o,s,l,f){for(var d=0,u=0,c=r.length>>>1,v=0;v<c;v++)d<<=1,d|=o>>>r[v]&1;for(var v=c;v<r.length;v++)u<<=1,u|=s>>>r[v]&1;l[f+0]=d>>>0,l[f+1]=u>>>0},utils$3.expand=function(o,s,l){var f=0,d=0;f=(o&1)<<5|o>>>27;for(var u=23;u>=15;u-=4)f<<=6,f|=o>>>u&63;for(var u=11;u>=3;u-=4)d|=o>>>u&63,d<<=6;d|=(o&31)<<1|o>>>31,s[l+0]=f>>>0,s[l+1]=d>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$3.substitute=function(o,s){for(var l=0,f=0;f<4;f++){var d=o>>>18-f*6&63,u=n[f*64+d];l<<=4,l|=u}for(var f=0;f<4;f++){var d=s>>>18-f*6&63,u=n[256+f*64+d];l<<=4,l|=u}return l>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];return utils$3.permute=function(o){for(var s=0,l=0;l<a.length;l++)s<<=1,s|=o>>>a[l]&1;return s>>>0},utils$3.padSplit=function(o,s,l){for(var f=o.toString(2);f.length<s;)f="0"+f;for(var d=[],u=0;u<s;u+=l)d.push(f.slice(u,u+l));return d.join(" ")},utils$3}var minimalisticAssert,hasRequiredMinimalisticAssert;function requireMinimalisticAssert(){if(hasRequiredMinimalisticAssert)return minimalisticAssert;hasRequiredMinimalisticAssert=1,minimalisticAssert=r;function r(n,a){if(!n)throw new Error(a||"Assertion failed")}return r.equal=function(a,i,o){if(a!=i)throw new Error(o||"Assertion failed: "+a+" != "+i)},minimalisticAssert}var cipher,hasRequiredCipher;function requireCipher(){if(hasRequiredCipher)return cipher;hasRequiredCipher=1;var r=requireMinimalisticAssert();function n(a){this.options=a,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=a.padding!==!1}return cipher=n,n.prototype._init=function(){},n.prototype.update=function(i){return i.length===0?[]:this.type==="decrypt"?this._updateDecrypt(i):this._updateEncrypt(i)},n.prototype._buffer=function(i,o){for(var s=Math.min(this.buffer.length-this.bufferOff,i.length-o),l=0;l<s;l++)this.buffer[this.bufferOff+l]=i[o+l];return this.bufferOff+=s,s},n.prototype._flushBuffer=function(i,o){return this._update(this.buffer,0,i,o),this.bufferOff=0,this.blockSize},n.prototype._updateEncrypt=function(i){var o=0,s=0,l=(this.bufferOff+i.length)/this.blockSize|0,f=new Array(l*this.blockSize);this.bufferOff!==0&&(o+=this._buffer(i,o),this.bufferOff===this.buffer.length&&(s+=this._flushBuffer(f,s)));for(var d=i.length-(i.length-o)%this.blockSize;o<d;o+=this.blockSize)this._update(i,o,f,s),s+=this.blockSize;for(;o<i.length;o++,this.bufferOff++)this.buffer[this.bufferOff]=i[o];return f},n.prototype._updateDecrypt=function(i){for(var o=0,s=0,l=Math.ceil((this.bufferOff+i.length)/this.blockSize)-1,f=new Array(l*this.blockSize);l>0;l--)o+=this._buffer(i,o),s+=this._flushBuffer(f,s);return o+=this._buffer(i,o),f},n.prototype.final=function(i){var o;i&&(o=this.update(i));var s;return this.type==="encrypt"?s=this._finalEncrypt():s=this._finalDecrypt(),o?o.concat(s):s},n.prototype._pad=function(i,o){if(o===0)return!1;for(;o<i.length;)i[o++]=0;return!0},n.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var i=new Array(this.blockSize);return this._update(this.buffer,0,i,0),i},n.prototype._unpad=function(i){return i},n.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var i=new Array(this.blockSize);return this._flushBuffer(i,0),this._unpad(i)},cipher}var des,hasRequiredDes$1;function requireDes$1(){if(hasRequiredDes$1)return des;hasRequiredDes$1=1;var r=requireMinimalisticAssert(),n=requireInherits_browser(),a=requireUtils$3(),i=requireCipher();function o(){this.tmp=new Array(2),this.keys=null}function s(f){i.call(this,f);var d=new o;this._desState=d,this.deriveKeys(d,f.key)}n(s,i),des=s,s.create=function(d){return new s(d)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];return s.prototype.deriveKeys=function(d,u){d.keys=new Array(32),r.equal(u.length,this.blockSize,"Invalid key length");var c=a.readUInt32BE(u,0),v=a.readUInt32BE(u,4);a.pc1(c,v,d.tmp,0),c=d.tmp[0],v=d.tmp[1];for(var h=0;h<d.keys.length;h+=2){var m=l[h>>>1];c=a.r28shl(c,m),v=a.r28shl(v,m),a.pc2(c,v,d.keys,h)}},s.prototype._update=function(d,u,c,v){var h=this._desState,m=a.readUInt32BE(d,u),g=a.readUInt32BE(d,u+4);a.ip(m,g,h.tmp,0),m=h.tmp[0],g=h.tmp[1],this.type==="encrypt"?this._encrypt(h,m,g,h.tmp,0):this._decrypt(h,m,g,h.tmp,0),m=h.tmp[0],g=h.tmp[1],a.writeUInt32BE(c,m,v),a.writeUInt32BE(c,g,v+4)},s.prototype._pad=function(d,u){if(this.padding===!1)return!1;for(var c=d.length-u,v=u;v<d.length;v++)d[v]=c;return!0},s.prototype._unpad=function(d){if(this.padding===!1)return d;for(var u=d[d.length-1],c=d.length-u;c<d.length;c++)r.equal(d[c],u);return d.slice(0,d.length-u)},s.prototype._encrypt=function(d,u,c,v,h){for(var m=u,g=c,_=0;_<d.keys.length;_+=2){var S=d.keys[_],N=d.keys[_+1];a.expand(g,d.tmp,0),S^=d.tmp[0],N^=d.tmp[1];var O=a.substitute(S,N),M=a.permute(O),F=g;g=(m^M)>>>0,m=F}a.rip(g,m,v,h)},s.prototype._decrypt=function(d,u,c,v,h){for(var m=c,g=u,_=d.keys.length-2;_>=0;_-=2){var S=d.keys[_],N=d.keys[_+1];a.expand(m,d.tmp,0),S^=d.tmp[0],N^=d.tmp[1];var O=a.substitute(S,N),M=a.permute(O),F=m;m=(g^M)>>>0,g=F}a.rip(m,g,v,h)},des}var cbc$1={},hasRequiredCbc$1;function requireCbc$1(){if(hasRequiredCbc$1)return cbc$1;hasRequiredCbc$1=1;var r=requireMinimalisticAssert(),n=requireInherits_browser(),a={};function i(s){r.equal(s.length,8,"Invalid IV length"),this.iv=new Array(8);for(var l=0;l<this.iv.length;l++)this.iv[l]=s[l]}function o(s){function l(c){s.call(this,c),this._cbcInit()}n(l,s);for(var f=Object.keys(a),d=0;d<f.length;d++){var u=f[d];l.prototype[u]=a[u]}return l.create=function(v){return new l(v)},l}return cbc$1.instantiate=o,a._cbcInit=function(){var l=new i(this.options.iv);this._cbcState=l},a._update=function(l,f,d,u){var c=this._cbcState,v=this.constructor.super_.prototype,h=c.iv;if(this.type==="encrypt"){for(var m=0;m<this.blockSize;m++)h[m]^=l[f+m];v._update.call(this,h,0,d,u);for(var m=0;m<this.blockSize;m++)h[m]=d[u+m]}else{v._update.call(this,l,f,d,u);for(var m=0;m<this.blockSize;m++)d[u+m]^=h[m];for(var m=0;m<this.blockSize;m++)h[m]=l[f+m]}},cbc$1}var ede,hasRequiredEde;function requireEde(){if(hasRequiredEde)return ede;hasRequiredEde=1;var r=requireMinimalisticAssert(),n=requireInherits_browser(),a=requireCipher(),i=requireDes$1();function o(l,f){r.equal(f.length,24,"Invalid key length");var d=f.slice(0,8),u=f.slice(8,16),c=f.slice(16,24);l==="encrypt"?this.ciphers=[i.create({type:"encrypt",key:d}),i.create({type:"decrypt",key:u}),i.create({type:"encrypt",key:c})]:this.ciphers=[i.create({type:"decrypt",key:c}),i.create({type:"encrypt",key:u}),i.create({type:"decrypt",key:d})]}function s(l){a.call(this,l);var f=new o(this.type,this.options.key);this._edeState=f}return n(s,a),ede=s,s.create=function(f){return new s(f)},s.prototype._update=function(f,d,u,c){var v=this._edeState;v.ciphers[0]._update(f,d,u,c),v.ciphers[1]._update(u,c,u,c),v.ciphers[2]._update(u,c,u,c)},s.prototype._pad=i.prototype._pad,s.prototype._unpad=i.prototype._unpad,ede}var hasRequiredDes;function requireDes(){return hasRequiredDes||(hasRequiredDes=1,des$1.utils=requireUtils$3(),des$1.Cipher=requireCipher(),des$1.DES=requireDes$1(),des$1.CBC=requireCbc$1(),des$1.EDE=requireEde()),des$1}var browserifyDes,hasRequiredBrowserifyDes;function requireBrowserifyDes(){if(hasRequiredBrowserifyDes)return browserifyDes;hasRequiredBrowserifyDes=1;var r=requireCipherBase(),n=requireDes(),a=requireInherits_browser(),i=requireSafeBuffer$1().Buffer,o={"des-ede3-cbc":n.CBC.instantiate(n.EDE),"des-ede3":n.EDE,"des-ede-cbc":n.CBC.instantiate(n.EDE),"des-ede":n.EDE,"des-cbc":n.CBC.instantiate(n.DES),"des-ecb":n.DES};o.des=o["des-cbc"],o.des3=o["des-ede3-cbc"],browserifyDes=s,a(s,r);function s(l){r.call(this);var f=l.mode.toLowerCase(),d=o[f],u;l.decrypt?u="decrypt":u="encrypt";var c=l.key;i.isBuffer(c)||(c=i.from(c)),(f==="des-ede"||f==="des-ede-cbc")&&(c=i.concat([c,c.slice(0,8)]));var v=l.iv;i.isBuffer(v)||(v=i.from(v)),this._des=d.create({key:c,iv:v,type:u})}return s.prototype._update=function(l){return i.from(this._des.update(l))},s.prototype._final=function(){return i.from(this._des.final())},browserifyDes}var browser$6={},encrypter={},ecb={},hasRequiredEcb;function requireEcb(){return hasRequiredEcb||(hasRequiredEcb=1,ecb.encrypt=function(r,n){return r._cipher.encryptBlock(n)},ecb.decrypt=function(r,n){return r._cipher.decryptBlock(n)}),ecb}var cbc={},bufferXor,hasRequiredBufferXor;function requireBufferXor(){return hasRequiredBufferXor||(hasRequiredBufferXor=1,bufferXor=function(n,a){for(var i=Math.min(n.length,a.length),o=new Buffer(i),s=0;s<i;++s)o[s]=n[s]^a[s];return o}),bufferXor}var hasRequiredCbc;function requireCbc(){if(hasRequiredCbc)return cbc;hasRequiredCbc=1;var r=requireBufferXor();return cbc.encrypt=function(n,a){var i=r(a,n._prev);return n._prev=n._cipher.encryptBlock(i),n._prev},cbc.decrypt=function(n,a){var i=n._prev;n._prev=a;var o=n._cipher.decryptBlock(a);return r(o,i)},cbc}var cfb={},hasRequiredCfb;function requireCfb(){if(hasRequiredCfb)return cfb;hasRequiredCfb=1;var r=requireSafeBuffer$1().Buffer,n=requireBufferXor();function a(i,o,s){var l=o.length,f=n(o,i._cache);return i._cache=i._cache.slice(l),i._prev=r.concat([i._prev,s?o:f]),f}return cfb.encrypt=function(i,o,s){for(var l=r.allocUnsafe(0),f;o.length;)if(i._cache.length===0&&(i._cache=i._cipher.encryptBlock(i._prev),i._prev=r.allocUnsafe(0)),i._cache.length<=o.length)f=i._cache.length,l=r.concat([l,a(i,o.slice(0,f),s)]),o=o.slice(f);else{l=r.concat([l,a(i,o,s)]);break}return l},cfb}var cfb8={},hasRequiredCfb8;function requireCfb8(){if(hasRequiredCfb8)return cfb8;hasRequiredCfb8=1;var r=requireSafeBuffer$1().Buffer;function n(a,i,o){var s=a._cipher.encryptBlock(a._prev),l=s[0]^i;return a._prev=r.concat([a._prev.slice(1),r.from([o?i:l])]),l}return cfb8.encrypt=function(a,i,o){for(var s=i.length,l=r.allocUnsafe(s),f=-1;++f<s;)l[f]=n(a,i[f],o);return l},cfb8}var cfb1={},hasRequiredCfb1;function requireCfb1(){if(hasRequiredCfb1)return cfb1;hasRequiredCfb1=1;var r=requireSafeBuffer$1().Buffer;function n(i,o,s){for(var l,f=-1,d=8,u=0,c,v;++f<d;)l=i._cipher.encryptBlock(i._prev),c=o&1<<7-f?128:0,v=l[0]^c,u+=(v&128)>>f%8,i._prev=a(i._prev,s?c:v);return u}function a(i,o){var s=i.length,l=-1,f=r.allocUnsafe(i.length);for(i=r.concat([i,r.from([o])]);++l<s;)f[l]=i[l]<<1|i[l+1]>>7;return f}return cfb1.encrypt=function(i,o,s){for(var l=o.length,f=r.allocUnsafe(l),d=-1;++d<l;)f[d]=n(i,o[d],s);return f},cfb1}var ofb={},hasRequiredOfb;function requireOfb(){if(hasRequiredOfb)return ofb;hasRequiredOfb=1;var r=requireBufferXor();function n(a){return a._prev=a._cipher.encryptBlock(a._prev),a._prev}return ofb.encrypt=function(a,i){for(;a._cache.length<i.length;)a._cache=Buffer.concat([a._cache,n(a)]);var o=a._cache.slice(0,i.length);return a._cache=a._cache.slice(i.length),r(i,o)},ofb}var ctr={},incr32_1,hasRequiredIncr32;function requireIncr32(){if(hasRequiredIncr32)return incr32_1;hasRequiredIncr32=1;function r(n){for(var a=n.length,i;a--;)if(i=n.readUInt8(a),i===255)n.writeUInt8(0,a);else{i++,n.writeUInt8(i,a);break}}return incr32_1=r,incr32_1}var hasRequiredCtr;function requireCtr(){if(hasRequiredCtr)return ctr;hasRequiredCtr=1;var r=requireBufferXor(),n=requireSafeBuffer$1().Buffer,a=requireIncr32();function i(s){var l=s._cipher.encryptBlockRaw(s._prev);return a(s._prev),l}var o=16;return ctr.encrypt=function(s,l){var f=Math.ceil(l.length/o),d=s._cache.length;s._cache=n.concat([s._cache,n.allocUnsafe(f*o)]);for(var u=0;u<f;u++){var c=i(s),v=d+u*o;s._cache.writeUInt32BE(c[0],v+0),s._cache.writeUInt32BE(c[1],v+4),s._cache.writeUInt32BE(c[2],v+8),s._cache.writeUInt32BE(c[3],v+12)}var h=s._cache.slice(0,l.length);return s._cache=s._cache.slice(l.length),r(l,h)},ctr}const aes128={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"};var require$$2={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128,aes192,aes256,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},modes_1,hasRequiredModes$1;function requireModes$1(){if(hasRequiredModes$1)return modes_1;hasRequiredModes$1=1;var r={ECB:requireEcb(),CBC:requireCbc(),CFB:requireCfb(),CFB8:requireCfb8(),CFB1:requireCfb1(),OFB:requireOfb(),CTR:requireCtr(),GCM:requireCtr()},n=require$$2;for(var a in n)n[a].module=r[n[a].mode];return modes_1=n,modes_1}var aes$2={},hasRequiredAes$1;function requireAes$1(){if(hasRequiredAes$1)return aes$2;hasRequiredAes$1=1;var r=requireSafeBuffer$1().Buffer;function n(f){r.isBuffer(f)||(f=r.from(f));for(var d=f.length/4|0,u=new Array(d),c=0;c<d;c++)u[c]=f.readUInt32BE(c*4);return u}function a(f){for(var d=0;d<f.length;f++)f[d]=0}function i(f,d,u,c,v){for(var h=u[0],m=u[1],g=u[2],_=u[3],S=f[0]^d[0],N=f[1]^d[1],O=f[2]^d[2],M=f[3]^d[3],F,L,k,P,U=4,B=1;B<v;B++)F=h[S>>>24]^m[N>>>16&255]^g[O>>>8&255]^_[M&255]^d[U++],L=h[N>>>24]^m[O>>>16&255]^g[M>>>8&255]^_[S&255]^d[U++],k=h[O>>>24]^m[M>>>16&255]^g[S>>>8&255]^_[N&255]^d[U++],P=h[M>>>24]^m[S>>>16&255]^g[N>>>8&255]^_[O&255]^d[U++],S=F,N=L,O=k,M=P;return F=(c[S>>>24]<<24|c[N>>>16&255]<<16|c[O>>>8&255]<<8|c[M&255])^d[U++],L=(c[N>>>24]<<24|c[O>>>16&255]<<16|c[M>>>8&255]<<8|c[S&255])^d[U++],k=(c[O>>>24]<<24|c[M>>>16&255]<<16|c[S>>>8&255]<<8|c[N&255])^d[U++],P=(c[M>>>24]<<24|c[S>>>16&255]<<16|c[N>>>8&255]<<8|c[O&255])^d[U++],F=F>>>0,L=L>>>0,k=k>>>0,P=P>>>0,[F,L,k,P]}var o=[0,1,2,4,8,16,32,64,128,27,54],s=function(){for(var f=new Array(256),d=0;d<256;d++)d<128?f[d]=d<<1:f[d]=d<<1^283;for(var u=[],c=[],v=[[],[],[],[]],h=[[],[],[],[]],m=0,g=0,_=0;_<256;++_){var S=g^g<<1^g<<2^g<<3^g<<4;S=S>>>8^S&255^99,u[m]=S,c[S]=m;var N=f[m],O=f[N],M=f[O],F=f[S]*257^S*16843008;v[0][m]=F<<24|F>>>8,v[1][m]=F<<16|F>>>16,v[2][m]=F<<8|F>>>24,v[3][m]=F,F=M*16843009^O*65537^N*257^m*16843008,h[0][S]=F<<24|F>>>8,h[1][S]=F<<16|F>>>16,h[2][S]=F<<8|F>>>24,h[3][S]=F,m===0?m=g=1:(m=N^f[f[f[M^N]]],g^=f[f[g]])}return{SBOX:u,INV_SBOX:c,SUB_MIX:v,INV_SUB_MIX:h}}();function l(f){this._key=n(f),this._reset()}return l.blockSize=16,l.keySize=256/8,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var f=this._key,d=f.length,u=d+6,c=(u+1)*4,v=[],h=0;h<d;h++)v[h]=f[h];for(h=d;h<c;h++){var m=v[h-1];h%d===0?(m=m<<8|m>>>24,m=s.SBOX[m>>>24]<<24|s.SBOX[m>>>16&255]<<16|s.SBOX[m>>>8&255]<<8|s.SBOX[m&255],m^=o[h/d|0]<<24):d>6&&h%d===4&&(m=s.SBOX[m>>>24]<<24|s.SBOX[m>>>16&255]<<16|s.SBOX[m>>>8&255]<<8|s.SBOX[m&255]),v[h]=v[h-d]^m}for(var g=[],_=0;_<c;_++){var S=c-_,N=v[S-(_%4?0:4)];_<4||S<=4?g[_]=N:g[_]=s.INV_SUB_MIX[0][s.SBOX[N>>>24]]^s.INV_SUB_MIX[1][s.SBOX[N>>>16&255]]^s.INV_SUB_MIX[2][s.SBOX[N>>>8&255]]^s.INV_SUB_MIX[3][s.SBOX[N&255]]}this._nRounds=u,this._keySchedule=v,this._invKeySchedule=g},l.prototype.encryptBlockRaw=function(f){return f=n(f),i(f,this._keySchedule,s.SUB_MIX,s.SBOX,this._nRounds)},l.prototype.encryptBlock=function(f){var d=this.encryptBlockRaw(f),u=r.allocUnsafe(16);return u.writeUInt32BE(d[0],0),u.writeUInt32BE(d[1],4),u.writeUInt32BE(d[2],8),u.writeUInt32BE(d[3],12),u},l.prototype.decryptBlock=function(f){f=n(f);var d=f[1];f[1]=f[3],f[3]=d;var u=i(f,this._invKeySchedule,s.INV_SUB_MIX,s.INV_SBOX,this._nRounds),c=r.allocUnsafe(16);return c.writeUInt32BE(u[0],0),c.writeUInt32BE(u[3],4),c.writeUInt32BE(u[2],8),c.writeUInt32BE(u[1],12),c},l.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},aes$2.AES=l,aes$2}var ghash,hasRequiredGhash;function requireGhash(){if(hasRequiredGhash)return ghash;hasRequiredGhash=1;var r=requireSafeBuffer$1().Buffer,n=r.alloc(16,0);function a(s){return[s.readUInt32BE(0),s.readUInt32BE(4),s.readUInt32BE(8),s.readUInt32BE(12)]}function i(s){var l=r.allocUnsafe(16);return l.writeUInt32BE(s[0]>>>0,0),l.writeUInt32BE(s[1]>>>0,4),l.writeUInt32BE(s[2]>>>0,8),l.writeUInt32BE(s[3]>>>0,12),l}function o(s){this.h=s,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}return o.prototype.ghash=function(s){for(var l=-1;++l<s.length;)this.state[l]^=s[l];this._multiply()},o.prototype._multiply=function(){for(var s=a(this.h),l=[0,0,0,0],f,d,u,c=-1;++c<128;){for(d=(this.state[~~(c/8)]&1<<7-c%8)!==0,d&&(l[0]^=s[0],l[1]^=s[1],l[2]^=s[2],l[3]^=s[3]),u=(s[3]&1)!==0,f=3;f>0;f--)s[f]=s[f]>>>1|(s[f-1]&1)<<31;s[0]=s[0]>>>1,u&&(s[0]=s[0]^225<<24)}this.state=i(l)},o.prototype.update=function(s){this.cache=r.concat([this.cache,s]);for(var l;this.cache.length>=16;)l=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(l)},o.prototype.final=function(s,l){return this.cache.length&&this.ghash(r.concat([this.cache,n],16)),this.ghash(i([0,s,0,l])),this.state},ghash=o,ghash}var authCipher,hasRequiredAuthCipher;function requireAuthCipher(){if(hasRequiredAuthCipher)return authCipher;hasRequiredAuthCipher=1;var r=requireAes$1(),n=requireSafeBuffer$1().Buffer,a=requireCipherBase(),i=requireInherits_browser(),o=requireGhash(),s=requireBufferXor(),l=requireIncr32();function f(c,v){var h=0;c.length!==v.length&&h++;for(var m=Math.min(c.length,v.length),g=0;g<m;++g)h+=c[g]^v[g];return h}function d(c,v,h){if(v.length===12)return c._finID=n.concat([v,n.from([0,0,0,1])]),n.concat([v,n.from([0,0,0,2])]);var m=new o(h),g=v.length,_=g%16;m.update(v),_&&(_=16-_,m.update(n.alloc(_,0))),m.update(n.alloc(8,0));var S=g*8,N=n.alloc(8);N.writeUIntBE(S,0,8),m.update(N),c._finID=m.state;var O=n.from(c._finID);return l(O),O}function u(c,v,h,m){a.call(this);var g=n.alloc(4,0);this._cipher=new r.AES(v);var _=this._cipher.encryptBlock(g);this._ghash=new o(_),h=d(this,h,_),this._prev=n.from(h),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=m,this._alen=0,this._len=0,this._mode=c,this._authTag=null,this._called=!1}return i(u,a),u.prototype._update=function(c){if(!this._called&&this._alen){var v=16-this._alen%16;v<16&&(v=n.alloc(v,0),this._ghash.update(v))}this._called=!0;var h=this._mode.encrypt(this,c);return this._decrypt?this._ghash.update(c):this._ghash.update(h),this._len+=c.length,h},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var c=s(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&f(c,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=c,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!n.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(v){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=v},u.prototype.setAAD=function(v){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(v),this._alen+=v.length},authCipher=u,authCipher}var streamCipher,hasRequiredStreamCipher;function requireStreamCipher(){if(hasRequiredStreamCipher)return streamCipher;hasRequiredStreamCipher=1;var r=requireAes$1(),n=requireSafeBuffer$1().Buffer,a=requireCipherBase(),i=requireInherits_browser();function o(s,l,f,d){a.call(this),this._cipher=new r.AES(l),this._prev=n.from(f),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=d,this._mode=s}return i(o,a),o.prototype._update=function(s){return this._mode.encrypt(this,s,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},streamCipher=o,streamCipher}var evp_bytestokey,hasRequiredEvp_bytestokey;function requireEvp_bytestokey(){if(hasRequiredEvp_bytestokey)return evp_bytestokey;hasRequiredEvp_bytestokey=1;var r=requireSafeBuffer$1().Buffer,n=requireMd5_js();function a(i,o,s,l){if(r.isBuffer(i)||(i=r.from(i,"binary")),o&&(r.isBuffer(o)||(o=r.from(o,"binary")),o.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var f=s/8,d=r.alloc(f),u=r.alloc(l||0),c=r.alloc(0);f>0||l>0;){var v=new n;v.update(c),v.update(i),o&&v.update(o),c=v.digest();var h=0;if(f>0){var m=d.length-f;h=Math.min(f,c.length),c.copy(d,m,0,h),f-=h}if(h<c.length&&l>0){var g=u.length-l,_=Math.min(l,c.length-h);c.copy(u,g,h,h+_),l-=_}}return c.fill(0),{key:d,iv:u}}return evp_bytestokey=a,evp_bytestokey}var hasRequiredEncrypter;function requireEncrypter(){if(hasRequiredEncrypter)return encrypter;hasRequiredEncrypter=1;var r=requireModes$1(),n=requireAuthCipher(),a=requireSafeBuffer$1().Buffer,i=requireStreamCipher(),o=requireCipherBase(),s=requireAes$1(),l=requireEvp_bytestokey(),f=requireInherits_browser();function d(m,g,_){o.call(this),this._cache=new c,this._cipher=new s.AES(g),this._prev=a.from(_),this._mode=m,this._autopadding=!0}f(d,o),d.prototype._update=function(m){this._cache.add(m);for(var g,_,S=[];g=this._cache.get();)_=this._mode.encrypt(this,g),S.push(_);return a.concat(S)};var u=a.alloc(16,16);d.prototype._final=function(){var m=this._cache.flush();if(this._autopadding)return m=this._mode.encrypt(this,m),this._cipher.scrub(),m;if(!m.equals(u))throw this._cipher.scrub(),new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(m){return this._autopadding=!!m,this};function c(){this.cache=a.allocUnsafe(0)}c.prototype.add=function(m){this.cache=a.concat([this.cache,m])},c.prototype.get=function(){if(this.cache.length>15){var m=this.cache.slice(0,16);return this.cache=this.cache.slice(16),m}return null},c.prototype.flush=function(){for(var m=16-this.cache.length,g=a.allocUnsafe(m),_=-1;++_<m;)g.writeUInt8(m,_);return a.concat([this.cache,g])};function v(m,g,_){var S=r[m.toLowerCase()];if(!S)throw new TypeError("invalid suite type");if(typeof g=="string"&&(g=a.from(g)),g.length!==S.key/8)throw new TypeError("invalid key length "+g.length);if(typeof _=="string"&&(_=a.from(_)),S.mode!=="GCM"&&_.length!==S.iv)throw new TypeError("invalid iv length "+_.length);return S.type==="stream"?new i(S.module,g,_):S.type==="auth"?new n(S.module,g,_):new d(S.module,g,_)}function h(m,g){var _=r[m.toLowerCase()];if(!_)throw new TypeError("invalid suite type");var S=l(g,!1,_.key,_.iv);return v(m,S.key,S.iv)}return encrypter.createCipheriv=v,encrypter.createCipher=h,encrypter}var decrypter={},hasRequiredDecrypter;function requireDecrypter(){if(hasRequiredDecrypter)return decrypter;hasRequiredDecrypter=1;var r=requireAuthCipher(),n=requireSafeBuffer$1().Buffer,a=requireModes$1(),i=requireStreamCipher(),o=requireCipherBase(),s=requireAes$1(),l=requireEvp_bytestokey(),f=requireInherits_browser();function d(m,g,_){o.call(this),this._cache=new u,this._last=void 0,this._cipher=new s.AES(g),this._prev=n.from(_),this._mode=m,this._autopadding=!0}f(d,o),d.prototype._update=function(m){this._cache.add(m);for(var g,_,S=[];g=this._cache.get(this._autopadding);)_=this._mode.decrypt(this,g),S.push(_);return n.concat(S)},d.prototype._final=function(){var m=this._cache.flush();if(this._autopadding)return c(this._mode.decrypt(this,m));if(m)throw new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(m){return this._autopadding=!!m,this};function u(){this.cache=n.allocUnsafe(0)}u.prototype.add=function(m){this.cache=n.concat([this.cache,m])},u.prototype.get=function(m){var g;if(m){if(this.cache.length>16)return g=this.cache.slice(0,16),this.cache=this.cache.slice(16),g}else if(this.cache.length>=16)return g=this.cache.slice(0,16),this.cache=this.cache.slice(16),g;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache};function c(m){var g=m[15];if(g<1||g>16)throw new Error("unable to decrypt data");for(var _=-1;++_<g;)if(m[_+(16-g)]!==g)throw new Error("unable to decrypt data");if(g!==16)return m.slice(0,16-g)}function v(m,g,_){var S=a[m.toLowerCase()];if(!S)throw new TypeError("invalid suite type");if(typeof _=="string"&&(_=n.from(_)),S.mode!=="GCM"&&_.length!==S.iv)throw new TypeError("invalid iv length "+_.length);if(typeof g=="string"&&(g=n.from(g)),g.length!==S.key/8)throw new TypeError("invalid key length "+g.length);return S.type==="stream"?new i(S.module,g,_,!0):S.type==="auth"?new r(S.module,g,_,!0):new d(S.module,g,_)}function h(m,g){var _=a[m.toLowerCase()];if(!_)throw new TypeError("invalid suite type");var S=l(g,!1,_.key,_.iv);return v(m,S.key,S.iv)}return decrypter.createDecipher=h,decrypter.createDecipheriv=v,decrypter}var hasRequiredBrowser$7;function requireBrowser$7(){if(hasRequiredBrowser$7)return browser$6;hasRequiredBrowser$7=1;var r=requireEncrypter(),n=requireDecrypter(),a=require$$2;function i(){return Object.keys(a)}return browser$6.createCipher=browser$6.Cipher=r.createCipher,browser$6.createCipheriv=browser$6.Cipheriv=r.createCipheriv,browser$6.createDecipher=browser$6.Decipher=n.createDecipher,browser$6.createDecipheriv=browser$6.Decipheriv=n.createDecipheriv,browser$6.listCiphers=browser$6.getCiphers=i,browser$6}var modes={},hasRequiredModes;function requireModes(){return hasRequiredModes||(hasRequiredModes=1,function(r){r["des-ecb"]={key:8,iv:0},r["des-cbc"]=r.des={key:8,iv:8},r["des-ede3-cbc"]=r.des3={key:24,iv:8},r["des-ede3"]={key:24,iv:0},r["des-ede-cbc"]={key:16,iv:8},r["des-ede"]={key:16,iv:0}}(modes)),modes}var hasRequiredBrowser$6;function requireBrowser$6(){if(hasRequiredBrowser$6)return browser$7;hasRequiredBrowser$6=1;var r=requireBrowserifyDes(),n=requireBrowser$7(),a=requireModes$1(),i=requireModes(),o=requireEvp_bytestokey();function s(c,v){c=c.toLowerCase();var h,m;if(a[c])h=a[c].key,m=a[c].iv;else if(i[c])h=i[c].key*8,m=i[c].iv;else throw new TypeError("invalid suite type");var g=o(v,!1,h,m);return f(c,g.key,g.iv)}function l(c,v){c=c.toLowerCase();var h,m;if(a[c])h=a[c].key,m=a[c].iv;else if(i[c])h=i[c].key*8,m=i[c].iv;else throw new TypeError("invalid suite type");var g=o(v,!1,h,m);return d(c,g.key,g.iv)}function f(c,v,h){if(c=c.toLowerCase(),a[c])return n.createCipheriv(c,v,h);if(i[c])return new r({key:v,iv:h,mode:c});throw new TypeError("invalid suite type")}function d(c,v,h){if(c=c.toLowerCase(),a[c])return n.createDecipheriv(c,v,h);if(i[c])return new r({key:v,iv:h,mode:c,decrypt:!0});throw new TypeError("invalid suite type")}function u(){return Object.keys(i).concat(n.getCiphers())}return browser$7.createCipher=browser$7.Cipher=s,browser$7.createCipheriv=browser$7.Cipheriv=f,browser$7.createDecipher=browser$7.Decipher=l,browser$7.createDecipheriv=browser$7.Decipheriv=d,browser$7.listCiphers=browser$7.getCiphers=u,browser$7}var browser$5={},bn$5={exports:{}},bn$4=bn$5.exports,hasRequiredBn$2;function requireBn$2(){return hasRequiredBn$2||(hasRequiredBn$2=1,function(r){(function(n,a){function i($,A){if(!$)throw new Error(A||"Assertion failed")}function o($,A){$.super_=A;var R=function(){};R.prototype=A.prototype,$.prototype=new R,$.prototype.constructor=$}function s($,A,R){if(s.isBN($))return $;this.negative=0,this.words=null,this.length=0,this.red=null,$!==null&&((A==="le"||A==="be")&&(R=A,A=10),this._init($||0,A||10,R||"be"))}typeof n=="object"?n.exports=s:a.BN=s,s.BN=s,s.wordSize=26;var l;try{typeof window<"u"&&typeof window.Buffer<"u"?l=window.Buffer:l=requireDist().Buffer}catch{}s.isBN=function(A){return A instanceof s?!0:A!==null&&typeof A=="object"&&A.constructor.wordSize===s.wordSize&&Array.isArray(A.words)},s.max=function(A,R){return A.cmp(R)>0?A:R},s.min=function(A,R){return A.cmp(R)<0?A:R},s.prototype._init=function(A,R,y){if(typeof A=="number")return this._initNumber(A,R,y);if(typeof A=="object")return this._initArray(A,R,y);R==="hex"&&(R=16),i(R===(R|0)&&R>=2&&R<=36),A=A.toString().replace(/\s+/g,"");var b=0;A[0]==="-"&&(b++,this.negative=1),b<A.length&&(R===16?this._parseHex(A,b,y):(this._parseBase(A,R,b),y==="le"&&this._initArray(this.toArray(),R,y)))},s.prototype._initNumber=function(A,R,y){A<0&&(this.negative=1,A=-A),A<67108864?(this.words=[A&67108863],this.length=1):A<4503599627370496?(this.words=[A&67108863,A/67108864&67108863],this.length=2):(i(A<9007199254740992),this.words=[A&67108863,A/67108864&67108863,1],this.length=3),y==="le"&&this._initArray(this.toArray(),R,y)},s.prototype._initArray=function(A,R,y){if(i(typeof A.length=="number"),A.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(A.length/3),this.words=new Array(this.length);for(var b=0;b<this.length;b++)this.words[b]=0;var D,I,T=0;if(y==="be")for(b=A.length-1,D=0;b>=0;b-=3)I=A[b]|A[b-1]<<8|A[b-2]<<16,this.words[D]|=I<<T&67108863,this.words[D+1]=I>>>26-T&67108863,T+=24,T>=26&&(T-=26,D++);else if(y==="le")for(b=0,D=0;b<A.length;b+=3)I=A[b]|A[b+1]<<8|A[b+2]<<16,this.words[D]|=I<<T&67108863,this.words[D+1]=I>>>26-T&67108863,T+=24,T>=26&&(T-=26,D++);return this.strip()};function f($,A){var R=$.charCodeAt(A);return R>=65&&R<=70?R-55:R>=97&&R<=102?R-87:R-48&15}function d($,A,R){var y=f($,R);return R-1>=A&&(y|=f($,R-1)<<4),y}s.prototype._parseHex=function(A,R,y){this.length=Math.ceil((A.length-R)/6),this.words=new Array(this.length);for(var b=0;b<this.length;b++)this.words[b]=0;var D=0,I=0,T;if(y==="be")for(b=A.length-1;b>=R;b-=2)T=d(A,R,b)<<D,this.words[I]|=T&67108863,D>=18?(D-=18,I+=1,this.words[I]|=T>>>26):D+=8;else{var C=A.length-R;for(b=C%2===0?R+1:R;b<A.length;b+=2)T=d(A,R,b)<<D,this.words[I]|=T&67108863,D>=18?(D-=18,I+=1,this.words[I]|=T>>>26):D+=8}this.strip()};function u($,A,R,y){for(var b=0,D=Math.min($.length,R),I=A;I<D;I++){var T=$.charCodeAt(I)-48;b*=y,T>=49?b+=T-49+10:T>=17?b+=T-17+10:b+=T}return b}s.prototype._parseBase=function(A,R,y){this.words=[0],this.length=1;for(var b=0,D=1;D<=67108863;D*=R)b++;b--,D=D/R|0;for(var I=A.length-y,T=I%b,C=Math.min(I,I-T)+y,x=0,w=y;w<C;w+=b)x=u(A,w,w+b,R),this.imuln(D),this.words[0]+x<67108864?this.words[0]+=x:this._iaddn(x);if(T!==0){var E=1;for(x=u(A,w,A.length,R),w=0;w<T;w++)E*=R;this.imuln(E),this.words[0]+x<67108864?this.words[0]+=x:this._iaddn(x)}this.strip()},s.prototype.copy=function(A){A.words=new Array(this.length);for(var R=0;R<this.length;R++)A.words[R]=this.words[R];A.length=this.length,A.negative=this.negative,A.red=this.red},s.prototype.clone=function(){var A=new s(null);return this.copy(A),A},s.prototype._expand=function(A){for(;this.length<A;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(A,R){A=A||10,R=R|0||1;var y;if(A===16||A==="hex"){y="";for(var b=0,D=0,I=0;I<this.length;I++){var T=this.words[I],C=((T<<b|D)&16777215).toString(16);D=T>>>24-b&16777215,b+=2,b>=26&&(b-=26,I--),D!==0||I!==this.length-1?y=c[6-C.length]+C+y:y=C+y}for(D!==0&&(y=D.toString(16)+y);y.length%R!==0;)y="0"+y;return this.negative!==0&&(y="-"+y),y}if(A===(A|0)&&A>=2&&A<=36){var x=v[A],w=h[A];y="";var E=this.clone();for(E.negative=0;!E.isZero();){var q=E.modn(w).toString(A);E=E.idivn(w),E.isZero()?y=q+y:y=c[x-q.length]+q+y}for(this.isZero()&&(y="0"+y);y.length%R!==0;)y="0"+y;return this.negative!==0&&(y="-"+y),y}i(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var A=this.words[0];return this.length===2?A+=this.words[1]*67108864:this.length===3&&this.words[2]===1?A+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-A:A},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(A,R){return i(typeof l<"u"),this.toArrayLike(l,A,R)},s.prototype.toArray=function(A,R){return this.toArrayLike(Array,A,R)},s.prototype.toArrayLike=function(A,R,y){var b=this.byteLength(),D=y||Math.max(1,b);i(b<=D,"byte array longer than desired length"),i(D>0,"Requested array length <= 0"),this.strip();var I=R==="le",T=new A(D),C,x,w=this.clone();if(I){for(x=0;!w.isZero();x++)C=w.andln(255),w.iushrn(8),T[x]=C;for(;x<D;x++)T[x]=0}else{for(x=0;x<D-b;x++)T[x]=0;for(x=0;!w.isZero();x++)C=w.andln(255),w.iushrn(8),T[D-x-1]=C}return T},Math.clz32?s.prototype._countBits=function(A){return 32-Math.clz32(A)}:s.prototype._countBits=function(A){var R=A,y=0;return R>=4096&&(y+=13,R>>>=13),R>=64&&(y+=7,R>>>=7),R>=8&&(y+=4,R>>>=4),R>=2&&(y+=2,R>>>=2),y+R},s.prototype._zeroBits=function(A){if(A===0)return 26;var R=A,y=0;return(R&8191)===0&&(y+=13,R>>>=13),(R&127)===0&&(y+=7,R>>>=7),(R&15)===0&&(y+=4,R>>>=4),(R&3)===0&&(y+=2,R>>>=2),(R&1)===0&&y++,y},s.prototype.bitLength=function(){var A=this.words[this.length-1],R=this._countBits(A);return(this.length-1)*26+R};function m($){for(var A=new Array($.bitLength()),R=0;R<A.length;R++){var y=R/26|0,b=R%26;A[R]=($.words[y]&1<<b)>>>b}return A}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var A=0,R=0;R<this.length;R++){var y=this._zeroBits(this.words[R]);if(A+=y,y!==26)break}return A},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(A){return this.negative!==0?this.abs().inotn(A).iaddn(1):this.clone()},s.prototype.fromTwos=function(A){return this.testn(A-1)?this.notn(A).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(A){for(;this.length<A.length;)this.words[this.length++]=0;for(var R=0;R<A.length;R++)this.words[R]=this.words[R]|A.words[R];return this.strip()},s.prototype.ior=function(A){return i((this.negative|A.negative)===0),this.iuor(A)},s.prototype.or=function(A){return this.length>A.length?this.clone().ior(A):A.clone().ior(this)},s.prototype.uor=function(A){return this.length>A.length?this.clone().iuor(A):A.clone().iuor(this)},s.prototype.iuand=function(A){var R;this.length>A.length?R=A:R=this;for(var y=0;y<R.length;y++)this.words[y]=this.words[y]&A.words[y];return this.length=R.length,this.strip()},s.prototype.iand=function(A){return i((this.negative|A.negative)===0),this.iuand(A)},s.prototype.and=function(A){return this.length>A.length?this.clone().iand(A):A.clone().iand(this)},s.prototype.uand=function(A){return this.length>A.length?this.clone().iuand(A):A.clone().iuand(this)},s.prototype.iuxor=function(A){var R,y;this.length>A.length?(R=this,y=A):(R=A,y=this);for(var b=0;b<y.length;b++)this.words[b]=R.words[b]^y.words[b];if(this!==R)for(;b<R.length;b++)this.words[b]=R.words[b];return this.length=R.length,this.strip()},s.prototype.ixor=function(A){return i((this.negative|A.negative)===0),this.iuxor(A)},s.prototype.xor=function(A){return this.length>A.length?this.clone().ixor(A):A.clone().ixor(this)},s.prototype.uxor=function(A){return this.length>A.length?this.clone().iuxor(A):A.clone().iuxor(this)},s.prototype.inotn=function(A){i(typeof A=="number"&&A>=0);var R=Math.ceil(A/26)|0,y=A%26;this._expand(R),y>0&&R--;for(var b=0;b<R;b++)this.words[b]=~this.words[b]&67108863;return y>0&&(this.words[b]=~this.words[b]&67108863>>26-y),this.strip()},s.prototype.notn=function(A){return this.clone().inotn(A)},s.prototype.setn=function(A,R){i(typeof A=="number"&&A>=0);var y=A/26|0,b=A%26;return this._expand(y+1),R?this.words[y]=this.words[y]|1<<b:this.words[y]=this.words[y]&~(1<<b),this.strip()},s.prototype.iadd=function(A){var R;if(this.negative!==0&&A.negative===0)return this.negative=0,R=this.isub(A),this.negative^=1,this._normSign();if(this.negative===0&&A.negative!==0)return A.negative=0,R=this.isub(A),A.negative=1,R._normSign();var y,b;this.length>A.length?(y=this,b=A):(y=A,b=this);for(var D=0,I=0;I<b.length;I++)R=(y.words[I]|0)+(b.words[I]|0)+D,this.words[I]=R&67108863,D=R>>>26;for(;D!==0&&I<y.length;I++)R=(y.words[I]|0)+D,this.words[I]=R&67108863,D=R>>>26;if(this.length=y.length,D!==0)this.words[this.length]=D,this.length++;else if(y!==this)for(;I<y.length;I++)this.words[I]=y.words[I];return this},s.prototype.add=function(A){var R;return A.negative!==0&&this.negative===0?(A.negative=0,R=this.sub(A),A.negative^=1,R):A.negative===0&&this.negative!==0?(this.negative=0,R=A.sub(this),this.negative=1,R):this.length>A.length?this.clone().iadd(A):A.clone().iadd(this)},s.prototype.isub=function(A){if(A.negative!==0){A.negative=0;var R=this.iadd(A);return A.negative=1,R._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(A),this.negative=1,this._normSign();var y=this.cmp(A);if(y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,D;y>0?(b=this,D=A):(b=A,D=this);for(var I=0,T=0;T<D.length;T++)R=(b.words[T]|0)-(D.words[T]|0)+I,I=R>>26,this.words[T]=R&67108863;for(;I!==0&&T<b.length;T++)R=(b.words[T]|0)+I,I=R>>26,this.words[T]=R&67108863;if(I===0&&T<b.length&&b!==this)for(;T<b.length;T++)this.words[T]=b.words[T];return this.length=Math.max(this.length,T),b!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(A){return this.clone().isub(A)};function g($,A,R){R.negative=A.negative^$.negative;var y=$.length+A.length|0;R.length=y,y=y-1|0;var b=$.words[0]|0,D=A.words[0]|0,I=b*D,T=I&67108863,C=I/67108864|0;R.words[0]=T;for(var x=1;x<y;x++){for(var w=C>>>26,E=C&67108863,q=Math.min(x,A.length-1),G=Math.max(0,x-$.length+1);G<=q;G++){var z=x-G|0;b=$.words[z]|0,D=A.words[G]|0,I=b*D+E,w+=I/67108864|0,E=I&67108863}R.words[x]=E|0,C=w|0}return C!==0?R.words[x]=C|0:R.length--,R.strip()}var _=function(A,R,y){var b=A.words,D=R.words,I=y.words,T=0,C,x,w,E=b[0]|0,q=E&8191,G=E>>>13,z=b[1]|0,H=z&8191,V=z>>>13,K=b[2]|0,Z=K&8191,re=K>>>13,W=b[3]|0,X=W&8191,J=W>>>13,ie=b[4]|0,ne=ie&8191,ae=ie>>>13,ue=b[5]|0,fe=ue&8191,se=ue>>>13,pe=b[6]|0,ce=pe&8191,he=pe>>>13,ve=b[7]|0,ye=ve&8191,be=ve>>>13,_e=b[8]|0,me=_e&8191,Pe=_e>>>13,Ne=b[9]|0,Ee=Ne&8191,Be=Ne>>>13,Ce=D[0]|0,Re=Ce&8191,Ge=Ce>>>13,Me=D[1]|0,Te=Me&8191,Ke=Me>>>13,Fe=D[2]|0,Ie=Fe&8191,Qe=Fe>>>13,qe=D[3]|0,Se=qe&8191,je=qe>>>13,Le=D[4]|0,we=Le&8191,He=Le>>>13,$e=D[5]|0,ee=$e&8191,Q=$e>>>13,Y=D[6]|0,te=Y&8191,oe=Y>>>13,le=D[7]|0,de=le&8191,De=le>>>13,Ae=D[8]|0,ge=Ae&8191,ke=Ae>>>13,xe=D[9]|0,Oe=xe&8191,ze=xe>>>13;y.negative=A.negative^R.negative,y.length=19,C=Math.imul(q,Re),x=Math.imul(q,Ge),x=x+Math.imul(G,Re)|0,w=Math.imul(G,Ge);var Ue=(T+C|0)+((x&8191)<<13)|0;T=(w+(x>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,C=Math.imul(H,Re),x=Math.imul(H,Ge),x=x+Math.imul(V,Re)|0,w=Math.imul(V,Ge),C=C+Math.imul(q,Te)|0,x=x+Math.imul(q,Ke)|0,x=x+Math.imul(G,Te)|0,w=w+Math.imul(G,Ke)|0;var Ve=(T+C|0)+((x&8191)<<13)|0;T=(w+(x>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,C=Math.imul(Z,Re),x=Math.imul(Z,Ge),x=x+Math.imul(re,Re)|0,w=Math.imul(re,Ge),C=C+Math.imul(H,Te)|0,x=x+Math.imul(H,Ke)|0,x=x+Math.imul(V,Te)|0,w=w+Math.imul(V,Ke)|0,C=C+Math.imul(q,Ie)|0,x=x+Math.imul(q,Qe)|0,x=x+Math.imul(G,Ie)|0,w=w+Math.imul(G,Qe)|0;var Ye=(T+C|0)+((x&8191)<<13)|0;T=(w+(x>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,C=Math.imul(X,Re),x=Math.imul(X,Ge),x=x+Math.imul(J,Re)|0,w=Math.imul(J,Ge),C=C+Math.imul(Z,Te)|0,x=x+Math.imul(Z,Ke)|0,x=x+Math.imul(re,Te)|0,w=w+Math.imul(re,Ke)|0,C=C+Math.imul(H,Ie)|0,x=x+Math.imul(H,Qe)|0,x=x+Math.imul(V,Ie)|0,w=w+Math.imul(V,Qe)|0,C=C+Math.imul(q,Se)|0,x=x+Math.imul(q,je)|0,x=x+Math.imul(G,Se)|0,w=w+Math.imul(G,je)|0;var We=(T+C|0)+((x&8191)<<13)|0;T=(w+(x>>>13)|0)+(We>>>26)|0,We&=67108863,C=Math.imul(ne,Re),x=Math.imul(ne,Ge),x=x+Math.imul(ae,Re)|0,w=Math.imul(ae,Ge),C=C+Math.imul(X,Te)|0,x=x+Math.imul(X,Ke)|0,x=x+Math.imul(J,Te)|0,w=w+Math.imul(J,Ke)|0,C=C+Math.imul(Z,Ie)|0,x=x+Math.imul(Z,Qe)|0,x=x+Math.imul(re,Ie)|0,w=w+Math.imul(re,Qe)|0,C=C+Math.imul(H,Se)|0,x=x+Math.imul(H,je)|0,x=x+Math.imul(V,Se)|0,w=w+Math.imul(V,je)|0,C=C+Math.imul(q,we)|0,x=x+Math.imul(q,He)|0,x=x+Math.imul(G,we)|0,w=w+Math.imul(G,He)|0;var Xe=(T+C|0)+((x&8191)<<13)|0;T=(w+(x>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,C=Math.imul(fe,Re),x=Math.imul(fe,Ge),x=x+Math.imul(se,Re)|0,w=Math.imul(se,Ge),C=C+Math.imul(ne,Te)|0,x=x+Math.imul(ne,Ke)|0,x=x+Math.imul(ae,Te)|0,w=w+Math.imul(ae,Ke)|0,C=C+Math.imul(X,Ie)|0,x=x+Math.imul(X,Qe)|0,x=x+Math.imul(J,Ie)|0,w=w+Math.imul(J,Qe)|0,C=C+Math.imul(Z,Se)|0,x=x+Math.imul(Z,je)|0,x=x+Math.imul(re,Se)|0,w=w+Math.imul(re,je)|0,C=C+Math.imul(H,we)|0,x=x+Math.imul(H,He)|0,x=x+Math.imul(V,we)|0,w=w+Math.imul(V,He)|0,C=C+Math.imul(q,ee)|0,x=x+Math.imul(q,Q)|0,x=x+Math.imul(G,ee)|0,w=w+Math.imul(G,Q)|0;var Je=(T+C|0)+((x&8191)<<13)|0;T=(w+(x>>>13)|0)+(Je>>>26)|0,Je&=67108863,C=Math.imul(ce,Re),x=Math.imul(ce,Ge),x=x+Math.imul(he,Re)|0,w=Math.imul(he,Ge),C=C+Math.imul(fe,Te)|0,x=x+Math.imul(fe,Ke)|0,x=x+Math.imul(se,Te)|0,w=w+Math.imul(se,Ke)|0,C=C+Math.imul(ne,Ie)|0,x=x+Math.imul(ne,Qe)|0,x=x+Math.imul(ae,Ie)|0,w=w+Math.imul(ae,Qe)|0,C=C+Math.imul(X,Se)|0,x=x+Math.imul(X,je)|0,x=x+Math.imul(J,Se)|0,w=w+Math.imul(J,je)|0,C=C+Math.imul(Z,we)|0,x=x+Math.imul(Z,He)|0,x=x+Math.imul(re,we)|0,w=w+Math.imul(re,He)|0,C=C+Math.imul(H,ee)|0,x=x+Math.imul(H,Q)|0,x=x+Math.imul(V,ee)|0,w=w+Math.imul(V,Q)|0,C=C+Math.imul(q,te)|0,x=x+Math.imul(q,oe)|0,x=x+Math.imul(G,te)|0,w=w+Math.imul(G,oe)|0;var Ze=(T+C|0)+((x&8191)<<13)|0;T=(w+(x>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,C=Math.imul(ye,Re),x=Math.imul(ye,Ge),x=x+Math.imul(be,Re)|0,w=Math.imul(be,Ge),C=C+Math.imul(ce,Te)|0,x=x+Math.imul(ce,Ke)|0,x=x+Math.imul(he,Te)|0,w=w+Math.imul(he,Ke)|0,C=C+Math.imul(fe,Ie)|0,x=x+Math.imul(fe,Qe)|0,x=x+Math.imul(se,Ie)|0,w=w+Math.imul(se,Qe)|0,C=C+Math.imul(ne,Se)|0,x=x+Math.imul(ne,je)|0,x=x+Math.imul(ae,Se)|0,w=w+Math.imul(ae,je)|0,C=C+Math.imul(X,we)|0,x=x+Math.imul(X,He)|0,x=x+Math.imul(J,we)|0,w=w+Math.imul(J,He)|0,C=C+Math.imul(Z,ee)|0,x=x+Math.imul(Z,Q)|0,x=x+Math.imul(re,ee)|0,w=w+Math.imul(re,Q)|0,C=C+Math.imul(H,te)|0,x=x+Math.imul(H,oe)|0,x=x+Math.imul(V,te)|0,w=w+Math.imul(V,oe)|0,C=C+Math.imul(q,de)|0,x=x+Math.imul(q,De)|0,x=x+Math.imul(G,de)|0,w=w+Math.imul(G,De)|0;var er=(T+C|0)+((x&8191)<<13)|0;T=(w+(x>>>13)|0)+(er>>>26)|0,er&=67108863,C=Math.imul(me,Re),x=Math.imul(me,Ge),x=x+Math.imul(Pe,Re)|0,w=Math.imul(Pe,Ge),C=C+Math.imul(ye,Te)|0,x=x+Math.imul(ye,Ke)|0,x=x+Math.imul(be,Te)|0,w=w+Math.imul(be,Ke)|0,C=C+Math.imul(ce,Ie)|0,x=x+Math.imul(ce,Qe)|0,x=x+Math.imul(he,Ie)|0,w=w+Math.imul(he,Qe)|0,C=C+Math.imul(fe,Se)|0,x=x+Math.imul(fe,je)|0,x=x+Math.imul(se,Se)|0,w=w+Math.imul(se,je)|0,C=C+Math.imul(ne,we)|0,x=x+Math.imul(ne,He)|0,x=x+Math.imul(ae,we)|0,w=w+Math.imul(ae,He)|0,C=C+Math.imul(X,ee)|0,x=x+Math.imul(X,Q)|0,x=x+Math.imul(J,ee)|0,w=w+Math.imul(J,Q)|0,C=C+Math.imul(Z,te)|0,x=x+Math.imul(Z,oe)|0,x=x+Math.imul(re,te)|0,w=w+Math.imul(re,oe)|0,C=C+Math.imul(H,de)|0,x=x+Math.imul(H,De)|0,x=x+Math.imul(V,de)|0,w=w+Math.imul(V,De)|0,C=C+Math.imul(q,ge)|0,x=x+Math.imul(q,ke)|0,x=x+Math.imul(G,ge)|0,w=w+Math.imul(G,ke)|0;var rr=(T+C|0)+((x&8191)<<13)|0;T=(w+(x>>>13)|0)+(rr>>>26)|0,rr&=67108863,C=Math.imul(Ee,Re),x=Math.imul(Ee,Ge),x=x+Math.imul(Be,Re)|0,w=Math.imul(Be,Ge),C=C+Math.imul(me,Te)|0,x=x+Math.imul(me,Ke)|0,x=x+Math.imul(Pe,Te)|0,w=w+Math.imul(Pe,Ke)|0,C=C+Math.imul(ye,Ie)|0,x=x+Math.imul(ye,Qe)|0,x=x+Math.imul(be,Ie)|0,w=w+Math.imul(be,Qe)|0,C=C+Math.imul(ce,Se)|0,x=x+Math.imul(ce,je)|0,x=x+Math.imul(he,Se)|0,w=w+Math.imul(he,je)|0,C=C+Math.imul(fe,we)|0,x=x+Math.imul(fe,He)|0,x=x+Math.imul(se,we)|0,w=w+Math.imul(se,He)|0,C=C+Math.imul(ne,ee)|0,x=x+Math.imul(ne,Q)|0,x=x+Math.imul(ae,ee)|0,w=w+Math.imul(ae,Q)|0,C=C+Math.imul(X,te)|0,x=x+Math.imul(X,oe)|0,x=x+Math.imul(J,te)|0,w=w+Math.imul(J,oe)|0,C=C+Math.imul(Z,de)|0,x=x+Math.imul(Z,De)|0,x=x+Math.imul(re,de)|0,w=w+Math.imul(re,De)|0,C=C+Math.imul(H,ge)|0,x=x+Math.imul(H,ke)|0,x=x+Math.imul(V,ge)|0,w=w+Math.imul(V,ke)|0,C=C+Math.imul(q,Oe)|0,x=x+Math.imul(q,ze)|0,x=x+Math.imul(G,Oe)|0,w=w+Math.imul(G,ze)|0;var tr=(T+C|0)+((x&8191)<<13)|0;T=(w+(x>>>13)|0)+(tr>>>26)|0,tr&=67108863,C=Math.imul(Ee,Te),x=Math.imul(Ee,Ke),x=x+Math.imul(Be,Te)|0,w=Math.imul(Be,Ke),C=C+Math.imul(me,Ie)|0,x=x+Math.imul(me,Qe)|0,x=x+Math.imul(Pe,Ie)|0,w=w+Math.imul(Pe,Qe)|0,C=C+Math.imul(ye,Se)|0,x=x+Math.imul(ye,je)|0,x=x+Math.imul(be,Se)|0,w=w+Math.imul(be,je)|0,C=C+Math.imul(ce,we)|0,x=x+Math.imul(ce,He)|0,x=x+Math.imul(he,we)|0,w=w+Math.imul(he,He)|0,C=C+Math.imul(fe,ee)|0,x=x+Math.imul(fe,Q)|0,x=x+Math.imul(se,ee)|0,w=w+Math.imul(se,Q)|0,C=C+Math.imul(ne,te)|0,x=x+Math.imul(ne,oe)|0,x=x+Math.imul(ae,te)|0,w=w+Math.imul(ae,oe)|0,C=C+Math.imul(X,de)|0,x=x+Math.imul(X,De)|0,x=x+Math.imul(J,de)|0,w=w+Math.imul(J,De)|0,C=C+Math.imul(Z,ge)|0,x=x+Math.imul(Z,ke)|0,x=x+Math.imul(re,ge)|0,w=w+Math.imul(re,ke)|0,C=C+Math.imul(H,Oe)|0,x=x+Math.imul(H,ze)|0,x=x+Math.imul(V,Oe)|0,w=w+Math.imul(V,ze)|0;var nr=(T+C|0)+((x&8191)<<13)|0;T=(w+(x>>>13)|0)+(nr>>>26)|0,nr&=67108863,C=Math.imul(Ee,Ie),x=Math.imul(Ee,Qe),x=x+Math.imul(Be,Ie)|0,w=Math.imul(Be,Qe),C=C+Math.imul(me,Se)|0,x=x+Math.imul(me,je)|0,x=x+Math.imul(Pe,Se)|0,w=w+Math.imul(Pe,je)|0,C=C+Math.imul(ye,we)|0,x=x+Math.imul(ye,He)|0,x=x+Math.imul(be,we)|0,w=w+Math.imul(be,He)|0,C=C+Math.imul(ce,ee)|0,x=x+Math.imul(ce,Q)|0,x=x+Math.imul(he,ee)|0,w=w+Math.imul(he,Q)|0,C=C+Math.imul(fe,te)|0,x=x+Math.imul(fe,oe)|0,x=x+Math.imul(se,te)|0,w=w+Math.imul(se,oe)|0,C=C+Math.imul(ne,de)|0,x=x+Math.imul(ne,De)|0,x=x+Math.imul(ae,de)|0,w=w+Math.imul(ae,De)|0,C=C+Math.imul(X,ge)|0,x=x+Math.imul(X,ke)|0,x=x+Math.imul(J,ge)|0,w=w+Math.imul(J,ke)|0,C=C+Math.imul(Z,Oe)|0,x=x+Math.imul(Z,ze)|0,x=x+Math.imul(re,Oe)|0,w=w+Math.imul(re,ze)|0;var ir=(T+C|0)+((x&8191)<<13)|0;T=(w+(x>>>13)|0)+(ir>>>26)|0,ir&=67108863,C=Math.imul(Ee,Se),x=Math.imul(Ee,je),x=x+Math.imul(Be,Se)|0,w=Math.imul(Be,je),C=C+Math.imul(me,we)|0,x=x+Math.imul(me,He)|0,x=x+Math.imul(Pe,we)|0,w=w+Math.imul(Pe,He)|0,C=C+Math.imul(ye,ee)|0,x=x+Math.imul(ye,Q)|0,x=x+Math.imul(be,ee)|0,w=w+Math.imul(be,Q)|0,C=C+Math.imul(ce,te)|0,x=x+Math.imul(ce,oe)|0,x=x+Math.imul(he,te)|0,w=w+Math.imul(he,oe)|0,C=C+Math.imul(fe,de)|0,x=x+Math.imul(fe,De)|0,x=x+Math.imul(se,de)|0,w=w+Math.imul(se,De)|0,C=C+Math.imul(ne,ge)|0,x=x+Math.imul(ne,ke)|0,x=x+Math.imul(ae,ge)|0,w=w+Math.imul(ae,ke)|0,C=C+Math.imul(X,Oe)|0,x=x+Math.imul(X,ze)|0,x=x+Math.imul(J,Oe)|0,w=w+Math.imul(J,ze)|0;var ar=(T+C|0)+((x&8191)<<13)|0;T=(w+(x>>>13)|0)+(ar>>>26)|0,ar&=67108863,C=Math.imul(Ee,we),x=Math.imul(Ee,He),x=x+Math.imul(Be,we)|0,w=Math.imul(Be,He),C=C+Math.imul(me,ee)|0,x=x+Math.imul(me,Q)|0,x=x+Math.imul(Pe,ee)|0,w=w+Math.imul(Pe,Q)|0,C=C+Math.imul(ye,te)|0,x=x+Math.imul(ye,oe)|0,x=x+Math.imul(be,te)|0,w=w+Math.imul(be,oe)|0,C=C+Math.imul(ce,de)|0,x=x+Math.imul(ce,De)|0,x=x+Math.imul(he,de)|0,w=w+Math.imul(he,De)|0,C=C+Math.imul(fe,ge)|0,x=x+Math.imul(fe,ke)|0,x=x+Math.imul(se,ge)|0,w=w+Math.imul(se,ke)|0,C=C+Math.imul(ne,Oe)|0,x=x+Math.imul(ne,ze)|0,x=x+Math.imul(ae,Oe)|0,w=w+Math.imul(ae,ze)|0;var sr=(T+C|0)+((x&8191)<<13)|0;T=(w+(x>>>13)|0)+(sr>>>26)|0,sr&=67108863,C=Math.imul(Ee,ee),x=Math.imul(Ee,Q),x=x+Math.imul(Be,ee)|0,w=Math.imul(Be,Q),C=C+Math.imul(me,te)|0,x=x+Math.imul(me,oe)|0,x=x+Math.imul(Pe,te)|0,w=w+Math.imul(Pe,oe)|0,C=C+Math.imul(ye,de)|0,x=x+Math.imul(ye,De)|0,x=x+Math.imul(be,de)|0,w=w+Math.imul(be,De)|0,C=C+Math.imul(ce,ge)|0,x=x+Math.imul(ce,ke)|0,x=x+Math.imul(he,ge)|0,w=w+Math.imul(he,ke)|0,C=C+Math.imul(fe,Oe)|0,x=x+Math.imul(fe,ze)|0,x=x+Math.imul(se,Oe)|0,w=w+Math.imul(se,ze)|0;var or=(T+C|0)+((x&8191)<<13)|0;T=(w+(x>>>13)|0)+(or>>>26)|0,or&=67108863,C=Math.imul(Ee,te),x=Math.imul(Ee,oe),x=x+Math.imul(Be,te)|0,w=Math.imul(Be,oe),C=C+Math.imul(me,de)|0,x=x+Math.imul(me,De)|0,x=x+Math.imul(Pe,de)|0,w=w+Math.imul(Pe,De)|0,C=C+Math.imul(ye,ge)|0,x=x+Math.imul(ye,ke)|0,x=x+Math.imul(be,ge)|0,w=w+Math.imul(be,ke)|0,C=C+Math.imul(ce,Oe)|0,x=x+Math.imul(ce,ze)|0,x=x+Math.imul(he,Oe)|0,w=w+Math.imul(he,ze)|0;var ur=(T+C|0)+((x&8191)<<13)|0;T=(w+(x>>>13)|0)+(ur>>>26)|0,ur&=67108863,C=Math.imul(Ee,de),x=Math.imul(Ee,De),x=x+Math.imul(Be,de)|0,w=Math.imul(Be,De),C=C+Math.imul(me,ge)|0,x=x+Math.imul(me,ke)|0,x=x+Math.imul(Pe,ge)|0,w=w+Math.imul(Pe,ke)|0,C=C+Math.imul(ye,Oe)|0,x=x+Math.imul(ye,ze)|0,x=x+Math.imul(be,Oe)|0,w=w+Math.imul(be,ze)|0;var lr=(T+C|0)+((x&8191)<<13)|0;T=(w+(x>>>13)|0)+(lr>>>26)|0,lr&=67108863,C=Math.imul(Ee,ge),x=Math.imul(Ee,ke),x=x+Math.imul(Be,ge)|0,w=Math.imul(Be,ke),C=C+Math.imul(me,Oe)|0,x=x+Math.imul(me,ze)|0,x=x+Math.imul(Pe,Oe)|0,w=w+Math.imul(Pe,ze)|0;var cr=(T+C|0)+((x&8191)<<13)|0;T=(w+(x>>>13)|0)+(cr>>>26)|0,cr&=67108863,C=Math.imul(Ee,Oe),x=Math.imul(Ee,ze),x=x+Math.imul(Be,Oe)|0,w=Math.imul(Be,ze);var fr=(T+C|0)+((x&8191)<<13)|0;return T=(w+(x>>>13)|0)+(fr>>>26)|0,fr&=67108863,I[0]=Ue,I[1]=Ve,I[2]=Ye,I[3]=We,I[4]=Xe,I[5]=Je,I[6]=Ze,I[7]=er,I[8]=rr,I[9]=tr,I[10]=nr,I[11]=ir,I[12]=ar,I[13]=sr,I[14]=or,I[15]=ur,I[16]=lr,I[17]=cr,I[18]=fr,T!==0&&(I[19]=T,y.length++),y};Math.imul||(_=g);function S($,A,R){R.negative=A.negative^$.negative,R.length=$.length+A.length;for(var y=0,b=0,D=0;D<R.length-1;D++){var I=b;b=0;for(var T=y&67108863,C=Math.min(D,A.length-1),x=Math.max(0,D-$.length+1);x<=C;x++){var w=D-x,E=$.words[w]|0,q=A.words[x]|0,G=E*q,z=G&67108863;I=I+(G/67108864|0)|0,z=z+T|0,T=z&67108863,I=I+(z>>>26)|0,b+=I>>>26,I&=67108863}R.words[D]=T,y=I,I=b}return y!==0?R.words[D]=y:R.length--,R.strip()}function N($,A,R){var y=new O;return y.mulp($,A,R)}s.prototype.mulTo=function(A,R){var y,b=this.length+A.length;return this.length===10&&A.length===10?y=_(this,A,R):b<63?y=g(this,A,R):b<1024?y=S(this,A,R):y=N(this,A,R),y};function O($,A){this.x=$,this.y=A}O.prototype.makeRBT=function(A){for(var R=new Array(A),y=s.prototype._countBits(A)-1,b=0;b<A;b++)R[b]=this.revBin(b,y,A);return R},O.prototype.revBin=function(A,R,y){if(A===0||A===y-1)return A;for(var b=0,D=0;D<R;D++)b|=(A&1)<<R-D-1,A>>=1;return b},O.prototype.permute=function(A,R,y,b,D,I){for(var T=0;T<I;T++)b[T]=R[A[T]],D[T]=y[A[T]]},O.prototype.transform=function(A,R,y,b,D,I){this.permute(I,A,R,y,b,D);for(var T=1;T<D;T<<=1)for(var C=T<<1,x=Math.cos(2*Math.PI/C),w=Math.sin(2*Math.PI/C),E=0;E<D;E+=C)for(var q=x,G=w,z=0;z<T;z++){var H=y[E+z],V=b[E+z],K=y[E+z+T],Z=b[E+z+T],re=q*K-G*Z;Z=q*Z+G*K,K=re,y[E+z]=H+K,b[E+z]=V+Z,y[E+z+T]=H-K,b[E+z+T]=V-Z,z!==C&&(re=x*q-w*G,G=x*G+w*q,q=re)}},O.prototype.guessLen13b=function(A,R){var y=Math.max(R,A)|1,b=y&1,D=0;for(y=y/2|0;y;y=y>>>1)D++;return 1<<D+1+b},O.prototype.conjugate=function(A,R,y){if(!(y<=1))for(var b=0;b<y/2;b++){var D=A[b];A[b]=A[y-b-1],A[y-b-1]=D,D=R[b],R[b]=-R[y-b-1],R[y-b-1]=-D}},O.prototype.normalize13b=function(A,R){for(var y=0,b=0;b<R/2;b++){var D=Math.round(A[2*b+1]/R)*8192+Math.round(A[2*b]/R)+y;A[b]=D&67108863,D<67108864?y=0:y=D/67108864|0}return A},O.prototype.convert13b=function(A,R,y,b){for(var D=0,I=0;I<R;I++)D=D+(A[I]|0),y[2*I]=D&8191,D=D>>>13,y[2*I+1]=D&8191,D=D>>>13;for(I=2*R;I<b;++I)y[I]=0;i(D===0),i((D&-8192)===0)},O.prototype.stub=function(A){for(var R=new Array(A),y=0;y<A;y++)R[y]=0;return R},O.prototype.mulp=function(A,R,y){var b=2*this.guessLen13b(A.length,R.length),D=this.makeRBT(b),I=this.stub(b),T=new Array(b),C=new Array(b),x=new Array(b),w=new Array(b),E=new Array(b),q=new Array(b),G=y.words;G.length=b,this.convert13b(A.words,A.length,T,b),this.convert13b(R.words,R.length,w,b),this.transform(T,I,C,x,b,D),this.transform(w,I,E,q,b,D);for(var z=0;z<b;z++){var H=C[z]*E[z]-x[z]*q[z];x[z]=C[z]*q[z]+x[z]*E[z],C[z]=H}return this.conjugate(C,x,b),this.transform(C,x,G,I,b,D),this.conjugate(G,I,b),this.normalize13b(G,b),y.negative=A.negative^R.negative,y.length=A.length+R.length,y.strip()},s.prototype.mul=function(A){var R=new s(null);return R.words=new Array(this.length+A.length),this.mulTo(A,R)},s.prototype.mulf=function(A){var R=new s(null);return R.words=new Array(this.length+A.length),N(this,A,R)},s.prototype.imul=function(A){return this.clone().mulTo(A,this)},s.prototype.imuln=function(A){i(typeof A=="number"),i(A<67108864);for(var R=0,y=0;y<this.length;y++){var b=(this.words[y]|0)*A,D=(b&67108863)+(R&67108863);R>>=26,R+=b/67108864|0,R+=D>>>26,this.words[y]=D&67108863}return R!==0&&(this.words[y]=R,this.length++),this.length=A===0?1:this.length,this},s.prototype.muln=function(A){return this.clone().imuln(A)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(A){var R=m(A);if(R.length===0)return new s(1);for(var y=this,b=0;b<R.length&&R[b]===0;b++,y=y.sqr());if(++b<R.length)for(var D=y.sqr();b<R.length;b++,D=D.sqr())R[b]!==0&&(y=y.mul(D));return y},s.prototype.iushln=function(A){i(typeof A=="number"&&A>=0);var R=A%26,y=(A-R)/26,b=67108863>>>26-R<<26-R,D;if(R!==0){var I=0;for(D=0;D<this.length;D++){var T=this.words[D]&b,C=(this.words[D]|0)-T<<R;this.words[D]=C|I,I=T>>>26-R}I&&(this.words[D]=I,this.length++)}if(y!==0){for(D=this.length-1;D>=0;D--)this.words[D+y]=this.words[D];for(D=0;D<y;D++)this.words[D]=0;this.length+=y}return this.strip()},s.prototype.ishln=function(A){return i(this.negative===0),this.iushln(A)},s.prototype.iushrn=function(A,R,y){i(typeof A=="number"&&A>=0);var b;R?b=(R-R%26)/26:b=0;var D=A%26,I=Math.min((A-D)/26,this.length),T=67108863^67108863>>>D<<D,C=y;if(b-=I,b=Math.max(0,b),C){for(var x=0;x<I;x++)C.words[x]=this.words[x];C.length=I}if(I!==0)if(this.length>I)for(this.length-=I,x=0;x<this.length;x++)this.words[x]=this.words[x+I];else this.words[0]=0,this.length=1;var w=0;for(x=this.length-1;x>=0&&(w!==0||x>=b);x--){var E=this.words[x]|0;this.words[x]=w<<26-D|E>>>D,w=E&T}return C&&w!==0&&(C.words[C.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(A,R,y){return i(this.negative===0),this.iushrn(A,R,y)},s.prototype.shln=function(A){return this.clone().ishln(A)},s.prototype.ushln=function(A){return this.clone().iushln(A)},s.prototype.shrn=function(A){return this.clone().ishrn(A)},s.prototype.ushrn=function(A){return this.clone().iushrn(A)},s.prototype.testn=function(A){i(typeof A=="number"&&A>=0);var R=A%26,y=(A-R)/26,b=1<<R;if(this.length<=y)return!1;var D=this.words[y];return!!(D&b)},s.prototype.imaskn=function(A){i(typeof A=="number"&&A>=0);var R=A%26,y=(A-R)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=y)return this;if(R!==0&&y++,this.length=Math.min(y,this.length),R!==0){var b=67108863^67108863>>>R<<R;this.words[this.length-1]&=b}return this.strip()},s.prototype.maskn=function(A){return this.clone().imaskn(A)},s.prototype.iaddn=function(A){return i(typeof A=="number"),i(A<67108864),A<0?this.isubn(-A):this.negative!==0?this.length===1&&(this.words[0]|0)<A?(this.words[0]=A-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(A),this.negative=1,this):this._iaddn(A)},s.prototype._iaddn=function(A){this.words[0]+=A;for(var R=0;R<this.length&&this.words[R]>=67108864;R++)this.words[R]-=67108864,R===this.length-1?this.words[R+1]=1:this.words[R+1]++;return this.length=Math.max(this.length,R+1),this},s.prototype.isubn=function(A){if(i(typeof A=="number"),i(A<67108864),A<0)return this.iaddn(-A);if(this.negative!==0)return this.negative=0,this.iaddn(A),this.negative=1,this;if(this.words[0]-=A,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var R=0;R<this.length&&this.words[R]<0;R++)this.words[R]+=67108864,this.words[R+1]-=1;return this.strip()},s.prototype.addn=function(A){return this.clone().iaddn(A)},s.prototype.subn=function(A){return this.clone().isubn(A)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(A,R,y){var b=A.length+y,D;this._expand(b);var I,T=0;for(D=0;D<A.length;D++){I=(this.words[D+y]|0)+T;var C=(A.words[D]|0)*R;I-=C&67108863,T=(I>>26)-(C/67108864|0),this.words[D+y]=I&67108863}for(;D<this.length-y;D++)I=(this.words[D+y]|0)+T,T=I>>26,this.words[D+y]=I&67108863;if(T===0)return this.strip();for(i(T===-1),T=0,D=0;D<this.length;D++)I=-(this.words[D]|0)+T,T=I>>26,this.words[D]=I&67108863;return this.negative=1,this.strip()},s.prototype._wordDiv=function(A,R){var y=this.length-A.length,b=this.clone(),D=A,I=D.words[D.length-1]|0,T=this._countBits(I);y=26-T,y!==0&&(D=D.ushln(y),b.iushln(y),I=D.words[D.length-1]|0);var C=b.length-D.length,x;if(R!=="mod"){x=new s(null),x.length=C+1,x.words=new Array(x.length);for(var w=0;w<x.length;w++)x.words[w]=0}var E=b.clone()._ishlnsubmul(D,1,C);E.negative===0&&(b=E,x&&(x.words[C]=1));for(var q=C-1;q>=0;q--){var G=(b.words[D.length+q]|0)*67108864+(b.words[D.length+q-1]|0);for(G=Math.min(G/I|0,67108863),b._ishlnsubmul(D,G,q);b.negative!==0;)G--,b.negative=0,b._ishlnsubmul(D,1,q),b.isZero()||(b.negative^=1);x&&(x.words[q]=G)}return x&&x.strip(),b.strip(),R!=="div"&&y!==0&&b.iushrn(y),{div:x||null,mod:b}},s.prototype.divmod=function(A,R,y){if(i(!A.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var b,D,I;return this.negative!==0&&A.negative===0?(I=this.neg().divmod(A,R),R!=="mod"&&(b=I.div.neg()),R!=="div"&&(D=I.mod.neg(),y&&D.negative!==0&&D.iadd(A)),{div:b,mod:D}):this.negative===0&&A.negative!==0?(I=this.divmod(A.neg(),R),R!=="mod"&&(b=I.div.neg()),{div:b,mod:I.mod}):(this.negative&A.negative)!==0?(I=this.neg().divmod(A.neg(),R),R!=="div"&&(D=I.mod.neg(),y&&D.negative!==0&&D.isub(A)),{div:I.div,mod:D}):A.length>this.length||this.cmp(A)<0?{div:new s(0),mod:this}:A.length===1?R==="div"?{div:this.divn(A.words[0]),mod:null}:R==="mod"?{div:null,mod:new s(this.modn(A.words[0]))}:{div:this.divn(A.words[0]),mod:new s(this.modn(A.words[0]))}:this._wordDiv(A,R)},s.prototype.div=function(A){return this.divmod(A,"div",!1).div},s.prototype.mod=function(A){return this.divmod(A,"mod",!1).mod},s.prototype.umod=function(A){return this.divmod(A,"mod",!0).mod},s.prototype.divRound=function(A){var R=this.divmod(A);if(R.mod.isZero())return R.div;var y=R.div.negative!==0?R.mod.isub(A):R.mod,b=A.ushrn(1),D=A.andln(1),I=y.cmp(b);return I<0||D===1&&I===0?R.div:R.div.negative!==0?R.div.isubn(1):R.div.iaddn(1)},s.prototype.modn=function(A){i(A<=67108863);for(var R=(1<<26)%A,y=0,b=this.length-1;b>=0;b--)y=(R*y+(this.words[b]|0))%A;return y},s.prototype.idivn=function(A){i(A<=67108863);for(var R=0,y=this.length-1;y>=0;y--){var b=(this.words[y]|0)+R*67108864;this.words[y]=b/A|0,R=b%A}return this.strip()},s.prototype.divn=function(A){return this.clone().idivn(A)},s.prototype.egcd=function(A){i(A.negative===0),i(!A.isZero());var R=this,y=A.clone();R.negative!==0?R=R.umod(A):R=R.clone();for(var b=new s(1),D=new s(0),I=new s(0),T=new s(1),C=0;R.isEven()&&y.isEven();)R.iushrn(1),y.iushrn(1),++C;for(var x=y.clone(),w=R.clone();!R.isZero();){for(var E=0,q=1;(R.words[0]&q)===0&&E<26;++E,q<<=1);if(E>0)for(R.iushrn(E);E-- >0;)(b.isOdd()||D.isOdd())&&(b.iadd(x),D.isub(w)),b.iushrn(1),D.iushrn(1);for(var G=0,z=1;(y.words[0]&z)===0&&G<26;++G,z<<=1);if(G>0)for(y.iushrn(G);G-- >0;)(I.isOdd()||T.isOdd())&&(I.iadd(x),T.isub(w)),I.iushrn(1),T.iushrn(1);R.cmp(y)>=0?(R.isub(y),b.isub(I),D.isub(T)):(y.isub(R),I.isub(b),T.isub(D))}return{a:I,b:T,gcd:y.iushln(C)}},s.prototype._invmp=function(A){i(A.negative===0),i(!A.isZero());var R=this,y=A.clone();R.negative!==0?R=R.umod(A):R=R.clone();for(var b=new s(1),D=new s(0),I=y.clone();R.cmpn(1)>0&&y.cmpn(1)>0;){for(var T=0,C=1;(R.words[0]&C)===0&&T<26;++T,C<<=1);if(T>0)for(R.iushrn(T);T-- >0;)b.isOdd()&&b.iadd(I),b.iushrn(1);for(var x=0,w=1;(y.words[0]&w)===0&&x<26;++x,w<<=1);if(x>0)for(y.iushrn(x);x-- >0;)D.isOdd()&&D.iadd(I),D.iushrn(1);R.cmp(y)>=0?(R.isub(y),b.isub(D)):(y.isub(R),D.isub(b))}var E;return R.cmpn(1)===0?E=b:E=D,E.cmpn(0)<0&&E.iadd(A),E},s.prototype.gcd=function(A){if(this.isZero())return A.abs();if(A.isZero())return this.abs();var R=this.clone(),y=A.clone();R.negative=0,y.negative=0;for(var b=0;R.isEven()&&y.isEven();b++)R.iushrn(1),y.iushrn(1);do{for(;R.isEven();)R.iushrn(1);for(;y.isEven();)y.iushrn(1);var D=R.cmp(y);if(D<0){var I=R;R=y,y=I}else if(D===0||y.cmpn(1)===0)break;R.isub(y)}while(!0);return y.iushln(b)},s.prototype.invm=function(A){return this.egcd(A).a.umod(A)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(A){return this.words[0]&A},s.prototype.bincn=function(A){i(typeof A=="number");var R=A%26,y=(A-R)/26,b=1<<R;if(this.length<=y)return this._expand(y+1),this.words[y]|=b,this;for(var D=b,I=y;D!==0&&I<this.length;I++){var T=this.words[I]|0;T+=D,D=T>>>26,T&=67108863,this.words[I]=T}return D!==0&&(this.words[I]=D,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(A){var R=A<0;if(this.negative!==0&&!R)return-1;if(this.negative===0&&R)return 1;this.strip();var y;if(this.length>1)y=1;else{R&&(A=-A),i(A<=67108863,"Number is too big");var b=this.words[0]|0;y=b===A?0:b<A?-1:1}return this.negative!==0?-y|0:y},s.prototype.cmp=function(A){if(this.negative!==0&&A.negative===0)return-1;if(this.negative===0&&A.negative!==0)return 1;var R=this.ucmp(A);return this.negative!==0?-R|0:R},s.prototype.ucmp=function(A){if(this.length>A.length)return 1;if(this.length<A.length)return-1;for(var R=0,y=this.length-1;y>=0;y--){var b=this.words[y]|0,D=A.words[y]|0;if(b!==D){b<D?R=-1:b>D&&(R=1);break}}return R},s.prototype.gtn=function(A){return this.cmpn(A)===1},s.prototype.gt=function(A){return this.cmp(A)===1},s.prototype.gten=function(A){return this.cmpn(A)>=0},s.prototype.gte=function(A){return this.cmp(A)>=0},s.prototype.ltn=function(A){return this.cmpn(A)===-1},s.prototype.lt=function(A){return this.cmp(A)===-1},s.prototype.lten=function(A){return this.cmpn(A)<=0},s.prototype.lte=function(A){return this.cmp(A)<=0},s.prototype.eqn=function(A){return this.cmpn(A)===0},s.prototype.eq=function(A){return this.cmp(A)===0},s.red=function(A){return new B(A)},s.prototype.toRed=function(A){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),A.convertTo(this)._forceRed(A)},s.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(A){return this.red=A,this},s.prototype.forceRed=function(A){return i(!this.red,"Already a number in reduction context"),this._forceRed(A)},s.prototype.redAdd=function(A){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,A)},s.prototype.redIAdd=function(A){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,A)},s.prototype.redSub=function(A){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,A)},s.prototype.redISub=function(A){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,A)},s.prototype.redShl=function(A){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,A)},s.prototype.redMul=function(A){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,A),this.red.mul(this,A)},s.prototype.redIMul=function(A){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,A),this.red.imul(this,A)},s.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(A){return i(this.red&&!A.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,A)};var M={k256:null,p224:null,p192:null,p25519:null};function F($,A){this.name=$,this.p=new s(A,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var A=new s(null);return A.words=new Array(Math.ceil(this.n/13)),A},F.prototype.ireduce=function(A){var R=A,y;do this.split(R,this.tmp),R=this.imulK(R),R=R.iadd(this.tmp),y=R.bitLength();while(y>this.n);var b=y<this.n?-1:R.ucmp(this.p);return b===0?(R.words[0]=0,R.length=1):b>0?R.isub(this.p):R.strip!==void 0?R.strip():R._strip(),R},F.prototype.split=function(A,R){A.iushrn(this.n,0,R)},F.prototype.imulK=function(A){return A.imul(this.k)};function L(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}o(L,F),L.prototype.split=function(A,R){for(var y=4194303,b=Math.min(A.length,9),D=0;D<b;D++)R.words[D]=A.words[D];if(R.length=b,A.length<=9){A.words[0]=0,A.length=1;return}var I=A.words[9];for(R.words[R.length++]=I&y,D=10;D<A.length;D++){var T=A.words[D]|0;A.words[D-10]=(T&y)<<4|I>>>22,I=T}I>>>=22,A.words[D-10]=I,I===0&&A.length>10?A.length-=10:A.length-=9},L.prototype.imulK=function(A){A.words[A.length]=0,A.words[A.length+1]=0,A.length+=2;for(var R=0,y=0;y<A.length;y++){var b=A.words[y]|0;R+=b*977,A.words[y]=R&67108863,R=b*64+(R/67108864|0)}return A.words[A.length-1]===0&&(A.length--,A.words[A.length-1]===0&&A.length--),A};function k(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}o(k,F);function P(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}o(P,F);function U(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}o(U,F),U.prototype.imulK=function(A){for(var R=0,y=0;y<A.length;y++){var b=(A.words[y]|0)*19+R,D=b&67108863;b>>>=26,A.words[y]=D,R=b}return R!==0&&(A.words[A.length++]=R),A},s._prime=function(A){if(M[A])return M[A];var R;if(A==="k256")R=new L;else if(A==="p224")R=new k;else if(A==="p192")R=new P;else if(A==="p25519")R=new U;else throw new Error("Unknown prime "+A);return M[A]=R,R};function B($){if(typeof $=="string"){var A=s._prime($);this.m=A.p,this.prime=A}else i($.gtn(1),"modulus must be greater than 1"),this.m=$,this.prime=null}B.prototype._verify1=function(A){i(A.negative===0,"red works only with positives"),i(A.red,"red works only with red numbers")},B.prototype._verify2=function(A,R){i((A.negative|R.negative)===0,"red works only with positives"),i(A.red&&A.red===R.red,"red works only with red numbers")},B.prototype.imod=function(A){return this.prime?this.prime.ireduce(A)._forceRed(this):A.umod(this.m)._forceRed(this)},B.prototype.neg=function(A){return A.isZero()?A.clone():this.m.sub(A)._forceRed(this)},B.prototype.add=function(A,R){this._verify2(A,R);var y=A.add(R);return y.cmp(this.m)>=0&&y.isub(this.m),y._forceRed(this)},B.prototype.iadd=function(A,R){this._verify2(A,R);var y=A.iadd(R);return y.cmp(this.m)>=0&&y.isub(this.m),y},B.prototype.sub=function(A,R){this._verify2(A,R);var y=A.sub(R);return y.cmpn(0)<0&&y.iadd(this.m),y._forceRed(this)},B.prototype.isub=function(A,R){this._verify2(A,R);var y=A.isub(R);return y.cmpn(0)<0&&y.iadd(this.m),y},B.prototype.shl=function(A,R){return this._verify1(A),this.imod(A.ushln(R))},B.prototype.imul=function(A,R){return this._verify2(A,R),this.imod(A.imul(R))},B.prototype.mul=function(A,R){return this._verify2(A,R),this.imod(A.mul(R))},B.prototype.isqr=function(A){return this.imul(A,A.clone())},B.prototype.sqr=function(A){return this.mul(A,A)},B.prototype.sqrt=function(A){if(A.isZero())return A.clone();var R=this.m.andln(3);if(i(R%2===1),R===3){var y=this.m.add(new s(1)).iushrn(2);return this.pow(A,y)}for(var b=this.m.subn(1),D=0;!b.isZero()&&b.andln(1)===0;)D++,b.iushrn(1);i(!b.isZero());var I=new s(1).toRed(this),T=I.redNeg(),C=this.m.subn(1).iushrn(1),x=this.m.bitLength();for(x=new s(2*x*x).toRed(this);this.pow(x,C).cmp(T)!==0;)x.redIAdd(T);for(var w=this.pow(x,b),E=this.pow(A,b.addn(1).iushrn(1)),q=this.pow(A,b),G=D;q.cmp(I)!==0;){for(var z=q,H=0;z.cmp(I)!==0;H++)z=z.redSqr();i(H<G);var V=this.pow(w,new s(1).iushln(G-H-1));E=E.redMul(V),w=V.redSqr(),q=q.redMul(w),G=H}return E},B.prototype.invm=function(A){var R=A._invmp(this.m);return R.negative!==0?(R.negative=0,this.imod(R).redNeg()):this.imod(R)},B.prototype.pow=function(A,R){if(R.isZero())return new s(1).toRed(this);if(R.cmpn(1)===0)return A.clone();var y=4,b=new Array(1<<y);b[0]=new s(1).toRed(this),b[1]=A;for(var D=2;D<b.length;D++)b[D]=this.mul(b[D-1],A);var I=b[0],T=0,C=0,x=R.bitLength()%26;for(x===0&&(x=26),D=R.length-1;D>=0;D--){for(var w=R.words[D],E=x-1;E>=0;E--){var q=w>>E&1;if(I!==b[0]&&(I=this.sqr(I)),q===0&&T===0){C=0;continue}T<<=1,T|=q,C++,!(C!==y&&(D!==0||E!==0))&&(I=this.mul(I,b[T]),C=0,T=0)}x=26}return I},B.prototype.convertTo=function(A){var R=A.umod(this.m);return R===A?R.clone():R},B.prototype.convertFrom=function(A){var R=A.clone();return R.red=null,R},s.mont=function(A){return new j(A)};function j($){B.call(this,$),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}o(j,B),j.prototype.convertTo=function(A){return this.imod(A.ushln(this.shift))},j.prototype.convertFrom=function(A){var R=this.imod(A.mul(this.rinv));return R.red=null,R},j.prototype.imul=function(A,R){if(A.isZero()||R.isZero())return A.words[0]=0,A.length=1,A;var y=A.imul(R),b=y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D=y.isub(b).iushrn(this.shift),I=D;return D.cmp(this.m)>=0?I=D.isub(this.m):D.cmpn(0)<0&&(I=D.iadd(this.m)),I._forceRed(this)},j.prototype.mul=function(A,R){if(A.isZero()||R.isZero())return new s(0)._forceRed(this);var y=A.mul(R),b=y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D=y.isub(b).iushrn(this.shift),I=D;return D.cmp(this.m)>=0?I=D.isub(this.m):D.cmpn(0)<0&&(I=D.iadd(this.m)),I._forceRed(this)},j.prototype.invm=function(A){var R=this.imod(A._invmp(this.m).mul(this.r2));return R._forceRed(this)}})(r,bn$4)}(bn$5)),bn$5.exports}var brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var r;brorand.exports=function(o){return r||(r=new n(null)),r.generate(o)};function n(i){this.rand=i}if(brorand.exports.Rand=n,n.prototype.generate=function(o){return this._rand(o)},n.prototype._rand=function(o){if(this.rand.getBytes)return this.rand.getBytes(o);for(var s=new Uint8Array(o),l=0;l<s.length;l++)s[l]=this.rand.getByte();return s},typeof self=="object")self.crypto&&self.crypto.getRandomValues?n.prototype._rand=function(o){var s=new Uint8Array(o);return self.crypto.getRandomValues(s),s}:self.msCrypto&&self.msCrypto.getRandomValues?n.prototype._rand=function(o){var s=new Uint8Array(o);return self.msCrypto.getRandomValues(s),s}:typeof window=="object"&&(n.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=requireCryptoBrowserify();if(typeof a.randomBytes!="function")throw new Error("Not supported");n.prototype._rand=function(o){return a.randomBytes(o)}}catch{}return brorand.exports}var mr,hasRequiredMr;function requireMr(){if(hasRequiredMr)return mr;hasRequiredMr=1;var r=requireBn$2(),n=requireBrorand();function a(i){this.rand=i||new n.Rand}return mr=a,a.create=function(o){return new a(o)},a.prototype._randbelow=function(o){var s=o.bitLength(),l=Math.ceil(s/8);do var f=new r(this.rand.generate(l));while(f.cmp(o)>=0);return f},a.prototype._randrange=function(o,s){var l=s.sub(o);return o.add(this._randbelow(l))},a.prototype.test=function(o,s,l){var f=o.bitLength(),d=r.mont(o),u=new r(1).toRed(d);s||(s=Math.max(1,f/48|0));for(var c=o.subn(1),v=0;!c.testn(v);v++);for(var h=o.shrn(v),m=c.toRed(d),g=!0;s>0;s--){var _=this._randrange(new r(2),c);l&&l(_);var S=_.toRed(d).redPow(h);if(!(S.cmp(u)===0||S.cmp(m)===0)){for(var N=1;N<v;N++){if(S=S.redSqr(),S.cmp(u)===0)return!1;if(S.cmp(m)===0)break}if(N===v)return!1}}return g},a.prototype.getDivisor=function(o,s){var l=o.bitLength(),f=r.mont(o),d=new r(1).toRed(f);s||(s=Math.max(1,l/48|0));for(var u=o.subn(1),c=0;!u.testn(c);c++);for(var v=o.shrn(c),h=u.toRed(f);s>0;s--){var m=this._randrange(new r(2),u),g=o.gcd(m);if(g.cmpn(1)!==0)return g;var _=m.toRed(f).redPow(v);if(!(_.cmp(d)===0||_.cmp(h)===0)){for(var S=1;S<c;S++){if(_=_.redSqr(),_.cmp(d)===0)return _.fromRed().subn(1).gcd(o);if(_.cmp(h)===0)break}if(S===c)return _=_.redSqr(),_.fromRed().subn(1).gcd(o)}}return!1},mr}var generatePrime,hasRequiredGeneratePrime;function requireGeneratePrime(){if(hasRequiredGeneratePrime)return generatePrime;hasRequiredGeneratePrime=1;var r=requireBrowser$b();generatePrime=S,S.simpleSieve=g,S.fermatTest=_;var n=requireBn$2(),a=new n(24),i=requireMr(),o=new i,s=new n(1),l=new n(2),f=new n(5);new n(16),new n(8);var d=new n(10),u=new n(3);new n(7);var c=new n(11),v=new n(4);new n(12);var h=null;function m(){if(h!==null)return h;var N=1048576,O=[];O[0]=2;for(var M=1,F=3;F<N;F+=2){for(var L=Math.ceil(Math.sqrt(F)),k=0;k<M&&O[k]<=L&&F%O[k]!==0;k++);M!==k&&O[k]<=L||(O[M++]=F)}return h=O,O}function g(N){for(var O=m(),M=0;M<O.length;M++)if(N.modn(O[M])===0)return N.cmpn(O[M])===0;return!0}function _(N){var O=n.mont(N);return l.toRed(O).redPow(N.subn(1)).fromRed().cmpn(1)===0}function S(N,O){if(N<16)return O===2||O===5?new n([140,123]):new n([140,39]);O=new n(O);for(var M,F;;){for(M=new n(r(Math.ceil(N/8)));M.bitLength()>N;)M.ishrn(1);if(M.isEven()&&M.iadd(s),M.testn(1)||M.iadd(l),O.cmp(l)){if(!O.cmp(f))for(;M.mod(d).cmp(u);)M.iadd(v)}else for(;M.mod(a).cmp(c);)M.iadd(v);if(F=M.shrn(1),g(F)&&g(M)&&_(F)&&_(M)&&o.test(F)&&o.test(M))return M}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"};var require$$1$1={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18},dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var r=requireBn$2(),n=requireMr(),a=new n,i=new r(24),o=new r(11),s=new r(10),l=new r(3),f=new r(7),d=requireGeneratePrime(),u=requireBrowser$b();dh=g;function c(S,N){return N=N||"utf8",Buffer.isBuffer(S)||(S=new Buffer(S,N)),this._pub=new r(S),this}function v(S,N){return N=N||"utf8",Buffer.isBuffer(S)||(S=new Buffer(S,N)),this._priv=new r(S),this}var h={};function m(S,N){var O=N.toString("hex"),M=[O,S.toString(16)].join("_");if(M in h)return h[M];var F=0;if(S.isEven()||!d.simpleSieve||!d.fermatTest(S)||!a.test(S))return F+=1,O==="02"||O==="05"?F+=8:F+=4,h[M]=F,F;a.test(S.shrn(1))||(F+=2);var L;switch(O){case"02":S.mod(i).cmp(o)&&(F+=8);break;case"05":L=S.mod(s),L.cmp(l)&&L.cmp(f)&&(F+=8);break;default:F+=4}return h[M]=F,F}function g(S,N,O){this.setGenerator(N),this.__prime=new r(S),this._prime=r.mont(this.__prime),this._primeLen=S.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,O?(this.setPublicKey=c,this.setPrivateKey=v):this._primeCode=8}Object.defineProperty(g.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=m(this.__prime,this.__gen)),this._primeCode}}),g.prototype.generateKeys=function(){return this._priv||(this._priv=new r(u(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},g.prototype.computeSecret=function(S){S=new r(S),S=S.toRed(this._prime);var N=S.redPow(this._priv).fromRed(),O=new Buffer(N.toArray()),M=this.getPrime();if(O.length<M.length){var F=new Buffer(M.length-O.length);F.fill(0),O=Buffer.concat([F,O])}return O},g.prototype.getPublicKey=function(N){return _(this._pub,N)},g.prototype.getPrivateKey=function(N){return _(this._priv,N)},g.prototype.getPrime=function(S){return _(this.__prime,S)},g.prototype.getGenerator=function(S){return _(this._gen,S)},g.prototype.setGenerator=function(S,N){return N=N||"utf8",Buffer.isBuffer(S)||(S=new Buffer(S,N)),this.__gen=S,this._gen=new r(S),this};function _(S,N){var O=new Buffer(S.toArray());return N?O.toString(N):O}return dh}var hasRequiredBrowser$5;function requireBrowser$5(){if(hasRequiredBrowser$5)return browser$5;hasRequiredBrowser$5=1;var r=requireGeneratePrime(),n=require$$1$1,a=requireDh();function i(l){var f=new Buffer(n[l].prime,"hex"),d=new Buffer(n[l].gen,"hex");return new a(f,d)}var o={binary:!0,hex:!0,base64:!0};function s(l,f,d,u){return Buffer.isBuffer(f)||o[f]===void 0?s(l,"binary",f,d):(f=f||"binary",u=u||"binary",d=d||new Buffer([2]),Buffer.isBuffer(d)||(d=new Buffer(d,u)),typeof l=="number"?new a(r(l,d),d,!0):(Buffer.isBuffer(l)||(l=new Buffer(l,f)),new a(l,d,!0)))}return browser$5.DiffieHellmanGroup=browser$5.createDiffieHellmanGroup=browser$5.getDiffieHellman=i,browser$5.createDiffieHellman=browser$5.DiffieHellman=s,browser$5}var readableBrowser={exports:{}},processNextickArgs={exports:{}},hasRequiredProcessNextickArgs;function requireProcessNextickArgs(){if(hasRequiredProcessNextickArgs)return processNextickArgs.exports;hasRequiredProcessNextickArgs=1,typeof process$1>"u"||!process$1.version||process$1.version.indexOf("v0.")===0||process$1.version.indexOf("v1.")===0&&process$1.version.indexOf("v1.8.")!==0?processNextickArgs.exports={nextTick:r}:processNextickArgs.exports=process$1;function r(n,a,i,o){if(typeof n!="function")throw new TypeError('"callback" argument must be a function');var s=arguments.length,l,f;switch(s){case 0:case 1:return process$1.nextTick(n);case 2:return process$1.nextTick(function(){n.call(null,a)});case 3:return process$1.nextTick(function(){n.call(null,a,i)});case 4:return process$1.nextTick(function(){n.call(null,a,i,o)});default:for(l=new Array(s-1),f=0;f<l.length;)l[f++]=arguments[f];return process$1.nextTick(function(){n.apply(null,l)})}}return processNextickArgs.exports}var isarray,hasRequiredIsarray;function requireIsarray(){if(hasRequiredIsarray)return isarray;hasRequiredIsarray=1;var r={}.toString;return isarray=Array.isArray||function(n){return r.call(n)=="[object Array]"},isarray}var streamBrowser,hasRequiredStreamBrowser;function requireStreamBrowser(){return hasRequiredStreamBrowser||(hasRequiredStreamBrowser=1,streamBrowser=requireEvents().EventEmitter),streamBrowser}var safeBuffer={exports:{}},hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,function(r,n){var a=requireDist(),i=a.Buffer;function o(l,f){for(var d in l)f[d]=l[d]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?r.exports=a:(o(a,n),n.Buffer=s);function s(l,f,d){return i(l,f,d)}o(i,s),s.from=function(l,f,d){if(typeof l=="number")throw new TypeError("Argument must not be a number");return i(l,f,d)},s.alloc=function(l,f,d){if(typeof l!="number")throw new TypeError("Argument must be a number");var u=i(l);return f!==void 0?typeof d=="string"?u.fill(f,d):u.fill(f):u.fill(0),u},s.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return i(l)},s.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return a.SlowBuffer(l)}}(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var util={},hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util;hasRequiredUtil=1;function r(_){return Array.isArray?Array.isArray(_):g(_)==="[object Array]"}util.isArray=r;function n(_){return typeof _=="boolean"}util.isBoolean=n;function a(_){return _===null}util.isNull=a;function i(_){return _==null}util.isNullOrUndefined=i;function o(_){return typeof _=="number"}util.isNumber=o;function s(_){return typeof _=="string"}util.isString=s;function l(_){return typeof _=="symbol"}util.isSymbol=l;function f(_){return _===void 0}util.isUndefined=f;function d(_){return g(_)==="[object RegExp]"}util.isRegExp=d;function u(_){return typeof _=="object"&&_!==null}util.isObject=u;function c(_){return g(_)==="[object Date]"}util.isDate=c;function v(_){return g(_)==="[object Error]"||_ instanceof Error}util.isError=v;function h(_){return typeof _=="function"}util.isFunction=h;function m(_){return _===null||typeof _=="boolean"||typeof _=="number"||typeof _=="string"||typeof _=="symbol"||typeof _>"u"}util.isPrimitive=m,util.isBuffer=requireDist().Buffer.isBuffer;function g(_){return Object.prototype.toString.call(_)}return util}var BufferList={exports:{}},hasRequiredBufferList;function requireBufferList(){return hasRequiredBufferList||(hasRequiredBufferList=1,function(r){function n(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}var a=requireSafeBuffer().Buffer,i=requireUtil$1();function o(s,l,f){s.copy(l,f)}r.exports=function(){function s(){n(this,s),this.head=null,this.tail=null,this.length=0}return s.prototype.push=function(f){var d={data:f,next:null};this.length>0?this.tail.next=d:this.head=d,this.tail=d,++this.length},s.prototype.unshift=function(f){var d={data:f,next:this.head};this.length===0&&(this.tail=d),this.head=d,++this.length},s.prototype.shift=function(){if(this.length!==0){var f=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,f}},s.prototype.clear=function(){this.head=this.tail=null,this.length=0},s.prototype.join=function(f){if(this.length===0)return"";for(var d=this.head,u=""+d.data;d=d.next;)u+=f+d.data;return u},s.prototype.concat=function(f){if(this.length===0)return a.alloc(0);for(var d=a.allocUnsafe(f>>>0),u=this.head,c=0;u;)o(u.data,d,c),c+=u.data.length,u=u.next;return d},s}(),i&&i.inspect&&i.inspect.custom&&(r.exports.prototype[i.inspect.custom]=function(){var s=i.inspect({length:this.length});return this.constructor.name+" "+s})}(BufferList)),BufferList.exports}var destroy_1,hasRequiredDestroy;function requireDestroy(){if(hasRequiredDestroy)return destroy_1;hasRequiredDestroy=1;var r=requireProcessNextickArgs();function n(o,s){var l=this,f=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return f||d?(s?s(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,o)):r.nextTick(i,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(u){!s&&u?l._writableState?l._writableState.errorEmitted||(l._writableState.errorEmitted=!0,r.nextTick(i,l,u)):r.nextTick(i,l,u):s&&s(u)}),this)}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function i(o,s){o.emit("error",s)}return destroy_1={destroy:n,undestroy:a},destroy_1}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1;var r=requireProcessNextickArgs();_stream_writable=_;function n(I){var T=this;this.next=null,this.entry=null,this.finish=function(){D(T,I)}}var a=!process$1.browser&&["v0.10","v0.9."].indexOf(process$1.version.slice(0,5))>-1?setImmediate:r.nextTick,i;_.WritableState=m;var o=Object.create(requireUtil());o.inherits=requireInherits_browser();var s={deprecate:requireBrowser$c()},l=requireStreamBrowser(),f=requireSafeBuffer().Buffer,d=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(I){return f.from(I)}function c(I){return f.isBuffer(I)||I instanceof d}var v=requireDestroy();o.inherits(_,l);function h(){}function m(I,T){i=i||require_stream_duplex(),I=I||{};var C=T instanceof i;this.objectMode=!!I.objectMode,C&&(this.objectMode=this.objectMode||!!I.writableObjectMode);var x=I.highWaterMark,w=I.writableHighWaterMark,E=this.objectMode?16:16*1024;x||x===0?this.highWaterMark=x:C&&(w||w===0)?this.highWaterMark=w:this.highWaterMark=E,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var q=I.decodeStrings===!1;this.decodeStrings=!q,this.defaultEncoding=I.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(G){P(T,G)},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 n(this)}m.prototype.getBuffer=function(){for(var T=this.bufferedRequest,C=[];T;)C.push(T),T=T.next;return C},function(){try{Object.defineProperty(m.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var g;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(g=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(I){return g.call(this,I)?!0:this!==_?!1:I&&I._writableState instanceof m}})):g=function(I){return I instanceof this};function _(I){if(i=i||require_stream_duplex(),!g.call(_,this)&&!(this instanceof i))return new _(I);this._writableState=new m(I,this),this.writable=!0,I&&(typeof I.write=="function"&&(this._write=I.write),typeof I.writev=="function"&&(this._writev=I.writev),typeof I.destroy=="function"&&(this._destroy=I.destroy),typeof I.final=="function"&&(this._final=I.final)),l.call(this)}_.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function S(I,T){var C=new Error("write after end");I.emit("error",C),r.nextTick(T,C)}function N(I,T,C,x){var w=!0,E=!1;return C===null?E=new TypeError("May not write null values to stream"):typeof C!="string"&&C!==void 0&&!T.objectMode&&(E=new TypeError("Invalid non-string/buffer chunk")),E&&(I.emit("error",E),r.nextTick(x,E),w=!1),w}_.prototype.write=function(I,T,C){var x=this._writableState,w=!1,E=!x.objectMode&&c(I);return E&&!f.isBuffer(I)&&(I=u(I)),typeof T=="function"&&(C=T,T=null),E?T="buffer":T||(T=x.defaultEncoding),typeof C!="function"&&(C=h),x.ended?S(this,C):(E||N(this,x,I,C))&&(x.pendingcb++,w=M(this,x,E,I,T,C)),w},_.prototype.cork=function(){var I=this._writableState;I.corked++},_.prototype.uncork=function(){var I=this._writableState;I.corked&&(I.corked--,!I.writing&&!I.corked&&!I.bufferProcessing&&I.bufferedRequest&&j(this,I))},_.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 O(I,T,C){return!I.objectMode&&I.decodeStrings!==!1&&typeof T=="string"&&(T=f.from(T,C)),T}Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function M(I,T,C,x,w,E){if(!C){var q=O(T,x,w);x!==q&&(C=!0,w="buffer",x=q)}var G=T.objectMode?1:x.length;T.length+=G;var z=T.length<T.highWaterMark;if(z||(T.needDrain=!0),T.writing||T.corked){var H=T.lastBufferedRequest;T.lastBufferedRequest={chunk:x,encoding:w,isBuf:C,callback:E,next:null},H?H.next=T.lastBufferedRequest:T.bufferedRequest=T.lastBufferedRequest,T.bufferedRequestCount+=1}else F(I,T,!1,G,x,w,E);return z}function F(I,T,C,x,w,E,q){T.writelen=x,T.writecb=q,T.writing=!0,T.sync=!0,C?I._writev(w,T.onwrite):I._write(w,E,T.onwrite),T.sync=!1}function L(I,T,C,x,w){--T.pendingcb,C?(r.nextTick(w,x),r.nextTick(y,I,T),I._writableState.errorEmitted=!0,I.emit("error",x)):(w(x),I._writableState.errorEmitted=!0,I.emit("error",x),y(I,T))}function k(I){I.writing=!1,I.writecb=null,I.length-=I.writelen,I.writelen=0}function P(I,T){var C=I._writableState,x=C.sync,w=C.writecb;if(k(C),T)L(I,C,x,T,w);else{var E=$(C);!E&&!C.corked&&!C.bufferProcessing&&C.bufferedRequest&&j(I,C),x?a(U,I,C,E,w):U(I,C,E,w)}}function U(I,T,C,x){C||B(I,T),T.pendingcb--,x(),y(I,T)}function B(I,T){T.length===0&&T.needDrain&&(T.needDrain=!1,I.emit("drain"))}function j(I,T){T.bufferProcessing=!0;var C=T.bufferedRequest;if(I._writev&&C&&C.next){var x=T.bufferedRequestCount,w=new Array(x),E=T.corkedRequestsFree;E.entry=C;for(var q=0,G=!0;C;)w[q]=C,C.isBuf||(G=!1),C=C.next,q+=1;w.allBuffers=G,F(I,T,!0,T.length,w,"",E.finish),T.pendingcb++,T.lastBufferedRequest=null,E.next?(T.corkedRequestsFree=E.next,E.next=null):T.corkedRequestsFree=new n(T),T.bufferedRequestCount=0}else{for(;C;){var z=C.chunk,H=C.encoding,V=C.callback,K=T.objectMode?1:z.length;if(F(I,T,!1,K,z,H,V),C=C.next,T.bufferedRequestCount--,T.writing)break}C===null&&(T.lastBufferedRequest=null)}T.bufferedRequest=C,T.bufferProcessing=!1}_.prototype._write=function(I,T,C){C(new Error("_write() is not implemented"))},_.prototype._writev=null,_.prototype.end=function(I,T,C){var x=this._writableState;typeof I=="function"?(C=I,I=null,T=null):typeof T=="function"&&(C=T,T=null),I!=null&&this.write(I,T),x.corked&&(x.corked=1,this.uncork()),x.ending||b(this,x,C)};function $(I){return I.ending&&I.length===0&&I.bufferedRequest===null&&!I.finished&&!I.writing}function A(I,T){I._final(function(C){T.pendingcb--,C&&I.emit("error",C),T.prefinished=!0,I.emit("prefinish"),y(I,T)})}function R(I,T){!T.prefinished&&!T.finalCalled&&(typeof I._final=="function"?(T.pendingcb++,T.finalCalled=!0,r.nextTick(A,I,T)):(T.prefinished=!0,I.emit("prefinish")))}function y(I,T){var C=$(T);return C&&(R(I,T),T.pendingcb===0&&(T.finished=!0,I.emit("finish"))),C}function b(I,T,C){T.ending=!0,y(I,T),C&&(T.finished?r.nextTick(C):I.once("finish",C)),T.ended=!0,I.writable=!1}function D(I,T,C){var x=I.entry;for(I.entry=null;x;){var w=x.callback;T.pendingcb--,w(C),x=x.next}T.corkedRequestsFree.next=I}return Object.defineProperty(_.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(I){this._writableState&&(this._writableState.destroyed=I)}}),_.prototype.destroy=v.destroy,_.prototype._undestroy=v.undestroy,_.prototype._destroy=function(I,T){this.end(),T(I)},_stream_writable}var _stream_duplex,hasRequired_stream_duplex;function require_stream_duplex(){if(hasRequired_stream_duplex)return _stream_duplex;hasRequired_stream_duplex=1;var r=requireProcessNextickArgs(),n=Object.keys||function(v){var h=[];for(var m in v)h.push(m);return h};_stream_duplex=d;var a=Object.create(requireUtil());a.inherits=requireInherits_browser();var i=require_stream_readable(),o=require_stream_writable();a.inherits(d,i);for(var s=n(o.prototype),l=0;l<s.length;l++){var f=s[l];d.prototype[f]||(d.prototype[f]=o.prototype[f])}function d(v){if(!(this instanceof d))return new d(v);i.call(this,v),o.call(this,v),v&&v.readable===!1&&(this.readable=!1),v&&v.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,v&&v.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",u)}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function u(){this.allowHalfOpen||this._writableState.ended||r.nextTick(c,this)}function c(v){v.end()}return Object.defineProperty(d.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(v){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=v,this._writableState.destroyed=v)}}),d.prototype._destroy=function(v,h){this.push(null),this.end(),r.nextTick(h,v)},_stream_duplex}var _stream_readable,hasRequired_stream_readable;function require_stream_readable(){if(hasRequired_stream_readable)return _stream_readable;hasRequired_stream_readable=1;var r=requireProcessNextickArgs();_stream_readable=O;var n=requireIsarray(),a;O.ReadableState=N,requireEvents().EventEmitter;var i=function(V,K){return V.listeners(K).length},o=requireStreamBrowser(),s=requireSafeBuffer().Buffer,l=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function f(V){return s.from(V)}function d(V){return s.isBuffer(V)||V instanceof l}var u=Object.create(requireUtil());u.inherits=requireInherits_browser();var c=requireUtil$1(),v=void 0;c&&c.debuglog?v=c.debuglog("stream"):v=function(){};var h=requireBufferList(),m=requireDestroy(),g;u.inherits(O,o);var _=["error","close","destroy","pause","resume"];function S(V,K,Z){if(typeof V.prependListener=="function")return V.prependListener(K,Z);!V._events||!V._events[K]?V.on(K,Z):n(V._events[K])?V._events[K].unshift(Z):V._events[K]=[Z,V._events[K]]}function N(V,K){a=a||require_stream_duplex(),V=V||{};var Z=K instanceof a;this.objectMode=!!V.objectMode,Z&&(this.objectMode=this.objectMode||!!V.readableObjectMode);var re=V.highWaterMark,W=V.readableHighWaterMark,X=this.objectMode?16:16*1024;re||re===0?this.highWaterMark=re:Z&&(W||W===0)?this.highWaterMark=W:this.highWaterMark=X,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new h,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.destroyed=!1,this.defaultEncoding=V.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,V.encoding&&(g||(g=requireString_decoder().StringDecoder),this.decoder=new g(V.encoding),this.encoding=V.encoding)}function O(V){if(a=a||require_stream_duplex(),!(this instanceof O))return new O(V);this._readableState=new N(V,this),this.readable=!0,V&&(typeof V.read=="function"&&(this._read=V.read),typeof V.destroy=="function"&&(this._destroy=V.destroy)),o.call(this)}Object.defineProperty(O.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(V){this._readableState&&(this._readableState.destroyed=V)}}),O.prototype.destroy=m.destroy,O.prototype._undestroy=m.undestroy,O.prototype._destroy=function(V,K){this.push(null),K(V)},O.prototype.push=function(V,K){var Z=this._readableState,re;return Z.objectMode?re=!0:typeof V=="string"&&(K=K||Z.defaultEncoding,K!==Z.encoding&&(V=s.from(V,K),K=""),re=!0),M(this,V,K,!1,re)},O.prototype.unshift=function(V){return M(this,V,null,!0,!1)};function M(V,K,Z,re,W){var X=V._readableState;if(K===null)X.reading=!1,j(V,X);else{var J;W||(J=L(X,K)),J?V.emit("error",J):X.objectMode||K&&K.length>0?(typeof K!="string"&&!X.objectMode&&Object.getPrototypeOf(K)!==s.prototype&&(K=f(K)),re?X.endEmitted?V.emit("error",new Error("stream.unshift() after end event")):F(V,X,K,!0):X.ended?V.emit("error",new Error("stream.push() after EOF")):(X.reading=!1,X.decoder&&!Z?(K=X.decoder.write(K),X.objectMode||K.length!==0?F(V,X,K,!1):R(V,X)):F(V,X,K,!1))):re||(X.reading=!1)}return k(X)}function F(V,K,Z,re){K.flowing&&K.length===0&&!K.sync?(V.emit("data",Z),V.read(0)):(K.length+=K.objectMode?1:Z.length,re?K.buffer.unshift(Z):K.buffer.push(Z),K.needReadable&&$(V)),R(V,K)}function L(V,K){var Z;return!d(K)&&typeof K!="string"&&K!==void 0&&!V.objectMode&&(Z=new TypeError("Invalid non-string/buffer chunk")),Z}function k(V){return!V.ended&&(V.needReadable||V.length<V.highWaterMark||V.length===0)}O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(V){return g||(g=requireString_decoder().StringDecoder),this._readableState.decoder=new g(V),this._readableState.encoding=V,this};var P=8388608;function U(V){return V>=P?V=P:(V--,V|=V>>>1,V|=V>>>2,V|=V>>>4,V|=V>>>8,V|=V>>>16,V++),V}function B(V,K){return V<=0||K.length===0&&K.ended?0:K.objectMode?1:V!==V?K.flowing&&K.length?K.buffer.head.data.length:K.length:(V>K.highWaterMark&&(K.highWaterMark=U(V)),V<=K.length?V:K.ended?K.length:(K.needReadable=!0,0))}O.prototype.read=function(V){v("read",V),V=parseInt(V,10);var K=this._readableState,Z=V;if(V!==0&&(K.emittedReadable=!1),V===0&&K.needReadable&&(K.length>=K.highWaterMark||K.ended))return v("read: emitReadable",K.length,K.ended),K.length===0&&K.ended?G(this):$(this),null;if(V=B(V,K),V===0&&K.ended)return K.length===0&&G(this),null;var re=K.needReadable;v("need readable",re),(K.length===0||K.length-V<K.highWaterMark)&&(re=!0,v("length less than watermark",re)),K.ended||K.reading?(re=!1,v("reading or ended",re)):re&&(v("do read"),K.reading=!0,K.sync=!0,K.length===0&&(K.needReadable=!0),this._read(K.highWaterMark),K.sync=!1,K.reading||(V=B(Z,K)));var W;return V>0?W=x(V,K):W=null,W===null?(K.needReadable=!0,V=0):K.length-=V,K.length===0&&(K.ended||(K.needReadable=!0),Z!==V&&K.ended&&G(this)),W!==null&&this.emit("data",W),W};function j(V,K){if(!K.ended){if(K.decoder){var Z=K.decoder.end();Z&&Z.length&&(K.buffer.push(Z),K.length+=K.objectMode?1:Z.length)}K.ended=!0,$(V)}}function $(V){var K=V._readableState;K.needReadable=!1,K.emittedReadable||(v("emitReadable",K.flowing),K.emittedReadable=!0,K.sync?r.nextTick(A,V):A(V))}function A(V){v("emit readable"),V.emit("readable"),C(V)}function R(V,K){K.readingMore||(K.readingMore=!0,r.nextTick(y,V,K))}function y(V,K){for(var Z=K.length;!K.reading&&!K.flowing&&!K.ended&&K.length<K.highWaterMark&&(v("maybeReadMore read 0"),V.read(0),Z!==K.length);)Z=K.length;K.readingMore=!1}O.prototype._read=function(V){this.emit("error",new Error("_read() is not implemented"))},O.prototype.pipe=function(V,K){var Z=this,re=this._readableState;switch(re.pipesCount){case 0:re.pipes=V;break;case 1:re.pipes=[re.pipes,V];break;default:re.pipes.push(V);break}re.pipesCount+=1,v("pipe count=%d opts=%j",re.pipesCount,K);var W=(!K||K.end!==!1)&&V!==process$1.stdout&&V!==process$1.stderr,X=W?ie:ve;re.endEmitted?r.nextTick(X):Z.once("end",X),V.on("unpipe",J);function J(ye,be){v("onunpipe"),ye===Z&&be&&be.hasUnpiped===!1&&(be.hasUnpiped=!0,ue())}function ie(){v("onend"),V.end()}var ne=b(Z);V.on("drain",ne);var ae=!1;function ue(){v("cleanup"),V.removeListener("close",ce),V.removeListener("finish",he),V.removeListener("drain",ne),V.removeListener("error",pe),V.removeListener("unpipe",J),Z.removeListener("end",ie),Z.removeListener("end",ve),Z.removeListener("data",se),ae=!0,re.awaitDrain&&(!V._writableState||V._writableState.needDrain)&&ne()}var fe=!1;Z.on("data",se);function se(ye){v("ondata"),fe=!1;var be=V.write(ye);be===!1&&!fe&&((re.pipesCount===1&&re.pipes===V||re.pipesCount>1&&H(re.pipes,V)!==-1)&&!ae&&(v("false write response, pause",re.awaitDrain),re.awaitDrain++,fe=!0),Z.pause())}function pe(ye){v("onerror",ye),ve(),V.removeListener("error",pe),i(V,"error")===0&&V.emit("error",ye)}S(V,"error",pe);function ce(){V.removeListener("finish",he),ve()}V.once("close",ce);function he(){v("onfinish"),V.removeListener("close",ce),ve()}V.once("finish",he);function ve(){v("unpipe"),Z.unpipe(V)}return V.emit("pipe",Z),re.flowing||(v("pipe resume"),Z.resume()),V};function b(V){return function(){var K=V._readableState;v("pipeOnDrain",K.awaitDrain),K.awaitDrain&&K.awaitDrain--,K.awaitDrain===0&&i(V,"data")&&(K.flowing=!0,C(V))}}O.prototype.unpipe=function(V){var K=this._readableState,Z={hasUnpiped:!1};if(K.pipesCount===0)return this;if(K.pipesCount===1)return V&&V!==K.pipes?this:(V||(V=K.pipes),K.pipes=null,K.pipesCount=0,K.flowing=!1,V&&V.emit("unpipe",this,Z),this);if(!V){var re=K.pipes,W=K.pipesCount;K.pipes=null,K.pipesCount=0,K.flowing=!1;for(var X=0;X<W;X++)re[X].emit("unpipe",this,{hasUnpiped:!1});return this}var J=H(K.pipes,V);return J===-1?this:(K.pipes.splice(J,1),K.pipesCount-=1,K.pipesCount===1&&(K.pipes=K.pipes[0]),V.emit("unpipe",this,Z),this)},O.prototype.on=function(V,K){var Z=o.prototype.on.call(this,V,K);if(V==="data")this._readableState.flowing!==!1&&this.resume();else if(V==="readable"){var re=this._readableState;!re.endEmitted&&!re.readableListening&&(re.readableListening=re.needReadable=!0,re.emittedReadable=!1,re.reading?re.length&&$(this):r.nextTick(D,this))}return Z},O.prototype.addListener=O.prototype.on;function D(V){v("readable nexttick read 0"),V.read(0)}O.prototype.resume=function(){var V=this._readableState;return V.flowing||(v("resume"),V.flowing=!0,I(this,V)),this};function I(V,K){K.resumeScheduled||(K.resumeScheduled=!0,r.nextTick(T,V,K))}function T(V,K){K.reading||(v("resume read 0"),V.read(0)),K.resumeScheduled=!1,K.awaitDrain=0,V.emit("resume"),C(V),K.flowing&&!K.reading&&V.read(0)}O.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function C(V){var K=V._readableState;for(v("flow",K.flowing);K.flowing&&V.read()!==null;);}O.prototype.wrap=function(V){var K=this,Z=this._readableState,re=!1;V.on("end",function(){if(v("wrapped end"),Z.decoder&&!Z.ended){var J=Z.decoder.end();J&&J.length&&K.push(J)}K.push(null)}),V.on("data",function(J){if(v("wrapped data"),Z.decoder&&(J=Z.decoder.write(J)),!(Z.objectMode&&J==null)&&!(!Z.objectMode&&(!J||!J.length))){var ie=K.push(J);ie||(re=!0,V.pause())}});for(var W in V)this[W]===void 0&&typeof V[W]=="function"&&(this[W]=function(J){return function(){return V[J].apply(V,arguments)}}(W));for(var X=0;X<_.length;X++)V.on(_[X],this.emit.bind(this,_[X]));return this._read=function(J){v("wrapped _read",J),re&&(re=!1,V.resume())},this},Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),O._fromList=x;function x(V,K){if(K.length===0)return null;var Z;return K.objectMode?Z=K.buffer.shift():!V||V>=K.length?(K.decoder?Z=K.buffer.join(""):K.buffer.length===1?Z=K.buffer.head.data:Z=K.buffer.concat(K.length),K.buffer.clear()):Z=w(V,K.buffer,K.decoder),Z}function w(V,K,Z){var re;return V<K.head.data.length?(re=K.head.data.slice(0,V),K.head.data=K.head.data.slice(V)):V===K.head.data.length?re=K.shift():re=Z?E(V,K):q(V,K),re}function E(V,K){var Z=K.head,re=1,W=Z.data;for(V-=W.length;Z=Z.next;){var X=Z.data,J=V>X.length?X.length:V;if(J===X.length?W+=X:W+=X.slice(0,V),V-=J,V===0){J===X.length?(++re,Z.next?K.head=Z.next:K.head=K.tail=null):(K.head=Z,Z.data=X.slice(J));break}++re}return K.length-=re,W}function q(V,K){var Z=s.allocUnsafe(V),re=K.head,W=1;for(re.data.copy(Z),V-=re.data.length;re=re.next;){var X=re.data,J=V>X.length?X.length:V;if(X.copy(Z,Z.length-V,0,J),V-=J,V===0){J===X.length?(++W,re.next?K.head=re.next:K.head=K.tail=null):(K.head=re,re.data=X.slice(J));break}++W}return K.length-=W,Z}function G(V){var K=V._readableState;if(K.length>0)throw new Error('"endReadable()" called on non-empty stream');K.endEmitted||(K.ended=!0,r.nextTick(z,K,V))}function z(V,K){!V.endEmitted&&V.length===0&&(V.endEmitted=!0,K.readable=!1,K.emit("end"))}function H(V,K){for(var Z=0,re=V.length;Z<re;Z++)if(V[Z]===K)return Z;return-1}return _stream_readable}var _stream_transform,hasRequired_stream_transform;function require_stream_transform(){if(hasRequired_stream_transform)return _stream_transform;hasRequired_stream_transform=1,_stream_transform=i;var r=require_stream_duplex(),n=Object.create(requireUtil());n.inherits=requireInherits_browser(),n.inherits(i,r);function a(l,f){var d=this._transformState;d.transforming=!1;var u=d.writecb;if(!u)return this.emit("error",new Error("write callback called multiple times"));d.writechunk=null,d.writecb=null,f!=null&&this.push(f),u(l);var c=this._readableState;c.reading=!1,(c.needReadable||c.length<c.highWaterMark)&&this._read(c.highWaterMark)}function i(l){if(!(this instanceof i))return new i(l);r.call(this,l),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,l&&(typeof l.transform=="function"&&(this._transform=l.transform),typeof l.flush=="function"&&(this._flush=l.flush)),this.on("prefinish",o)}function o(){var l=this;typeof this._flush=="function"?this._flush(function(f,d){s(l,f,d)}):s(this,null,null)}i.prototype.push=function(l,f){return this._transformState.needTransform=!1,r.prototype.push.call(this,l,f)},i.prototype._transform=function(l,f,d){throw new Error("_transform() is not implemented")},i.prototype._write=function(l,f,d){var u=this._transformState;if(u.writecb=d,u.writechunk=l,u.writeencoding=f,!u.transforming){var c=this._readableState;(u.needTransform||c.needReadable||c.length<c.highWaterMark)&&this._read(c.highWaterMark)}},i.prototype._read=function(l){var f=this._transformState;f.writechunk!==null&&f.writecb&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},i.prototype._destroy=function(l,f){var d=this;r.prototype._destroy.call(this,l,function(u){f(u),d.emit("close")})};function s(l,f,d){if(f)return l.emit("error",f);if(d!=null&&l.push(d),l._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(l._transformState.transforming)throw new Error("Calling transform done when still transforming");return l.push(null)}return _stream_transform}var _stream_passthrough,hasRequired_stream_passthrough;function require_stream_passthrough(){if(hasRequired_stream_passthrough)return _stream_passthrough;hasRequired_stream_passthrough=1,_stream_passthrough=a;var r=require_stream_transform(),n=Object.create(requireUtil());n.inherits=requireInherits_browser(),n.inherits(a,r);function a(i){if(!(this instanceof a))return new a(i);r.call(this,i)}return a.prototype._transform=function(i,o,s){s(null,i)},_stream_passthrough}var hasRequiredReadableBrowser;function requireReadableBrowser(){return hasRequiredReadableBrowser||(hasRequiredReadableBrowser=1,function(r,n){n=r.exports=require_stream_readable(),n.Stream=n,n.Readable=n,n.Writable=require_stream_writable(),n.Duplex=require_stream_duplex(),n.Transform=require_stream_transform(),n.PassThrough=require_stream_passthrough()}(readableBrowser,readableBrowser.exports)),readableBrowser.exports}var sign={exports:{}},bn$3={exports:{}},bn$2=bn$3.exports,hasRequiredBn$1;function requireBn$1(){return hasRequiredBn$1||(hasRequiredBn$1=1,function(r){(function(n,a){function i(R,y){if(!R)throw new Error(y||"Assertion failed")}function o(R,y){R.super_=y;var b=function(){};b.prototype=y.prototype,R.prototype=new b,R.prototype.constructor=R}function s(R,y,b){if(s.isBN(R))return R;this.negative=0,this.words=null,this.length=0,this.red=null,R!==null&&((y==="le"||y==="be")&&(b=y,y=10),this._init(R||0,y||10,b||"be"))}typeof n=="object"?n.exports=s:a.BN=s,s.BN=s,s.wordSize=26;var l;try{typeof window<"u"&&typeof window.Buffer<"u"?l=window.Buffer:l=requireDist().Buffer}catch{}s.isBN=function(y){return y instanceof s?!0:y!==null&&typeof y=="object"&&y.constructor.wordSize===s.wordSize&&Array.isArray(y.words)},s.max=function(y,b){return y.cmp(b)>0?y:b},s.min=function(y,b){return y.cmp(b)<0?y:b},s.prototype._init=function(y,b,D){if(typeof y=="number")return this._initNumber(y,b,D);if(typeof y=="object")return this._initArray(y,b,D);b==="hex"&&(b=16),i(b===(b|0)&&b>=2&&b<=36),y=y.toString().replace(/\s+/g,"");var I=0;y[0]==="-"&&(I++,this.negative=1),I<y.length&&(b===16?this._parseHex(y,I,D):(this._parseBase(y,b,I),D==="le"&&this._initArray(this.toArray(),b,D)))},s.prototype._initNumber=function(y,b,D){y<0&&(this.negative=1,y=-y),y<67108864?(this.words=[y&67108863],this.length=1):y<4503599627370496?(this.words=[y&67108863,y/67108864&67108863],this.length=2):(i(y<9007199254740992),this.words=[y&67108863,y/67108864&67108863,1],this.length=3),D==="le"&&this._initArray(this.toArray(),b,D)},s.prototype._initArray=function(y,b,D){if(i(typeof y.length=="number"),y.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(y.length/3),this.words=new Array(this.length);for(var I=0;I<this.length;I++)this.words[I]=0;var T,C,x=0;if(D==="be")for(I=y.length-1,T=0;I>=0;I-=3)C=y[I]|y[I-1]<<8|y[I-2]<<16,this.words[T]|=C<<x&67108863,this.words[T+1]=C>>>26-x&67108863,x+=24,x>=26&&(x-=26,T++);else if(D==="le")for(I=0,T=0;I<y.length;I+=3)C=y[I]|y[I+1]<<8|y[I+2]<<16,this.words[T]|=C<<x&67108863,this.words[T+1]=C>>>26-x&67108863,x+=24,x>=26&&(x-=26,T++);return this._strip()};function f(R,y){var b=R.charCodeAt(y);if(b>=48&&b<=57)return b-48;if(b>=65&&b<=70)return b-55;if(b>=97&&b<=102)return b-87;i(!1,"Invalid character in "+R)}function d(R,y,b){var D=f(R,b);return b-1>=y&&(D|=f(R,b-1)<<4),D}s.prototype._parseHex=function(y,b,D){this.length=Math.ceil((y.length-b)/6),this.words=new Array(this.length);for(var I=0;I<this.length;I++)this.words[I]=0;var T=0,C=0,x;if(D==="be")for(I=y.length-1;I>=b;I-=2)x=d(y,b,I)<<T,this.words[C]|=x&67108863,T>=18?(T-=18,C+=1,this.words[C]|=x>>>26):T+=8;else{var w=y.length-b;for(I=w%2===0?b+1:b;I<y.length;I+=2)x=d(y,b,I)<<T,this.words[C]|=x&67108863,T>=18?(T-=18,C+=1,this.words[C]|=x>>>26):T+=8}this._strip()};function u(R,y,b,D){for(var I=0,T=0,C=Math.min(R.length,b),x=y;x<C;x++){var w=R.charCodeAt(x)-48;I*=D,w>=49?T=w-49+10:w>=17?T=w-17+10:T=w,i(w>=0&&T<D,"Invalid character"),I+=T}return I}s.prototype._parseBase=function(y,b,D){this.words=[0],this.length=1;for(var I=0,T=1;T<=67108863;T*=b)I++;I--,T=T/b|0;for(var C=y.length-D,x=C%I,w=Math.min(C,C-x)+D,E=0,q=D;q<w;q+=I)E=u(y,q,q+I,b),this.imuln(T),this.words[0]+E<67108864?this.words[0]+=E:this._iaddn(E);if(x!==0){var G=1;for(E=u(y,q,y.length,b),q=0;q<x;q++)G*=b;this.imuln(G),this.words[0]+E<67108864?this.words[0]+=E:this._iaddn(E)}this._strip()},s.prototype.copy=function(y){y.words=new Array(this.length);for(var b=0;b<this.length;b++)y.words[b]=this.words[b];y.length=this.length,y.negative=this.negative,y.red=this.red};function c(R,y){R.words=y.words,R.length=y.length,R.negative=y.negative,R.red=y.red}if(s.prototype._move=function(y){c(y,this)},s.prototype.clone=function(){var y=new s(null);return this.copy(y),y},s.prototype._expand=function(y){for(;this.length<y;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=v}catch{s.prototype.inspect=v}else s.prototype.inspect=v;function v(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],g=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(y,b){y=y||10,b=b|0||1;var D;if(y===16||y==="hex"){D="";for(var I=0,T=0,C=0;C<this.length;C++){var x=this.words[C],w=((x<<I|T)&16777215).toString(16);T=x>>>24-I&16777215,I+=2,I>=26&&(I-=26,C--),T!==0||C!==this.length-1?D=h[6-w.length]+w+D:D=w+D}for(T!==0&&(D=T.toString(16)+D);D.length%b!==0;)D="0"+D;return this.negative!==0&&(D="-"+D),D}if(y===(y|0)&&y>=2&&y<=36){var E=m[y],q=g[y];D="";var G=this.clone();for(G.negative=0;!G.isZero();){var z=G.modrn(q).toString(y);G=G.idivn(q),G.isZero()?D=z+D:D=h[E-z.length]+z+D}for(this.isZero()&&(D="0"+D);D.length%b!==0;)D="0"+D;return this.negative!==0&&(D="-"+D),D}i(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var y=this.words[0];return this.length===2?y+=this.words[1]*67108864:this.length===3&&this.words[2]===1?y+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-y:y},s.prototype.toJSON=function(){return this.toString(16,2)},l&&(s.prototype.toBuffer=function(y,b){return this.toArrayLike(l,y,b)}),s.prototype.toArray=function(y,b){return this.toArrayLike(Array,y,b)};var _=function(y,b){return y.allocUnsafe?y.allocUnsafe(b):new y(b)};s.prototype.toArrayLike=function(y,b,D){this._strip();var I=this.byteLength(),T=D||Math.max(1,I);i(I<=T,"byte array longer than desired length"),i(T>0,"Requested array length <= 0");var C=_(y,T),x=b==="le"?"LE":"BE";return this["_toArrayLike"+x](C,I),C},s.prototype._toArrayLikeLE=function(y,b){for(var D=0,I=0,T=0,C=0;T<this.length;T++){var x=this.words[T]<<C|I;y[D++]=x&255,D<y.length&&(y[D++]=x>>8&255),D<y.length&&(y[D++]=x>>16&255),C===6?(D<y.length&&(y[D++]=x>>24&255),I=0,C=0):(I=x>>>24,C+=2)}if(D<y.length)for(y[D++]=I;D<y.length;)y[D++]=0},s.prototype._toArrayLikeBE=function(y,b){for(var D=y.length-1,I=0,T=0,C=0;T<this.length;T++){var x=this.words[T]<<C|I;y[D--]=x&255,D>=0&&(y[D--]=x>>8&255),D>=0&&(y[D--]=x>>16&255),C===6?(D>=0&&(y[D--]=x>>24&255),I=0,C=0):(I=x>>>24,C+=2)}if(D>=0)for(y[D--]=I;D>=0;)y[D--]=0},Math.clz32?s.prototype._countBits=function(y){return 32-Math.clz32(y)}:s.prototype._countBits=function(y){var b=y,D=0;return b>=4096&&(D+=13,b>>>=13),b>=64&&(D+=7,b>>>=7),b>=8&&(D+=4,b>>>=4),b>=2&&(D+=2,b>>>=2),D+b},s.prototype._zeroBits=function(y){if(y===0)return 26;var b=y,D=0;return(b&8191)===0&&(D+=13,b>>>=13),(b&127)===0&&(D+=7,b>>>=7),(b&15)===0&&(D+=4,b>>>=4),(b&3)===0&&(D+=2,b>>>=2),(b&1)===0&&D++,D},s.prototype.bitLength=function(){var y=this.words[this.length-1],b=this._countBits(y);return(this.length-1)*26+b};function S(R){for(var y=new Array(R.bitLength()),b=0;b<y.length;b++){var D=b/26|0,I=b%26;y[b]=R.words[D]>>>I&1}return y}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var y=0,b=0;b<this.length;b++){var D=this._zeroBits(this.words[b]);if(y+=D,D!==26)break}return y},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(y){return this.negative!==0?this.abs().inotn(y).iaddn(1):this.clone()},s.prototype.fromTwos=function(y){return this.testn(y-1)?this.notn(y).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(y){for(;this.length<y.length;)this.words[this.length++]=0;for(var b=0;b<y.length;b++)this.words[b]=this.words[b]|y.words[b];return this._strip()},s.prototype.ior=function(y){return i((this.negative|y.negative)===0),this.iuor(y)},s.prototype.or=function(y){return this.length>y.length?this.clone().ior(y):y.clone().ior(this)},s.prototype.uor=function(y){return this.length>y.length?this.clone().iuor(y):y.clone().iuor(this)},s.prototype.iuand=function(y){var b;this.length>y.length?b=y:b=this;for(var D=0;D<b.length;D++)this.words[D]=this.words[D]&y.words[D];return this.length=b.length,this._strip()},s.prototype.iand=function(y){return i((this.negative|y.negative)===0),this.iuand(y)},s.prototype.and=function(y){return this.length>y.length?this.clone().iand(y):y.clone().iand(this)},s.prototype.uand=function(y){return this.length>y.length?this.clone().iuand(y):y.clone().iuand(this)},s.prototype.iuxor=function(y){var b,D;this.length>y.length?(b=this,D=y):(b=y,D=this);for(var I=0;I<D.length;I++)this.words[I]=b.words[I]^D.words[I];if(this!==b)for(;I<b.length;I++)this.words[I]=b.words[I];return this.length=b.length,this._strip()},s.prototype.ixor=function(y){return i((this.negative|y.negative)===0),this.iuxor(y)},s.prototype.xor=function(y){return this.length>y.length?this.clone().ixor(y):y.clone().ixor(this)},s.prototype.uxor=function(y){return this.length>y.length?this.clone().iuxor(y):y.clone().iuxor(this)},s.prototype.inotn=function(y){i(typeof y=="number"&&y>=0);var b=Math.ceil(y/26)|0,D=y%26;this._expand(b),D>0&&b--;for(var I=0;I<b;I++)this.words[I]=~this.words[I]&67108863;return D>0&&(this.words[I]=~this.words[I]&67108863>>26-D),this._strip()},s.prototype.notn=function(y){return this.clone().inotn(y)},s.prototype.setn=function(y,b){i(typeof y=="number"&&y>=0);var D=y/26|0,I=y%26;return this._expand(D+1),b?this.words[D]=this.words[D]|1<<I:this.words[D]=this.words[D]&~(1<<I),this._strip()},s.prototype.iadd=function(y){var b;if(this.negative!==0&&y.negative===0)return this.negative=0,b=this.isub(y),this.negative^=1,this._normSign();if(this.negative===0&&y.negative!==0)return y.negative=0,b=this.isub(y),y.negative=1,b._normSign();var D,I;this.length>y.length?(D=this,I=y):(D=y,I=this);for(var T=0,C=0;C<I.length;C++)b=(D.words[C]|0)+(I.words[C]|0)+T,this.words[C]=b&67108863,T=b>>>26;for(;T!==0&&C<D.length;C++)b=(D.words[C]|0)+T,this.words[C]=b&67108863,T=b>>>26;if(this.length=D.length,T!==0)this.words[this.length]=T,this.length++;else if(D!==this)for(;C<D.length;C++)this.words[C]=D.words[C];return this},s.prototype.add=function(y){var b;return y.negative!==0&&this.negative===0?(y.negative=0,b=this.sub(y),y.negative^=1,b):y.negative===0&&this.negative!==0?(this.negative=0,b=y.sub(this),this.negative=1,b):this.length>y.length?this.clone().iadd(y):y.clone().iadd(this)},s.prototype.isub=function(y){if(y.negative!==0){y.negative=0;var b=this.iadd(y);return y.negative=1,b._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(y),this.negative=1,this._normSign();var D=this.cmp(y);if(D===0)return this.negative=0,this.length=1,this.words[0]=0,this;var I,T;D>0?(I=this,T=y):(I=y,T=this);for(var C=0,x=0;x<T.length;x++)b=(I.words[x]|0)-(T.words[x]|0)+C,C=b>>26,this.words[x]=b&67108863;for(;C!==0&&x<I.length;x++)b=(I.words[x]|0)+C,C=b>>26,this.words[x]=b&67108863;if(C===0&&x<I.length&&I!==this)for(;x<I.length;x++)this.words[x]=I.words[x];return this.length=Math.max(this.length,x),I!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(y){return this.clone().isub(y)};function N(R,y,b){b.negative=y.negative^R.negative;var D=R.length+y.length|0;b.length=D,D=D-1|0;var I=R.words[0]|0,T=y.words[0]|0,C=I*T,x=C&67108863,w=C/67108864|0;b.words[0]=x;for(var E=1;E<D;E++){for(var q=w>>>26,G=w&67108863,z=Math.min(E,y.length-1),H=Math.max(0,E-R.length+1);H<=z;H++){var V=E-H|0;I=R.words[V]|0,T=y.words[H]|0,C=I*T+G,q+=C/67108864|0,G=C&67108863}b.words[E]=G|0,w=q|0}return w!==0?b.words[E]=w|0:b.length--,b._strip()}var O=function(y,b,D){var I=y.words,T=b.words,C=D.words,x=0,w,E,q,G=I[0]|0,z=G&8191,H=G>>>13,V=I[1]|0,K=V&8191,Z=V>>>13,re=I[2]|0,W=re&8191,X=re>>>13,J=I[3]|0,ie=J&8191,ne=J>>>13,ae=I[4]|0,ue=ae&8191,fe=ae>>>13,se=I[5]|0,pe=se&8191,ce=se>>>13,he=I[6]|0,ve=he&8191,ye=he>>>13,be=I[7]|0,_e=be&8191,me=be>>>13,Pe=I[8]|0,Ne=Pe&8191,Ee=Pe>>>13,Be=I[9]|0,Ce=Be&8191,Re=Be>>>13,Ge=T[0]|0,Me=Ge&8191,Te=Ge>>>13,Ke=T[1]|0,Fe=Ke&8191,Ie=Ke>>>13,Qe=T[2]|0,qe=Qe&8191,Se=Qe>>>13,je=T[3]|0,Le=je&8191,we=je>>>13,He=T[4]|0,$e=He&8191,ee=He>>>13,Q=T[5]|0,Y=Q&8191,te=Q>>>13,oe=T[6]|0,le=oe&8191,de=oe>>>13,De=T[7]|0,Ae=De&8191,ge=De>>>13,ke=T[8]|0,xe=ke&8191,Oe=ke>>>13,ze=T[9]|0,Ue=ze&8191,Ve=ze>>>13;D.negative=y.negative^b.negative,D.length=19,w=Math.imul(z,Me),E=Math.imul(z,Te),E=E+Math.imul(H,Me)|0,q=Math.imul(H,Te);var Ye=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,w=Math.imul(K,Me),E=Math.imul(K,Te),E=E+Math.imul(Z,Me)|0,q=Math.imul(Z,Te),w=w+Math.imul(z,Fe)|0,E=E+Math.imul(z,Ie)|0,E=E+Math.imul(H,Fe)|0,q=q+Math.imul(H,Ie)|0;var We=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(We>>>26)|0,We&=67108863,w=Math.imul(W,Me),E=Math.imul(W,Te),E=E+Math.imul(X,Me)|0,q=Math.imul(X,Te),w=w+Math.imul(K,Fe)|0,E=E+Math.imul(K,Ie)|0,E=E+Math.imul(Z,Fe)|0,q=q+Math.imul(Z,Ie)|0,w=w+Math.imul(z,qe)|0,E=E+Math.imul(z,Se)|0,E=E+Math.imul(H,qe)|0,q=q+Math.imul(H,Se)|0;var Xe=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,w=Math.imul(ie,Me),E=Math.imul(ie,Te),E=E+Math.imul(ne,Me)|0,q=Math.imul(ne,Te),w=w+Math.imul(W,Fe)|0,E=E+Math.imul(W,Ie)|0,E=E+Math.imul(X,Fe)|0,q=q+Math.imul(X,Ie)|0,w=w+Math.imul(K,qe)|0,E=E+Math.imul(K,Se)|0,E=E+Math.imul(Z,qe)|0,q=q+Math.imul(Z,Se)|0,w=w+Math.imul(z,Le)|0,E=E+Math.imul(z,we)|0,E=E+Math.imul(H,Le)|0,q=q+Math.imul(H,we)|0;var Je=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(Je>>>26)|0,Je&=67108863,w=Math.imul(ue,Me),E=Math.imul(ue,Te),E=E+Math.imul(fe,Me)|0,q=Math.imul(fe,Te),w=w+Math.imul(ie,Fe)|0,E=E+Math.imul(ie,Ie)|0,E=E+Math.imul(ne,Fe)|0,q=q+Math.imul(ne,Ie)|0,w=w+Math.imul(W,qe)|0,E=E+Math.imul(W,Se)|0,E=E+Math.imul(X,qe)|0,q=q+Math.imul(X,Se)|0,w=w+Math.imul(K,Le)|0,E=E+Math.imul(K,we)|0,E=E+Math.imul(Z,Le)|0,q=q+Math.imul(Z,we)|0,w=w+Math.imul(z,$e)|0,E=E+Math.imul(z,ee)|0,E=E+Math.imul(H,$e)|0,q=q+Math.imul(H,ee)|0;var Ze=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,w=Math.imul(pe,Me),E=Math.imul(pe,Te),E=E+Math.imul(ce,Me)|0,q=Math.imul(ce,Te),w=w+Math.imul(ue,Fe)|0,E=E+Math.imul(ue,Ie)|0,E=E+Math.imul(fe,Fe)|0,q=q+Math.imul(fe,Ie)|0,w=w+Math.imul(ie,qe)|0,E=E+Math.imul(ie,Se)|0,E=E+Math.imul(ne,qe)|0,q=q+Math.imul(ne,Se)|0,w=w+Math.imul(W,Le)|0,E=E+Math.imul(W,we)|0,E=E+Math.imul(X,Le)|0,q=q+Math.imul(X,we)|0,w=w+Math.imul(K,$e)|0,E=E+Math.imul(K,ee)|0,E=E+Math.imul(Z,$e)|0,q=q+Math.imul(Z,ee)|0,w=w+Math.imul(z,Y)|0,E=E+Math.imul(z,te)|0,E=E+Math.imul(H,Y)|0,q=q+Math.imul(H,te)|0;var er=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(er>>>26)|0,er&=67108863,w=Math.imul(ve,Me),E=Math.imul(ve,Te),E=E+Math.imul(ye,Me)|0,q=Math.imul(ye,Te),w=w+Math.imul(pe,Fe)|0,E=E+Math.imul(pe,Ie)|0,E=E+Math.imul(ce,Fe)|0,q=q+Math.imul(ce,Ie)|0,w=w+Math.imul(ue,qe)|0,E=E+Math.imul(ue,Se)|0,E=E+Math.imul(fe,qe)|0,q=q+Math.imul(fe,Se)|0,w=w+Math.imul(ie,Le)|0,E=E+Math.imul(ie,we)|0,E=E+Math.imul(ne,Le)|0,q=q+Math.imul(ne,we)|0,w=w+Math.imul(W,$e)|0,E=E+Math.imul(W,ee)|0,E=E+Math.imul(X,$e)|0,q=q+Math.imul(X,ee)|0,w=w+Math.imul(K,Y)|0,E=E+Math.imul(K,te)|0,E=E+Math.imul(Z,Y)|0,q=q+Math.imul(Z,te)|0,w=w+Math.imul(z,le)|0,E=E+Math.imul(z,de)|0,E=E+Math.imul(H,le)|0,q=q+Math.imul(H,de)|0;var rr=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(rr>>>26)|0,rr&=67108863,w=Math.imul(_e,Me),E=Math.imul(_e,Te),E=E+Math.imul(me,Me)|0,q=Math.imul(me,Te),w=w+Math.imul(ve,Fe)|0,E=E+Math.imul(ve,Ie)|0,E=E+Math.imul(ye,Fe)|0,q=q+Math.imul(ye,Ie)|0,w=w+Math.imul(pe,qe)|0,E=E+Math.imul(pe,Se)|0,E=E+Math.imul(ce,qe)|0,q=q+Math.imul(ce,Se)|0,w=w+Math.imul(ue,Le)|0,E=E+Math.imul(ue,we)|0,E=E+Math.imul(fe,Le)|0,q=q+Math.imul(fe,we)|0,w=w+Math.imul(ie,$e)|0,E=E+Math.imul(ie,ee)|0,E=E+Math.imul(ne,$e)|0,q=q+Math.imul(ne,ee)|0,w=w+Math.imul(W,Y)|0,E=E+Math.imul(W,te)|0,E=E+Math.imul(X,Y)|0,q=q+Math.imul(X,te)|0,w=w+Math.imul(K,le)|0,E=E+Math.imul(K,de)|0,E=E+Math.imul(Z,le)|0,q=q+Math.imul(Z,de)|0,w=w+Math.imul(z,Ae)|0,E=E+Math.imul(z,ge)|0,E=E+Math.imul(H,Ae)|0,q=q+Math.imul(H,ge)|0;var tr=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(tr>>>26)|0,tr&=67108863,w=Math.imul(Ne,Me),E=Math.imul(Ne,Te),E=E+Math.imul(Ee,Me)|0,q=Math.imul(Ee,Te),w=w+Math.imul(_e,Fe)|0,E=E+Math.imul(_e,Ie)|0,E=E+Math.imul(me,Fe)|0,q=q+Math.imul(me,Ie)|0,w=w+Math.imul(ve,qe)|0,E=E+Math.imul(ve,Se)|0,E=E+Math.imul(ye,qe)|0,q=q+Math.imul(ye,Se)|0,w=w+Math.imul(pe,Le)|0,E=E+Math.imul(pe,we)|0,E=E+Math.imul(ce,Le)|0,q=q+Math.imul(ce,we)|0,w=w+Math.imul(ue,$e)|0,E=E+Math.imul(ue,ee)|0,E=E+Math.imul(fe,$e)|0,q=q+Math.imul(fe,ee)|0,w=w+Math.imul(ie,Y)|0,E=E+Math.imul(ie,te)|0,E=E+Math.imul(ne,Y)|0,q=q+Math.imul(ne,te)|0,w=w+Math.imul(W,le)|0,E=E+Math.imul(W,de)|0,E=E+Math.imul(X,le)|0,q=q+Math.imul(X,de)|0,w=w+Math.imul(K,Ae)|0,E=E+Math.imul(K,ge)|0,E=E+Math.imul(Z,Ae)|0,q=q+Math.imul(Z,ge)|0,w=w+Math.imul(z,xe)|0,E=E+Math.imul(z,Oe)|0,E=E+Math.imul(H,xe)|0,q=q+Math.imul(H,Oe)|0;var nr=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(nr>>>26)|0,nr&=67108863,w=Math.imul(Ce,Me),E=Math.imul(Ce,Te),E=E+Math.imul(Re,Me)|0,q=Math.imul(Re,Te),w=w+Math.imul(Ne,Fe)|0,E=E+Math.imul(Ne,Ie)|0,E=E+Math.imul(Ee,Fe)|0,q=q+Math.imul(Ee,Ie)|0,w=w+Math.imul(_e,qe)|0,E=E+Math.imul(_e,Se)|0,E=E+Math.imul(me,qe)|0,q=q+Math.imul(me,Se)|0,w=w+Math.imul(ve,Le)|0,E=E+Math.imul(ve,we)|0,E=E+Math.imul(ye,Le)|0,q=q+Math.imul(ye,we)|0,w=w+Math.imul(pe,$e)|0,E=E+Math.imul(pe,ee)|0,E=E+Math.imul(ce,$e)|0,q=q+Math.imul(ce,ee)|0,w=w+Math.imul(ue,Y)|0,E=E+Math.imul(ue,te)|0,E=E+Math.imul(fe,Y)|0,q=q+Math.imul(fe,te)|0,w=w+Math.imul(ie,le)|0,E=E+Math.imul(ie,de)|0,E=E+Math.imul(ne,le)|0,q=q+Math.imul(ne,de)|0,w=w+Math.imul(W,Ae)|0,E=E+Math.imul(W,ge)|0,E=E+Math.imul(X,Ae)|0,q=q+Math.imul(X,ge)|0,w=w+Math.imul(K,xe)|0,E=E+Math.imul(K,Oe)|0,E=E+Math.imul(Z,xe)|0,q=q+Math.imul(Z,Oe)|0,w=w+Math.imul(z,Ue)|0,E=E+Math.imul(z,Ve)|0,E=E+Math.imul(H,Ue)|0,q=q+Math.imul(H,Ve)|0;var ir=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(ir>>>26)|0,ir&=67108863,w=Math.imul(Ce,Fe),E=Math.imul(Ce,Ie),E=E+Math.imul(Re,Fe)|0,q=Math.imul(Re,Ie),w=w+Math.imul(Ne,qe)|0,E=E+Math.imul(Ne,Se)|0,E=E+Math.imul(Ee,qe)|0,q=q+Math.imul(Ee,Se)|0,w=w+Math.imul(_e,Le)|0,E=E+Math.imul(_e,we)|0,E=E+Math.imul(me,Le)|0,q=q+Math.imul(me,we)|0,w=w+Math.imul(ve,$e)|0,E=E+Math.imul(ve,ee)|0,E=E+Math.imul(ye,$e)|0,q=q+Math.imul(ye,ee)|0,w=w+Math.imul(pe,Y)|0,E=E+Math.imul(pe,te)|0,E=E+Math.imul(ce,Y)|0,q=q+Math.imul(ce,te)|0,w=w+Math.imul(ue,le)|0,E=E+Math.imul(ue,de)|0,E=E+Math.imul(fe,le)|0,q=q+Math.imul(fe,de)|0,w=w+Math.imul(ie,Ae)|0,E=E+Math.imul(ie,ge)|0,E=E+Math.imul(ne,Ae)|0,q=q+Math.imul(ne,ge)|0,w=w+Math.imul(W,xe)|0,E=E+Math.imul(W,Oe)|0,E=E+Math.imul(X,xe)|0,q=q+Math.imul(X,Oe)|0,w=w+Math.imul(K,Ue)|0,E=E+Math.imul(K,Ve)|0,E=E+Math.imul(Z,Ue)|0,q=q+Math.imul(Z,Ve)|0;var ar=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(ar>>>26)|0,ar&=67108863,w=Math.imul(Ce,qe),E=Math.imul(Ce,Se),E=E+Math.imul(Re,qe)|0,q=Math.imul(Re,Se),w=w+Math.imul(Ne,Le)|0,E=E+Math.imul(Ne,we)|0,E=E+Math.imul(Ee,Le)|0,q=q+Math.imul(Ee,we)|0,w=w+Math.imul(_e,$e)|0,E=E+Math.imul(_e,ee)|0,E=E+Math.imul(me,$e)|0,q=q+Math.imul(me,ee)|0,w=w+Math.imul(ve,Y)|0,E=E+Math.imul(ve,te)|0,E=E+Math.imul(ye,Y)|0,q=q+Math.imul(ye,te)|0,w=w+Math.imul(pe,le)|0,E=E+Math.imul(pe,de)|0,E=E+Math.imul(ce,le)|0,q=q+Math.imul(ce,de)|0,w=w+Math.imul(ue,Ae)|0,E=E+Math.imul(ue,ge)|0,E=E+Math.imul(fe,Ae)|0,q=q+Math.imul(fe,ge)|0,w=w+Math.imul(ie,xe)|0,E=E+Math.imul(ie,Oe)|0,E=E+Math.imul(ne,xe)|0,q=q+Math.imul(ne,Oe)|0,w=w+Math.imul(W,Ue)|0,E=E+Math.imul(W,Ve)|0,E=E+Math.imul(X,Ue)|0,q=q+Math.imul(X,Ve)|0;var sr=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(sr>>>26)|0,sr&=67108863,w=Math.imul(Ce,Le),E=Math.imul(Ce,we),E=E+Math.imul(Re,Le)|0,q=Math.imul(Re,we),w=w+Math.imul(Ne,$e)|0,E=E+Math.imul(Ne,ee)|0,E=E+Math.imul(Ee,$e)|0,q=q+Math.imul(Ee,ee)|0,w=w+Math.imul(_e,Y)|0,E=E+Math.imul(_e,te)|0,E=E+Math.imul(me,Y)|0,q=q+Math.imul(me,te)|0,w=w+Math.imul(ve,le)|0,E=E+Math.imul(ve,de)|0,E=E+Math.imul(ye,le)|0,q=q+Math.imul(ye,de)|0,w=w+Math.imul(pe,Ae)|0,E=E+Math.imul(pe,ge)|0,E=E+Math.imul(ce,Ae)|0,q=q+Math.imul(ce,ge)|0,w=w+Math.imul(ue,xe)|0,E=E+Math.imul(ue,Oe)|0,E=E+Math.imul(fe,xe)|0,q=q+Math.imul(fe,Oe)|0,w=w+Math.imul(ie,Ue)|0,E=E+Math.imul(ie,Ve)|0,E=E+Math.imul(ne,Ue)|0,q=q+Math.imul(ne,Ve)|0;var or=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(or>>>26)|0,or&=67108863,w=Math.imul(Ce,$e),E=Math.imul(Ce,ee),E=E+Math.imul(Re,$e)|0,q=Math.imul(Re,ee),w=w+Math.imul(Ne,Y)|0,E=E+Math.imul(Ne,te)|0,E=E+Math.imul(Ee,Y)|0,q=q+Math.imul(Ee,te)|0,w=w+Math.imul(_e,le)|0,E=E+Math.imul(_e,de)|0,E=E+Math.imul(me,le)|0,q=q+Math.imul(me,de)|0,w=w+Math.imul(ve,Ae)|0,E=E+Math.imul(ve,ge)|0,E=E+Math.imul(ye,Ae)|0,q=q+Math.imul(ye,ge)|0,w=w+Math.imul(pe,xe)|0,E=E+Math.imul(pe,Oe)|0,E=E+Math.imul(ce,xe)|0,q=q+Math.imul(ce,Oe)|0,w=w+Math.imul(ue,Ue)|0,E=E+Math.imul(ue,Ve)|0,E=E+Math.imul(fe,Ue)|0,q=q+Math.imul(fe,Ve)|0;var ur=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(ur>>>26)|0,ur&=67108863,w=Math.imul(Ce,Y),E=Math.imul(Ce,te),E=E+Math.imul(Re,Y)|0,q=Math.imul(Re,te),w=w+Math.imul(Ne,le)|0,E=E+Math.imul(Ne,de)|0,E=E+Math.imul(Ee,le)|0,q=q+Math.imul(Ee,de)|0,w=w+Math.imul(_e,Ae)|0,E=E+Math.imul(_e,ge)|0,E=E+Math.imul(me,Ae)|0,q=q+Math.imul(me,ge)|0,w=w+Math.imul(ve,xe)|0,E=E+Math.imul(ve,Oe)|0,E=E+Math.imul(ye,xe)|0,q=q+Math.imul(ye,Oe)|0,w=w+Math.imul(pe,Ue)|0,E=E+Math.imul(pe,Ve)|0,E=E+Math.imul(ce,Ue)|0,q=q+Math.imul(ce,Ve)|0;var lr=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(lr>>>26)|0,lr&=67108863,w=Math.imul(Ce,le),E=Math.imul(Ce,de),E=E+Math.imul(Re,le)|0,q=Math.imul(Re,de),w=w+Math.imul(Ne,Ae)|0,E=E+Math.imul(Ne,ge)|0,E=E+Math.imul(Ee,Ae)|0,q=q+Math.imul(Ee,ge)|0,w=w+Math.imul(_e,xe)|0,E=E+Math.imul(_e,Oe)|0,E=E+Math.imul(me,xe)|0,q=q+Math.imul(me,Oe)|0,w=w+Math.imul(ve,Ue)|0,E=E+Math.imul(ve,Ve)|0,E=E+Math.imul(ye,Ue)|0,q=q+Math.imul(ye,Ve)|0;var cr=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(cr>>>26)|0,cr&=67108863,w=Math.imul(Ce,Ae),E=Math.imul(Ce,ge),E=E+Math.imul(Re,Ae)|0,q=Math.imul(Re,ge),w=w+Math.imul(Ne,xe)|0,E=E+Math.imul(Ne,Oe)|0,E=E+Math.imul(Ee,xe)|0,q=q+Math.imul(Ee,Oe)|0,w=w+Math.imul(_e,Ue)|0,E=E+Math.imul(_e,Ve)|0,E=E+Math.imul(me,Ue)|0,q=q+Math.imul(me,Ve)|0;var fr=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(fr>>>26)|0,fr&=67108863,w=Math.imul(Ce,xe),E=Math.imul(Ce,Oe),E=E+Math.imul(Re,xe)|0,q=Math.imul(Re,Oe),w=w+Math.imul(Ne,Ue)|0,E=E+Math.imul(Ne,Ve)|0,E=E+Math.imul(Ee,Ue)|0,q=q+Math.imul(Ee,Ve)|0;var dr=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(dr>>>26)|0,dr&=67108863,w=Math.imul(Ce,Ue),E=Math.imul(Ce,Ve),E=E+Math.imul(Re,Ue)|0,q=Math.imul(Re,Ve);var hr=(x+w|0)+((E&8191)<<13)|0;return x=(q+(E>>>13)|0)+(hr>>>26)|0,hr&=67108863,C[0]=Ye,C[1]=We,C[2]=Xe,C[3]=Je,C[4]=Ze,C[5]=er,C[6]=rr,C[7]=tr,C[8]=nr,C[9]=ir,C[10]=ar,C[11]=sr,C[12]=or,C[13]=ur,C[14]=lr,C[15]=cr,C[16]=fr,C[17]=dr,C[18]=hr,x!==0&&(C[19]=x,D.length++),D};Math.imul||(O=N);function M(R,y,b){b.negative=y.negative^R.negative,b.length=R.length+y.length;for(var D=0,I=0,T=0;T<b.length-1;T++){var C=I;I=0;for(var x=D&67108863,w=Math.min(T,y.length-1),E=Math.max(0,T-R.length+1);E<=w;E++){var q=T-E,G=R.words[q]|0,z=y.words[E]|0,H=G*z,V=H&67108863;C=C+(H/67108864|0)|0,V=V+x|0,x=V&67108863,C=C+(V>>>26)|0,I+=C>>>26,C&=67108863}b.words[T]=x,D=C,C=I}return D!==0?b.words[T]=D:b.length--,b._strip()}function F(R,y,b){return M(R,y,b)}s.prototype.mulTo=function(y,b){var D,I=this.length+y.length;return this.length===10&&y.length===10?D=O(this,y,b):I<63?D=N(this,y,b):I<1024?D=M(this,y,b):D=F(this,y,b),D},s.prototype.mul=function(y){var b=new s(null);return b.words=new Array(this.length+y.length),this.mulTo(y,b)},s.prototype.mulf=function(y){var b=new s(null);return b.words=new Array(this.length+y.length),F(this,y,b)},s.prototype.imul=function(y){return this.clone().mulTo(y,this)},s.prototype.imuln=function(y){var b=y<0;b&&(y=-y),i(typeof y=="number"),i(y<67108864);for(var D=0,I=0;I<this.length;I++){var T=(this.words[I]|0)*y,C=(T&67108863)+(D&67108863);D>>=26,D+=T/67108864|0,D+=C>>>26,this.words[I]=C&67108863}return D!==0&&(this.words[I]=D,this.length++),this.length=y===0?1:this.length,b?this.ineg():this},s.prototype.muln=function(y){return this.clone().imuln(y)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(y){var b=S(y);if(b.length===0)return new s(1);for(var D=this,I=0;I<b.length&&b[I]===0;I++,D=D.sqr());if(++I<b.length)for(var T=D.sqr();I<b.length;I++,T=T.sqr())b[I]!==0&&(D=D.mul(T));return D},s.prototype.iushln=function(y){i(typeof y=="number"&&y>=0);var b=y%26,D=(y-b)/26,I=67108863>>>26-b<<26-b,T;if(b!==0){var C=0;for(T=0;T<this.length;T++){var x=this.words[T]&I,w=(this.words[T]|0)-x<<b;this.words[T]=w|C,C=x>>>26-b}C&&(this.words[T]=C,this.length++)}if(D!==0){for(T=this.length-1;T>=0;T--)this.words[T+D]=this.words[T];for(T=0;T<D;T++)this.words[T]=0;this.length+=D}return this._strip()},s.prototype.ishln=function(y){return i(this.negative===0),this.iushln(y)},s.prototype.iushrn=function(y,b,D){i(typeof y=="number"&&y>=0);var I;b?I=(b-b%26)/26:I=0;var T=y%26,C=Math.min((y-T)/26,this.length),x=67108863^67108863>>>T<<T,w=D;if(I-=C,I=Math.max(0,I),w){for(var E=0;E<C;E++)w.words[E]=this.words[E];w.length=C}if(C!==0)if(this.length>C)for(this.length-=C,E=0;E<this.length;E++)this.words[E]=this.words[E+C];else this.words[0]=0,this.length=1;var q=0;for(E=this.length-1;E>=0&&(q!==0||E>=I);E--){var G=this.words[E]|0;this.words[E]=q<<26-T|G>>>T,q=G&x}return w&&q!==0&&(w.words[w.length++]=q),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(y,b,D){return i(this.negative===0),this.iushrn(y,b,D)},s.prototype.shln=function(y){return this.clone().ishln(y)},s.prototype.ushln=function(y){return this.clone().iushln(y)},s.prototype.shrn=function(y){return this.clone().ishrn(y)},s.prototype.ushrn=function(y){return this.clone().iushrn(y)},s.prototype.testn=function(y){i(typeof y=="number"&&y>=0);var b=y%26,D=(y-b)/26,I=1<<b;if(this.length<=D)return!1;var T=this.words[D];return!!(T&I)},s.prototype.imaskn=function(y){i(typeof y=="number"&&y>=0);var b=y%26,D=(y-b)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=D)return this;if(b!==0&&D++,this.length=Math.min(D,this.length),b!==0){var I=67108863^67108863>>>b<<b;this.words[this.length-1]&=I}return this._strip()},s.prototype.maskn=function(y){return this.clone().imaskn(y)},s.prototype.iaddn=function(y){return i(typeof y=="number"),i(y<67108864),y<0?this.isubn(-y):this.negative!==0?this.length===1&&(this.words[0]|0)<=y?(this.words[0]=y-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(y),this.negative=1,this):this._iaddn(y)},s.prototype._iaddn=function(y){this.words[0]+=y;for(var b=0;b<this.length&&this.words[b]>=67108864;b++)this.words[b]-=67108864,b===this.length-1?this.words[b+1]=1:this.words[b+1]++;return this.length=Math.max(this.length,b+1),this},s.prototype.isubn=function(y){if(i(typeof y=="number"),i(y<67108864),y<0)return this.iaddn(-y);if(this.negative!==0)return this.negative=0,this.iaddn(y),this.negative=1,this;if(this.words[0]-=y,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var b=0;b<this.length&&this.words[b]<0;b++)this.words[b]+=67108864,this.words[b+1]-=1;return this._strip()},s.prototype.addn=function(y){return this.clone().iaddn(y)},s.prototype.subn=function(y){return this.clone().isubn(y)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(y,b,D){var I=y.length+D,T;this._expand(I);var C,x=0;for(T=0;T<y.length;T++){C=(this.words[T+D]|0)+x;var w=(y.words[T]|0)*b;C-=w&67108863,x=(C>>26)-(w/67108864|0),this.words[T+D]=C&67108863}for(;T<this.length-D;T++)C=(this.words[T+D]|0)+x,x=C>>26,this.words[T+D]=C&67108863;if(x===0)return this._strip();for(i(x===-1),x=0,T=0;T<this.length;T++)C=-(this.words[T]|0)+x,x=C>>26,this.words[T]=C&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(y,b){var D=this.length-y.length,I=this.clone(),T=y,C=T.words[T.length-1]|0,x=this._countBits(C);D=26-x,D!==0&&(T=T.ushln(D),I.iushln(D),C=T.words[T.length-1]|0);var w=I.length-T.length,E;if(b!=="mod"){E=new s(null),E.length=w+1,E.words=new Array(E.length);for(var q=0;q<E.length;q++)E.words[q]=0}var G=I.clone()._ishlnsubmul(T,1,w);G.negative===0&&(I=G,E&&(E.words[w]=1));for(var z=w-1;z>=0;z--){var H=(I.words[T.length+z]|0)*67108864+(I.words[T.length+z-1]|0);for(H=Math.min(H/C|0,67108863),I._ishlnsubmul(T,H,z);I.negative!==0;)H--,I.negative=0,I._ishlnsubmul(T,1,z),I.isZero()||(I.negative^=1);E&&(E.words[z]=H)}return E&&E._strip(),I._strip(),b!=="div"&&D!==0&&I.iushrn(D),{div:E||null,mod:I}},s.prototype.divmod=function(y,b,D){if(i(!y.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var I,T,C;return this.negative!==0&&y.negative===0?(C=this.neg().divmod(y,b),b!=="mod"&&(I=C.div.neg()),b!=="div"&&(T=C.mod.neg(),D&&T.negative!==0&&T.iadd(y)),{div:I,mod:T}):this.negative===0&&y.negative!==0?(C=this.divmod(y.neg(),b),b!=="mod"&&(I=C.div.neg()),{div:I,mod:C.mod}):(this.negative&y.negative)!==0?(C=this.neg().divmod(y.neg(),b),b!=="div"&&(T=C.mod.neg(),D&&T.negative!==0&&T.isub(y)),{div:C.div,mod:T}):y.length>this.length||this.cmp(y)<0?{div:new s(0),mod:this}:y.length===1?b==="div"?{div:this.divn(y.words[0]),mod:null}:b==="mod"?{div:null,mod:new s(this.modrn(y.words[0]))}:{div:this.divn(y.words[0]),mod:new s(this.modrn(y.words[0]))}:this._wordDiv(y,b)},s.prototype.div=function(y){return this.divmod(y,"div",!1).div},s.prototype.mod=function(y){return this.divmod(y,"mod",!1).mod},s.prototype.umod=function(y){return this.divmod(y,"mod",!0).mod},s.prototype.divRound=function(y){var b=this.divmod(y);if(b.mod.isZero())return b.div;var D=b.div.negative!==0?b.mod.isub(y):b.mod,I=y.ushrn(1),T=y.andln(1),C=D.cmp(I);return C<0||T===1&&C===0?b.div:b.div.negative!==0?b.div.isubn(1):b.div.iaddn(1)},s.prototype.modrn=function(y){var b=y<0;b&&(y=-y),i(y<=67108863);for(var D=(1<<26)%y,I=0,T=this.length-1;T>=0;T--)I=(D*I+(this.words[T]|0))%y;return b?-I:I},s.prototype.modn=function(y){return this.modrn(y)},s.prototype.idivn=function(y){var b=y<0;b&&(y=-y),i(y<=67108863);for(var D=0,I=this.length-1;I>=0;I--){var T=(this.words[I]|0)+D*67108864;this.words[I]=T/y|0,D=T%y}return this._strip(),b?this.ineg():this},s.prototype.divn=function(y){return this.clone().idivn(y)},s.prototype.egcd=function(y){i(y.negative===0),i(!y.isZero());var b=this,D=y.clone();b.negative!==0?b=b.umod(y):b=b.clone();for(var I=new s(1),T=new s(0),C=new s(0),x=new s(1),w=0;b.isEven()&&D.isEven();)b.iushrn(1),D.iushrn(1),++w;for(var E=D.clone(),q=b.clone();!b.isZero();){for(var G=0,z=1;(b.words[0]&z)===0&&G<26;++G,z<<=1);if(G>0)for(b.iushrn(G);G-- >0;)(I.isOdd()||T.isOdd())&&(I.iadd(E),T.isub(q)),I.iushrn(1),T.iushrn(1);for(var H=0,V=1;(D.words[0]&V)===0&&H<26;++H,V<<=1);if(H>0)for(D.iushrn(H);H-- >0;)(C.isOdd()||x.isOdd())&&(C.iadd(E),x.isub(q)),C.iushrn(1),x.iushrn(1);b.cmp(D)>=0?(b.isub(D),I.isub(C),T.isub(x)):(D.isub(b),C.isub(I),x.isub(T))}return{a:C,b:x,gcd:D.iushln(w)}},s.prototype._invmp=function(y){i(y.negative===0),i(!y.isZero());var b=this,D=y.clone();b.negative!==0?b=b.umod(y):b=b.clone();for(var I=new s(1),T=new s(0),C=D.clone();b.cmpn(1)>0&&D.cmpn(1)>0;){for(var x=0,w=1;(b.words[0]&w)===0&&x<26;++x,w<<=1);if(x>0)for(b.iushrn(x);x-- >0;)I.isOdd()&&I.iadd(C),I.iushrn(1);for(var E=0,q=1;(D.words[0]&q)===0&&E<26;++E,q<<=1);if(E>0)for(D.iushrn(E);E-- >0;)T.isOdd()&&T.iadd(C),T.iushrn(1);b.cmp(D)>=0?(b.isub(D),I.isub(T)):(D.isub(b),T.isub(I))}var G;return b.cmpn(1)===0?G=I:G=T,G.cmpn(0)<0&&G.iadd(y),G},s.prototype.gcd=function(y){if(this.isZero())return y.abs();if(y.isZero())return this.abs();var b=this.clone(),D=y.clone();b.negative=0,D.negative=0;for(var I=0;b.isEven()&&D.isEven();I++)b.iushrn(1),D.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;D.isEven();)D.iushrn(1);var T=b.cmp(D);if(T<0){var C=b;b=D,D=C}else if(T===0||D.cmpn(1)===0)break;b.isub(D)}while(!0);return D.iushln(I)},s.prototype.invm=function(y){return this.egcd(y).a.umod(y)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(y){return this.words[0]&y},s.prototype.bincn=function(y){i(typeof y=="number");var b=y%26,D=(y-b)/26,I=1<<b;if(this.length<=D)return this._expand(D+1),this.words[D]|=I,this;for(var T=I,C=D;T!==0&&C<this.length;C++){var x=this.words[C]|0;x+=T,T=x>>>26,x&=67108863,this.words[C]=x}return T!==0&&(this.words[C]=T,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(y){var b=y<0;if(this.negative!==0&&!b)return-1;if(this.negative===0&&b)return 1;this._strip();var D;if(this.length>1)D=1;else{b&&(y=-y),i(y<=67108863,"Number is too big");var I=this.words[0]|0;D=I===y?0:I<y?-1:1}return this.negative!==0?-D|0:D},s.prototype.cmp=function(y){if(this.negative!==0&&y.negative===0)return-1;if(this.negative===0&&y.negative!==0)return 1;var b=this.ucmp(y);return this.negative!==0?-b|0:b},s.prototype.ucmp=function(y){if(this.length>y.length)return 1;if(this.length<y.length)return-1;for(var b=0,D=this.length-1;D>=0;D--){var I=this.words[D]|0,T=y.words[D]|0;if(I!==T){I<T?b=-1:I>T&&(b=1);break}}return b},s.prototype.gtn=function(y){return this.cmpn(y)===1},s.prototype.gt=function(y){return this.cmp(y)===1},s.prototype.gten=function(y){return this.cmpn(y)>=0},s.prototype.gte=function(y){return this.cmp(y)>=0},s.prototype.ltn=function(y){return this.cmpn(y)===-1},s.prototype.lt=function(y){return this.cmp(y)===-1},s.prototype.lten=function(y){return this.cmpn(y)<=0},s.prototype.lte=function(y){return this.cmp(y)<=0},s.prototype.eqn=function(y){return this.cmpn(y)===0},s.prototype.eq=function(y){return this.cmp(y)===0},s.red=function(y){return new $(y)},s.prototype.toRed=function(y){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),y.convertTo(this)._forceRed(y)},s.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(y){return this.red=y,this},s.prototype.forceRed=function(y){return i(!this.red,"Already a number in reduction context"),this._forceRed(y)},s.prototype.redAdd=function(y){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,y)},s.prototype.redIAdd=function(y){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,y)},s.prototype.redSub=function(y){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,y)},s.prototype.redISub=function(y){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,y)},s.prototype.redShl=function(y){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,y)},s.prototype.redMul=function(y){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,y),this.red.mul(this,y)},s.prototype.redIMul=function(y){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,y),this.red.imul(this,y)},s.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(y){return i(this.red&&!y.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,y)};var L={k256:null,p224:null,p192:null,p25519:null};function k(R,y){this.name=R,this.p=new s(y,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}k.prototype._tmp=function(){var y=new s(null);return y.words=new Array(Math.ceil(this.n/13)),y},k.prototype.ireduce=function(y){var b=y,D;do this.split(b,this.tmp),b=this.imulK(b),b=b.iadd(this.tmp),D=b.bitLength();while(D>this.n);var I=D<this.n?-1:b.ucmp(this.p);return I===0?(b.words[0]=0,b.length=1):I>0?b.isub(this.p):b.strip!==void 0?b.strip():b._strip(),b},k.prototype.split=function(y,b){y.iushrn(this.n,0,b)},k.prototype.imulK=function(y){return y.imul(this.k)};function P(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}o(P,k),P.prototype.split=function(y,b){for(var D=4194303,I=Math.min(y.length,9),T=0;T<I;T++)b.words[T]=y.words[T];if(b.length=I,y.length<=9){y.words[0]=0,y.length=1;return}var C=y.words[9];for(b.words[b.length++]=C&D,T=10;T<y.length;T++){var x=y.words[T]|0;y.words[T-10]=(x&D)<<4|C>>>22,C=x}C>>>=22,y.words[T-10]=C,C===0&&y.length>10?y.length-=10:y.length-=9},P.prototype.imulK=function(y){y.words[y.length]=0,y.words[y.length+1]=0,y.length+=2;for(var b=0,D=0;D<y.length;D++){var I=y.words[D]|0;b+=I*977,y.words[D]=b&67108863,b=I*64+(b/67108864|0)}return y.words[y.length-1]===0&&(y.length--,y.words[y.length-1]===0&&y.length--),y};function U(){k.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}o(U,k);function B(){k.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}o(B,k);function j(){k.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}o(j,k),j.prototype.imulK=function(y){for(var b=0,D=0;D<y.length;D++){var I=(y.words[D]|0)*19+b,T=I&67108863;I>>>=26,y.words[D]=T,b=I}return b!==0&&(y.words[y.length++]=b),y},s._prime=function(y){if(L[y])return L[y];var b;if(y==="k256")b=new P;else if(y==="p224")b=new U;else if(y==="p192")b=new B;else if(y==="p25519")b=new j;else throw new Error("Unknown prime "+y);return L[y]=b,b};function $(R){if(typeof R=="string"){var y=s._prime(R);this.m=y.p,this.prime=y}else i(R.gtn(1),"modulus must be greater than 1"),this.m=R,this.prime=null}$.prototype._verify1=function(y){i(y.negative===0,"red works only with positives"),i(y.red,"red works only with red numbers")},$.prototype._verify2=function(y,b){i((y.negative|b.negative)===0,"red works only with positives"),i(y.red&&y.red===b.red,"red works only with red numbers")},$.prototype.imod=function(y){return this.prime?this.prime.ireduce(y)._forceRed(this):(c(y,y.umod(this.m)._forceRed(this)),y)},$.prototype.neg=function(y){return y.isZero()?y.clone():this.m.sub(y)._forceRed(this)},$.prototype.add=function(y,b){this._verify2(y,b);var D=y.add(b);return D.cmp(this.m)>=0&&D.isub(this.m),D._forceRed(this)},$.prototype.iadd=function(y,b){this._verify2(y,b);var D=y.iadd(b);return D.cmp(this.m)>=0&&D.isub(this.m),D},$.prototype.sub=function(y,b){this._verify2(y,b);var D=y.sub(b);return D.cmpn(0)<0&&D.iadd(this.m),D._forceRed(this)},$.prototype.isub=function(y,b){this._verify2(y,b);var D=y.isub(b);return D.cmpn(0)<0&&D.iadd(this.m),D},$.prototype.shl=function(y,b){return this._verify1(y),this.imod(y.ushln(b))},$.prototype.imul=function(y,b){return this._verify2(y,b),this.imod(y.imul(b))},$.prototype.mul=function(y,b){return this._verify2(y,b),this.imod(y.mul(b))},$.prototype.isqr=function(y){return this.imul(y,y.clone())},$.prototype.sqr=function(y){return this.mul(y,y)},$.prototype.sqrt=function(y){if(y.isZero())return y.clone();var b=this.m.andln(3);if(i(b%2===1),b===3){var D=this.m.add(new s(1)).iushrn(2);return this.pow(y,D)}for(var I=this.m.subn(1),T=0;!I.isZero()&&I.andln(1)===0;)T++,I.iushrn(1);i(!I.isZero());var C=new s(1).toRed(this),x=C.redNeg(),w=this.m.subn(1).iushrn(1),E=this.m.bitLength();for(E=new s(2*E*E).toRed(this);this.pow(E,w).cmp(x)!==0;)E.redIAdd(x);for(var q=this.pow(E,I),G=this.pow(y,I.addn(1).iushrn(1)),z=this.pow(y,I),H=T;z.cmp(C)!==0;){for(var V=z,K=0;V.cmp(C)!==0;K++)V=V.redSqr();i(K<H);var Z=this.pow(q,new s(1).iushln(H-K-1));G=G.redMul(Z),q=Z.redSqr(),z=z.redMul(q),H=K}return G},$.prototype.invm=function(y){var b=y._invmp(this.m);return b.negative!==0?(b.negative=0,this.imod(b).redNeg()):this.imod(b)},$.prototype.pow=function(y,b){if(b.isZero())return new s(1).toRed(this);if(b.cmpn(1)===0)return y.clone();var D=4,I=new Array(1<<D);I[0]=new s(1).toRed(this),I[1]=y;for(var T=2;T<I.length;T++)I[T]=this.mul(I[T-1],y);var C=I[0],x=0,w=0,E=b.bitLength()%26;for(E===0&&(E=26),T=b.length-1;T>=0;T--){for(var q=b.words[T],G=E-1;G>=0;G--){var z=q>>G&1;if(C!==I[0]&&(C=this.sqr(C)),z===0&&x===0){w=0;continue}x<<=1,x|=z,w++,!(w!==D&&(T!==0||G!==0))&&(C=this.mul(C,I[x]),w=0,x=0)}E=26}return C},$.prototype.convertTo=function(y){var b=y.umod(this.m);return b===y?b.clone():b},$.prototype.convertFrom=function(y){var b=y.clone();return b.red=null,b},s.mont=function(y){return new A(y)};function A(R){$.call(this,R),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}o(A,$),A.prototype.convertTo=function(y){return this.imod(y.ushln(this.shift))},A.prototype.convertFrom=function(y){var b=this.imod(y.mul(this.rinv));return b.red=null,b},A.prototype.imul=function(y,b){if(y.isZero()||b.isZero())return y.words[0]=0,y.length=1,y;var D=y.imul(b),I=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=D.isub(I).iushrn(this.shift),C=T;return T.cmp(this.m)>=0?C=T.isub(this.m):T.cmpn(0)<0&&(C=T.iadd(this.m)),C._forceRed(this)},A.prototype.mul=function(y,b){if(y.isZero()||b.isZero())return new s(0)._forceRed(this);var D=y.mul(b),I=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=D.isub(I).iushrn(this.shift),C=T;return T.cmp(this.m)>=0?C=T.isub(this.m):T.cmpn(0)<0&&(C=T.iadd(this.m)),C._forceRed(this)},A.prototype.invm=function(y){var b=this.imod(y._invmp(this.m).mul(this.r2));return b._forceRed(this)}})(r,bn$2)}(bn$3)),bn$3.exports}var browserifyRsa,hasRequiredBrowserifyRsa;function requireBrowserifyRsa(){if(hasRequiredBrowserifyRsa)return browserifyRsa;hasRequiredBrowserifyRsa=1;var r=requireBn$1(),n=requireBrowser$b(),a=requireSafeBuffer$1().Buffer;function i(l){var f=l.modulus.byteLength(),d;do d=new r(n(f));while(d.cmp(l.modulus)>=0||!d.umod(l.prime1)||!d.umod(l.prime2));return d}function o(l){var f=i(l),d=f.toRed(r.mont(l.modulus)).redPow(new r(l.publicExponent)).fromRed();return{blinder:d,unblinder:f.invm(l.modulus)}}function s(l,f){var d=o(f),u=f.modulus.byteLength(),c=new r(l).mul(d.blinder).umod(f.modulus),v=c.toRed(r.mont(f.prime1)),h=c.toRed(r.mont(f.prime2)),m=f.coefficient,g=f.prime1,_=f.prime2,S=v.redPow(f.exponent1).fromRed(),N=h.redPow(f.exponent2).fromRed(),O=S.isub(N).imul(m).umod(g).imul(_);return N.iadd(O).imul(d.unblinder).umod(f.modulus).toArrayLike(a,"be",u)}return s.getr=i,browserifyRsa=s,browserifyRsa}var elliptic={};const version$1="6.6.1";var require$$0$1={version:version$1},utils$2={},utils$1={},hasRequiredUtils$2;function requireUtils$2(){return hasRequiredUtils$2||(hasRequiredUtils$2=1,function(r){var n=r;function a(s,l){if(Array.isArray(s))return s.slice();if(!s)return[];var f=[];if(typeof s!="string"){for(var d=0;d<s.length;d++)f[d]=s[d]|0;return f}if(l==="hex"){s=s.replace(/[^a-z0-9]+/ig,""),s.length%2!==0&&(s="0"+s);for(var d=0;d<s.length;d+=2)f.push(parseInt(s[d]+s[d+1],16))}else for(var d=0;d<s.length;d++){var u=s.charCodeAt(d),c=u>>8,v=u&255;c?f.push(c,v):f.push(v)}return f}n.toArray=a;function i(s){return s.length===1?"0"+s:s}n.zero2=i;function o(s){for(var l="",f=0;f<s.length;f++)l+=i(s[f].toString(16));return l}n.toHex=o,n.encode=function(l,f){return f==="hex"?o(l):l}}(utils$1)),utils$1}var hasRequiredUtils$1;function requireUtils$1(){return hasRequiredUtils$1||(hasRequiredUtils$1=1,function(r){var n=r,a=requireBn$2(),i=requireMinimalisticAssert(),o=requireUtils$2();n.assert=i,n.toArray=o.toArray,n.zero2=o.zero2,n.toHex=o.toHex,n.encode=o.encode;function s(c,v,h){var m=new Array(Math.max(c.bitLength(),h)+1),g;for(g=0;g<m.length;g+=1)m[g]=0;var _=1<<v+1,S=c.clone();for(g=0;g<m.length;g++){var N,O=S.andln(_-1);S.isOdd()?(O>(_>>1)-1?N=(_>>1)-O:N=O,S.isubn(N)):N=0,m[g]=N,S.iushrn(1)}return m}n.getNAF=s;function l(c,v){var h=[[],[]];c=c.clone(),v=v.clone();for(var m=0,g=0,_;c.cmpn(-m)>0||v.cmpn(-g)>0;){var S=c.andln(3)+m&3,N=v.andln(3)+g&3;S===3&&(S=-1),N===3&&(N=-1);var O;(S&1)===0?O=0:(_=c.andln(7)+m&7,(_===3||_===5)&&N===2?O=-S:O=S),h[0].push(O);var M;(N&1)===0?M=0:(_=v.andln(7)+g&7,(_===3||_===5)&&S===2?M=-N:M=N),h[1].push(M),2*m===O+1&&(m=1-m),2*g===M+1&&(g=1-g),c.iushrn(1),v.iushrn(1)}return h}n.getJSF=l;function f(c,v,h){var m="_"+v;c.prototype[v]=function(){return this[m]!==void 0?this[m]:this[m]=h.call(this)}}n.cachedProperty=f;function d(c){return typeof c=="string"?n.toArray(c,"hex"):c}n.parseBytes=d;function u(c){return new a(c,"hex","le")}n.intFromLE=u}(utils$2)),utils$2}var curve={},base$1,hasRequiredBase$1;function requireBase$1(){if(hasRequiredBase$1)return base$1;hasRequiredBase$1=1;var r=requireBn$2(),n=requireUtils$1(),a=n.getNAF,i=n.getJSF,o=n.assert;function s(f,d){this.type=f,this.p=new r(d.p,16),this.red=d.prime?r.red(d.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=d.n&&new r(d.n,16),this.g=d.g&&this.pointFromJSON(d.g,d.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var u=this.n&&this.p.div(this.n);!u||u.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}base$1=s,s.prototype.point=function(){throw new Error("Not implemented")},s.prototype.validate=function(){throw new Error("Not implemented")},s.prototype._fixedNafMul=function(d,u){o(d.precomputed);var c=d._getDoubles(),v=a(u,1,this._bitLength),h=(1<<c.step+1)-(c.step%2===0?2:1);h/=3;var m=[],g,_;for(g=0;g<v.length;g+=c.step){_=0;for(var S=g+c.step-1;S>=g;S--)_=(_<<1)+v[S];m.push(_)}for(var N=this.jpoint(null,null,null),O=this.jpoint(null,null,null),M=h;M>0;M--){for(g=0;g<m.length;g++)_=m[g],_===M?O=O.mixedAdd(c.points[g]):_===-M&&(O=O.mixedAdd(c.points[g].neg()));N=N.add(O)}return N.toP()},s.prototype._wnafMul=function(d,u){var c=4,v=d._getNAFPoints(c);c=v.wnd;for(var h=v.points,m=a(u,c,this._bitLength),g=this.jpoint(null,null,null),_=m.length-1;_>=0;_--){for(var S=0;_>=0&&m[_]===0;_--)S++;if(_>=0&&S++,g=g.dblp(S),_<0)break;var N=m[_];o(N!==0),d.type==="affine"?N>0?g=g.mixedAdd(h[N-1>>1]):g=g.mixedAdd(h[-N-1>>1].neg()):N>0?g=g.add(h[N-1>>1]):g=g.add(h[-N-1>>1].neg())}return d.type==="affine"?g.toP():g},s.prototype._wnafMulAdd=function(d,u,c,v,h){var m=this._wnafT1,g=this._wnafT2,_=this._wnafT3,S=0,N,O,M;for(N=0;N<v;N++){M=u[N];var F=M._getNAFPoints(d);m[N]=F.wnd,g[N]=F.points}for(N=v-1;N>=1;N-=2){var L=N-1,k=N;if(m[L]!==1||m[k]!==1){_[L]=a(c[L],m[L],this._bitLength),_[k]=a(c[k],m[k],this._bitLength),S=Math.max(_[L].length,S),S=Math.max(_[k].length,S);continue}var P=[u[L],null,null,u[k]];u[L].y.cmp(u[k].y)===0?(P[1]=u[L].add(u[k]),P[2]=u[L].toJ().mixedAdd(u[k].neg())):u[L].y.cmp(u[k].y.redNeg())===0?(P[1]=u[L].toJ().mixedAdd(u[k]),P[2]=u[L].add(u[k].neg())):(P[1]=u[L].toJ().mixedAdd(u[k]),P[2]=u[L].toJ().mixedAdd(u[k].neg()));var U=[-3,-1,-5,-7,0,7,5,1,3],B=i(c[L],c[k]);for(S=Math.max(B[0].length,S),_[L]=new Array(S),_[k]=new Array(S),O=0;O<S;O++){var j=B[0][O]|0,$=B[1][O]|0;_[L][O]=U[(j+1)*3+($+1)],_[k][O]=0,g[L]=P}}var A=this.jpoint(null,null,null),R=this._wnafT4;for(N=S;N>=0;N--){for(var y=0;N>=0;){var b=!0;for(O=0;O<v;O++)R[O]=_[O][N]|0,R[O]!==0&&(b=!1);if(!b)break;y++,N--}if(N>=0&&y++,A=A.dblp(y),N<0)break;for(O=0;O<v;O++){var D=R[O];D!==0&&(D>0?M=g[O][D-1>>1]:D<0&&(M=g[O][-D-1>>1].neg()),M.type==="affine"?A=A.mixedAdd(M):A=A.add(M))}}for(N=0;N<v;N++)g[N]=null;return h?A:A.toP()};function l(f,d){this.curve=f,this.type=d,this.precomputed=null}return s.BasePoint=l,l.prototype.eq=function(){throw new Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},s.prototype.decodePoint=function(d,u){d=n.toArray(d,u);var c=this.p.byteLength();if((d[0]===4||d[0]===6||d[0]===7)&&d.length-1===2*c){d[0]===6?o(d[d.length-1]%2===0):d[0]===7&&o(d[d.length-1]%2===1);var v=this.point(d.slice(1,1+c),d.slice(1+c,1+2*c));return v}else if((d[0]===2||d[0]===3)&&d.length-1===c)return this.pointFromX(d.slice(1,1+c),d[0]===3);throw new Error("Unknown point format")},l.prototype.encodeCompressed=function(d){return this.encode(d,!0)},l.prototype._encode=function(d){var u=this.curve.p.byteLength(),c=this.getX().toArray("be",u);return d?[this.getY().isEven()?2:3].concat(c):[4].concat(c,this.getY().toArray("be",u))},l.prototype.encode=function(d,u){return n.encode(this._encode(u),d)},l.prototype.precompute=function(d){if(this.precomputed)return this;var u={doubles:null,naf:null,beta:null};return u.naf=this._getNAFPoints(8),u.doubles=this._getDoubles(4,d),u.beta=this._getBeta(),this.precomputed=u,this},l.prototype._hasDoubles=function(d){if(!this.precomputed)return!1;var u=this.precomputed.doubles;return u?u.points.length>=Math.ceil((d.bitLength()+1)/u.step):!1},l.prototype._getDoubles=function(d,u){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var c=[this],v=this,h=0;h<u;h+=d){for(var m=0;m<d;m++)v=v.dbl();c.push(v)}return{step:d,points:c}},l.prototype._getNAFPoints=function(d){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var u=[this],c=(1<<d)-1,v=c===1?null:this.dbl(),h=1;h<c;h++)u[h]=u[h-1].add(v);return{wnd:d,points:u}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(d){for(var u=this,c=0;c<d;c++)u=u.dbl();return u},base$1}var short,hasRequiredShort;function requireShort(){if(hasRequiredShort)return short;hasRequiredShort=1;var r=requireUtils$1(),n=requireBn$2(),a=requireInherits_browser(),i=requireBase$1(),o=r.assert;function s(d){i.call(this,"short",d),this.a=new n(d.a,16).toRed(this.red),this.b=new n(d.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(d),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}a(s,i),short=s,s.prototype._getEndomorphism=function(u){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var c,v;if(u.beta)c=new n(u.beta,16).toRed(this.red);else{var h=this._getEndoRoots(this.p);c=h[0].cmp(h[1])<0?h[0]:h[1],c=c.toRed(this.red)}if(u.lambda)v=new n(u.lambda,16);else{var m=this._getEndoRoots(this.n);this.g.mul(m[0]).x.cmp(this.g.x.redMul(c))===0?v=m[0]:(v=m[1],o(this.g.mul(v).x.cmp(this.g.x.redMul(c))===0))}var g;return u.basis?g=u.basis.map(function(_){return{a:new n(_.a,16),b:new n(_.b,16)}}):g=this._getEndoBasis(v),{beta:c,lambda:v,basis:g}}},s.prototype._getEndoRoots=function(u){var c=u===this.p?this.red:n.mont(u),v=new n(2).toRed(c).redInvm(),h=v.redNeg(),m=new n(3).toRed(c).redNeg().redSqrt().redMul(v),g=h.redAdd(m).fromRed(),_=h.redSub(m).fromRed();return[g,_]},s.prototype._getEndoBasis=function(u){for(var c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),v=u,h=this.n.clone(),m=new n(1),g=new n(0),_=new n(0),S=new n(1),N,O,M,F,L,k,P,U=0,B,j;v.cmpn(0)!==0;){var $=h.div(v);B=h.sub($.mul(v)),j=_.sub($.mul(m));var A=S.sub($.mul(g));if(!M&&B.cmp(c)<0)N=P.neg(),O=m,M=B.neg(),F=j;else if(M&&++U===2)break;P=B,h=v,v=B,_=m,m=j,S=g,g=A}L=B.neg(),k=j;var R=M.sqr().add(F.sqr()),y=L.sqr().add(k.sqr());return y.cmp(R)>=0&&(L=N,k=O),M.negative&&(M=M.neg(),F=F.neg()),L.negative&&(L=L.neg(),k=k.neg()),[{a:M,b:F},{a:L,b:k}]},s.prototype._endoSplit=function(u){var c=this.endo.basis,v=c[0],h=c[1],m=h.b.mul(u).divRound(this.n),g=v.b.neg().mul(u).divRound(this.n),_=m.mul(v.a),S=g.mul(h.a),N=m.mul(v.b),O=g.mul(h.b),M=u.sub(_).sub(S),F=N.add(O).neg();return{k1:M,k2:F}},s.prototype.pointFromX=function(u,c){u=new n(u,16),u.red||(u=u.toRed(this.red));var v=u.redSqr().redMul(u).redIAdd(u.redMul(this.a)).redIAdd(this.b),h=v.redSqrt();if(h.redSqr().redSub(v).cmp(this.zero)!==0)throw new Error("invalid point");var m=h.fromRed().isOdd();return(c&&!m||!c&&m)&&(h=h.redNeg()),this.point(u,h)},s.prototype.validate=function(u){if(u.inf)return!0;var c=u.x,v=u.y,h=this.a.redMul(c),m=c.redSqr().redMul(c).redIAdd(h).redIAdd(this.b);return v.redSqr().redISub(m).cmpn(0)===0},s.prototype._endoWnafMulAdd=function(u,c,v){for(var h=this._endoWnafT1,m=this._endoWnafT2,g=0;g<u.length;g++){var _=this._endoSplit(c[g]),S=u[g],N=S._getBeta();_.k1.negative&&(_.k1.ineg(),S=S.neg(!0)),_.k2.negative&&(_.k2.ineg(),N=N.neg(!0)),h[g*2]=S,h[g*2+1]=N,m[g*2]=_.k1,m[g*2+1]=_.k2}for(var O=this._wnafMulAdd(1,h,m,g*2,v),M=0;M<g*2;M++)h[M]=null,m[M]=null;return O};function l(d,u,c,v){i.BasePoint.call(this,d,"affine"),u===null&&c===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new n(u,16),this.y=new n(c,16),v&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}a(l,i.BasePoint),s.prototype.point=function(u,c,v){return new l(this,u,c,v)},s.prototype.pointFromJSON=function(u,c){return l.fromJSON(this,u,c)},l.prototype._getBeta=function(){if(this.curve.endo){var u=this.precomputed;if(u&&u.beta)return u.beta;var c=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(u){var v=this.curve,h=function(m){return v.point(m.x.redMul(v.endo.beta),m.y)};u.beta=c,c.precomputed={beta:null,naf:u.naf&&{wnd:u.naf.wnd,points:u.naf.points.map(h)},doubles:u.doubles&&{step:u.doubles.step,points:u.doubles.points.map(h)}}}return c}},l.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},l.fromJSON=function(u,c,v){typeof c=="string"&&(c=JSON.parse(c));var h=u.point(c[0],c[1],v);if(!c[2])return h;function m(_){return u.point(_[0],_[1],v)}var g=c[2];return h.precomputed={beta:null,doubles:g.doubles&&{step:g.doubles.step,points:[h].concat(g.doubles.points.map(m))},naf:g.naf&&{wnd:g.naf.wnd,points:[h].concat(g.naf.points.map(m))}},h},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(u){if(this.inf)return u;if(u.inf)return this;if(this.eq(u))return this.dbl();if(this.neg().eq(u))return this.curve.point(null,null);if(this.x.cmp(u.x)===0)return this.curve.point(null,null);var c=this.y.redSub(u.y);c.cmpn(0)!==0&&(c=c.redMul(this.x.redSub(u.x).redInvm()));var v=c.redSqr().redISub(this.x).redISub(u.x),h=c.redMul(this.x.redSub(v)).redISub(this.y);return this.curve.point(v,h)},l.prototype.dbl=function(){if(this.inf)return this;var u=this.y.redAdd(this.y);if(u.cmpn(0)===0)return this.curve.point(null,null);var c=this.curve.a,v=this.x.redSqr(),h=u.redInvm(),m=v.redAdd(v).redIAdd(v).redIAdd(c).redMul(h),g=m.redSqr().redISub(this.x.redAdd(this.x)),_=m.redMul(this.x.redSub(g)).redISub(this.y);return this.curve.point(g,_)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(u){return u=new n(u,16),this.isInfinity()?this:this._hasDoubles(u)?this.curve._fixedNafMul(this,u):this.curve.endo?this.curve._endoWnafMulAdd([this],[u]):this.curve._wnafMul(this,u)},l.prototype.mulAdd=function(u,c,v){var h=[this,c],m=[u,v];return this.curve.endo?this.curve._endoWnafMulAdd(h,m):this.curve._wnafMulAdd(1,h,m,2)},l.prototype.jmulAdd=function(u,c,v){var h=[this,c],m=[u,v];return this.curve.endo?this.curve._endoWnafMulAdd(h,m,!0):this.curve._wnafMulAdd(1,h,m,2,!0)},l.prototype.eq=function(u){return this===u||this.inf===u.inf&&(this.inf||this.x.cmp(u.x)===0&&this.y.cmp(u.y)===0)},l.prototype.neg=function(u){if(this.inf)return this;var c=this.curve.point(this.x,this.y.redNeg());if(u&&this.precomputed){var v=this.precomputed,h=function(m){return m.neg()};c.precomputed={naf:v.naf&&{wnd:v.naf.wnd,points:v.naf.points.map(h)},doubles:v.doubles&&{step:v.doubles.step,points:v.doubles.points.map(h)}}}return c},l.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var u=this.curve.jpoint(this.x,this.y,this.curve.one);return u};function f(d,u,c,v){i.BasePoint.call(this,d,"jacobian"),u===null&&c===null&&v===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new n(0)):(this.x=new n(u,16),this.y=new n(c,16),this.z=new n(v,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}return a(f,i.BasePoint),s.prototype.jpoint=function(u,c,v){return new f(this,u,c,v)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var u=this.z.redInvm(),c=u.redSqr(),v=this.x.redMul(c),h=this.y.redMul(c).redMul(u);return this.curve.point(v,h)},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(u){if(this.isInfinity())return u;if(u.isInfinity())return this;var c=u.z.redSqr(),v=this.z.redSqr(),h=this.x.redMul(c),m=u.x.redMul(v),g=this.y.redMul(c.redMul(u.z)),_=u.y.redMul(v.redMul(this.z)),S=h.redSub(m),N=g.redSub(_);if(S.cmpn(0)===0)return N.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var O=S.redSqr(),M=O.redMul(S),F=h.redMul(O),L=N.redSqr().redIAdd(M).redISub(F).redISub(F),k=N.redMul(F.redISub(L)).redISub(g.redMul(M)),P=this.z.redMul(u.z).redMul(S);return this.curve.jpoint(L,k,P)},f.prototype.mixedAdd=function(u){if(this.isInfinity())return u.toJ();if(u.isInfinity())return this;var c=this.z.redSqr(),v=this.x,h=u.x.redMul(c),m=this.y,g=u.y.redMul(c).redMul(this.z),_=v.redSub(h),S=m.redSub(g);if(_.cmpn(0)===0)return S.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var N=_.redSqr(),O=N.redMul(_),M=v.redMul(N),F=S.redSqr().redIAdd(O).redISub(M).redISub(M),L=S.redMul(M.redISub(F)).redISub(m.redMul(O)),k=this.z.redMul(_);return this.curve.jpoint(F,L,k)},f.prototype.dblp=function(u){if(u===0)return this;if(this.isInfinity())return this;if(!u)return this.dbl();var c;if(this.curve.zeroA||this.curve.threeA){var v=this;for(c=0;c<u;c++)v=v.dbl();return v}var h=this.curve.a,m=this.curve.tinv,g=this.x,_=this.y,S=this.z,N=S.redSqr().redSqr(),O=_.redAdd(_);for(c=0;c<u;c++){var M=g.redSqr(),F=O.redSqr(),L=F.redSqr(),k=M.redAdd(M).redIAdd(M).redIAdd(h.redMul(N)),P=g.redMul(F),U=k.redSqr().redISub(P.redAdd(P)),B=P.redISub(U),j=k.redMul(B);j=j.redIAdd(j).redISub(L);var $=O.redMul(S);c+1<u&&(N=N.redMul(L)),g=U,S=$,O=j}return this.curve.jpoint(g,O.redMul(m),S)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},f.prototype._zeroDbl=function(){var u,c,v;if(this.zOne){var h=this.x.redSqr(),m=this.y.redSqr(),g=m.redSqr(),_=this.x.redAdd(m).redSqr().redISub(h).redISub(g);_=_.redIAdd(_);var S=h.redAdd(h).redIAdd(h),N=S.redSqr().redISub(_).redISub(_),O=g.redIAdd(g);O=O.redIAdd(O),O=O.redIAdd(O),u=N,c=S.redMul(_.redISub(N)).redISub(O),v=this.y.redAdd(this.y)}else{var M=this.x.redSqr(),F=this.y.redSqr(),L=F.redSqr(),k=this.x.redAdd(F).redSqr().redISub(M).redISub(L);k=k.redIAdd(k);var P=M.redAdd(M).redIAdd(M),U=P.redSqr(),B=L.redIAdd(L);B=B.redIAdd(B),B=B.redIAdd(B),u=U.redISub(k).redISub(k),c=P.redMul(k.redISub(u)).redISub(B),v=this.y.redMul(this.z),v=v.redIAdd(v)}return this.curve.jpoint(u,c,v)},f.prototype._threeDbl=function(){var u,c,v;if(this.zOne){var h=this.x.redSqr(),m=this.y.redSqr(),g=m.redSqr(),_=this.x.redAdd(m).redSqr().redISub(h).redISub(g);_=_.redIAdd(_);var S=h.redAdd(h).redIAdd(h).redIAdd(this.curve.a),N=S.redSqr().redISub(_).redISub(_);u=N;var O=g.redIAdd(g);O=O.redIAdd(O),O=O.redIAdd(O),c=S.redMul(_.redISub(N)).redISub(O),v=this.y.redAdd(this.y)}else{var M=this.z.redSqr(),F=this.y.redSqr(),L=this.x.redMul(F),k=this.x.redSub(M).redMul(this.x.redAdd(M));k=k.redAdd(k).redIAdd(k);var P=L.redIAdd(L);P=P.redIAdd(P);var U=P.redAdd(P);u=k.redSqr().redISub(U),v=this.y.redAdd(this.z).redSqr().redISub(F).redISub(M);var B=F.redSqr();B=B.redIAdd(B),B=B.redIAdd(B),B=B.redIAdd(B),c=k.redMul(P.redISub(u)).redISub(B)}return this.curve.jpoint(u,c,v)},f.prototype._dbl=function(){var u=this.curve.a,c=this.x,v=this.y,h=this.z,m=h.redSqr().redSqr(),g=c.redSqr(),_=v.redSqr(),S=g.redAdd(g).redIAdd(g).redIAdd(u.redMul(m)),N=c.redAdd(c);N=N.redIAdd(N);var O=N.redMul(_),M=S.redSqr().redISub(O.redAdd(O)),F=O.redISub(M),L=_.redSqr();L=L.redIAdd(L),L=L.redIAdd(L),L=L.redIAdd(L);var k=S.redMul(F).redISub(L),P=v.redAdd(v).redMul(h);return this.curve.jpoint(M,k,P)},f.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var u=this.x.redSqr(),c=this.y.redSqr(),v=this.z.redSqr(),h=c.redSqr(),m=u.redAdd(u).redIAdd(u),g=m.redSqr(),_=this.x.redAdd(c).redSqr().redISub(u).redISub(h);_=_.redIAdd(_),_=_.redAdd(_).redIAdd(_),_=_.redISub(g);var S=_.redSqr(),N=h.redIAdd(h);N=N.redIAdd(N),N=N.redIAdd(N),N=N.redIAdd(N);var O=m.redIAdd(_).redSqr().redISub(g).redISub(S).redISub(N),M=c.redMul(O);M=M.redIAdd(M),M=M.redIAdd(M);var F=this.x.redMul(S).redISub(M);F=F.redIAdd(F),F=F.redIAdd(F);var L=this.y.redMul(O.redMul(N.redISub(O)).redISub(_.redMul(S)));L=L.redIAdd(L),L=L.redIAdd(L),L=L.redIAdd(L);var k=this.z.redAdd(_).redSqr().redISub(v).redISub(S);return this.curve.jpoint(F,L,k)},f.prototype.mul=function(u,c){return u=new n(u,c),this.curve._wnafMul(this,u)},f.prototype.eq=function(u){if(u.type==="affine")return this.eq(u.toJ());if(this===u)return!0;var c=this.z.redSqr(),v=u.z.redSqr();if(this.x.redMul(v).redISub(u.x.redMul(c)).cmpn(0)!==0)return!1;var h=c.redMul(this.z),m=v.redMul(u.z);return this.y.redMul(m).redISub(u.y.redMul(h)).cmpn(0)===0},f.prototype.eqXToP=function(u){var c=this.z.redSqr(),v=u.toRed(this.curve.red).redMul(c);if(this.x.cmp(v)===0)return!0;for(var h=u.clone(),m=this.curve.redN.redMul(c);;){if(h.iadd(this.curve.n),h.cmp(this.curve.p)>=0)return!1;if(v.redIAdd(m),this.x.cmp(v)===0)return!0}},f.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},f.prototype.isInfinity=function(){return this.z.cmpn(0)===0},short}var mont,hasRequiredMont;function requireMont(){if(hasRequiredMont)return mont;hasRequiredMont=1;var r=requireBn$2(),n=requireInherits_browser(),a=requireBase$1(),i=requireUtils$1();function o(l){a.call(this,"mont",l),this.a=new r(l.a,16).toRed(this.red),this.b=new r(l.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}n(o,a),mont=o,o.prototype.validate=function(f){var d=f.normalize().x,u=d.redSqr(),c=u.redMul(d).redAdd(u.redMul(this.a)).redAdd(d),v=c.redSqrt();return v.redSqr().cmp(c)===0};function s(l,f,d){a.BasePoint.call(this,l,"projective"),f===null&&d===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(f,16),this.z=new r(d,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return n(s,a.BasePoint),o.prototype.decodePoint=function(f,d){return this.point(i.toArray(f,d),1)},o.prototype.point=function(f,d){return new s(this,f,d)},o.prototype.pointFromJSON=function(f){return s.fromJSON(this,f)},s.prototype.precompute=function(){},s.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},s.fromJSON=function(f,d){return new s(f,d[0],d[1]||f.one)},s.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},s.prototype.isInfinity=function(){return this.z.cmpn(0)===0},s.prototype.dbl=function(){var f=this.x.redAdd(this.z),d=f.redSqr(),u=this.x.redSub(this.z),c=u.redSqr(),v=d.redSub(c),h=d.redMul(c),m=v.redMul(c.redAdd(this.curve.a24.redMul(v)));return this.curve.point(h,m)},s.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.diffAdd=function(f,d){var u=this.x.redAdd(this.z),c=this.x.redSub(this.z),v=f.x.redAdd(f.z),h=f.x.redSub(f.z),m=h.redMul(u),g=v.redMul(c),_=d.z.redMul(m.redAdd(g).redSqr()),S=d.x.redMul(m.redISub(g).redSqr());return this.curve.point(_,S)},s.prototype.mul=function(f){for(var d=f.clone(),u=this,c=this.curve.point(null,null),v=this,h=[];d.cmpn(0)!==0;d.iushrn(1))h.push(d.andln(1));for(var m=h.length-1;m>=0;m--)h[m]===0?(u=u.diffAdd(c,v),c=c.dbl()):(c=u.diffAdd(c,v),u=u.dbl());return c},s.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.eq=function(f){return this.getX().cmp(f.getX())===0},s.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()},mont}var edwards,hasRequiredEdwards;function requireEdwards(){if(hasRequiredEdwards)return edwards;hasRequiredEdwards=1;var r=requireUtils$1(),n=requireBn$2(),a=requireInherits_browser(),i=requireBase$1(),o=r.assert;function s(f){this.twisted=(f.a|0)!==1,this.mOneA=this.twisted&&(f.a|0)===-1,this.extended=this.mOneA,i.call(this,"edwards",f),this.a=new n(f.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(f.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(f.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(f.c|0)===1}a(s,i),edwards=s,s.prototype._mulA=function(d){return this.mOneA?d.redNeg():this.a.redMul(d)},s.prototype._mulC=function(d){return this.oneC?d:this.c.redMul(d)},s.prototype.jpoint=function(d,u,c,v){return this.point(d,u,c,v)},s.prototype.pointFromX=function(d,u){d=new n(d,16),d.red||(d=d.toRed(this.red));var c=d.redSqr(),v=this.c2.redSub(this.a.redMul(c)),h=this.one.redSub(this.c2.redMul(this.d).redMul(c)),m=v.redMul(h.redInvm()),g=m.redSqrt();if(g.redSqr().redSub(m).cmp(this.zero)!==0)throw new Error("invalid point");var _=g.fromRed().isOdd();return(u&&!_||!u&&_)&&(g=g.redNeg()),this.point(d,g)},s.prototype.pointFromY=function(d,u){d=new n(d,16),d.red||(d=d.toRed(this.red));var c=d.redSqr(),v=c.redSub(this.c2),h=c.redMul(this.d).redMul(this.c2).redSub(this.a),m=v.redMul(h.redInvm());if(m.cmp(this.zero)===0){if(u)throw new Error("invalid point");return this.point(this.zero,d)}var g=m.redSqrt();if(g.redSqr().redSub(m).cmp(this.zero)!==0)throw new Error("invalid point");return g.fromRed().isOdd()!==u&&(g=g.redNeg()),this.point(g,d)},s.prototype.validate=function(d){if(d.isInfinity())return!0;d.normalize();var u=d.x.redSqr(),c=d.y.redSqr(),v=u.redMul(this.a).redAdd(c),h=this.c2.redMul(this.one.redAdd(this.d.redMul(u).redMul(c)));return v.cmp(h)===0};function l(f,d,u,c,v){i.BasePoint.call(this,f,"projective"),d===null&&u===null&&c===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new n(d,16),this.y=new n(u,16),this.z=c?new n(c,16):this.curve.one,this.t=v&&new n(v,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}return a(l,i.BasePoint),s.prototype.pointFromJSON=function(d){return l.fromJSON(this,d)},s.prototype.point=function(d,u,c,v){return new l(this,d,u,c,v)},l.fromJSON=function(d,u){return new l(d,u[0],u[1],u[2])},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},l.prototype._extDbl=function(){var d=this.x.redSqr(),u=this.y.redSqr(),c=this.z.redSqr();c=c.redIAdd(c);var v=this.curve._mulA(d),h=this.x.redAdd(this.y).redSqr().redISub(d).redISub(u),m=v.redAdd(u),g=m.redSub(c),_=v.redSub(u),S=h.redMul(g),N=m.redMul(_),O=h.redMul(_),M=g.redMul(m);return this.curve.point(S,N,M,O)},l.prototype._projDbl=function(){var d=this.x.redAdd(this.y).redSqr(),u=this.x.redSqr(),c=this.y.redSqr(),v,h,m,g,_,S;if(this.curve.twisted){g=this.curve._mulA(u);var N=g.redAdd(c);this.zOne?(v=d.redSub(u).redSub(c).redMul(N.redSub(this.curve.two)),h=N.redMul(g.redSub(c)),m=N.redSqr().redSub(N).redSub(N)):(_=this.z.redSqr(),S=N.redSub(_).redISub(_),v=d.redSub(u).redISub(c).redMul(S),h=N.redMul(g.redSub(c)),m=N.redMul(S))}else g=u.redAdd(c),_=this.curve._mulC(this.z).redSqr(),S=g.redSub(_).redSub(_),v=this.curve._mulC(d.redISub(g)).redMul(S),h=this.curve._mulC(g).redMul(u.redISub(c)),m=g.redMul(S);return this.curve.point(v,h,m)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(d){var u=this.y.redSub(this.x).redMul(d.y.redSub(d.x)),c=this.y.redAdd(this.x).redMul(d.y.redAdd(d.x)),v=this.t.redMul(this.curve.dd).redMul(d.t),h=this.z.redMul(d.z.redAdd(d.z)),m=c.redSub(u),g=h.redSub(v),_=h.redAdd(v),S=c.redAdd(u),N=m.redMul(g),O=_.redMul(S),M=m.redMul(S),F=g.redMul(_);return this.curve.point(N,O,F,M)},l.prototype._projAdd=function(d){var u=this.z.redMul(d.z),c=u.redSqr(),v=this.x.redMul(d.x),h=this.y.redMul(d.y),m=this.curve.d.redMul(v).redMul(h),g=c.redSub(m),_=c.redAdd(m),S=this.x.redAdd(this.y).redMul(d.x.redAdd(d.y)).redISub(v).redISub(h),N=u.redMul(g).redMul(S),O,M;return this.curve.twisted?(O=u.redMul(_).redMul(h.redSub(this.curve._mulA(v))),M=g.redMul(_)):(O=u.redMul(_).redMul(h.redSub(v)),M=this.curve._mulC(g).redMul(_)),this.curve.point(N,O,M)},l.prototype.add=function(d){return this.isInfinity()?d:d.isInfinity()?this:this.curve.extended?this._extAdd(d):this._projAdd(d)},l.prototype.mul=function(d){return this._hasDoubles(d)?this.curve._fixedNafMul(this,d):this.curve._wnafMul(this,d)},l.prototype.mulAdd=function(d,u,c){return this.curve._wnafMulAdd(1,[this,u],[d,c],2,!1)},l.prototype.jmulAdd=function(d,u,c){return this.curve._wnafMulAdd(1,[this,u],[d,c],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var d=this.z.redInvm();return this.x=this.x.redMul(d),this.y=this.y.redMul(d),this.t&&(this.t=this.t.redMul(d)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(d){return this===d||this.getX().cmp(d.getX())===0&&this.getY().cmp(d.getY())===0},l.prototype.eqXToP=function(d){var u=d.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(u)===0)return!0;for(var c=d.clone(),v=this.curve.redN.redMul(this.z);;){if(c.iadd(this.curve.n),c.cmp(this.curve.p)>=0)return!1;if(u.redIAdd(v),this.x.cmp(u)===0)return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add,edwards}var hasRequiredCurve;function requireCurve(){return hasRequiredCurve||(hasRequiredCurve=1,function(r){var n=r;n.base=requireBase$1(),n.short=requireShort(),n.mont=requireMont(),n.edwards=requireEdwards()}(curve)),curve}var curves={},hash={},utils={},hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils;hasRequiredUtils=1;var r=requireMinimalisticAssert(),n=requireInherits_browser();utils.inherits=n;function a(A,R){return(A.charCodeAt(R)&64512)!==55296||R<0||R+1>=A.length?!1:(A.charCodeAt(R+1)&64512)===56320}function i(A,R){if(Array.isArray(A))return A.slice();if(!A)return[];var y=[];if(typeof A=="string")if(R){if(R==="hex")for(A=A.replace(/[^a-z0-9]+/ig,""),A.length%2!==0&&(A="0"+A),D=0;D<A.length;D+=2)y.push(parseInt(A[D]+A[D+1],16))}else for(var b=0,D=0;D<A.length;D++){var I=A.charCodeAt(D);I<128?y[b++]=I:I<2048?(y[b++]=I>>6|192,y[b++]=I&63|128):a(A,D)?(I=65536+((I&1023)<<10)+(A.charCodeAt(++D)&1023),y[b++]=I>>18|240,y[b++]=I>>12&63|128,y[b++]=I>>6&63|128,y[b++]=I&63|128):(y[b++]=I>>12|224,y[b++]=I>>6&63|128,y[b++]=I&63|128)}else for(D=0;D<A.length;D++)y[D]=A[D]|0;return y}utils.toArray=i;function o(A){for(var R="",y=0;y<A.length;y++)R+=f(A[y].toString(16));return R}utils.toHex=o;function s(A){var R=A>>>24|A>>>8&65280|A<<8&16711680|(A&255)<<24;return R>>>0}utils.htonl=s;function l(A,R){for(var y="",b=0;b<A.length;b++){var D=A[b];R==="little"&&(D=s(D)),y+=d(D.toString(16))}return y}utils.toHex32=l;function f(A){return A.length===1?"0"+A:A}utils.zero2=f;function d(A){return A.length===7?"0"+A:A.length===6?"00"+A:A.length===5?"000"+A:A.length===4?"0000"+A:A.length===3?"00000"+A:A.length===2?"000000"+A:A.length===1?"0000000"+A:A}utils.zero8=d;function u(A,R,y,b){var D=y-R;r(D%4===0);for(var I=new Array(D/4),T=0,C=R;T<I.length;T++,C+=4){var x;b==="big"?x=A[C]<<24|A[C+1]<<16|A[C+2]<<8|A[C+3]:x=A[C+3]<<24|A[C+2]<<16|A[C+1]<<8|A[C],I[T]=x>>>0}return I}utils.join32=u;function c(A,R){for(var y=new Array(A.length*4),b=0,D=0;b<A.length;b++,D+=4){var I=A[b];R==="big"?(y[D]=I>>>24,y[D+1]=I>>>16&255,y[D+2]=I>>>8&255,y[D+3]=I&255):(y[D+3]=I>>>24,y[D+2]=I>>>16&255,y[D+1]=I>>>8&255,y[D]=I&255)}return y}utils.split32=c;function v(A,R){return A>>>R|A<<32-R}utils.rotr32=v;function h(A,R){return A<<R|A>>>32-R}utils.rotl32=h;function m(A,R){return A+R>>>0}utils.sum32=m;function g(A,R,y){return A+R+y>>>0}utils.sum32_3=g;function _(A,R,y,b){return A+R+y+b>>>0}utils.sum32_4=_;function S(A,R,y,b,D){return A+R+y+b+D>>>0}utils.sum32_5=S;function N(A,R,y,b){var D=A[R],I=A[R+1],T=b+I>>>0,C=(T<b?1:0)+y+D;A[R]=C>>>0,A[R+1]=T}utils.sum64=N;function O(A,R,y,b){var D=R+b>>>0,I=(D<R?1:0)+A+y;return I>>>0}utils.sum64_hi=O;function M(A,R,y,b){var D=R+b;return D>>>0}utils.sum64_lo=M;function F(A,R,y,b,D,I,T,C){var x=0,w=R;w=w+b>>>0,x+=w<R?1:0,w=w+I>>>0,x+=w<I?1:0,w=w+C>>>0,x+=w<C?1:0;var E=A+y+D+T+x;return E>>>0}utils.sum64_4_hi=F;function L(A,R,y,b,D,I,T,C){var x=R+b+I+C;return x>>>0}utils.sum64_4_lo=L;function k(A,R,y,b,D,I,T,C,x,w){var E=0,q=R;q=q+b>>>0,E+=q<R?1:0,q=q+I>>>0,E+=q<I?1:0,q=q+C>>>0,E+=q<C?1:0,q=q+w>>>0,E+=q<w?1:0;var G=A+y+D+T+x+E;return G>>>0}utils.sum64_5_hi=k;function P(A,R,y,b,D,I,T,C,x,w){var E=R+b+I+C+w;return E>>>0}utils.sum64_5_lo=P;function U(A,R,y){var b=R<<32-y|A>>>y;return b>>>0}utils.rotr64_hi=U;function B(A,R,y){var b=A<<32-y|R>>>y;return b>>>0}utils.rotr64_lo=B;function j(A,R,y){return A>>>y}utils.shr64_hi=j;function $(A,R,y){var b=A<<32-y|R>>>y;return b>>>0}return utils.shr64_lo=$,utils}var common$1={},hasRequiredCommon$1;function requireCommon$1(){if(hasRequiredCommon$1)return common$1;hasRequiredCommon$1=1;var r=requireUtils(),n=requireMinimalisticAssert();function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return common$1.BlockHash=a,a.prototype.update=function(o,s){if(o=r.toArray(o,s),this.pending?this.pending=this.pending.concat(o):this.pending=o,this.pendingTotal+=o.length,this.pending.length>=this._delta8){o=this.pending;var l=o.length%this._delta8;this.pending=o.slice(o.length-l,o.length),this.pending.length===0&&(this.pending=null),o=r.join32(o,0,o.length-l,this.endian);for(var f=0;f<o.length;f+=this._delta32)this._update(o,f,f+this._delta32)}return this},a.prototype.digest=function(o){return this.update(this._pad()),n(this.pending===null),this._digest(o)},a.prototype._pad=function(){var o=this.pendingTotal,s=this._delta8,l=s-(o+this.padLength)%s,f=new Array(l+this.padLength);f[0]=128;for(var d=1;d<l;d++)f[d]=0;if(o<<=3,this.endian==="big"){for(var u=8;u<this.padLength;u++)f[d++]=0;f[d++]=0,f[d++]=0,f[d++]=0,f[d++]=0,f[d++]=o>>>24&255,f[d++]=o>>>16&255,f[d++]=o>>>8&255,f[d++]=o&255}else for(f[d++]=o&255,f[d++]=o>>>8&255,f[d++]=o>>>16&255,f[d++]=o>>>24&255,f[d++]=0,f[d++]=0,f[d++]=0,f[d++]=0,u=8;u<this.padLength;u++)f[d++]=0;return f},common$1}var sha={},common={},hasRequiredCommon;function requireCommon(){if(hasRequiredCommon)return common;hasRequiredCommon=1;var r=requireUtils(),n=r.rotr32;function a(c,v,h,m){if(c===0)return i(v,h,m);if(c===1||c===3)return s(v,h,m);if(c===2)return o(v,h,m)}common.ft_1=a;function i(c,v,h){return c&v^~c&h}common.ch32=i;function o(c,v,h){return c&v^c&h^v&h}common.maj32=o;function s(c,v,h){return c^v^h}common.p32=s;function l(c){return n(c,2)^n(c,13)^n(c,22)}common.s0_256=l;function f(c){return n(c,6)^n(c,11)^n(c,25)}common.s1_256=f;function d(c){return n(c,7)^n(c,18)^c>>>3}common.g0_256=d;function u(c){return n(c,17)^n(c,19)^c>>>10}return common.g1_256=u,common}var _1,hasRequired_1;function require_1(){if(hasRequired_1)return _1;hasRequired_1=1;var r=requireUtils(),n=requireCommon$1(),a=requireCommon(),i=r.rotl32,o=r.sum32,s=r.sum32_5,l=a.ft_1,f=n.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function u(){if(!(this instanceof u))return new u;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return r.inherits(u,f),_1=u,u.blockSize=512,u.outSize=160,u.hmacStrength=80,u.padLength=64,u.prototype._update=function(v,h){for(var m=this.W,g=0;g<16;g++)m[g]=v[h+g];for(;g<m.length;g++)m[g]=i(m[g-3]^m[g-8]^m[g-14]^m[g-16],1);var _=this.h[0],S=this.h[1],N=this.h[2],O=this.h[3],M=this.h[4];for(g=0;g<m.length;g++){var F=~~(g/20),L=s(i(_,5),l(F,S,N,O),M,m[g],d[F]);M=O,O=N,N=i(S,30),S=_,_=L}this.h[0]=o(this.h[0],_),this.h[1]=o(this.h[1],S),this.h[2]=o(this.h[2],N),this.h[3]=o(this.h[3],O),this.h[4]=o(this.h[4],M)},u.prototype._digest=function(v){return v==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")},_1}var _256,hasRequired_256;function require_256(){if(hasRequired_256)return _256;hasRequired_256=1;var r=requireUtils(),n=requireCommon$1(),a=requireCommon(),i=requireMinimalisticAssert(),o=r.sum32,s=r.sum32_4,l=r.sum32_5,f=a.ch32,d=a.maj32,u=a.s0_256,c=a.s1_256,v=a.g0_256,h=a.g1_256,m=n.BlockHash,g=[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 _(){if(!(this instanceof _))return new _;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}return r.inherits(_,m),_256=_,_.blockSize=512,_.outSize=256,_.hmacStrength=192,_.padLength=64,_.prototype._update=function(N,O){for(var M=this.W,F=0;F<16;F++)M[F]=N[O+F];for(;F<M.length;F++)M[F]=s(h(M[F-2]),M[F-7],v(M[F-15]),M[F-16]);var L=this.h[0],k=this.h[1],P=this.h[2],U=this.h[3],B=this.h[4],j=this.h[5],$=this.h[6],A=this.h[7];for(i(this.k.length===M.length),F=0;F<M.length;F++){var R=l(A,c(B),f(B,j,$),this.k[F],M[F]),y=o(u(L),d(L,k,P));A=$,$=j,j=B,B=o(U,R),U=P,P=k,k=L,L=o(R,y)}this.h[0]=o(this.h[0],L),this.h[1]=o(this.h[1],k),this.h[2]=o(this.h[2],P),this.h[3]=o(this.h[3],U),this.h[4]=o(this.h[4],B),this.h[5]=o(this.h[5],j),this.h[6]=o(this.h[6],$),this.h[7]=o(this.h[7],A)},_.prototype._digest=function(N){return N==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")},_256}var _224,hasRequired_224;function require_224(){if(hasRequired_224)return _224;hasRequired_224=1;var r=requireUtils(),n=require_256();function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return r.inherits(a,n),_224=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(o){return o==="hex"?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")},_224}var _512,hasRequired_512;function require_512(){if(hasRequired_512)return _512;hasRequired_512=1;var r=requireUtils(),n=requireCommon$1(),a=requireMinimalisticAssert(),i=r.rotr64_hi,o=r.rotr64_lo,s=r.shr64_hi,l=r.shr64_lo,f=r.sum64,d=r.sum64_hi,u=r.sum64_lo,c=r.sum64_4_hi,v=r.sum64_4_lo,h=r.sum64_5_hi,m=r.sum64_5_lo,g=n.BlockHash,_=[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(){if(!(this instanceof S))return new S;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=_,this.W=new Array(160)}r.inherits(S,g),_512=S,S.blockSize=1024,S.outSize=512,S.hmacStrength=192,S.padLength=128,S.prototype._prepareBlock=function(y,b){for(var D=this.W,I=0;I<32;I++)D[I]=y[b+I];for(;I<D.length;I+=2){var T=$(D[I-4],D[I-3]),C=A(D[I-4],D[I-3]),x=D[I-14],w=D[I-13],E=B(D[I-30],D[I-29]),q=j(D[I-30],D[I-29]),G=D[I-32],z=D[I-31];D[I]=c(T,C,x,w,E,q,G,z),D[I+1]=v(T,C,x,w,E,q,G,z)}},S.prototype._update=function(y,b){this._prepareBlock(y,b);var D=this.W,I=this.h[0],T=this.h[1],C=this.h[2],x=this.h[3],w=this.h[4],E=this.h[5],q=this.h[6],G=this.h[7],z=this.h[8],H=this.h[9],V=this.h[10],K=this.h[11],Z=this.h[12],re=this.h[13],W=this.h[14],X=this.h[15];a(this.k.length===D.length);for(var J=0;J<D.length;J+=2){var ie=W,ne=X,ae=P(z,H),ue=U(z,H),fe=N(z,H,V,K,Z),se=O(z,H,V,K,Z,re),pe=this.k[J],ce=this.k[J+1],he=D[J],ve=D[J+1],ye=h(ie,ne,ae,ue,fe,se,pe,ce,he,ve),be=m(ie,ne,ae,ue,fe,se,pe,ce,he,ve);ie=L(I,T),ne=k(I,T),ae=M(I,T,C,x,w),ue=F(I,T,C,x,w,E);var _e=d(ie,ne,ae,ue),me=u(ie,ne,ae,ue);W=Z,X=re,Z=V,re=K,V=z,K=H,z=d(q,G,ye,be),H=u(G,G,ye,be),q=w,G=E,w=C,E=x,C=I,x=T,I=d(ye,be,_e,me),T=u(ye,be,_e,me)}f(this.h,0,I,T),f(this.h,2,C,x),f(this.h,4,w,E),f(this.h,6,q,G),f(this.h,8,z,H),f(this.h,10,V,K),f(this.h,12,Z,re),f(this.h,14,W,X)},S.prototype._digest=function(y){return y==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")};function N(R,y,b,D,I){var T=R&b^~R&I;return T<0&&(T+=4294967296),T}function O(R,y,b,D,I,T){var C=y&D^~y&T;return C<0&&(C+=4294967296),C}function M(R,y,b,D,I){var T=R&b^R&I^b&I;return T<0&&(T+=4294967296),T}function F(R,y,b,D,I,T){var C=y&D^y&T^D&T;return C<0&&(C+=4294967296),C}function L(R,y){var b=i(R,y,28),D=i(y,R,2),I=i(y,R,7),T=b^D^I;return T<0&&(T+=4294967296),T}function k(R,y){var b=o(R,y,28),D=o(y,R,2),I=o(y,R,7),T=b^D^I;return T<0&&(T+=4294967296),T}function P(R,y){var b=i(R,y,14),D=i(R,y,18),I=i(y,R,9),T=b^D^I;return T<0&&(T+=4294967296),T}function U(R,y){var b=o(R,y,14),D=o(R,y,18),I=o(y,R,9),T=b^D^I;return T<0&&(T+=4294967296),T}function B(R,y){var b=i(R,y,1),D=i(R,y,8),I=s(R,y,7),T=b^D^I;return T<0&&(T+=4294967296),T}function j(R,y){var b=o(R,y,1),D=o(R,y,8),I=l(R,y,7),T=b^D^I;return T<0&&(T+=4294967296),T}function $(R,y){var b=i(R,y,19),D=i(y,R,29),I=s(R,y,6),T=b^D^I;return T<0&&(T+=4294967296),T}function A(R,y){var b=o(R,y,19),D=o(y,R,29),I=l(R,y,6),T=b^D^I;return T<0&&(T+=4294967296),T}return _512}var _384,hasRequired_384;function require_384(){if(hasRequired_384)return _384;hasRequired_384=1;var r=requireUtils(),n=require_512();function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return r.inherits(a,n),_384=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(o){return o==="hex"?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")},_384}var hasRequiredSha;function requireSha(){return hasRequiredSha||(hasRequiredSha=1,sha.sha1=require_1(),sha.sha224=require_224(),sha.sha256=require_256(),sha.sha384=require_384(),sha.sha512=require_512()),sha}var ripemd={},hasRequiredRipemd;function requireRipemd(){if(hasRequiredRipemd)return ripemd;hasRequiredRipemd=1;var r=requireUtils(),n=requireCommon$1(),a=r.rotl32,i=r.sum32,o=r.sum32_3,s=r.sum32_4,l=n.BlockHash;function f(){if(!(this instanceof f))return new f;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}r.inherits(f,l),ripemd.ripemd160=f,f.blockSize=512,f.outSize=160,f.hmacStrength=192,f.padLength=64,f.prototype._update=function(S,N){for(var O=this.h[0],M=this.h[1],F=this.h[2],L=this.h[3],k=this.h[4],P=O,U=M,B=F,j=L,$=k,A=0;A<80;A++){var R=i(a(s(O,d(A,M,F,L),S[v[A]+N],u(A)),m[A]),k);O=k,k=L,L=a(F,10),F=M,M=R,R=i(a(s(P,d(79-A,U,B,j),S[h[A]+N],c(A)),g[A]),$),P=$,$=j,j=a(B,10),B=U,U=R}R=o(this.h[1],F,j),this.h[1]=o(this.h[2],L,$),this.h[2]=o(this.h[3],k,P),this.h[3]=o(this.h[4],O,U),this.h[4]=o(this.h[0],M,B),this.h[0]=R},f.prototype._digest=function(S){return S==="hex"?r.toHex32(this.h,"little"):r.split32(this.h,"little")};function d(_,S,N,O){return _<=15?S^N^O:_<=31?S&N|~S&O:_<=47?(S|~N)^O:_<=63?S&O|N&~O:S^(N|~O)}function u(_){return _<=15?0:_<=31?1518500249:_<=47?1859775393:_<=63?2400959708:2840853838}function c(_){return _<=15?1352829926:_<=31?1548603684:_<=47?1836072691:_<=63?2053994217:0}var v=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],h=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];return ripemd}var hmac$2,hasRequiredHmac$1;function requireHmac$1(){if(hasRequiredHmac$1)return hmac$2;hasRequiredHmac$1=1;var r=requireUtils(),n=requireMinimalisticAssert();function a(i,o,s){if(!(this instanceof a))return new a(i,o,s);this.Hash=i,this.blockSize=i.blockSize/8,this.outSize=i.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(o,s))}return hmac$2=a,a.prototype._init=function(o){o.length>this.blockSize&&(o=new this.Hash().update(o).digest()),n(o.length<=this.blockSize);for(var s=o.length;s<this.blockSize;s++)o.push(0);for(s=0;s<o.length;s++)o[s]^=54;for(this.inner=new this.Hash().update(o),s=0;s<o.length;s++)o[s]^=106;this.outer=new this.Hash().update(o)},a.prototype.update=function(o,s){return this.inner.update(o,s),this},a.prototype.digest=function(o){return this.outer.update(this.inner.digest()),this.outer.digest(o)},hmac$2}var hasRequiredHash;function requireHash(){return hasRequiredHash||(hasRequiredHash=1,function(r){var n=r;n.utils=requireUtils(),n.common=requireCommon$1(),n.sha=requireSha(),n.ripemd=requireRipemd(),n.hmac=requireHmac$1(),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160}(hash)),hash}var secp256k1,hasRequiredSecp256k1;function requireSecp256k1(){return hasRequiredSecp256k1||(hasRequiredSecp256k1=1,secp256k1={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),secp256k1}var hasRequiredCurves;function requireCurves(){return hasRequiredCurves||(hasRequiredCurves=1,function(r){var n=r,a=requireHash(),i=requireCurve(),o=requireUtils$1(),s=o.assert;function l(u){u.type==="short"?this.curve=new i.short(u):u.type==="edwards"?this.curve=new i.edwards(u):this.curve=new i.mont(u),this.g=this.curve.g,this.n=this.curve.n,this.hash=u.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}n.PresetCurve=l;function f(u,c){Object.defineProperty(n,u,{configurable:!0,enumerable:!0,get:function(){var v=new l(c);return Object.defineProperty(n,u,{configurable:!0,enumerable:!0,value:v}),v}})}f("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),f("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),f("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var d;try{d=requireSecp256k1()}catch{d=void 0}f("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",d]})}(curves)),curves}var hmacDrbg,hasRequiredHmacDrbg;function requireHmacDrbg(){if(hasRequiredHmacDrbg)return hmacDrbg;hasRequiredHmacDrbg=1;var r=requireHash(),n=requireUtils$2(),a=requireMinimalisticAssert();function i(o){if(!(this instanceof i))return new i(o);this.hash=o.hash,this.predResist=!!o.predResist,this.outLen=this.hash.outSize,this.minEntropy=o.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var s=n.toArray(o.entropy,o.entropyEnc||"hex"),l=n.toArray(o.nonce,o.nonceEnc||"hex"),f=n.toArray(o.pers,o.persEnc||"hex");a(s.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(s,l,f)}return hmacDrbg=i,i.prototype._init=function(s,l,f){var d=s.concat(l).concat(f);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var u=0;u<this.V.length;u++)this.K[u]=0,this.V[u]=1;this._update(d),this._reseed=1,this.reseedInterval=281474976710656},i.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},i.prototype._update=function(s){var l=this._hmac().update(this.V).update([0]);s&&(l=l.update(s)),this.K=l.digest(),this.V=this._hmac().update(this.V).digest(),s&&(this.K=this._hmac().update(this.V).update([1]).update(s).digest(),this.V=this._hmac().update(this.V).digest())},i.prototype.reseed=function(s,l,f,d){typeof l!="string"&&(d=f,f=l,l=null),s=n.toArray(s,l),f=n.toArray(f,d),a(s.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(s.concat(f||[])),this._reseed=1},i.prototype.generate=function(s,l,f,d){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof l!="string"&&(d=f,f=l,l=null),f&&(f=n.toArray(f,d||"hex"),this._update(f));for(var u=[];u.length<s;)this.V=this._hmac().update(this.V).digest(),u=u.concat(this.V);var c=u.slice(0,s);return this._update(f),this._reseed++,n.encode(c,l)},hmacDrbg}var key$1,hasRequiredKey$1;function requireKey$1(){if(hasRequiredKey$1)return key$1;hasRequiredKey$1=1;var r=requireBn$2(),n=requireUtils$1(),a=n.assert;function i(o,s){this.ec=o,this.priv=null,this.pub=null,s.priv&&this._importPrivate(s.priv,s.privEnc),s.pub&&this._importPublic(s.pub,s.pubEnc)}return key$1=i,i.fromPublic=function(s,l,f){return l instanceof i?l:new i(s,{pub:l,pubEnc:f})},i.fromPrivate=function(s,l,f){return l instanceof i?l:new i(s,{priv:l,privEnc:f})},i.prototype.validate=function(){var s=this.getPublic();return s.isInfinity()?{result:!1,reason:"Invalid public key"}:s.validate()?s.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},i.prototype.getPublic=function(s,l){return typeof s=="string"&&(l=s,s=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),l?this.pub.encode(l,s):this.pub},i.prototype.getPrivate=function(s){return s==="hex"?this.priv.toString(16,2):this.priv},i.prototype._importPrivate=function(s,l){this.priv=new r(s,l||16),this.priv=this.priv.umod(this.ec.curve.n)},i.prototype._importPublic=function(s,l){if(s.x||s.y){this.ec.curve.type==="mont"?a(s.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&a(s.x&&s.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(s.x,s.y);return}this.pub=this.ec.curve.decodePoint(s,l)},i.prototype.derive=function(s){return s.validate()||a(s.validate(),"public point not validated"),s.mul(this.priv).getX()},i.prototype.sign=function(s,l,f){return this.ec.sign(s,this,l,f)},i.prototype.verify=function(s,l,f){return this.ec.verify(s,l,this,void 0,f)},i.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},key$1}var signature$1,hasRequiredSignature$1;function requireSignature$1(){if(hasRequiredSignature$1)return signature$1;hasRequiredSignature$1=1;var r=requireBn$2(),n=requireUtils$1(),a=n.assert;function i(d,u){if(d instanceof i)return d;this._importDER(d,u)||(a(d.r&&d.s,"Signature without r or s"),this.r=new r(d.r,16),this.s=new r(d.s,16),d.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=d.recoveryParam)}signature$1=i;function o(){this.place=0}function s(d,u){var c=d[u.place++];if(!(c&128))return c;var v=c&15;if(v===0||v>4||d[u.place]===0)return!1;for(var h=0,m=0,g=u.place;m<v;m++,g++)h<<=8,h|=d[g],h>>>=0;return h<=127?!1:(u.place=g,h)}function l(d){for(var u=0,c=d.length-1;!d[u]&&!(d[u+1]&128)&&u<c;)u++;return u===0?d:d.slice(u)}i.prototype._importDER=function(u,c){u=n.toArray(u,c);var v=new o;if(u[v.place++]!==48)return!1;var h=s(u,v);if(h===!1||h+v.place!==u.length||u[v.place++]!==2)return!1;var m=s(u,v);if(m===!1||(u[v.place]&128)!==0)return!1;var g=u.slice(v.place,m+v.place);if(v.place+=m,u[v.place++]!==2)return!1;var _=s(u,v);if(_===!1||u.length!==_+v.place||(u[v.place]&128)!==0)return!1;var S=u.slice(v.place,_+v.place);if(g[0]===0)if(g[1]&128)g=g.slice(1);else return!1;if(S[0]===0)if(S[1]&128)S=S.slice(1);else return!1;return this.r=new r(g),this.s=new r(S),this.recoveryParam=null,!0};function f(d,u){if(u<128){d.push(u);return}var c=1+(Math.log(u)/Math.LN2>>>3);for(d.push(c|128);--c;)d.push(u>>>(c<<3)&255);d.push(u)}return i.prototype.toDER=function(u){var c=this.r.toArray(),v=this.s.toArray();for(c[0]&128&&(c=[0].concat(c)),v[0]&128&&(v=[0].concat(v)),c=l(c),v=l(v);!v[0]&&!(v[1]&128);)v=v.slice(1);var h=[2];f(h,c.length),h=h.concat(c),h.push(2),f(h,v.length);var m=h.concat(v),g=[48];return f(g,m.length),g=g.concat(m),n.encode(g,u)},signature$1}var ec,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec;hasRequiredEc=1;var r=requireBn$2(),n=requireHmacDrbg(),a=requireUtils$1(),i=requireCurves(),o=requireBrorand(),s=a.assert,l=requireKey$1(),f=requireSignature$1();function d(u){if(!(this instanceof d))return new d(u);typeof u=="string"&&(s(Object.prototype.hasOwnProperty.call(i,u),"Unknown curve "+u),u=i[u]),u instanceof i.PresetCurve&&(u={curve:u}),this.curve=u.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=u.curve.g,this.g.precompute(u.curve.n.bitLength()+1),this.hash=u.hash||u.curve.hash}return ec=d,d.prototype.keyPair=function(c){return new l(this,c)},d.prototype.keyFromPrivate=function(c,v){return l.fromPrivate(this,c,v)},d.prototype.keyFromPublic=function(c,v){return l.fromPublic(this,c,v)},d.prototype.genKeyPair=function(c){c||(c={});for(var v=new n({hash:this.hash,pers:c.pers,persEnc:c.persEnc||"utf8",entropy:c.entropy||o(this.hash.hmacStrength),entropyEnc:c.entropy&&c.entropyEnc||"utf8",nonce:this.n.toArray()}),h=this.n.byteLength(),m=this.n.sub(new r(2));;){var g=new r(v.generate(h));if(!(g.cmp(m)>0))return g.iaddn(1),this.keyFromPrivate(g)}},d.prototype._truncateToN=function(c,v,h){var m;if(r.isBN(c)||typeof c=="number")c=new r(c,16),m=c.byteLength();else if(typeof c=="object")m=c.length,c=new r(c,16);else{var g=c.toString();m=g.length+1>>>1,c=new r(g,16)}typeof h!="number"&&(h=m*8);var _=h-this.n.bitLength();return _>0&&(c=c.ushrn(_)),!v&&c.cmp(this.n)>=0?c.sub(this.n):c},d.prototype.sign=function(c,v,h,m){if(typeof h=="object"&&(m=h,h=null),m||(m={}),typeof c!="string"&&typeof c!="number"&&!r.isBN(c)){s(typeof c=="object"&&c&&typeof c.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),s(c.length>>>0===c.length);for(var g=0;g<c.length;g++)s((c[g]&255)===c[g])}v=this.keyFromPrivate(v,h),c=this._truncateToN(c,!1,m.msgBitLength),s(!c.isNeg(),"Can not sign a negative message");var _=this.n.byteLength(),S=v.getPrivate().toArray("be",_),N=c.toArray("be",_);s(new r(N).eq(c),"Can not sign message");for(var O=new n({hash:this.hash,entropy:S,nonce:N,pers:m.pers,persEnc:m.persEnc||"utf8"}),M=this.n.sub(new r(1)),F=0;;F++){var L=m.k?m.k(F):new r(O.generate(this.n.byteLength()));if(L=this._truncateToN(L,!0),!(L.cmpn(1)<=0||L.cmp(M)>=0)){var k=this.g.mul(L);if(!k.isInfinity()){var P=k.getX(),U=P.umod(this.n);if(U.cmpn(0)!==0){var B=L.invm(this.n).mul(U.mul(v.getPrivate()).iadd(c));if(B=B.umod(this.n),B.cmpn(0)!==0){var j=(k.getY().isOdd()?1:0)|(P.cmp(U)!==0?2:0);return m.canonical&&B.cmp(this.nh)>0&&(B=this.n.sub(B),j^=1),new f({r:U,s:B,recoveryParam:j})}}}}}},d.prototype.verify=function(c,v,h,m,g){g||(g={}),c=this._truncateToN(c,!1,g.msgBitLength),h=this.keyFromPublic(h,m),v=new f(v,"hex");var _=v.r,S=v.s;if(_.cmpn(1)<0||_.cmp(this.n)>=0||S.cmpn(1)<0||S.cmp(this.n)>=0)return!1;var N=S.invm(this.n),O=N.mul(c).umod(this.n),M=N.mul(_).umod(this.n),F;return this.curve._maxwellTrick?(F=this.g.jmulAdd(O,h.getPublic(),M),F.isInfinity()?!1:F.eqXToP(_)):(F=this.g.mulAdd(O,h.getPublic(),M),F.isInfinity()?!1:F.getX().umod(this.n).cmp(_)===0)},d.prototype.recoverPubKey=function(u,c,v,h){s((3&v)===v,"The recovery param is more than two bits"),c=new f(c,h);var m=this.n,g=new r(u),_=c.r,S=c.s,N=v&1,O=v>>1;if(_.cmp(this.curve.p.umod(this.curve.n))>=0&&O)throw new Error("Unable to find sencond key candinate");O?_=this.curve.pointFromX(_.add(this.curve.n),N):_=this.curve.pointFromX(_,N);var M=c.r.invm(m),F=m.sub(g).mul(M).umod(m),L=S.mul(M).umod(m);return this.g.mulAdd(F,_,L)},d.prototype.getKeyRecoveryParam=function(u,c,v,h){if(c=new f(c,h),c.recoveryParam!==null)return c.recoveryParam;for(var m=0;m<4;m++){var g;try{g=this.recoverPubKey(u,c,m)}catch{continue}if(g.eq(v))return m}throw new Error("Unable to find valid recovery factor")},ec}var key,hasRequiredKey;function requireKey(){if(hasRequiredKey)return key;hasRequiredKey=1;var r=requireUtils$1(),n=r.assert,a=r.parseBytes,i=r.cachedProperty;function o(s,l){this.eddsa=s,this._secret=a(l.secret),s.isPoint(l.pub)?this._pub=l.pub:this._pubBytes=a(l.pub)}return o.fromPublic=function(l,f){return f instanceof o?f:new o(l,{pub:f})},o.fromSecret=function(l,f){return f instanceof o?f:new o(l,{secret:f})},o.prototype.secret=function(){return this._secret},i(o,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),i(o,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),i(o,"privBytes",function(){var l=this.eddsa,f=this.hash(),d=l.encodingLength-1,u=f.slice(0,l.encodingLength);return u[0]&=248,u[d]&=127,u[d]|=64,u}),i(o,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),i(o,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),i(o,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),o.prototype.sign=function(l){return n(this._secret,"KeyPair can only verify"),this.eddsa.sign(l,this)},o.prototype.verify=function(l,f){return this.eddsa.verify(l,f,this)},o.prototype.getSecret=function(l){return n(this._secret,"KeyPair is public only"),r.encode(this.secret(),l)},o.prototype.getPublic=function(l){return r.encode(this.pubBytes(),l)},key=o,key}var signature,hasRequiredSignature;function requireSignature(){if(hasRequiredSignature)return signature;hasRequiredSignature=1;var r=requireBn$2(),n=requireUtils$1(),a=n.assert,i=n.cachedProperty,o=n.parseBytes;function s(l,f){this.eddsa=l,typeof f!="object"&&(f=o(f)),Array.isArray(f)&&(a(f.length===l.encodingLength*2,"Signature has invalid size"),f={R:f.slice(0,l.encodingLength),S:f.slice(l.encodingLength)}),a(f.R&&f.S,"Signature without R or S"),l.isPoint(f.R)&&(this._R=f.R),f.S instanceof r&&(this._S=f.S),this._Rencoded=Array.isArray(f.R)?f.R:f.Rencoded,this._Sencoded=Array.isArray(f.S)?f.S:f.Sencoded}return i(s,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),i(s,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),i(s,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),i(s,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),s.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},s.prototype.toHex=function(){return n.encode(this.toBytes(),"hex").toUpperCase()},signature=s,signature}var eddsa,hasRequiredEddsa;function requireEddsa(){if(hasRequiredEddsa)return eddsa;hasRequiredEddsa=1;var r=requireHash(),n=requireCurves(),a=requireUtils$1(),i=a.assert,o=a.parseBytes,s=requireKey(),l=requireSignature();function f(d){if(i(d==="ed25519","only tested with ed25519 so far"),!(this instanceof f))return new f(d);d=n[d].curve,this.curve=d,this.g=d.g,this.g.precompute(d.n.bitLength()+1),this.pointClass=d.point().constructor,this.encodingLength=Math.ceil(d.n.bitLength()/8),this.hash=r.sha512}return eddsa=f,f.prototype.sign=function(u,c){u=o(u);var v=this.keyFromSecret(c),h=this.hashInt(v.messagePrefix(),u),m=this.g.mul(h),g=this.encodePoint(m),_=this.hashInt(g,v.pubBytes(),u).mul(v.priv()),S=h.add(_).umod(this.curve.n);return this.makeSignature({R:m,S,Rencoded:g})},f.prototype.verify=function(u,c,v){if(u=o(u),c=this.makeSignature(c),c.S().gte(c.eddsa.curve.n)||c.S().isNeg())return!1;var h=this.keyFromPublic(v),m=this.hashInt(c.Rencoded(),h.pubBytes(),u),g=this.g.mul(c.S()),_=c.R().add(h.pub().mul(m));return _.eq(g)},f.prototype.hashInt=function(){for(var u=this.hash(),c=0;c<arguments.length;c++)u.update(arguments[c]);return a.intFromLE(u.digest()).umod(this.curve.n)},f.prototype.keyFromPublic=function(u){return s.fromPublic(this,u)},f.prototype.keyFromSecret=function(u){return s.fromSecret(this,u)},f.prototype.makeSignature=function(u){return u instanceof l?u:new l(this,u)},f.prototype.encodePoint=function(u){var c=u.getY().toArray("le",this.encodingLength);return c[this.encodingLength-1]|=u.getX().isOdd()?128:0,c},f.prototype.decodePoint=function(u){u=a.parseBytes(u);var c=u.length-1,v=u.slice(0,c).concat(u[c]&-129),h=(u[c]&128)!==0,m=a.intFromLE(v);return this.curve.pointFromY(m,h)},f.prototype.encodeInt=function(u){return u.toArray("le",this.encodingLength)},f.prototype.decodeInt=function(u){return a.intFromLE(u)},f.prototype.isPoint=function(u){return u instanceof this.pointClass},eddsa}var hasRequiredElliptic;function requireElliptic(){return hasRequiredElliptic||(hasRequiredElliptic=1,function(r){var n=r;n.version=require$$0$1.version,n.utils=requireUtils$1(),n.rand=requireBrorand(),n.curve=requireCurve(),n.curves=requireCurves(),n.ec=requireEc(),n.eddsa=requireEddsa()}(elliptic)),elliptic}var bn$1={exports:{}},bn=bn$1.exports,hasRequiredBn;function requireBn(){return hasRequiredBn||(hasRequiredBn=1,function(r){(function(n,a){function i(R,y){if(!R)throw new Error(y||"Assertion failed")}function o(R,y){R.super_=y;var b=function(){};b.prototype=y.prototype,R.prototype=new b,R.prototype.constructor=R}function s(R,y,b){if(s.isBN(R))return R;this.negative=0,this.words=null,this.length=0,this.red=null,R!==null&&((y==="le"||y==="be")&&(b=y,y=10),this._init(R||0,y||10,b||"be"))}typeof n=="object"?n.exports=s:a.BN=s,s.BN=s,s.wordSize=26;var l;try{typeof window<"u"&&typeof window.Buffer<"u"?l=window.Buffer:l=requireDist().Buffer}catch{}s.isBN=function(y){return y instanceof s?!0:y!==null&&typeof y=="object"&&y.constructor.wordSize===s.wordSize&&Array.isArray(y.words)},s.max=function(y,b){return y.cmp(b)>0?y:b},s.min=function(y,b){return y.cmp(b)<0?y:b},s.prototype._init=function(y,b,D){if(typeof y=="number")return this._initNumber(y,b,D);if(typeof y=="object")return this._initArray(y,b,D);b==="hex"&&(b=16),i(b===(b|0)&&b>=2&&b<=36),y=y.toString().replace(/\s+/g,"");var I=0;y[0]==="-"&&(I++,this.negative=1),I<y.length&&(b===16?this._parseHex(y,I,D):(this._parseBase(y,b,I),D==="le"&&this._initArray(this.toArray(),b,D)))},s.prototype._initNumber=function(y,b,D){y<0&&(this.negative=1,y=-y),y<67108864?(this.words=[y&67108863],this.length=1):y<4503599627370496?(this.words=[y&67108863,y/67108864&67108863],this.length=2):(i(y<9007199254740992),this.words=[y&67108863,y/67108864&67108863,1],this.length=3),D==="le"&&this._initArray(this.toArray(),b,D)},s.prototype._initArray=function(y,b,D){if(i(typeof y.length=="number"),y.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(y.length/3),this.words=new Array(this.length);for(var I=0;I<this.length;I++)this.words[I]=0;var T,C,x=0;if(D==="be")for(I=y.length-1,T=0;I>=0;I-=3)C=y[I]|y[I-1]<<8|y[I-2]<<16,this.words[T]|=C<<x&67108863,this.words[T+1]=C>>>26-x&67108863,x+=24,x>=26&&(x-=26,T++);else if(D==="le")for(I=0,T=0;I<y.length;I+=3)C=y[I]|y[I+1]<<8|y[I+2]<<16,this.words[T]|=C<<x&67108863,this.words[T+1]=C>>>26-x&67108863,x+=24,x>=26&&(x-=26,T++);return this._strip()};function f(R,y){var b=R.charCodeAt(y);if(b>=48&&b<=57)return b-48;if(b>=65&&b<=70)return b-55;if(b>=97&&b<=102)return b-87;i(!1,"Invalid character in "+R)}function d(R,y,b){var D=f(R,b);return b-1>=y&&(D|=f(R,b-1)<<4),D}s.prototype._parseHex=function(y,b,D){this.length=Math.ceil((y.length-b)/6),this.words=new Array(this.length);for(var I=0;I<this.length;I++)this.words[I]=0;var T=0,C=0,x;if(D==="be")for(I=y.length-1;I>=b;I-=2)x=d(y,b,I)<<T,this.words[C]|=x&67108863,T>=18?(T-=18,C+=1,this.words[C]|=x>>>26):T+=8;else{var w=y.length-b;for(I=w%2===0?b+1:b;I<y.length;I+=2)x=d(y,b,I)<<T,this.words[C]|=x&67108863,T>=18?(T-=18,C+=1,this.words[C]|=x>>>26):T+=8}this._strip()};function u(R,y,b,D){for(var I=0,T=0,C=Math.min(R.length,b),x=y;x<C;x++){var w=R.charCodeAt(x)-48;I*=D,w>=49?T=w-49+10:w>=17?T=w-17+10:T=w,i(w>=0&&T<D,"Invalid character"),I+=T}return I}s.prototype._parseBase=function(y,b,D){this.words=[0],this.length=1;for(var I=0,T=1;T<=67108863;T*=b)I++;I--,T=T/b|0;for(var C=y.length-D,x=C%I,w=Math.min(C,C-x)+D,E=0,q=D;q<w;q+=I)E=u(y,q,q+I,b),this.imuln(T),this.words[0]+E<67108864?this.words[0]+=E:this._iaddn(E);if(x!==0){var G=1;for(E=u(y,q,y.length,b),q=0;q<x;q++)G*=b;this.imuln(G),this.words[0]+E<67108864?this.words[0]+=E:this._iaddn(E)}this._strip()},s.prototype.copy=function(y){y.words=new Array(this.length);for(var b=0;b<this.length;b++)y.words[b]=this.words[b];y.length=this.length,y.negative=this.negative,y.red=this.red};function c(R,y){R.words=y.words,R.length=y.length,R.negative=y.negative,R.red=y.red}if(s.prototype._move=function(y){c(y,this)},s.prototype.clone=function(){var y=new s(null);return this.copy(y),y},s.prototype._expand=function(y){for(;this.length<y;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=v}catch{s.prototype.inspect=v}else s.prototype.inspect=v;function v(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],g=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(y,b){y=y||10,b=b|0||1;var D;if(y===16||y==="hex"){D="";for(var I=0,T=0,C=0;C<this.length;C++){var x=this.words[C],w=((x<<I|T)&16777215).toString(16);T=x>>>24-I&16777215,I+=2,I>=26&&(I-=26,C--),T!==0||C!==this.length-1?D=h[6-w.length]+w+D:D=w+D}for(T!==0&&(D=T.toString(16)+D);D.length%b!==0;)D="0"+D;return this.negative!==0&&(D="-"+D),D}if(y===(y|0)&&y>=2&&y<=36){var E=m[y],q=g[y];D="";var G=this.clone();for(G.negative=0;!G.isZero();){var z=G.modrn(q).toString(y);G=G.idivn(q),G.isZero()?D=z+D:D=h[E-z.length]+z+D}for(this.isZero()&&(D="0"+D);D.length%b!==0;)D="0"+D;return this.negative!==0&&(D="-"+D),D}i(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var y=this.words[0];return this.length===2?y+=this.words[1]*67108864:this.length===3&&this.words[2]===1?y+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-y:y},s.prototype.toJSON=function(){return this.toString(16,2)},l&&(s.prototype.toBuffer=function(y,b){return this.toArrayLike(l,y,b)}),s.prototype.toArray=function(y,b){return this.toArrayLike(Array,y,b)};var _=function(y,b){return y.allocUnsafe?y.allocUnsafe(b):new y(b)};s.prototype.toArrayLike=function(y,b,D){this._strip();var I=this.byteLength(),T=D||Math.max(1,I);i(I<=T,"byte array longer than desired length"),i(T>0,"Requested array length <= 0");var C=_(y,T),x=b==="le"?"LE":"BE";return this["_toArrayLike"+x](C,I),C},s.prototype._toArrayLikeLE=function(y,b){for(var D=0,I=0,T=0,C=0;T<this.length;T++){var x=this.words[T]<<C|I;y[D++]=x&255,D<y.length&&(y[D++]=x>>8&255),D<y.length&&(y[D++]=x>>16&255),C===6?(D<y.length&&(y[D++]=x>>24&255),I=0,C=0):(I=x>>>24,C+=2)}if(D<y.length)for(y[D++]=I;D<y.length;)y[D++]=0},s.prototype._toArrayLikeBE=function(y,b){for(var D=y.length-1,I=0,T=0,C=0;T<this.length;T++){var x=this.words[T]<<C|I;y[D--]=x&255,D>=0&&(y[D--]=x>>8&255),D>=0&&(y[D--]=x>>16&255),C===6?(D>=0&&(y[D--]=x>>24&255),I=0,C=0):(I=x>>>24,C+=2)}if(D>=0)for(y[D--]=I;D>=0;)y[D--]=0},Math.clz32?s.prototype._countBits=function(y){return 32-Math.clz32(y)}:s.prototype._countBits=function(y){var b=y,D=0;return b>=4096&&(D+=13,b>>>=13),b>=64&&(D+=7,b>>>=7),b>=8&&(D+=4,b>>>=4),b>=2&&(D+=2,b>>>=2),D+b},s.prototype._zeroBits=function(y){if(y===0)return 26;var b=y,D=0;return(b&8191)===0&&(D+=13,b>>>=13),(b&127)===0&&(D+=7,b>>>=7),(b&15)===0&&(D+=4,b>>>=4),(b&3)===0&&(D+=2,b>>>=2),(b&1)===0&&D++,D},s.prototype.bitLength=function(){var y=this.words[this.length-1],b=this._countBits(y);return(this.length-1)*26+b};function S(R){for(var y=new Array(R.bitLength()),b=0;b<y.length;b++){var D=b/26|0,I=b%26;y[b]=R.words[D]>>>I&1}return y}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var y=0,b=0;b<this.length;b++){var D=this._zeroBits(this.words[b]);if(y+=D,D!==26)break}return y},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(y){return this.negative!==0?this.abs().inotn(y).iaddn(1):this.clone()},s.prototype.fromTwos=function(y){return this.testn(y-1)?this.notn(y).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(y){for(;this.length<y.length;)this.words[this.length++]=0;for(var b=0;b<y.length;b++)this.words[b]=this.words[b]|y.words[b];return this._strip()},s.prototype.ior=function(y){return i((this.negative|y.negative)===0),this.iuor(y)},s.prototype.or=function(y){return this.length>y.length?this.clone().ior(y):y.clone().ior(this)},s.prototype.uor=function(y){return this.length>y.length?this.clone().iuor(y):y.clone().iuor(this)},s.prototype.iuand=function(y){var b;this.length>y.length?b=y:b=this;for(var D=0;D<b.length;D++)this.words[D]=this.words[D]&y.words[D];return this.length=b.length,this._strip()},s.prototype.iand=function(y){return i((this.negative|y.negative)===0),this.iuand(y)},s.prototype.and=function(y){return this.length>y.length?this.clone().iand(y):y.clone().iand(this)},s.prototype.uand=function(y){return this.length>y.length?this.clone().iuand(y):y.clone().iuand(this)},s.prototype.iuxor=function(y){var b,D;this.length>y.length?(b=this,D=y):(b=y,D=this);for(var I=0;I<D.length;I++)this.words[I]=b.words[I]^D.words[I];if(this!==b)for(;I<b.length;I++)this.words[I]=b.words[I];return this.length=b.length,this._strip()},s.prototype.ixor=function(y){return i((this.negative|y.negative)===0),this.iuxor(y)},s.prototype.xor=function(y){return this.length>y.length?this.clone().ixor(y):y.clone().ixor(this)},s.prototype.uxor=function(y){return this.length>y.length?this.clone().iuxor(y):y.clone().iuxor(this)},s.prototype.inotn=function(y){i(typeof y=="number"&&y>=0);var b=Math.ceil(y/26)|0,D=y%26;this._expand(b),D>0&&b--;for(var I=0;I<b;I++)this.words[I]=~this.words[I]&67108863;return D>0&&(this.words[I]=~this.words[I]&67108863>>26-D),this._strip()},s.prototype.notn=function(y){return this.clone().inotn(y)},s.prototype.setn=function(y,b){i(typeof y=="number"&&y>=0);var D=y/26|0,I=y%26;return this._expand(D+1),b?this.words[D]=this.words[D]|1<<I:this.words[D]=this.words[D]&~(1<<I),this._strip()},s.prototype.iadd=function(y){var b;if(this.negative!==0&&y.negative===0)return this.negative=0,b=this.isub(y),this.negative^=1,this._normSign();if(this.negative===0&&y.negative!==0)return y.negative=0,b=this.isub(y),y.negative=1,b._normSign();var D,I;this.length>y.length?(D=this,I=y):(D=y,I=this);for(var T=0,C=0;C<I.length;C++)b=(D.words[C]|0)+(I.words[C]|0)+T,this.words[C]=b&67108863,T=b>>>26;for(;T!==0&&C<D.length;C++)b=(D.words[C]|0)+T,this.words[C]=b&67108863,T=b>>>26;if(this.length=D.length,T!==0)this.words[this.length]=T,this.length++;else if(D!==this)for(;C<D.length;C++)this.words[C]=D.words[C];return this},s.prototype.add=function(y){var b;return y.negative!==0&&this.negative===0?(y.negative=0,b=this.sub(y),y.negative^=1,b):y.negative===0&&this.negative!==0?(this.negative=0,b=y.sub(this),this.negative=1,b):this.length>y.length?this.clone().iadd(y):y.clone().iadd(this)},s.prototype.isub=function(y){if(y.negative!==0){y.negative=0;var b=this.iadd(y);return y.negative=1,b._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(y),this.negative=1,this._normSign();var D=this.cmp(y);if(D===0)return this.negative=0,this.length=1,this.words[0]=0,this;var I,T;D>0?(I=this,T=y):(I=y,T=this);for(var C=0,x=0;x<T.length;x++)b=(I.words[x]|0)-(T.words[x]|0)+C,C=b>>26,this.words[x]=b&67108863;for(;C!==0&&x<I.length;x++)b=(I.words[x]|0)+C,C=b>>26,this.words[x]=b&67108863;if(C===0&&x<I.length&&I!==this)for(;x<I.length;x++)this.words[x]=I.words[x];return this.length=Math.max(this.length,x),I!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(y){return this.clone().isub(y)};function N(R,y,b){b.negative=y.negative^R.negative;var D=R.length+y.length|0;b.length=D,D=D-1|0;var I=R.words[0]|0,T=y.words[0]|0,C=I*T,x=C&67108863,w=C/67108864|0;b.words[0]=x;for(var E=1;E<D;E++){for(var q=w>>>26,G=w&67108863,z=Math.min(E,y.length-1),H=Math.max(0,E-R.length+1);H<=z;H++){var V=E-H|0;I=R.words[V]|0,T=y.words[H]|0,C=I*T+G,q+=C/67108864|0,G=C&67108863}b.words[E]=G|0,w=q|0}return w!==0?b.words[E]=w|0:b.length--,b._strip()}var O=function(y,b,D){var I=y.words,T=b.words,C=D.words,x=0,w,E,q,G=I[0]|0,z=G&8191,H=G>>>13,V=I[1]|0,K=V&8191,Z=V>>>13,re=I[2]|0,W=re&8191,X=re>>>13,J=I[3]|0,ie=J&8191,ne=J>>>13,ae=I[4]|0,ue=ae&8191,fe=ae>>>13,se=I[5]|0,pe=se&8191,ce=se>>>13,he=I[6]|0,ve=he&8191,ye=he>>>13,be=I[7]|0,_e=be&8191,me=be>>>13,Pe=I[8]|0,Ne=Pe&8191,Ee=Pe>>>13,Be=I[9]|0,Ce=Be&8191,Re=Be>>>13,Ge=T[0]|0,Me=Ge&8191,Te=Ge>>>13,Ke=T[1]|0,Fe=Ke&8191,Ie=Ke>>>13,Qe=T[2]|0,qe=Qe&8191,Se=Qe>>>13,je=T[3]|0,Le=je&8191,we=je>>>13,He=T[4]|0,$e=He&8191,ee=He>>>13,Q=T[5]|0,Y=Q&8191,te=Q>>>13,oe=T[6]|0,le=oe&8191,de=oe>>>13,De=T[7]|0,Ae=De&8191,ge=De>>>13,ke=T[8]|0,xe=ke&8191,Oe=ke>>>13,ze=T[9]|0,Ue=ze&8191,Ve=ze>>>13;D.negative=y.negative^b.negative,D.length=19,w=Math.imul(z,Me),E=Math.imul(z,Te),E=E+Math.imul(H,Me)|0,q=Math.imul(H,Te);var Ye=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,w=Math.imul(K,Me),E=Math.imul(K,Te),E=E+Math.imul(Z,Me)|0,q=Math.imul(Z,Te),w=w+Math.imul(z,Fe)|0,E=E+Math.imul(z,Ie)|0,E=E+Math.imul(H,Fe)|0,q=q+Math.imul(H,Ie)|0;var We=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(We>>>26)|0,We&=67108863,w=Math.imul(W,Me),E=Math.imul(W,Te),E=E+Math.imul(X,Me)|0,q=Math.imul(X,Te),w=w+Math.imul(K,Fe)|0,E=E+Math.imul(K,Ie)|0,E=E+Math.imul(Z,Fe)|0,q=q+Math.imul(Z,Ie)|0,w=w+Math.imul(z,qe)|0,E=E+Math.imul(z,Se)|0,E=E+Math.imul(H,qe)|0,q=q+Math.imul(H,Se)|0;var Xe=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,w=Math.imul(ie,Me),E=Math.imul(ie,Te),E=E+Math.imul(ne,Me)|0,q=Math.imul(ne,Te),w=w+Math.imul(W,Fe)|0,E=E+Math.imul(W,Ie)|0,E=E+Math.imul(X,Fe)|0,q=q+Math.imul(X,Ie)|0,w=w+Math.imul(K,qe)|0,E=E+Math.imul(K,Se)|0,E=E+Math.imul(Z,qe)|0,q=q+Math.imul(Z,Se)|0,w=w+Math.imul(z,Le)|0,E=E+Math.imul(z,we)|0,E=E+Math.imul(H,Le)|0,q=q+Math.imul(H,we)|0;var Je=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(Je>>>26)|0,Je&=67108863,w=Math.imul(ue,Me),E=Math.imul(ue,Te),E=E+Math.imul(fe,Me)|0,q=Math.imul(fe,Te),w=w+Math.imul(ie,Fe)|0,E=E+Math.imul(ie,Ie)|0,E=E+Math.imul(ne,Fe)|0,q=q+Math.imul(ne,Ie)|0,w=w+Math.imul(W,qe)|0,E=E+Math.imul(W,Se)|0,E=E+Math.imul(X,qe)|0,q=q+Math.imul(X,Se)|0,w=w+Math.imul(K,Le)|0,E=E+Math.imul(K,we)|0,E=E+Math.imul(Z,Le)|0,q=q+Math.imul(Z,we)|0,w=w+Math.imul(z,$e)|0,E=E+Math.imul(z,ee)|0,E=E+Math.imul(H,$e)|0,q=q+Math.imul(H,ee)|0;var Ze=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,w=Math.imul(pe,Me),E=Math.imul(pe,Te),E=E+Math.imul(ce,Me)|0,q=Math.imul(ce,Te),w=w+Math.imul(ue,Fe)|0,E=E+Math.imul(ue,Ie)|0,E=E+Math.imul(fe,Fe)|0,q=q+Math.imul(fe,Ie)|0,w=w+Math.imul(ie,qe)|0,E=E+Math.imul(ie,Se)|0,E=E+Math.imul(ne,qe)|0,q=q+Math.imul(ne,Se)|0,w=w+Math.imul(W,Le)|0,E=E+Math.imul(W,we)|0,E=E+Math.imul(X,Le)|0,q=q+Math.imul(X,we)|0,w=w+Math.imul(K,$e)|0,E=E+Math.imul(K,ee)|0,E=E+Math.imul(Z,$e)|0,q=q+Math.imul(Z,ee)|0,w=w+Math.imul(z,Y)|0,E=E+Math.imul(z,te)|0,E=E+Math.imul(H,Y)|0,q=q+Math.imul(H,te)|0;var er=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(er>>>26)|0,er&=67108863,w=Math.imul(ve,Me),E=Math.imul(ve,Te),E=E+Math.imul(ye,Me)|0,q=Math.imul(ye,Te),w=w+Math.imul(pe,Fe)|0,E=E+Math.imul(pe,Ie)|0,E=E+Math.imul(ce,Fe)|0,q=q+Math.imul(ce,Ie)|0,w=w+Math.imul(ue,qe)|0,E=E+Math.imul(ue,Se)|0,E=E+Math.imul(fe,qe)|0,q=q+Math.imul(fe,Se)|0,w=w+Math.imul(ie,Le)|0,E=E+Math.imul(ie,we)|0,E=E+Math.imul(ne,Le)|0,q=q+Math.imul(ne,we)|0,w=w+Math.imul(W,$e)|0,E=E+Math.imul(W,ee)|0,E=E+Math.imul(X,$e)|0,q=q+Math.imul(X,ee)|0,w=w+Math.imul(K,Y)|0,E=E+Math.imul(K,te)|0,E=E+Math.imul(Z,Y)|0,q=q+Math.imul(Z,te)|0,w=w+Math.imul(z,le)|0,E=E+Math.imul(z,de)|0,E=E+Math.imul(H,le)|0,q=q+Math.imul(H,de)|0;var rr=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(rr>>>26)|0,rr&=67108863,w=Math.imul(_e,Me),E=Math.imul(_e,Te),E=E+Math.imul(me,Me)|0,q=Math.imul(me,Te),w=w+Math.imul(ve,Fe)|0,E=E+Math.imul(ve,Ie)|0,E=E+Math.imul(ye,Fe)|0,q=q+Math.imul(ye,Ie)|0,w=w+Math.imul(pe,qe)|0,E=E+Math.imul(pe,Se)|0,E=E+Math.imul(ce,qe)|0,q=q+Math.imul(ce,Se)|0,w=w+Math.imul(ue,Le)|0,E=E+Math.imul(ue,we)|0,E=E+Math.imul(fe,Le)|0,q=q+Math.imul(fe,we)|0,w=w+Math.imul(ie,$e)|0,E=E+Math.imul(ie,ee)|0,E=E+Math.imul(ne,$e)|0,q=q+Math.imul(ne,ee)|0,w=w+Math.imul(W,Y)|0,E=E+Math.imul(W,te)|0,E=E+Math.imul(X,Y)|0,q=q+Math.imul(X,te)|0,w=w+Math.imul(K,le)|0,E=E+Math.imul(K,de)|0,E=E+Math.imul(Z,le)|0,q=q+Math.imul(Z,de)|0,w=w+Math.imul(z,Ae)|0,E=E+Math.imul(z,ge)|0,E=E+Math.imul(H,Ae)|0,q=q+Math.imul(H,ge)|0;var tr=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(tr>>>26)|0,tr&=67108863,w=Math.imul(Ne,Me),E=Math.imul(Ne,Te),E=E+Math.imul(Ee,Me)|0,q=Math.imul(Ee,Te),w=w+Math.imul(_e,Fe)|0,E=E+Math.imul(_e,Ie)|0,E=E+Math.imul(me,Fe)|0,q=q+Math.imul(me,Ie)|0,w=w+Math.imul(ve,qe)|0,E=E+Math.imul(ve,Se)|0,E=E+Math.imul(ye,qe)|0,q=q+Math.imul(ye,Se)|0,w=w+Math.imul(pe,Le)|0,E=E+Math.imul(pe,we)|0,E=E+Math.imul(ce,Le)|0,q=q+Math.imul(ce,we)|0,w=w+Math.imul(ue,$e)|0,E=E+Math.imul(ue,ee)|0,E=E+Math.imul(fe,$e)|0,q=q+Math.imul(fe,ee)|0,w=w+Math.imul(ie,Y)|0,E=E+Math.imul(ie,te)|0,E=E+Math.imul(ne,Y)|0,q=q+Math.imul(ne,te)|0,w=w+Math.imul(W,le)|0,E=E+Math.imul(W,de)|0,E=E+Math.imul(X,le)|0,q=q+Math.imul(X,de)|0,w=w+Math.imul(K,Ae)|0,E=E+Math.imul(K,ge)|0,E=E+Math.imul(Z,Ae)|0,q=q+Math.imul(Z,ge)|0,w=w+Math.imul(z,xe)|0,E=E+Math.imul(z,Oe)|0,E=E+Math.imul(H,xe)|0,q=q+Math.imul(H,Oe)|0;var nr=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(nr>>>26)|0,nr&=67108863,w=Math.imul(Ce,Me),E=Math.imul(Ce,Te),E=E+Math.imul(Re,Me)|0,q=Math.imul(Re,Te),w=w+Math.imul(Ne,Fe)|0,E=E+Math.imul(Ne,Ie)|0,E=E+Math.imul(Ee,Fe)|0,q=q+Math.imul(Ee,Ie)|0,w=w+Math.imul(_e,qe)|0,E=E+Math.imul(_e,Se)|0,E=E+Math.imul(me,qe)|0,q=q+Math.imul(me,Se)|0,w=w+Math.imul(ve,Le)|0,E=E+Math.imul(ve,we)|0,E=E+Math.imul(ye,Le)|0,q=q+Math.imul(ye,we)|0,w=w+Math.imul(pe,$e)|0,E=E+Math.imul(pe,ee)|0,E=E+Math.imul(ce,$e)|0,q=q+Math.imul(ce,ee)|0,w=w+Math.imul(ue,Y)|0,E=E+Math.imul(ue,te)|0,E=E+Math.imul(fe,Y)|0,q=q+Math.imul(fe,te)|0,w=w+Math.imul(ie,le)|0,E=E+Math.imul(ie,de)|0,E=E+Math.imul(ne,le)|0,q=q+Math.imul(ne,de)|0,w=w+Math.imul(W,Ae)|0,E=E+Math.imul(W,ge)|0,E=E+Math.imul(X,Ae)|0,q=q+Math.imul(X,ge)|0,w=w+Math.imul(K,xe)|0,E=E+Math.imul(K,Oe)|0,E=E+Math.imul(Z,xe)|0,q=q+Math.imul(Z,Oe)|0,w=w+Math.imul(z,Ue)|0,E=E+Math.imul(z,Ve)|0,E=E+Math.imul(H,Ue)|0,q=q+Math.imul(H,Ve)|0;var ir=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(ir>>>26)|0,ir&=67108863,w=Math.imul(Ce,Fe),E=Math.imul(Ce,Ie),E=E+Math.imul(Re,Fe)|0,q=Math.imul(Re,Ie),w=w+Math.imul(Ne,qe)|0,E=E+Math.imul(Ne,Se)|0,E=E+Math.imul(Ee,qe)|0,q=q+Math.imul(Ee,Se)|0,w=w+Math.imul(_e,Le)|0,E=E+Math.imul(_e,we)|0,E=E+Math.imul(me,Le)|0,q=q+Math.imul(me,we)|0,w=w+Math.imul(ve,$e)|0,E=E+Math.imul(ve,ee)|0,E=E+Math.imul(ye,$e)|0,q=q+Math.imul(ye,ee)|0,w=w+Math.imul(pe,Y)|0,E=E+Math.imul(pe,te)|0,E=E+Math.imul(ce,Y)|0,q=q+Math.imul(ce,te)|0,w=w+Math.imul(ue,le)|0,E=E+Math.imul(ue,de)|0,E=E+Math.imul(fe,le)|0,q=q+Math.imul(fe,de)|0,w=w+Math.imul(ie,Ae)|0,E=E+Math.imul(ie,ge)|0,E=E+Math.imul(ne,Ae)|0,q=q+Math.imul(ne,ge)|0,w=w+Math.imul(W,xe)|0,E=E+Math.imul(W,Oe)|0,E=E+Math.imul(X,xe)|0,q=q+Math.imul(X,Oe)|0,w=w+Math.imul(K,Ue)|0,E=E+Math.imul(K,Ve)|0,E=E+Math.imul(Z,Ue)|0,q=q+Math.imul(Z,Ve)|0;var ar=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(ar>>>26)|0,ar&=67108863,w=Math.imul(Ce,qe),E=Math.imul(Ce,Se),E=E+Math.imul(Re,qe)|0,q=Math.imul(Re,Se),w=w+Math.imul(Ne,Le)|0,E=E+Math.imul(Ne,we)|0,E=E+Math.imul(Ee,Le)|0,q=q+Math.imul(Ee,we)|0,w=w+Math.imul(_e,$e)|0,E=E+Math.imul(_e,ee)|0,E=E+Math.imul(me,$e)|0,q=q+Math.imul(me,ee)|0,w=w+Math.imul(ve,Y)|0,E=E+Math.imul(ve,te)|0,E=E+Math.imul(ye,Y)|0,q=q+Math.imul(ye,te)|0,w=w+Math.imul(pe,le)|0,E=E+Math.imul(pe,de)|0,E=E+Math.imul(ce,le)|0,q=q+Math.imul(ce,de)|0,w=w+Math.imul(ue,Ae)|0,E=E+Math.imul(ue,ge)|0,E=E+Math.imul(fe,Ae)|0,q=q+Math.imul(fe,ge)|0,w=w+Math.imul(ie,xe)|0,E=E+Math.imul(ie,Oe)|0,E=E+Math.imul(ne,xe)|0,q=q+Math.imul(ne,Oe)|0,w=w+Math.imul(W,Ue)|0,E=E+Math.imul(W,Ve)|0,E=E+Math.imul(X,Ue)|0,q=q+Math.imul(X,Ve)|0;var sr=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(sr>>>26)|0,sr&=67108863,w=Math.imul(Ce,Le),E=Math.imul(Ce,we),E=E+Math.imul(Re,Le)|0,q=Math.imul(Re,we),w=w+Math.imul(Ne,$e)|0,E=E+Math.imul(Ne,ee)|0,E=E+Math.imul(Ee,$e)|0,q=q+Math.imul(Ee,ee)|0,w=w+Math.imul(_e,Y)|0,E=E+Math.imul(_e,te)|0,E=E+Math.imul(me,Y)|0,q=q+Math.imul(me,te)|0,w=w+Math.imul(ve,le)|0,E=E+Math.imul(ve,de)|0,E=E+Math.imul(ye,le)|0,q=q+Math.imul(ye,de)|0,w=w+Math.imul(pe,Ae)|0,E=E+Math.imul(pe,ge)|0,E=E+Math.imul(ce,Ae)|0,q=q+Math.imul(ce,ge)|0,w=w+Math.imul(ue,xe)|0,E=E+Math.imul(ue,Oe)|0,E=E+Math.imul(fe,xe)|0,q=q+Math.imul(fe,Oe)|0,w=w+Math.imul(ie,Ue)|0,E=E+Math.imul(ie,Ve)|0,E=E+Math.imul(ne,Ue)|0,q=q+Math.imul(ne,Ve)|0;var or=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(or>>>26)|0,or&=67108863,w=Math.imul(Ce,$e),E=Math.imul(Ce,ee),E=E+Math.imul(Re,$e)|0,q=Math.imul(Re,ee),w=w+Math.imul(Ne,Y)|0,E=E+Math.imul(Ne,te)|0,E=E+Math.imul(Ee,Y)|0,q=q+Math.imul(Ee,te)|0,w=w+Math.imul(_e,le)|0,E=E+Math.imul(_e,de)|0,E=E+Math.imul(me,le)|0,q=q+Math.imul(me,de)|0,w=w+Math.imul(ve,Ae)|0,E=E+Math.imul(ve,ge)|0,E=E+Math.imul(ye,Ae)|0,q=q+Math.imul(ye,ge)|0,w=w+Math.imul(pe,xe)|0,E=E+Math.imul(pe,Oe)|0,E=E+Math.imul(ce,xe)|0,q=q+Math.imul(ce,Oe)|0,w=w+Math.imul(ue,Ue)|0,E=E+Math.imul(ue,Ve)|0,E=E+Math.imul(fe,Ue)|0,q=q+Math.imul(fe,Ve)|0;var ur=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(ur>>>26)|0,ur&=67108863,w=Math.imul(Ce,Y),E=Math.imul(Ce,te),E=E+Math.imul(Re,Y)|0,q=Math.imul(Re,te),w=w+Math.imul(Ne,le)|0,E=E+Math.imul(Ne,de)|0,E=E+Math.imul(Ee,le)|0,q=q+Math.imul(Ee,de)|0,w=w+Math.imul(_e,Ae)|0,E=E+Math.imul(_e,ge)|0,E=E+Math.imul(me,Ae)|0,q=q+Math.imul(me,ge)|0,w=w+Math.imul(ve,xe)|0,E=E+Math.imul(ve,Oe)|0,E=E+Math.imul(ye,xe)|0,q=q+Math.imul(ye,Oe)|0,w=w+Math.imul(pe,Ue)|0,E=E+Math.imul(pe,Ve)|0,E=E+Math.imul(ce,Ue)|0,q=q+Math.imul(ce,Ve)|0;var lr=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(lr>>>26)|0,lr&=67108863,w=Math.imul(Ce,le),E=Math.imul(Ce,de),E=E+Math.imul(Re,le)|0,q=Math.imul(Re,de),w=w+Math.imul(Ne,Ae)|0,E=E+Math.imul(Ne,ge)|0,E=E+Math.imul(Ee,Ae)|0,q=q+Math.imul(Ee,ge)|0,w=w+Math.imul(_e,xe)|0,E=E+Math.imul(_e,Oe)|0,E=E+Math.imul(me,xe)|0,q=q+Math.imul(me,Oe)|0,w=w+Math.imul(ve,Ue)|0,E=E+Math.imul(ve,Ve)|0,E=E+Math.imul(ye,Ue)|0,q=q+Math.imul(ye,Ve)|0;var cr=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(cr>>>26)|0,cr&=67108863,w=Math.imul(Ce,Ae),E=Math.imul(Ce,ge),E=E+Math.imul(Re,Ae)|0,q=Math.imul(Re,ge),w=w+Math.imul(Ne,xe)|0,E=E+Math.imul(Ne,Oe)|0,E=E+Math.imul(Ee,xe)|0,q=q+Math.imul(Ee,Oe)|0,w=w+Math.imul(_e,Ue)|0,E=E+Math.imul(_e,Ve)|0,E=E+Math.imul(me,Ue)|0,q=q+Math.imul(me,Ve)|0;var fr=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(fr>>>26)|0,fr&=67108863,w=Math.imul(Ce,xe),E=Math.imul(Ce,Oe),E=E+Math.imul(Re,xe)|0,q=Math.imul(Re,Oe),w=w+Math.imul(Ne,Ue)|0,E=E+Math.imul(Ne,Ve)|0,E=E+Math.imul(Ee,Ue)|0,q=q+Math.imul(Ee,Ve)|0;var dr=(x+w|0)+((E&8191)<<13)|0;x=(q+(E>>>13)|0)+(dr>>>26)|0,dr&=67108863,w=Math.imul(Ce,Ue),E=Math.imul(Ce,Ve),E=E+Math.imul(Re,Ue)|0,q=Math.imul(Re,Ve);var hr=(x+w|0)+((E&8191)<<13)|0;return x=(q+(E>>>13)|0)+(hr>>>26)|0,hr&=67108863,C[0]=Ye,C[1]=We,C[2]=Xe,C[3]=Je,C[4]=Ze,C[5]=er,C[6]=rr,C[7]=tr,C[8]=nr,C[9]=ir,C[10]=ar,C[11]=sr,C[12]=or,C[13]=ur,C[14]=lr,C[15]=cr,C[16]=fr,C[17]=dr,C[18]=hr,x!==0&&(C[19]=x,D.length++),D};Math.imul||(O=N);function M(R,y,b){b.negative=y.negative^R.negative,b.length=R.length+y.length;for(var D=0,I=0,T=0;T<b.length-1;T++){var C=I;I=0;for(var x=D&67108863,w=Math.min(T,y.length-1),E=Math.max(0,T-R.length+1);E<=w;E++){var q=T-E,G=R.words[q]|0,z=y.words[E]|0,H=G*z,V=H&67108863;C=C+(H/67108864|0)|0,V=V+x|0,x=V&67108863,C=C+(V>>>26)|0,I+=C>>>26,C&=67108863}b.words[T]=x,D=C,C=I}return D!==0?b.words[T]=D:b.length--,b._strip()}function F(R,y,b){return M(R,y,b)}s.prototype.mulTo=function(y,b){var D,I=this.length+y.length;return this.length===10&&y.length===10?D=O(this,y,b):I<63?D=N(this,y,b):I<1024?D=M(this,y,b):D=F(this,y,b),D},s.prototype.mul=function(y){var b=new s(null);return b.words=new Array(this.length+y.length),this.mulTo(y,b)},s.prototype.mulf=function(y){var b=new s(null);return b.words=new Array(this.length+y.length),F(this,y,b)},s.prototype.imul=function(y){return this.clone().mulTo(y,this)},s.prototype.imuln=function(y){var b=y<0;b&&(y=-y),i(typeof y=="number"),i(y<67108864);for(var D=0,I=0;I<this.length;I++){var T=(this.words[I]|0)*y,C=(T&67108863)+(D&67108863);D>>=26,D+=T/67108864|0,D+=C>>>26,this.words[I]=C&67108863}return D!==0&&(this.words[I]=D,this.length++),this.length=y===0?1:this.length,b?this.ineg():this},s.prototype.muln=function(y){return this.clone().imuln(y)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(y){var b=S(y);if(b.length===0)return new s(1);for(var D=this,I=0;I<b.length&&b[I]===0;I++,D=D.sqr());if(++I<b.length)for(var T=D.sqr();I<b.length;I++,T=T.sqr())b[I]!==0&&(D=D.mul(T));return D},s.prototype.iushln=function(y){i(typeof y=="number"&&y>=0);var b=y%26,D=(y-b)/26,I=67108863>>>26-b<<26-b,T;if(b!==0){var C=0;for(T=0;T<this.length;T++){var x=this.words[T]&I,w=(this.words[T]|0)-x<<b;this.words[T]=w|C,C=x>>>26-b}C&&(this.words[T]=C,this.length++)}if(D!==0){for(T=this.length-1;T>=0;T--)this.words[T+D]=this.words[T];for(T=0;T<D;T++)this.words[T]=0;this.length+=D}return this._strip()},s.prototype.ishln=function(y){return i(this.negative===0),this.iushln(y)},s.prototype.iushrn=function(y,b,D){i(typeof y=="number"&&y>=0);var I;b?I=(b-b%26)/26:I=0;var T=y%26,C=Math.min((y-T)/26,this.length),x=67108863^67108863>>>T<<T,w=D;if(I-=C,I=Math.max(0,I),w){for(var E=0;E<C;E++)w.words[E]=this.words[E];w.length=C}if(C!==0)if(this.length>C)for(this.length-=C,E=0;E<this.length;E++)this.words[E]=this.words[E+C];else this.words[0]=0,this.length=1;var q=0;for(E=this.length-1;E>=0&&(q!==0||E>=I);E--){var G=this.words[E]|0;this.words[E]=q<<26-T|G>>>T,q=G&x}return w&&q!==0&&(w.words[w.length++]=q),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(y,b,D){return i(this.negative===0),this.iushrn(y,b,D)},s.prototype.shln=function(y){return this.clone().ishln(y)},s.prototype.ushln=function(y){return this.clone().iushln(y)},s.prototype.shrn=function(y){return this.clone().ishrn(y)},s.prototype.ushrn=function(y){return this.clone().iushrn(y)},s.prototype.testn=function(y){i(typeof y=="number"&&y>=0);var b=y%26,D=(y-b)/26,I=1<<b;if(this.length<=D)return!1;var T=this.words[D];return!!(T&I)},s.prototype.imaskn=function(y){i(typeof y=="number"&&y>=0);var b=y%26,D=(y-b)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=D)return this;if(b!==0&&D++,this.length=Math.min(D,this.length),b!==0){var I=67108863^67108863>>>b<<b;this.words[this.length-1]&=I}return this._strip()},s.prototype.maskn=function(y){return this.clone().imaskn(y)},s.prototype.iaddn=function(y){return i(typeof y=="number"),i(y<67108864),y<0?this.isubn(-y):this.negative!==0?this.length===1&&(this.words[0]|0)<=y?(this.words[0]=y-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(y),this.negative=1,this):this._iaddn(y)},s.prototype._iaddn=function(y){this.words[0]+=y;for(var b=0;b<this.length&&this.words[b]>=67108864;b++)this.words[b]-=67108864,b===this.length-1?this.words[b+1]=1:this.words[b+1]++;return this.length=Math.max(this.length,b+1),this},s.prototype.isubn=function(y){if(i(typeof y=="number"),i(y<67108864),y<0)return this.iaddn(-y);if(this.negative!==0)return this.negative=0,this.iaddn(y),this.negative=1,this;if(this.words[0]-=y,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var b=0;b<this.length&&this.words[b]<0;b++)this.words[b]+=67108864,this.words[b+1]-=1;return this._strip()},s.prototype.addn=function(y){return this.clone().iaddn(y)},s.prototype.subn=function(y){return this.clone().isubn(y)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(y,b,D){var I=y.length+D,T;this._expand(I);var C,x=0;for(T=0;T<y.length;T++){C=(this.words[T+D]|0)+x;var w=(y.words[T]|0)*b;C-=w&67108863,x=(C>>26)-(w/67108864|0),this.words[T+D]=C&67108863}for(;T<this.length-D;T++)C=(this.words[T+D]|0)+x,x=C>>26,this.words[T+D]=C&67108863;if(x===0)return this._strip();for(i(x===-1),x=0,T=0;T<this.length;T++)C=-(this.words[T]|0)+x,x=C>>26,this.words[T]=C&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(y,b){var D=this.length-y.length,I=this.clone(),T=y,C=T.words[T.length-1]|0,x=this._countBits(C);D=26-x,D!==0&&(T=T.ushln(D),I.iushln(D),C=T.words[T.length-1]|0);var w=I.length-T.length,E;if(b!=="mod"){E=new s(null),E.length=w+1,E.words=new Array(E.length);for(var q=0;q<E.length;q++)E.words[q]=0}var G=I.clone()._ishlnsubmul(T,1,w);G.negative===0&&(I=G,E&&(E.words[w]=1));for(var z=w-1;z>=0;z--){var H=(I.words[T.length+z]|0)*67108864+(I.words[T.length+z-1]|0);for(H=Math.min(H/C|0,67108863),I._ishlnsubmul(T,H,z);I.negative!==0;)H--,I.negative=0,I._ishlnsubmul(T,1,z),I.isZero()||(I.negative^=1);E&&(E.words[z]=H)}return E&&E._strip(),I._strip(),b!=="div"&&D!==0&&I.iushrn(D),{div:E||null,mod:I}},s.prototype.divmod=function(y,b,D){if(i(!y.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var I,T,C;return this.negative!==0&&y.negative===0?(C=this.neg().divmod(y,b),b!=="mod"&&(I=C.div.neg()),b!=="div"&&(T=C.mod.neg(),D&&T.negative!==0&&T.iadd(y)),{div:I,mod:T}):this.negative===0&&y.negative!==0?(C=this.divmod(y.neg(),b),b!=="mod"&&(I=C.div.neg()),{div:I,mod:C.mod}):(this.negative&y.negative)!==0?(C=this.neg().divmod(y.neg(),b),b!=="div"&&(T=C.mod.neg(),D&&T.negative!==0&&T.isub(y)),{div:C.div,mod:T}):y.length>this.length||this.cmp(y)<0?{div:new s(0),mod:this}:y.length===1?b==="div"?{div:this.divn(y.words[0]),mod:null}:b==="mod"?{div:null,mod:new s(this.modrn(y.words[0]))}:{div:this.divn(y.words[0]),mod:new s(this.modrn(y.words[0]))}:this._wordDiv(y,b)},s.prototype.div=function(y){return this.divmod(y,"div",!1).div},s.prototype.mod=function(y){return this.divmod(y,"mod",!1).mod},s.prototype.umod=function(y){return this.divmod(y,"mod",!0).mod},s.prototype.divRound=function(y){var b=this.divmod(y);if(b.mod.isZero())return b.div;var D=b.div.negative!==0?b.mod.isub(y):b.mod,I=y.ushrn(1),T=y.andln(1),C=D.cmp(I);return C<0||T===1&&C===0?b.div:b.div.negative!==0?b.div.isubn(1):b.div.iaddn(1)},s.prototype.modrn=function(y){var b=y<0;b&&(y=-y),i(y<=67108863);for(var D=(1<<26)%y,I=0,T=this.length-1;T>=0;T--)I=(D*I+(this.words[T]|0))%y;return b?-I:I},s.prototype.modn=function(y){return this.modrn(y)},s.prototype.idivn=function(y){var b=y<0;b&&(y=-y),i(y<=67108863);for(var D=0,I=this.length-1;I>=0;I--){var T=(this.words[I]|0)+D*67108864;this.words[I]=T/y|0,D=T%y}return this._strip(),b?this.ineg():this},s.prototype.divn=function(y){return this.clone().idivn(y)},s.prototype.egcd=function(y){i(y.negative===0),i(!y.isZero());var b=this,D=y.clone();b.negative!==0?b=b.umod(y):b=b.clone();for(var I=new s(1),T=new s(0),C=new s(0),x=new s(1),w=0;b.isEven()&&D.isEven();)b.iushrn(1),D.iushrn(1),++w;for(var E=D.clone(),q=b.clone();!b.isZero();){for(var G=0,z=1;(b.words[0]&z)===0&&G<26;++G,z<<=1);if(G>0)for(b.iushrn(G);G-- >0;)(I.isOdd()||T.isOdd())&&(I.iadd(E),T.isub(q)),I.iushrn(1),T.iushrn(1);for(var H=0,V=1;(D.words[0]&V)===0&&H<26;++H,V<<=1);if(H>0)for(D.iushrn(H);H-- >0;)(C.isOdd()||x.isOdd())&&(C.iadd(E),x.isub(q)),C.iushrn(1),x.iushrn(1);b.cmp(D)>=0?(b.isub(D),I.isub(C),T.isub(x)):(D.isub(b),C.isub(I),x.isub(T))}return{a:C,b:x,gcd:D.iushln(w)}},s.prototype._invmp=function(y){i(y.negative===0),i(!y.isZero());var b=this,D=y.clone();b.negative!==0?b=b.umod(y):b=b.clone();for(var I=new s(1),T=new s(0),C=D.clone();b.cmpn(1)>0&&D.cmpn(1)>0;){for(var x=0,w=1;(b.words[0]&w)===0&&x<26;++x,w<<=1);if(x>0)for(b.iushrn(x);x-- >0;)I.isOdd()&&I.iadd(C),I.iushrn(1);for(var E=0,q=1;(D.words[0]&q)===0&&E<26;++E,q<<=1);if(E>0)for(D.iushrn(E);E-- >0;)T.isOdd()&&T.iadd(C),T.iushrn(1);b.cmp(D)>=0?(b.isub(D),I.isub(T)):(D.isub(b),T.isub(I))}var G;return b.cmpn(1)===0?G=I:G=T,G.cmpn(0)<0&&G.iadd(y),G},s.prototype.gcd=function(y){if(this.isZero())return y.abs();if(y.isZero())return this.abs();var b=this.clone(),D=y.clone();b.negative=0,D.negative=0;for(var I=0;b.isEven()&&D.isEven();I++)b.iushrn(1),D.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;D.isEven();)D.iushrn(1);var T=b.cmp(D);if(T<0){var C=b;b=D,D=C}else if(T===0||D.cmpn(1)===0)break;b.isub(D)}while(!0);return D.iushln(I)},s.prototype.invm=function(y){return this.egcd(y).a.umod(y)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(y){return this.words[0]&y},s.prototype.bincn=function(y){i(typeof y=="number");var b=y%26,D=(y-b)/26,I=1<<b;if(this.length<=D)return this._expand(D+1),this.words[D]|=I,this;for(var T=I,C=D;T!==0&&C<this.length;C++){var x=this.words[C]|0;x+=T,T=x>>>26,x&=67108863,this.words[C]=x}return T!==0&&(this.words[C]=T,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(y){var b=y<0;if(this.negative!==0&&!b)return-1;if(this.negative===0&&b)return 1;this._strip();var D;if(this.length>1)D=1;else{b&&(y=-y),i(y<=67108863,"Number is too big");var I=this.words[0]|0;D=I===y?0:I<y?-1:1}return this.negative!==0?-D|0:D},s.prototype.cmp=function(y){if(this.negative!==0&&y.negative===0)return-1;if(this.negative===0&&y.negative!==0)return 1;var b=this.ucmp(y);return this.negative!==0?-b|0:b},s.prototype.ucmp=function(y){if(this.length>y.length)return 1;if(this.length<y.length)return-1;for(var b=0,D=this.length-1;D>=0;D--){var I=this.words[D]|0,T=y.words[D]|0;if(I!==T){I<T?b=-1:I>T&&(b=1);break}}return b},s.prototype.gtn=function(y){return this.cmpn(y)===1},s.prototype.gt=function(y){return this.cmp(y)===1},s.prototype.gten=function(y){return this.cmpn(y)>=0},s.prototype.gte=function(y){return this.cmp(y)>=0},s.prototype.ltn=function(y){return this.cmpn(y)===-1},s.prototype.lt=function(y){return this.cmp(y)===-1},s.prototype.lten=function(y){return this.cmpn(y)<=0},s.prototype.lte=function(y){return this.cmp(y)<=0},s.prototype.eqn=function(y){return this.cmpn(y)===0},s.prototype.eq=function(y){return this.cmp(y)===0},s.red=function(y){return new $(y)},s.prototype.toRed=function(y){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),y.convertTo(this)._forceRed(y)},s.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(y){return this.red=y,this},s.prototype.forceRed=function(y){return i(!this.red,"Already a number in reduction context"),this._forceRed(y)},s.prototype.redAdd=function(y){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,y)},s.prototype.redIAdd=function(y){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,y)},s.prototype.redSub=function(y){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,y)},s.prototype.redISub=function(y){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,y)},s.prototype.redShl=function(y){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,y)},s.prototype.redMul=function(y){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,y),this.red.mul(this,y)},s.prototype.redIMul=function(y){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,y),this.red.imul(this,y)},s.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(y){return i(this.red&&!y.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,y)};var L={k256:null,p224:null,p192:null,p25519:null};function k(R,y){this.name=R,this.p=new s(y,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}k.prototype._tmp=function(){var y=new s(null);return y.words=new Array(Math.ceil(this.n/13)),y},k.prototype.ireduce=function(y){var b=y,D;do this.split(b,this.tmp),b=this.imulK(b),b=b.iadd(this.tmp),D=b.bitLength();while(D>this.n);var I=D<this.n?-1:b.ucmp(this.p);return I===0?(b.words[0]=0,b.length=1):I>0?b.isub(this.p):b.strip!==void 0?b.strip():b._strip(),b},k.prototype.split=function(y,b){y.iushrn(this.n,0,b)},k.prototype.imulK=function(y){return y.imul(this.k)};function P(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}o(P,k),P.prototype.split=function(y,b){for(var D=4194303,I=Math.min(y.length,9),T=0;T<I;T++)b.words[T]=y.words[T];if(b.length=I,y.length<=9){y.words[0]=0,y.length=1;return}var C=y.words[9];for(b.words[b.length++]=C&D,T=10;T<y.length;T++){var x=y.words[T]|0;y.words[T-10]=(x&D)<<4|C>>>22,C=x}C>>>=22,y.words[T-10]=C,C===0&&y.length>10?y.length-=10:y.length-=9},P.prototype.imulK=function(y){y.words[y.length]=0,y.words[y.length+1]=0,y.length+=2;for(var b=0,D=0;D<y.length;D++){var I=y.words[D]|0;b+=I*977,y.words[D]=b&67108863,b=I*64+(b/67108864|0)}return y.words[y.length-1]===0&&(y.length--,y.words[y.length-1]===0&&y.length--),y};function U(){k.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}o(U,k);function B(){k.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}o(B,k);function j(){k.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}o(j,k),j.prototype.imulK=function(y){for(var b=0,D=0;D<y.length;D++){var I=(y.words[D]|0)*19+b,T=I&67108863;I>>>=26,y.words[D]=T,b=I}return b!==0&&(y.words[y.length++]=b),y},s._prime=function(y){if(L[y])return L[y];var b;if(y==="k256")b=new P;else if(y==="p224")b=new U;else if(y==="p192")b=new B;else if(y==="p25519")b=new j;else throw new Error("Unknown prime "+y);return L[y]=b,b};function $(R){if(typeof R=="string"){var y=s._prime(R);this.m=y.p,this.prime=y}else i(R.gtn(1),"modulus must be greater than 1"),this.m=R,this.prime=null}$.prototype._verify1=function(y){i(y.negative===0,"red works only with positives"),i(y.red,"red works only with red numbers")},$.prototype._verify2=function(y,b){i((y.negative|b.negative)===0,"red works only with positives"),i(y.red&&y.red===b.red,"red works only with red numbers")},$.prototype.imod=function(y){return this.prime?this.prime.ireduce(y)._forceRed(this):(c(y,y.umod(this.m)._forceRed(this)),y)},$.prototype.neg=function(y){return y.isZero()?y.clone():this.m.sub(y)._forceRed(this)},$.prototype.add=function(y,b){this._verify2(y,b);var D=y.add(b);return D.cmp(this.m)>=0&&D.isub(this.m),D._forceRed(this)},$.prototype.iadd=function(y,b){this._verify2(y,b);var D=y.iadd(b);return D.cmp(this.m)>=0&&D.isub(this.m),D},$.prototype.sub=function(y,b){this._verify2(y,b);var D=y.sub(b);return D.cmpn(0)<0&&D.iadd(this.m),D._forceRed(this)},$.prototype.isub=function(y,b){this._verify2(y,b);var D=y.isub(b);return D.cmpn(0)<0&&D.iadd(this.m),D},$.prototype.shl=function(y,b){return this._verify1(y),this.imod(y.ushln(b))},$.prototype.imul=function(y,b){return this._verify2(y,b),this.imod(y.imul(b))},$.prototype.mul=function(y,b){return this._verify2(y,b),this.imod(y.mul(b))},$.prototype.isqr=function(y){return this.imul(y,y.clone())},$.prototype.sqr=function(y){return this.mul(y,y)},$.prototype.sqrt=function(y){if(y.isZero())return y.clone();var b=this.m.andln(3);if(i(b%2===1),b===3){var D=this.m.add(new s(1)).iushrn(2);return this.pow(y,D)}for(var I=this.m.subn(1),T=0;!I.isZero()&&I.andln(1)===0;)T++,I.iushrn(1);i(!I.isZero());var C=new s(1).toRed(this),x=C.redNeg(),w=this.m.subn(1).iushrn(1),E=this.m.bitLength();for(E=new s(2*E*E).toRed(this);this.pow(E,w).cmp(x)!==0;)E.redIAdd(x);for(var q=this.pow(E,I),G=this.pow(y,I.addn(1).iushrn(1)),z=this.pow(y,I),H=T;z.cmp(C)!==0;){for(var V=z,K=0;V.cmp(C)!==0;K++)V=V.redSqr();i(K<H);var Z=this.pow(q,new s(1).iushln(H-K-1));G=G.redMul(Z),q=Z.redSqr(),z=z.redMul(q),H=K}return G},$.prototype.invm=function(y){var b=y._invmp(this.m);return b.negative!==0?(b.negative=0,this.imod(b).redNeg()):this.imod(b)},$.prototype.pow=function(y,b){if(b.isZero())return new s(1).toRed(this);if(b.cmpn(1)===0)return y.clone();var D=4,I=new Array(1<<D);I[0]=new s(1).toRed(this),I[1]=y;for(var T=2;T<I.length;T++)I[T]=this.mul(I[T-1],y);var C=I[0],x=0,w=0,E=b.bitLength()%26;for(E===0&&(E=26),T=b.length-1;T>=0;T--){for(var q=b.words[T],G=E-1;G>=0;G--){var z=q>>G&1;if(C!==I[0]&&(C=this.sqr(C)),z===0&&x===0){w=0;continue}x<<=1,x|=z,w++,!(w!==D&&(T!==0||G!==0))&&(C=this.mul(C,I[x]),w=0,x=0)}E=26}return C},$.prototype.convertTo=function(y){var b=y.umod(this.m);return b===y?b.clone():b},$.prototype.convertFrom=function(y){var b=y.clone();return b.red=null,b},s.mont=function(y){return new A(y)};function A(R){$.call(this,R),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}o(A,$),A.prototype.convertTo=function(y){return this.imod(y.ushln(this.shift))},A.prototype.convertFrom=function(y){var b=this.imod(y.mul(this.rinv));return b.red=null,b},A.prototype.imul=function(y,b){if(y.isZero()||b.isZero())return y.words[0]=0,y.length=1,y;var D=y.imul(b),I=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=D.isub(I).iushrn(this.shift),C=T;return T.cmp(this.m)>=0?C=T.isub(this.m):T.cmpn(0)<0&&(C=T.iadd(this.m)),C._forceRed(this)},A.prototype.mul=function(y,b){if(y.isZero()||b.isZero())return new s(0)._forceRed(this);var D=y.mul(b),I=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=D.isub(I).iushrn(this.shift),C=T;return T.cmp(this.m)>=0?C=T.isub(this.m):T.cmpn(0)<0&&(C=T.iadd(this.m)),C._forceRed(this)},A.prototype.invm=function(y){var b=this.imod(y._invmp(this.m).mul(this.r2));return b._forceRed(this)}})(r,bn)}(bn$1)),bn$1.exports}var asn1$1={},asn1={},api$1={},vmBrowserify={},hasRequiredVmBrowserify;function requireVmBrowserify(){return hasRequiredVmBrowserify||(hasRequiredVmBrowserify=1,function(exports){var indexOf=function(r,n){if(r.indexOf)return r.indexOf(n);for(var a=0;a<r.length;a++)if(r[a]===n)return a;return-1},Object_keys=function(r){if(Object.keys)return Object.keys(r);var n=[];for(var a in r)n.push(a);return n},forEach=function(r,n){if(r.forEach)return r.forEach(n);for(var a=0;a<r.length;a++)n(r[a],a,r)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(r,n,a){Object.defineProperty(r,n,{writable:!0,enumerable:!1,configurable:!0,value:a})}}catch{return function(n,a,i){n[a]=i}}}(),globals=["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 Context(){}Context.prototype={};var Script=exports.Script=function(n){if(!(this instanceof Script))return new Script(n);this.code=n};Script.prototype.runInContext=function(r){if(!(r instanceof Context))throw new TypeError("needs a 'context' argument.");var n=document.createElement("iframe");n.style||(n.style={}),n.style.display="none",document.body.appendChild(n);var a=n.contentWindow,i=a.eval,o=a.execScript;!i&&o&&(o.call(a,"null"),i=a.eval),forEach(Object_keys(r),function(f){a[f]=r[f]}),forEach(globals,function(f){r[f]&&(a[f]=r[f])});var s=Object_keys(a),l=i.call(a,this.code);return forEach(Object_keys(a),function(f){(f in r||indexOf(s,f)===-1)&&(r[f]=a[f])}),forEach(globals,function(f){f in r||defineProp(r,f,a[f])}),document.body.removeChild(n),l},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(r){var n=Script.createContext(r),a=this.runInContext(n);return r&&forEach(Object_keys(n),function(i){r[i]=n[i]}),a},forEach(Object_keys(Script.prototype),function(r){exports[r]=Script[r]=function(n){var a=Script(n);return a[r].apply(a,[].slice.call(arguments,1))}}),exports.isContext=function(r){return r instanceof Context},exports.createScript=function(r){return exports.Script(r)},exports.createContext=Script.createContext=function(r){var n=new Context;return typeof r=="object"&&forEach(Object_keys(r),function(a){n[a]=r[a]}),n}}(vmBrowserify)),vmBrowserify}var hasRequiredApi$1;function requireApi$1(){return hasRequiredApi$1||(hasRequiredApi$1=1,function(r){var n=requireAsn1$1(),a=requireInherits_browser(),i=r;i.define=function(l,f){return new o(l,f)};function o(s,l){this.name=s,this.body=l,this.decoders={},this.encoders={}}o.prototype._createNamed=function(l){var f;try{f=requireVmBrowserify().runInThisContext("(function "+this.name+`(entity) {
37
37
  this._initNamed(entity);
38
38
  })`)}catch{f=function(u){this._initNamed(u)}}return a(f,l),f.prototype._initNamed=function(u){l.call(this,u)},new f(this)},o.prototype._getDecoder=function(l){return l=l||"der",this.decoders.hasOwnProperty(l)||(this.decoders[l]=this._createNamed(n.decoders[l])),this.decoders[l]},o.prototype.decode=function(l,f,d){return this._getDecoder(f).decode(l,d)},o.prototype._getEncoder=function(l){return l=l||"der",this.encoders.hasOwnProperty(l)||(this.encoders[l]=this._createNamed(n.encoders[l])),this.encoders[l]},o.prototype.encode=function(l,f,d){return this._getEncoder(f).encode(l,d)}}(api$1)),api$1}var base={},reporter={},hasRequiredReporter;function requireReporter(){if(hasRequiredReporter)return reporter;hasRequiredReporter=1;var r=requireInherits_browser();function n(i){this._reporterState={obj:null,path:[],options:i||{},errors:[]}}reporter.Reporter=n,n.prototype.isError=function(o){return o instanceof a},n.prototype.save=function(){var o=this._reporterState;return{obj:o.obj,pathLen:o.path.length}},n.prototype.restore=function(o){var s=this._reporterState;s.obj=o.obj,s.path=s.path.slice(0,o.pathLen)},n.prototype.enterKey=function(o){return this._reporterState.path.push(o)},n.prototype.exitKey=function(o){var s=this._reporterState;s.path=s.path.slice(0,o-1)},n.prototype.leaveKey=function(o,s,l){var f=this._reporterState;this.exitKey(o),f.obj!==null&&(f.obj[s]=l)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){var o=this._reporterState,s=o.obj;return o.obj={},s},n.prototype.leaveObject=function(o){var s=this._reporterState,l=s.obj;return s.obj=o,l},n.prototype.error=function(o){var s,l=this._reporterState,f=o instanceof a;if(f?s=o:s=new a(l.path.map(function(d){return"["+JSON.stringify(d)+"]"}).join(""),o.message||o,o.stack),!l.options.partial)throw s;return f||l.errors.push(s),s},n.prototype.wrapResult=function(o){var s=this._reporterState;return s.options.partial?{result:this.isError(o)?null:o,errors:s.errors}:o};function a(i,o){this.path=i,this.rethrow(o)}return r(a,Error),a.prototype.rethrow=function(o){if(this.message=o+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(s){this.stack=s.stack}return this},reporter}var buffer={},hasRequiredBuffer;function requireBuffer(){if(hasRequiredBuffer)return buffer;hasRequiredBuffer=1;var r=requireInherits_browser(),n=requireBase().Reporter,a=requireDist().Buffer;function i(s,l){if(n.call(this,l),!a.isBuffer(s)){this.error("Input not Buffer");return}this.base=s,this.offset=0,this.length=s.length}r(i,n),buffer.DecoderBuffer=i,i.prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},i.prototype.restore=function(l){var f=new i(this.base);return f.offset=l.offset,f.length=this.offset,this.offset=l.offset,n.prototype.restore.call(this,l.reporter),f},i.prototype.isEmpty=function(){return this.offset===this.length},i.prototype.readUInt8=function(l){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(l||"DecoderBuffer overrun")},i.prototype.skip=function(l,f){if(!(this.offset+l<=this.length))return this.error(f||"DecoderBuffer overrun");var d=new i(this.base);return d._reporterState=this._reporterState,d.offset=this.offset,d.length=this.offset+l,this.offset+=l,d},i.prototype.raw=function(l){return this.base.slice(l?l.offset:this.offset,this.length)};function o(s,l){if(Array.isArray(s))this.length=0,this.value=s.map(function(f){return f instanceof o||(f=new o(f,l)),this.length+=f.length,f},this);else if(typeof s=="number"){if(!(0<=s&&s<=255))return l.error("non-byte EncoderBuffer value");this.value=s,this.length=1}else if(typeof s=="string")this.value=s,this.length=a.byteLength(s);else if(a.isBuffer(s))this.value=s,this.length=s.length;else return l.error("Unsupported type: "+typeof s)}return buffer.EncoderBuffer=o,o.prototype.join=function(l,f){return l||(l=new a(this.length)),f||(f=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(d){d.join(l,f),f+=d.length}):(typeof this.value=="number"?l[f]=this.value:typeof this.value=="string"?l.write(this.value,f):a.isBuffer(this.value)&&this.value.copy(l,f),f+=this.length)),l},buffer}var node$1,hasRequiredNode;function requireNode(){if(hasRequiredNode)return node$1;hasRequiredNode=1;var r=requireBase().Reporter,n=requireBase().EncoderBuffer,a=requireBase().DecoderBuffer,i=requireMinimalisticAssert(),o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],s=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o),l=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function f(u,c){var v={};this._baseState=v,v.enc=u,v.parent=c||null,v.children=null,v.tag=null,v.args=null,v.reverseArgs=null,v.choice=null,v.optional=!1,v.any=!1,v.obj=!1,v.use=null,v.useDecoder=null,v.key=null,v.default=null,v.explicit=null,v.implicit=null,v.contains=null,v.parent||(v.children=[],this._wrap())}node$1=f;var d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return f.prototype.clone=function(){var c=this._baseState,v={};d.forEach(function(m){v[m]=c[m]});var h=new this.constructor(v.parent);return h._baseState=v,h},f.prototype._wrap=function(){var c=this._baseState;s.forEach(function(v){this[v]=function(){var m=new this.constructor(this);return c.children.push(m),m[v].apply(m,arguments)}},this)},f.prototype._init=function(c){var v=this._baseState;i(v.parent===null),c.call(this),v.children=v.children.filter(function(h){return h._baseState.parent===this},this),i.equal(v.children.length,1,"Root node can have only one child")},f.prototype._useArgs=function(c){var v=this._baseState,h=c.filter(function(m){return m instanceof this.constructor},this);c=c.filter(function(m){return!(m instanceof this.constructor)},this),h.length!==0&&(i(v.children===null),v.children=h,h.forEach(function(m){m._baseState.parent=this},this)),c.length!==0&&(i(v.args===null),v.args=c,v.reverseArgs=c.map(function(m){if(typeof m!="object"||m.constructor!==Object)return m;var g={};return Object.keys(m).forEach(function(_){_==(_|0)&&(_|=0);var S=m[_];g[S]=_}),g}))},l.forEach(function(u){f.prototype[u]=function(){var v=this._baseState;throw new Error(u+" not implemented for encoding: "+v.enc)}}),o.forEach(function(u){f.prototype[u]=function(){var v=this._baseState,h=Array.prototype.slice.call(arguments);return i(v.tag===null),v.tag=u,this._useArgs(h),this}}),f.prototype.use=function(c){i(c);var v=this._baseState;return i(v.use===null),v.use=c,this},f.prototype.optional=function(){var c=this._baseState;return c.optional=!0,this},f.prototype.def=function(c){var v=this._baseState;return i(v.default===null),v.default=c,v.optional=!0,this},f.prototype.explicit=function(c){var v=this._baseState;return i(v.explicit===null&&v.implicit===null),v.explicit=c,this},f.prototype.implicit=function(c){var v=this._baseState;return i(v.explicit===null&&v.implicit===null),v.implicit=c,this},f.prototype.obj=function(){var c=this._baseState,v=Array.prototype.slice.call(arguments);return c.obj=!0,v.length!==0&&this._useArgs(v),this},f.prototype.key=function(c){var v=this._baseState;return i(v.key===null),v.key=c,this},f.prototype.any=function(){var c=this._baseState;return c.any=!0,this},f.prototype.choice=function(c){var v=this._baseState;return i(v.choice===null),v.choice=c,this._useArgs(Object.keys(c).map(function(h){return c[h]})),this},f.prototype.contains=function(c){var v=this._baseState;return i(v.use===null),v.contains=c,this},f.prototype._decode=function(c,v){var h=this._baseState;if(h.parent===null)return c.wrapResult(h.children[0]._decode(c,v));var m=h.default,g=!0,_=null;if(h.key!==null&&(_=c.enterKey(h.key)),h.optional){var S=null;if(h.explicit!==null?S=h.explicit:h.implicit!==null?S=h.implicit:h.tag!==null&&(S=h.tag),S===null&&!h.any){var N=c.save();try{h.choice===null?this._decodeGeneric(h.tag,c,v):this._decodeChoice(c,v),g=!0}catch{g=!1}c.restore(N)}else if(g=this._peekTag(c,S,h.any),c.isError(g))return g}var O;if(h.obj&&g&&(O=c.enterObject()),g){if(h.explicit!==null){var M=this._decodeTag(c,h.explicit);if(c.isError(M))return M;c=M}var F=c.offset;if(h.use===null&&h.choice===null){if(h.any)var N=c.save();var L=this._decodeTag(c,h.implicit!==null?h.implicit:h.tag,h.any);if(c.isError(L))return L;h.any?m=c.raw(N):c=L}if(v&&v.track&&h.tag!==null&&v.track(c.path(),F,c.length,"tagged"),v&&v.track&&h.tag!==null&&v.track(c.path(),c.offset,c.length,"content"),h.any?m=m:h.choice===null?m=this._decodeGeneric(h.tag,c,v):m=this._decodeChoice(c,v),c.isError(m))return m;if(!h.any&&h.choice===null&&h.children!==null&&h.children.forEach(function(U){U._decode(c,v)}),h.contains&&(h.tag==="octstr"||h.tag==="bitstr")){var k=new a(m);m=this._getUse(h.contains,c._reporterState.obj)._decode(k,v)}}return h.obj&&g&&(m=c.leaveObject(O)),h.key!==null&&(m!==null||g===!0)?c.leaveKey(_,h.key,m):_!==null&&c.exitKey(_),m},f.prototype._decodeGeneric=function(c,v,h){var m=this._baseState;return c==="seq"||c==="set"?null:c==="seqof"||c==="setof"?this._decodeList(v,c,m.args[0],h):/str$/.test(c)?this._decodeStr(v,c,h):c==="objid"&&m.args?this._decodeObjid(v,m.args[0],m.args[1],h):c==="objid"?this._decodeObjid(v,null,null,h):c==="gentime"||c==="utctime"?this._decodeTime(v,c,h):c==="null_"?this._decodeNull(v,h):c==="bool"?this._decodeBool(v,h):c==="objDesc"?this._decodeStr(v,c,h):c==="int"||c==="enum"?this._decodeInt(v,m.args&&m.args[0],h):m.use!==null?this._getUse(m.use,v._reporterState.obj)._decode(v,h):v.error("unknown tag: "+c)},f.prototype._getUse=function(c,v){var h=this._baseState;return h.useDecoder=this._use(c,v),i(h.useDecoder._baseState.parent===null),h.useDecoder=h.useDecoder._baseState.children[0],h.implicit!==h.useDecoder._baseState.implicit&&(h.useDecoder=h.useDecoder.clone(),h.useDecoder._baseState.implicit=h.implicit),h.useDecoder},f.prototype._decodeChoice=function(c,v){var h=this._baseState,m=null,g=!1;return Object.keys(h.choice).some(function(_){var S=c.save(),N=h.choice[_];try{var O=N._decode(c,v);if(c.isError(O))return!1;m={type:_,value:O},g=!0}catch{return c.restore(S),!1}return!0},this),g?m:c.error("Choice not matched")},f.prototype._createEncoderBuffer=function(c){return new n(c,this.reporter)},f.prototype._encode=function(c,v,h){var m=this._baseState;if(!(m.default!==null&&m.default===c)){var g=this._encodeValue(c,v,h);if(g!==void 0&&!this._skipDefault(g,v,h))return g}},f.prototype._encodeValue=function(c,v,h){var m=this._baseState;if(m.parent===null)return m.children[0]._encode(c,v||new r);var N=null;if(this.reporter=v,m.optional&&c===void 0)if(m.default!==null)c=m.default;else return;var g=null,_=!1;if(m.any)N=this._createEncoderBuffer(c);else if(m.choice)N=this._encodeChoice(c,v);else if(m.contains)g=this._getUse(m.contains,h)._encode(c,v),_=!0;else if(m.children)g=m.children.map(function(F){if(F._baseState.tag==="null_")return F._encode(null,v,c);if(F._baseState.key===null)return v.error("Child should have a key");var L=v.enterKey(F._baseState.key);if(typeof c!="object")return v.error("Child expected, but input is not object");var k=F._encode(c[F._baseState.key],v,c);return v.leaveKey(L),k},this).filter(function(F){return F}),g=this._createEncoderBuffer(g);else if(m.tag==="seqof"||m.tag==="setof"){if(!(m.args&&m.args.length===1))return v.error("Too many args for : "+m.tag);if(!Array.isArray(c))return v.error("seqof/setof, but data is not Array");var S=this.clone();S._baseState.implicit=null,g=this._createEncoderBuffer(c.map(function(F){var L=this._baseState;return this._getUse(L.args[0],c)._encode(F,v)},S))}else m.use!==null?N=this._getUse(m.use,h)._encode(c,v):(g=this._encodePrimitive(m.tag,c),_=!0);var N;if(!m.any&&m.choice===null){var O=m.implicit!==null?m.implicit:m.tag,M=m.implicit===null?"universal":"context";O===null?m.use===null&&v.error("Tag could be omitted only for .use()"):m.use===null&&(N=this._encodeComposite(O,_,M,g))}return m.explicit!==null&&(N=this._encodeComposite(m.explicit,!1,"context",N)),N},f.prototype._encodeChoice=function(c,v){var h=this._baseState,m=h.choice[c.type];return m||i(!1,c.type+" not found in "+JSON.stringify(Object.keys(h.choice))),m._encode(c.value,v)},f.prototype._encodePrimitive=function(c,v){var h=this._baseState;if(/str$/.test(c))return this._encodeStr(v,c);if(c==="objid"&&h.args)return this._encodeObjid(v,h.reverseArgs[0],h.args[1]);if(c==="objid")return this._encodeObjid(v,null,null);if(c==="gentime"||c==="utctime")return this._encodeTime(v,c);if(c==="null_")return this._encodeNull();if(c==="int"||c==="enum")return this._encodeInt(v,h.args&&h.reverseArgs[0]);if(c==="bool")return this._encodeBool(v);if(c==="objDesc")return this._encodeStr(v,c);throw new Error("Unsupported tag: "+c)},f.prototype._isNumstr=function(c){return/^[0-9 ]*$/.test(c)},f.prototype._isPrintstr=function(c){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(c)},node$1}var hasRequiredBase;function requireBase(){return hasRequiredBase||(hasRequiredBase=1,function(r){var n=r;n.Reporter=requireReporter().Reporter,n.DecoderBuffer=requireBuffer().DecoderBuffer,n.EncoderBuffer=requireBuffer().EncoderBuffer,n.Node=requireNode()}(base)),base}var constants={},der={},hasRequiredDer$2;function requireDer$2(){return hasRequiredDer$2||(hasRequiredDer$2=1,function(r){var n=requireConstants();r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=n._reverse(r.tagClass),r.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},r.tagByName=n._reverse(r.tag)}(der)),der}var hasRequiredConstants;function requireConstants(){return hasRequiredConstants||(hasRequiredConstants=1,function(r){var n=r;n._reverse=function(i){var o={};return Object.keys(i).forEach(function(s){(s|0)==s&&(s=s|0);var l=i[s];o[l]=s}),o},n.der=requireDer$2()}(constants)),constants}var decoders={},der_1$1,hasRequiredDer$1;function requireDer$1(){if(hasRequiredDer$1)return der_1$1;hasRequiredDer$1=1;var r=requireInherits_browser(),n=requireAsn1$1(),a=n.base,i=n.bignum,o=n.constants.der;function s(u){this.enc="der",this.name=u.name,this.entity=u,this.tree=new l,this.tree._init(u.body)}der_1$1=s,s.prototype.decode=function(c,v){return c instanceof a.DecoderBuffer||(c=new a.DecoderBuffer(c,v)),this.tree._decode(c,v)};function l(u){a.Node.call(this,"der",u)}r(l,a.Node),l.prototype._peekTag=function(c,v,h){if(c.isEmpty())return!1;var m=c.save(),g=f(c,'Failed to peek tag: "'+v+'"');return c.isError(g)?g:(c.restore(m),g.tag===v||g.tagStr===v||g.tagStr+"of"===v||h)},l.prototype._decodeTag=function(c,v,h){var m=f(c,'Failed to decode tag of "'+v+'"');if(c.isError(m))return m;var g=d(c,m.primitive,'Failed to get length of "'+v+'"');if(c.isError(g))return g;if(!h&&m.tag!==v&&m.tagStr!==v&&m.tagStr+"of"!==v)return c.error('Failed to match tag: "'+v+'"');if(m.primitive||g!==null)return c.skip(g,'Failed to match body of: "'+v+'"');var _=c.save(),S=this._skipUntilEnd(c,'Failed to skip indefinite length body: "'+this.tag+'"');return c.isError(S)?S:(g=c.offset-_.offset,c.restore(_),c.skip(g,'Failed to match body of: "'+v+'"'))},l.prototype._skipUntilEnd=function(c,v){for(;;){var h=f(c,v);if(c.isError(h))return h;var m=d(c,h.primitive,v);if(c.isError(m))return m;var g;if(h.primitive||m!==null?g=c.skip(m):g=this._skipUntilEnd(c,v),c.isError(g))return g;if(h.tagStr==="end")break}},l.prototype._decodeList=function(c,v,h,m){for(var g=[];!c.isEmpty();){var _=this._peekTag(c,"end");if(c.isError(_))return _;var S=h.decode(c,"der",m);if(c.isError(S)&&_)break;g.push(S)}return g},l.prototype._decodeStr=function(c,v){if(v==="bitstr"){var h=c.readUInt8();return c.isError(h)?h:{unused:h,data:c.raw()}}else if(v==="bmpstr"){var m=c.raw();if(m.length%2===1)return c.error("Decoding of string type: bmpstr length mismatch");for(var g="",_=0;_<m.length/2;_++)g+=String.fromCharCode(m.readUInt16BE(_*2));return g}else if(v==="numstr"){var S=c.raw().toString("ascii");return this._isNumstr(S)?S:c.error("Decoding of string type: numstr unsupported characters")}else{if(v==="octstr")return c.raw();if(v==="objDesc")return c.raw();if(v==="printstr"){var N=c.raw().toString("ascii");return this._isPrintstr(N)?N:c.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(v)?c.raw().toString():c.error("Decoding of string type: "+v+" unsupported")}},l.prototype._decodeObjid=function(c,v,h){for(var m,g=[],_=0;!c.isEmpty();){var S=c.readUInt8();_<<=7,_|=S&127,(S&128)===0&&(g.push(_),_=0)}S&128&&g.push(_);var N=g[0]/40|0,O=g[0]%40;if(h?m=g:m=[N,O].concat(g.slice(1)),v){var M=v[m.join(" ")];M===void 0&&(M=v[m.join(".")]),M!==void 0&&(m=M)}return m},l.prototype._decodeTime=function(c,v){var h=c.raw().toString();if(v==="gentime")var m=h.slice(0,4)|0,g=h.slice(4,6)|0,_=h.slice(6,8)|0,S=h.slice(8,10)|0,N=h.slice(10,12)|0,O=h.slice(12,14)|0;else if(v==="utctime"){var m=h.slice(0,2)|0,g=h.slice(2,4)|0,_=h.slice(4,6)|0,S=h.slice(6,8)|0,N=h.slice(8,10)|0,O=h.slice(10,12)|0;m<70?m=2e3+m:m=1900+m}else return c.error("Decoding "+v+" time is not supported yet");return Date.UTC(m,g-1,_,S,N,O,0)},l.prototype._decodeNull=function(c){return null},l.prototype._decodeBool=function(c){var v=c.readUInt8();return c.isError(v)?v:v!==0},l.prototype._decodeInt=function(c,v){var h=c.raw(),m=new i(h);return v&&(m=v[m.toString(10)]||m),m},l.prototype._use=function(c,v){return typeof c=="function"&&(c=c(v)),c._getDecoder("der").tree};function f(u,c){var v=u.readUInt8(c);if(u.isError(v))return v;var h=o.tagClass[v>>6],m=(v&32)===0;if((v&31)===31){var g=v;for(v=0;(g&128)===128;){if(g=u.readUInt8(c),u.isError(g))return g;v<<=7,v|=g&127}}else v&=31;var _=o.tag[v];return{cls:h,primitive:m,tag:v,tagStr:_}}function d(u,c,v){var h=u.readUInt8(v);if(u.isError(h))return h;if(!c&&h===128)return null;if((h&128)===0)return h;var m=h&127;if(m>4)return u.error("length octect is too long");h=0;for(var g=0;g<m;g++){h<<=8;var _=u.readUInt8(v);if(u.isError(_))return _;h|=_}return h}return der_1$1}var pem$1,hasRequiredPem$1;function requirePem$1(){if(hasRequiredPem$1)return pem$1;hasRequiredPem$1=1;var r=requireInherits_browser(),n=requireDist().Buffer,a=requireDer$1();function i(o){a.call(this,o),this.enc="pem"}return r(i,a),pem$1=i,i.prototype.decode=function(s,l){for(var f=s.toString().split(/[\r\n]+/g),d=l.label.toUpperCase(),u=/^-----(BEGIN|END) ([^-]+)-----$/,c=-1,v=-1,h=0;h<f.length;h++){var m=f[h].match(u);if(m!==null&&m[2]===d)if(c===-1){if(m[1]!=="BEGIN")break;c=h}else{if(m[1]!=="END")break;v=h;break}}if(c===-1||v===-1)throw new Error("PEM section not found for: "+d);var g=f.slice(c+1,v).join("");g.replace(/[^a-z0-9\+\/=]+/gi,"");var _=new n(g,"base64");return a.prototype.decode.call(this,_,l)},pem$1}var hasRequiredDecoders;function requireDecoders(){return hasRequiredDecoders||(hasRequiredDecoders=1,function(r){var n=r;n.der=requireDer$1(),n.pem=requirePem$1()}(decoders)),decoders}var encoders={},der_1,hasRequiredDer;function requireDer(){if(hasRequiredDer)return der_1;hasRequiredDer=1;var r=requireInherits_browser(),n=requireDist().Buffer,a=requireAsn1$1(),i=a.base,o=a.constants.der;function s(u){this.enc="der",this.name=u.name,this.entity=u,this.tree=new l,this.tree._init(u.body)}der_1=s,s.prototype.encode=function(c,v){return this.tree._encode(c,v).join()};function l(u){i.Node.call(this,"der",u)}r(l,i.Node),l.prototype._encodeComposite=function(c,v,h,m){var g=d(c,v,h,this.reporter);if(m.length<128){var N=new n(2);return N[0]=g,N[1]=m.length,this._createEncoderBuffer([N,m])}for(var _=1,S=m.length;S>=256;S>>=8)_++;var N=new n(2+_);N[0]=g,N[1]=128|_;for(var S=1+_,O=m.length;O>0;S--,O>>=8)N[S]=O&255;return this._createEncoderBuffer([N,m])},l.prototype._encodeStr=function(c,v){if(v==="bitstr")return this._createEncoderBuffer([c.unused|0,c.data]);if(v==="bmpstr"){for(var h=new n(c.length*2),m=0;m<c.length;m++)h.writeUInt16BE(c.charCodeAt(m),m*2);return this._createEncoderBuffer(h)}else return v==="numstr"?this._isNumstr(c)?this._createEncoderBuffer(c):this.reporter.error("Encoding of string type: numstr supports only digits and space"):v==="printstr"?this._isPrintstr(c)?this._createEncoderBuffer(c):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(v)?this._createEncoderBuffer(c):v==="objDesc"?this._createEncoderBuffer(c):this.reporter.error("Encoding of string type: "+v+" unsupported")},l.prototype._encodeObjid=function(c,v,h){if(typeof c=="string"){if(!v)return this.reporter.error("string objid given, but no values map found");if(!v.hasOwnProperty(c))return this.reporter.error("objid not found in values map");c=v[c].split(/[\s\.]+/g);for(var m=0;m<c.length;m++)c[m]|=0}else if(Array.isArray(c)){c=c.slice();for(var m=0;m<c.length;m++)c[m]|=0}if(!Array.isArray(c))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(c));if(!h){if(c[1]>=40)return this.reporter.error("Second objid identifier OOB");c.splice(0,2,c[0]*40+c[1])}for(var g=0,m=0;m<c.length;m++){var _=c[m];for(g++;_>=128;_>>=7)g++}for(var S=new n(g),N=S.length-1,m=c.length-1;m>=0;m--){var _=c[m];for(S[N--]=_&127;(_>>=7)>0;)S[N--]=128|_&127}return this._createEncoderBuffer(S)};function f(u){return u<10?"0"+u:u}l.prototype._encodeTime=function(c,v){var h,m=new Date(c);return v==="gentime"?h=[f(m.getFullYear()),f(m.getUTCMonth()+1),f(m.getUTCDate()),f(m.getUTCHours()),f(m.getUTCMinutes()),f(m.getUTCSeconds()),"Z"].join(""):v==="utctime"?h=[f(m.getFullYear()%100),f(m.getUTCMonth()+1),f(m.getUTCDate()),f(m.getUTCHours()),f(m.getUTCMinutes()),f(m.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+v+" time is not supported yet"),this._encodeStr(h,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(c,v){if(typeof c=="string"){if(!v)return this.reporter.error("String int or enum given, but no values map");if(!v.hasOwnProperty(c))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(c));c=v[c]}if(typeof c!="number"&&!n.isBuffer(c)){var h=c.toArray();!c.sign&&h[0]&128&&h.unshift(0),c=new n(h)}if(n.isBuffer(c)){var m=c.length;c.length===0&&m++;var _=new n(m);return c.copy(_),c.length===0&&(_[0]=0),this._createEncoderBuffer(_)}if(c<128)return this._createEncoderBuffer(c);if(c<256)return this._createEncoderBuffer([0,c]);for(var m=1,g=c;g>=256;g>>=8)m++;for(var _=new Array(m),g=_.length-1;g>=0;g--)_[g]=c&255,c>>=8;return _[0]&128&&_.unshift(0),this._createEncoderBuffer(new n(_))},l.prototype._encodeBool=function(c){return this._createEncoderBuffer(c?255:0)},l.prototype._use=function(c,v){return typeof c=="function"&&(c=c(v)),c._getEncoder("der").tree},l.prototype._skipDefault=function(c,v,h){var m=this._baseState,g;if(m.default===null)return!1;var _=c.join();if(m.defaultBuffer===void 0&&(m.defaultBuffer=this._encodeValue(m.default,v,h).join()),_.length!==m.defaultBuffer.length)return!1;for(g=0;g<_.length;g++)if(_[g]!==m.defaultBuffer[g])return!1;return!0};function d(u,c,v,h){var m;if(u==="seqof"?u="seq":u==="setof"&&(u="set"),o.tagByName.hasOwnProperty(u))m=o.tagByName[u];else if(typeof u=="number"&&(u|0)===u)m=u;else return h.error("Unknown tag: "+u);return m>=31?h.error("Multi-octet tag encoding unsupported"):(c||(m|=32),m|=o.tagClassByName[v||"universal"]<<6,m)}return der_1}var pem,hasRequiredPem;function requirePem(){if(hasRequiredPem)return pem;hasRequiredPem=1;var r=requireInherits_browser(),n=requireDer();function a(i){n.call(this,i),this.enc="pem"}return r(a,n),pem=a,a.prototype.encode=function(o,s){for(var l=n.prototype.encode.call(this,o),f=l.toString("base64"),d=["-----BEGIN "+s.label+"-----"],u=0;u<f.length;u+=64)d.push(f.slice(u,u+64));return d.push("-----END "+s.label+"-----"),d.join(`
@@ -52,7 +52,7 @@ https://github.com/browserify/crypto-browserify`)},cryptoBrowserify.constants={D
52
52
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
53
53
  * derived from CryptoJS.mode.CTR
54
54
  * Jan Hruby jhruby.web@gmail.com
55
- */return a.mode.CTRGladman=function(){var i=a.lib.BlockCipherMode.extend();function o(f){if((f>>24&255)===255){var d=f>>16&255,u=f>>8&255,c=f&255;d===255?(d=0,u===255?(u=0,c===255?c=0:++c):++u):++d,f=0,f+=d<<16,f+=u<<8,f+=c}else f+=1<<24;return f}function s(f){return(f[0]=o(f[0]))===0&&(f[1]=o(f[1])),f}var l=i.Encryptor=i.extend({processBlock:function(f,d){var u=this._cipher,c=u.blockSize,v=this._iv,h=this._counter;v&&(h=this._counter=v.slice(0),this._iv=void 0),s(h);var m=h.slice(0);u.encryptBlock(m,0);for(var g=0;g<c;g++)f[d+g]^=m[g]}});return i.Decryptor=l,i}(),a.mode.CTRGladman})}(modeCtrGladman$1)),modeCtrGladman$1.exports}var modeOfb$1={exports:{}},modeOfb=modeOfb$1.exports,hasRequiredModeOfb;function requireModeOfb(){return hasRequiredModeOfb||(hasRequiredModeOfb=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireCipherCore())})(modeOfb,function(a){return a.mode.OFB=function(){var i=a.lib.BlockCipherMode.extend(),o=i.Encryptor=i.extend({processBlock:function(s,l){var f=this._cipher,d=f.blockSize,u=this._iv,c=this._keystream;u&&(c=this._keystream=u.slice(0),this._iv=void 0),f.encryptBlock(c,0);for(var v=0;v<d;v++)s[l+v]^=c[v]}});return i.Decryptor=o,i}(),a.mode.OFB})}(modeOfb$1)),modeOfb$1.exports}var modeEcb$1={exports:{}},modeEcb=modeEcb$1.exports,hasRequiredModeEcb;function requireModeEcb(){return hasRequiredModeEcb||(hasRequiredModeEcb=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireCipherCore())})(modeEcb,function(a){return a.mode.ECB=function(){var i=a.lib.BlockCipherMode.extend();return i.Encryptor=i.extend({processBlock:function(o,s){this._cipher.encryptBlock(o,s)}}),i.Decryptor=i.extend({processBlock:function(o,s){this._cipher.decryptBlock(o,s)}}),i}(),a.mode.ECB})}(modeEcb$1)),modeEcb$1.exports}var padAnsix923$1={exports:{}},padAnsix923=padAnsix923$1.exports,hasRequiredPadAnsix923;function requirePadAnsix923(){return hasRequiredPadAnsix923||(hasRequiredPadAnsix923=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireCipherCore())})(padAnsix923,function(a){return a.pad.AnsiX923={pad:function(i,o){var s=i.sigBytes,l=o*4,f=l-s%l,d=s+f-1;i.clamp(),i.words[d>>>2]|=f<<24-d%4*8,i.sigBytes+=f},unpad:function(i){var o=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=o}},a.pad.Ansix923})}(padAnsix923$1)),padAnsix923$1.exports}var padIso10126$1={exports:{}},padIso10126=padIso10126$1.exports,hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireCipherCore())})(padIso10126,function(a){return a.pad.Iso10126={pad:function(i,o){var s=o*4,l=s-i.sigBytes%s;i.concat(a.lib.WordArray.random(l-1)).concat(a.lib.WordArray.create([l<<24],1))},unpad:function(i){var o=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=o}},a.pad.Iso10126})}(padIso10126$1)),padIso10126$1.exports}var padIso97971$1={exports:{}},padIso97971=padIso97971$1.exports,hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireCipherCore())})(padIso97971,function(a){return a.pad.Iso97971={pad:function(i,o){i.concat(a.lib.WordArray.create([2147483648],1)),a.pad.ZeroPadding.pad(i,o)},unpad:function(i){a.pad.ZeroPadding.unpad(i),i.sigBytes--}},a.pad.Iso97971})}(padIso97971$1)),padIso97971$1.exports}var padZeropadding$1={exports:{}},padZeropadding=padZeropadding$1.exports,hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireCipherCore())})(padZeropadding,function(a){return a.pad.ZeroPadding={pad:function(i,o){var s=o*4;i.clamp(),i.sigBytes+=s-(i.sigBytes%s||s)},unpad:function(i){for(var o=i.words,s=i.sigBytes-1,s=i.sigBytes-1;s>=0;s--)if(o[s>>>2]>>>24-s%4*8&255){i.sigBytes=s+1;break}}},a.pad.ZeroPadding})}(padZeropadding$1)),padZeropadding$1.exports}var padNopadding$1={exports:{}},padNopadding=padNopadding$1.exports,hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireCipherCore())})(padNopadding,function(a){return a.pad.NoPadding={pad:function(){},unpad:function(){}},a.pad.NoPadding})}(padNopadding$1)),padNopadding$1.exports}var formatHex$1={exports:{}},formatHex=formatHex$1.exports,hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireCipherCore())})(formatHex,function(a){return function(i){var o=a,s=o.lib,l=s.CipherParams,f=o.enc,d=f.Hex,u=o.format;u.Hex={stringify:function(c){return c.ciphertext.toString(d)},parse:function(c){var v=d.parse(c);return l.create({ciphertext:v})}}}(),a.format.Hex})}(formatHex$1)),formatHex$1.exports}var aes$1={exports:{}},aes=aes$1.exports,hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(aes,function(a){return function(){var i=a,o=i.lib,s=o.BlockCipher,l=i.algo,f=[],d=[],u=[],c=[],v=[],h=[],m=[],g=[],_=[],S=[];(function(){for(var M=[],F=0;F<256;F++)F<128?M[F]=F<<1:M[F]=F<<1^283;for(var L=0,k=0,F=0;F<256;F++){var P=k^k<<1^k<<2^k<<3^k<<4;P=P>>>8^P&255^99,f[L]=P,d[P]=L;var U=M[L],B=M[U],j=M[B],$=M[P]*257^P*16843008;u[L]=$<<24|$>>>8,c[L]=$<<16|$>>>16,v[L]=$<<8|$>>>24,h[L]=$;var $=j*16843009^B*65537^U*257^L*16843008;m[P]=$<<24|$>>>8,g[P]=$<<16|$>>>16,_[P]=$<<8|$>>>24,S[P]=$,L?(L=U^M[M[M[j^U]]],k^=M[M[k]]):L=k=1}})();var N=[0,1,2,4,8,16,32,64,128,27,54],O=l.AES=s.extend({_doReset:function(){var M;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var F=this._keyPriorReset=this._key,L=F.words,k=F.sigBytes/4,P=this._nRounds=k+6,U=(P+1)*4,B=this._keySchedule=[],j=0;j<U;j++)j<k?B[j]=L[j]:(M=B[j-1],j%k?k>6&&j%k==4&&(M=f[M>>>24]<<24|f[M>>>16&255]<<16|f[M>>>8&255]<<8|f[M&255]):(M=M<<8|M>>>24,M=f[M>>>24]<<24|f[M>>>16&255]<<16|f[M>>>8&255]<<8|f[M&255],M^=N[j/k|0]<<24),B[j]=B[j-k]^M);for(var $=this._invKeySchedule=[],A=0;A<U;A++){var j=U-A;if(A%4)var M=B[j];else var M=B[j-4];A<4||j<=4?$[A]=M:$[A]=m[f[M>>>24]]^g[f[M>>>16&255]]^_[f[M>>>8&255]]^S[f[M&255]]}}},encryptBlock:function(M,F){this._doCryptBlock(M,F,this._keySchedule,u,c,v,h,f)},decryptBlock:function(M,F){var L=M[F+1];M[F+1]=M[F+3],M[F+3]=L,this._doCryptBlock(M,F,this._invKeySchedule,m,g,_,S,d);var L=M[F+1];M[F+1]=M[F+3],M[F+3]=L},_doCryptBlock:function(M,F,L,k,P,U,B,j){for(var $=this._nRounds,A=M[F]^L[0],R=M[F+1]^L[1],y=M[F+2]^L[2],b=M[F+3]^L[3],D=4,I=1;I<$;I++){var T=k[A>>>24]^P[R>>>16&255]^U[y>>>8&255]^B[b&255]^L[D++],C=k[R>>>24]^P[y>>>16&255]^U[b>>>8&255]^B[A&255]^L[D++],x=k[y>>>24]^P[b>>>16&255]^U[A>>>8&255]^B[R&255]^L[D++],w=k[b>>>24]^P[A>>>16&255]^U[R>>>8&255]^B[y&255]^L[D++];A=T,R=C,y=x,b=w}var T=(j[A>>>24]<<24|j[R>>>16&255]<<16|j[y>>>8&255]<<8|j[b&255])^L[D++],C=(j[R>>>24]<<24|j[y>>>16&255]<<16|j[b>>>8&255]<<8|j[A&255])^L[D++],x=(j[y>>>24]<<24|j[b>>>16&255]<<16|j[A>>>8&255]<<8|j[R&255])^L[D++],w=(j[b>>>24]<<24|j[A>>>16&255]<<16|j[R>>>8&255]<<8|j[y&255])^L[D++];M[F]=T,M[F+1]=C,M[F+2]=x,M[F+3]=w},keySize:256/32});i.AES=s._createHelper(O)}(),a.AES})}(aes$1)),aes$1.exports}var tripledes$1={exports:{}},tripledes=tripledes$1.exports,hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(tripledes,function(a){return function(){var i=a,o=i.lib,s=o.WordArray,l=o.BlockCipher,f=i.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],v=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],m=f.DES=l.extend({_doReset:function(){for(var N=this._key,O=N.words,M=[],F=0;F<56;F++){var L=d[F]-1;M[F]=O[L>>>5]>>>31-L%32&1}for(var k=this._subKeys=[],P=0;P<16;P++){for(var U=k[P]=[],B=c[P],F=0;F<24;F++)U[F/6|0]|=M[(u[F]-1+B)%28]<<31-F%6,U[4+(F/6|0)]|=M[28+(u[F+24]-1+B)%28]<<31-F%6;U[0]=U[0]<<1|U[0]>>>31;for(var F=1;F<7;F++)U[F]=U[F]>>>(F-1)*4+3;U[7]=U[7]<<5|U[7]>>>27}for(var j=this._invSubKeys=[],F=0;F<16;F++)j[F]=k[15-F]},encryptBlock:function(N,O){this._doCryptBlock(N,O,this._subKeys)},decryptBlock:function(N,O){this._doCryptBlock(N,O,this._invSubKeys)},_doCryptBlock:function(N,O,M){this._lBlock=N[O],this._rBlock=N[O+1],g.call(this,4,252645135),g.call(this,16,65535),_.call(this,2,858993459),_.call(this,8,16711935),g.call(this,1,1431655765);for(var F=0;F<16;F++){for(var L=M[F],k=this._lBlock,P=this._rBlock,U=0,B=0;B<8;B++)U|=v[B][((P^L[B])&h[B])>>>0];this._lBlock=P,this._rBlock=k^U}var j=this._lBlock;this._lBlock=this._rBlock,this._rBlock=j,g.call(this,1,1431655765),_.call(this,8,16711935),_.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),N[O]=this._lBlock,N[O+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function g(N,O){var M=(this._lBlock>>>N^this._rBlock)&O;this._rBlock^=M,this._lBlock^=M<<N}function _(N,O){var M=(this._rBlock>>>N^this._lBlock)&O;this._lBlock^=M,this._rBlock^=M<<N}i.DES=l._createHelper(m);var S=f.TripleDES=l.extend({_doReset:function(){var N=this._key,O=N.words;if(O.length!==2&&O.length!==4&&O.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var M=O.slice(0,2),F=O.length<4?O.slice(0,2):O.slice(2,4),L=O.length<6?O.slice(0,2):O.slice(4,6);this._des1=m.createEncryptor(s.create(M)),this._des2=m.createEncryptor(s.create(F)),this._des3=m.createEncryptor(s.create(L))},encryptBlock:function(N,O){this._des1.encryptBlock(N,O),this._des2.decryptBlock(N,O),this._des3.encryptBlock(N,O)},decryptBlock:function(N,O){this._des3.decryptBlock(N,O),this._des2.encryptBlock(N,O),this._des1.decryptBlock(N,O)},keySize:192/32,ivSize:64/32,blockSize:64/32});i.TripleDES=l._createHelper(S)}(),a.TripleDES})}(tripledes$1)),tripledes$1.exports}var rc4$1={exports:{}},rc4=rc4$1.exports,hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(rc4,function(a){return function(){var i=a,o=i.lib,s=o.StreamCipher,l=i.algo,f=l.RC4=s.extend({_doReset:function(){for(var c=this._key,v=c.words,h=c.sigBytes,m=this._S=[],g=0;g<256;g++)m[g]=g;for(var g=0,_=0;g<256;g++){var S=g%h,N=v[S>>>2]>>>24-S%4*8&255;_=(_+m[g]+N)%256;var O=m[g];m[g]=m[_],m[_]=O}this._i=this._j=0},_doProcessBlock:function(c,v){c[v]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var c=this._S,v=this._i,h=this._j,m=0,g=0;g<4;g++){v=(v+1)%256,h=(h+c[v])%256;var _=c[v];c[v]=c[h],c[h]=_,m|=c[(c[v]+c[h])%256]<<24-g*8}return this._i=v,this._j=h,m}i.RC4=s._createHelper(f);var u=l.RC4Drop=f.extend({cfg:f.cfg.extend({drop:192}),_doReset:function(){f._doReset.call(this);for(var c=this.cfg.drop;c>0;c--)d.call(this)}});i.RC4Drop=s._createHelper(u)}(),a.RC4})}(rc4$1)),rc4$1.exports}var rabbit$1={exports:{}},rabbit=rabbit$1.exports,hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(rabbit,function(a){return function(){var i=a,o=i.lib,s=o.StreamCipher,l=i.algo,f=[],d=[],u=[],c=l.Rabbit=s.extend({_doReset:function(){for(var h=this._key.words,m=this.cfg.iv,g=0;g<4;g++)h[g]=(h[g]<<8|h[g]>>>24)&16711935|(h[g]<<24|h[g]>>>8)&4278255360;var _=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],S=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var g=0;g<4;g++)v.call(this);for(var g=0;g<8;g++)S[g]^=_[g+4&7];if(m){var N=m.words,O=N[0],M=N[1],F=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,L=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,k=F>>>16|L&4294901760,P=L<<16|F&65535;S[0]^=F,S[1]^=k,S[2]^=L,S[3]^=P,S[4]^=F,S[5]^=k,S[6]^=L,S[7]^=P;for(var g=0;g<4;g++)v.call(this)}},_doProcessBlock:function(h,m){var g=this._X;v.call(this),f[0]=g[0]^g[5]>>>16^g[3]<<16,f[1]=g[2]^g[7]>>>16^g[5]<<16,f[2]=g[4]^g[1]>>>16^g[7]<<16,f[3]=g[6]^g[3]>>>16^g[1]<<16;for(var _=0;_<4;_++)f[_]=(f[_]<<8|f[_]>>>24)&16711935|(f[_]<<24|f[_]>>>8)&4278255360,h[m+_]^=f[_]},blockSize:128/32,ivSize:64/32});function v(){for(var h=this._X,m=this._C,g=0;g<8;g++)d[g]=m[g];m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0<d[0]>>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0<d[1]>>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0<d[2]>>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0<d[3]>>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0<d[4]>>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0<d[5]>>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0<d[6]>>>0?1:0)|0,this._b=m[7]>>>0<d[7]>>>0?1:0;for(var g=0;g<8;g++){var _=h[g]+m[g],S=_&65535,N=_>>>16,O=((S*S>>>17)+S*N>>>15)+N*N,M=((_&4294901760)*_|0)+((_&65535)*_|0);u[g]=O^M}h[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,h[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,h[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,h[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,h[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,h[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,h[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,h[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}i.Rabbit=s._createHelper(c)}(),a.Rabbit})}(rabbit$1)),rabbit$1.exports}var rabbitLegacy$1={exports:{}},rabbitLegacy=rabbitLegacy$1.exports,hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(rabbitLegacy,function(a){return function(){var i=a,o=i.lib,s=o.StreamCipher,l=i.algo,f=[],d=[],u=[],c=l.RabbitLegacy=s.extend({_doReset:function(){var h=this._key.words,m=this.cfg.iv,g=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],_=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var S=0;S<4;S++)v.call(this);for(var S=0;S<8;S++)_[S]^=g[S+4&7];if(m){var N=m.words,O=N[0],M=N[1],F=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,L=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,k=F>>>16|L&4294901760,P=L<<16|F&65535;_[0]^=F,_[1]^=k,_[2]^=L,_[3]^=P,_[4]^=F,_[5]^=k,_[6]^=L,_[7]^=P;for(var S=0;S<4;S++)v.call(this)}},_doProcessBlock:function(h,m){var g=this._X;v.call(this),f[0]=g[0]^g[5]>>>16^g[3]<<16,f[1]=g[2]^g[7]>>>16^g[5]<<16,f[2]=g[4]^g[1]>>>16^g[7]<<16,f[3]=g[6]^g[3]>>>16^g[1]<<16;for(var _=0;_<4;_++)f[_]=(f[_]<<8|f[_]>>>24)&16711935|(f[_]<<24|f[_]>>>8)&4278255360,h[m+_]^=f[_]},blockSize:128/32,ivSize:64/32});function v(){for(var h=this._X,m=this._C,g=0;g<8;g++)d[g]=m[g];m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0<d[0]>>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0<d[1]>>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0<d[2]>>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0<d[3]>>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0<d[4]>>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0<d[5]>>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0<d[6]>>>0?1:0)|0,this._b=m[7]>>>0<d[7]>>>0?1:0;for(var g=0;g<8;g++){var _=h[g]+m[g],S=_&65535,N=_>>>16,O=((S*S>>>17)+S*N>>>15)+N*N,M=((_&4294901760)*_|0)+((_&65535)*_|0);u[g]=O^M}h[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,h[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,h[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,h[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,h[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,h[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,h[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,h[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}i.RabbitLegacy=s._createHelper(c)}(),a.RabbitLegacy})}(rabbitLegacy$1)),rabbitLegacy$1.exports}var blowfish$1={exports:{}},blowfish=blowfish$1.exports,hasRequiredBlowfish;function requireBlowfish(){return hasRequiredBlowfish||(hasRequiredBlowfish=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(blowfish,function(a){return function(){var i=a,o=i.lib,s=o.BlockCipher,l=i.algo;const f=16,d=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],u=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var c={pbox:[],sbox:[]};function v(S,N){let O=N>>24&255,M=N>>16&255,F=N>>8&255,L=N&255,k=S.sbox[0][O]+S.sbox[1][M];return k=k^S.sbox[2][F],k=k+S.sbox[3][L],k}function h(S,N,O){let M=N,F=O,L;for(let k=0;k<f;++k)M=M^S.pbox[k],F=v(S,M)^F,L=M,M=F,F=L;return L=M,M=F,F=L,F=F^S.pbox[f],M=M^S.pbox[f+1],{left:M,right:F}}function m(S,N,O){let M=N,F=O,L;for(let k=f+1;k>1;--k)M=M^S.pbox[k],F=v(S,M)^F,L=M,M=F,F=L;return L=M,M=F,F=L,F=F^S.pbox[1],M=M^S.pbox[0],{left:M,right:F}}function g(S,N,O){for(let P=0;P<4;P++){S.sbox[P]=[];for(let U=0;U<256;U++)S.sbox[P][U]=u[P][U]}let M=0;for(let P=0;P<f+2;P++)S.pbox[P]=d[P]^N[M],M++,M>=O&&(M=0);let F=0,L=0,k=0;for(let P=0;P<f+2;P+=2)k=h(S,F,L),F=k.left,L=k.right,S.pbox[P]=F,S.pbox[P+1]=L;for(let P=0;P<4;P++)for(let U=0;U<256;U+=2)k=h(S,F,L),F=k.left,L=k.right,S.sbox[P][U]=F,S.sbox[P][U+1]=L;return!0}var _=l.Blowfish=s.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var S=this._keyPriorReset=this._key,N=S.words,O=S.sigBytes/4;g(c,N,O)}},encryptBlock:function(S,N){var O=h(c,S[N],S[N+1]);S[N]=O.left,S[N+1]=O.right},decryptBlock:function(S,N){var O=m(c,S[N],S[N+1]);S[N]=O.left,S[N+1]=O.right},blockSize:64/32,keySize:128/32,ivSize:64/32});i.Blowfish=s._createHelper(_)}(),a.Blowfish})}(blowfish$1)),blowfish$1.exports}var cryptoJs=cryptoJs$1.exports,hasRequiredCryptoJs;function requireCryptoJs(){return hasRequiredCryptoJs||(hasRequiredCryptoJs=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireX64Core(),requireLibTypedarrays(),requireEncUtf16(),requireEncBase64(),requireEncBase64url(),requireMd5(),requireSha1(),requireSha256(),requireSha224(),requireSha512(),requireSha384(),requireSha3(),requireRipemd160(),requireHmac(),requirePbkdf2(),requireEvpkdf(),requireCipherCore(),requireModeCfb(),requireModeCtr(),requireModeCtrGladman(),requireModeOfb(),requireModeEcb(),requirePadAnsix923(),requirePadIso10126(),requirePadIso97971(),requirePadZeropadding(),requirePadNopadding(),requireFormatHex(),requireAes(),requireTripledes(),requireRc4(),requireRabbit(),requireRabbitLegacy(),requireBlowfish())})(cryptoJs,function(a){return a})}(cryptoJs$1)),cryptoJs$1.exports}requireCryptoJs();requireBrowser$b();const APOLLO_SUBSCRIPTION_PROTOCOL="graphql-ws",AUTO_SUBSCRIPTION_PROTOCOL="auto",DEFAULT_SUBSCRIPTION_PROTOCOL=AUTO_SUBSCRIPTION_PROTOCOL,GRAPHQL_WS_SUBSCRIPTION_PROTOCOL="graphql-transport-ws",GRAPHQL_SSE_SUBSCRIPTION_PROTOCOL="graphql-sse",ATTACHMENT_KIND_CONNECTION_SETTINGS="connection-settings",ATTACHMENT_KIND_DOCUMENT_CONTENT="document-content",ATTACHMENT_KIND_ORIGIN_DOCUMENT_CONTENT="origin-document-content",ATTACHMENT_KIND_VARIABLE_COLLECTION="variable-collection",ATTACHMENT_KIND_ORIGIN_VARIABLE_COLLECTION="origin-variable-collection",ATTACHMENT_KIND_FILE_CONTENT="file-content",ATTACHMENT_KIND_VARIABLE_JSON_SCHEMA="variable-json-schema",ITEM_KIND_API="api",ITEM_KIND_NEW_API="new-api",ITEM_KIND_API_DOCUMENT="api-document",ITEM_KIND_BASIC_DOCUMENT="document",ITEM_KIND_HISTORICAL_DOCUMENT="historical-document",ITEM_KIND_NEW_DOCUMENT="new-document",ITEM_KIND_FILE="file";function isApiItem(r){return r?.kind===ITEM_KIND_API}function isNewApiItem(r){return r?.kind===ITEM_KIND_NEW_API}function isDocumentItem(r){return isApiDocumentItem(r)||isBasicDocumentItem(r)||isHistoricalDocumentItem(r)||isNewDocumentItem(r)}function isApiDocumentItem(r){return r?.kind===ITEM_KIND_API_DOCUMENT}function isBasicDocumentItem(r){return r?.kind===ITEM_KIND_BASIC_DOCUMENT}function isHistoricalDocumentItem(r){return r?.kind===ITEM_KIND_HISTORICAL_DOCUMENT}function isNewDocumentItem(r){return r?.kind===ITEM_KIND_NEW_DOCUMENT}function isFileItem(r){return r?.kind===ITEM_KIND_FILE}function isConnectionSettingsAttachment(r){return r?.kind===ATTACHMENT_KIND_CONNECTION_SETTINGS}function isDocumentContentAttachment(r){return r?.kind===ATTACHMENT_KIND_DOCUMENT_CONTENT||r?.kind===ATTACHMENT_KIND_ORIGIN_DOCUMENT_CONTENT}function isVariableCollectionAttachment(r){return r?.kind===ATTACHMENT_KIND_VARIABLE_COLLECTION||r?.kind===ATTACHMENT_KIND_ORIGIN_VARIABLE_COLLECTION}function mergeDocumentItemAndContent(r,n){const{body:a,hash:i,variables:o}=n;return{...r,body:a,hash:i,variables:o}}function calculateVariableJsonSchemaHash(r){const n=createHash(JSON.stringify(r.schema));return{...r,hash:n}}function interpolateHttpConnectionSettings(r,n){const a=r?.http;return a?{...a,authentication:interpolateAuthentication(a.authentication,n),endpoint:interpolateValue(a.endpoint,n),sdlEndpoint:a.sdlEndpoint?interpolateValue(a.sdlEndpoint,n):a.sdlEndpoint,sseSubscriptionEndpoint:a.sseSubscriptionEndpoint?interpolateValue(a.sseSubscriptionEndpoint,n):a.sseSubscriptionEndpoint,subscriptionEndpoint:a.subscriptionEndpoint?interpolateValue(a.subscriptionEndpoint,n):a.subscriptionEndpoint,headers:a.headers?a.headers.map(i=>({...i,name:interpolateValue(i.name,n),value:interpolateValue(i.value,n)})):a.headers}:null}function interpolateAuthentication(r,n){if(r)return r?{...r,basicOptions:r.basicOptions?{password:interpolateValue(r.basicOptions.password,n),username:interpolateValue(r.basicOptions.username,n)}:void 0,bearerOptions:r.bearerOptions?{prefix:r.bearerOptions.prefix?interpolateValue(r.bearerOptions.token,n):void 0,token:interpolateValue(r.bearerOptions.token,n)}:void 0,oAuth2Options:interpolateOAuth2Authentication(r.oAuth2Options,n),headerValue:r.headerValue?interpolateValue(r.headerValue,n):void 0}:void 0}function interpolateOAuth2Authentication(r,n){return r?{...r,accessTokenUrl:interpolateValue(r.accessTokenUrl,n),audience:interpolateValue(r.audience,n),authorizationUrl:interpolateValue(r.authorizationUrl,n),clientId:interpolateValue(r.clientId,n),clientSecret:interpolateValue(r.clientSecret,n),origin:interpolateValue(r.origin,n),password:interpolateValue(r.password,n),prefix:interpolateValue(r.prefix,n),redirectUrl:interpolateValue(r.redirectUrl,n),resource:interpolateValue(r.resource,n),scope:interpolateValue(r.scope,n),state:interpolateValue(r.state,n),username:interpolateValue(r.username,n),sessionId:r.sessionId?interpolateValue(r.sessionId,n):void 0}:void 0}function interpolateValue(r,n){let a=r;const i=r.matchAll(INTERPOLATION_VARIABLE_NAME_PATTERN);for(const o of i)a=a.replace(o[0],n.get(o[1])??o[0]);return a}function resolveVariables(r){const n=new Map;for(const{name:a,value:i,currentValue:o,enabled:s}of r)s&&n.set(a,o||i);return n}async function getConnectionSettings(r,n){return openDatabaseWithTransactionScope(["attachment","item"],"readonly",async a=>{const i=await a.store.item.get(r);return isApiItem(i)||isNewApiItem(i)||isDocumentItem(i)?getConnectionSettingsTransactional(a,i):a.abort("Item does not exist or is not of type API nor Document.")},n)}async function getInterpolatedHttpConnection(r,n,a){return openDatabaseWithTransactionScope(["attachment","item","workspace"],"readonly",async i=>{const o=await i.store.item.get(r);if(!(isApiItem(o)||isNewApiItem(o)||isDocumentItem(o)))return i.abort("Item does not exist or is not of type API nor Document.");if(!n)return(await getConnectionSettingsTransactional(i,o))?.http;const[s,l]=await Promise.all([getConnectionSettingsTransactional(i,o),getVariableCollectionByIdTransactional(i,n)]);return s&&l?interpolateHttpConnectionSettings(s,resolveVariables(l.variables))??void 0:s?.http},a)}async function getInterpolatedHttpConnectionForActiveEnvironment(r,n){return openDatabaseWithTransactionScope(["attachment","item","workspace"],"readonly",async a=>{const i=await a.store.item.get(r);if(!(isApiItem(i)||isNewApiItem(i)||isDocumentItem(i)))return a.abort("Item does not exist or is not of type API nor Document.");let o=null;if(i.workspaceId&&(o=(await a.store.workspace.get(i.workspaceId))?.appState?.activeEnvironmentId??null),!o)return(await getConnectionSettingsTransactional(a,i))?.http;const[s,l]=await Promise.all([getConnectionSettingsTransactional(a,i),getVariableCollectionByIdTransactional(a,o)]);return s&&l?interpolateHttpConnectionSettings(s,resolveVariables(l.variables))??void 0:s?.http},n)}async function getConnectionSettingsTransactional(r,n){const a=await r.store.attachment.get([isApiDocumentItem(n)?n.apiId:n.id,ATTACHMENT_KIND_CONNECTION_SETTINGS]);if(isConnectionSettingsAttachment(a))return a}async function getVariableCollection(r){return openDatabaseScope(async n=>{const a=await n.get("attachment",[r,ATTACHMENT_KIND_VARIABLE_COLLECTION]);if(isVariableCollectionAttachment(a))return a})}async function getVariableCollectionByIdTransactional(r,n){const a=await r.store.attachment.get([n,ATTACHMENT_KIND_VARIABLE_COLLECTION]);if(isVariableCollectionAttachment(a))return a}async function getFileContents(r,n){return openDatabaseWithTransactionScope(["attachment","item"],"readonly",a=>Promise.all(r.map(async i=>{const o=await a.store.item.get(i);return isFileItem(o)?await a.store.attachment.get([i,ATTACHMENT_KIND_FILE_CONTENT]):a.abort("Item does not exist or is not of type API nor Document.")})),n)}async function getResolvedVariables(r){return resolveVariables(r?(await getVariableCollection(r))?.variables??[]:[])}function getDocumentItemAndContent(r,n){return openDatabaseWithTransactionScope(["attachment","item"],"readonly",async a=>{const[i,o]=await Promise.all([a.store.item.get(r),a.store.attachment.get([r,ATTACHMENT_KIND_DOCUMENT_CONTENT])]);if(isDocumentItem(i)&&isDocumentContentAttachment(o))return mergeDocumentItemAndContent(i,o)},n)}function getAllFileItemInfos(r){return openDatabaseWithTransactionScope(["item"],"readonly",n=>getFileInfosTransactional(n,r))}function getFileItemInfosByNames(r,...n){return openDatabaseWithTransactionScope(["item"],"readonly",a=>getFileInfosTransactional(a,r,i=>n.includes(i)))}async function getFileInfosTransactional(r,n,a){const i=[],o={};for await(const s of r.index.item.kind.iterate([n,ITEM_KIND_FILE])){const l=s.value;if(isFileItem(l)){l.parentId&&!o[l.parentId]&&(o[l.parentId]=await getItemNamePathTransactional(r,l.path).then(d=>d?.join("/")??""));const f=`${l.parentId&&o[l.parentId]?.length?`${o[l.parentId]}/`:""}${l.name}`;(a?.(f)??!0)&&i.push({id:l.id,workspaceId:l.workspaceId,name:f,size:l.size})}}return i}async function getItemNamePathTransactional(r,n){return Promise.all(n.slice(0,-1).map(async a=>{const i=await r.store.item.get(a);if(!i)throw new Error("Parent does not exist");return i.name}))}async function setVariableJsonSchema(r,n,a){return openDatabaseWithTransactionScope(["attachment","item"],"readwrite",async i=>{let o=await i.store.item.get(r);if(!isDocumentItem(o))return i.abort("Item does not exist or is not of type Document.");const s=calculateVariableJsonSchemaHash({itemId:r,workspaceId:o.workspaceId,kind:ATTACHMENT_KIND_VARIABLE_JSON_SCHEMA,schema:n});return await i.store.attachment.put(s),s},a)}function tryAcquireLock(r,n,a){return openDatabaseWithTransactionScope(["mutex"],"readwrite",async i=>{const o=await i.store.mutex.get(r),s=()=>i.store.mutex.put({resource:r,owner:n,expiresAt:now()+a});return o?o.owner===n||o.expiresAt<now()?(await s(),!0):!1:(await s(),!0)})}function releaseLock(r){return openDatabaseScope(n=>n.delete("mutex",r))}var GraphQLSchemaAttachmentKind=(r=>(r.SDL_SCHEMA="sdl-schema",r.STATISTICS="statistics",r.ITEMS="items",r))(GraphQLSchemaAttachmentKind||{}),GraphQLSchemaKind=(r=>(r.SDL_FETCH="sdl-fetch",r.SDL_PROBE="sdl-probe",r.INTROSPECTION="introspection",r))(GraphQLSchemaKind||{});function isGraphQLSchemaItemsAttachmentEntity(r){return!!r&&r.kind===GraphQLSchemaAttachmentKind.ITEMS}function isGraphQLSchemaStatisticsAttachmentEntity(r){return!!r&&r.kind===GraphQLSchemaAttachmentKind.STATISTICS}function setGraphQLSchemaEntity(r,n,a,i,o){return openDatabaseWithTransactionScope(["schema","schema-attachment"],"readwrite",async s=>{const l={endpoint:r,updatedAt:now(),hash:calculateGraphQLSchemaEntityHash(r,a),indexed:!1,hasUploadType:!!n.getType("Upload"),queryTypeName:n.getQueryType()?.name??null,mutationTypeName:n.getMutationType()?.name??null,subscriptionTypeName:n.getSubscriptionType()?.name??null,supportsSemanticIntrospection:o,schemaKind:i};return await Promise.all([s.store.schema.put(l),s.store.schemaAttachment.put({endpoint:r,kind:GraphQLSchemaAttachmentKind.SDL_SCHEMA,value:a}),s.store.schemaAttachment.delete([r,GraphQLSchemaAttachmentKind.ITEMS]),s.store.schemaAttachment.delete([r,GraphQLSchemaAttachmentKind.STATISTICS]),s.done]),l})}function getGraphQLSchemaEntity(r){const n=harmonizeSchemaUrl(r);return getEntityByKey("schema",n)}async function getGraphQLSchemaItems(r){const n=harmonizeSchemaUrl(r),a=await getEntityByKey("schema-attachment",[n,GraphQLSchemaAttachmentKind.ITEMS]);return isGraphQLSchemaItemsAttachmentEntity(a)?a.value:void 0}async function getGraphQLSchemaStatistics(r){const n=harmonizeSchemaUrl(r),a=await getEntityByKey("schema-attachment",[n,GraphQLSchemaAttachmentKind.STATISTICS]);return isGraphQLSchemaStatisticsAttachmentEntity(a)?a.value:void 0}function calculateGraphQLSchemaEntityHash(r,n){return createHash(JSON.stringify(["graphql-schema-entity",r,n]))}RelativeDateTimeRange.last30Minutes;RelativeDateTimeRange.last30Minutes,RelativeDateTimeRange.today,RelativeDateTimeRange.today,RelativeDateTimeRange.today;function isAsyncIterable$1(r){return r!==null&&typeof r=="object"&&isFunction(Object(r)[Symbol.asyncIterator])}function isPlainObject(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)}function isFunction(r){return typeof r=="function"}function requireLock(r,n,a){const i=FIVE_SECONDS,o=createId("mutex");return acquireLock(r,o,i).then(async()=>{const s=new TimeoutAbortController(i);try{const[l]=await Promise.all([n(s.signal.toAbortSignal()).then(f=>(s.cancel(),f)),s.signal.toPromise()]);return l}catch(l){throw isTimeoutAbortError(l)?new LockExpiredError(r):l}finally{s.cancel(),await releaseLock(r)}})}async function acquireLock(r,n,a){for(;!await tryAcquireLock(r,n,a);)await delay(FIFTY_MILLISECONDS)}class LockExpiredError extends Error{constructor(n){super(`Lock for resource "${n}" has been expired`)}}async function tryGetUserSessionAndRefresh(r){const n=await getCurrentTenant();if(!n)return null;let a=await getUserSession(n);if(!a)return null;if(isSessionExpired(a)&&(a=await refreshSession(a),isSessionExpired(a)))throw new UserSessionExpiredError;return a}async function refreshSession(r,n){return requireLock("refresh-session",a);async function a(i){const o=i;let s=await getUserSession(r)||r;if(!isSessionExpired(s)&&s.requiresSignIn)return s;const l=new Headers,f=new URLSearchParams;l.append(HEADER_CONTENT_TYPE,"application/x-www-form-urlencoded"),f.append("client_id","3c9f56bd-0e2c-4358-9bf5-ff3a0efa9bf5"),f.append("grant_type","refresh_token"),f.append("refresh_token",s.refreshToken);try{const d=await fetch(`${s.issuer}/connect/token`,{method:"POST",headers:l,body:f,signal:o});if(d.ok){const u=await d.json();if(isToken(u))return replaceUserSession({...s,requiresSignIn:!1,idToken:u.id_token,accessToken:u.access_token,refreshToken:u.refresh_token,expiresAt:now()+u.expires_in*ONE_SECOND})}else if(d.status===400&&(s=await getUserSession(r)||r,isSessionExpired(s)))return replaceUserSession({...s,requiresSignIn:!0,lastTriedToRefresh:now()});return s}catch(d){console.error(d)}return s=await getUserSession(r)||r,isSessionExpired(s)?replaceUserSession({...s,lastTriedToRefresh:now()}):s}}function isToken(r){return isPlainObject(r)&&"access_token"in r}class UserSessionExpiredError extends Error{constructor(){super("User session has been expired")}}async function getHttpOptions(r){const n=await tryGetUserSessionAndRefresh(),a=isURL(r)?r:new URL(r,n?.apiUrl??"https://api.chillicream.com").href,i=getHeaders(n?.accessToken);return{uri:a,headers:i}}function getHeaders(r){const n=new Headers;if(n.set("CCC-Agent",APP_AGENT),n.set("GraphQL-Agent",APP_AGENT),n.set("GraphQL-Client-Id",APP_GRAPHQL_CLIENT_ID),n.set("GraphQL-Client-Version",APP_VERSION),n.set("GraphQL-Defer-RFC","v2"),r)n.set("Authorization",`Bearer ${r}`);else throw new UserSessionExpiredError;return n}var RelayConcreteNode_1,hasRequiredRelayConcreteNode;function requireRelayConcreteNode(){if(hasRequiredRelayConcreteNode)return RelayConcreteNode_1;hasRequiredRelayConcreteNode=1;var r={ACTOR_CHANGE:"ActorChange",CATCH_FIELD:"CatchField",CONDITION:"Condition",CLIENT_COMPONENT:"ClientComponent",CLIENT_EDGE_TO_SERVER_OBJECT:"ClientEdgeToServerObject",CLIENT_EDGE_TO_CLIENT_OBJECT:"ClientEdgeToClientObject",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",ALIASED_FRAGMENT_SPREAD:"AliasedFragmentSpread",ALIASED_INLINE_FRAGMENT_SPREAD:"AliasedInlineFragmentSpread",RELAY_RESOLVER:"RelayResolver",RELAY_LIVE_RESOLVER:"RelayLiveResolver",REQUIRED_FIELD:"RequiredField",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",TYPE_DISCRIMINATOR:"TypeDiscriminator",UPDATABLE_QUERY:"UpdatableQuery",VARIABLE:"Variable"};return RelayConcreteNode_1=r,RelayConcreteNode_1}var browser,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser;hasRequiredBrowser=1;var r=function(n,a,i,o,s,l,f,d){if(!n){var u;if(a===void 0)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[i,o,s,l,f,d],v=0;u=new Error(a.replace(/%s/g,function(){return c[v++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};return browser=r,browser}var emptyFunction_1,hasRequiredEmptyFunction;function requireEmptyFunction(){if(hasRequiredEmptyFunction)return emptyFunction_1;hasRequiredEmptyFunction=1;function r(a){return function(){return a}}var n=function(){};return n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(a){return a},emptyFunction_1=n,emptyFunction_1}var warning_1,hasRequiredWarning;function requireWarning(){if(hasRequiredWarning)return warning_1;hasRequiredWarning=1;var r=requireEmptyFunction(),n=r;return warning_1=n,warning_1}var GraphQLTag,hasRequiredGraphQLTag;function requireGraphQLTag(){if(hasRequiredGraphQLTag)return GraphQLTag;hasRequiredGraphQLTag=1;var r=requireRelayConcreteNode(),n=requireBrowser();requireWarning();function a(g){n(!1)}function i(g){var _=g;return typeof _=="function"?_=_():_.default&&(_=_.default),_}function o(g){var _=i(g);return typeof _=="object"&&_!==null&&_.kind===r.FRAGMENT}function s(g){var _=i(g);return typeof _=="object"&&_!==null&&_.kind===r.REQUEST}function l(g){var _=i(g);return typeof _=="object"&&_!==null&&_.kind===r.UPDATABLE_QUERY}function f(g){var _=i(g);return typeof _=="object"&&_!==null&&_.kind===r.INLINE_DATA_FRAGMENT}function d(g){var _=i(g);return o(_)||n(!1),_}function u(g){var _,S=d(g),N=(_=S.metadata)===null||_===void 0?void 0:_.refetch,O=N?.connection;return N===null||typeof N!="object"||O===null||typeof O!="object"?null:S}function c(g){var _,S=d(g),N=(_=S.metadata)===null||_===void 0?void 0:_.refetch;return N===null||typeof N!="object"?null:S}function v(g){var _=i(g);return s(_)||n(!1),_}function h(g){var _=i(g);return l(_)||n(!1),_}function m(g){var _=i(g);return f(_)||n(!1),_}return GraphQLTag={getFragment:d,getInlineDataFragment:m,getNode:i,getPaginationFragment:u,getRefetchableFragment:c,getRequest:v,getUpdatableQuery:h,graphql:a,isFragment:o,isInlineDataFragment:f,isRequest:s,isUpdatableQuery:l},GraphQLTag}var interopRequireDefault={exports:{}},hasRequiredInteropRequireDefault;function requireInteropRequireDefault(){return hasRequiredInteropRequireDefault||(hasRequiredInteropRequireDefault=1,function(r){function n(a){return a&&a.__esModule?a:{default:a}}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(interopRequireDefault)),interopRequireDefault.exports}var objectSpread2={exports:{}},defineProperty={exports:{}},toPropertyKey={exports:{}},_typeof={exports:{}},hasRequired_typeof;function require_typeof(){return hasRequired_typeof||(hasRequired_typeof=1,function(r){function n(a){"@babel/helpers - typeof";return r.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},r.exports.__esModule=!0,r.exports.default=r.exports,n(a)}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(_typeof)),_typeof.exports}var toPrimitive={exports:{}},hasRequiredToPrimitive;function requireToPrimitive(){return hasRequiredToPrimitive||(hasRequiredToPrimitive=1,function(r){var n=require_typeof().default;function a(i,o){if(n(i)!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var l=s.call(i,o||"default");if(n(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(i)}r.exports=a,r.exports.__esModule=!0,r.exports.default=r.exports}(toPrimitive)),toPrimitive.exports}var hasRequiredToPropertyKey;function requireToPropertyKey(){return hasRequiredToPropertyKey||(hasRequiredToPropertyKey=1,function(r){var n=require_typeof().default,a=requireToPrimitive();function i(o){var s=a(o,"string");return n(s)=="symbol"?s:s+""}r.exports=i,r.exports.__esModule=!0,r.exports.default=r.exports}(toPropertyKey)),toPropertyKey.exports}var hasRequiredDefineProperty;function requireDefineProperty(){return hasRequiredDefineProperty||(hasRequiredDefineProperty=1,function(r){var n=requireToPropertyKey();function a(i,o,s){return(o=n(o))in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}r.exports=a,r.exports.__esModule=!0,r.exports.default=r.exports}(defineProperty)),defineProperty.exports}var hasRequiredObjectSpread2;function requireObjectSpread2(){return hasRequiredObjectSpread2||(hasRequiredObjectSpread2=1,function(r){var n=requireDefineProperty();function a(o,s){var l=Object.keys(o);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(o);s&&(f=f.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),l.push.apply(l,f)}return l}function i(o){for(var s=1;s<arguments.length;s++){var l=arguments[s]!=null?arguments[s]:{};s%2?a(Object(l),!0).forEach(function(f){n(o,f,l[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(l)):a(Object(l)).forEach(function(f){Object.defineProperty(o,f,Object.getOwnPropertyDescriptor(l,f))})}return o}r.exports=i,r.exports.__esModule=!0,r.exports.default=r.exports}(objectSpread2)),objectSpread2.exports}var createForOfIteratorHelper={exports:{}},unsupportedIterableToArray={exports:{}},arrayLikeToArray={exports:{}},hasRequiredArrayLikeToArray;function requireArrayLikeToArray(){return hasRequiredArrayLikeToArray||(hasRequiredArrayLikeToArray=1,function(r){function n(a,i){(i==null||i>a.length)&&(i=a.length);for(var o=0,s=Array(i);o<i;o++)s[o]=a[o];return s}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(arrayLikeToArray)),arrayLikeToArray.exports}var hasRequiredUnsupportedIterableToArray;function requireUnsupportedIterableToArray(){return hasRequiredUnsupportedIterableToArray||(hasRequiredUnsupportedIterableToArray=1,function(r){var n=requireArrayLikeToArray();function a(i,o){if(i){if(typeof i=="string")return n(i,o);var s={}.toString.call(i).slice(8,-1);return s==="Object"&&i.constructor&&(s=i.constructor.name),s==="Map"||s==="Set"?Array.from(i):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?n(i,o):void 0}}r.exports=a,r.exports.__esModule=!0,r.exports.default=r.exports}(unsupportedIterableToArray)),unsupportedIterableToArray.exports}var hasRequiredCreateForOfIteratorHelper;function requireCreateForOfIteratorHelper(){return hasRequiredCreateForOfIteratorHelper||(hasRequiredCreateForOfIteratorHelper=1,function(r){var n=requireUnsupportedIterableToArray();function a(i,o){var s=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!s){if(Array.isArray(i)||(s=n(i))||o&&i&&typeof i.length=="number"){s&&(i=s);var l=0,f=function(){};return{s:f,n:function(){return l>=i.length?{done:!0}:{done:!1,value:i[l++]}},e:function(h){throw h},f}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
55
+ */return a.mode.CTRGladman=function(){var i=a.lib.BlockCipherMode.extend();function o(f){if((f>>24&255)===255){var d=f>>16&255,u=f>>8&255,c=f&255;d===255?(d=0,u===255?(u=0,c===255?c=0:++c):++u):++d,f=0,f+=d<<16,f+=u<<8,f+=c}else f+=1<<24;return f}function s(f){return(f[0]=o(f[0]))===0&&(f[1]=o(f[1])),f}var l=i.Encryptor=i.extend({processBlock:function(f,d){var u=this._cipher,c=u.blockSize,v=this._iv,h=this._counter;v&&(h=this._counter=v.slice(0),this._iv=void 0),s(h);var m=h.slice(0);u.encryptBlock(m,0);for(var g=0;g<c;g++)f[d+g]^=m[g]}});return i.Decryptor=l,i}(),a.mode.CTRGladman})}(modeCtrGladman$1)),modeCtrGladman$1.exports}var modeOfb$1={exports:{}},modeOfb=modeOfb$1.exports,hasRequiredModeOfb;function requireModeOfb(){return hasRequiredModeOfb||(hasRequiredModeOfb=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireCipherCore())})(modeOfb,function(a){return a.mode.OFB=function(){var i=a.lib.BlockCipherMode.extend(),o=i.Encryptor=i.extend({processBlock:function(s,l){var f=this._cipher,d=f.blockSize,u=this._iv,c=this._keystream;u&&(c=this._keystream=u.slice(0),this._iv=void 0),f.encryptBlock(c,0);for(var v=0;v<d;v++)s[l+v]^=c[v]}});return i.Decryptor=o,i}(),a.mode.OFB})}(modeOfb$1)),modeOfb$1.exports}var modeEcb$1={exports:{}},modeEcb=modeEcb$1.exports,hasRequiredModeEcb;function requireModeEcb(){return hasRequiredModeEcb||(hasRequiredModeEcb=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireCipherCore())})(modeEcb,function(a){return a.mode.ECB=function(){var i=a.lib.BlockCipherMode.extend();return i.Encryptor=i.extend({processBlock:function(o,s){this._cipher.encryptBlock(o,s)}}),i.Decryptor=i.extend({processBlock:function(o,s){this._cipher.decryptBlock(o,s)}}),i}(),a.mode.ECB})}(modeEcb$1)),modeEcb$1.exports}var padAnsix923$1={exports:{}},padAnsix923=padAnsix923$1.exports,hasRequiredPadAnsix923;function requirePadAnsix923(){return hasRequiredPadAnsix923||(hasRequiredPadAnsix923=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireCipherCore())})(padAnsix923,function(a){return a.pad.AnsiX923={pad:function(i,o){var s=i.sigBytes,l=o*4,f=l-s%l,d=s+f-1;i.clamp(),i.words[d>>>2]|=f<<24-d%4*8,i.sigBytes+=f},unpad:function(i){var o=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=o}},a.pad.Ansix923})}(padAnsix923$1)),padAnsix923$1.exports}var padIso10126$1={exports:{}},padIso10126=padIso10126$1.exports,hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireCipherCore())})(padIso10126,function(a){return a.pad.Iso10126={pad:function(i,o){var s=o*4,l=s-i.sigBytes%s;i.concat(a.lib.WordArray.random(l-1)).concat(a.lib.WordArray.create([l<<24],1))},unpad:function(i){var o=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=o}},a.pad.Iso10126})}(padIso10126$1)),padIso10126$1.exports}var padIso97971$1={exports:{}},padIso97971=padIso97971$1.exports,hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireCipherCore())})(padIso97971,function(a){return a.pad.Iso97971={pad:function(i,o){i.concat(a.lib.WordArray.create([2147483648],1)),a.pad.ZeroPadding.pad(i,o)},unpad:function(i){a.pad.ZeroPadding.unpad(i),i.sigBytes--}},a.pad.Iso97971})}(padIso97971$1)),padIso97971$1.exports}var padZeropadding$1={exports:{}},padZeropadding=padZeropadding$1.exports,hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireCipherCore())})(padZeropadding,function(a){return a.pad.ZeroPadding={pad:function(i,o){var s=o*4;i.clamp(),i.sigBytes+=s-(i.sigBytes%s||s)},unpad:function(i){for(var o=i.words,s=i.sigBytes-1,s=i.sigBytes-1;s>=0;s--)if(o[s>>>2]>>>24-s%4*8&255){i.sigBytes=s+1;break}}},a.pad.ZeroPadding})}(padZeropadding$1)),padZeropadding$1.exports}var padNopadding$1={exports:{}},padNopadding=padNopadding$1.exports,hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireCipherCore())})(padNopadding,function(a){return a.pad.NoPadding={pad:function(){},unpad:function(){}},a.pad.NoPadding})}(padNopadding$1)),padNopadding$1.exports}var formatHex$1={exports:{}},formatHex=formatHex$1.exports,hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireCipherCore())})(formatHex,function(a){return function(i){var o=a,s=o.lib,l=s.CipherParams,f=o.enc,d=f.Hex,u=o.format;u.Hex={stringify:function(c){return c.ciphertext.toString(d)},parse:function(c){var v=d.parse(c);return l.create({ciphertext:v})}}}(),a.format.Hex})}(formatHex$1)),formatHex$1.exports}var aes$1={exports:{}},aes=aes$1.exports,hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(aes,function(a){return function(){var i=a,o=i.lib,s=o.BlockCipher,l=i.algo,f=[],d=[],u=[],c=[],v=[],h=[],m=[],g=[],_=[],S=[];(function(){for(var M=[],F=0;F<256;F++)F<128?M[F]=F<<1:M[F]=F<<1^283;for(var L=0,k=0,F=0;F<256;F++){var P=k^k<<1^k<<2^k<<3^k<<4;P=P>>>8^P&255^99,f[L]=P,d[P]=L;var U=M[L],B=M[U],j=M[B],$=M[P]*257^P*16843008;u[L]=$<<24|$>>>8,c[L]=$<<16|$>>>16,v[L]=$<<8|$>>>24,h[L]=$;var $=j*16843009^B*65537^U*257^L*16843008;m[P]=$<<24|$>>>8,g[P]=$<<16|$>>>16,_[P]=$<<8|$>>>24,S[P]=$,L?(L=U^M[M[M[j^U]]],k^=M[M[k]]):L=k=1}})();var N=[0,1,2,4,8,16,32,64,128,27,54],O=l.AES=s.extend({_doReset:function(){var M;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var F=this._keyPriorReset=this._key,L=F.words,k=F.sigBytes/4,P=this._nRounds=k+6,U=(P+1)*4,B=this._keySchedule=[],j=0;j<U;j++)j<k?B[j]=L[j]:(M=B[j-1],j%k?k>6&&j%k==4&&(M=f[M>>>24]<<24|f[M>>>16&255]<<16|f[M>>>8&255]<<8|f[M&255]):(M=M<<8|M>>>24,M=f[M>>>24]<<24|f[M>>>16&255]<<16|f[M>>>8&255]<<8|f[M&255],M^=N[j/k|0]<<24),B[j]=B[j-k]^M);for(var $=this._invKeySchedule=[],A=0;A<U;A++){var j=U-A;if(A%4)var M=B[j];else var M=B[j-4];A<4||j<=4?$[A]=M:$[A]=m[f[M>>>24]]^g[f[M>>>16&255]]^_[f[M>>>8&255]]^S[f[M&255]]}}},encryptBlock:function(M,F){this._doCryptBlock(M,F,this._keySchedule,u,c,v,h,f)},decryptBlock:function(M,F){var L=M[F+1];M[F+1]=M[F+3],M[F+3]=L,this._doCryptBlock(M,F,this._invKeySchedule,m,g,_,S,d);var L=M[F+1];M[F+1]=M[F+3],M[F+3]=L},_doCryptBlock:function(M,F,L,k,P,U,B,j){for(var $=this._nRounds,A=M[F]^L[0],R=M[F+1]^L[1],y=M[F+2]^L[2],b=M[F+3]^L[3],D=4,I=1;I<$;I++){var T=k[A>>>24]^P[R>>>16&255]^U[y>>>8&255]^B[b&255]^L[D++],C=k[R>>>24]^P[y>>>16&255]^U[b>>>8&255]^B[A&255]^L[D++],x=k[y>>>24]^P[b>>>16&255]^U[A>>>8&255]^B[R&255]^L[D++],w=k[b>>>24]^P[A>>>16&255]^U[R>>>8&255]^B[y&255]^L[D++];A=T,R=C,y=x,b=w}var T=(j[A>>>24]<<24|j[R>>>16&255]<<16|j[y>>>8&255]<<8|j[b&255])^L[D++],C=(j[R>>>24]<<24|j[y>>>16&255]<<16|j[b>>>8&255]<<8|j[A&255])^L[D++],x=(j[y>>>24]<<24|j[b>>>16&255]<<16|j[A>>>8&255]<<8|j[R&255])^L[D++],w=(j[b>>>24]<<24|j[A>>>16&255]<<16|j[R>>>8&255]<<8|j[y&255])^L[D++];M[F]=T,M[F+1]=C,M[F+2]=x,M[F+3]=w},keySize:256/32});i.AES=s._createHelper(O)}(),a.AES})}(aes$1)),aes$1.exports}var tripledes$1={exports:{}},tripledes=tripledes$1.exports,hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(tripledes,function(a){return function(){var i=a,o=i.lib,s=o.WordArray,l=o.BlockCipher,f=i.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],v=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],m=f.DES=l.extend({_doReset:function(){for(var N=this._key,O=N.words,M=[],F=0;F<56;F++){var L=d[F]-1;M[F]=O[L>>>5]>>>31-L%32&1}for(var k=this._subKeys=[],P=0;P<16;P++){for(var U=k[P]=[],B=c[P],F=0;F<24;F++)U[F/6|0]|=M[(u[F]-1+B)%28]<<31-F%6,U[4+(F/6|0)]|=M[28+(u[F+24]-1+B)%28]<<31-F%6;U[0]=U[0]<<1|U[0]>>>31;for(var F=1;F<7;F++)U[F]=U[F]>>>(F-1)*4+3;U[7]=U[7]<<5|U[7]>>>27}for(var j=this._invSubKeys=[],F=0;F<16;F++)j[F]=k[15-F]},encryptBlock:function(N,O){this._doCryptBlock(N,O,this._subKeys)},decryptBlock:function(N,O){this._doCryptBlock(N,O,this._invSubKeys)},_doCryptBlock:function(N,O,M){this._lBlock=N[O],this._rBlock=N[O+1],g.call(this,4,252645135),g.call(this,16,65535),_.call(this,2,858993459),_.call(this,8,16711935),g.call(this,1,1431655765);for(var F=0;F<16;F++){for(var L=M[F],k=this._lBlock,P=this._rBlock,U=0,B=0;B<8;B++)U|=v[B][((P^L[B])&h[B])>>>0];this._lBlock=P,this._rBlock=k^U}var j=this._lBlock;this._lBlock=this._rBlock,this._rBlock=j,g.call(this,1,1431655765),_.call(this,8,16711935),_.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),N[O]=this._lBlock,N[O+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function g(N,O){var M=(this._lBlock>>>N^this._rBlock)&O;this._rBlock^=M,this._lBlock^=M<<N}function _(N,O){var M=(this._rBlock>>>N^this._lBlock)&O;this._lBlock^=M,this._rBlock^=M<<N}i.DES=l._createHelper(m);var S=f.TripleDES=l.extend({_doReset:function(){var N=this._key,O=N.words;if(O.length!==2&&O.length!==4&&O.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var M=O.slice(0,2),F=O.length<4?O.slice(0,2):O.slice(2,4),L=O.length<6?O.slice(0,2):O.slice(4,6);this._des1=m.createEncryptor(s.create(M)),this._des2=m.createEncryptor(s.create(F)),this._des3=m.createEncryptor(s.create(L))},encryptBlock:function(N,O){this._des1.encryptBlock(N,O),this._des2.decryptBlock(N,O),this._des3.encryptBlock(N,O)},decryptBlock:function(N,O){this._des3.decryptBlock(N,O),this._des2.encryptBlock(N,O),this._des1.decryptBlock(N,O)},keySize:192/32,ivSize:64/32,blockSize:64/32});i.TripleDES=l._createHelper(S)}(),a.TripleDES})}(tripledes$1)),tripledes$1.exports}var rc4$1={exports:{}},rc4=rc4$1.exports,hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(rc4,function(a){return function(){var i=a,o=i.lib,s=o.StreamCipher,l=i.algo,f=l.RC4=s.extend({_doReset:function(){for(var c=this._key,v=c.words,h=c.sigBytes,m=this._S=[],g=0;g<256;g++)m[g]=g;for(var g=0,_=0;g<256;g++){var S=g%h,N=v[S>>>2]>>>24-S%4*8&255;_=(_+m[g]+N)%256;var O=m[g];m[g]=m[_],m[_]=O}this._i=this._j=0},_doProcessBlock:function(c,v){c[v]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var c=this._S,v=this._i,h=this._j,m=0,g=0;g<4;g++){v=(v+1)%256,h=(h+c[v])%256;var _=c[v];c[v]=c[h],c[h]=_,m|=c[(c[v]+c[h])%256]<<24-g*8}return this._i=v,this._j=h,m}i.RC4=s._createHelper(f);var u=l.RC4Drop=f.extend({cfg:f.cfg.extend({drop:192}),_doReset:function(){f._doReset.call(this);for(var c=this.cfg.drop;c>0;c--)d.call(this)}});i.RC4Drop=s._createHelper(u)}(),a.RC4})}(rc4$1)),rc4$1.exports}var rabbit$1={exports:{}},rabbit=rabbit$1.exports,hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(rabbit,function(a){return function(){var i=a,o=i.lib,s=o.StreamCipher,l=i.algo,f=[],d=[],u=[],c=l.Rabbit=s.extend({_doReset:function(){for(var h=this._key.words,m=this.cfg.iv,g=0;g<4;g++)h[g]=(h[g]<<8|h[g]>>>24)&16711935|(h[g]<<24|h[g]>>>8)&4278255360;var _=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],S=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var g=0;g<4;g++)v.call(this);for(var g=0;g<8;g++)S[g]^=_[g+4&7];if(m){var N=m.words,O=N[0],M=N[1],F=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,L=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,k=F>>>16|L&4294901760,P=L<<16|F&65535;S[0]^=F,S[1]^=k,S[2]^=L,S[3]^=P,S[4]^=F,S[5]^=k,S[6]^=L,S[7]^=P;for(var g=0;g<4;g++)v.call(this)}},_doProcessBlock:function(h,m){var g=this._X;v.call(this),f[0]=g[0]^g[5]>>>16^g[3]<<16,f[1]=g[2]^g[7]>>>16^g[5]<<16,f[2]=g[4]^g[1]>>>16^g[7]<<16,f[3]=g[6]^g[3]>>>16^g[1]<<16;for(var _=0;_<4;_++)f[_]=(f[_]<<8|f[_]>>>24)&16711935|(f[_]<<24|f[_]>>>8)&4278255360,h[m+_]^=f[_]},blockSize:128/32,ivSize:64/32});function v(){for(var h=this._X,m=this._C,g=0;g<8;g++)d[g]=m[g];m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0<d[0]>>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0<d[1]>>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0<d[2]>>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0<d[3]>>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0<d[4]>>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0<d[5]>>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0<d[6]>>>0?1:0)|0,this._b=m[7]>>>0<d[7]>>>0?1:0;for(var g=0;g<8;g++){var _=h[g]+m[g],S=_&65535,N=_>>>16,O=((S*S>>>17)+S*N>>>15)+N*N,M=((_&4294901760)*_|0)+((_&65535)*_|0);u[g]=O^M}h[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,h[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,h[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,h[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,h[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,h[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,h[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,h[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}i.Rabbit=s._createHelper(c)}(),a.Rabbit})}(rabbit$1)),rabbit$1.exports}var rabbitLegacy$1={exports:{}},rabbitLegacy=rabbitLegacy$1.exports,hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(rabbitLegacy,function(a){return function(){var i=a,o=i.lib,s=o.StreamCipher,l=i.algo,f=[],d=[],u=[],c=l.RabbitLegacy=s.extend({_doReset:function(){var h=this._key.words,m=this.cfg.iv,g=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],_=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var S=0;S<4;S++)v.call(this);for(var S=0;S<8;S++)_[S]^=g[S+4&7];if(m){var N=m.words,O=N[0],M=N[1],F=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,L=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,k=F>>>16|L&4294901760,P=L<<16|F&65535;_[0]^=F,_[1]^=k,_[2]^=L,_[3]^=P,_[4]^=F,_[5]^=k,_[6]^=L,_[7]^=P;for(var S=0;S<4;S++)v.call(this)}},_doProcessBlock:function(h,m){var g=this._X;v.call(this),f[0]=g[0]^g[5]>>>16^g[3]<<16,f[1]=g[2]^g[7]>>>16^g[5]<<16,f[2]=g[4]^g[1]>>>16^g[7]<<16,f[3]=g[6]^g[3]>>>16^g[1]<<16;for(var _=0;_<4;_++)f[_]=(f[_]<<8|f[_]>>>24)&16711935|(f[_]<<24|f[_]>>>8)&4278255360,h[m+_]^=f[_]},blockSize:128/32,ivSize:64/32});function v(){for(var h=this._X,m=this._C,g=0;g<8;g++)d[g]=m[g];m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0<d[0]>>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0<d[1]>>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0<d[2]>>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0<d[3]>>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0<d[4]>>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0<d[5]>>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0<d[6]>>>0?1:0)|0,this._b=m[7]>>>0<d[7]>>>0?1:0;for(var g=0;g<8;g++){var _=h[g]+m[g],S=_&65535,N=_>>>16,O=((S*S>>>17)+S*N>>>15)+N*N,M=((_&4294901760)*_|0)+((_&65535)*_|0);u[g]=O^M}h[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,h[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,h[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,h[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,h[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,h[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,h[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,h[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}i.RabbitLegacy=s._createHelper(c)}(),a.RabbitLegacy})}(rabbitLegacy$1)),rabbitLegacy$1.exports}var blowfish$1={exports:{}},blowfish=blowfish$1.exports,hasRequiredBlowfish;function requireBlowfish(){return hasRequiredBlowfish||(hasRequiredBlowfish=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(blowfish,function(a){return function(){var i=a,o=i.lib,s=o.BlockCipher,l=i.algo;const f=16,d=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],u=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var c={pbox:[],sbox:[]};function v(S,N){let O=N>>24&255,M=N>>16&255,F=N>>8&255,L=N&255,k=S.sbox[0][O]+S.sbox[1][M];return k=k^S.sbox[2][F],k=k+S.sbox[3][L],k}function h(S,N,O){let M=N,F=O,L;for(let k=0;k<f;++k)M=M^S.pbox[k],F=v(S,M)^F,L=M,M=F,F=L;return L=M,M=F,F=L,F=F^S.pbox[f],M=M^S.pbox[f+1],{left:M,right:F}}function m(S,N,O){let M=N,F=O,L;for(let k=f+1;k>1;--k)M=M^S.pbox[k],F=v(S,M)^F,L=M,M=F,F=L;return L=M,M=F,F=L,F=F^S.pbox[1],M=M^S.pbox[0],{left:M,right:F}}function g(S,N,O){for(let P=0;P<4;P++){S.sbox[P]=[];for(let U=0;U<256;U++)S.sbox[P][U]=u[P][U]}let M=0;for(let P=0;P<f+2;P++)S.pbox[P]=d[P]^N[M],M++,M>=O&&(M=0);let F=0,L=0,k=0;for(let P=0;P<f+2;P+=2)k=h(S,F,L),F=k.left,L=k.right,S.pbox[P]=F,S.pbox[P+1]=L;for(let P=0;P<4;P++)for(let U=0;U<256;U+=2)k=h(S,F,L),F=k.left,L=k.right,S.sbox[P][U]=F,S.sbox[P][U+1]=L;return!0}var _=l.Blowfish=s.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var S=this._keyPriorReset=this._key,N=S.words,O=S.sigBytes/4;g(c,N,O)}},encryptBlock:function(S,N){var O=h(c,S[N],S[N+1]);S[N]=O.left,S[N+1]=O.right},decryptBlock:function(S,N){var O=m(c,S[N],S[N+1]);S[N]=O.left,S[N+1]=O.right},blockSize:64/32,keySize:128/32,ivSize:64/32});i.Blowfish=s._createHelper(_)}(),a.Blowfish})}(blowfish$1)),blowfish$1.exports}var cryptoJs=cryptoJs$1.exports,hasRequiredCryptoJs;function requireCryptoJs(){return hasRequiredCryptoJs||(hasRequiredCryptoJs=1,function(r,n){(function(a,i,o){r.exports=i(requireCore(),requireX64Core(),requireLibTypedarrays(),requireEncUtf16(),requireEncBase64(),requireEncBase64url(),requireMd5(),requireSha1(),requireSha256(),requireSha224(),requireSha512(),requireSha384(),requireSha3(),requireRipemd160(),requireHmac(),requirePbkdf2(),requireEvpkdf(),requireCipherCore(),requireModeCfb(),requireModeCtr(),requireModeCtrGladman(),requireModeOfb(),requireModeEcb(),requirePadAnsix923(),requirePadIso10126(),requirePadIso97971(),requirePadZeropadding(),requirePadNopadding(),requireFormatHex(),requireAes(),requireTripledes(),requireRc4(),requireRabbit(),requireRabbitLegacy(),requireBlowfish())})(cryptoJs,function(a){return a})}(cryptoJs$1)),cryptoJs$1.exports}requireCryptoJs();requireBrowser$b();const APOLLO_SUBSCRIPTION_PROTOCOL="graphql-ws",AUTO_SUBSCRIPTION_PROTOCOL="auto",DEFAULT_SUBSCRIPTION_PROTOCOL=AUTO_SUBSCRIPTION_PROTOCOL,GRAPHQL_WS_SUBSCRIPTION_PROTOCOL="graphql-transport-ws",GRAPHQL_SSE_SUBSCRIPTION_PROTOCOL="graphql-sse",ATTACHMENT_KIND_CONNECTION_SETTINGS="connection-settings",ATTACHMENT_KIND_DOCUMENT_CONTENT="document-content",ATTACHMENT_KIND_ORIGIN_DOCUMENT_CONTENT="origin-document-content",ATTACHMENT_KIND_VARIABLE_COLLECTION="variable-collection",ATTACHMENT_KIND_ORIGIN_VARIABLE_COLLECTION="origin-variable-collection",ATTACHMENT_KIND_FILE_CONTENT="file-content",ATTACHMENT_KIND_VARIABLE_JSON_SCHEMA="variable-json-schema",ITEM_KIND_API="api",ITEM_KIND_NEW_API="new-api",ITEM_KIND_API_DOCUMENT="api-document",ITEM_KIND_BASIC_DOCUMENT="document",ITEM_KIND_HISTORICAL_DOCUMENT="historical-document",ITEM_KIND_NEW_DOCUMENT="new-document",ITEM_KIND_FILE="file";function isApiItem(r){return r?.kind===ITEM_KIND_API}function isNewApiItem(r){return r?.kind===ITEM_KIND_NEW_API}function isDocumentItem(r){return isApiDocumentItem(r)||isBasicDocumentItem(r)||isHistoricalDocumentItem(r)||isNewDocumentItem(r)}function isApiDocumentItem(r){return r?.kind===ITEM_KIND_API_DOCUMENT}function isBasicDocumentItem(r){return r?.kind===ITEM_KIND_BASIC_DOCUMENT}function isHistoricalDocumentItem(r){return r?.kind===ITEM_KIND_HISTORICAL_DOCUMENT}function isNewDocumentItem(r){return r?.kind===ITEM_KIND_NEW_DOCUMENT}function isFileItem(r){return r?.kind===ITEM_KIND_FILE}function isConnectionSettingsAttachment(r){return r?.kind===ATTACHMENT_KIND_CONNECTION_SETTINGS}function isDocumentContentAttachment(r){return r?.kind===ATTACHMENT_KIND_DOCUMENT_CONTENT||r?.kind===ATTACHMENT_KIND_ORIGIN_DOCUMENT_CONTENT}function isVariableCollectionAttachment(r){return r?.kind===ATTACHMENT_KIND_VARIABLE_COLLECTION||r?.kind===ATTACHMENT_KIND_ORIGIN_VARIABLE_COLLECTION}function mergeDocumentItemAndContent(r,n){const{body:a,hash:i,variables:o}=n;return{...r,body:a,hash:i,variables:o}}function calculateVariableJsonSchemaHash(r){const n=createHash(JSON.stringify(r.schema));return{...r,hash:n}}function interpolateHttpConnectionSettings(r,n){const a=r?.http;return a?{...a,authentication:interpolateAuthentication(a.authentication,n),endpoint:interpolateValue(a.endpoint,n),sdlEndpoint:a.sdlEndpoint?interpolateValue(a.sdlEndpoint,n):a.sdlEndpoint,sseSubscriptionEndpoint:a.sseSubscriptionEndpoint?interpolateValue(a.sseSubscriptionEndpoint,n):a.sseSubscriptionEndpoint,subscriptionEndpoint:a.subscriptionEndpoint?interpolateValue(a.subscriptionEndpoint,n):a.subscriptionEndpoint,headers:a.headers?a.headers.map(i=>({...i,name:interpolateValue(i.name,n),value:interpolateValue(i.value,n)})):a.headers}:null}function interpolateAuthentication(r,n){if(r)return r?{...r,basicOptions:r.basicOptions?{password:interpolateValue(r.basicOptions.password,n),username:interpolateValue(r.basicOptions.username,n)}:void 0,bearerOptions:r.bearerOptions?{prefix:r.bearerOptions.prefix?interpolateValue(r.bearerOptions.token,n):void 0,token:interpolateValue(r.bearerOptions.token,n)}:void 0,oAuth2Options:interpolateOAuth2Authentication(r.oAuth2Options,n),headerValue:r.headerValue?interpolateValue(r.headerValue,n):void 0}:void 0}function interpolateOAuth2Authentication(r,n){return r?{...r,accessTokenUrl:interpolateValue(r.accessTokenUrl,n),audience:interpolateValue(r.audience,n),authorizationUrl:interpolateValue(r.authorizationUrl,n),clientId:interpolateValue(r.clientId,n),clientSecret:interpolateValue(r.clientSecret,n),origin:interpolateValue(r.origin,n),password:interpolateValue(r.password,n),prefix:interpolateValue(r.prefix,n),redirectUrl:interpolateValue(r.redirectUrl,n),resource:interpolateValue(r.resource,n),scope:interpolateValue(r.scope,n),state:interpolateValue(r.state,n),username:interpolateValue(r.username,n),sessionId:r.sessionId?interpolateValue(r.sessionId,n):void 0}:void 0}function interpolateValue(r,n){let a=r;const i=r.matchAll(INTERPOLATION_VARIABLE_NAME_PATTERN);for(const o of i)a=a.replace(o[0],n.get(o[1])??o[0]);return a}function resolveVariables(r){const n=new Map;for(const{name:a,value:i,currentValue:o,enabled:s}of r)s&&n.set(a,o||i);return n}async function getConnectionSettings(r,n){return openDatabaseWithTransactionScope(["attachment","item"],"readonly",async a=>{const i=await a.store.item.get(r);return isApiItem(i)||isNewApiItem(i)||isDocumentItem(i)?getConnectionSettingsTransactional(a,i):a.abort("Item does not exist or is not of type API nor Document.")},n)}async function getInterpolatedHttpConnection(r,n,a){return openDatabaseWithTransactionScope(["attachment","item","workspace"],"readonly",async i=>{const o=await i.store.item.get(r);if(!(isApiItem(o)||isNewApiItem(o)||isDocumentItem(o)))return i.abort("Item does not exist or is not of type API nor Document.");if(!n)return(await getConnectionSettingsTransactional(i,o))?.http;const[s,l]=await Promise.all([getConnectionSettingsTransactional(i,o),getVariableCollectionByIdTransactional(i,n)]);return s&&l?interpolateHttpConnectionSettings(s,resolveVariables(l.variables))??void 0:s?.http},a)}async function getInterpolatedHttpConnectionForActiveEnvironment(r,n){return openDatabaseWithTransactionScope(["attachment","item","workspace"],"readonly",async a=>{const i=await a.store.item.get(r);if(!(isApiItem(i)||isNewApiItem(i)||isDocumentItem(i)))return a.abort("Item does not exist or is not of type API nor Document.");let o=null;if(i.workspaceId&&(o=(await a.store.workspace.get(i.workspaceId))?.appState?.activeEnvironmentId??null),!o)return(await getConnectionSettingsTransactional(a,i))?.http;const[s,l]=await Promise.all([getConnectionSettingsTransactional(a,i),getVariableCollectionByIdTransactional(a,o)]);return s&&l?interpolateHttpConnectionSettings(s,resolveVariables(l.variables))??void 0:s?.http},n)}async function getConnectionSettingsTransactional(r,n){const a=await r.store.attachment.get([isApiDocumentItem(n)?n.apiId:n.id,ATTACHMENT_KIND_CONNECTION_SETTINGS]);if(isConnectionSettingsAttachment(a))return a}async function getVariableCollection(r){return openDatabaseScope(async n=>{const a=await n.get("attachment",[r,ATTACHMENT_KIND_VARIABLE_COLLECTION]);if(isVariableCollectionAttachment(a))return a})}async function getVariableCollectionByIdTransactional(r,n){const a=await r.store.attachment.get([n,ATTACHMENT_KIND_VARIABLE_COLLECTION]);if(isVariableCollectionAttachment(a))return a}async function getFileContents(r,n){return openDatabaseWithTransactionScope(["attachment","item"],"readonly",a=>Promise.all(r.map(async i=>{const o=await a.store.item.get(i);return isFileItem(o)?await a.store.attachment.get([i,ATTACHMENT_KIND_FILE_CONTENT]):a.abort("Item does not exist or is not of type API nor Document.")})),n)}async function getResolvedVariables(r){return resolveVariables(r?(await getVariableCollection(r))?.variables??[]:[])}function getDocumentItemAndContent(r,n){return openDatabaseWithTransactionScope(["attachment","item"],"readonly",async a=>{const[i,o]=await Promise.all([a.store.item.get(r),a.store.attachment.get([r,ATTACHMENT_KIND_DOCUMENT_CONTENT])]);if(isDocumentItem(i)&&isDocumentContentAttachment(o))return mergeDocumentItemAndContent(i,o)},n)}function getAllFileItemInfos(r){return openDatabaseWithTransactionScope(["item"],"readonly",n=>getFileInfosTransactional(n,r))}function getFileItemInfosByNames(r,...n){return openDatabaseWithTransactionScope(["item"],"readonly",a=>getFileInfosTransactional(a,r,i=>n.includes(i)))}async function getFileInfosTransactional(r,n,a){const i=[],o={};for await(const s of r.index.item.kind.iterate([n,ITEM_KIND_FILE])){const l=s.value;if(isFileItem(l)){l.parentId&&!o[l.parentId]&&(o[l.parentId]=await getItemNamePathTransactional(r,l.path).then(d=>d?.join("/")??""));const f=`${l.parentId&&o[l.parentId]?.length?`${o[l.parentId]}/`:""}${l.name}`;(a?.(f)??!0)&&i.push({id:l.id,workspaceId:l.workspaceId,name:f,size:l.size})}}return i}async function getItemNamePathTransactional(r,n){return Promise.all(n.slice(0,-1).map(async a=>{const i=await r.store.item.get(a);if(!i)throw new Error("Parent does not exist");return i.name}))}async function setVariableJsonSchema(r,n,a){return openDatabaseWithTransactionScope(["attachment","item"],"readwrite",async i=>{let o=await i.store.item.get(r);if(!isDocumentItem(o))return i.abort("Item does not exist or is not of type Document.");const s=calculateVariableJsonSchemaHash({itemId:r,workspaceId:o.workspaceId,kind:ATTACHMENT_KIND_VARIABLE_JSON_SCHEMA,schema:n});return await i.store.attachment.put(s),s},a)}function tryAcquireLock(r,n,a){return openDatabaseWithTransactionScope(["mutex"],"readwrite",async i=>{const o=await i.store.mutex.get(r),s=()=>i.store.mutex.put({resource:r,owner:n,expiresAt:now()+a});return o?o.owner===n||o.expiresAt<now()?(await s(),!0):!1:(await s(),!0)})}function releaseLock(r){return openDatabaseScope(n=>n.delete("mutex",r))}var GraphQLSchemaAttachmentKind=(r=>(r.SDL_SCHEMA="sdl-schema",r.STATISTICS="statistics",r.ITEMS="items",r))(GraphQLSchemaAttachmentKind||{}),GraphQLSchemaKind=(r=>(r.SDL_FETCH="sdl-fetch",r.SDL_PROBE="sdl-probe",r.INTROSPECTION="introspection",r))(GraphQLSchemaKind||{});function isGraphQLSchemaItemsAttachmentEntity(r){return!!r&&r.kind===GraphQLSchemaAttachmentKind.ITEMS}function isGraphQLSchemaStatisticsAttachmentEntity(r){return!!r&&r.kind===GraphQLSchemaAttachmentKind.STATISTICS}function setGraphQLSchemaEntity(r,n,a,i,o){return openDatabaseWithTransactionScope(["schema","schema-attachment"],"readwrite",async s=>{const l={endpoint:r,updatedAt:now(),hash:calculateGraphQLSchemaEntityHash(r,a),indexed:!1,hasUploadType:!!n.getType("Upload"),queryTypeName:n.getQueryType()?.name??null,mutationTypeName:n.getMutationType()?.name??null,subscriptionTypeName:n.getSubscriptionType()?.name??null,supportsSemanticIntrospection:o,schemaKind:i};return await Promise.all([s.store.schema.put(l),s.store.schemaAttachment.put({endpoint:r,kind:GraphQLSchemaAttachmentKind.SDL_SCHEMA,value:a}),s.store.schemaAttachment.delete([r,GraphQLSchemaAttachmentKind.ITEMS]),s.store.schemaAttachment.delete([r,GraphQLSchemaAttachmentKind.STATISTICS]),s.done]),l})}function getGraphQLSchemaEntity(r){const n=harmonizeSchemaUrl(r);return getEntityByKey("schema",n)}async function getGraphQLSchemaItems(r){const n=harmonizeSchemaUrl(r),a=await getEntityByKey("schema-attachment",[n,GraphQLSchemaAttachmentKind.ITEMS]);return isGraphQLSchemaItemsAttachmentEntity(a)?a.value:void 0}async function getGraphQLSchemaStatistics(r){const n=harmonizeSchemaUrl(r),a=await getEntityByKey("schema-attachment",[n,GraphQLSchemaAttachmentKind.STATISTICS]);return isGraphQLSchemaStatisticsAttachmentEntity(a)?a.value:void 0}function calculateGraphQLSchemaEntityHash(r,n){return createHash(JSON.stringify(["graphql-schema-entity",r,n]))}RelativeDateTimeRange.last30Minutes;RelativeDateTimeRange.last30Minutes,RelativeDateTimeRange.today,RelativeDateTimeRange.today,RelativeDateTimeRange.today;function isAsyncIterable$1(r){return r!==null&&typeof r=="object"&&isFunction(Object(r)[Symbol.asyncIterator])}function isPlainObject(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)}function isFunction(r){return typeof r=="function"}function requireLock(r,n,a){const i=FIVE_SECONDS,o=createId("mutex");return acquireLock(r,o,i).then(async()=>{const s=new TimeoutAbortController(i);try{const[l]=await Promise.all([n(s.signal.toAbortSignal()).then(f=>(s.cancel(),f)),s.signal.toPromise()]);return l}catch(l){throw isTimeoutAbortError(l)?new LockExpiredError(r):l}finally{s.cancel(),await releaseLock(r)}})}async function acquireLock(r,n,a){for(;!await tryAcquireLock(r,n,a);)await delay(FIFTY_MILLISECONDS)}class LockExpiredError extends Error{constructor(n){super(`Lock for resource "${n}" has been expired`)}}async function tryGetUserSessionAndRefresh(r){const n=await getCurrentTenant();if(!n)return null;let a=await getUserSession(n);if(!a)return null;if(isSessionExpired(a)&&(a=await refreshSession(a),isSessionExpired(a)))throw new UserSessionExpiredError;return a}async function refreshSession(r,n){return requireLock("refresh-session",a);async function a(i){const o=i;let s=await getUserSession(r)||r;if(!isSessionExpired(s)&&s.requiresSignIn)return s;const l=new Headers,f=new URLSearchParams;l.append(HEADER_CONTENT_TYPE,"application/x-www-form-urlencoded"),f.append("client_id","d8b1d8dd-c26d-4b54-8cde-5f3c8eb054ba"),f.append("grant_type","refresh_token"),f.append("refresh_token",s.refreshToken);try{const d=await fetch(`${s.issuer}/connect/token`,{method:"POST",headers:l,body:f,signal:o});if(d.ok){const u=await d.json();if(isToken(u))return replaceUserSession({...s,requiresSignIn:!1,idToken:u.id_token,accessToken:u.access_token,refreshToken:u.refresh_token,expiresAt:now()+u.expires_in*ONE_SECOND})}else if(d.status===400&&(s=await getUserSession(r)||r,isSessionExpired(s)))return replaceUserSession({...s,requiresSignIn:!0,lastTriedToRefresh:now()});return s}catch(d){console.error(d)}return s=await getUserSession(r)||r,isSessionExpired(s)?replaceUserSession({...s,lastTriedToRefresh:now()}):s}}function isToken(r){return isPlainObject(r)&&"access_token"in r}class UserSessionExpiredError extends Error{constructor(){super("User session has been expired")}}async function getHttpOptions(r){const n=await tryGetUserSessionAndRefresh(),a=isURL(r)?r:new URL(r,n?.apiUrl??"https://api.chillicream.com").href,i=getHeaders(n?.accessToken);return{uri:a,headers:i}}function getHeaders(r){const n=new Headers;if(n.set("CCC-Agent",APP_AGENT),n.set("GraphQL-Agent",APP_AGENT),n.set("GraphQL-Client-Id",APP_GRAPHQL_CLIENT_ID),n.set("GraphQL-Client-Version",APP_VERSION),n.set("GraphQL-Defer-RFC","v2"),r)n.set("Authorization",`Bearer ${r}`);else throw new UserSessionExpiredError;return n}var RelayConcreteNode_1,hasRequiredRelayConcreteNode;function requireRelayConcreteNode(){if(hasRequiredRelayConcreteNode)return RelayConcreteNode_1;hasRequiredRelayConcreteNode=1;var r={ACTOR_CHANGE:"ActorChange",CATCH_FIELD:"CatchField",CONDITION:"Condition",CLIENT_COMPONENT:"ClientComponent",CLIENT_EDGE_TO_SERVER_OBJECT:"ClientEdgeToServerObject",CLIENT_EDGE_TO_CLIENT_OBJECT:"ClientEdgeToClientObject",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",ALIASED_FRAGMENT_SPREAD:"AliasedFragmentSpread",ALIASED_INLINE_FRAGMENT_SPREAD:"AliasedInlineFragmentSpread",RELAY_RESOLVER:"RelayResolver",RELAY_LIVE_RESOLVER:"RelayLiveResolver",REQUIRED_FIELD:"RequiredField",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",TYPE_DISCRIMINATOR:"TypeDiscriminator",UPDATABLE_QUERY:"UpdatableQuery",VARIABLE:"Variable"};return RelayConcreteNode_1=r,RelayConcreteNode_1}var browser,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser;hasRequiredBrowser=1;var r=function(n,a,i,o,s,l,f,d){if(!n){var u;if(a===void 0)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[i,o,s,l,f,d],v=0;u=new Error(a.replace(/%s/g,function(){return c[v++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};return browser=r,browser}var emptyFunction_1,hasRequiredEmptyFunction;function requireEmptyFunction(){if(hasRequiredEmptyFunction)return emptyFunction_1;hasRequiredEmptyFunction=1;function r(a){return function(){return a}}var n=function(){};return n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(a){return a},emptyFunction_1=n,emptyFunction_1}var warning_1,hasRequiredWarning;function requireWarning(){if(hasRequiredWarning)return warning_1;hasRequiredWarning=1;var r=requireEmptyFunction(),n=r;return warning_1=n,warning_1}var GraphQLTag,hasRequiredGraphQLTag;function requireGraphQLTag(){if(hasRequiredGraphQLTag)return GraphQLTag;hasRequiredGraphQLTag=1;var r=requireRelayConcreteNode(),n=requireBrowser();requireWarning();function a(g){n(!1)}function i(g){var _=g;return typeof _=="function"?_=_():_.default&&(_=_.default),_}function o(g){var _=i(g);return typeof _=="object"&&_!==null&&_.kind===r.FRAGMENT}function s(g){var _=i(g);return typeof _=="object"&&_!==null&&_.kind===r.REQUEST}function l(g){var _=i(g);return typeof _=="object"&&_!==null&&_.kind===r.UPDATABLE_QUERY}function f(g){var _=i(g);return typeof _=="object"&&_!==null&&_.kind===r.INLINE_DATA_FRAGMENT}function d(g){var _=i(g);return o(_)||n(!1),_}function u(g){var _,S=d(g),N=(_=S.metadata)===null||_===void 0?void 0:_.refetch,O=N?.connection;return N===null||typeof N!="object"||O===null||typeof O!="object"?null:S}function c(g){var _,S=d(g),N=(_=S.metadata)===null||_===void 0?void 0:_.refetch;return N===null||typeof N!="object"?null:S}function v(g){var _=i(g);return s(_)||n(!1),_}function h(g){var _=i(g);return l(_)||n(!1),_}function m(g){var _=i(g);return f(_)||n(!1),_}return GraphQLTag={getFragment:d,getInlineDataFragment:m,getNode:i,getPaginationFragment:u,getRefetchableFragment:c,getRequest:v,getUpdatableQuery:h,graphql:a,isFragment:o,isInlineDataFragment:f,isRequest:s,isUpdatableQuery:l},GraphQLTag}var interopRequireDefault={exports:{}},hasRequiredInteropRequireDefault;function requireInteropRequireDefault(){return hasRequiredInteropRequireDefault||(hasRequiredInteropRequireDefault=1,function(r){function n(a){return a&&a.__esModule?a:{default:a}}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(interopRequireDefault)),interopRequireDefault.exports}var objectSpread2={exports:{}},defineProperty={exports:{}},toPropertyKey={exports:{}},_typeof={exports:{}},hasRequired_typeof;function require_typeof(){return hasRequired_typeof||(hasRequired_typeof=1,function(r){function n(a){"@babel/helpers - typeof";return r.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},r.exports.__esModule=!0,r.exports.default=r.exports,n(a)}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(_typeof)),_typeof.exports}var toPrimitive={exports:{}},hasRequiredToPrimitive;function requireToPrimitive(){return hasRequiredToPrimitive||(hasRequiredToPrimitive=1,function(r){var n=require_typeof().default;function a(i,o){if(n(i)!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var l=s.call(i,o||"default");if(n(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(i)}r.exports=a,r.exports.__esModule=!0,r.exports.default=r.exports}(toPrimitive)),toPrimitive.exports}var hasRequiredToPropertyKey;function requireToPropertyKey(){return hasRequiredToPropertyKey||(hasRequiredToPropertyKey=1,function(r){var n=require_typeof().default,a=requireToPrimitive();function i(o){var s=a(o,"string");return n(s)=="symbol"?s:s+""}r.exports=i,r.exports.__esModule=!0,r.exports.default=r.exports}(toPropertyKey)),toPropertyKey.exports}var hasRequiredDefineProperty;function requireDefineProperty(){return hasRequiredDefineProperty||(hasRequiredDefineProperty=1,function(r){var n=requireToPropertyKey();function a(i,o,s){return(o=n(o))in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}r.exports=a,r.exports.__esModule=!0,r.exports.default=r.exports}(defineProperty)),defineProperty.exports}var hasRequiredObjectSpread2;function requireObjectSpread2(){return hasRequiredObjectSpread2||(hasRequiredObjectSpread2=1,function(r){var n=requireDefineProperty();function a(o,s){var l=Object.keys(o);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(o);s&&(f=f.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),l.push.apply(l,f)}return l}function i(o){for(var s=1;s<arguments.length;s++){var l=arguments[s]!=null?arguments[s]:{};s%2?a(Object(l),!0).forEach(function(f){n(o,f,l[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(l)):a(Object(l)).forEach(function(f){Object.defineProperty(o,f,Object.getOwnPropertyDescriptor(l,f))})}return o}r.exports=i,r.exports.__esModule=!0,r.exports.default=r.exports}(objectSpread2)),objectSpread2.exports}var createForOfIteratorHelper={exports:{}},unsupportedIterableToArray={exports:{}},arrayLikeToArray={exports:{}},hasRequiredArrayLikeToArray;function requireArrayLikeToArray(){return hasRequiredArrayLikeToArray||(hasRequiredArrayLikeToArray=1,function(r){function n(a,i){(i==null||i>a.length)&&(i=a.length);for(var o=0,s=Array(i);o<i;o++)s[o]=a[o];return s}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(arrayLikeToArray)),arrayLikeToArray.exports}var hasRequiredUnsupportedIterableToArray;function requireUnsupportedIterableToArray(){return hasRequiredUnsupportedIterableToArray||(hasRequiredUnsupportedIterableToArray=1,function(r){var n=requireArrayLikeToArray();function a(i,o){if(i){if(typeof i=="string")return n(i,o);var s={}.toString.call(i).slice(8,-1);return s==="Object"&&i.constructor&&(s=i.constructor.name),s==="Map"||s==="Set"?Array.from(i):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?n(i,o):void 0}}r.exports=a,r.exports.__esModule=!0,r.exports.default=r.exports}(unsupportedIterableToArray)),unsupportedIterableToArray.exports}var hasRequiredCreateForOfIteratorHelper;function requireCreateForOfIteratorHelper(){return hasRequiredCreateForOfIteratorHelper||(hasRequiredCreateForOfIteratorHelper=1,function(r){var n=requireUnsupportedIterableToArray();function a(i,o){var s=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!s){if(Array.isArray(i)||(s=n(i))||o&&i&&typeof i.length=="number"){s&&(i=s);var l=0,f=function(){};return{s:f,n:function(){return l>=i.length?{done:!0}:{done:!1,value:i[l++]}},e:function(h){throw h},f}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
56
56
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,u=!0,c=!1;return{s:function(){s=s.call(i)},n:function(){var h=s.next();return u=h.done,h},e:function(h){c=!0,d=h},f:function(){try{u||s.return==null||s.return()}finally{if(c)throw d}}}}r.exports=a,r.exports.__esModule=!0,r.exports.default=r.exports}(createForOfIteratorHelper)),createForOfIteratorHelper.exports}var handlePotentialSnapshotErrors_1,hasRequiredHandlePotentialSnapshotErrors;function requireHandlePotentialSnapshotErrors(){if(hasRequiredHandlePotentialSnapshotErrors)return handlePotentialSnapshotErrors_1;hasRequiredHandlePotentialSnapshotErrors=1;var r=requireInteropRequireDefault().default,n=r(requireObjectSpread2()),a=r(requireCreateForOfIteratorHelper()),i=requireBrowser();function o(f,d,u){var c=(0,a.default)(d),v;try{for(c.s();!(v=c.n()).done;){var h=v.value;f.relayFieldLogger((0,n.default)((0,n.default)({},h),{},{uiContext:u}))}}catch(S){c.e(S)}finally{c.f()}var m=(0,a.default)(d),g;try{for(m.s();!(g=m.n()).done;){var _=g.value;if(s(_))switch(_.kind){case"relay_resolver.error":throw new Error("Relay: Resolver error at path '".concat(_.fieldPath,"' in '").concat(_.owner,"'. Message: ").concat(_.error.message));case"relay_field_payload.error":throw new Error("Relay: Unexpected response payload - check server logs for details.");case"missing_expected_data.throw":throw new Error("Relay: Missing expected data at path '".concat(_.fieldPath,"' in '").concat(_.owner,"'."));case"missing_required_field.throw":throw new Error("Relay: Missing @required value at path '".concat(_.fieldPath,"' in '").concat(_.owner,"'."));case"missing_required_field.log":case"missing_expected_data.log":break;default:_.kind,i(!1)}}}catch(S){m.e(S)}finally{m.f()}}function s(f){switch(f.kind){case"relay_resolver.error":case"relay_field_payload.error":return f.shouldThrow&&!f.handled;case"missing_expected_data.throw":case"missing_required_field.throw":return!f.handled;case"missing_required_field.log":case"missing_expected_data.log":return!1;default:throw f.kind,new Error("Relay: Unexpected event kind")}}function l(f,d,u){d!=null&&o(f,d,u)}return handlePotentialSnapshotErrors_1={eventShouldThrow:s,handlePotentialSnapshotErrors:l},handlePotentialSnapshotErrors_1}var toConsumableArray={exports:{}},arrayWithoutHoles={exports:{}},hasRequiredArrayWithoutHoles;function requireArrayWithoutHoles(){return hasRequiredArrayWithoutHoles||(hasRequiredArrayWithoutHoles=1,function(r){var n=requireArrayLikeToArray();function a(i){if(Array.isArray(i))return n(i)}r.exports=a,r.exports.__esModule=!0,r.exports.default=r.exports}(arrayWithoutHoles)),arrayWithoutHoles.exports}var iterableToArray={exports:{}},hasRequiredIterableToArray;function requireIterableToArray(){return hasRequiredIterableToArray||(hasRequiredIterableToArray=1,function(r){function n(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(iterableToArray)),iterableToArray.exports}var nonIterableSpread={exports:{}},hasRequiredNonIterableSpread;function requireNonIterableSpread(){return hasRequiredNonIterableSpread||(hasRequiredNonIterableSpread=1,function(r){function n(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
57
57
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(nonIterableSpread)),nonIterableSpread.exports}var hasRequiredToConsumableArray;function requireToConsumableArray(){return hasRequiredToConsumableArray||(hasRequiredToConsumableArray=1,function(r){var n=requireArrayWithoutHoles(),a=requireIterableToArray(),i=requireUnsupportedIterableToArray(),o=requireNonIterableSpread();function s(l){return n(l)||a(l)||i(l)||o()}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports}(toConsumableArray)),toConsumableArray.exports}var RelayDefaultHandleKey,hasRequiredRelayDefaultHandleKey;function requireRelayDefaultHandleKey(){return hasRequiredRelayDefaultHandleKey||(hasRequiredRelayDefaultHandleKey=1,RelayDefaultHandleKey={DEFAULT_HANDLE_KEY:""}),RelayDefaultHandleKey}var getRelayHandleKey_1,hasRequiredGetRelayHandleKey;function requireGetRelayHandleKey(){if(hasRequiredGetRelayHandleKey)return getRelayHandleKey_1;hasRequiredGetRelayHandleKey=1;var r=requireRelayDefaultHandleKey(),n=r.DEFAULT_HANDLE_KEY,a=requireBrowser();function i(o,s,l){return s&&s!==n?"__".concat(s,"_").concat(o):(l==null&&a(!1),"__".concat(l,"_").concat(o))}return getRelayHandleKey_1=i,getRelayHandleKey_1}var RelayFeatureFlags_1,hasRequiredRelayFeatureFlags;function requireRelayFeatureFlags(){if(hasRequiredRelayFeatureFlags)return RelayFeatureFlags_1;hasRequiredRelayFeatureFlags=1;var r={ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_RELAY_RESOLVERS:!1,ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION:!1,ENABLE_FRIENDLY_QUERY_NAME_GQL_URL:!1,ENABLE_DO_NOT_WRAP_LIVE_QUERY:!1,ENABLE_NOTIFY_SUBSCRIPTION:!1,BATCH_ASYNC_MODULE_UPDATES_FN:null,ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT:!1,MAX_DATA_ID_LENGTH:null,STRING_INTERN_LEVEL:0,LOG_MISSING_RECORDS_IN_PROD:!1,ENABLE_STORE_ID_COLLISION_LOGGING:!1,ENABLE_NONCOMPLIANT_ERROR_HANDLING_ON_LISTS:!1,ENABLE_LOOSE_SUBSCRIPTION_ATTRIBUTION:!1,ENABLE_OPERATION_TRACKER_OPTIMISTIC_UPDATES:!1,ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE:!1,PROCESS_OPTIMISTIC_UPDATE_BEFORE_SUBSCRIPTION:!1,MARK_RESOLVER_VALUES_AS_CLEAN_AFTER_FRAGMENT_REREAD:!1,ENABLE_CYLE_DETECTION_IN_VARIABLES:!1,ENABLE_ACTIVITY_COMPATIBILITY:!0,ENABLE_READ_TIME_RESOLVER_STORAGE_KEY_PREFIX:!0,ENABLE_USE_PAGINATION_IS_LOADING_FIX:!1,DISALLOW_NESTED_UPDATES:!1,ENABLE_TYPENAME_PREFIXED_DATA_ID:!1,ENABLE_UI_CONTEXT_ON_RELAY_LOGGER:!1,CHECK_ALL_FRAGMENTS_FOR_MISSING_CLIENT_EDGES:!1,FILTER_OUT_RELAY_RESOLVER_RECORDS:!1,OPTIMIZE_NOTIFY:!1,ENABLE_FIELD_GRANULAR_NOTIFICATIONS:!1,ENABLE_READER_FRAGMENTS_LOGGING:!1};return RelayFeatureFlags_1=r,RelayFeatureFlags_1}var stableCopy_1,hasRequiredStableCopy;function requireStableCopy(){if(hasRequiredStableCopy)return stableCopy_1;hasRequiredStableCopy=1;function r(a){if(!a||typeof a!="object")return a;if(Array.isArray(a))return a.map(r);for(var i=Object.keys(a).sort(),o={},s=0;s<i.length;s++)o[i[s]]=r(a[i[s]]);return o}function n(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;if(!a||typeof a!="object")return!1;if(i.has(a))return!0;var o=new Set(i);o.add(a);var s=Array.isArray(a)?a:Object.values(a);return s.some(function(l){return n(l,o)})}return stableCopy_1={hasCycle:n,stableCopy:r},stableCopy_1}var RelayStoreUtils_1,hasRequiredRelayStoreUtils;function requireRelayStoreUtils(){if(hasRequiredRelayStoreUtils)return RelayStoreUtils_1;hasRequiredRelayStoreUtils=1;var r=requireInteropRequireDefault().default,n=r(requireToConsumableArray()),a=requireGetRelayHandleKey(),i=requireRelayConcreteNode(),o=requireRelayFeatureFlags(),s=requireStableCopy(),l=s.stableCopy,f=requireBrowser(),d=i.VARIABLE,u=i.LITERAL,c=i.OBJECT_VALUE,v=i.LIST_VALUE,h="__errors",m="__fieldGranularNotifications",g="__module_component_",_="__module_operation_",S="$r:";function N(y,b){if(y.kind===d)return B(y.variableName,b);if(y.kind===u)return y.value;if(y.kind===c){var D={};return y.fields.forEach(function(T){D[T.name]=N(T,b)}),D}else if(y.kind===v){var I=[];return y.items.forEach(function(T){T!=null&&I.push(N(T,b))}),I}}function O(y,b,D){var I={};return D&&(I[R.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT]=!0),y&&y.forEach(function(T){I[T.name]=N(T,b)}),I}function M(y,b){var D=y.dynamicKey,I=y.handle,T=y.key,C=y.name,x=y.args,w=y.filters,E=a(I,T,C),q=null;return x&&w&&x.length!==0&&w.length!==0&&(q=x.filter(function(G){return w.indexOf(G.name)>-1})),D&&(q=q!=null?[D].concat((0,n.default)(q)):[D]),q===null?E:U(E,O(q,b))}function F(y,b){if(y.storageKey)return y.storageKey;var D=k(y),I=y.name;return D&&D.length!==0?U(I,O(D,b)):I}function L(y,b){var D=F(y,b);return o.ENABLE_READ_TIME_RESOLVER_STORAGE_KEY_PREFIX?"$r:"+D:D}function k(y){if(y.kind==="RelayResolver"||y.kind==="RelayLiveResolver"){var b;if(y.args==null){var D;return(D=y.fragment)===null||D===void 0?void 0:D.args}return((b=y.fragment)===null||b===void 0?void 0:b.args)==null?y.args:y.args.concat(y.fragment.args)}var I=typeof y.args>"u"?void 0:y.args;return I}function P(y,b){return U(y,l(b))}function U(y,b){if(!b)return y;var D=[];for(var I in b)if(b.hasOwnProperty(I)){var T=b[I];if(T!=null){var C;D.push(I+":"+((C=JSON.stringify(T))!==null&&C!==void 0?C:"undefined"))}}return D.length===0?y:y+"(".concat(D.join(","),")")}function B(y,b){return b.hasOwnProperty(y)||f(!1),l(b[y])}function j(y){return"".concat(g).concat(y)}function $(y){return"".concat(_).concat(y)}function A(y,b){return"__fn:".concat(y,":").concat(b)}var R={ACTOR_IDENTIFIER_KEY:"__actorIdentifier",CLIENT_EDGE_TRAVERSAL_PATH:"__clientEdgeTraversalPath",FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT:"$isWithinUnmatchedTypeRefinement",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ERRORS_KEY:h,FIELD_GRANULAR_NOTIFICATIONS_KEY:m,ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",RELAY_RESOLVER_VALUE_KEY:"__resolverValue",RELAY_RESOLVER_INVALIDATION_KEY:"__resolverValueMayBeInvalid",RELAY_RESOLVER_SNAPSHOT_KEY:"__resolverSnapshot",RELAY_RESOLVER_ERROR_KEY:"__resolverError",RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS:"__resolverOutputTypeRecordIDs",RELAY_RESOLVER_RECORD_TYPENAME:"__RELAY_RESOLVER__",RELAY_READ_TIME_RESOLVER_KEY_PREFIX:S,formatStorageKey:U,getArgumentValue:N,getArgumentValues:O,getHandleStorageKey:M,getStorageKey:F,getReadTimeResolverStorageKey:L,getStableStorageKey:P,getModuleComponentKey:j,getModuleOperationKey:$,getFieldNotificationKey:A};return RelayStoreUtils_1=R,RelayStoreUtils_1}var RelayConcreteVariables,hasRequiredRelayConcreteVariables;function requireRelayConcreteVariables(){if(hasRequiredRelayConcreteVariables)return RelayConcreteVariables;hasRequiredRelayConcreteVariables=1;var r=requireInteropRequireDefault().default,n=r(requireObjectSpread2()),a=requireRelayStoreUtils(),i=a.getArgumentValues,o=requireBrowser();function s(d,u,c){if(d.argumentDefinitions==null)return c;var v;return d.argumentDefinitions.forEach(function(h){if(!c.hasOwnProperty(h.name))switch(v=v||(0,n.default)({},c),h.kind){case"LocalArgument":v[h.name]=h.defaultValue;break;case"RootArgument":if(!u.hasOwnProperty(h.name)){v[h.name]=void 0;break}v[h.name]=u[h.name];break;default:o(!1)}}),v||c}function l(d,u,c){var v={};return d.argumentDefinitions.forEach(function(h){var m=h.defaultValue;c[h.name]!=null&&(m=c[h.name]),v[h.name]=m}),u!=null&&Object.keys(u).forEach(function(h){v[h]=u[h].get()}),v}function f(d,u,c){if(u==null)return d;var v=(0,n.default)({},d),h=c?i(c,d):{};return u.forEach(function(m){var g,_=(g=h[m.name])!==null&&g!==void 0?g:m.defaultValue;v[m.name]=_}),v}return RelayConcreteVariables={getFragmentVariables:s,getLocalVariables:f,getOperationVariables:l},RelayConcreteVariables}var areEqual_1,hasRequiredAreEqual;function requireAreEqual(){if(hasRequiredAreEqual)return areEqual_1;hasRequiredAreEqual=1;var r=[],n=[];/**
58
58
  * Checks if two values are equal. Values may be primitives, arrays, or objects.