@chillicream/nitro-embedded 30.0.0-insider.44 → 30.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{context-providers.9f534253.DgkrOeAG.js → context-providers.32393d3f.4lja1-Yv.js} +321 -391
- package/assets/{editor.worker.9f534253.CALiKsFH.js → editor.worker.32393d3f.BtBOsr77.js} +1 -1
- package/assets/{graphql-engine-scheduler.9f534253.aceIo3zH.js → graphql-engine-scheduler.32393d3f.BKOKUF1h.js} +3 -3
- package/assets/{graphql-indexer-scheduler.9f534253._Muf4VKr.js → graphql-indexer-scheduler.32393d3f.ClPGWCSG.js} +3 -3
- package/assets/{graphql.worker.9f534253.B97aGlTe.js → graphql.worker.32393d3f.DCbruaJI.js} +3 -3
- package/assets/{index.9f534253.CdCqisZ_.js → index.32393d3f.C6Jm2J7w.js} +1 -1
- package/assets/{json.worker.9f534253.CdL8AHeP.js → json.worker.32393d3f.8ac-t4iI.js} +1 -1
- package/assets/{jsonMode.9f534253.DLm1mKLy.js → jsonMode.32393d3f.Da25eQ7o.js} +1 -1
- package/assets/{main.9f534253.9znOCknh.js → main.32393d3f.Cjljin1C.js} +10 -10
- package/assets/{monaco.9f534253.CBTGnThW.css → monaco.32393d3f.CDcGk4NI.css} +1 -1
- package/assets/{monaco.9f534253.Cmzqacyi.js → monaco.32393d3f.CRafqNYy.js} +2 -2
- package/assets/{monaco.9f534253.C3gh6zxK.css → monaco.32393d3f.C_iiYC8A.css} +1 -1
- package/assets/{session-scheduler.9f534253.CeAmKVCZ.js → session-scheduler.32393d3f.l7O1I_X6.js} +3 -3
- package/assets/{yaml.9f534253._xO2lQq8.js → yaml.32393d3f.CV00odnb.js} +1 -1
- package/assets/{yaml.worker.9f534253.D9LXOP6X.js → yaml.worker.32393d3f.B4fVFlVP.js} +1 -1
- package/favicon.ico +0 -0
- package/favicon.svg +4 -4
- package/index.html +4 -4
- package/package.json +2 -3
- package/service-worker.js +1 -1
- /package/assets/{FiraCode-Medium.9f534253.-YTCSZkP.woff2 → FiraCode-Medium.32393d3f.-YTCSZkP.woff2} +0 -0
- /package/assets/{codicon.9f534253.Hscy-R9e.ttf → codicon.32393d3f.Hscy-R9e.ttf} +0 -0
- /package/assets/{context-providers.9f534253.3HkX5s82.css → context-providers.32393d3f.3HkX5s82.css} +0 -0
- /package/assets/{main.9f534253.O2wwCX4n.css → main.32393d3f.O2wwCX4n.css} +0 -0
- /package/assets/{monaco.9f534253.Czkdc1zO.js → monaco.32393d3f.B9m8JSsx.js} +0 -0
- /package/assets/{monaco.9f534253.CBW2I6zf.js → monaco.32393d3f.BAXraPs4.js} +0 -0
- /package/assets/{monaco.9f534253.DaBqVPMK.js → monaco.32393d3f.DLGK8xR9.js} +0 -0
- /package/assets/{monaco.9f534253.rC7RpD5K.js → monaco.32393d3f.FxNpxLqs.js} +0 -0
- /package/assets/{monaco.9f534253.CX0mPcnB.js → monaco.32393d3f.GGEmU9pB.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as process$1,B as Buffer}from"./monaco.
|
|
1
|
+
import{p as process$1,B as Buffer}from"./monaco.32393d3f.BAXraPs4.js";const APP_NAME="Nitro",APP_VERSION="30.0.1",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,IS_RUNNING_IN_ELECTRON=navigator.userAgent.indexOf("Electron")>=0,APP_TYPE=IS_RUNNING_IN_CLOUD?"cloud":IS_RUNNING_IN_ELECTRON?"app":"middleware",APP_AGENT=`${APP_NAME}/${APP_VERSION} (${APP_TYPE})`;getOsName();isMacLike();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 HEADER_CONTENT_TYPE="Content-Type",HTTP_SCHEME_PATTERN=/^https?:\/\//i,INTROSPECTION_PREFIX=/^_{2}(?!_)/i,FIFTY_MILLISECONDS=50,ONE_SECOND=1e3,FIVE_SECONDS=5e3,ONE_MINUTE=6e4,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(t,n){this.#e=t,this.#t=n}get aborted(){return this.#e.aborted}get cancelled(){return this.#t()}get onabort(){return this.#e.onabort}get reason(){return this.#e.reason}dispatchEvent(t){return this.#e.dispatchEvent(t)}throwIfAborted(){this.#e.throwIfAborted()}toAbortSignal(){return this.#e}toPromise(){if(this.#r)return this.#r;const t=this;let n=!1;return this.#r=new Promise((i,s)=>{if(t.aborted){n=!0,s(TIMEOUT_ABORT_ERROR);return}if(t.cancelled){n=!0,i();return}function a(){t.removeEventListener("abort",a),t.removeEventListener("cancelled",l),n||(n=!0,s(TIMEOUT_ABORT_ERROR))}function l(){t.removeEventListener("abort",a),t.removeEventListener("cancelled",l),n||(n=!0,i())}t.addEventListener("abort",a),t.addEventListener("cancelled",l)}),this.#r}addEventListener(t,n,i){this.#e.addEventListener(t,n,i)}removeEventListener(t,n,i){this.#e.removeEventListener(t,n,i)}}class TimeoutAbortController{_controller=new AbortController;_signal=new TimeoutAbortSignal(this._controller.signal,()=>this._cancelled);_cancelled=!1;_timeoutHandle;constructor(t){this._timeoutHandle=self.setTimeout(()=>{this.abort(TIMEOUT_ABORT_ERROR_MESSAGE)},t)}get signal(){return this._signal}abort(t){this._controller.abort(t)}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,t,n){return n?n.aborted?Promise.reject(ABORT_ERROR):(n.addEventListener("abort",r),t().finally(()=>{n.removeEventListener("abort",r)})):t()}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getAugmentedNamespace(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var t=r.default;if(typeof t=="function"){var n=function i(){var s=!1;try{s=this instanceof i}catch{}return s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(r).forEach(function(i){var s=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:function(){return r[i]}})}),n}var inherits_browser={exports:{}},hasRequiredInherits_browser;function requireInherits_browser(){return hasRequiredInherits_browser||(hasRequiredInherits_browser=1,typeof Object.create=="function"?inherits_browser.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(t,n){if(n){t.super_=n;var i=function(){};i.prototype=n.prototype,t.prototype=new i,t.prototype.constructor=t}}),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 t={},n={};n.byteLength=h,n.toByteArray=D,n.fromByteArray=jn;for(var i=[],s=[],a=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=0,on=l.length;v<on;++v)i[v]=l[v],s[l.charCodeAt(v)]=v;s[45]=62,s[95]=63;function u(gi){var Ri=gi.length;if(Ri%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Si=gi.indexOf("=");Si===-1&&(Si=Ri);var Ai=Si===Ri?0:4-Si%4;return[Si,Ai]}function h(gi){var Ri=u(gi),Si=Ri[0],Ai=Ri[1];return(Si+Ai)*3/4-Ai}function Rn(gi,Ri,Si){return(Ri+Si)*3/4-Si}function D(gi){var Ri,Si=u(gi),Ai=Si[0],Ii=Si[1],Ni=new a(Rn(gi,Ai,Ii)),Ci=0,Oi=Ii>0?Ai-4:Ai,ki;for(ki=0;ki<Oi;ki+=4)Ri=s[gi.charCodeAt(ki)]<<18|s[gi.charCodeAt(ki+1)]<<12|s[gi.charCodeAt(ki+2)]<<6|s[gi.charCodeAt(ki+3)],Ni[Ci++]=Ri>>16&255,Ni[Ci++]=Ri>>8&255,Ni[Ci++]=Ri&255;return Ii===2&&(Ri=s[gi.charCodeAt(ki)]<<2|s[gi.charCodeAt(ki+1)]>>4,Ni[Ci++]=Ri&255),Ii===1&&(Ri=s[gi.charCodeAt(ki)]<<10|s[gi.charCodeAt(ki+1)]<<4|s[gi.charCodeAt(ki+2)]>>2,Ni[Ci++]=Ri>>8&255,Ni[Ci++]=Ri&255),Ni}function Mn(gi){return i[gi>>18&63]+i[gi>>12&63]+i[gi>>6&63]+i[gi&63]}function Ln(gi,Ri,Si){for(var Ai,Ii=[],Ni=Ri;Ni<Si;Ni+=3)Ai=(gi[Ni]<<16&16711680)+(gi[Ni+1]<<8&65280)+(gi[Ni+2]&255),Ii.push(Mn(Ai));return Ii.join("")}function jn(gi){for(var Ri,Si=gi.length,Ai=Si%3,Ii=[],Ni=16383,Ci=0,Oi=Si-Ai;Ci<Oi;Ci+=Ni)Ii.push(Ln(gi,Ci,Ci+Ni>Oi?Oi:Ci+Ni));return Ai===1?(Ri=gi[Si-1],Ii.push(i[Ri>>2]+i[Ri<<4&63]+"==")):Ai===2&&(Ri=(gi[Si-2]<<8)+gi[Si-1],Ii.push(i[Ri>>10]+i[Ri>>4&63]+i[Ri<<2&63]+"=")),Ii.join("")}var hi={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */hi.read=function(gi,Ri,Si,Ai,Ii){var Ni,Ci,Oi=Ii*8-Ai-1,ki=(1<<Oi)-1,Fi=ki>>1,bi=-7,Yn=Si?Ii-1:0,In=Si?-1:1,Hn=gi[Ri+Yn];for(Yn+=In,Ni=Hn&(1<<-bi)-1,Hn>>=-bi,bi+=Oi;bi>0;Ni=Ni*256+gi[Ri+Yn],Yn+=In,bi-=8);for(Ci=Ni&(1<<-bi)-1,Ni>>=-bi,bi+=Ai;bi>0;Ci=Ci*256+gi[Ri+Yn],Yn+=In,bi-=8);if(Ni===0)Ni=1-Fi;else{if(Ni===ki)return Ci?NaN:(Hn?-1:1)*(1/0);Ci=Ci+Math.pow(2,Ai),Ni=Ni-Fi}return(Hn?-1:1)*Ci*Math.pow(2,Ni-Ai)},hi.write=function(gi,Ri,Si,Ai,Ii,Ni){var Ci,Oi,ki,Fi=Ni*8-Ii-1,bi=(1<<Fi)-1,Yn=bi>>1,In=Ii===23?Math.pow(2,-24)-Math.pow(2,-77):0,Hn=Ai?0:Ni-1,yi=Ai?1:-1,mi=Ri<0||Ri===0&&1/Ri<0?1:0;for(Ri=Math.abs(Ri),isNaN(Ri)||Ri===1/0?(Oi=isNaN(Ri)?1:0,Ci=bi):(Ci=Math.floor(Math.log(Ri)/Math.LN2),Ri*(ki=Math.pow(2,-Ci))<1&&(Ci--,ki*=2),Ci+Yn>=1?Ri+=In/ki:Ri+=In*Math.pow(2,1-Yn),Ri*ki>=2&&(Ci++,ki/=2),Ci+Yn>=bi?(Oi=0,Ci=bi):Ci+Yn>=1?(Oi=(Ri*ki-1)*Math.pow(2,Ii),Ci=Ci+Yn):(Oi=Ri*Math.pow(2,Yn-1)*Math.pow(2,Ii),Ci=0));Ii>=8;gi[Si+Hn]=Oi&255,Hn+=yi,Oi/=256,Ii-=8);for(Ci=Ci<<Ii|Oi,Fi+=Ii;Fi>0;gi[Si+Hn]=Ci&255,Hn+=yi,Ci/=256,Fi-=8);gi[Si+Hn-yi]|=mi*128};/*!
|
|
2
2
|
* The buffer module from node.js, for the browser.
|
|
3
3
|
*
|
|
4
4
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
@@ -94,7 +94,7 @@ in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",cate
|
|
|
94
94
|
`,Ln)}return{formatted:Mn,cursorOffset:D,comments:h.comments}}function tr(r,t,n){return typeof t!="number"||Number.isNaN(t)||t<0||t>r.length?n:t}function ru(r,t){let{cursorOffset:n,rangeStart:i,rangeEnd:s}=t;return n=tr(r,n,-1),i=tr(r,i,0),s=tr(r,s,r.length),{...t,cursorOffset:n,rangeStart:i,rangeEnd:s}}function iu(r,t){let{cursorOffset:n,rangeStart:i,rangeEnd:s,endOfLine:a}=ru(r,t),l=r.charAt(0)===uu;if(l&&(r=r.slice(1),n--,i--,s--),a==="auto"&&(a=Fr(r)),r.includes("\r")){let v=on=>wt(r.slice(0,Math.max(on,0)),`\r
|
|
95
95
|
`);n-=v(n),i-=v(i),s-=v(s),r=mr$1(r)}return{hasBOM:l,text:r,options:ru(r,{...t,cursorOffset:n,rangeStart:i,rangeEnd:s,endOfLine:a})}}async function nu(r,t){let n=await ht(t);return!n.hasPragma||n.hasPragma(r)}async function rr(r,t){let{hasBOM:n,text:i,options:s}=iu(r,await se(t));if(s.rangeStart>=s.rangeEnd&&i!==""||s.requirePragma&&!await nu(i,s))return{formatted:r,cursorOffset:t.cursorOffset,comments:[]};let a;return s.rangeStart>0||s.rangeEnd<i.length?a=await Uo(i,s):(!s.requirePragma&&s.insertPragma&&s.printer.insertPragma&&!await nu(i,s)&&(i=s.printer.insertPragma(i)),a=await ou(i,s)),n&&(a.formatted=uu+a.formatted,a.cursorOffset>=0&&a.cursorOffset++),a}async function su(r,t,n){let{text:i,options:s}=iu(r,await se(t)),a=await ce(i,s);return n&&(n.preprocessForPrint&&(a.ast=await Qt(a.ast,s)),n.massage&&(a.ast=qn(a.ast,s))),a}async function au(r,t){t=await se(t);let n=await Ye(r,t);return Fe(n,t)}async function Du(r,t){let n=Or(r),{formatted:i}=await rr(n,{...t,parser:"__js_expression"});return i}async function lu(r,t){t=await se(t);let{ast:n}=await ce(r,t);return Ye(n,t)}async function cu(r,t){return Fe(r,await se(t))}var nr={};We(nr,{builders:()=>Go,printer:()=>Ko,utils:()=>qo});var Go={join:be,line:Ke,softline:vr,hardline:q,literalline:qe,group:_t,conditionalGroup:Ar,fill:Ge,lineSuffix:xe,lineSuffixBoundary:xr,cursor:ve,breakParent:de,ifBreak:Br,trim:_r,indent:De,indentIfBreak:wr,align:ae,addAlignmentToDoc:Je,markAsRoot:gr,dedentToRoot:Cr,dedent:yr,hardlineWithoutBreakParent:_e,literallineWithoutBreakParent:vt,label:br,concat:r=>r},Ko={printDocToString:Fe},qo={willBreak:Ir,traverseDoc:we,findInDoc:Xe,mapDoc:Ne,removeLines:Yr,stripTrailingHardline:Ze,replaceEndOfLine:jr,canBreak:Hr},fu="3.3.3",or={};We(or,{addDanglingComment:()=>re,addLeadingComment:()=>ue,addTrailingComment:()=>oe,getAlignmentSize:()=>me,getIndentSize:()=>pu,getMaxContinuousCount:()=>du,getNextNonSpaceNonCommentCharacter:()=>Fu,getNextNonSpaceNonCommentCharacterIndex:()=>si,getStringWidth:()=>Oe,hasNewline:()=>V,hasNewlineInRange:()=>mu,hasSpaces:()=>Eu,isNextLineEmpty:()=>ci,isNextLineEmptyAfterIndex:()=>gt,isPreviousLineEmpty:()=>Di,makeString:()=>hu,skip:()=>Ee,skipEverythingButNewLine:()=>nt,skipInlineComment:()=>Ce,skipNewline:()=>M,skipSpaces:()=>T,skipToLineEnd:()=>rt,skipTrailingComment:()=>ge,skipWhitespace:()=>zr});function Jo(r,t){if(t===!1)return!1;if(r.charAt(t)==="/"&&r.charAt(t+1)==="*"){for(let n=t+2;n<r.length;++n)if(r.charAt(n)==="*"&&r.charAt(n+1)==="/")return n+2}return t}var Ce=Jo;function Xo(r,t){return t===!1?!1:r.charAt(t)==="/"&&r.charAt(t+1)==="/"?nt(r,t):t}var ge=Xo;function Zo(r,t){let n=null,i=t;for(;i!==n;)n=i,i=T(r,i),i=Ce(r,i),i=ge(r,i),i=M(r,i);return i}var je=Zo;function Qo(r,t){let n=null,i=t;for(;i!==n;)n=i,i=rt(r,i),i=Ce(r,i),i=T(r,i);return i=ge(r,i),i=M(r,i),i!==!1&&V(r,i)}var gt=Qo;function ei(r,t){let n=r.lastIndexOf(`
|
|
96
96
|
`);return n===-1?0:me(r.slice(n+1).match(/^[\t ]*/u)[0],t)}var pu=ei;function ur(r){if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ti(r,t){let n=r.match(new RegExp(`(${ur(t)})+`,"gu"));return n===null?0:n.reduce((i,s)=>Math.max(i,s.length/t.length),0)}var du=ti;function ri(r,t){let n=je(r,t);return n===!1?"":r.charAt(n)}var Fu=ri;function ni(r,t,n){for(let i=t;i<n;++i)if(r.charAt(i)===`
|
|
97
|
-
`)return!0;return!1}var mu=ni;function ui(r,t,n={}){return T(r,n.backwards?t-1:t,n)!==t}var Eu=ui;function oi(r,t,n){let i=t==='"'?"'":'"',s=ne(!1,r,/\\(.)|(["'])/gsu,(a,l,v)=>l===i?l:v===t?"\\"+v:v||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(l)?l:"\\"+l));return t+s+t}var hu=oi;function ii(r,t,n){return je(r,n(t))}function si(r,t){return arguments.length===2||typeof t=="number"?je(r,t):ii(...arguments)}function ai(r,t,n){return Le(r,n(t))}function Di(r,t){return arguments.length===2||typeof t=="number"?Le(r,t):ai(...arguments)}function li(r,t,n){return gt(r,n(t))}function ci(r,t){return arguments.length===2||typeof t=="number"?gt(r,t):li(...arguments)}function fe(r,t=1){return async(...n)=>{let i=n[t]??{},s=i.plugins??[];return n[t]={...i,plugins:Array.isArray(s)?s:Object.values(s)},r(...n)}}var Cu=fe(rr);async function gu(r,t){let{formatted:n}=await Cu(r,{...t,cursorOffset:-1});return n}async function fi(r,t){return await gu(r,t)===r}var pi=fe(ot,0),di={parse:fe(su),formatAST:fe(au),formatDoc:fe(Du),printToDoc:fe(lu),printDocToString:fe(cu)};function delay(r){return new Promise(t=>void self.setTimeout(t,r))}function isSessionExpired(r,t=ONE_MINUTE){return msUntilSessionExpired(r,t)<1}function msUntilSessionExpired(r,t=ONE_MINUTE){return r.expiresAt-now()-t}const instanceOfAny=(r,t)=>t.some(n=>r instanceof n);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 t=new Promise((n,i)=>{const s=()=>{r.removeEventListener("success",a),r.removeEventListener("error",l)},a=()=>{n(wrap$2(r.result)),s()},l=()=>{i(r.error),s()};r.addEventListener("success",a),r.addEventListener("error",l)});return t.then(n=>{n instanceof IDBCursor&&cursorRequestMap.set(n,r)}).catch(()=>{}),reverseTransformCache.set(t,r),t}function cacheDonePromiseForTransaction(r){if(transactionDoneMap.has(r))return;const t=new Promise((n,i)=>{const s=()=>{r.removeEventListener("complete",a),r.removeEventListener("error",l),r.removeEventListener("abort",l)},a=()=>{n(),s()},l=()=>{i(r.error||new DOMException("AbortError","AbortError")),s()};r.addEventListener("complete",a),r.addEventListener("error",l),r.addEventListener("abort",l)});transactionDoneMap.set(r,t)}let idbProxyTraps={get(r,t,n){if(r instanceof IDBTransaction){if(t==="done")return transactionDoneMap.get(r);if(t==="objectStoreNames")return r.objectStoreNames||transactionStoreNamesMap.get(r);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return wrap$2(r[t])},set(r,t,n){return r[t]=n,!0},has(r,t){return r instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in r}};function replaceTraps(r){idbProxyTraps=r(idbProxyTraps)}function wrapFunction(r){return r===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const i=r.call(unwrap(this),t,...n);return transactionStoreNamesMap.set(i,t.sort?t.sort():[t]),wrap$2(i)}:getCursorAdvanceMethods().includes(r)?function(...t){return r.apply(unwrap(this),t),wrap$2(cursorRequestMap.get(this))}:function(...t){return wrap$2(r.apply(unwrap(this),t))}}function transformCachableValue(r){return typeof r=="function"?wrapFunction(r):(r instanceof IDBTransaction&&cacheDonePromiseForTransaction(r),instanceOfAny(r,getIdbProxyableTypes())?new Proxy(r,idbProxyTraps):r)}function wrap$2(r){if(r instanceof IDBRequest)return promisifyRequest(r);if(transformCache.has(r))return transformCache.get(r);const t=transformCachableValue(r);return t!==r&&(transformCache.set(r,t),reverseTransformCache.set(t,r)),t}const unwrap=r=>reverseTransformCache.get(r);function openDB(r,t,{blocked:n,upgrade:i,blocking:s,terminated:a}={}){const l=indexedDB.open(r,t),v=wrap$2(l);return i&&l.addEventListener("upgradeneeded",on=>{i(wrap$2(l.result),on.oldVersion,on.newVersion,wrap$2(l.transaction),on)}),n&&l.addEventListener("blocked",on=>n(on.oldVersion,on.newVersion,on)),v.then(on=>{a&&on.addEventListener("close",()=>a()),s&&on.addEventListener("versionchange",u=>s(u.oldVersion,u.newVersion,u))}).catch(()=>{}),v}const readMethods=["get","getKey","getAll","getAllKeys","count"],writeMethods=["put","add","delete","clear"],cachedMethods=new Map;function getMethod(r,t){if(!(r instanceof IDBDatabase&&!(t in r)&&typeof t=="string"))return;if(cachedMethods.get(t))return cachedMethods.get(t);const n=t.replace(/FromIndex$/,""),i=t!==n,s=writeMethods.includes(n);if(!(n in(i?IDBIndex:IDBObjectStore).prototype)||!(s||readMethods.includes(n)))return;const a=async function(l,...v){const on=this.transaction(l,s?"readwrite":"readonly");let u=on.store;return i&&(u=u.index(v.shift())),(await Promise.all([u[n](...v),s&&on.done]))[0]};return cachedMethods.set(t,a),a}replaceTraps(r=>({...r,get:(t,n,i)=>getMethod(t,n)||r.get(t,n,i),has:(t,n)=>!!getMethod(t,n)||r.has(t,n)}));const advanceMethodProps=["continue","continuePrimaryKey","advance"],methodMap={},advanceResults=new WeakMap,ittrProxiedCursorToOriginalProxy=new WeakMap,cursorIteratorTraps={get(r,t){if(!advanceMethodProps.includes(t))return r[t];let n=methodMap[t];return n||(n=methodMap[t]=function(...i){advanceResults.set(this,ittrProxiedCursorToOriginalProxy.get(this)[t](...i))}),n}};async function*iterate(...r){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...r)),!t)return;t=t;const n=new Proxy(t,cursorIteratorTraps);for(ittrProxiedCursorToOriginalProxy.set(n,t),reverseTransformCache.set(n,unwrap(t));t;)yield n,t=await(advanceResults.get(n)||t.continue()),advanceResults.delete(n)}function isIteratorProp(r,t){return t===Symbol.asyncIterator&&instanceOfAny(r,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&instanceOfAny(r,[IDBIndex,IDBObjectStore])}replaceTraps(r=>({...r,get(t,n,i){return isIteratorProp(t,n)?iterate:r.get(t,n,i)},has(t,n){return isIteratorProp(t,n)||r.has(t,n)}}));const DB_NAME="chillicream-nitro
|
|
97
|
+
`)return!0;return!1}var mu=ni;function ui(r,t,n={}){return T(r,n.backwards?t-1:t,n)!==t}var Eu=ui;function oi(r,t,n){let i=t==='"'?"'":'"',s=ne(!1,r,/\\(.)|(["'])/gsu,(a,l,v)=>l===i?l:v===t?"\\"+v:v||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(l)?l:"\\"+l));return t+s+t}var hu=oi;function ii(r,t,n){return je(r,n(t))}function si(r,t){return arguments.length===2||typeof t=="number"?je(r,t):ii(...arguments)}function ai(r,t,n){return Le(r,n(t))}function Di(r,t){return arguments.length===2||typeof t=="number"?Le(r,t):ai(...arguments)}function li(r,t,n){return gt(r,n(t))}function ci(r,t){return arguments.length===2||typeof t=="number"?gt(r,t):li(...arguments)}function fe(r,t=1){return async(...n)=>{let i=n[t]??{},s=i.plugins??[];return n[t]={...i,plugins:Array.isArray(s)?s:Object.values(s)},r(...n)}}var Cu=fe(rr);async function gu(r,t){let{formatted:n}=await Cu(r,{...t,cursorOffset:-1});return n}async function fi(r,t){return await gu(r,t)===r}var pi=fe(ot,0),di={parse:fe(su),formatAST:fe(au),formatDoc:fe(Du),printToDoc:fe(lu),printDocToString:fe(cu)};function delay(r){return new Promise(t=>void self.setTimeout(t,r))}function isSessionExpired(r,t=ONE_MINUTE){return msUntilSessionExpired(r,t)<1}function msUntilSessionExpired(r,t=ONE_MINUTE){return r.expiresAt-now()-t}const instanceOfAny=(r,t)=>t.some(n=>r instanceof n);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 t=new Promise((n,i)=>{const s=()=>{r.removeEventListener("success",a),r.removeEventListener("error",l)},a=()=>{n(wrap$2(r.result)),s()},l=()=>{i(r.error),s()};r.addEventListener("success",a),r.addEventListener("error",l)});return t.then(n=>{n instanceof IDBCursor&&cursorRequestMap.set(n,r)}).catch(()=>{}),reverseTransformCache.set(t,r),t}function cacheDonePromiseForTransaction(r){if(transactionDoneMap.has(r))return;const t=new Promise((n,i)=>{const s=()=>{r.removeEventListener("complete",a),r.removeEventListener("error",l),r.removeEventListener("abort",l)},a=()=>{n(),s()},l=()=>{i(r.error||new DOMException("AbortError","AbortError")),s()};r.addEventListener("complete",a),r.addEventListener("error",l),r.addEventListener("abort",l)});transactionDoneMap.set(r,t)}let idbProxyTraps={get(r,t,n){if(r instanceof IDBTransaction){if(t==="done")return transactionDoneMap.get(r);if(t==="objectStoreNames")return r.objectStoreNames||transactionStoreNamesMap.get(r);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return wrap$2(r[t])},set(r,t,n){return r[t]=n,!0},has(r,t){return r instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in r}};function replaceTraps(r){idbProxyTraps=r(idbProxyTraps)}function wrapFunction(r){return r===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const i=r.call(unwrap(this),t,...n);return transactionStoreNamesMap.set(i,t.sort?t.sort():[t]),wrap$2(i)}:getCursorAdvanceMethods().includes(r)?function(...t){return r.apply(unwrap(this),t),wrap$2(cursorRequestMap.get(this))}:function(...t){return wrap$2(r.apply(unwrap(this),t))}}function transformCachableValue(r){return typeof r=="function"?wrapFunction(r):(r instanceof IDBTransaction&&cacheDonePromiseForTransaction(r),instanceOfAny(r,getIdbProxyableTypes())?new Proxy(r,idbProxyTraps):r)}function wrap$2(r){if(r instanceof IDBRequest)return promisifyRequest(r);if(transformCache.has(r))return transformCache.get(r);const t=transformCachableValue(r);return t!==r&&(transformCache.set(r,t),reverseTransformCache.set(t,r)),t}const unwrap=r=>reverseTransformCache.get(r);function openDB(r,t,{blocked:n,upgrade:i,blocking:s,terminated:a}={}){const l=indexedDB.open(r,t),v=wrap$2(l);return i&&l.addEventListener("upgradeneeded",on=>{i(wrap$2(l.result),on.oldVersion,on.newVersion,wrap$2(l.transaction),on)}),n&&l.addEventListener("blocked",on=>n(on.oldVersion,on.newVersion,on)),v.then(on=>{a&&on.addEventListener("close",()=>a()),s&&on.addEventListener("versionchange",u=>s(u.oldVersion,u.newVersion,u))}).catch(()=>{}),v}const readMethods=["get","getKey","getAll","getAllKeys","count"],writeMethods=["put","add","delete","clear"],cachedMethods=new Map;function getMethod(r,t){if(!(r instanceof IDBDatabase&&!(t in r)&&typeof t=="string"))return;if(cachedMethods.get(t))return cachedMethods.get(t);const n=t.replace(/FromIndex$/,""),i=t!==n,s=writeMethods.includes(n);if(!(n in(i?IDBIndex:IDBObjectStore).prototype)||!(s||readMethods.includes(n)))return;const a=async function(l,...v){const on=this.transaction(l,s?"readwrite":"readonly");let u=on.store;return i&&(u=u.index(v.shift())),(await Promise.all([u[n](...v),s&&on.done]))[0]};return cachedMethods.set(t,a),a}replaceTraps(r=>({...r,get:(t,n,i)=>getMethod(t,n)||r.get(t,n,i),has:(t,n)=>!!getMethod(t,n)||r.has(t,n)}));const advanceMethodProps=["continue","continuePrimaryKey","advance"],methodMap={},advanceResults=new WeakMap,ittrProxiedCursorToOriginalProxy=new WeakMap,cursorIteratorTraps={get(r,t){if(!advanceMethodProps.includes(t))return r[t];let n=methodMap[t];return n||(n=methodMap[t]=function(...i){advanceResults.set(this,ittrProxiedCursorToOriginalProxy.get(this)[t](...i))}),n}};async function*iterate(...r){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...r)),!t)return;t=t;const n=new Proxy(t,cursorIteratorTraps);for(ittrProxiedCursorToOriginalProxy.set(n,t),reverseTransformCache.set(n,unwrap(t));t;)yield n,t=await(advanceResults.get(n)||t.continue()),advanceResults.delete(n)}function isIteratorProp(r,t){return t===Symbol.asyncIterator&&instanceOfAny(r,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&instanceOfAny(r,[IDBIndex,IDBObjectStore])}replaceTraps(r=>({...r,get(t,n,i){return isIteratorProp(t,n)?iterate:r.get(t,n,i)},has(t,n){return isIteratorProp(t,n)||r.has(t,n)}}));const DB_NAME="chillicream-nitro";function getDatabaseName(){return self.appNamespace?`${DB_NAME}-${self.appNamespace}`:DB_NAME}function getEntityByKey(r,t){return openDatabaseScope(n=>n.get(r,t))}function putEntity(r,t){return openDatabaseScope(async n=>{await n.put(r,t)})}function openDatabase(){return openDB(getDatabaseName())}async function openDatabaseScope(r){const t=await openDatabase();try{return await r(t)}finally{t.close()}}async function openTransactionScope(r,t,n,i,s){const a=await createTransaction(r,t,n);try{return await i(a,r.version)}finally{await a.done}}function openDatabaseWithTransactionScope(r,t,n,i){return openDatabaseScope(s=>openTransactionScope(s,r,t,n,i))}const camelizationCache=new Map;function camelizeString(r){let t=camelizationCache.get(r);return t||(t=r.split("-").reduce((n,i)=>(i&&(n!==""?(n+=i[0].toUpperCase(),n+=i.substring(1)):n=i),n),""),camelizationCache.set(r,t)),t}async function createTransaction(r,t,n){const i=r.transaction(t,n),s={},a={};for(const l of t){const v=i.objectStore(l),on=camelizeString(l);s[on]=v,a[on]={};for(const u of v.indexNames)a[on][u]=v.index(u)}return{abort:l=>abortWithError(i,l),done:i.done.catch(l=>{if(!isAbortError(l))throw l}),store:s,index:a}}function abortWithError(r,t){throw r.abort(),new Error(t)}globalThis.idbGet=function(r,t){return openDatabaseScope(async n=>{console.log("IDB_GET",{store:r,key:t,data:await n.get(r,t)})})};globalThis.idbSet=function(r,t,n){return openDatabaseScope(async i=>{console.log("IDB_SET",{store:r,key:n,value:t,result:await i.put(r,t,n)})})};async function getUserSession({sub:r,tenant:t,issuer:n}){return openDatabaseWithTransactionScope(["session"],"readonly",i=>i.index.session.key.get([r,t,n]))}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,t=4294967295;function n(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
98
98
|
Use Chrome, Firefox or Internet Explorer 11`)}var i=requireSafeBuffer$1().Buffer,s=commonjsGlobal.crypto||commonjsGlobal.msCrypto;s&&s.getRandomValues?browser$b.exports=a:browser$b.exports=n;function a(l,v){if(l>t)throw new RangeError("requested too many random bytes");var on=i.allocUnsafe(l);if(l>0)if(l>r)for(var u=0;u<l;u+=r)s.getRandomValues(on.slice(u,u+r));else s.getRandomValues(on);return typeof v=="function"?process$1.nextTick(function(){v(null,on)}):on}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,t=requireReadableBrowser$1().Transform,n=requireInherits_browser();function i(a,l){if(!r.isBuffer(a)&&typeof a!="string")throw new TypeError(l+" must be a string or a buffer")}function s(a){t.call(this),this._block=r.allocUnsafe(a),this._blockSize=a,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return n(s,t),s.prototype._transform=function(a,l,v){var on=null;try{this.update(a,l)}catch(u){on=u}v(on)},s.prototype._flush=function(a){var l=null;try{this.push(this.digest())}catch(v){l=v}a(l)},s.prototype.update=function(a,l){if(i(a,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(a)||(a=r.from(a,l));for(var v=this._block,on=0;this._blockOffset+a.length-on>=this._blockSize;){for(var u=this._blockOffset;u<this._blockSize;)v[u++]=a[on++];this._update(),this._blockOffset=0}for(;on<a.length;)v[this._blockOffset++]=a[on++];for(var h=0,Rn=a.length*8;Rn>0;++h)this._length[h]+=Rn,Rn=this._length[h]/4294967296|0,Rn>0&&(this._length[h]-=4294967296*Rn);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(a){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var l=this._digest();a!==void 0&&(l=l.toString(a)),this._block.fill(0),this._blockOffset=0;for(var v=0;v<4;++v)this._length[v]=0;return l},s.prototype._digest=function(){throw new Error("_digest is not implemented")},hashBase$1=s,hashBase$1}var ripemd160$3,hasRequiredRipemd160$2;function requireRipemd160$2(){if(hasRequiredRipemd160$2)return ripemd160$3;hasRequiredRipemd160$2=1;var r=requireDist().Buffer,t=requireInherits_browser(),n=requireHashBase$1(),i=new Array(16),s=[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],a=[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],v=[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],on=[0,1518500249,1859775393,2400959708,2840853838],u=[1352829926,1548603684,1836072691,2053994217,0];function h(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}t(h,n),h.prototype._update=function(){for(var vi=i,gi=0;gi<16;++gi)vi[gi]=this._block.readInt32LE(gi*4);for(var Ri=this._a|0,Si=this._b|0,Ai=this._c|0,Ii=this._d|0,Ni=this._e|0,Ci=this._a|0,Oi=this._b|0,ki=this._c|0,Fi=this._d|0,bi=this._e|0,Yn=0;Yn<80;Yn+=1){var In,Hn;Yn<16?(In=D(Ri,Si,Ai,Ii,Ni,vi[s[Yn]],on[0],l[Yn]),Hn=hi(Ci,Oi,ki,Fi,bi,vi[a[Yn]],u[0],v[Yn])):Yn<32?(In=Mn(Ri,Si,Ai,Ii,Ni,vi[s[Yn]],on[1],l[Yn]),Hn=jn(Ci,Oi,ki,Fi,bi,vi[a[Yn]],u[1],v[Yn])):Yn<48?(In=Ln(Ri,Si,Ai,Ii,Ni,vi[s[Yn]],on[2],l[Yn]),Hn=Ln(Ci,Oi,ki,Fi,bi,vi[a[Yn]],u[2],v[Yn])):Yn<64?(In=jn(Ri,Si,Ai,Ii,Ni,vi[s[Yn]],on[3],l[Yn]),Hn=Mn(Ci,Oi,ki,Fi,bi,vi[a[Yn]],u[3],v[Yn])):(In=hi(Ri,Si,Ai,Ii,Ni,vi[s[Yn]],on[4],l[Yn]),Hn=D(Ci,Oi,ki,Fi,bi,vi[a[Yn]],u[4],v[Yn])),Ri=Ni,Ni=Ii,Ii=Rn(Ai,10),Ai=Si,Si=In,Ci=bi,bi=Fi,Fi=Rn(ki,10),ki=Oi,Oi=Hn}var yi=this._b+Ai+Fi|0;this._b=this._c+Ii+bi|0,this._c=this._d+Ni+Ci|0,this._d=this._e+Ri+Oi|0,this._e=this._a+Si+ki|0,this._a=yi},h.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 vi=r.alloc?r.alloc(20):new r(20);return vi.writeInt32LE(this._a,0),vi.writeInt32LE(this._b,4),vi.writeInt32LE(this._c,8),vi.writeInt32LE(this._d,12),vi.writeInt32LE(this._e,16),vi};function Rn(vi,gi){return vi<<gi|vi>>>32-gi}function D(vi,gi,Ri,Si,Ai,Ii,Ni,Ci){return Rn(vi+(gi^Ri^Si)+Ii+Ni|0,Ci)+Ai|0}function Mn(vi,gi,Ri,Si,Ai,Ii,Ni,Ci){return Rn(vi+(gi&Ri|~gi&Si)+Ii+Ni|0,Ci)+Ai|0}function Ln(vi,gi,Ri,Si,Ai,Ii,Ni,Ci){return Rn(vi+((gi|~Ri)^Si)+Ii+Ni|0,Ci)+Ai|0}function jn(vi,gi,Ri,Si,Ai,Ii,Ni,Ci){return Rn(vi+(gi&Si|Ri&~Si)+Ii+Ni|0,Ci)+Ai|0}function hi(vi,gi,Ri,Si,Ai,Ii,Ni,Ci){return Rn(vi+(gi^(Ri|~Si))+Ii+Ni|0,Ci)+Ai|0}return ripemd160$3=h,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(t){return r.call(t)=="[object Array]"},isarray$1}var isTypedArray,hasRequiredIsTypedArray;function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray;hasRequiredIsTypedArray=1;var r=requireWhichTypedArray();return isTypedArray=function(n){return!!r(n)},isTypedArray}var typedArrayBuffer,hasRequiredTypedArrayBuffer;function requireTypedArrayBuffer(){if(hasRequiredTypedArrayBuffer)return typedArrayBuffer;hasRequiredTypedArrayBuffer=1;var r=requireType(),t=requireCallBound(),n=t("TypedArray.prototype.buffer",!0),i=requireIsTypedArray();return typedArrayBuffer=n||function(a){if(!i(a))throw new r("Not a Typed Array");return a.buffer},typedArrayBuffer}var toBuffer,hasRequiredToBuffer$1;function requireToBuffer$1(){if(hasRequiredToBuffer$1)return toBuffer;hasRequiredToBuffer$1=1;var r=requireSafeBuffer$1().Buffer,t=requireIsarray$1(),n=requireTypedArrayBuffer(),i=ArrayBuffer.isView||function(on){try{return n(on),!0}catch{return!1}},s=typeof Uint8Array<"u",a=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",l=a&&(r.prototype instanceof Uint8Array||r.TYPED_ARRAY_SUPPORT);return toBuffer=function(on,u){if(on instanceof r)return on;if(typeof on=="string")return r.from(on,u);if(a&&i(on)){if(on.byteLength===0)return r.alloc(0);if(l){var h=r.from(on.buffer,on.byteOffset,on.byteLength);if(h.byteLength===on.byteLength)return h}var Rn=on instanceof Uint8Array?on:new Uint8Array(on.buffer,on.byteOffset,on.byteLength),D=r.from(Rn);if(D.length===on.byteLength)return D}if(s&&on instanceof Uint8Array)return r.from(on);var Mn=t(on);if(Mn)for(var Ln=0;Ln<on.length;Ln+=1){var jn=on[Ln];if(typeof jn!="number"||jn<0||jn>255||~~jn!==jn)throw new RangeError("Array items must be numbers in the range 0-255.")}if(Mn||r.isBuffer(on)&&on.constructor&&typeof on.constructor.isBuffer=="function"&&on.constructor.isBuffer(on))return r.from(on);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,t=requireToBuffer$1();function n(i,s){this._block=r.alloc(i),this._finalSize=s,this._blockSize=i,this._len=0}return n.prototype.update=function(i,s){i=t(i,s||"utf8");for(var a=this._block,l=this._blockSize,v=i.length,on=this._len,u=0;u<v;){for(var h=on%l,Rn=Math.min(v-u,l-h),D=0;D<Rn;D++)a[h+D]=i[u+D];on+=Rn,u+=Rn,on%l===0&&this._update(a)}return this._len+=v,this},n.prototype.digest=function(i){var s=this._len%this._blockSize;this._block[s]=128,this._block.fill(0,s+1),s>=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=this._len*8;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var l=(a&4294967295)>>>0,v=(a-l)/4294967296;this._block.writeUInt32BE(v,this._blockSize-8),this._block.writeUInt32BE(l,this._blockSize-4)}this._update(this._block);var on=this._hash();return i?on.toString(i):on},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},hash$1=n,hash$1}var sha$1,hasRequiredSha$1;function requireSha$1(){if(hasRequiredSha$1)return sha$1;hasRequiredSha$1=1;var r=requireInherits_browser(),t=requireHash$1(),n=requireSafeBuffer$1().Buffer,i=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function a(){this.init(),this._w=s,t.call(this,64,56)}r(a,t),a.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 v(u){return u<<30|u>>>2}function on(u,h,Rn,D){return u===0?h&Rn|~h&D:u===2?h&Rn|h&D|Rn&D:h^Rn^D}return a.prototype._update=function(u){for(var h=this._w,Rn=this._a|0,D=this._b|0,Mn=this._c|0,Ln=this._d|0,jn=this._e|0,hi=0;hi<16;++hi)h[hi]=u.readInt32BE(hi*4);for(;hi<80;++hi)h[hi]=h[hi-3]^h[hi-8]^h[hi-14]^h[hi-16];for(var vi=0;vi<80;++vi){var gi=~~(vi/20),Ri=l(Rn)+on(gi,D,Mn,Ln)+jn+h[vi]+i[gi]|0;jn=Ln,Ln=Mn,Mn=v(D),D=Rn,Rn=Ri}this._a=Rn+this._a|0,this._b=D+this._b|0,this._c=Mn+this._c|0,this._d=Ln+this._d|0,this._e=jn+this._e|0},a.prototype._hash=function(){var u=n.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=a,sha$1}var sha1$2,hasRequiredSha1$1;function requireSha1$1(){if(hasRequiredSha1$1)return sha1$2;hasRequiredSha1$1=1;var r=requireInherits_browser(),t=requireHash$1(),n=requireSafeBuffer$1().Buffer,i=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function a(){this.init(),this._w=s,t.call(this,64,56)}r(a,t),a.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function l(h){return h<<1|h>>>31}function v(h){return h<<5|h>>>27}function on(h){return h<<30|h>>>2}function u(h,Rn,D,Mn){return h===0?Rn&D|~Rn&Mn:h===2?Rn&D|Rn&Mn|D&Mn:Rn^D^Mn}return a.prototype._update=function(h){for(var Rn=this._w,D=this._a|0,Mn=this._b|0,Ln=this._c|0,jn=this._d|0,hi=this._e|0,vi=0;vi<16;++vi)Rn[vi]=h.readInt32BE(vi*4);for(;vi<80;++vi)Rn[vi]=l(Rn[vi-3]^Rn[vi-8]^Rn[vi-14]^Rn[vi-16]);for(var gi=0;gi<80;++gi){var Ri=~~(gi/20),Si=v(D)+u(Ri,Mn,Ln,jn)+hi+Rn[gi]+i[Ri]|0;hi=jn,jn=Ln,Ln=on(Mn),Mn=D,D=Si}this._a=D+this._a|0,this._b=Mn+this._b|0,this._c=Ln+this._c|0,this._d=jn+this._d|0,this._e=hi+this._e|0},a.prototype._hash=function(){var h=n.allocUnsafe(20);return h.writeInt32BE(this._a|0,0),h.writeInt32BE(this._b|0,4),h.writeInt32BE(this._c|0,8),h.writeInt32BE(this._d|0,12),h.writeInt32BE(this._e|0,16),h},sha1$2=a,sha1$2}var sha256$3,hasRequiredSha256$1;function requireSha256$1(){if(hasRequiredSha256$1)return sha256$3;hasRequiredSha256$1=1;var r=requireInherits_browser(),t=requireHash$1(),n=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],s=new Array(64);function a(){this.init(),this._w=s,t.call(this,64,56)}r(a,t),a.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(D,Mn,Ln){return Ln^D&(Mn^Ln)}function v(D,Mn,Ln){return D&Mn|Ln&(D|Mn)}function on(D){return(D>>>2|D<<30)^(D>>>13|D<<19)^(D>>>22|D<<10)}function u(D){return(D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7)}function h(D){return(D>>>7|D<<25)^(D>>>18|D<<14)^D>>>3}function Rn(D){return(D>>>17|D<<15)^(D>>>19|D<<13)^D>>>10}return a.prototype._update=function(D){for(var Mn=this._w,Ln=this._a|0,jn=this._b|0,hi=this._c|0,vi=this._d|0,gi=this._e|0,Ri=this._f|0,Si=this._g|0,Ai=this._h|0,Ii=0;Ii<16;++Ii)Mn[Ii]=D.readInt32BE(Ii*4);for(;Ii<64;++Ii)Mn[Ii]=Rn(Mn[Ii-2])+Mn[Ii-7]+h(Mn[Ii-15])+Mn[Ii-16]|0;for(var Ni=0;Ni<64;++Ni){var Ci=Ai+u(gi)+l(gi,Ri,Si)+i[Ni]+Mn[Ni]|0,Oi=on(Ln)+v(Ln,jn,hi)|0;Ai=Si,Si=Ri,Ri=gi,gi=vi+Ci|0,vi=hi,hi=jn,jn=Ln,Ln=Ci+Oi|0}this._a=Ln+this._a|0,this._b=jn+this._b|0,this._c=hi+this._c|0,this._d=vi+this._d|0,this._e=gi+this._e|0,this._f=Ri+this._f|0,this._g=Si+this._g|0,this._h=Ai+this._h|0},a.prototype._hash=function(){var D=n.allocUnsafe(32);return D.writeInt32BE(this._a,0),D.writeInt32BE(this._b,4),D.writeInt32BE(this._c,8),D.writeInt32BE(this._d,12),D.writeInt32BE(this._e,16),D.writeInt32BE(this._f,20),D.writeInt32BE(this._g,24),D.writeInt32BE(this._h,28),D},sha256$3=a,sha256$3}var sha224$3,hasRequiredSha224$1;function requireSha224$1(){if(hasRequiredSha224$1)return sha224$3;hasRequiredSha224$1=1;var r=requireInherits_browser(),t=requireSha256$1(),n=requireHash$1(),i=requireSafeBuffer$1().Buffer,s=new Array(64);function a(){this.init(),this._w=s,n.call(this,64,56)}return r(a,t),a.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},a.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=a,sha224$3}var sha512$3,hasRequiredSha512$1;function requireSha512$1(){if(hasRequiredSha512$1)return sha512$3;hasRequiredSha512$1=1;var r=requireInherits_browser(),t=requireHash$1(),n=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],s=new Array(160);function a(){this.init(),this._w=s,t.call(this,128,112)}r(a,t),a.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(jn,hi,vi){return vi^jn&(hi^vi)}function v(jn,hi,vi){return jn&hi|vi&(jn|hi)}function on(jn,hi){return(jn>>>28|hi<<4)^(hi>>>2|jn<<30)^(hi>>>7|jn<<25)}function u(jn,hi){return(jn>>>14|hi<<18)^(jn>>>18|hi<<14)^(hi>>>9|jn<<23)}function h(jn,hi){return(jn>>>1|hi<<31)^(jn>>>8|hi<<24)^jn>>>7}function Rn(jn,hi){return(jn>>>1|hi<<31)^(jn>>>8|hi<<24)^(jn>>>7|hi<<25)}function D(jn,hi){return(jn>>>19|hi<<13)^(hi>>>29|jn<<3)^jn>>>6}function Mn(jn,hi){return(jn>>>19|hi<<13)^(hi>>>29|jn<<3)^(jn>>>6|hi<<26)}function Ln(jn,hi){return jn>>>0<hi>>>0?1:0}return a.prototype._update=function(jn){for(var hi=this._w,vi=this._ah|0,gi=this._bh|0,Ri=this._ch|0,Si=this._dh|0,Ai=this._eh|0,Ii=this._fh|0,Ni=this._gh|0,Ci=this._hh|0,Oi=this._al|0,ki=this._bl|0,Fi=this._cl|0,bi=this._dl|0,Yn=this._el|0,In=this._fl|0,Hn=this._gl|0,yi=this._hl|0,mi=0;mi<32;mi+=2)hi[mi]=jn.readInt32BE(mi*4),hi[mi+1]=jn.readInt32BE(mi*4+4);for(;mi<160;mi+=2){var _i=hi[mi-30],wi=hi[mi-30+1],Ei=h(_i,wi),xi=Rn(wi,_i);_i=hi[mi-4],wi=hi[mi-4+1];var Wn=D(_i,wi),Ti=Mn(wi,_i),qi=hi[mi-14],Vi=hi[mi-14+1],ji=hi[mi-32],Bi=hi[mi-32+1],Pi=xi+Vi|0,zi=Ei+qi+Ln(Pi,xi)|0;Pi=Pi+Ti|0,zi=zi+Wn+Ln(Pi,Ti)|0,Pi=Pi+Bi|0,zi=zi+ji+Ln(Pi,Bi)|0,hi[mi]=zi,hi[mi+1]=Pi}for(var Hi=0;Hi<160;Hi+=2){zi=hi[Hi],Pi=hi[Hi+1];var Ui=v(vi,gi,Ri),Mi=v(Oi,ki,Fi),Ki=on(vi,Oi),Qi=on(Oi,vi),Yi=u(Ai,Yn),ea=u(Yn,Ai),ia=i[Hi],Zi=i[Hi+1],Ji=l(Ai,Ii,Ni),ua=l(Yn,In,Hn),Xi=yi+ea|0,na=Ci+Yi+Ln(Xi,yi)|0;Xi=Xi+ua|0,na=na+Ji+Ln(Xi,ua)|0,Xi=Xi+Zi|0,na=na+ia+Ln(Xi,Zi)|0,Xi=Xi+Pi|0,na=na+zi+Ln(Xi,Pi)|0;var ta=Qi+Mi|0,oa=Ki+Ui+Ln(ta,Qi)|0;Ci=Ni,yi=Hn,Ni=Ii,Hn=In,Ii=Ai,In=Yn,Yn=bi+Xi|0,Ai=Si+na+Ln(Yn,bi)|0,Si=Ri,bi=Fi,Ri=gi,Fi=ki,gi=vi,ki=Oi,Oi=Xi+ta|0,vi=na+oa+Ln(Oi,Xi)|0}this._al=this._al+Oi|0,this._bl=this._bl+ki|0,this._cl=this._cl+Fi|0,this._dl=this._dl+bi|0,this._el=this._el+Yn|0,this._fl=this._fl+In|0,this._gl=this._gl+Hn|0,this._hl=this._hl+yi|0,this._ah=this._ah+vi+Ln(this._al,Oi)|0,this._bh=this._bh+gi+Ln(this._bl,ki)|0,this._ch=this._ch+Ri+Ln(this._cl,Fi)|0,this._dh=this._dh+Si+Ln(this._dl,bi)|0,this._eh=this._eh+Ai+Ln(this._el,Yn)|0,this._fh=this._fh+Ii+Ln(this._fl,In)|0,this._gh=this._gh+Ni+Ln(this._gl,Hn)|0,this._hh=this._hh+Ci+Ln(this._hl,yi)|0},a.prototype._hash=function(){var jn=n.allocUnsafe(64);function hi(vi,gi,Ri){jn.writeInt32BE(vi,Ri),jn.writeInt32BE(gi,Ri+4)}return hi(this._ah,this._al,0),hi(this._bh,this._bl,8),hi(this._ch,this._cl,16),hi(this._dh,this._dl,24),hi(this._eh,this._el,32),hi(this._fh,this._fl,40),hi(this._gh,this._gl,48),hi(this._hh,this._hl,56),jn},sha512$3=a,sha512$3}var sha384$3,hasRequiredSha384$1;function requireSha384$1(){if(hasRequiredSha384$1)return sha384$3;hasRequiredSha384$1=1;var r=requireInherits_browser(),t=requireSha512$1(),n=requireHash$1(),i=requireSafeBuffer$1().Buffer,s=new Array(160);function a(){this.init(),this._w=s,n.call(this,128,112)}return r(a,t),a.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},a.prototype._hash=function(){var l=i.allocUnsafe(48);function v(on,u,h){l.writeInt32BE(on,h),l.writeInt32BE(u,h+4)}return v(this._ah,this._al,0),v(this._bh,this._bl,8),v(this._ch,this._cl,16),v(this._dh,this._dl,24),v(this._eh,this._el,32),v(this._fh,this._fl,40),l},sha384$3=a,sha384$3}var hasRequiredSha_js;function requireSha_js(){return hasRequiredSha_js||(hasRequiredSha_js=1,function(r){r.exports=function(n){var i=n.toLowerCase(),s=r.exports[i];if(!s)throw new Error(i+" is not supported (we accept pull requests)");return new s},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=n;var r=requireEvents().EventEmitter,t=requireInherits_browser();t(n,r),n.Readable=require_stream_readable$1(),n.Writable=require_stream_writable$1(),n.Duplex=require_stream_duplex$1(),n.Transform=require_stream_transform$1(),n.PassThrough=require_stream_passthrough$1(),n.finished=requireEndOfStream(),n.pipeline=requirePipeline(),n.Stream=n;function n(){r.call(this)}return n.prototype.pipe=function(i,s){var a=this;function l(Mn){i.writable&&i.write(Mn)===!1&&a.pause&&a.pause()}a.on("data",l);function v(){a.readable&&a.resume&&a.resume()}i.on("drain",v),!i._isStdio&&(!s||s.end!==!1)&&(a.on("end",u),a.on("close",h));var on=!1;function u(){on||(on=!0,i.end())}function h(){on||(on=!0,typeof i.destroy=="function"&&i.destroy())}function Rn(Mn){if(D(),r.listenerCount(this,"error")===0)throw Mn}a.on("error",Rn),i.on("error",Rn);function D(){a.removeListener("data",l),i.removeListener("drain",v),a.removeListener("end",u),a.removeListener("close",h),a.removeListener("error",Rn),i.removeListener("error",Rn),a.removeListener("end",D),a.removeListener("close",D),i.removeListener("close",D)}return a.on("end",D),a.on("close",D),i.on("close",D),i.emit("pipe",a),i},streamBrowserify}var cipherBase,hasRequiredCipherBase;function requireCipherBase(){if(hasRequiredCipherBase)return cipherBase;hasRequiredCipherBase=1;var r=requireSafeBuffer$1().Buffer,t=requireStreamBrowserify().Transform,n=requireString_decoder().StringDecoder,i=requireInherits_browser();function s(on){t.call(this),this.hashMode=typeof on=="string",this.hashMode?this[on]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}i(s,t);var a=typeof Uint8Array<"u",l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(r.prototype instanceof Uint8Array||r.TYPED_ARRAY_SUPPORT);function v(on,u){if(on instanceof r)return on;if(typeof on=="string")return r.from(on,u);if(l&&ArrayBuffer.isView(on)){if(on.byteLength===0)return r.alloc(0);var h=r.from(on.buffer,on.byteOffset,on.byteLength);if(h.byteLength===on.byteLength)return h}if(a&&on instanceof Uint8Array||r.isBuffer(on)&&on.constructor&&typeof on.constructor.isBuffer=="function"&&on.constructor.isBuffer(on))return r.from(on);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}return s.prototype.update=function(on,u,h){var Rn=v(on,u),D=this._update(Rn);return this.hashMode?this:(h&&(D=this._toString(D,h)),D)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(on,u,h){var Rn;try{this.hashMode?this._update(on):this.push(this._update(on))}catch(D){Rn=D}finally{h(Rn)}},s.prototype._flush=function(on){var u;try{this.push(this.__final())}catch(h){u=h}on(u)},s.prototype._finalOrDigest=function(on){var u=this.__final()||r.alloc(0);return on&&(u=this._toString(u,on,!0)),u},s.prototype._toString=function(on,u,h){if(this._decoder||(this._decoder=new n(u),this._encoding=u),this._encoding!==u)throw new Error("can’t switch encodings");var Rn=this._decoder.write(on);return h&&(Rn+=this._decoder.end()),Rn},cipherBase=s,cipherBase}var browser$a,hasRequiredBrowser$a;function requireBrowser$a(){if(hasRequiredBrowser$a)return browser$a;hasRequiredBrowser$a=1;var r=requireInherits_browser(),t=requireMd5_js(),n=requireRipemd160$2(),i=requireSha_js(),s=requireCipherBase();function a(l){s.call(this,"digest"),this._hash=l}return r(a,s),a.prototype._update=function(l){this._hash.update(l)},a.prototype._final=function(){return this._hash.digest()},browser$a=function(v){return v=v.toLowerCase(),v==="md5"?new t:v==="rmd160"||v==="ripemd160"?new n:new a(i(v))},browser$a}var legacy,hasRequiredLegacy;function requireLegacy(){if(hasRequiredLegacy)return legacy;hasRequiredLegacy=1;var r=requireInherits_browser(),t=requireSafeBuffer$1().Buffer,n=requireCipherBase(),i=t.alloc(128),s=64;function a(l,v){n.call(this,"digest"),typeof v=="string"&&(v=t.from(v)),this._alg=l,this._key=v,v.length>s?v=l(v):v.length<s&&(v=t.concat([v,i],s));for(var on=this._ipad=t.allocUnsafe(s),u=this._opad=t.allocUnsafe(s),h=0;h<s;h++)on[h]=v[h]^54,u[h]=v[h]^92;this._hash=[on]}return r(a,n),a.prototype._update=function(l){this._hash.push(l)},a.prototype._final=function(){var l=this._alg(t.concat(this._hash));return this._alg(t.concat([this._opad,l]))},legacy=a,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(t){return new r().update(t).digest()},md5$3}var browser$9,hasRequiredBrowser$9;function requireBrowser$9(){if(hasRequiredBrowser$9)return browser$9;hasRequiredBrowser$9=1;var r=requireInherits_browser(),t=requireLegacy(),n=requireCipherBase(),i=requireSafeBuffer$1().Buffer,s=requireMd5$2(),a=requireRipemd160$2(),l=requireSha_js(),v=i.alloc(128);function on(u,h){n.call(this,"digest"),typeof h=="string"&&(h=i.from(h));var Rn=u==="sha512"||u==="sha384"?128:64;if(this._alg=u,this._key=h,h.length>Rn){var D=u==="rmd160"?new a:l(u);h=D.update(h).digest()}else h.length<Rn&&(h=i.concat([h,v],Rn));for(var Mn=this._ipad=i.allocUnsafe(Rn),Ln=this._opad=i.allocUnsafe(Rn),jn=0;jn<Rn;jn++)Mn[jn]=h[jn]^54,Ln[jn]=h[jn]^92;this._hash=u==="rmd160"?new a:l(u),this._hash.update(Mn)}return r(on,n),on.prototype._update=function(u){this._hash.update(u)},on.prototype._final=function(){var u=this._hash.digest(),h=this._alg==="rmd160"?new a:l(this._alg);return h.update(this._opad).update(u).digest()},browser$9=function(h,Rn){return h=h.toLowerCase(),h==="rmd160"||h==="ripemd160"?new on("rmd160",Rn):h==="md5"?new t(s,Rn):new on(h,Rn)},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(t,n){if(typeof t!="number")throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if(typeof n!="number")throw new TypeError("Key length not a number");if(n<0||n>r||n!==n)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 t=parseInt(process$1.version.split(".")[0].slice(1),10);r=t>=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,t=new Buffer(r);t.fill(0);var n=8,i=16;function s(a){if(a.length%r!==0){var l=a.length+(r-a.length%r);a=Buffer.concat([a,t],l)}for(var v=new Array(a.length>>>2),on=0,u=0;on<a.length;on+=r,u++)v[u]=a.readInt32LE(on);return v}return makeHash=function(l,v){var on=v(s(l),l.length*n);l=new Buffer(i);for(var u=0;u<on.length;u++)l.writeInt32LE(on[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 t(u,h){u[h>>5]|=128<<h%32,u[(h+64>>>9<<4)+14]=h;for(var Rn=1732584193,D=-271733879,Mn=-1732584194,Ln=271733878,jn=0;jn<u.length;jn+=16){var hi=Rn,vi=D,gi=Mn,Ri=Ln;Rn=i(Rn,D,Mn,Ln,u[jn+0],7,-680876936),Ln=i(Ln,Rn,D,Mn,u[jn+1],12,-389564586),Mn=i(Mn,Ln,Rn,D,u[jn+2],17,606105819),D=i(D,Mn,Ln,Rn,u[jn+3],22,-1044525330),Rn=i(Rn,D,Mn,Ln,u[jn+4],7,-176418897),Ln=i(Ln,Rn,D,Mn,u[jn+5],12,1200080426),Mn=i(Mn,Ln,Rn,D,u[jn+6],17,-1473231341),D=i(D,Mn,Ln,Rn,u[jn+7],22,-45705983),Rn=i(Rn,D,Mn,Ln,u[jn+8],7,1770035416),Ln=i(Ln,Rn,D,Mn,u[jn+9],12,-1958414417),Mn=i(Mn,Ln,Rn,D,u[jn+10],17,-42063),D=i(D,Mn,Ln,Rn,u[jn+11],22,-1990404162),Rn=i(Rn,D,Mn,Ln,u[jn+12],7,1804603682),Ln=i(Ln,Rn,D,Mn,u[jn+13],12,-40341101),Mn=i(Mn,Ln,Rn,D,u[jn+14],17,-1502002290),D=i(D,Mn,Ln,Rn,u[jn+15],22,1236535329),Rn=s(Rn,D,Mn,Ln,u[jn+1],5,-165796510),Ln=s(Ln,Rn,D,Mn,u[jn+6],9,-1069501632),Mn=s(Mn,Ln,Rn,D,u[jn+11],14,643717713),D=s(D,Mn,Ln,Rn,u[jn+0],20,-373897302),Rn=s(Rn,D,Mn,Ln,u[jn+5],5,-701558691),Ln=s(Ln,Rn,D,Mn,u[jn+10],9,38016083),Mn=s(Mn,Ln,Rn,D,u[jn+15],14,-660478335),D=s(D,Mn,Ln,Rn,u[jn+4],20,-405537848),Rn=s(Rn,D,Mn,Ln,u[jn+9],5,568446438),Ln=s(Ln,Rn,D,Mn,u[jn+14],9,-1019803690),Mn=s(Mn,Ln,Rn,D,u[jn+3],14,-187363961),D=s(D,Mn,Ln,Rn,u[jn+8],20,1163531501),Rn=s(Rn,D,Mn,Ln,u[jn+13],5,-1444681467),Ln=s(Ln,Rn,D,Mn,u[jn+2],9,-51403784),Mn=s(Mn,Ln,Rn,D,u[jn+7],14,1735328473),D=s(D,Mn,Ln,Rn,u[jn+12],20,-1926607734),Rn=a(Rn,D,Mn,Ln,u[jn+5],4,-378558),Ln=a(Ln,Rn,D,Mn,u[jn+8],11,-2022574463),Mn=a(Mn,Ln,Rn,D,u[jn+11],16,1839030562),D=a(D,Mn,Ln,Rn,u[jn+14],23,-35309556),Rn=a(Rn,D,Mn,Ln,u[jn+1],4,-1530992060),Ln=a(Ln,Rn,D,Mn,u[jn+4],11,1272893353),Mn=a(Mn,Ln,Rn,D,u[jn+7],16,-155497632),D=a(D,Mn,Ln,Rn,u[jn+10],23,-1094730640),Rn=a(Rn,D,Mn,Ln,u[jn+13],4,681279174),Ln=a(Ln,Rn,D,Mn,u[jn+0],11,-358537222),Mn=a(Mn,Ln,Rn,D,u[jn+3],16,-722521979),D=a(D,Mn,Ln,Rn,u[jn+6],23,76029189),Rn=a(Rn,D,Mn,Ln,u[jn+9],4,-640364487),Ln=a(Ln,Rn,D,Mn,u[jn+12],11,-421815835),Mn=a(Mn,Ln,Rn,D,u[jn+15],16,530742520),D=a(D,Mn,Ln,Rn,u[jn+2],23,-995338651),Rn=l(Rn,D,Mn,Ln,u[jn+0],6,-198630844),Ln=l(Ln,Rn,D,Mn,u[jn+7],10,1126891415),Mn=l(Mn,Ln,Rn,D,u[jn+14],15,-1416354905),D=l(D,Mn,Ln,Rn,u[jn+5],21,-57434055),Rn=l(Rn,D,Mn,Ln,u[jn+12],6,1700485571),Ln=l(Ln,Rn,D,Mn,u[jn+3],10,-1894986606),Mn=l(Mn,Ln,Rn,D,u[jn+10],15,-1051523),D=l(D,Mn,Ln,Rn,u[jn+1],21,-2054922799),Rn=l(Rn,D,Mn,Ln,u[jn+8],6,1873313359),Ln=l(Ln,Rn,D,Mn,u[jn+15],10,-30611744),Mn=l(Mn,Ln,Rn,D,u[jn+6],15,-1560198380),D=l(D,Mn,Ln,Rn,u[jn+13],21,1309151649),Rn=l(Rn,D,Mn,Ln,u[jn+4],6,-145523070),Ln=l(Ln,Rn,D,Mn,u[jn+11],10,-1120210379),Mn=l(Mn,Ln,Rn,D,u[jn+2],15,718787259),D=l(D,Mn,Ln,Rn,u[jn+9],21,-343485551),Rn=v(Rn,hi),D=v(D,vi),Mn=v(Mn,gi),Ln=v(Ln,Ri)}return[Rn,D,Mn,Ln]}function n(u,h,Rn,D,Mn,Ln){return v(on(v(v(h,u),v(D,Ln)),Mn),Rn)}function i(u,h,Rn,D,Mn,Ln,jn){return n(h&Rn|~h&D,u,h,Mn,Ln,jn)}function s(u,h,Rn,D,Mn,Ln,jn){return n(h&D|Rn&~D,u,h,Mn,Ln,jn)}function a(u,h,Rn,D,Mn,Ln,jn){return n(h^Rn^D,u,h,Mn,Ln,jn)}function l(u,h,Rn,D,Mn,Ln,jn){return n(Rn^(h|~D),u,h,Mn,Ln,jn)}function v(u,h){var Rn=(u&65535)+(h&65535),D=(u>>16)+(h>>16)+(Rn>>16);return D<<16|Rn&65535}function on(u,h){return u<<h|u>>>32-h}return md5$2=function(h){return r(h,t)},md5$2}var hashBase,hasRequiredHashBase;function requireHashBase(){if(hasRequiredHashBase)return hashBase;hasRequiredHashBase=1;var r=requireStreamBrowserify().Transform,t=requireInherits_browser();function n(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 t(n,r),n.prototype._transform=function(i,s,a){var l=null;try{s!=="buffer"&&(i=new Buffer(i,s)),this.update(i)}catch(v){l=v}a(l)},n.prototype._flush=function(i){var s=null;try{this.push(this._digest())}catch(a){s=a}i(s)},n.prototype.update=function(i,s){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,s||"binary"));for(var a=this._block,l=0;this._blockOffset+i.length-l>=this._blockSize;){for(var v=this._blockOffset;v<this._blockSize;)a[v++]=i[l++];this._update(),this._blockOffset=0}for(;l<i.length;)a[this._blockOffset++]=i[l++];for(var on=0,u=i.length*8;u>0;++on)this._length[on]+=u,u=this._length[on]/4294967296|0,u>0&&(this._length[on]-=4294967296*u);return this},n.prototype._update=function(i){throw new Error("_update is not implemented")},n.prototype.digest=function(i){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var s=this._digest();return i!==void 0&&(s=s.toString(i)),s},n.prototype._digest=function(){throw new Error("_digest is not implemented")},hashBase=n,hashBase}var ripemd160$2,hasRequiredRipemd160$1;function requireRipemd160$1(){if(hasRequiredRipemd160$1)return ripemd160$2;hasRequiredRipemd160$1=1;var r=requireInherits_browser(),t=requireHashBase();function n(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}r(n,t),n.prototype._update=function(){for(var u=new Array(16),h=0;h<16;++h)u[h]=this._block.readInt32LE(h*4);var Rn=this._a,D=this._b,Mn=this._c,Ln=this._d,jn=this._e;Rn=s(Rn,D,Mn,Ln,jn,u[0],0,11),Mn=i(Mn,10),jn=s(jn,Rn,D,Mn,Ln,u[1],0,14),D=i(D,10),Ln=s(Ln,jn,Rn,D,Mn,u[2],0,15),Rn=i(Rn,10),Mn=s(Mn,Ln,jn,Rn,D,u[3],0,12),jn=i(jn,10),D=s(D,Mn,Ln,jn,Rn,u[4],0,5),Ln=i(Ln,10),Rn=s(Rn,D,Mn,Ln,jn,u[5],0,8),Mn=i(Mn,10),jn=s(jn,Rn,D,Mn,Ln,u[6],0,7),D=i(D,10),Ln=s(Ln,jn,Rn,D,Mn,u[7],0,9),Rn=i(Rn,10),Mn=s(Mn,Ln,jn,Rn,D,u[8],0,11),jn=i(jn,10),D=s(D,Mn,Ln,jn,Rn,u[9],0,13),Ln=i(Ln,10),Rn=s(Rn,D,Mn,Ln,jn,u[10],0,14),Mn=i(Mn,10),jn=s(jn,Rn,D,Mn,Ln,u[11],0,15),D=i(D,10),Ln=s(Ln,jn,Rn,D,Mn,u[12],0,6),Rn=i(Rn,10),Mn=s(Mn,Ln,jn,Rn,D,u[13],0,7),jn=i(jn,10),D=s(D,Mn,Ln,jn,Rn,u[14],0,9),Ln=i(Ln,10),Rn=s(Rn,D,Mn,Ln,jn,u[15],0,8),Mn=i(Mn,10),jn=a(jn,Rn,D,Mn,Ln,u[7],1518500249,7),D=i(D,10),Ln=a(Ln,jn,Rn,D,Mn,u[4],1518500249,6),Rn=i(Rn,10),Mn=a(Mn,Ln,jn,Rn,D,u[13],1518500249,8),jn=i(jn,10),D=a(D,Mn,Ln,jn,Rn,u[1],1518500249,13),Ln=i(Ln,10),Rn=a(Rn,D,Mn,Ln,jn,u[10],1518500249,11),Mn=i(Mn,10),jn=a(jn,Rn,D,Mn,Ln,u[6],1518500249,9),D=i(D,10),Ln=a(Ln,jn,Rn,D,Mn,u[15],1518500249,7),Rn=i(Rn,10),Mn=a(Mn,Ln,jn,Rn,D,u[3],1518500249,15),jn=i(jn,10),D=a(D,Mn,Ln,jn,Rn,u[12],1518500249,7),Ln=i(Ln,10),Rn=a(Rn,D,Mn,Ln,jn,u[0],1518500249,12),Mn=i(Mn,10),jn=a(jn,Rn,D,Mn,Ln,u[9],1518500249,15),D=i(D,10),Ln=a(Ln,jn,Rn,D,Mn,u[5],1518500249,9),Rn=i(Rn,10),Mn=a(Mn,Ln,jn,Rn,D,u[2],1518500249,11),jn=i(jn,10),D=a(D,Mn,Ln,jn,Rn,u[14],1518500249,7),Ln=i(Ln,10),Rn=a(Rn,D,Mn,Ln,jn,u[11],1518500249,13),Mn=i(Mn,10),jn=a(jn,Rn,D,Mn,Ln,u[8],1518500249,12),D=i(D,10),Ln=l(Ln,jn,Rn,D,Mn,u[3],1859775393,11),Rn=i(Rn,10),Mn=l(Mn,Ln,jn,Rn,D,u[10],1859775393,13),jn=i(jn,10),D=l(D,Mn,Ln,jn,Rn,u[14],1859775393,6),Ln=i(Ln,10),Rn=l(Rn,D,Mn,Ln,jn,u[4],1859775393,7),Mn=i(Mn,10),jn=l(jn,Rn,D,Mn,Ln,u[9],1859775393,14),D=i(D,10),Ln=l(Ln,jn,Rn,D,Mn,u[15],1859775393,9),Rn=i(Rn,10),Mn=l(Mn,Ln,jn,Rn,D,u[8],1859775393,13),jn=i(jn,10),D=l(D,Mn,Ln,jn,Rn,u[1],1859775393,15),Ln=i(Ln,10),Rn=l(Rn,D,Mn,Ln,jn,u[2],1859775393,14),Mn=i(Mn,10),jn=l(jn,Rn,D,Mn,Ln,u[7],1859775393,8),D=i(D,10),Ln=l(Ln,jn,Rn,D,Mn,u[0],1859775393,13),Rn=i(Rn,10),Mn=l(Mn,Ln,jn,Rn,D,u[6],1859775393,6),jn=i(jn,10),D=l(D,Mn,Ln,jn,Rn,u[13],1859775393,5),Ln=i(Ln,10),Rn=l(Rn,D,Mn,Ln,jn,u[11],1859775393,12),Mn=i(Mn,10),jn=l(jn,Rn,D,Mn,Ln,u[5],1859775393,7),D=i(D,10),Ln=l(Ln,jn,Rn,D,Mn,u[12],1859775393,5),Rn=i(Rn,10),Mn=v(Mn,Ln,jn,Rn,D,u[1],2400959708,11),jn=i(jn,10),D=v(D,Mn,Ln,jn,Rn,u[9],2400959708,12),Ln=i(Ln,10),Rn=v(Rn,D,Mn,Ln,jn,u[11],2400959708,14),Mn=i(Mn,10),jn=v(jn,Rn,D,Mn,Ln,u[10],2400959708,15),D=i(D,10),Ln=v(Ln,jn,Rn,D,Mn,u[0],2400959708,14),Rn=i(Rn,10),Mn=v(Mn,Ln,jn,Rn,D,u[8],2400959708,15),jn=i(jn,10),D=v(D,Mn,Ln,jn,Rn,u[12],2400959708,9),Ln=i(Ln,10),Rn=v(Rn,D,Mn,Ln,jn,u[4],2400959708,8),Mn=i(Mn,10),jn=v(jn,Rn,D,Mn,Ln,u[13],2400959708,9),D=i(D,10),Ln=v(Ln,jn,Rn,D,Mn,u[3],2400959708,14),Rn=i(Rn,10),Mn=v(Mn,Ln,jn,Rn,D,u[7],2400959708,5),jn=i(jn,10),D=v(D,Mn,Ln,jn,Rn,u[15],2400959708,6),Ln=i(Ln,10),Rn=v(Rn,D,Mn,Ln,jn,u[14],2400959708,8),Mn=i(Mn,10),jn=v(jn,Rn,D,Mn,Ln,u[5],2400959708,6),D=i(D,10),Ln=v(Ln,jn,Rn,D,Mn,u[6],2400959708,5),Rn=i(Rn,10),Mn=v(Mn,Ln,jn,Rn,D,u[2],2400959708,12),jn=i(jn,10),D=on(D,Mn,Ln,jn,Rn,u[4],2840853838,9),Ln=i(Ln,10),Rn=on(Rn,D,Mn,Ln,jn,u[0],2840853838,15),Mn=i(Mn,10),jn=on(jn,Rn,D,Mn,Ln,u[5],2840853838,5),D=i(D,10),Ln=on(Ln,jn,Rn,D,Mn,u[9],2840853838,11),Rn=i(Rn,10),Mn=on(Mn,Ln,jn,Rn,D,u[7],2840853838,6),jn=i(jn,10),D=on(D,Mn,Ln,jn,Rn,u[12],2840853838,8),Ln=i(Ln,10),Rn=on(Rn,D,Mn,Ln,jn,u[2],2840853838,13),Mn=i(Mn,10),jn=on(jn,Rn,D,Mn,Ln,u[10],2840853838,12),D=i(D,10),Ln=on(Ln,jn,Rn,D,Mn,u[14],2840853838,5),Rn=i(Rn,10),Mn=on(Mn,Ln,jn,Rn,D,u[1],2840853838,12),jn=i(jn,10),D=on(D,Mn,Ln,jn,Rn,u[3],2840853838,13),Ln=i(Ln,10),Rn=on(Rn,D,Mn,Ln,jn,u[8],2840853838,14),Mn=i(Mn,10),jn=on(jn,Rn,D,Mn,Ln,u[11],2840853838,11),D=i(D,10),Ln=on(Ln,jn,Rn,D,Mn,u[6],2840853838,8),Rn=i(Rn,10),Mn=on(Mn,Ln,jn,Rn,D,u[15],2840853838,5),jn=i(jn,10),D=on(D,Mn,Ln,jn,Rn,u[13],2840853838,6),Ln=i(Ln,10);var hi=this._a,vi=this._b,gi=this._c,Ri=this._d,Si=this._e;hi=on(hi,vi,gi,Ri,Si,u[5],1352829926,8),gi=i(gi,10),Si=on(Si,hi,vi,gi,Ri,u[14],1352829926,9),vi=i(vi,10),Ri=on(Ri,Si,hi,vi,gi,u[7],1352829926,9),hi=i(hi,10),gi=on(gi,Ri,Si,hi,vi,u[0],1352829926,11),Si=i(Si,10),vi=on(vi,gi,Ri,Si,hi,u[9],1352829926,13),Ri=i(Ri,10),hi=on(hi,vi,gi,Ri,Si,u[2],1352829926,15),gi=i(gi,10),Si=on(Si,hi,vi,gi,Ri,u[11],1352829926,15),vi=i(vi,10),Ri=on(Ri,Si,hi,vi,gi,u[4],1352829926,5),hi=i(hi,10),gi=on(gi,Ri,Si,hi,vi,u[13],1352829926,7),Si=i(Si,10),vi=on(vi,gi,Ri,Si,hi,u[6],1352829926,7),Ri=i(Ri,10),hi=on(hi,vi,gi,Ri,Si,u[15],1352829926,8),gi=i(gi,10),Si=on(Si,hi,vi,gi,Ri,u[8],1352829926,11),vi=i(vi,10),Ri=on(Ri,Si,hi,vi,gi,u[1],1352829926,14),hi=i(hi,10),gi=on(gi,Ri,Si,hi,vi,u[10],1352829926,14),Si=i(Si,10),vi=on(vi,gi,Ri,Si,hi,u[3],1352829926,12),Ri=i(Ri,10),hi=on(hi,vi,gi,Ri,Si,u[12],1352829926,6),gi=i(gi,10),Si=v(Si,hi,vi,gi,Ri,u[6],1548603684,9),vi=i(vi,10),Ri=v(Ri,Si,hi,vi,gi,u[11],1548603684,13),hi=i(hi,10),gi=v(gi,Ri,Si,hi,vi,u[3],1548603684,15),Si=i(Si,10),vi=v(vi,gi,Ri,Si,hi,u[7],1548603684,7),Ri=i(Ri,10),hi=v(hi,vi,gi,Ri,Si,u[0],1548603684,12),gi=i(gi,10),Si=v(Si,hi,vi,gi,Ri,u[13],1548603684,8),vi=i(vi,10),Ri=v(Ri,Si,hi,vi,gi,u[5],1548603684,9),hi=i(hi,10),gi=v(gi,Ri,Si,hi,vi,u[10],1548603684,11),Si=i(Si,10),vi=v(vi,gi,Ri,Si,hi,u[14],1548603684,7),Ri=i(Ri,10),hi=v(hi,vi,gi,Ri,Si,u[15],1548603684,7),gi=i(gi,10),Si=v(Si,hi,vi,gi,Ri,u[8],1548603684,12),vi=i(vi,10),Ri=v(Ri,Si,hi,vi,gi,u[12],1548603684,7),hi=i(hi,10),gi=v(gi,Ri,Si,hi,vi,u[4],1548603684,6),Si=i(Si,10),vi=v(vi,gi,Ri,Si,hi,u[9],1548603684,15),Ri=i(Ri,10),hi=v(hi,vi,gi,Ri,Si,u[1],1548603684,13),gi=i(gi,10),Si=v(Si,hi,vi,gi,Ri,u[2],1548603684,11),vi=i(vi,10),Ri=l(Ri,Si,hi,vi,gi,u[15],1836072691,9),hi=i(hi,10),gi=l(gi,Ri,Si,hi,vi,u[5],1836072691,7),Si=i(Si,10),vi=l(vi,gi,Ri,Si,hi,u[1],1836072691,15),Ri=i(Ri,10),hi=l(hi,vi,gi,Ri,Si,u[3],1836072691,11),gi=i(gi,10),Si=l(Si,hi,vi,gi,Ri,u[7],1836072691,8),vi=i(vi,10),Ri=l(Ri,Si,hi,vi,gi,u[14],1836072691,6),hi=i(hi,10),gi=l(gi,Ri,Si,hi,vi,u[6],1836072691,6),Si=i(Si,10),vi=l(vi,gi,Ri,Si,hi,u[9],1836072691,14),Ri=i(Ri,10),hi=l(hi,vi,gi,Ri,Si,u[11],1836072691,12),gi=i(gi,10),Si=l(Si,hi,vi,gi,Ri,u[8],1836072691,13),vi=i(vi,10),Ri=l(Ri,Si,hi,vi,gi,u[12],1836072691,5),hi=i(hi,10),gi=l(gi,Ri,Si,hi,vi,u[2],1836072691,14),Si=i(Si,10),vi=l(vi,gi,Ri,Si,hi,u[10],1836072691,13),Ri=i(Ri,10),hi=l(hi,vi,gi,Ri,Si,u[0],1836072691,13),gi=i(gi,10),Si=l(Si,hi,vi,gi,Ri,u[4],1836072691,7),vi=i(vi,10),Ri=l(Ri,Si,hi,vi,gi,u[13],1836072691,5),hi=i(hi,10),gi=a(gi,Ri,Si,hi,vi,u[8],2053994217,15),Si=i(Si,10),vi=a(vi,gi,Ri,Si,hi,u[6],2053994217,5),Ri=i(Ri,10),hi=a(hi,vi,gi,Ri,Si,u[4],2053994217,8),gi=i(gi,10),Si=a(Si,hi,vi,gi,Ri,u[1],2053994217,11),vi=i(vi,10),Ri=a(Ri,Si,hi,vi,gi,u[3],2053994217,14),hi=i(hi,10),gi=a(gi,Ri,Si,hi,vi,u[11],2053994217,14),Si=i(Si,10),vi=a(vi,gi,Ri,Si,hi,u[15],2053994217,6),Ri=i(Ri,10),hi=a(hi,vi,gi,Ri,Si,u[0],2053994217,14),gi=i(gi,10),Si=a(Si,hi,vi,gi,Ri,u[5],2053994217,6),vi=i(vi,10),Ri=a(Ri,Si,hi,vi,gi,u[12],2053994217,9),hi=i(hi,10),gi=a(gi,Ri,Si,hi,vi,u[2],2053994217,12),Si=i(Si,10),vi=a(vi,gi,Ri,Si,hi,u[13],2053994217,9),Ri=i(Ri,10),hi=a(hi,vi,gi,Ri,Si,u[9],2053994217,12),gi=i(gi,10),Si=a(Si,hi,vi,gi,Ri,u[7],2053994217,5),vi=i(vi,10),Ri=a(Ri,Si,hi,vi,gi,u[10],2053994217,15),hi=i(hi,10),gi=a(gi,Ri,Si,hi,vi,u[14],2053994217,8),Si=i(Si,10),vi=s(vi,gi,Ri,Si,hi,u[12],0,8),Ri=i(Ri,10),hi=s(hi,vi,gi,Ri,Si,u[15],0,5),gi=i(gi,10),Si=s(Si,hi,vi,gi,Ri,u[10],0,12),vi=i(vi,10),Ri=s(Ri,Si,hi,vi,gi,u[4],0,9),hi=i(hi,10),gi=s(gi,Ri,Si,hi,vi,u[1],0,12),Si=i(Si,10),vi=s(vi,gi,Ri,Si,hi,u[5],0,5),Ri=i(Ri,10),hi=s(hi,vi,gi,Ri,Si,u[8],0,14),gi=i(gi,10),Si=s(Si,hi,vi,gi,Ri,u[7],0,6),vi=i(vi,10),Ri=s(Ri,Si,hi,vi,gi,u[6],0,8),hi=i(hi,10),gi=s(gi,Ri,Si,hi,vi,u[2],0,13),Si=i(Si,10),vi=s(vi,gi,Ri,Si,hi,u[13],0,6),Ri=i(Ri,10),hi=s(hi,vi,gi,Ri,Si,u[14],0,5),gi=i(gi,10),Si=s(Si,hi,vi,gi,Ri,u[0],0,15),vi=i(vi,10),Ri=s(Ri,Si,hi,vi,gi,u[3],0,13),hi=i(hi,10),gi=s(gi,Ri,Si,hi,vi,u[9],0,11),Si=i(Si,10),vi=s(vi,gi,Ri,Si,hi,u[11],0,11),Ri=i(Ri,10);var Ai=this._b+Mn+Ri|0;this._b=this._c+Ln+Si|0,this._c=this._d+jn+hi|0,this._d=this._e+Rn+vi|0,this._e=this._a+D+gi|0,this._a=Ai},n.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,h){return u<<h|u>>>32-h}function s(u,h,Rn,D,Mn,Ln,jn,hi){return i(u+(h^Rn^D)+Ln+jn|0,hi)+Mn|0}function a(u,h,Rn,D,Mn,Ln,jn,hi){return i(u+(h&Rn|~h&D)+Ln+jn|0,hi)+Mn|0}function l(u,h,Rn,D,Mn,Ln,jn,hi){return i(u+((h|~Rn)^D)+Ln+jn|0,hi)+Mn|0}function v(u,h,Rn,D,Mn,Ln,jn,hi){return i(u+(h&D|Rn&~D)+Ln+jn|0,hi)+Mn|0}function on(u,h,Rn,D,Mn,Ln,jn,hi){return i(u+(h^(Rn|~D))+Ln+jn|0,hi)+Mn|0}return ripemd160$2=n,ripemd160$2}var toBuffer_1,hasRequiredToBuffer;function requireToBuffer(){if(hasRequiredToBuffer)return toBuffer_1;hasRequiredToBuffer=1;var r=requireSafeBuffer$1().Buffer,t=requireToBuffer$1(),n=typeof Uint8Array<"u",i=n&&typeof ArrayBuffer<"u",s=i&&ArrayBuffer.isView;return toBuffer_1=function(a,l,v){if(typeof a=="string"||r.isBuffer(a)||n&&a instanceof Uint8Array||s&&s(a))return t(a,l);throw new TypeError(v+" 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(),t=requireRipemd160$1(),n=requireSha_js(),i=requireSafeBuffer$1().Buffer,s=requirePrecondition(),a=requireDefaultEncoding(),l=requireToBuffer(),v=i.alloc(128),on={__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 h(Ln){return new t().update(Ln).digest()}function Rn(Ln){function jn(hi){return n(Ln).update(hi).digest()}return Ln==="rmd160"||Ln==="ripemd160"?h:Ln==="md5"?r:jn}function D(Ln,jn,hi){var vi=Rn(Ln),gi=Ln==="sha512"||Ln==="sha384"?128:64;jn.length>gi?jn=vi(jn):jn.length<gi&&(jn=i.concat([jn,v],gi));for(var Ri=i.allocUnsafe(gi+on[Ln]),Si=i.allocUnsafe(gi+on[Ln]),Ai=0;Ai<gi;Ai++)Ri[Ai]=jn[Ai]^54,Si[Ai]=jn[Ai]^92;var Ii=i.allocUnsafe(gi+hi+4);Ri.copy(Ii,0,0,gi),this.ipad1=Ii,this.ipad2=Ri,this.opad=Si,this.alg=Ln,this.blocksize=gi,this.hash=vi,this.size=on[Ln]}D.prototype.run=function(Ln,jn){Ln.copy(jn,this.blocksize);var hi=this.hash(jn);return hi.copy(this.opad,this.blocksize),this.hash(this.opad)};function Mn(Ln,jn,hi,vi,gi){s(hi,vi),Ln=l(Ln,a,"Password"),jn=l(jn,a,"Salt");var Ri=(gi||"sha1").toLowerCase(),Si=u[Ri]||Ri,Ai=on[Si];if(typeof Ai!="number"||!Ai)throw new TypeError("Digest algorithm not supported: "+gi);var Ii=new D(Si,Ln,jn.length),Ni=i.allocUnsafe(vi),Ci=i.allocUnsafe(jn.length+4);jn.copy(Ci,0,0,jn.length);for(var Oi=0,ki=Ai,Fi=Math.ceil(vi/ki),bi=1;bi<=Fi;bi++){Ci.writeUInt32BE(bi,jn.length);for(var Yn=Ii.run(Ci,Ii.ipad1),In=Yn,Hn=1;Hn<hi;Hn++){In=Ii.run(In,Ii.ipad2);for(var yi=0;yi<ki;yi++)Yn[yi]^=In[yi]}Yn.copy(Ni,Oi),Oi+=ki}return Ni}return syncBrowser=Mn,syncBrowser}var async,hasRequiredAsync;function requireAsync(){if(hasRequiredAsync)return async;hasRequiredAsync=1;var r=requireSafeBuffer$1().Buffer,t=requirePrecondition(),n=requireDefaultEncoding(),i=requireSyncBrowser(),s=requireToBuffer(),a,l=commonjsGlobal.crypto&&commonjsGlobal.crypto.subtle,v={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"},on=[],u;function h(){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 Rn(Ln,jn,hi,vi,gi){return l.importKey("raw",Ln,{name:"PBKDF2"},!1,["deriveBits"]).then(function(Ri){return l.deriveBits({name:"PBKDF2",salt:jn,iterations:hi,hash:{name:gi}},Ri,vi<<3)}).then(function(Ri){return r.from(Ri)})}function D(Ln){if(commonjsGlobal.process&&!commonjsGlobal.process.browser||!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(on[Ln]!==void 0)return on[Ln];a=a||r.alloc(8);var jn=Rn(a,a,10,128,Ln).then(function(){return!0},function(){return!1});return on[Ln]=jn,jn}function Mn(Ln,jn){Ln.then(function(hi){h()(function(){jn(null,hi)})},function(hi){h()(function(){jn(hi)})})}return async=function(Ln,jn,hi,vi,gi,Ri){typeof gi=="function"&&(Ri=gi,gi=void 0),gi=gi||"sha1";var Si=v[gi.toLowerCase()];if(!Si||typeof commonjsGlobal.Promise!="function"){h()(function(){var Ai;try{Ai=i(Ln,jn,hi,vi,gi)}catch(Ii){Ri(Ii);return}Ri(null,Ai)});return}if(t(hi,vi),Ln=s(Ln,n,"Password"),jn=s(jn,n,"Salt"),typeof Ri!="function")throw new Error("No callback provided to pbkdf2");Mn(D(Si).then(function(Ai){return Ai?Rn(Ln,jn,hi,vi,Si):i(Ln,jn,hi,vi,gi)}),Ri)},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(s,a){var l=s[0+a]<<24|s[1+a]<<16|s[2+a]<<8|s[3+a];return l>>>0},utils$3.writeUInt32BE=function(s,a,l){s[0+l]=a>>>24,s[1+l]=a>>>16&255,s[2+l]=a>>>8&255,s[3+l]=a&255},utils$3.ip=function(s,a,l,v){for(var on=0,u=0,h=6;h>=0;h-=2){for(var Rn=0;Rn<=24;Rn+=8)on<<=1,on|=a>>>Rn+h&1;for(var Rn=0;Rn<=24;Rn+=8)on<<=1,on|=s>>>Rn+h&1}for(var h=6;h>=0;h-=2){for(var Rn=1;Rn<=25;Rn+=8)u<<=1,u|=a>>>Rn+h&1;for(var Rn=1;Rn<=25;Rn+=8)u<<=1,u|=s>>>Rn+h&1}l[v+0]=on>>>0,l[v+1]=u>>>0},utils$3.rip=function(s,a,l,v){for(var on=0,u=0,h=0;h<4;h++)for(var Rn=24;Rn>=0;Rn-=8)on<<=1,on|=a>>>Rn+h&1,on<<=1,on|=s>>>Rn+h&1;for(var h=4;h<8;h++)for(var Rn=24;Rn>=0;Rn-=8)u<<=1,u|=a>>>Rn+h&1,u<<=1,u|=s>>>Rn+h&1;l[v+0]=on>>>0,l[v+1]=u>>>0},utils$3.pc1=function(s,a,l,v){for(var on=0,u=0,h=7;h>=5;h--){for(var Rn=0;Rn<=24;Rn+=8)on<<=1,on|=a>>Rn+h&1;for(var Rn=0;Rn<=24;Rn+=8)on<<=1,on|=s>>Rn+h&1}for(var Rn=0;Rn<=24;Rn+=8)on<<=1,on|=a>>Rn+h&1;for(var h=1;h<=3;h++){for(var Rn=0;Rn<=24;Rn+=8)u<<=1,u|=a>>Rn+h&1;for(var Rn=0;Rn<=24;Rn+=8)u<<=1,u|=s>>Rn+h&1}for(var Rn=0;Rn<=24;Rn+=8)u<<=1,u|=s>>Rn+h&1;l[v+0]=on>>>0,l[v+1]=u>>>0},utils$3.r28shl=function(s,a){return s<<a&268435455|s>>>28-a};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(s,a,l,v){for(var on=0,u=0,h=r.length>>>1,Rn=0;Rn<h;Rn++)on<<=1,on|=s>>>r[Rn]&1;for(var Rn=h;Rn<r.length;Rn++)u<<=1,u|=a>>>r[Rn]&1;l[v+0]=on>>>0,l[v+1]=u>>>0},utils$3.expand=function(s,a,l){var v=0,on=0;v=(s&1)<<5|s>>>27;for(var u=23;u>=15;u-=4)v<<=6,v|=s>>>u&63;for(var u=11;u>=3;u-=4)on|=s>>>u&63,on<<=6;on|=(s&31)<<1|s>>>31,a[l+0]=v>>>0,a[l+1]=on>>>0};var t=[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(s,a){for(var l=0,v=0;v<4;v++){var on=s>>>18-v*6&63,u=t[v*64+on];l<<=4,l|=u}for(var v=0;v<4;v++){var on=a>>>18-v*6&63,u=t[256+v*64+on];l<<=4,l|=u}return l>>>0};var n=[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(s){for(var a=0,l=0;l<n.length;l++)a<<=1,a|=s>>>n[l]&1;return a>>>0},utils$3.padSplit=function(s,a,l){for(var v=s.toString(2);v.length<a;)v="0"+v;for(var on=[],u=0;u<a;u+=l)on.push(v.slice(u,u+l));return on.join(" ")},utils$3}var minimalisticAssert,hasRequiredMinimalisticAssert;function requireMinimalisticAssert(){if(hasRequiredMinimalisticAssert)return minimalisticAssert;hasRequiredMinimalisticAssert=1,minimalisticAssert=r;function r(t,n){if(!t)throw new Error(n||"Assertion failed")}return r.equal=function(n,i,s){if(n!=i)throw new Error(s||"Assertion failed: "+n+" != "+i)},minimalisticAssert}var cipher,hasRequiredCipher;function requireCipher(){if(hasRequiredCipher)return cipher;hasRequiredCipher=1;var r=requireMinimalisticAssert();function t(n){this.options=n,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=n.padding!==!1}return cipher=t,t.prototype._init=function(){},t.prototype.update=function(i){return i.length===0?[]:this.type==="decrypt"?this._updateDecrypt(i):this._updateEncrypt(i)},t.prototype._buffer=function(i,s){for(var a=Math.min(this.buffer.length-this.bufferOff,i.length-s),l=0;l<a;l++)this.buffer[this.bufferOff+l]=i[s+l];return this.bufferOff+=a,a},t.prototype._flushBuffer=function(i,s){return this._update(this.buffer,0,i,s),this.bufferOff=0,this.blockSize},t.prototype._updateEncrypt=function(i){var s=0,a=0,l=(this.bufferOff+i.length)/this.blockSize|0,v=new Array(l*this.blockSize);this.bufferOff!==0&&(s+=this._buffer(i,s),this.bufferOff===this.buffer.length&&(a+=this._flushBuffer(v,a)));for(var on=i.length-(i.length-s)%this.blockSize;s<on;s+=this.blockSize)this._update(i,s,v,a),a+=this.blockSize;for(;s<i.length;s++,this.bufferOff++)this.buffer[this.bufferOff]=i[s];return v},t.prototype._updateDecrypt=function(i){for(var s=0,a=0,l=Math.ceil((this.bufferOff+i.length)/this.blockSize)-1,v=new Array(l*this.blockSize);l>0;l--)s+=this._buffer(i,s),a+=this._flushBuffer(v,a);return s+=this._buffer(i,s),v},t.prototype.final=function(i){var s;i&&(s=this.update(i));var a;return this.type==="encrypt"?a=this._finalEncrypt():a=this._finalDecrypt(),s?s.concat(a):a},t.prototype._pad=function(i,s){if(s===0)return!1;for(;s<i.length;)i[s++]=0;return!0},t.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},t.prototype._unpad=function(i){return i},t.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(),t=requireInherits_browser(),n=requireUtils$3(),i=requireCipher();function s(){this.tmp=new Array(2),this.keys=null}function a(v){i.call(this,v);var on=new s;this._desState=on,this.deriveKeys(on,v.key)}t(a,i),des=a,a.create=function(on){return new a(on)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];return a.prototype.deriveKeys=function(on,u){on.keys=new Array(32),r.equal(u.length,this.blockSize,"Invalid key length");var h=n.readUInt32BE(u,0),Rn=n.readUInt32BE(u,4);n.pc1(h,Rn,on.tmp,0),h=on.tmp[0],Rn=on.tmp[1];for(var D=0;D<on.keys.length;D+=2){var Mn=l[D>>>1];h=n.r28shl(h,Mn),Rn=n.r28shl(Rn,Mn),n.pc2(h,Rn,on.keys,D)}},a.prototype._update=function(on,u,h,Rn){var D=this._desState,Mn=n.readUInt32BE(on,u),Ln=n.readUInt32BE(on,u+4);n.ip(Mn,Ln,D.tmp,0),Mn=D.tmp[0],Ln=D.tmp[1],this.type==="encrypt"?this._encrypt(D,Mn,Ln,D.tmp,0):this._decrypt(D,Mn,Ln,D.tmp,0),Mn=D.tmp[0],Ln=D.tmp[1],n.writeUInt32BE(h,Mn,Rn),n.writeUInt32BE(h,Ln,Rn+4)},a.prototype._pad=function(on,u){if(this.padding===!1)return!1;for(var h=on.length-u,Rn=u;Rn<on.length;Rn++)on[Rn]=h;return!0},a.prototype._unpad=function(on){if(this.padding===!1)return on;for(var u=on[on.length-1],h=on.length-u;h<on.length;h++)r.equal(on[h],u);return on.slice(0,on.length-u)},a.prototype._encrypt=function(on,u,h,Rn,D){for(var Mn=u,Ln=h,jn=0;jn<on.keys.length;jn+=2){var hi=on.keys[jn],vi=on.keys[jn+1];n.expand(Ln,on.tmp,0),hi^=on.tmp[0],vi^=on.tmp[1];var gi=n.substitute(hi,vi),Ri=n.permute(gi),Si=Ln;Ln=(Mn^Ri)>>>0,Mn=Si}n.rip(Ln,Mn,Rn,D)},a.prototype._decrypt=function(on,u,h,Rn,D){for(var Mn=h,Ln=u,jn=on.keys.length-2;jn>=0;jn-=2){var hi=on.keys[jn],vi=on.keys[jn+1];n.expand(Mn,on.tmp,0),hi^=on.tmp[0],vi^=on.tmp[1];var gi=n.substitute(hi,vi),Ri=n.permute(gi),Si=Mn;Mn=(Ln^Ri)>>>0,Ln=Si}n.rip(Mn,Ln,Rn,D)},des}var cbc$1={},hasRequiredCbc$1;function requireCbc$1(){if(hasRequiredCbc$1)return cbc$1;hasRequiredCbc$1=1;var r=requireMinimalisticAssert(),t=requireInherits_browser(),n={};function i(a){r.equal(a.length,8,"Invalid IV length"),this.iv=new Array(8);for(var l=0;l<this.iv.length;l++)this.iv[l]=a[l]}function s(a){function l(h){a.call(this,h),this._cbcInit()}t(l,a);for(var v=Object.keys(n),on=0;on<v.length;on++){var u=v[on];l.prototype[u]=n[u]}return l.create=function(Rn){return new l(Rn)},l}return cbc$1.instantiate=s,n._cbcInit=function(){var l=new i(this.options.iv);this._cbcState=l},n._update=function(l,v,on,u){var h=this._cbcState,Rn=this.constructor.super_.prototype,D=h.iv;if(this.type==="encrypt"){for(var Mn=0;Mn<this.blockSize;Mn++)D[Mn]^=l[v+Mn];Rn._update.call(this,D,0,on,u);for(var Mn=0;Mn<this.blockSize;Mn++)D[Mn]=on[u+Mn]}else{Rn._update.call(this,l,v,on,u);for(var Mn=0;Mn<this.blockSize;Mn++)on[u+Mn]^=D[Mn];for(var Mn=0;Mn<this.blockSize;Mn++)D[Mn]=l[v+Mn]}},cbc$1}var ede,hasRequiredEde;function requireEde(){if(hasRequiredEde)return ede;hasRequiredEde=1;var r=requireMinimalisticAssert(),t=requireInherits_browser(),n=requireCipher(),i=requireDes$1();function s(l,v){r.equal(v.length,24,"Invalid key length");var on=v.slice(0,8),u=v.slice(8,16),h=v.slice(16,24);l==="encrypt"?this.ciphers=[i.create({type:"encrypt",key:on}),i.create({type:"decrypt",key:u}),i.create({type:"encrypt",key:h})]:this.ciphers=[i.create({type:"decrypt",key:h}),i.create({type:"encrypt",key:u}),i.create({type:"decrypt",key:on})]}function a(l){n.call(this,l);var v=new s(this.type,this.options.key);this._edeState=v}return t(a,n),ede=a,a.create=function(v){return new a(v)},a.prototype._update=function(v,on,u,h){var Rn=this._edeState;Rn.ciphers[0]._update(v,on,u,h),Rn.ciphers[1]._update(u,h,u,h),Rn.ciphers[2]._update(u,h,u,h)},a.prototype._pad=i.prototype._pad,a.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(),t=requireDes(),n=requireInherits_browser(),i=requireSafeBuffer$1().Buffer,s={"des-ede3-cbc":t.CBC.instantiate(t.EDE),"des-ede3":t.EDE,"des-ede-cbc":t.CBC.instantiate(t.EDE),"des-ede":t.EDE,"des-cbc":t.CBC.instantiate(t.DES),"des-ecb":t.DES};s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],browserifyDes=a,n(a,r);function a(l){r.call(this);var v=l.mode.toLowerCase(),on=s[v],u;l.decrypt?u="decrypt":u="encrypt";var h=l.key;i.isBuffer(h)||(h=i.from(h)),(v==="des-ede"||v==="des-ede-cbc")&&(h=i.concat([h,h.slice(0,8)]));var Rn=l.iv;i.isBuffer(Rn)||(Rn=i.from(Rn)),this._des=on.create({key:h,iv:Rn,type:u})}return a.prototype._update=function(l){return i.from(this._des.update(l))},a.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,t){return r._cipher.encryptBlock(t)},ecb.decrypt=function(r,t){return r._cipher.decryptBlock(t)}),ecb}var cbc={},bufferXor,hasRequiredBufferXor;function requireBufferXor(){return hasRequiredBufferXor||(hasRequiredBufferXor=1,bufferXor=function(t,n){for(var i=Math.min(t.length,n.length),s=new Buffer(i),a=0;a<i;++a)s[a]=t[a]^n[a];return s}),bufferXor}var hasRequiredCbc;function requireCbc(){if(hasRequiredCbc)return cbc;hasRequiredCbc=1;var r=requireBufferXor();return cbc.encrypt=function(t,n){var i=r(n,t._prev);return t._prev=t._cipher.encryptBlock(i),t._prev},cbc.decrypt=function(t,n){var i=t._prev;t._prev=n;var s=t._cipher.decryptBlock(n);return r(s,i)},cbc}var cfb={},hasRequiredCfb;function requireCfb(){if(hasRequiredCfb)return cfb;hasRequiredCfb=1;var r=requireSafeBuffer$1().Buffer,t=requireBufferXor();function n(i,s,a){var l=s.length,v=t(s,i._cache);return i._cache=i._cache.slice(l),i._prev=r.concat([i._prev,a?s:v]),v}return cfb.encrypt=function(i,s,a){for(var l=r.allocUnsafe(0),v;s.length;)if(i._cache.length===0&&(i._cache=i._cipher.encryptBlock(i._prev),i._prev=r.allocUnsafe(0)),i._cache.length<=s.length)v=i._cache.length,l=r.concat([l,n(i,s.slice(0,v),a)]),s=s.slice(v);else{l=r.concat([l,n(i,s,a)]);break}return l},cfb}var cfb8={},hasRequiredCfb8;function requireCfb8(){if(hasRequiredCfb8)return cfb8;hasRequiredCfb8=1;var r=requireSafeBuffer$1().Buffer;function t(n,i,s){var a=n._cipher.encryptBlock(n._prev),l=a[0]^i;return n._prev=r.concat([n._prev.slice(1),r.from([s?i:l])]),l}return cfb8.encrypt=function(n,i,s){for(var a=i.length,l=r.allocUnsafe(a),v=-1;++v<a;)l[v]=t(n,i[v],s);return l},cfb8}var cfb1={},hasRequiredCfb1;function requireCfb1(){if(hasRequiredCfb1)return cfb1;hasRequiredCfb1=1;var r=requireSafeBuffer$1().Buffer;function t(i,s,a){for(var l,v=-1,on=8,u=0,h,Rn;++v<on;)l=i._cipher.encryptBlock(i._prev),h=s&1<<7-v?128:0,Rn=l[0]^h,u+=(Rn&128)>>v%8,i._prev=n(i._prev,a?h:Rn);return u}function n(i,s){var a=i.length,l=-1,v=r.allocUnsafe(i.length);for(i=r.concat([i,r.from([s])]);++l<a;)v[l]=i[l]<<1|i[l+1]>>7;return v}return cfb1.encrypt=function(i,s,a){for(var l=s.length,v=r.allocUnsafe(l),on=-1;++on<l;)v[on]=t(i,s[on],a);return v},cfb1}var ofb={},hasRequiredOfb;function requireOfb(){if(hasRequiredOfb)return ofb;hasRequiredOfb=1;var r=requireBufferXor();function t(n){return n._prev=n._cipher.encryptBlock(n._prev),n._prev}return ofb.encrypt=function(n,i){for(;n._cache.length<i.length;)n._cache=Buffer.concat([n._cache,t(n)]);var s=n._cache.slice(0,i.length);return n._cache=n._cache.slice(i.length),r(i,s)},ofb}var ctr={},incr32_1,hasRequiredIncr32;function requireIncr32(){if(hasRequiredIncr32)return incr32_1;hasRequiredIncr32=1;function r(t){for(var n=t.length,i;n--;)if(i=t.readUInt8(n),i===255)t.writeUInt8(0,n);else{i++,t.writeUInt8(i,n);break}}return incr32_1=r,incr32_1}var hasRequiredCtr;function requireCtr(){if(hasRequiredCtr)return ctr;hasRequiredCtr=1;var r=requireBufferXor(),t=requireSafeBuffer$1().Buffer,n=requireIncr32();function i(a){var l=a._cipher.encryptBlockRaw(a._prev);return n(a._prev),l}var s=16;return ctr.encrypt=function(a,l){var v=Math.ceil(l.length/s),on=a._cache.length;a._cache=t.concat([a._cache,t.allocUnsafe(v*s)]);for(var u=0;u<v;u++){var h=i(a),Rn=on+u*s;a._cache.writeUInt32BE(h[0],Rn+0),a._cache.writeUInt32BE(h[1],Rn+4),a._cache.writeUInt32BE(h[2],Rn+8),a._cache.writeUInt32BE(h[3],Rn+12)}var D=a._cache.slice(0,l.length);return a._cache=a._cache.slice(l.length),r(l,D)},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()},t=require$$2;for(var n in t)t[n].module=r[t[n].mode];return modes_1=t,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 t(v){r.isBuffer(v)||(v=r.from(v));for(var on=v.length/4|0,u=new Array(on),h=0;h<on;h++)u[h]=v.readUInt32BE(h*4);return u}function n(v){for(var on=0;on<v.length;v++)v[on]=0}function i(v,on,u,h,Rn){for(var D=u[0],Mn=u[1],Ln=u[2],jn=u[3],hi=v[0]^on[0],vi=v[1]^on[1],gi=v[2]^on[2],Ri=v[3]^on[3],Si,Ai,Ii,Ni,Ci=4,Oi=1;Oi<Rn;Oi++)Si=D[hi>>>24]^Mn[vi>>>16&255]^Ln[gi>>>8&255]^jn[Ri&255]^on[Ci++],Ai=D[vi>>>24]^Mn[gi>>>16&255]^Ln[Ri>>>8&255]^jn[hi&255]^on[Ci++],Ii=D[gi>>>24]^Mn[Ri>>>16&255]^Ln[hi>>>8&255]^jn[vi&255]^on[Ci++],Ni=D[Ri>>>24]^Mn[hi>>>16&255]^Ln[vi>>>8&255]^jn[gi&255]^on[Ci++],hi=Si,vi=Ai,gi=Ii,Ri=Ni;return Si=(h[hi>>>24]<<24|h[vi>>>16&255]<<16|h[gi>>>8&255]<<8|h[Ri&255])^on[Ci++],Ai=(h[vi>>>24]<<24|h[gi>>>16&255]<<16|h[Ri>>>8&255]<<8|h[hi&255])^on[Ci++],Ii=(h[gi>>>24]<<24|h[Ri>>>16&255]<<16|h[hi>>>8&255]<<8|h[vi&255])^on[Ci++],Ni=(h[Ri>>>24]<<24|h[hi>>>16&255]<<16|h[vi>>>8&255]<<8|h[gi&255])^on[Ci++],Si=Si>>>0,Ai=Ai>>>0,Ii=Ii>>>0,Ni=Ni>>>0,[Si,Ai,Ii,Ni]}var s=[0,1,2,4,8,16,32,64,128,27,54],a=function(){for(var v=new Array(256),on=0;on<256;on++)on<128?v[on]=on<<1:v[on]=on<<1^283;for(var u=[],h=[],Rn=[[],[],[],[]],D=[[],[],[],[]],Mn=0,Ln=0,jn=0;jn<256;++jn){var hi=Ln^Ln<<1^Ln<<2^Ln<<3^Ln<<4;hi=hi>>>8^hi&255^99,u[Mn]=hi,h[hi]=Mn;var vi=v[Mn],gi=v[vi],Ri=v[gi],Si=v[hi]*257^hi*16843008;Rn[0][Mn]=Si<<24|Si>>>8,Rn[1][Mn]=Si<<16|Si>>>16,Rn[2][Mn]=Si<<8|Si>>>24,Rn[3][Mn]=Si,Si=Ri*16843009^gi*65537^vi*257^Mn*16843008,D[0][hi]=Si<<24|Si>>>8,D[1][hi]=Si<<16|Si>>>16,D[2][hi]=Si<<8|Si>>>24,D[3][hi]=Si,Mn===0?Mn=Ln=1:(Mn=vi^v[v[v[Ri^vi]]],Ln^=v[v[Ln]])}return{SBOX:u,INV_SBOX:h,SUB_MIX:Rn,INV_SUB_MIX:D}}();function l(v){this._key=t(v),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 v=this._key,on=v.length,u=on+6,h=(u+1)*4,Rn=[],D=0;D<on;D++)Rn[D]=v[D];for(D=on;D<h;D++){var Mn=Rn[D-1];D%on===0?(Mn=Mn<<8|Mn>>>24,Mn=a.SBOX[Mn>>>24]<<24|a.SBOX[Mn>>>16&255]<<16|a.SBOX[Mn>>>8&255]<<8|a.SBOX[Mn&255],Mn^=s[D/on|0]<<24):on>6&&D%on===4&&(Mn=a.SBOX[Mn>>>24]<<24|a.SBOX[Mn>>>16&255]<<16|a.SBOX[Mn>>>8&255]<<8|a.SBOX[Mn&255]),Rn[D]=Rn[D-on]^Mn}for(var Ln=[],jn=0;jn<h;jn++){var hi=h-jn,vi=Rn[hi-(jn%4?0:4)];jn<4||hi<=4?Ln[jn]=vi:Ln[jn]=a.INV_SUB_MIX[0][a.SBOX[vi>>>24]]^a.INV_SUB_MIX[1][a.SBOX[vi>>>16&255]]^a.INV_SUB_MIX[2][a.SBOX[vi>>>8&255]]^a.INV_SUB_MIX[3][a.SBOX[vi&255]]}this._nRounds=u,this._keySchedule=Rn,this._invKeySchedule=Ln},l.prototype.encryptBlockRaw=function(v){return v=t(v),i(v,this._keySchedule,a.SUB_MIX,a.SBOX,this._nRounds)},l.prototype.encryptBlock=function(v){var on=this.encryptBlockRaw(v),u=r.allocUnsafe(16);return u.writeUInt32BE(on[0],0),u.writeUInt32BE(on[1],4),u.writeUInt32BE(on[2],8),u.writeUInt32BE(on[3],12),u},l.prototype.decryptBlock=function(v){v=t(v);var on=v[1];v[1]=v[3],v[3]=on;var u=i(v,this._invKeySchedule,a.INV_SUB_MIX,a.INV_SBOX,this._nRounds),h=r.allocUnsafe(16);return h.writeUInt32BE(u[0],0),h.writeUInt32BE(u[3],4),h.writeUInt32BE(u[2],8),h.writeUInt32BE(u[1],12),h},l.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},aes$2.AES=l,aes$2}var ghash,hasRequiredGhash;function requireGhash(){if(hasRequiredGhash)return ghash;hasRequiredGhash=1;var r=requireSafeBuffer$1().Buffer,t=r.alloc(16,0);function n(a){return[a.readUInt32BE(0),a.readUInt32BE(4),a.readUInt32BE(8),a.readUInt32BE(12)]}function i(a){var l=r.allocUnsafe(16);return l.writeUInt32BE(a[0]>>>0,0),l.writeUInt32BE(a[1]>>>0,4),l.writeUInt32BE(a[2]>>>0,8),l.writeUInt32BE(a[3]>>>0,12),l}function s(a){this.h=a,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}return s.prototype.ghash=function(a){for(var l=-1;++l<a.length;)this.state[l]^=a[l];this._multiply()},s.prototype._multiply=function(){for(var a=n(this.h),l=[0,0,0,0],v,on,u,h=-1;++h<128;){for(on=(this.state[~~(h/8)]&1<<7-h%8)!==0,on&&(l[0]^=a[0],l[1]^=a[1],l[2]^=a[2],l[3]^=a[3]),u=(a[3]&1)!==0,v=3;v>0;v--)a[v]=a[v]>>>1|(a[v-1]&1)<<31;a[0]=a[0]>>>1,u&&(a[0]=a[0]^225<<24)}this.state=i(l)},s.prototype.update=function(a){this.cache=r.concat([this.cache,a]);for(var l;this.cache.length>=16;)l=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(l)},s.prototype.final=function(a,l){return this.cache.length&&this.ghash(r.concat([this.cache,t],16)),this.ghash(i([0,a,0,l])),this.state},ghash=s,ghash}var authCipher,hasRequiredAuthCipher;function requireAuthCipher(){if(hasRequiredAuthCipher)return authCipher;hasRequiredAuthCipher=1;var r=requireAes$1(),t=requireSafeBuffer$1().Buffer,n=requireCipherBase(),i=requireInherits_browser(),s=requireGhash(),a=requireBufferXor(),l=requireIncr32();function v(h,Rn){var D=0;h.length!==Rn.length&&D++;for(var Mn=Math.min(h.length,Rn.length),Ln=0;Ln<Mn;++Ln)D+=h[Ln]^Rn[Ln];return D}function on(h,Rn,D){if(Rn.length===12)return h._finID=t.concat([Rn,t.from([0,0,0,1])]),t.concat([Rn,t.from([0,0,0,2])]);var Mn=new s(D),Ln=Rn.length,jn=Ln%16;Mn.update(Rn),jn&&(jn=16-jn,Mn.update(t.alloc(jn,0))),Mn.update(t.alloc(8,0));var hi=Ln*8,vi=t.alloc(8);vi.writeUIntBE(hi,0,8),Mn.update(vi),h._finID=Mn.state;var gi=t.from(h._finID);return l(gi),gi}function u(h,Rn,D,Mn){n.call(this);var Ln=t.alloc(4,0);this._cipher=new r.AES(Rn);var jn=this._cipher.encryptBlock(Ln);this._ghash=new s(jn),D=on(this,D,jn),this._prev=t.from(D),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=Mn,this._alen=0,this._len=0,this._mode=h,this._authTag=null,this._called=!1}return i(u,n),u.prototype._update=function(h){if(!this._called&&this._alen){var Rn=16-this._alen%16;Rn<16&&(Rn=t.alloc(Rn,0),this._ghash.update(Rn))}this._called=!0;var D=this._mode.encrypt(this,h);return this._decrypt?this._ghash.update(h):this._ghash.update(D),this._len+=h.length,D},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var h=a(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&v(h,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=h,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!t.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(Rn){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=Rn},u.prototype.setAAD=function(Rn){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(Rn),this._alen+=Rn.length},authCipher=u,authCipher}var streamCipher,hasRequiredStreamCipher;function requireStreamCipher(){if(hasRequiredStreamCipher)return streamCipher;hasRequiredStreamCipher=1;var r=requireAes$1(),t=requireSafeBuffer$1().Buffer,n=requireCipherBase(),i=requireInherits_browser();function s(a,l,v,on){n.call(this),this._cipher=new r.AES(l),this._prev=t.from(v),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=on,this._mode=a}return i(s,n),s.prototype._update=function(a){return this._mode.encrypt(this,a,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},streamCipher=s,streamCipher}var evp_bytestokey,hasRequiredEvp_bytestokey;function requireEvp_bytestokey(){if(hasRequiredEvp_bytestokey)return evp_bytestokey;hasRequiredEvp_bytestokey=1;var r=requireSafeBuffer$1().Buffer,t=requireMd5_js();function n(i,s,a,l){if(r.isBuffer(i)||(i=r.from(i,"binary")),s&&(r.isBuffer(s)||(s=r.from(s,"binary")),s.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var v=a/8,on=r.alloc(v),u=r.alloc(l||0),h=r.alloc(0);v>0||l>0;){var Rn=new t;Rn.update(h),Rn.update(i),s&&Rn.update(s),h=Rn.digest();var D=0;if(v>0){var Mn=on.length-v;D=Math.min(v,h.length),h.copy(on,Mn,0,D),v-=D}if(D<h.length&&l>0){var Ln=u.length-l,jn=Math.min(l,h.length-D);h.copy(u,Ln,D,D+jn),l-=jn}}return h.fill(0),{key:on,iv:u}}return evp_bytestokey=n,evp_bytestokey}var hasRequiredEncrypter;function requireEncrypter(){if(hasRequiredEncrypter)return encrypter;hasRequiredEncrypter=1;var r=requireModes$1(),t=requireAuthCipher(),n=requireSafeBuffer$1().Buffer,i=requireStreamCipher(),s=requireCipherBase(),a=requireAes$1(),l=requireEvp_bytestokey(),v=requireInherits_browser();function on(Mn,Ln,jn){s.call(this),this._cache=new h,this._cipher=new a.AES(Ln),this._prev=n.from(jn),this._mode=Mn,this._autopadding=!0}v(on,s),on.prototype._update=function(Mn){this._cache.add(Mn);for(var Ln,jn,hi=[];Ln=this._cache.get();)jn=this._mode.encrypt(this,Ln),hi.push(jn);return n.concat(hi)};var u=n.alloc(16,16);on.prototype._final=function(){var Mn=this._cache.flush();if(this._autopadding)return Mn=this._mode.encrypt(this,Mn),this._cipher.scrub(),Mn;if(!Mn.equals(u))throw this._cipher.scrub(),new Error("data not multiple of block length")},on.prototype.setAutoPadding=function(Mn){return this._autopadding=!!Mn,this};function h(){this.cache=n.allocUnsafe(0)}h.prototype.add=function(Mn){this.cache=n.concat([this.cache,Mn])},h.prototype.get=function(){if(this.cache.length>15){var Mn=this.cache.slice(0,16);return this.cache=this.cache.slice(16),Mn}return null},h.prototype.flush=function(){for(var Mn=16-this.cache.length,Ln=n.allocUnsafe(Mn),jn=-1;++jn<Mn;)Ln.writeUInt8(Mn,jn);return n.concat([this.cache,Ln])};function Rn(Mn,Ln,jn){var hi=r[Mn.toLowerCase()];if(!hi)throw new TypeError("invalid suite type");if(typeof Ln=="string"&&(Ln=n.from(Ln)),Ln.length!==hi.key/8)throw new TypeError("invalid key length "+Ln.length);if(typeof jn=="string"&&(jn=n.from(jn)),hi.mode!=="GCM"&&jn.length!==hi.iv)throw new TypeError("invalid iv length "+jn.length);return hi.type==="stream"?new i(hi.module,Ln,jn):hi.type==="auth"?new t(hi.module,Ln,jn):new on(hi.module,Ln,jn)}function D(Mn,Ln){var jn=r[Mn.toLowerCase()];if(!jn)throw new TypeError("invalid suite type");var hi=l(Ln,!1,jn.key,jn.iv);return Rn(Mn,hi.key,hi.iv)}return encrypter.createCipheriv=Rn,encrypter.createCipher=D,encrypter}var decrypter={},hasRequiredDecrypter;function requireDecrypter(){if(hasRequiredDecrypter)return decrypter;hasRequiredDecrypter=1;var r=requireAuthCipher(),t=requireSafeBuffer$1().Buffer,n=requireModes$1(),i=requireStreamCipher(),s=requireCipherBase(),a=requireAes$1(),l=requireEvp_bytestokey(),v=requireInherits_browser();function on(Mn,Ln,jn){s.call(this),this._cache=new u,this._last=void 0,this._cipher=new a.AES(Ln),this._prev=t.from(jn),this._mode=Mn,this._autopadding=!0}v(on,s),on.prototype._update=function(Mn){this._cache.add(Mn);for(var Ln,jn,hi=[];Ln=this._cache.get(this._autopadding);)jn=this._mode.decrypt(this,Ln),hi.push(jn);return t.concat(hi)},on.prototype._final=function(){var Mn=this._cache.flush();if(this._autopadding)return h(this._mode.decrypt(this,Mn));if(Mn)throw new Error("data not multiple of block length")},on.prototype.setAutoPadding=function(Mn){return this._autopadding=!!Mn,this};function u(){this.cache=t.allocUnsafe(0)}u.prototype.add=function(Mn){this.cache=t.concat([this.cache,Mn])},u.prototype.get=function(Mn){var Ln;if(Mn){if(this.cache.length>16)return Ln=this.cache.slice(0,16),this.cache=this.cache.slice(16),Ln}else if(this.cache.length>=16)return Ln=this.cache.slice(0,16),this.cache=this.cache.slice(16),Ln;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache};function h(Mn){var Ln=Mn[15];if(Ln<1||Ln>16)throw new Error("unable to decrypt data");for(var jn=-1;++jn<Ln;)if(Mn[jn+(16-Ln)]!==Ln)throw new Error("unable to decrypt data");if(Ln!==16)return Mn.slice(0,16-Ln)}function Rn(Mn,Ln,jn){var hi=n[Mn.toLowerCase()];if(!hi)throw new TypeError("invalid suite type");if(typeof jn=="string"&&(jn=t.from(jn)),hi.mode!=="GCM"&&jn.length!==hi.iv)throw new TypeError("invalid iv length "+jn.length);if(typeof Ln=="string"&&(Ln=t.from(Ln)),Ln.length!==hi.key/8)throw new TypeError("invalid key length "+Ln.length);return hi.type==="stream"?new i(hi.module,Ln,jn,!0):hi.type==="auth"?new r(hi.module,Ln,jn,!0):new on(hi.module,Ln,jn)}function D(Mn,Ln){var jn=n[Mn.toLowerCase()];if(!jn)throw new TypeError("invalid suite type");var hi=l(Ln,!1,jn.key,jn.iv);return Rn(Mn,hi.key,hi.iv)}return decrypter.createDecipher=D,decrypter.createDecipheriv=Rn,decrypter}var hasRequiredBrowser$7;function requireBrowser$7(){if(hasRequiredBrowser$7)return browser$6;hasRequiredBrowser$7=1;var r=requireEncrypter(),t=requireDecrypter(),n=require$$2;function i(){return Object.keys(n)}return browser$6.createCipher=browser$6.Cipher=r.createCipher,browser$6.createCipheriv=browser$6.Cipheriv=r.createCipheriv,browser$6.createDecipher=browser$6.Decipher=t.createDecipher,browser$6.createDecipheriv=browser$6.Decipheriv=t.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(),t=requireBrowser$7(),n=requireModes$1(),i=requireModes(),s=requireEvp_bytestokey();function a(h,Rn){h=h.toLowerCase();var D,Mn;if(n[h])D=n[h].key,Mn=n[h].iv;else if(i[h])D=i[h].key*8,Mn=i[h].iv;else throw new TypeError("invalid suite type");var Ln=s(Rn,!1,D,Mn);return v(h,Ln.key,Ln.iv)}function l(h,Rn){h=h.toLowerCase();var D,Mn;if(n[h])D=n[h].key,Mn=n[h].iv;else if(i[h])D=i[h].key*8,Mn=i[h].iv;else throw new TypeError("invalid suite type");var Ln=s(Rn,!1,D,Mn);return on(h,Ln.key,Ln.iv)}function v(h,Rn,D){if(h=h.toLowerCase(),n[h])return t.createCipheriv(h,Rn,D);if(i[h])return new r({key:Rn,iv:D,mode:h});throw new TypeError("invalid suite type")}function on(h,Rn,D){if(h=h.toLowerCase(),n[h])return t.createDecipheriv(h,Rn,D);if(i[h])return new r({key:Rn,iv:D,mode:h,decrypt:!0});throw new TypeError("invalid suite type")}function u(){return Object.keys(i).concat(t.getCiphers())}return browser$7.createCipher=browser$7.Cipher=a,browser$7.createCipheriv=browser$7.Cipheriv=v,browser$7.createDecipher=browser$7.Decipher=l,browser$7.createDecipheriv=browser$7.Decipheriv=on,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(t,n){function i(Fi,bi){if(!Fi)throw new Error(bi||"Assertion failed")}function s(Fi,bi){Fi.super_=bi;var Yn=function(){};Yn.prototype=bi.prototype,Fi.prototype=new Yn,Fi.prototype.constructor=Fi}function a(Fi,bi,Yn){if(a.isBN(Fi))return Fi;this.negative=0,this.words=null,this.length=0,this.red=null,Fi!==null&&((bi==="le"||bi==="be")&&(Yn=bi,bi=10),this._init(Fi||0,bi||10,Yn||"be"))}typeof t=="object"?t.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var l;try{typeof window<"u"&&typeof window.Buffer<"u"?l=window.Buffer:l=requireDist().Buffer}catch{}a.isBN=function(bi){return bi instanceof a?!0:bi!==null&&typeof bi=="object"&&bi.constructor.wordSize===a.wordSize&&Array.isArray(bi.words)},a.max=function(bi,Yn){return bi.cmp(Yn)>0?bi:Yn},a.min=function(bi,Yn){return bi.cmp(Yn)<0?bi:Yn},a.prototype._init=function(bi,Yn,In){if(typeof bi=="number")return this._initNumber(bi,Yn,In);if(typeof bi=="object")return this._initArray(bi,Yn,In);Yn==="hex"&&(Yn=16),i(Yn===(Yn|0)&&Yn>=2&&Yn<=36),bi=bi.toString().replace(/\s+/g,"");var Hn=0;bi[0]==="-"&&(Hn++,this.negative=1),Hn<bi.length&&(Yn===16?this._parseHex(bi,Hn,In):(this._parseBase(bi,Yn,Hn),In==="le"&&this._initArray(this.toArray(),Yn,In)))},a.prototype._initNumber=function(bi,Yn,In){bi<0&&(this.negative=1,bi=-bi),bi<67108864?(this.words=[bi&67108863],this.length=1):bi<4503599627370496?(this.words=[bi&67108863,bi/67108864&67108863],this.length=2):(i(bi<9007199254740992),this.words=[bi&67108863,bi/67108864&67108863,1],this.length=3),In==="le"&&this._initArray(this.toArray(),Yn,In)},a.prototype._initArray=function(bi,Yn,In){if(i(typeof bi.length=="number"),bi.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(bi.length/3),this.words=new Array(this.length);for(var Hn=0;Hn<this.length;Hn++)this.words[Hn]=0;var yi,mi,_i=0;if(In==="be")for(Hn=bi.length-1,yi=0;Hn>=0;Hn-=3)mi=bi[Hn]|bi[Hn-1]<<8|bi[Hn-2]<<16,this.words[yi]|=mi<<_i&67108863,this.words[yi+1]=mi>>>26-_i&67108863,_i+=24,_i>=26&&(_i-=26,yi++);else if(In==="le")for(Hn=0,yi=0;Hn<bi.length;Hn+=3)mi=bi[Hn]|bi[Hn+1]<<8|bi[Hn+2]<<16,this.words[yi]|=mi<<_i&67108863,this.words[yi+1]=mi>>>26-_i&67108863,_i+=24,_i>=26&&(_i-=26,yi++);return this.strip()};function v(Fi,bi){var Yn=Fi.charCodeAt(bi);return Yn>=65&&Yn<=70?Yn-55:Yn>=97&&Yn<=102?Yn-87:Yn-48&15}function on(Fi,bi,Yn){var In=v(Fi,Yn);return Yn-1>=bi&&(In|=v(Fi,Yn-1)<<4),In}a.prototype._parseHex=function(bi,Yn,In){this.length=Math.ceil((bi.length-Yn)/6),this.words=new Array(this.length);for(var Hn=0;Hn<this.length;Hn++)this.words[Hn]=0;var yi=0,mi=0,_i;if(In==="be")for(Hn=bi.length-1;Hn>=Yn;Hn-=2)_i=on(bi,Yn,Hn)<<yi,this.words[mi]|=_i&67108863,yi>=18?(yi-=18,mi+=1,this.words[mi]|=_i>>>26):yi+=8;else{var wi=bi.length-Yn;for(Hn=wi%2===0?Yn+1:Yn;Hn<bi.length;Hn+=2)_i=on(bi,Yn,Hn)<<yi,this.words[mi]|=_i&67108863,yi>=18?(yi-=18,mi+=1,this.words[mi]|=_i>>>26):yi+=8}this.strip()};function u(Fi,bi,Yn,In){for(var Hn=0,yi=Math.min(Fi.length,Yn),mi=bi;mi<yi;mi++){var _i=Fi.charCodeAt(mi)-48;Hn*=In,_i>=49?Hn+=_i-49+10:_i>=17?Hn+=_i-17+10:Hn+=_i}return Hn}a.prototype._parseBase=function(bi,Yn,In){this.words=[0],this.length=1;for(var Hn=0,yi=1;yi<=67108863;yi*=Yn)Hn++;Hn--,yi=yi/Yn|0;for(var mi=bi.length-In,_i=mi%Hn,wi=Math.min(mi,mi-_i)+In,Ei=0,xi=In;xi<wi;xi+=Hn)Ei=u(bi,xi,xi+Hn,Yn),this.imuln(yi),this.words[0]+Ei<67108864?this.words[0]+=Ei:this._iaddn(Ei);if(_i!==0){var Wn=1;for(Ei=u(bi,xi,bi.length,Yn),xi=0;xi<_i;xi++)Wn*=Yn;this.imuln(Wn),this.words[0]+Ei<67108864?this.words[0]+=Ei:this._iaddn(Ei)}this.strip()},a.prototype.copy=function(bi){bi.words=new Array(this.length);for(var Yn=0;Yn<this.length;Yn++)bi.words[Yn]=this.words[Yn];bi.length=this.length,bi.negative=this.negative,bi.red=this.red},a.prototype.clone=function(){var bi=new a(null);return this.copy(bi),bi},a.prototype._expand=function(bi){for(;this.length<bi;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){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"],Rn=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],D=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(bi,Yn){bi=bi||10,Yn=Yn|0||1;var In;if(bi===16||bi==="hex"){In="";for(var Hn=0,yi=0,mi=0;mi<this.length;mi++){var _i=this.words[mi],wi=((_i<<Hn|yi)&16777215).toString(16);yi=_i>>>24-Hn&16777215,Hn+=2,Hn>=26&&(Hn-=26,mi--),yi!==0||mi!==this.length-1?In=h[6-wi.length]+wi+In:In=wi+In}for(yi!==0&&(In=yi.toString(16)+In);In.length%Yn!==0;)In="0"+In;return this.negative!==0&&(In="-"+In),In}if(bi===(bi|0)&&bi>=2&&bi<=36){var Ei=Rn[bi],xi=D[bi];In="";var Wn=this.clone();for(Wn.negative=0;!Wn.isZero();){var Ti=Wn.modn(xi).toString(bi);Wn=Wn.idivn(xi),Wn.isZero()?In=Ti+In:In=h[Ei-Ti.length]+Ti+In}for(this.isZero()&&(In="0"+In);In.length%Yn!==0;)In="0"+In;return this.negative!==0&&(In="-"+In),In}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var bi=this.words[0];return this.length===2?bi+=this.words[1]*67108864:this.length===3&&this.words[2]===1?bi+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-bi:bi},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(bi,Yn){return i(typeof l<"u"),this.toArrayLike(l,bi,Yn)},a.prototype.toArray=function(bi,Yn){return this.toArrayLike(Array,bi,Yn)},a.prototype.toArrayLike=function(bi,Yn,In){var Hn=this.byteLength(),yi=In||Math.max(1,Hn);i(Hn<=yi,"byte array longer than desired length"),i(yi>0,"Requested array length <= 0"),this.strip();var mi=Yn==="le",_i=new bi(yi),wi,Ei,xi=this.clone();if(mi){for(Ei=0;!xi.isZero();Ei++)wi=xi.andln(255),xi.iushrn(8),_i[Ei]=wi;for(;Ei<yi;Ei++)_i[Ei]=0}else{for(Ei=0;Ei<yi-Hn;Ei++)_i[Ei]=0;for(Ei=0;!xi.isZero();Ei++)wi=xi.andln(255),xi.iushrn(8),_i[yi-Ei-1]=wi}return _i},Math.clz32?a.prototype._countBits=function(bi){return 32-Math.clz32(bi)}:a.prototype._countBits=function(bi){var Yn=bi,In=0;return Yn>=4096&&(In+=13,Yn>>>=13),Yn>=64&&(In+=7,Yn>>>=7),Yn>=8&&(In+=4,Yn>>>=4),Yn>=2&&(In+=2,Yn>>>=2),In+Yn},a.prototype._zeroBits=function(bi){if(bi===0)return 26;var Yn=bi,In=0;return(Yn&8191)===0&&(In+=13,Yn>>>=13),(Yn&127)===0&&(In+=7,Yn>>>=7),(Yn&15)===0&&(In+=4,Yn>>>=4),(Yn&3)===0&&(In+=2,Yn>>>=2),(Yn&1)===0&&In++,In},a.prototype.bitLength=function(){var bi=this.words[this.length-1],Yn=this._countBits(bi);return(this.length-1)*26+Yn};function Mn(Fi){for(var bi=new Array(Fi.bitLength()),Yn=0;Yn<bi.length;Yn++){var In=Yn/26|0,Hn=Yn%26;bi[Yn]=(Fi.words[In]&1<<Hn)>>>Hn}return bi}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var bi=0,Yn=0;Yn<this.length;Yn++){var In=this._zeroBits(this.words[Yn]);if(bi+=In,In!==26)break}return bi},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(bi){return this.negative!==0?this.abs().inotn(bi).iaddn(1):this.clone()},a.prototype.fromTwos=function(bi){return this.testn(bi-1)?this.notn(bi).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(bi){for(;this.length<bi.length;)this.words[this.length++]=0;for(var Yn=0;Yn<bi.length;Yn++)this.words[Yn]=this.words[Yn]|bi.words[Yn];return this.strip()},a.prototype.ior=function(bi){return i((this.negative|bi.negative)===0),this.iuor(bi)},a.prototype.or=function(bi){return this.length>bi.length?this.clone().ior(bi):bi.clone().ior(this)},a.prototype.uor=function(bi){return this.length>bi.length?this.clone().iuor(bi):bi.clone().iuor(this)},a.prototype.iuand=function(bi){var Yn;this.length>bi.length?Yn=bi:Yn=this;for(var In=0;In<Yn.length;In++)this.words[In]=this.words[In]&bi.words[In];return this.length=Yn.length,this.strip()},a.prototype.iand=function(bi){return i((this.negative|bi.negative)===0),this.iuand(bi)},a.prototype.and=function(bi){return this.length>bi.length?this.clone().iand(bi):bi.clone().iand(this)},a.prototype.uand=function(bi){return this.length>bi.length?this.clone().iuand(bi):bi.clone().iuand(this)},a.prototype.iuxor=function(bi){var Yn,In;this.length>bi.length?(Yn=this,In=bi):(Yn=bi,In=this);for(var Hn=0;Hn<In.length;Hn++)this.words[Hn]=Yn.words[Hn]^In.words[Hn];if(this!==Yn)for(;Hn<Yn.length;Hn++)this.words[Hn]=Yn.words[Hn];return this.length=Yn.length,this.strip()},a.prototype.ixor=function(bi){return i((this.negative|bi.negative)===0),this.iuxor(bi)},a.prototype.xor=function(bi){return this.length>bi.length?this.clone().ixor(bi):bi.clone().ixor(this)},a.prototype.uxor=function(bi){return this.length>bi.length?this.clone().iuxor(bi):bi.clone().iuxor(this)},a.prototype.inotn=function(bi){i(typeof bi=="number"&&bi>=0);var Yn=Math.ceil(bi/26)|0,In=bi%26;this._expand(Yn),In>0&&Yn--;for(var Hn=0;Hn<Yn;Hn++)this.words[Hn]=~this.words[Hn]&67108863;return In>0&&(this.words[Hn]=~this.words[Hn]&67108863>>26-In),this.strip()},a.prototype.notn=function(bi){return this.clone().inotn(bi)},a.prototype.setn=function(bi,Yn){i(typeof bi=="number"&&bi>=0);var In=bi/26|0,Hn=bi%26;return this._expand(In+1),Yn?this.words[In]=this.words[In]|1<<Hn:this.words[In]=this.words[In]&~(1<<Hn),this.strip()},a.prototype.iadd=function(bi){var Yn;if(this.negative!==0&&bi.negative===0)return this.negative=0,Yn=this.isub(bi),this.negative^=1,this._normSign();if(this.negative===0&&bi.negative!==0)return bi.negative=0,Yn=this.isub(bi),bi.negative=1,Yn._normSign();var In,Hn;this.length>bi.length?(In=this,Hn=bi):(In=bi,Hn=this);for(var yi=0,mi=0;mi<Hn.length;mi++)Yn=(In.words[mi]|0)+(Hn.words[mi]|0)+yi,this.words[mi]=Yn&67108863,yi=Yn>>>26;for(;yi!==0&&mi<In.length;mi++)Yn=(In.words[mi]|0)+yi,this.words[mi]=Yn&67108863,yi=Yn>>>26;if(this.length=In.length,yi!==0)this.words[this.length]=yi,this.length++;else if(In!==this)for(;mi<In.length;mi++)this.words[mi]=In.words[mi];return this},a.prototype.add=function(bi){var Yn;return bi.negative!==0&&this.negative===0?(bi.negative=0,Yn=this.sub(bi),bi.negative^=1,Yn):bi.negative===0&&this.negative!==0?(this.negative=0,Yn=bi.sub(this),this.negative=1,Yn):this.length>bi.length?this.clone().iadd(bi):bi.clone().iadd(this)},a.prototype.isub=function(bi){if(bi.negative!==0){bi.negative=0;var Yn=this.iadd(bi);return bi.negative=1,Yn._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(bi),this.negative=1,this._normSign();var In=this.cmp(bi);if(In===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Hn,yi;In>0?(Hn=this,yi=bi):(Hn=bi,yi=this);for(var mi=0,_i=0;_i<yi.length;_i++)Yn=(Hn.words[_i]|0)-(yi.words[_i]|0)+mi,mi=Yn>>26,this.words[_i]=Yn&67108863;for(;mi!==0&&_i<Hn.length;_i++)Yn=(Hn.words[_i]|0)+mi,mi=Yn>>26,this.words[_i]=Yn&67108863;if(mi===0&&_i<Hn.length&&Hn!==this)for(;_i<Hn.length;_i++)this.words[_i]=Hn.words[_i];return this.length=Math.max(this.length,_i),Hn!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(bi){return this.clone().isub(bi)};function Ln(Fi,bi,Yn){Yn.negative=bi.negative^Fi.negative;var In=Fi.length+bi.length|0;Yn.length=In,In=In-1|0;var Hn=Fi.words[0]|0,yi=bi.words[0]|0,mi=Hn*yi,_i=mi&67108863,wi=mi/67108864|0;Yn.words[0]=_i;for(var Ei=1;Ei<In;Ei++){for(var xi=wi>>>26,Wn=wi&67108863,Ti=Math.min(Ei,bi.length-1),qi=Math.max(0,Ei-Fi.length+1);qi<=Ti;qi++){var Vi=Ei-qi|0;Hn=Fi.words[Vi]|0,yi=bi.words[qi]|0,mi=Hn*yi+Wn,xi+=mi/67108864|0,Wn=mi&67108863}Yn.words[Ei]=Wn|0,wi=xi|0}return wi!==0?Yn.words[Ei]=wi|0:Yn.length--,Yn.strip()}var jn=function(bi,Yn,In){var Hn=bi.words,yi=Yn.words,mi=In.words,_i=0,wi,Ei,xi,Wn=Hn[0]|0,Ti=Wn&8191,qi=Wn>>>13,Vi=Hn[1]|0,ji=Vi&8191,Bi=Vi>>>13,Pi=Hn[2]|0,zi=Pi&8191,Hi=Pi>>>13,Ui=Hn[3]|0,Mi=Ui&8191,Ki=Ui>>>13,Qi=Hn[4]|0,Yi=Qi&8191,ea=Qi>>>13,ia=Hn[5]|0,Zi=ia&8191,Ji=ia>>>13,ua=Hn[6]|0,Xi=ua&8191,na=ua>>>13,ta=Hn[7]|0,oa=ta&8191,fa=ta>>>13,ca=Hn[8]|0,la=ca&8191,ga=ca>>>13,ha=Hn[9]|0,da=ha&8191,Aa=ha>>>13,Ea=yi[0]|0,va=Ea&8191,Ca=Ea>>>13,wa=yi[1]|0,ma=wa&8191,ka=wa>>>13,Ta=yi[2]|0,ya=Ta&8191,Pa=Ta>>>13,Ia=yi[3]|0,ba=Ia&8191,Ba=Ia>>>13,Fa=yi[4]|0,Da=Fa&8191,La=Fa>>>13,Oa=yi[5]|0,Gi=Oa&8191,Li=Oa>>>13,$i=yi[6]|0,Wi=$i&8191,ra=$i>>>13,aa=yi[7]|0,sa=aa&8191,Ra=aa>>>13,xa=yi[8]|0,pa=xa&8191,Na=xa>>>13,_a=yi[9]|0,Sa=_a&8191,$a=_a>>>13;In.negative=bi.negative^Yn.negative,In.length=19,wi=Math.imul(Ti,va),Ei=Math.imul(Ti,Ca),Ei=Ei+Math.imul(qi,va)|0,xi=Math.imul(qi,Ca);var qa=(_i+wi|0)+((Ei&8191)<<13)|0;_i=(xi+(Ei>>>13)|0)+(qa>>>26)|0,qa&=67108863,wi=Math.imul(ji,va),Ei=Math.imul(ji,Ca),Ei=Ei+Math.imul(Bi,va)|0,xi=Math.imul(Bi,Ca),wi=wi+Math.imul(Ti,ma)|0,Ei=Ei+Math.imul(Ti,ka)|0,Ei=Ei+Math.imul(qi,ma)|0,xi=xi+Math.imul(qi,ka)|0;var Ma=(_i+wi|0)+((Ei&8191)<<13)|0;_i=(xi+(Ei>>>13)|0)+(Ma>>>26)|0,Ma&=67108863,wi=Math.imul(zi,va),Ei=Math.imul(zi,Ca),Ei=Ei+Math.imul(Hi,va)|0,xi=Math.imul(Hi,Ca),wi=wi+Math.imul(ji,ma)|0,Ei=Ei+Math.imul(ji,ka)|0,Ei=Ei+Math.imul(Bi,ma)|0,xi=xi+Math.imul(Bi,ka)|0,wi=wi+Math.imul(Ti,ya)|0,Ei=Ei+Math.imul(Ti,Pa)|0,Ei=Ei+Math.imul(qi,ya)|0,xi=xi+Math.imul(qi,Pa)|0;var Ua=(_i+wi|0)+((Ei&8191)<<13)|0;_i=(xi+(Ei>>>13)|0)+(Ua>>>26)|0,Ua&=67108863,wi=Math.imul(Mi,va),Ei=Math.imul(Mi,Ca),Ei=Ei+Math.imul(Ki,va)|0,xi=Math.imul(Ki,Ca),wi=wi+Math.imul(zi,ma)|0,Ei=Ei+Math.imul(zi,ka)|0,Ei=Ei+Math.imul(Hi,ma)|0,xi=xi+Math.imul(Hi,ka)|0,wi=wi+Math.imul(ji,ya)|0,Ei=Ei+Math.imul(ji,Pa)|0,Ei=Ei+Math.imul(Bi,ya)|0,xi=xi+Math.imul(Bi,Pa)|0,wi=wi+Math.imul(Ti,ba)|0,Ei=Ei+Math.imul(Ti,Ba)|0,Ei=Ei+Math.imul(qi,ba)|0,xi=xi+Math.imul(qi,Ba)|0;var ja=(_i+wi|0)+((Ei&8191)<<13)|0;_i=(xi+(Ei>>>13)|0)+(ja>>>26)|0,ja&=67108863,wi=Math.imul(Yi,va),Ei=Math.imul(Yi,Ca),Ei=Ei+Math.imul(ea,va)|0,xi=Math.imul(ea,Ca),wi=wi+Math.imul(Mi,ma)|0,Ei=Ei+Math.imul(Mi,ka)|0,Ei=Ei+Math.imul(Ki,ma)|0,xi=xi+Math.imul(Ki,ka)|0,wi=wi+Math.imul(zi,ya)|0,Ei=Ei+Math.imul(zi,Pa)|0,Ei=Ei+Math.imul(Hi,ya)|0,xi=xi+Math.imul(Hi,Pa)|0,wi=wi+Math.imul(ji,ba)|0,Ei=Ei+Math.imul(ji,Ba)|0,Ei=Ei+Math.imul(Bi,ba)|0,xi=xi+Math.imul(Bi,Ba)|0,wi=wi+Math.imul(Ti,Da)|0,Ei=Ei+Math.imul(Ti,La)|0,Ei=Ei+Math.imul(qi,Da)|0,xi=xi+Math.imul(qi,La)|0;var Va=(_i+wi|0)+((Ei&8191)<<13)|0;_i=(xi+(Ei>>>13)|0)+(Va>>>26)|0,Va&=67108863,wi=Math.imul(Zi,va),Ei=Math.imul(Zi,Ca),Ei=Ei+Math.imul(Ji,va)|0,xi=Math.imul(Ji,Ca),wi=wi+Math.imul(Yi,ma)|0,Ei=Ei+Math.imul(Yi,ka)|0,Ei=Ei+Math.imul(ea,ma)|0,xi=xi+Math.imul(ea,ka)|0,wi=wi+Math.imul(Mi,ya)|0,Ei=Ei+Math.imul(Mi,Pa)|0,Ei=Ei+Math.imul(Ki,ya)|0,xi=xi+Math.imul(Ki,Pa)|0,wi=wi+Math.imul(zi,ba)|0,Ei=Ei+Math.imul(zi,Ba)|0,Ei=Ei+Math.imul(Hi,ba)|0,xi=xi+Math.imul(Hi,Ba)|0,wi=wi+Math.imul(ji,Da)|0,Ei=Ei+Math.imul(ji,La)|0,Ei=Ei+Math.imul(Bi,Da)|0,xi=xi+Math.imul(Bi,La)|0,wi=wi+Math.imul(Ti,Gi)|0,Ei=Ei+Math.imul(Ti,Li)|0,Ei=Ei+Math.imul(qi,Gi)|0,xi=xi+Math.imul(qi,Li)|0;var Ga=(_i+wi|0)+((Ei&8191)<<13)|0;_i=(xi+(Ei>>>13)|0)+(Ga>>>26)|0,Ga&=67108863,wi=Math.imul(Xi,va),Ei=Math.imul(Xi,Ca),Ei=Ei+Math.imul(na,va)|0,xi=Math.imul(na,Ca),wi=wi+Math.imul(Zi,ma)|0,Ei=Ei+Math.imul(Zi,ka)|0,Ei=Ei+Math.imul(Ji,ma)|0,xi=xi+Math.imul(Ji,ka)|0,wi=wi+Math.imul(Yi,ya)|0,Ei=Ei+Math.imul(Yi,Pa)|0,Ei=Ei+Math.imul(ea,ya)|0,xi=xi+Math.imul(ea,Pa)|0,wi=wi+Math.imul(Mi,ba)|0,Ei=Ei+Math.imul(Mi,Ba)|0,Ei=Ei+Math.imul(Ki,ba)|0,xi=xi+Math.imul(Ki,Ba)|0,wi=wi+Math.imul(zi,Da)|0,Ei=Ei+Math.imul(zi,La)|0,Ei=Ei+Math.imul(Hi,Da)|0,xi=xi+Math.imul(Hi,La)|0,wi=wi+Math.imul(ji,Gi)|0,Ei=Ei+Math.imul(ji,Li)|0,Ei=Ei+Math.imul(Bi,Gi)|0,xi=xi+Math.imul(Bi,Li)|0,wi=wi+Math.imul(Ti,Wi)|0,Ei=Ei+Math.imul(Ti,ra)|0,Ei=Ei+Math.imul(qi,Wi)|0,xi=xi+Math.imul(qi,ra)|0;var Ka=(_i+wi|0)+((Ei&8191)<<13)|0;_i=(xi+(Ei>>>13)|0)+(Ka>>>26)|0,Ka&=67108863,wi=Math.imul(oa,va),Ei=Math.imul(oa,Ca),Ei=Ei+Math.imul(fa,va)|0,xi=Math.imul(fa,Ca),wi=wi+Math.imul(Xi,ma)|0,Ei=Ei+Math.imul(Xi,ka)|0,Ei=Ei+Math.imul(na,ma)|0,xi=xi+Math.imul(na,ka)|0,wi=wi+Math.imul(Zi,ya)|0,Ei=Ei+Math.imul(Zi,Pa)|0,Ei=Ei+Math.imul(Ji,ya)|0,xi=xi+Math.imul(Ji,Pa)|0,wi=wi+Math.imul(Yi,ba)|0,Ei=Ei+Math.imul(Yi,Ba)|0,Ei=Ei+Math.imul(ea,ba)|0,xi=xi+Math.imul(ea,Ba)|0,wi=wi+Math.imul(Mi,Da)|0,Ei=Ei+Math.imul(Mi,La)|0,Ei=Ei+Math.imul(Ki,Da)|0,xi=xi+Math.imul(Ki,La)|0,wi=wi+Math.imul(zi,Gi)|0,Ei=Ei+Math.imul(zi,Li)|0,Ei=Ei+Math.imul(Hi,Gi)|0,xi=xi+Math.imul(Hi,Li)|0,wi=wi+Math.imul(ji,Wi)|0,Ei=Ei+Math.imul(ji,ra)|0,Ei=Ei+Math.imul(Bi,Wi)|0,xi=xi+Math.imul(Bi,ra)|0,wi=wi+Math.imul(Ti,sa)|0,Ei=Ei+Math.imul(Ti,Ra)|0,Ei=Ei+Math.imul(qi,sa)|0,xi=xi+Math.imul(qi,Ra)|0;var Ha=(_i+wi|0)+((Ei&8191)<<13)|0;_i=(xi+(Ei>>>13)|0)+(Ha>>>26)|0,Ha&=67108863,wi=Math.imul(la,va),Ei=Math.imul(la,Ca),Ei=Ei+Math.imul(ga,va)|0,xi=Math.imul(ga,Ca),wi=wi+Math.imul(oa,ma)|0,Ei=Ei+Math.imul(oa,ka)|0,Ei=Ei+Math.imul(fa,ma)|0,xi=xi+Math.imul(fa,ka)|0,wi=wi+Math.imul(Xi,ya)|0,Ei=Ei+Math.imul(Xi,Pa)|0,Ei=Ei+Math.imul(na,ya)|0,xi=xi+Math.imul(na,Pa)|0,wi=wi+Math.imul(Zi,ba)|0,Ei=Ei+Math.imul(Zi,Ba)|0,Ei=Ei+Math.imul(Ji,ba)|0,xi=xi+Math.imul(Ji,Ba)|0,wi=wi+Math.imul(Yi,Da)|0,Ei=Ei+Math.imul(Yi,La)|0,Ei=Ei+Math.imul(ea,Da)|0,xi=xi+Math.imul(ea,La)|0,wi=wi+Math.imul(Mi,Gi)|0,Ei=Ei+Math.imul(Mi,Li)|0,Ei=Ei+Math.imul(Ki,Gi)|0,xi=xi+Math.imul(Ki,Li)|0,wi=wi+Math.imul(zi,Wi)|0,Ei=Ei+Math.imul(zi,ra)|0,Ei=Ei+Math.imul(Hi,Wi)|0,xi=xi+Math.imul(Hi,ra)|0,wi=wi+Math.imul(ji,sa)|0,Ei=Ei+Math.imul(ji,Ra)|0,Ei=Ei+Math.imul(Bi,sa)|0,xi=xi+Math.imul(Bi,Ra)|0,wi=wi+Math.imul(Ti,pa)|0,Ei=Ei+Math.imul(Ti,Na)|0,Ei=Ei+Math.imul(qi,pa)|0,xi=xi+Math.imul(qi,Na)|0;var Qa=(_i+wi|0)+((Ei&8191)<<13)|0;_i=(xi+(Ei>>>13)|0)+(Qa>>>26)|0,Qa&=67108863,wi=Math.imul(da,va),Ei=Math.imul(da,Ca),Ei=Ei+Math.imul(Aa,va)|0,xi=Math.imul(Aa,Ca),wi=wi+Math.imul(la,ma)|0,Ei=Ei+Math.imul(la,ka)|0,Ei=Ei+Math.imul(ga,ma)|0,xi=xi+Math.imul(ga,ka)|0,wi=wi+Math.imul(oa,ya)|0,Ei=Ei+Math.imul(oa,Pa)|0,Ei=Ei+Math.imul(fa,ya)|0,xi=xi+Math.imul(fa,Pa)|0,wi=wi+Math.imul(Xi,ba)|0,Ei=Ei+Math.imul(Xi,Ba)|0,Ei=Ei+Math.imul(na,ba)|0,xi=xi+Math.imul(na,Ba)|0,wi=wi+Math.imul(Zi,Da)|0,Ei=Ei+Math.imul(Zi,La)|0,Ei=Ei+Math.imul(Ji,Da)|0,xi=xi+Math.imul(Ji,La)|0,wi=wi+Math.imul(Yi,Gi)|0,Ei=Ei+Math.imul(Yi,Li)|0,Ei=Ei+Math.imul(ea,Gi)|0,xi=xi+Math.imul(ea,Li)|0,wi=wi+Math.imul(Mi,Wi)|0,Ei=Ei+Math.imul(Mi,ra)|0,Ei=Ei+Math.imul(Ki,Wi)|0,xi=xi+Math.imul(Ki,ra)|0,wi=wi+Math.imul(zi,sa)|0,Ei=Ei+Math.imul(zi,Ra)|0,Ei=Ei+Math.imul(Hi,sa)|0,xi=xi+Math.imul(Hi,Ra)|0,wi=wi+Math.imul(ji,pa)|0,Ei=Ei+Math.imul(ji,Na)|0,Ei=Ei+Math.imul(Bi,pa)|0,xi=xi+Math.imul(Bi,Na)|0,wi=wi+Math.imul(Ti,Sa)|0,Ei=Ei+Math.imul(Ti,$a)|0,Ei=Ei+Math.imul(qi,Sa)|0,xi=xi+Math.imul(qi,$a)|0;var za=(_i+wi|0)+((Ei&8191)<<13)|0;_i=(xi+(Ei>>>13)|0)+(za>>>26)|0,za&=67108863,wi=Math.imul(da,ma),Ei=Math.imul(da,ka),Ei=Ei+Math.imul(Aa,ma)|0,xi=Math.imul(Aa,ka),wi=wi+Math.imul(la,ya)|0,Ei=Ei+Math.imul(la,Pa)|0,Ei=Ei+Math.imul(ga,ya)|0,xi=xi+Math.imul(ga,Pa)|0,wi=wi+Math.imul(oa,ba)|0,Ei=Ei+Math.imul(oa,Ba)|0,Ei=Ei+Math.imul(fa,ba)|0,xi=xi+Math.imul(fa,Ba)|0,wi=wi+Math.imul(Xi,Da)|0,Ei=Ei+Math.imul(Xi,La)|0,Ei=Ei+Math.imul(na,Da)|0,xi=xi+Math.imul(na,La)|0,wi=wi+Math.imul(Zi,Gi)|0,Ei=Ei+Math.imul(Zi,Li)|0,Ei=Ei+Math.imul(Ji,Gi)|0,xi=xi+Math.imul(Ji,Li)|0,wi=wi+Math.imul(Yi,Wi)|0,Ei=Ei+Math.imul(Yi,ra)|0,Ei=Ei+Math.imul(ea,Wi)|0,xi=xi+Math.imul(ea,ra)|0,wi=wi+Math.imul(Mi,sa)|0,Ei=Ei+Math.imul(Mi,Ra)|0,Ei=Ei+Math.imul(Ki,sa)|0,xi=xi+Math.imul(Ki,Ra)|0,wi=wi+Math.imul(zi,pa)|0,Ei=Ei+Math.imul(zi,Na)|0,Ei=Ei+Math.imul(Hi,pa)|0,xi=xi+Math.imul(Hi,Na)|0,wi=wi+Math.imul(ji,Sa)|0,Ei=Ei+Math.imul(ji,$a)|0,Ei=Ei+Math.imul(Bi,Sa)|0,xi=xi+Math.imul(Bi,$a)|0;var Wa=(_i+wi|0)+((Ei&8191)<<13)|0;_i=(xi+(Ei>>>13)|0)+(Wa>>>26)|0,Wa&=67108863,wi=Math.imul(da,ya),Ei=Math.imul(da,Pa),Ei=Ei+Math.imul(Aa,ya)|0,xi=Math.imul(Aa,Pa),wi=wi+Math.imul(la,ba)|0,Ei=Ei+Math.imul(la,Ba)|0,Ei=Ei+Math.imul(ga,ba)|0,xi=xi+Math.imul(ga,Ba)|0,wi=wi+Math.imul(oa,Da)|0,Ei=Ei+Math.imul(oa,La)|0,Ei=Ei+Math.imul(fa,Da)|0,xi=xi+Math.imul(fa,La)|0,wi=wi+Math.imul(Xi,Gi)|0,Ei=Ei+Math.imul(Xi,Li)|0,Ei=Ei+Math.imul(na,Gi)|0,xi=xi+Math.imul(na,Li)|0,wi=wi+Math.imul(Zi,Wi)|0,Ei=Ei+Math.imul(Zi,ra)|0,Ei=Ei+Math.imul(Ji,Wi)|0,xi=xi+Math.imul(Ji,ra)|0,wi=wi+Math.imul(Yi,sa)|0,Ei=Ei+Math.imul(Yi,Ra)|0,Ei=Ei+Math.imul(ea,sa)|0,xi=xi+Math.imul(ea,Ra)|0,wi=wi+Math.imul(Mi,pa)|0,Ei=Ei+Math.imul(Mi,Na)|0,Ei=Ei+Math.imul(Ki,pa)|0,xi=xi+Math.imul(Ki,Na)|0,wi=wi+Math.imul(zi,Sa)|0,Ei=Ei+Math.imul(zi,$a)|0,Ei=Ei+Math.imul(Hi,Sa)|0,xi=xi+Math.imul(Hi,$a)|0;var Ya=(_i+wi|0)+((Ei&8191)<<13)|0;_i=(xi+(Ei>>>13)|0)+(Ya>>>26)|0,Ya&=67108863,wi=Math.imul(da,ba),Ei=Math.imul(da,Ba),Ei=Ei+Math.imul(Aa,ba)|0,xi=Math.imul(Aa,Ba),wi=wi+Math.imul(la,Da)|0,Ei=Ei+Math.imul(la,La)|0,Ei=Ei+Math.imul(ga,Da)|0,xi=xi+Math.imul(ga,La)|0,wi=wi+Math.imul(oa,Gi)|0,Ei=Ei+Math.imul(oa,Li)|0,Ei=Ei+Math.imul(fa,Gi)|0,xi=xi+Math.imul(fa,Li)|0,wi=wi+Math.imul(Xi,Wi)|0,Ei=Ei+Math.imul(Xi,ra)|0,Ei=Ei+Math.imul(na,Wi)|0,xi=xi+Math.imul(na,ra)|0,wi=wi+Math.imul(Zi,sa)|0,Ei=Ei+Math.imul(Zi,Ra)|0,Ei=Ei+Math.imul(Ji,sa)|0,xi=xi+Math.imul(Ji,Ra)|0,wi=wi+Math.imul(Yi,pa)|0,Ei=Ei+Math.imul(Yi,Na)|0,Ei=Ei+Math.imul(ea,pa)|0,xi=xi+Math.imul(ea,Na)|0,wi=wi+Math.imul(Mi,Sa)|0,Ei=Ei+Math.imul(Mi,$a)|0,Ei=Ei+Math.imul(Ki,Sa)|0,xi=xi+Math.imul(Ki,$a)|0;var Xa=(_i+wi|0)+((Ei&8191)<<13)|0;_i=(xi+(Ei>>>13)|0)+(Xa>>>26)|0,Xa&=67108863,wi=Math.imul(da,Da),Ei=Math.imul(da,La),Ei=Ei+Math.imul(Aa,Da)|0,xi=Math.imul(Aa,La),wi=wi+Math.imul(la,Gi)|0,Ei=Ei+Math.imul(la,Li)|0,Ei=Ei+Math.imul(ga,Gi)|0,xi=xi+Math.imul(ga,Li)|0,wi=wi+Math.imul(oa,Wi)|0,Ei=Ei+Math.imul(oa,ra)|0,Ei=Ei+Math.imul(fa,Wi)|0,xi=xi+Math.imul(fa,ra)|0,wi=wi+Math.imul(Xi,sa)|0,Ei=Ei+Math.imul(Xi,Ra)|0,Ei=Ei+Math.imul(na,sa)|0,xi=xi+Math.imul(na,Ra)|0,wi=wi+Math.imul(Zi,pa)|0,Ei=Ei+Math.imul(Zi,Na)|0,Ei=Ei+Math.imul(Ji,pa)|0,xi=xi+Math.imul(Ji,Na)|0,wi=wi+Math.imul(Yi,Sa)|0,Ei=Ei+Math.imul(Yi,$a)|0,Ei=Ei+Math.imul(ea,Sa)|0,xi=xi+Math.imul(ea,$a)|0;var Ja=(_i+wi|0)+((Ei&8191)<<13)|0;_i=(xi+(Ei>>>13)|0)+(Ja>>>26)|0,Ja&=67108863,wi=Math.imul(da,Gi),Ei=Math.imul(da,Li),Ei=Ei+Math.imul(Aa,Gi)|0,xi=Math.imul(Aa,Li),wi=wi+Math.imul(la,Wi)|0,Ei=Ei+Math.imul(la,ra)|0,Ei=Ei+Math.imul(ga,Wi)|0,xi=xi+Math.imul(ga,ra)|0,wi=wi+Math.imul(oa,sa)|0,Ei=Ei+Math.imul(oa,Ra)|0,Ei=Ei+Math.imul(fa,sa)|0,xi=xi+Math.imul(fa,Ra)|0,wi=wi+Math.imul(Xi,pa)|0,Ei=Ei+Math.imul(Xi,Na)|0,Ei=Ei+Math.imul(na,pa)|0,xi=xi+Math.imul(na,Na)|0,wi=wi+Math.imul(Zi,Sa)|0,Ei=Ei+Math.imul(Zi,$a)|0,Ei=Ei+Math.imul(Ji,Sa)|0,xi=xi+Math.imul(Ji,$a)|0;var Za=(_i+wi|0)+((Ei&8191)<<13)|0;_i=(xi+(Ei>>>13)|0)+(Za>>>26)|0,Za&=67108863,wi=Math.imul(da,Wi),Ei=Math.imul(da,ra),Ei=Ei+Math.imul(Aa,Wi)|0,xi=Math.imul(Aa,ra),wi=wi+Math.imul(la,sa)|0,Ei=Ei+Math.imul(la,Ra)|0,Ei=Ei+Math.imul(ga,sa)|0,xi=xi+Math.imul(ga,Ra)|0,wi=wi+Math.imul(oa,pa)|0,Ei=Ei+Math.imul(oa,Na)|0,Ei=Ei+Math.imul(fa,pa)|0,xi=xi+Math.imul(fa,Na)|0,wi=wi+Math.imul(Xi,Sa)|0,Ei=Ei+Math.imul(Xi,$a)|0,Ei=Ei+Math.imul(na,Sa)|0,xi=xi+Math.imul(na,$a)|0;var ao=(_i+wi|0)+((Ei&8191)<<13)|0;_i=(xi+(Ei>>>13)|0)+(ao>>>26)|0,ao&=67108863,wi=Math.imul(da,sa),Ei=Math.imul(da,Ra),Ei=Ei+Math.imul(Aa,sa)|0,xi=Math.imul(Aa,Ra),wi=wi+Math.imul(la,pa)|0,Ei=Ei+Math.imul(la,Na)|0,Ei=Ei+Math.imul(ga,pa)|0,xi=xi+Math.imul(ga,Na)|0,wi=wi+Math.imul(oa,Sa)|0,Ei=Ei+Math.imul(oa,$a)|0,Ei=Ei+Math.imul(fa,Sa)|0,xi=xi+Math.imul(fa,$a)|0;var vo=(_i+wi|0)+((Ei&8191)<<13)|0;_i=(xi+(Ei>>>13)|0)+(vo>>>26)|0,vo&=67108863,wi=Math.imul(da,pa),Ei=Math.imul(da,Na),Ei=Ei+Math.imul(Aa,pa)|0,xi=Math.imul(Aa,Na),wi=wi+Math.imul(la,Sa)|0,Ei=Ei+Math.imul(la,$a)|0,Ei=Ei+Math.imul(ga,Sa)|0,xi=xi+Math.imul(ga,$a)|0;var bo=(_i+wi|0)+((Ei&8191)<<13)|0;_i=(xi+(Ei>>>13)|0)+(bo>>>26)|0,bo&=67108863,wi=Math.imul(da,Sa),Ei=Math.imul(da,$a),Ei=Ei+Math.imul(Aa,Sa)|0,xi=Math.imul(Aa,$a);var So=(_i+wi|0)+((Ei&8191)<<13)|0;return _i=(xi+(Ei>>>13)|0)+(So>>>26)|0,So&=67108863,mi[0]=qa,mi[1]=Ma,mi[2]=Ua,mi[3]=ja,mi[4]=Va,mi[5]=Ga,mi[6]=Ka,mi[7]=Ha,mi[8]=Qa,mi[9]=za,mi[10]=Wa,mi[11]=Ya,mi[12]=Xa,mi[13]=Ja,mi[14]=Za,mi[15]=ao,mi[16]=vo,mi[17]=bo,mi[18]=So,_i!==0&&(mi[19]=_i,In.length++),In};Math.imul||(jn=Ln);function hi(Fi,bi,Yn){Yn.negative=bi.negative^Fi.negative,Yn.length=Fi.length+bi.length;for(var In=0,Hn=0,yi=0;yi<Yn.length-1;yi++){var mi=Hn;Hn=0;for(var _i=In&67108863,wi=Math.min(yi,bi.length-1),Ei=Math.max(0,yi-Fi.length+1);Ei<=wi;Ei++){var xi=yi-Ei,Wn=Fi.words[xi]|0,Ti=bi.words[Ei]|0,qi=Wn*Ti,Vi=qi&67108863;mi=mi+(qi/67108864|0)|0,Vi=Vi+_i|0,_i=Vi&67108863,mi=mi+(Vi>>>26)|0,Hn+=mi>>>26,mi&=67108863}Yn.words[yi]=_i,In=mi,mi=Hn}return In!==0?Yn.words[yi]=In:Yn.length--,Yn.strip()}function vi(Fi,bi,Yn){var In=new gi;return In.mulp(Fi,bi,Yn)}a.prototype.mulTo=function(bi,Yn){var In,Hn=this.length+bi.length;return this.length===10&&bi.length===10?In=jn(this,bi,Yn):Hn<63?In=Ln(this,bi,Yn):Hn<1024?In=hi(this,bi,Yn):In=vi(this,bi,Yn),In};function gi(Fi,bi){this.x=Fi,this.y=bi}gi.prototype.makeRBT=function(bi){for(var Yn=new Array(bi),In=a.prototype._countBits(bi)-1,Hn=0;Hn<bi;Hn++)Yn[Hn]=this.revBin(Hn,In,bi);return Yn},gi.prototype.revBin=function(bi,Yn,In){if(bi===0||bi===In-1)return bi;for(var Hn=0,yi=0;yi<Yn;yi++)Hn|=(bi&1)<<Yn-yi-1,bi>>=1;return Hn},gi.prototype.permute=function(bi,Yn,In,Hn,yi,mi){for(var _i=0;_i<mi;_i++)Hn[_i]=Yn[bi[_i]],yi[_i]=In[bi[_i]]},gi.prototype.transform=function(bi,Yn,In,Hn,yi,mi){this.permute(mi,bi,Yn,In,Hn,yi);for(var _i=1;_i<yi;_i<<=1)for(var wi=_i<<1,Ei=Math.cos(2*Math.PI/wi),xi=Math.sin(2*Math.PI/wi),Wn=0;Wn<yi;Wn+=wi)for(var Ti=Ei,qi=xi,Vi=0;Vi<_i;Vi++){var ji=In[Wn+Vi],Bi=Hn[Wn+Vi],Pi=In[Wn+Vi+_i],zi=Hn[Wn+Vi+_i],Hi=Ti*Pi-qi*zi;zi=Ti*zi+qi*Pi,Pi=Hi,In[Wn+Vi]=ji+Pi,Hn[Wn+Vi]=Bi+zi,In[Wn+Vi+_i]=ji-Pi,Hn[Wn+Vi+_i]=Bi-zi,Vi!==wi&&(Hi=Ei*Ti-xi*qi,qi=Ei*qi+xi*Ti,Ti=Hi)}},gi.prototype.guessLen13b=function(bi,Yn){var In=Math.max(Yn,bi)|1,Hn=In&1,yi=0;for(In=In/2|0;In;In=In>>>1)yi++;return 1<<yi+1+Hn},gi.prototype.conjugate=function(bi,Yn,In){if(!(In<=1))for(var Hn=0;Hn<In/2;Hn++){var yi=bi[Hn];bi[Hn]=bi[In-Hn-1],bi[In-Hn-1]=yi,yi=Yn[Hn],Yn[Hn]=-Yn[In-Hn-1],Yn[In-Hn-1]=-yi}},gi.prototype.normalize13b=function(bi,Yn){for(var In=0,Hn=0;Hn<Yn/2;Hn++){var yi=Math.round(bi[2*Hn+1]/Yn)*8192+Math.round(bi[2*Hn]/Yn)+In;bi[Hn]=yi&67108863,yi<67108864?In=0:In=yi/67108864|0}return bi},gi.prototype.convert13b=function(bi,Yn,In,Hn){for(var yi=0,mi=0;mi<Yn;mi++)yi=yi+(bi[mi]|0),In[2*mi]=yi&8191,yi=yi>>>13,In[2*mi+1]=yi&8191,yi=yi>>>13;for(mi=2*Yn;mi<Hn;++mi)In[mi]=0;i(yi===0),i((yi&-8192)===0)},gi.prototype.stub=function(bi){for(var Yn=new Array(bi),In=0;In<bi;In++)Yn[In]=0;return Yn},gi.prototype.mulp=function(bi,Yn,In){var Hn=2*this.guessLen13b(bi.length,Yn.length),yi=this.makeRBT(Hn),mi=this.stub(Hn),_i=new Array(Hn),wi=new Array(Hn),Ei=new Array(Hn),xi=new Array(Hn),Wn=new Array(Hn),Ti=new Array(Hn),qi=In.words;qi.length=Hn,this.convert13b(bi.words,bi.length,_i,Hn),this.convert13b(Yn.words,Yn.length,xi,Hn),this.transform(_i,mi,wi,Ei,Hn,yi),this.transform(xi,mi,Wn,Ti,Hn,yi);for(var Vi=0;Vi<Hn;Vi++){var ji=wi[Vi]*Wn[Vi]-Ei[Vi]*Ti[Vi];Ei[Vi]=wi[Vi]*Ti[Vi]+Ei[Vi]*Wn[Vi],wi[Vi]=ji}return this.conjugate(wi,Ei,Hn),this.transform(wi,Ei,qi,mi,Hn,yi),this.conjugate(qi,mi,Hn),this.normalize13b(qi,Hn),In.negative=bi.negative^Yn.negative,In.length=bi.length+Yn.length,In.strip()},a.prototype.mul=function(bi){var Yn=new a(null);return Yn.words=new Array(this.length+bi.length),this.mulTo(bi,Yn)},a.prototype.mulf=function(bi){var Yn=new a(null);return Yn.words=new Array(this.length+bi.length),vi(this,bi,Yn)},a.prototype.imul=function(bi){return this.clone().mulTo(bi,this)},a.prototype.imuln=function(bi){i(typeof bi=="number"),i(bi<67108864);for(var Yn=0,In=0;In<this.length;In++){var Hn=(this.words[In]|0)*bi,yi=(Hn&67108863)+(Yn&67108863);Yn>>=26,Yn+=Hn/67108864|0,Yn+=yi>>>26,this.words[In]=yi&67108863}return Yn!==0&&(this.words[In]=Yn,this.length++),this.length=bi===0?1:this.length,this},a.prototype.muln=function(bi){return this.clone().imuln(bi)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(bi){var Yn=Mn(bi);if(Yn.length===0)return new a(1);for(var In=this,Hn=0;Hn<Yn.length&&Yn[Hn]===0;Hn++,In=In.sqr());if(++Hn<Yn.length)for(var yi=In.sqr();Hn<Yn.length;Hn++,yi=yi.sqr())Yn[Hn]!==0&&(In=In.mul(yi));return In},a.prototype.iushln=function(bi){i(typeof bi=="number"&&bi>=0);var Yn=bi%26,In=(bi-Yn)/26,Hn=67108863>>>26-Yn<<26-Yn,yi;if(Yn!==0){var mi=0;for(yi=0;yi<this.length;yi++){var _i=this.words[yi]&Hn,wi=(this.words[yi]|0)-_i<<Yn;this.words[yi]=wi|mi,mi=_i>>>26-Yn}mi&&(this.words[yi]=mi,this.length++)}if(In!==0){for(yi=this.length-1;yi>=0;yi--)this.words[yi+In]=this.words[yi];for(yi=0;yi<In;yi++)this.words[yi]=0;this.length+=In}return this.strip()},a.prototype.ishln=function(bi){return i(this.negative===0),this.iushln(bi)},a.prototype.iushrn=function(bi,Yn,In){i(typeof bi=="number"&&bi>=0);var Hn;Yn?Hn=(Yn-Yn%26)/26:Hn=0;var yi=bi%26,mi=Math.min((bi-yi)/26,this.length),_i=67108863^67108863>>>yi<<yi,wi=In;if(Hn-=mi,Hn=Math.max(0,Hn),wi){for(var Ei=0;Ei<mi;Ei++)wi.words[Ei]=this.words[Ei];wi.length=mi}if(mi!==0)if(this.length>mi)for(this.length-=mi,Ei=0;Ei<this.length;Ei++)this.words[Ei]=this.words[Ei+mi];else this.words[0]=0,this.length=1;var xi=0;for(Ei=this.length-1;Ei>=0&&(xi!==0||Ei>=Hn);Ei--){var Wn=this.words[Ei]|0;this.words[Ei]=xi<<26-yi|Wn>>>yi,xi=Wn&_i}return wi&&xi!==0&&(wi.words[wi.length++]=xi),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(bi,Yn,In){return i(this.negative===0),this.iushrn(bi,Yn,In)},a.prototype.shln=function(bi){return this.clone().ishln(bi)},a.prototype.ushln=function(bi){return this.clone().iushln(bi)},a.prototype.shrn=function(bi){return this.clone().ishrn(bi)},a.prototype.ushrn=function(bi){return this.clone().iushrn(bi)},a.prototype.testn=function(bi){i(typeof bi=="number"&&bi>=0);var Yn=bi%26,In=(bi-Yn)/26,Hn=1<<Yn;if(this.length<=In)return!1;var yi=this.words[In];return!!(yi&Hn)},a.prototype.imaskn=function(bi){i(typeof bi=="number"&&bi>=0);var Yn=bi%26,In=(bi-Yn)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=In)return this;if(Yn!==0&&In++,this.length=Math.min(In,this.length),Yn!==0){var Hn=67108863^67108863>>>Yn<<Yn;this.words[this.length-1]&=Hn}return this.strip()},a.prototype.maskn=function(bi){return this.clone().imaskn(bi)},a.prototype.iaddn=function(bi){return i(typeof bi=="number"),i(bi<67108864),bi<0?this.isubn(-bi):this.negative!==0?this.length===1&&(this.words[0]|0)<bi?(this.words[0]=bi-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(bi),this.negative=1,this):this._iaddn(bi)},a.prototype._iaddn=function(bi){this.words[0]+=bi;for(var Yn=0;Yn<this.length&&this.words[Yn]>=67108864;Yn++)this.words[Yn]-=67108864,Yn===this.length-1?this.words[Yn+1]=1:this.words[Yn+1]++;return this.length=Math.max(this.length,Yn+1),this},a.prototype.isubn=function(bi){if(i(typeof bi=="number"),i(bi<67108864),bi<0)return this.iaddn(-bi);if(this.negative!==0)return this.negative=0,this.iaddn(bi),this.negative=1,this;if(this.words[0]-=bi,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Yn=0;Yn<this.length&&this.words[Yn]<0;Yn++)this.words[Yn]+=67108864,this.words[Yn+1]-=1;return this.strip()},a.prototype.addn=function(bi){return this.clone().iaddn(bi)},a.prototype.subn=function(bi){return this.clone().isubn(bi)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(bi,Yn,In){var Hn=bi.length+In,yi;this._expand(Hn);var mi,_i=0;for(yi=0;yi<bi.length;yi++){mi=(this.words[yi+In]|0)+_i;var wi=(bi.words[yi]|0)*Yn;mi-=wi&67108863,_i=(mi>>26)-(wi/67108864|0),this.words[yi+In]=mi&67108863}for(;yi<this.length-In;yi++)mi=(this.words[yi+In]|0)+_i,_i=mi>>26,this.words[yi+In]=mi&67108863;if(_i===0)return this.strip();for(i(_i===-1),_i=0,yi=0;yi<this.length;yi++)mi=-(this.words[yi]|0)+_i,_i=mi>>26,this.words[yi]=mi&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(bi,Yn){var In=this.length-bi.length,Hn=this.clone(),yi=bi,mi=yi.words[yi.length-1]|0,_i=this._countBits(mi);In=26-_i,In!==0&&(yi=yi.ushln(In),Hn.iushln(In),mi=yi.words[yi.length-1]|0);var wi=Hn.length-yi.length,Ei;if(Yn!=="mod"){Ei=new a(null),Ei.length=wi+1,Ei.words=new Array(Ei.length);for(var xi=0;xi<Ei.length;xi++)Ei.words[xi]=0}var Wn=Hn.clone()._ishlnsubmul(yi,1,wi);Wn.negative===0&&(Hn=Wn,Ei&&(Ei.words[wi]=1));for(var Ti=wi-1;Ti>=0;Ti--){var qi=(Hn.words[yi.length+Ti]|0)*67108864+(Hn.words[yi.length+Ti-1]|0);for(qi=Math.min(qi/mi|0,67108863),Hn._ishlnsubmul(yi,qi,Ti);Hn.negative!==0;)qi--,Hn.negative=0,Hn._ishlnsubmul(yi,1,Ti),Hn.isZero()||(Hn.negative^=1);Ei&&(Ei.words[Ti]=qi)}return Ei&&Ei.strip(),Hn.strip(),Yn!=="div"&&In!==0&&Hn.iushrn(In),{div:Ei||null,mod:Hn}},a.prototype.divmod=function(bi,Yn,In){if(i(!bi.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var Hn,yi,mi;return this.negative!==0&&bi.negative===0?(mi=this.neg().divmod(bi,Yn),Yn!=="mod"&&(Hn=mi.div.neg()),Yn!=="div"&&(yi=mi.mod.neg(),In&&yi.negative!==0&&yi.iadd(bi)),{div:Hn,mod:yi}):this.negative===0&&bi.negative!==0?(mi=this.divmod(bi.neg(),Yn),Yn!=="mod"&&(Hn=mi.div.neg()),{div:Hn,mod:mi.mod}):(this.negative&bi.negative)!==0?(mi=this.neg().divmod(bi.neg(),Yn),Yn!=="div"&&(yi=mi.mod.neg(),In&&yi.negative!==0&&yi.isub(bi)),{div:mi.div,mod:yi}):bi.length>this.length||this.cmp(bi)<0?{div:new a(0),mod:this}:bi.length===1?Yn==="div"?{div:this.divn(bi.words[0]),mod:null}:Yn==="mod"?{div:null,mod:new a(this.modn(bi.words[0]))}:{div:this.divn(bi.words[0]),mod:new a(this.modn(bi.words[0]))}:this._wordDiv(bi,Yn)},a.prototype.div=function(bi){return this.divmod(bi,"div",!1).div},a.prototype.mod=function(bi){return this.divmod(bi,"mod",!1).mod},a.prototype.umod=function(bi){return this.divmod(bi,"mod",!0).mod},a.prototype.divRound=function(bi){var Yn=this.divmod(bi);if(Yn.mod.isZero())return Yn.div;var In=Yn.div.negative!==0?Yn.mod.isub(bi):Yn.mod,Hn=bi.ushrn(1),yi=bi.andln(1),mi=In.cmp(Hn);return mi<0||yi===1&&mi===0?Yn.div:Yn.div.negative!==0?Yn.div.isubn(1):Yn.div.iaddn(1)},a.prototype.modn=function(bi){i(bi<=67108863);for(var Yn=(1<<26)%bi,In=0,Hn=this.length-1;Hn>=0;Hn--)In=(Yn*In+(this.words[Hn]|0))%bi;return In},a.prototype.idivn=function(bi){i(bi<=67108863);for(var Yn=0,In=this.length-1;In>=0;In--){var Hn=(this.words[In]|0)+Yn*67108864;this.words[In]=Hn/bi|0,Yn=Hn%bi}return this.strip()},a.prototype.divn=function(bi){return this.clone().idivn(bi)},a.prototype.egcd=function(bi){i(bi.negative===0),i(!bi.isZero());var Yn=this,In=bi.clone();Yn.negative!==0?Yn=Yn.umod(bi):Yn=Yn.clone();for(var Hn=new a(1),yi=new a(0),mi=new a(0),_i=new a(1),wi=0;Yn.isEven()&&In.isEven();)Yn.iushrn(1),In.iushrn(1),++wi;for(var Ei=In.clone(),xi=Yn.clone();!Yn.isZero();){for(var Wn=0,Ti=1;(Yn.words[0]&Ti)===0&&Wn<26;++Wn,Ti<<=1);if(Wn>0)for(Yn.iushrn(Wn);Wn-- >0;)(Hn.isOdd()||yi.isOdd())&&(Hn.iadd(Ei),yi.isub(xi)),Hn.iushrn(1),yi.iushrn(1);for(var qi=0,Vi=1;(In.words[0]&Vi)===0&&qi<26;++qi,Vi<<=1);if(qi>0)for(In.iushrn(qi);qi-- >0;)(mi.isOdd()||_i.isOdd())&&(mi.iadd(Ei),_i.isub(xi)),mi.iushrn(1),_i.iushrn(1);Yn.cmp(In)>=0?(Yn.isub(In),Hn.isub(mi),yi.isub(_i)):(In.isub(Yn),mi.isub(Hn),_i.isub(yi))}return{a:mi,b:_i,gcd:In.iushln(wi)}},a.prototype._invmp=function(bi){i(bi.negative===0),i(!bi.isZero());var Yn=this,In=bi.clone();Yn.negative!==0?Yn=Yn.umod(bi):Yn=Yn.clone();for(var Hn=new a(1),yi=new a(0),mi=In.clone();Yn.cmpn(1)>0&&In.cmpn(1)>0;){for(var _i=0,wi=1;(Yn.words[0]&wi)===0&&_i<26;++_i,wi<<=1);if(_i>0)for(Yn.iushrn(_i);_i-- >0;)Hn.isOdd()&&Hn.iadd(mi),Hn.iushrn(1);for(var Ei=0,xi=1;(In.words[0]&xi)===0&&Ei<26;++Ei,xi<<=1);if(Ei>0)for(In.iushrn(Ei);Ei-- >0;)yi.isOdd()&&yi.iadd(mi),yi.iushrn(1);Yn.cmp(In)>=0?(Yn.isub(In),Hn.isub(yi)):(In.isub(Yn),yi.isub(Hn))}var Wn;return Yn.cmpn(1)===0?Wn=Hn:Wn=yi,Wn.cmpn(0)<0&&Wn.iadd(bi),Wn},a.prototype.gcd=function(bi){if(this.isZero())return bi.abs();if(bi.isZero())return this.abs();var Yn=this.clone(),In=bi.clone();Yn.negative=0,In.negative=0;for(var Hn=0;Yn.isEven()&&In.isEven();Hn++)Yn.iushrn(1),In.iushrn(1);do{for(;Yn.isEven();)Yn.iushrn(1);for(;In.isEven();)In.iushrn(1);var yi=Yn.cmp(In);if(yi<0){var mi=Yn;Yn=In,In=mi}else if(yi===0||In.cmpn(1)===0)break;Yn.isub(In)}while(!0);return In.iushln(Hn)},a.prototype.invm=function(bi){return this.egcd(bi).a.umod(bi)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(bi){return this.words[0]&bi},a.prototype.bincn=function(bi){i(typeof bi=="number");var Yn=bi%26,In=(bi-Yn)/26,Hn=1<<Yn;if(this.length<=In)return this._expand(In+1),this.words[In]|=Hn,this;for(var yi=Hn,mi=In;yi!==0&&mi<this.length;mi++){var _i=this.words[mi]|0;_i+=yi,yi=_i>>>26,_i&=67108863,this.words[mi]=_i}return yi!==0&&(this.words[mi]=yi,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(bi){var Yn=bi<0;if(this.negative!==0&&!Yn)return-1;if(this.negative===0&&Yn)return 1;this.strip();var In;if(this.length>1)In=1;else{Yn&&(bi=-bi),i(bi<=67108863,"Number is too big");var Hn=this.words[0]|0;In=Hn===bi?0:Hn<bi?-1:1}return this.negative!==0?-In|0:In},a.prototype.cmp=function(bi){if(this.negative!==0&&bi.negative===0)return-1;if(this.negative===0&&bi.negative!==0)return 1;var Yn=this.ucmp(bi);return this.negative!==0?-Yn|0:Yn},a.prototype.ucmp=function(bi){if(this.length>bi.length)return 1;if(this.length<bi.length)return-1;for(var Yn=0,In=this.length-1;In>=0;In--){var Hn=this.words[In]|0,yi=bi.words[In]|0;if(Hn!==yi){Hn<yi?Yn=-1:Hn>yi&&(Yn=1);break}}return Yn},a.prototype.gtn=function(bi){return this.cmpn(bi)===1},a.prototype.gt=function(bi){return this.cmp(bi)===1},a.prototype.gten=function(bi){return this.cmpn(bi)>=0},a.prototype.gte=function(bi){return this.cmp(bi)>=0},a.prototype.ltn=function(bi){return this.cmpn(bi)===-1},a.prototype.lt=function(bi){return this.cmp(bi)===-1},a.prototype.lten=function(bi){return this.cmpn(bi)<=0},a.prototype.lte=function(bi){return this.cmp(bi)<=0},a.prototype.eqn=function(bi){return this.cmpn(bi)===0},a.prototype.eq=function(bi){return this.cmp(bi)===0},a.red=function(bi){return new Oi(bi)},a.prototype.toRed=function(bi){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),bi.convertTo(this)._forceRed(bi)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(bi){return this.red=bi,this},a.prototype.forceRed=function(bi){return i(!this.red,"Already a number in reduction context"),this._forceRed(bi)},a.prototype.redAdd=function(bi){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,bi)},a.prototype.redIAdd=function(bi){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,bi)},a.prototype.redSub=function(bi){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,bi)},a.prototype.redISub=function(bi){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,bi)},a.prototype.redShl=function(bi){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,bi)},a.prototype.redMul=function(bi){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,bi),this.red.mul(this,bi)},a.prototype.redIMul=function(bi){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,bi),this.red.imul(this,bi)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(bi){return i(this.red&&!bi.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,bi)};var Ri={k256:null,p224:null,p192:null,p25519:null};function Si(Fi,bi){this.name=Fi,this.p=new a(bi,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Si.prototype._tmp=function(){var bi=new a(null);return bi.words=new Array(Math.ceil(this.n/13)),bi},Si.prototype.ireduce=function(bi){var Yn=bi,In;do this.split(Yn,this.tmp),Yn=this.imulK(Yn),Yn=Yn.iadd(this.tmp),In=Yn.bitLength();while(In>this.n);var Hn=In<this.n?-1:Yn.ucmp(this.p);return Hn===0?(Yn.words[0]=0,Yn.length=1):Hn>0?Yn.isub(this.p):Yn.strip!==void 0?Yn.strip():Yn._strip(),Yn},Si.prototype.split=function(bi,Yn){bi.iushrn(this.n,0,Yn)},Si.prototype.imulK=function(bi){return bi.imul(this.k)};function Ai(){Si.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}s(Ai,Si),Ai.prototype.split=function(bi,Yn){for(var In=4194303,Hn=Math.min(bi.length,9),yi=0;yi<Hn;yi++)Yn.words[yi]=bi.words[yi];if(Yn.length=Hn,bi.length<=9){bi.words[0]=0,bi.length=1;return}var mi=bi.words[9];for(Yn.words[Yn.length++]=mi&In,yi=10;yi<bi.length;yi++){var _i=bi.words[yi]|0;bi.words[yi-10]=(_i&In)<<4|mi>>>22,mi=_i}mi>>>=22,bi.words[yi-10]=mi,mi===0&&bi.length>10?bi.length-=10:bi.length-=9},Ai.prototype.imulK=function(bi){bi.words[bi.length]=0,bi.words[bi.length+1]=0,bi.length+=2;for(var Yn=0,In=0;In<bi.length;In++){var Hn=bi.words[In]|0;Yn+=Hn*977,bi.words[In]=Yn&67108863,Yn=Hn*64+(Yn/67108864|0)}return bi.words[bi.length-1]===0&&(bi.length--,bi.words[bi.length-1]===0&&bi.length--),bi};function Ii(){Si.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}s(Ii,Si);function Ni(){Si.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}s(Ni,Si);function Ci(){Si.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}s(Ci,Si),Ci.prototype.imulK=function(bi){for(var Yn=0,In=0;In<bi.length;In++){var Hn=(bi.words[In]|0)*19+Yn,yi=Hn&67108863;Hn>>>=26,bi.words[In]=yi,Yn=Hn}return Yn!==0&&(bi.words[bi.length++]=Yn),bi},a._prime=function(bi){if(Ri[bi])return Ri[bi];var Yn;if(bi==="k256")Yn=new Ai;else if(bi==="p224")Yn=new Ii;else if(bi==="p192")Yn=new Ni;else if(bi==="p25519")Yn=new Ci;else throw new Error("Unknown prime "+bi);return Ri[bi]=Yn,Yn};function Oi(Fi){if(typeof Fi=="string"){var bi=a._prime(Fi);this.m=bi.p,this.prime=bi}else i(Fi.gtn(1),"modulus must be greater than 1"),this.m=Fi,this.prime=null}Oi.prototype._verify1=function(bi){i(bi.negative===0,"red works only with positives"),i(bi.red,"red works only with red numbers")},Oi.prototype._verify2=function(bi,Yn){i((bi.negative|Yn.negative)===0,"red works only with positives"),i(bi.red&&bi.red===Yn.red,"red works only with red numbers")},Oi.prototype.imod=function(bi){return this.prime?this.prime.ireduce(bi)._forceRed(this):bi.umod(this.m)._forceRed(this)},Oi.prototype.neg=function(bi){return bi.isZero()?bi.clone():this.m.sub(bi)._forceRed(this)},Oi.prototype.add=function(bi,Yn){this._verify2(bi,Yn);var In=bi.add(Yn);return In.cmp(this.m)>=0&&In.isub(this.m),In._forceRed(this)},Oi.prototype.iadd=function(bi,Yn){this._verify2(bi,Yn);var In=bi.iadd(Yn);return In.cmp(this.m)>=0&&In.isub(this.m),In},Oi.prototype.sub=function(bi,Yn){this._verify2(bi,Yn);var In=bi.sub(Yn);return In.cmpn(0)<0&&In.iadd(this.m),In._forceRed(this)},Oi.prototype.isub=function(bi,Yn){this._verify2(bi,Yn);var In=bi.isub(Yn);return In.cmpn(0)<0&&In.iadd(this.m),In},Oi.prototype.shl=function(bi,Yn){return this._verify1(bi),this.imod(bi.ushln(Yn))},Oi.prototype.imul=function(bi,Yn){return this._verify2(bi,Yn),this.imod(bi.imul(Yn))},Oi.prototype.mul=function(bi,Yn){return this._verify2(bi,Yn),this.imod(bi.mul(Yn))},Oi.prototype.isqr=function(bi){return this.imul(bi,bi.clone())},Oi.prototype.sqr=function(bi){return this.mul(bi,bi)},Oi.prototype.sqrt=function(bi){if(bi.isZero())return bi.clone();var Yn=this.m.andln(3);if(i(Yn%2===1),Yn===3){var In=this.m.add(new a(1)).iushrn(2);return this.pow(bi,In)}for(var Hn=this.m.subn(1),yi=0;!Hn.isZero()&&Hn.andln(1)===0;)yi++,Hn.iushrn(1);i(!Hn.isZero());var mi=new a(1).toRed(this),_i=mi.redNeg(),wi=this.m.subn(1).iushrn(1),Ei=this.m.bitLength();for(Ei=new a(2*Ei*Ei).toRed(this);this.pow(Ei,wi).cmp(_i)!==0;)Ei.redIAdd(_i);for(var xi=this.pow(Ei,Hn),Wn=this.pow(bi,Hn.addn(1).iushrn(1)),Ti=this.pow(bi,Hn),qi=yi;Ti.cmp(mi)!==0;){for(var Vi=Ti,ji=0;Vi.cmp(mi)!==0;ji++)Vi=Vi.redSqr();i(ji<qi);var Bi=this.pow(xi,new a(1).iushln(qi-ji-1));Wn=Wn.redMul(Bi),xi=Bi.redSqr(),Ti=Ti.redMul(xi),qi=ji}return Wn},Oi.prototype.invm=function(bi){var Yn=bi._invmp(this.m);return Yn.negative!==0?(Yn.negative=0,this.imod(Yn).redNeg()):this.imod(Yn)},Oi.prototype.pow=function(bi,Yn){if(Yn.isZero())return new a(1).toRed(this);if(Yn.cmpn(1)===0)return bi.clone();var In=4,Hn=new Array(1<<In);Hn[0]=new a(1).toRed(this),Hn[1]=bi;for(var yi=2;yi<Hn.length;yi++)Hn[yi]=this.mul(Hn[yi-1],bi);var mi=Hn[0],_i=0,wi=0,Ei=Yn.bitLength()%26;for(Ei===0&&(Ei=26),yi=Yn.length-1;yi>=0;yi--){for(var xi=Yn.words[yi],Wn=Ei-1;Wn>=0;Wn--){var Ti=xi>>Wn&1;if(mi!==Hn[0]&&(mi=this.sqr(mi)),Ti===0&&_i===0){wi=0;continue}_i<<=1,_i|=Ti,wi++,!(wi!==In&&(yi!==0||Wn!==0))&&(mi=this.mul(mi,Hn[_i]),wi=0,_i=0)}Ei=26}return mi},Oi.prototype.convertTo=function(bi){var Yn=bi.umod(this.m);return Yn===bi?Yn.clone():Yn},Oi.prototype.convertFrom=function(bi){var Yn=bi.clone();return Yn.red=null,Yn},a.mont=function(bi){return new ki(bi)};function ki(Fi){Oi.call(this,Fi),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(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)}s(ki,Oi),ki.prototype.convertTo=function(bi){return this.imod(bi.ushln(this.shift))},ki.prototype.convertFrom=function(bi){var Yn=this.imod(bi.mul(this.rinv));return Yn.red=null,Yn},ki.prototype.imul=function(bi,Yn){if(bi.isZero()||Yn.isZero())return bi.words[0]=0,bi.length=1,bi;var In=bi.imul(Yn),Hn=In.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),yi=In.isub(Hn).iushrn(this.shift),mi=yi;return yi.cmp(this.m)>=0?mi=yi.isub(this.m):yi.cmpn(0)<0&&(mi=yi.iadd(this.m)),mi._forceRed(this)},ki.prototype.mul=function(bi,Yn){if(bi.isZero()||Yn.isZero())return new a(0)._forceRed(this);var In=bi.mul(Yn),Hn=In.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),yi=In.isub(Hn).iushrn(this.shift),mi=yi;return yi.cmp(this.m)>=0?mi=yi.isub(this.m):yi.cmpn(0)<0&&(mi=yi.iadd(this.m)),mi._forceRed(this)},ki.prototype.invm=function(bi){var Yn=this.imod(bi._invmp(this.m).mul(this.r2));return Yn._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(s){return r||(r=new t(null)),r.generate(s)};function t(i){this.rand=i}if(brorand.exports.Rand=t,t.prototype.generate=function(s){return this._rand(s)},t.prototype._rand=function(s){if(this.rand.getBytes)return this.rand.getBytes(s);for(var a=new Uint8Array(s),l=0;l<a.length;l++)a[l]=this.rand.getByte();return a},typeof self=="object")self.crypto&&self.crypto.getRandomValues?t.prototype._rand=function(s){var a=new Uint8Array(s);return self.crypto.getRandomValues(a),a}:self.msCrypto&&self.msCrypto.getRandomValues?t.prototype._rand=function(s){var a=new Uint8Array(s);return self.msCrypto.getRandomValues(a),a}:typeof window=="object"&&(t.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var n=requireCryptoBrowserify();if(typeof n.randomBytes!="function")throw new Error("Not supported");t.prototype._rand=function(s){return n.randomBytes(s)}}catch{}return brorand.exports}var mr,hasRequiredMr;function requireMr(){if(hasRequiredMr)return mr;hasRequiredMr=1;var r=requireBn$2(),t=requireBrorand();function n(i){this.rand=i||new t.Rand}return mr=n,n.create=function(s){return new n(s)},n.prototype._randbelow=function(s){var a=s.bitLength(),l=Math.ceil(a/8);do var v=new r(this.rand.generate(l));while(v.cmp(s)>=0);return v},n.prototype._randrange=function(s,a){var l=a.sub(s);return s.add(this._randbelow(l))},n.prototype.test=function(s,a,l){var v=s.bitLength(),on=r.mont(s),u=new r(1).toRed(on);a||(a=Math.max(1,v/48|0));for(var h=s.subn(1),Rn=0;!h.testn(Rn);Rn++);for(var D=s.shrn(Rn),Mn=h.toRed(on),Ln=!0;a>0;a--){var jn=this._randrange(new r(2),h);l&&l(jn);var hi=jn.toRed(on).redPow(D);if(!(hi.cmp(u)===0||hi.cmp(Mn)===0)){for(var vi=1;vi<Rn;vi++){if(hi=hi.redSqr(),hi.cmp(u)===0)return!1;if(hi.cmp(Mn)===0)break}if(vi===Rn)return!1}}return Ln},n.prototype.getDivisor=function(s,a){var l=s.bitLength(),v=r.mont(s),on=new r(1).toRed(v);a||(a=Math.max(1,l/48|0));for(var u=s.subn(1),h=0;!u.testn(h);h++);for(var Rn=s.shrn(h),D=u.toRed(v);a>0;a--){var Mn=this._randrange(new r(2),u),Ln=s.gcd(Mn);if(Ln.cmpn(1)!==0)return Ln;var jn=Mn.toRed(v).redPow(Rn);if(!(jn.cmp(on)===0||jn.cmp(D)===0)){for(var hi=1;hi<h;hi++){if(jn=jn.redSqr(),jn.cmp(on)===0)return jn.fromRed().subn(1).gcd(s);if(jn.cmp(D)===0)break}if(hi===h)return jn=jn.redSqr(),jn.fromRed().subn(1).gcd(s)}}return!1},mr}var generatePrime,hasRequiredGeneratePrime;function requireGeneratePrime(){if(hasRequiredGeneratePrime)return generatePrime;hasRequiredGeneratePrime=1;var r=requireBrowser$b();generatePrime=hi,hi.simpleSieve=Ln,hi.fermatTest=jn;var t=requireBn$2(),n=new t(24),i=requireMr(),s=new i,a=new t(1),l=new t(2),v=new t(5);new t(16),new t(8);var on=new t(10),u=new t(3);new t(7);var h=new t(11),Rn=new t(4);new t(12);var D=null;function Mn(){if(D!==null)return D;var vi=1048576,gi=[];gi[0]=2;for(var Ri=1,Si=3;Si<vi;Si+=2){for(var Ai=Math.ceil(Math.sqrt(Si)),Ii=0;Ii<Ri&&gi[Ii]<=Ai&&Si%gi[Ii]!==0;Ii++);Ri!==Ii&&gi[Ii]<=Ai||(gi[Ri++]=Si)}return D=gi,gi}function Ln(vi){for(var gi=Mn(),Ri=0;Ri<gi.length;Ri++)if(vi.modn(gi[Ri])===0)return vi.cmpn(gi[Ri])===0;return!0}function jn(vi){var gi=t.mont(vi);return l.toRed(gi).redPow(vi.subn(1)).fromRed().cmpn(1)===0}function hi(vi,gi){if(vi<16)return gi===2||gi===5?new t([140,123]):new t([140,39]);gi=new t(gi);for(var Ri,Si;;){for(Ri=new t(r(Math.ceil(vi/8)));Ri.bitLength()>vi;)Ri.ishrn(1);if(Ri.isEven()&&Ri.iadd(a),Ri.testn(1)||Ri.iadd(l),gi.cmp(l)){if(!gi.cmp(v))for(;Ri.mod(on).cmp(u);)Ri.iadd(Rn)}else for(;Ri.mod(n).cmp(h);)Ri.iadd(Rn);if(Si=Ri.shrn(1),Ln(Si)&&Ln(Ri)&&jn(Si)&&jn(Ri)&&s.test(Si)&&s.test(Ri))return Ri}}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(),t=requireMr(),n=new t,i=new r(24),s=new r(11),a=new r(10),l=new r(3),v=new r(7),on=requireGeneratePrime(),u=requireBrowser$b();dh=Ln;function h(hi,vi){return vi=vi||"utf8",Buffer.isBuffer(hi)||(hi=new Buffer(hi,vi)),this._pub=new r(hi),this}function Rn(hi,vi){return vi=vi||"utf8",Buffer.isBuffer(hi)||(hi=new Buffer(hi,vi)),this._priv=new r(hi),this}var D={};function Mn(hi,vi){var gi=vi.toString("hex"),Ri=[gi,hi.toString(16)].join("_");if(Ri in D)return D[Ri];var Si=0;if(hi.isEven()||!on.simpleSieve||!on.fermatTest(hi)||!n.test(hi))return Si+=1,gi==="02"||gi==="05"?Si+=8:Si+=4,D[Ri]=Si,Si;n.test(hi.shrn(1))||(Si+=2);var Ai;switch(gi){case"02":hi.mod(i).cmp(s)&&(Si+=8);break;case"05":Ai=hi.mod(a),Ai.cmp(l)&&Ai.cmp(v)&&(Si+=8);break;default:Si+=4}return D[Ri]=Si,Si}function Ln(hi,vi,gi){this.setGenerator(vi),this.__prime=new r(hi),this._prime=r.mont(this.__prime),this._primeLen=hi.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,gi?(this.setPublicKey=h,this.setPrivateKey=Rn):this._primeCode=8}Object.defineProperty(Ln.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=Mn(this.__prime,this.__gen)),this._primeCode}}),Ln.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()},Ln.prototype.computeSecret=function(hi){hi=new r(hi),hi=hi.toRed(this._prime);var vi=hi.redPow(this._priv).fromRed(),gi=new Buffer(vi.toArray()),Ri=this.getPrime();if(gi.length<Ri.length){var Si=new Buffer(Ri.length-gi.length);Si.fill(0),gi=Buffer.concat([Si,gi])}return gi},Ln.prototype.getPublicKey=function(vi){return jn(this._pub,vi)},Ln.prototype.getPrivateKey=function(vi){return jn(this._priv,vi)},Ln.prototype.getPrime=function(hi){return jn(this.__prime,hi)},Ln.prototype.getGenerator=function(hi){return jn(this._gen,hi)},Ln.prototype.setGenerator=function(hi,vi){return vi=vi||"utf8",Buffer.isBuffer(hi)||(hi=new Buffer(hi,vi)),this.__gen=hi,this._gen=new r(hi),this};function jn(hi,vi){var gi=new Buffer(hi.toArray());return vi?gi.toString(vi):gi}return dh}var hasRequiredBrowser$5;function requireBrowser$5(){if(hasRequiredBrowser$5)return browser$5;hasRequiredBrowser$5=1;var r=requireGeneratePrime(),t=require$$1$1,n=requireDh();function i(l){var v=new Buffer(t[l].prime,"hex"),on=new Buffer(t[l].gen,"hex");return new n(v,on)}var s={binary:!0,hex:!0,base64:!0};function a(l,v,on,u){return Buffer.isBuffer(v)||s[v]===void 0?a(l,"binary",v,on):(v=v||"binary",u=u||"binary",on=on||new Buffer([2]),Buffer.isBuffer(on)||(on=new Buffer(on,u)),typeof l=="number"?new n(r(l,on),on,!0):(Buffer.isBuffer(l)||(l=new Buffer(l,v)),new n(l,on,!0)))}return browser$5.DiffieHellmanGroup=browser$5.createDiffieHellmanGroup=browser$5.getDiffieHellman=i,browser$5.createDiffieHellman=browser$5.DiffieHellman=a,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(t,n,i,s){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var a=arguments.length,l,v;switch(a){case 0:case 1:return process$1.nextTick(t);case 2:return process$1.nextTick(function(){t.call(null,n)});case 3:return process$1.nextTick(function(){t.call(null,n,i)});case 4:return process$1.nextTick(function(){t.call(null,n,i,s)});default:for(l=new Array(a-1),v=0;v<l.length;)l[v++]=arguments[v];return process$1.nextTick(function(){t.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(t){return r.call(t)=="[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,t){var n=requireDist(),i=n.Buffer;function s(l,v){for(var on in l)v[on]=l[on]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?r.exports=n:(s(n,t),t.Buffer=a);function a(l,v,on){return i(l,v,on)}s(i,a),a.from=function(l,v,on){if(typeof l=="number")throw new TypeError("Argument must not be a number");return i(l,v,on)},a.alloc=function(l,v,on){if(typeof l!="number")throw new TypeError("Argument must be a number");var u=i(l);return v!==void 0?typeof on=="string"?u.fill(v,on):u.fill(v):u.fill(0),u},a.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return i(l)},a.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(l)}}(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var util={},hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util;hasRequiredUtil=1;function r(jn){return Array.isArray?Array.isArray(jn):Ln(jn)==="[object Array]"}util.isArray=r;function t(jn){return typeof jn=="boolean"}util.isBoolean=t;function n(jn){return jn===null}util.isNull=n;function i(jn){return jn==null}util.isNullOrUndefined=i;function s(jn){return typeof jn=="number"}util.isNumber=s;function a(jn){return typeof jn=="string"}util.isString=a;function l(jn){return typeof jn=="symbol"}util.isSymbol=l;function v(jn){return jn===void 0}util.isUndefined=v;function on(jn){return Ln(jn)==="[object RegExp]"}util.isRegExp=on;function u(jn){return typeof jn=="object"&&jn!==null}util.isObject=u;function h(jn){return Ln(jn)==="[object Date]"}util.isDate=h;function Rn(jn){return Ln(jn)==="[object Error]"||jn instanceof Error}util.isError=Rn;function D(jn){return typeof jn=="function"}util.isFunction=D;function Mn(jn){return jn===null||typeof jn=="boolean"||typeof jn=="number"||typeof jn=="string"||typeof jn=="symbol"||typeof jn>"u"}util.isPrimitive=Mn,util.isBuffer=requireDist().Buffer.isBuffer;function Ln(jn){return Object.prototype.toString.call(jn)}return util}var BufferList={exports:{}},hasRequiredBufferList;function requireBufferList(){return hasRequiredBufferList||(hasRequiredBufferList=1,function(r){function t(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}var n=requireSafeBuffer().Buffer,i=requireUtil$1();function s(a,l,v){a.copy(l,v)}r.exports=function(){function a(){t(this,a),this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(v){var on={data:v,next:null};this.length>0?this.tail.next=on:this.head=on,this.tail=on,++this.length},a.prototype.unshift=function(v){var on={data:v,next:this.head};this.length===0&&(this.tail=on),this.head=on,++this.length},a.prototype.shift=function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(v){if(this.length===0)return"";for(var on=this.head,u=""+on.data;on=on.next;)u+=v+on.data;return u},a.prototype.concat=function(v){if(this.length===0)return n.alloc(0);for(var on=n.allocUnsafe(v>>>0),u=this.head,h=0;u;)s(u.data,on,h),h+=u.data.length,u=u.next;return on},a}(),i&&i.inspect&&i.inspect.custom&&(r.exports.prototype[i.inspect.custom]=function(){var a=i.inspect({length:this.length});return this.constructor.name+" "+a})}(BufferList)),BufferList.exports}var destroy_1,hasRequiredDestroy;function requireDestroy(){if(hasRequiredDestroy)return destroy_1;hasRequiredDestroy=1;var r=requireProcessNextickArgs();function t(s,a){var l=this,v=this._readableState&&this._readableState.destroyed,on=this._writableState&&this._writableState.destroyed;return v||on?(a?a(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(i,this,s)):r.nextTick(i,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(u){!a&&u?l._writableState?l._writableState.errorEmitted||(l._writableState.errorEmitted=!0,r.nextTick(i,l,u)):r.nextTick(i,l,u):a&&a(u)}),this)}function n(){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(s,a){s.emit("error",a)}return destroy_1={destroy:t,undestroy:n},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=jn;function t(mi){var _i=this;this.next=null,this.entry=null,this.finish=function(){yi(_i,mi)}}var n=!process$1.browser&&["v0.10","v0.9."].indexOf(process$1.version.slice(0,5))>-1?setImmediate:r.nextTick,i;jn.WritableState=Mn;var s=Object.create(requireUtil());s.inherits=requireInherits_browser();var a={deprecate:requireBrowser$c()},l=requireStreamBrowser(),v=requireSafeBuffer().Buffer,on=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(mi){return v.from(mi)}function h(mi){return v.isBuffer(mi)||mi instanceof on}var Rn=requireDestroy();s.inherits(jn,l);function D(){}function Mn(mi,_i){i=i||require_stream_duplex(),mi=mi||{};var wi=_i instanceof i;this.objectMode=!!mi.objectMode,wi&&(this.objectMode=this.objectMode||!!mi.writableObjectMode);var Ei=mi.highWaterMark,xi=mi.writableHighWaterMark,Wn=this.objectMode?16:16*1024;Ei||Ei===0?this.highWaterMark=Ei:wi&&(xi||xi===0)?this.highWaterMark=xi:this.highWaterMark=Wn,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 Ti=mi.decodeStrings===!1;this.decodeStrings=!Ti,this.defaultEncoding=mi.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(qi){Ni(_i,qi)},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 t(this)}Mn.prototype.getBuffer=function(){for(var _i=this.bufferedRequest,wi=[];_i;)wi.push(_i),_i=_i.next;return wi},function(){try{Object.defineProperty(Mn.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var Ln;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ln=Function.prototype[Symbol.hasInstance],Object.defineProperty(jn,Symbol.hasInstance,{value:function(mi){return Ln.call(this,mi)?!0:this!==jn?!1:mi&&mi._writableState instanceof Mn}})):Ln=function(mi){return mi instanceof this};function jn(mi){if(i=i||require_stream_duplex(),!Ln.call(jn,this)&&!(this instanceof i))return new jn(mi);this._writableState=new Mn(mi,this),this.writable=!0,mi&&(typeof mi.write=="function"&&(this._write=mi.write),typeof mi.writev=="function"&&(this._writev=mi.writev),typeof mi.destroy=="function"&&(this._destroy=mi.destroy),typeof mi.final=="function"&&(this._final=mi.final)),l.call(this)}jn.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function hi(mi,_i){var wi=new Error("write after end");mi.emit("error",wi),r.nextTick(_i,wi)}function vi(mi,_i,wi,Ei){var xi=!0,Wn=!1;return wi===null?Wn=new TypeError("May not write null values to stream"):typeof wi!="string"&&wi!==void 0&&!_i.objectMode&&(Wn=new TypeError("Invalid non-string/buffer chunk")),Wn&&(mi.emit("error",Wn),r.nextTick(Ei,Wn),xi=!1),xi}jn.prototype.write=function(mi,_i,wi){var Ei=this._writableState,xi=!1,Wn=!Ei.objectMode&&h(mi);return Wn&&!v.isBuffer(mi)&&(mi=u(mi)),typeof _i=="function"&&(wi=_i,_i=null),Wn?_i="buffer":_i||(_i=Ei.defaultEncoding),typeof wi!="function"&&(wi=D),Ei.ended?hi(this,wi):(Wn||vi(this,Ei,mi,wi))&&(Ei.pendingcb++,xi=Ri(this,Ei,Wn,mi,_i,wi)),xi},jn.prototype.cork=function(){var mi=this._writableState;mi.corked++},jn.prototype.uncork=function(){var mi=this._writableState;mi.corked&&(mi.corked--,!mi.writing&&!mi.corked&&!mi.bufferProcessing&&mi.bufferedRequest&&ki(this,mi))},jn.prototype.setDefaultEncoding=function(_i){if(typeof _i=="string"&&(_i=_i.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((_i+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+_i);return this._writableState.defaultEncoding=_i,this};function gi(mi,_i,wi){return!mi.objectMode&&mi.decodeStrings!==!1&&typeof _i=="string"&&(_i=v.from(_i,wi)),_i}Object.defineProperty(jn.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ri(mi,_i,wi,Ei,xi,Wn){if(!wi){var Ti=gi(_i,Ei,xi);Ei!==Ti&&(wi=!0,xi="buffer",Ei=Ti)}var qi=_i.objectMode?1:Ei.length;_i.length+=qi;var Vi=_i.length<_i.highWaterMark;if(Vi||(_i.needDrain=!0),_i.writing||_i.corked){var ji=_i.lastBufferedRequest;_i.lastBufferedRequest={chunk:Ei,encoding:xi,isBuf:wi,callback:Wn,next:null},ji?ji.next=_i.lastBufferedRequest:_i.bufferedRequest=_i.lastBufferedRequest,_i.bufferedRequestCount+=1}else Si(mi,_i,!1,qi,Ei,xi,Wn);return Vi}function Si(mi,_i,wi,Ei,xi,Wn,Ti){_i.writelen=Ei,_i.writecb=Ti,_i.writing=!0,_i.sync=!0,wi?mi._writev(xi,_i.onwrite):mi._write(xi,Wn,_i.onwrite),_i.sync=!1}function Ai(mi,_i,wi,Ei,xi){--_i.pendingcb,wi?(r.nextTick(xi,Ei),r.nextTick(In,mi,_i),mi._writableState.errorEmitted=!0,mi.emit("error",Ei)):(xi(Ei),mi._writableState.errorEmitted=!0,mi.emit("error",Ei),In(mi,_i))}function Ii(mi){mi.writing=!1,mi.writecb=null,mi.length-=mi.writelen,mi.writelen=0}function Ni(mi,_i){var wi=mi._writableState,Ei=wi.sync,xi=wi.writecb;if(Ii(wi),_i)Ai(mi,wi,Ei,_i,xi);else{var Wn=Fi(wi);!Wn&&!wi.corked&&!wi.bufferProcessing&&wi.bufferedRequest&&ki(mi,wi),Ei?n(Ci,mi,wi,Wn,xi):Ci(mi,wi,Wn,xi)}}function Ci(mi,_i,wi,Ei){wi||Oi(mi,_i),_i.pendingcb--,Ei(),In(mi,_i)}function Oi(mi,_i){_i.length===0&&_i.needDrain&&(_i.needDrain=!1,mi.emit("drain"))}function ki(mi,_i){_i.bufferProcessing=!0;var wi=_i.bufferedRequest;if(mi._writev&&wi&&wi.next){var Ei=_i.bufferedRequestCount,xi=new Array(Ei),Wn=_i.corkedRequestsFree;Wn.entry=wi;for(var Ti=0,qi=!0;wi;)xi[Ti]=wi,wi.isBuf||(qi=!1),wi=wi.next,Ti+=1;xi.allBuffers=qi,Si(mi,_i,!0,_i.length,xi,"",Wn.finish),_i.pendingcb++,_i.lastBufferedRequest=null,Wn.next?(_i.corkedRequestsFree=Wn.next,Wn.next=null):_i.corkedRequestsFree=new t(_i),_i.bufferedRequestCount=0}else{for(;wi;){var Vi=wi.chunk,ji=wi.encoding,Bi=wi.callback,Pi=_i.objectMode?1:Vi.length;if(Si(mi,_i,!1,Pi,Vi,ji,Bi),wi=wi.next,_i.bufferedRequestCount--,_i.writing)break}wi===null&&(_i.lastBufferedRequest=null)}_i.bufferedRequest=wi,_i.bufferProcessing=!1}jn.prototype._write=function(mi,_i,wi){wi(new Error("_write() is not implemented"))},jn.prototype._writev=null,jn.prototype.end=function(mi,_i,wi){var Ei=this._writableState;typeof mi=="function"?(wi=mi,mi=null,_i=null):typeof _i=="function"&&(wi=_i,_i=null),mi!=null&&this.write(mi,_i),Ei.corked&&(Ei.corked=1,this.uncork()),Ei.ending||Hn(this,Ei,wi)};function Fi(mi){return mi.ending&&mi.length===0&&mi.bufferedRequest===null&&!mi.finished&&!mi.writing}function bi(mi,_i){mi._final(function(wi){_i.pendingcb--,wi&&mi.emit("error",wi),_i.prefinished=!0,mi.emit("prefinish"),In(mi,_i)})}function Yn(mi,_i){!_i.prefinished&&!_i.finalCalled&&(typeof mi._final=="function"?(_i.pendingcb++,_i.finalCalled=!0,r.nextTick(bi,mi,_i)):(_i.prefinished=!0,mi.emit("prefinish")))}function In(mi,_i){var wi=Fi(_i);return wi&&(Yn(mi,_i),_i.pendingcb===0&&(_i.finished=!0,mi.emit("finish"))),wi}function Hn(mi,_i,wi){_i.ending=!0,In(mi,_i),wi&&(_i.finished?r.nextTick(wi):mi.once("finish",wi)),_i.ended=!0,mi.writable=!1}function yi(mi,_i,wi){var Ei=mi.entry;for(mi.entry=null;Ei;){var xi=Ei.callback;_i.pendingcb--,xi(wi),Ei=Ei.next}_i.corkedRequestsFree.next=mi}return Object.defineProperty(jn.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(mi){this._writableState&&(this._writableState.destroyed=mi)}}),jn.prototype.destroy=Rn.destroy,jn.prototype._undestroy=Rn.undestroy,jn.prototype._destroy=function(mi,_i){this.end(),_i(mi)},_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(),t=Object.keys||function(Rn){var D=[];for(var Mn in Rn)D.push(Mn);return D};_stream_duplex=on;var n=Object.create(requireUtil());n.inherits=requireInherits_browser();var i=require_stream_readable(),s=require_stream_writable();n.inherits(on,i);for(var a=t(s.prototype),l=0;l<a.length;l++){var v=a[l];on.prototype[v]||(on.prototype[v]=s.prototype[v])}function on(Rn){if(!(this instanceof on))return new on(Rn);i.call(this,Rn),s.call(this,Rn),Rn&&Rn.readable===!1&&(this.readable=!1),Rn&&Rn.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,Rn&&Rn.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",u)}Object.defineProperty(on.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function u(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(Rn){Rn.end()}return Object.defineProperty(on.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(Rn){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=Rn,this._writableState.destroyed=Rn)}}),on.prototype._destroy=function(Rn,D){this.push(null),this.end(),r.nextTick(D,Rn)},_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=gi;var t=requireIsarray(),n;gi.ReadableState=vi,requireEvents().EventEmitter;var i=function(Bi,Pi){return Bi.listeners(Pi).length},s=requireStreamBrowser(),a=requireSafeBuffer().Buffer,l=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function v(Bi){return a.from(Bi)}function on(Bi){return a.isBuffer(Bi)||Bi instanceof l}var u=Object.create(requireUtil());u.inherits=requireInherits_browser();var h=requireUtil$1(),Rn=void 0;h&&h.debuglog?Rn=h.debuglog("stream"):Rn=function(){};var D=requireBufferList(),Mn=requireDestroy(),Ln;u.inherits(gi,s);var jn=["error","close","destroy","pause","resume"];function hi(Bi,Pi,zi){if(typeof Bi.prependListener=="function")return Bi.prependListener(Pi,zi);!Bi._events||!Bi._events[Pi]?Bi.on(Pi,zi):t(Bi._events[Pi])?Bi._events[Pi].unshift(zi):Bi._events[Pi]=[zi,Bi._events[Pi]]}function vi(Bi,Pi){n=n||require_stream_duplex(),Bi=Bi||{};var zi=Pi instanceof n;this.objectMode=!!Bi.objectMode,zi&&(this.objectMode=this.objectMode||!!Bi.readableObjectMode);var Hi=Bi.highWaterMark,Ui=Bi.readableHighWaterMark,Mi=this.objectMode?16:16*1024;Hi||Hi===0?this.highWaterMark=Hi:zi&&(Ui||Ui===0)?this.highWaterMark=Ui:this.highWaterMark=Mi,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new D,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=Bi.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Bi.encoding&&(Ln||(Ln=requireString_decoder().StringDecoder),this.decoder=new Ln(Bi.encoding),this.encoding=Bi.encoding)}function gi(Bi){if(n=n||require_stream_duplex(),!(this instanceof gi))return new gi(Bi);this._readableState=new vi(Bi,this),this.readable=!0,Bi&&(typeof Bi.read=="function"&&(this._read=Bi.read),typeof Bi.destroy=="function"&&(this._destroy=Bi.destroy)),s.call(this)}Object.defineProperty(gi.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Bi){this._readableState&&(this._readableState.destroyed=Bi)}}),gi.prototype.destroy=Mn.destroy,gi.prototype._undestroy=Mn.undestroy,gi.prototype._destroy=function(Bi,Pi){this.push(null),Pi(Bi)},gi.prototype.push=function(Bi,Pi){var zi=this._readableState,Hi;return zi.objectMode?Hi=!0:typeof Bi=="string"&&(Pi=Pi||zi.defaultEncoding,Pi!==zi.encoding&&(Bi=a.from(Bi,Pi),Pi=""),Hi=!0),Ri(this,Bi,Pi,!1,Hi)},gi.prototype.unshift=function(Bi){return Ri(this,Bi,null,!0,!1)};function Ri(Bi,Pi,zi,Hi,Ui){var Mi=Bi._readableState;if(Pi===null)Mi.reading=!1,ki(Bi,Mi);else{var Ki;Ui||(Ki=Ai(Mi,Pi)),Ki?Bi.emit("error",Ki):Mi.objectMode||Pi&&Pi.length>0?(typeof Pi!="string"&&!Mi.objectMode&&Object.getPrototypeOf(Pi)!==a.prototype&&(Pi=v(Pi)),Hi?Mi.endEmitted?Bi.emit("error",new Error("stream.unshift() after end event")):Si(Bi,Mi,Pi,!0):Mi.ended?Bi.emit("error",new Error("stream.push() after EOF")):(Mi.reading=!1,Mi.decoder&&!zi?(Pi=Mi.decoder.write(Pi),Mi.objectMode||Pi.length!==0?Si(Bi,Mi,Pi,!1):Yn(Bi,Mi)):Si(Bi,Mi,Pi,!1))):Hi||(Mi.reading=!1)}return Ii(Mi)}function Si(Bi,Pi,zi,Hi){Pi.flowing&&Pi.length===0&&!Pi.sync?(Bi.emit("data",zi),Bi.read(0)):(Pi.length+=Pi.objectMode?1:zi.length,Hi?Pi.buffer.unshift(zi):Pi.buffer.push(zi),Pi.needReadable&&Fi(Bi)),Yn(Bi,Pi)}function Ai(Bi,Pi){var zi;return!on(Pi)&&typeof Pi!="string"&&Pi!==void 0&&!Bi.objectMode&&(zi=new TypeError("Invalid non-string/buffer chunk")),zi}function Ii(Bi){return!Bi.ended&&(Bi.needReadable||Bi.length<Bi.highWaterMark||Bi.length===0)}gi.prototype.isPaused=function(){return this._readableState.flowing===!1},gi.prototype.setEncoding=function(Bi){return Ln||(Ln=requireString_decoder().StringDecoder),this._readableState.decoder=new Ln(Bi),this._readableState.encoding=Bi,this};var Ni=8388608;function Ci(Bi){return Bi>=Ni?Bi=Ni:(Bi--,Bi|=Bi>>>1,Bi|=Bi>>>2,Bi|=Bi>>>4,Bi|=Bi>>>8,Bi|=Bi>>>16,Bi++),Bi}function Oi(Bi,Pi){return Bi<=0||Pi.length===0&&Pi.ended?0:Pi.objectMode?1:Bi!==Bi?Pi.flowing&&Pi.length?Pi.buffer.head.data.length:Pi.length:(Bi>Pi.highWaterMark&&(Pi.highWaterMark=Ci(Bi)),Bi<=Pi.length?Bi:Pi.ended?Pi.length:(Pi.needReadable=!0,0))}gi.prototype.read=function(Bi){Rn("read",Bi),Bi=parseInt(Bi,10);var Pi=this._readableState,zi=Bi;if(Bi!==0&&(Pi.emittedReadable=!1),Bi===0&&Pi.needReadable&&(Pi.length>=Pi.highWaterMark||Pi.ended))return Rn("read: emitReadable",Pi.length,Pi.ended),Pi.length===0&&Pi.ended?qi(this):Fi(this),null;if(Bi=Oi(Bi,Pi),Bi===0&&Pi.ended)return Pi.length===0&&qi(this),null;var Hi=Pi.needReadable;Rn("need readable",Hi),(Pi.length===0||Pi.length-Bi<Pi.highWaterMark)&&(Hi=!0,Rn("length less than watermark",Hi)),Pi.ended||Pi.reading?(Hi=!1,Rn("reading or ended",Hi)):Hi&&(Rn("do read"),Pi.reading=!0,Pi.sync=!0,Pi.length===0&&(Pi.needReadable=!0),this._read(Pi.highWaterMark),Pi.sync=!1,Pi.reading||(Bi=Oi(zi,Pi)));var Ui;return Bi>0?Ui=Ei(Bi,Pi):Ui=null,Ui===null?(Pi.needReadable=!0,Bi=0):Pi.length-=Bi,Pi.length===0&&(Pi.ended||(Pi.needReadable=!0),zi!==Bi&&Pi.ended&&qi(this)),Ui!==null&&this.emit("data",Ui),Ui};function ki(Bi,Pi){if(!Pi.ended){if(Pi.decoder){var zi=Pi.decoder.end();zi&&zi.length&&(Pi.buffer.push(zi),Pi.length+=Pi.objectMode?1:zi.length)}Pi.ended=!0,Fi(Bi)}}function Fi(Bi){var Pi=Bi._readableState;Pi.needReadable=!1,Pi.emittedReadable||(Rn("emitReadable",Pi.flowing),Pi.emittedReadable=!0,Pi.sync?r.nextTick(bi,Bi):bi(Bi))}function bi(Bi){Rn("emit readable"),Bi.emit("readable"),wi(Bi)}function Yn(Bi,Pi){Pi.readingMore||(Pi.readingMore=!0,r.nextTick(In,Bi,Pi))}function In(Bi,Pi){for(var zi=Pi.length;!Pi.reading&&!Pi.flowing&&!Pi.ended&&Pi.length<Pi.highWaterMark&&(Rn("maybeReadMore read 0"),Bi.read(0),zi!==Pi.length);)zi=Pi.length;Pi.readingMore=!1}gi.prototype._read=function(Bi){this.emit("error",new Error("_read() is not implemented"))},gi.prototype.pipe=function(Bi,Pi){var zi=this,Hi=this._readableState;switch(Hi.pipesCount){case 0:Hi.pipes=Bi;break;case 1:Hi.pipes=[Hi.pipes,Bi];break;default:Hi.pipes.push(Bi);break}Hi.pipesCount+=1,Rn("pipe count=%d opts=%j",Hi.pipesCount,Pi);var Ui=(!Pi||Pi.end!==!1)&&Bi!==process$1.stdout&&Bi!==process$1.stderr,Mi=Ui?Qi:ta;Hi.endEmitted?r.nextTick(Mi):zi.once("end",Mi),Bi.on("unpipe",Ki);function Ki(oa,fa){Rn("onunpipe"),oa===zi&&fa&&fa.hasUnpiped===!1&&(fa.hasUnpiped=!0,ia())}function Qi(){Rn("onend"),Bi.end()}var Yi=Hn(zi);Bi.on("drain",Yi);var ea=!1;function ia(){Rn("cleanup"),Bi.removeListener("close",Xi),Bi.removeListener("finish",na),Bi.removeListener("drain",Yi),Bi.removeListener("error",ua),Bi.removeListener("unpipe",Ki),zi.removeListener("end",Qi),zi.removeListener("end",ta),zi.removeListener("data",Ji),ea=!0,Hi.awaitDrain&&(!Bi._writableState||Bi._writableState.needDrain)&&Yi()}var Zi=!1;zi.on("data",Ji);function Ji(oa){Rn("ondata"),Zi=!1;var fa=Bi.write(oa);fa===!1&&!Zi&&((Hi.pipesCount===1&&Hi.pipes===Bi||Hi.pipesCount>1&&ji(Hi.pipes,Bi)!==-1)&&!ea&&(Rn("false write response, pause",Hi.awaitDrain),Hi.awaitDrain++,Zi=!0),zi.pause())}function ua(oa){Rn("onerror",oa),ta(),Bi.removeListener("error",ua),i(Bi,"error")===0&&Bi.emit("error",oa)}hi(Bi,"error",ua);function Xi(){Bi.removeListener("finish",na),ta()}Bi.once("close",Xi);function na(){Rn("onfinish"),Bi.removeListener("close",Xi),ta()}Bi.once("finish",na);function ta(){Rn("unpipe"),zi.unpipe(Bi)}return Bi.emit("pipe",zi),Hi.flowing||(Rn("pipe resume"),zi.resume()),Bi};function Hn(Bi){return function(){var Pi=Bi._readableState;Rn("pipeOnDrain",Pi.awaitDrain),Pi.awaitDrain&&Pi.awaitDrain--,Pi.awaitDrain===0&&i(Bi,"data")&&(Pi.flowing=!0,wi(Bi))}}gi.prototype.unpipe=function(Bi){var Pi=this._readableState,zi={hasUnpiped:!1};if(Pi.pipesCount===0)return this;if(Pi.pipesCount===1)return Bi&&Bi!==Pi.pipes?this:(Bi||(Bi=Pi.pipes),Pi.pipes=null,Pi.pipesCount=0,Pi.flowing=!1,Bi&&Bi.emit("unpipe",this,zi),this);if(!Bi){var Hi=Pi.pipes,Ui=Pi.pipesCount;Pi.pipes=null,Pi.pipesCount=0,Pi.flowing=!1;for(var Mi=0;Mi<Ui;Mi++)Hi[Mi].emit("unpipe",this,{hasUnpiped:!1});return this}var Ki=ji(Pi.pipes,Bi);return Ki===-1?this:(Pi.pipes.splice(Ki,1),Pi.pipesCount-=1,Pi.pipesCount===1&&(Pi.pipes=Pi.pipes[0]),Bi.emit("unpipe",this,zi),this)},gi.prototype.on=function(Bi,Pi){var zi=s.prototype.on.call(this,Bi,Pi);if(Bi==="data")this._readableState.flowing!==!1&&this.resume();else if(Bi==="readable"){var Hi=this._readableState;!Hi.endEmitted&&!Hi.readableListening&&(Hi.readableListening=Hi.needReadable=!0,Hi.emittedReadable=!1,Hi.reading?Hi.length&&Fi(this):r.nextTick(yi,this))}return zi},gi.prototype.addListener=gi.prototype.on;function yi(Bi){Rn("readable nexttick read 0"),Bi.read(0)}gi.prototype.resume=function(){var Bi=this._readableState;return Bi.flowing||(Rn("resume"),Bi.flowing=!0,mi(this,Bi)),this};function mi(Bi,Pi){Pi.resumeScheduled||(Pi.resumeScheduled=!0,r.nextTick(_i,Bi,Pi))}function _i(Bi,Pi){Pi.reading||(Rn("resume read 0"),Bi.read(0)),Pi.resumeScheduled=!1,Pi.awaitDrain=0,Bi.emit("resume"),wi(Bi),Pi.flowing&&!Pi.reading&&Bi.read(0)}gi.prototype.pause=function(){return Rn("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Rn("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function wi(Bi){var Pi=Bi._readableState;for(Rn("flow",Pi.flowing);Pi.flowing&&Bi.read()!==null;);}gi.prototype.wrap=function(Bi){var Pi=this,zi=this._readableState,Hi=!1;Bi.on("end",function(){if(Rn("wrapped end"),zi.decoder&&!zi.ended){var Ki=zi.decoder.end();Ki&&Ki.length&&Pi.push(Ki)}Pi.push(null)}),Bi.on("data",function(Ki){if(Rn("wrapped data"),zi.decoder&&(Ki=zi.decoder.write(Ki)),!(zi.objectMode&&Ki==null)&&!(!zi.objectMode&&(!Ki||!Ki.length))){var Qi=Pi.push(Ki);Qi||(Hi=!0,Bi.pause())}});for(var Ui in Bi)this[Ui]===void 0&&typeof Bi[Ui]=="function"&&(this[Ui]=function(Ki){return function(){return Bi[Ki].apply(Bi,arguments)}}(Ui));for(var Mi=0;Mi<jn.length;Mi++)Bi.on(jn[Mi],this.emit.bind(this,jn[Mi]));return this._read=function(Ki){Rn("wrapped _read",Ki),Hi&&(Hi=!1,Bi.resume())},this},Object.defineProperty(gi.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),gi._fromList=Ei;function Ei(Bi,Pi){if(Pi.length===0)return null;var zi;return Pi.objectMode?zi=Pi.buffer.shift():!Bi||Bi>=Pi.length?(Pi.decoder?zi=Pi.buffer.join(""):Pi.buffer.length===1?zi=Pi.buffer.head.data:zi=Pi.buffer.concat(Pi.length),Pi.buffer.clear()):zi=xi(Bi,Pi.buffer,Pi.decoder),zi}function xi(Bi,Pi,zi){var Hi;return Bi<Pi.head.data.length?(Hi=Pi.head.data.slice(0,Bi),Pi.head.data=Pi.head.data.slice(Bi)):Bi===Pi.head.data.length?Hi=Pi.shift():Hi=zi?Wn(Bi,Pi):Ti(Bi,Pi),Hi}function Wn(Bi,Pi){var zi=Pi.head,Hi=1,Ui=zi.data;for(Bi-=Ui.length;zi=zi.next;){var Mi=zi.data,Ki=Bi>Mi.length?Mi.length:Bi;if(Ki===Mi.length?Ui+=Mi:Ui+=Mi.slice(0,Bi),Bi-=Ki,Bi===0){Ki===Mi.length?(++Hi,zi.next?Pi.head=zi.next:Pi.head=Pi.tail=null):(Pi.head=zi,zi.data=Mi.slice(Ki));break}++Hi}return Pi.length-=Hi,Ui}function Ti(Bi,Pi){var zi=a.allocUnsafe(Bi),Hi=Pi.head,Ui=1;for(Hi.data.copy(zi),Bi-=Hi.data.length;Hi=Hi.next;){var Mi=Hi.data,Ki=Bi>Mi.length?Mi.length:Bi;if(Mi.copy(zi,zi.length-Bi,0,Ki),Bi-=Ki,Bi===0){Ki===Mi.length?(++Ui,Hi.next?Pi.head=Hi.next:Pi.head=Pi.tail=null):(Pi.head=Hi,Hi.data=Mi.slice(Ki));break}++Ui}return Pi.length-=Ui,zi}function qi(Bi){var Pi=Bi._readableState;if(Pi.length>0)throw new Error('"endReadable()" called on non-empty stream');Pi.endEmitted||(Pi.ended=!0,r.nextTick(Vi,Pi,Bi))}function Vi(Bi,Pi){!Bi.endEmitted&&Bi.length===0&&(Bi.endEmitted=!0,Pi.readable=!1,Pi.emit("end"))}function ji(Bi,Pi){for(var zi=0,Hi=Bi.length;zi<Hi;zi++)if(Bi[zi]===Pi)return zi;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(),t=Object.create(requireUtil());t.inherits=requireInherits_browser(),t.inherits(i,r);function n(l,v){var on=this._transformState;on.transforming=!1;var u=on.writecb;if(!u)return this.emit("error",new Error("write callback called multiple times"));on.writechunk=null,on.writecb=null,v!=null&&this.push(v),u(l);var h=this._readableState;h.reading=!1,(h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}function i(l){if(!(this instanceof i))return new i(l);r.call(this,l),this._transformState={afterTransform:n.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",s)}function s(){var l=this;typeof this._flush=="function"?this._flush(function(v,on){a(l,v,on)}):a(this,null,null)}i.prototype.push=function(l,v){return this._transformState.needTransform=!1,r.prototype.push.call(this,l,v)},i.prototype._transform=function(l,v,on){throw new Error("_transform() is not implemented")},i.prototype._write=function(l,v,on){var u=this._transformState;if(u.writecb=on,u.writechunk=l,u.writeencoding=v,!u.transforming){var h=this._readableState;(u.needTransform||h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}},i.prototype._read=function(l){var v=this._transformState;v.writechunk!==null&&v.writecb&&!v.transforming?(v.transforming=!0,this._transform(v.writechunk,v.writeencoding,v.afterTransform)):v.needTransform=!0},i.prototype._destroy=function(l,v){var on=this;r.prototype._destroy.call(this,l,function(u){v(u),on.emit("close")})};function a(l,v,on){if(v)return l.emit("error",v);if(on!=null&&l.push(on),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=n;var r=require_stream_transform(),t=Object.create(requireUtil());t.inherits=requireInherits_browser(),t.inherits(n,r);function n(i){if(!(this instanceof n))return new n(i);r.call(this,i)}return n.prototype._transform=function(i,s,a){a(null,i)},_stream_passthrough}var hasRequiredReadableBrowser;function requireReadableBrowser(){return hasRequiredReadableBrowser||(hasRequiredReadableBrowser=1,function(r,t){t=r.exports=require_stream_readable(),t.Stream=t,t.Readable=t,t.Writable=require_stream_writable(),t.Duplex=require_stream_duplex(),t.Transform=require_stream_transform(),t.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(t,n){function i(Yn,In){if(!Yn)throw new Error(In||"Assertion failed")}function s(Yn,In){Yn.super_=In;var Hn=function(){};Hn.prototype=In.prototype,Yn.prototype=new Hn,Yn.prototype.constructor=Yn}function a(Yn,In,Hn){if(a.isBN(Yn))return Yn;this.negative=0,this.words=null,this.length=0,this.red=null,Yn!==null&&((In==="le"||In==="be")&&(Hn=In,In=10),this._init(Yn||0,In||10,Hn||"be"))}typeof t=="object"?t.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var l;try{typeof window<"u"&&typeof window.Buffer<"u"?l=window.Buffer:l=requireDist().Buffer}catch{}a.isBN=function(In){return In instanceof a?!0:In!==null&&typeof In=="object"&&In.constructor.wordSize===a.wordSize&&Array.isArray(In.words)},a.max=function(In,Hn){return In.cmp(Hn)>0?In:Hn},a.min=function(In,Hn){return In.cmp(Hn)<0?In:Hn},a.prototype._init=function(In,Hn,yi){if(typeof In=="number")return this._initNumber(In,Hn,yi);if(typeof In=="object")return this._initArray(In,Hn,yi);Hn==="hex"&&(Hn=16),i(Hn===(Hn|0)&&Hn>=2&&Hn<=36),In=In.toString().replace(/\s+/g,"");var mi=0;In[0]==="-"&&(mi++,this.negative=1),mi<In.length&&(Hn===16?this._parseHex(In,mi,yi):(this._parseBase(In,Hn,mi),yi==="le"&&this._initArray(this.toArray(),Hn,yi)))},a.prototype._initNumber=function(In,Hn,yi){In<0&&(this.negative=1,In=-In),In<67108864?(this.words=[In&67108863],this.length=1):In<4503599627370496?(this.words=[In&67108863,In/67108864&67108863],this.length=2):(i(In<9007199254740992),this.words=[In&67108863,In/67108864&67108863,1],this.length=3),yi==="le"&&this._initArray(this.toArray(),Hn,yi)},a.prototype._initArray=function(In,Hn,yi){if(i(typeof In.length=="number"),In.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(In.length/3),this.words=new Array(this.length);for(var mi=0;mi<this.length;mi++)this.words[mi]=0;var _i,wi,Ei=0;if(yi==="be")for(mi=In.length-1,_i=0;mi>=0;mi-=3)wi=In[mi]|In[mi-1]<<8|In[mi-2]<<16,this.words[_i]|=wi<<Ei&67108863,this.words[_i+1]=wi>>>26-Ei&67108863,Ei+=24,Ei>=26&&(Ei-=26,_i++);else if(yi==="le")for(mi=0,_i=0;mi<In.length;mi+=3)wi=In[mi]|In[mi+1]<<8|In[mi+2]<<16,this.words[_i]|=wi<<Ei&67108863,this.words[_i+1]=wi>>>26-Ei&67108863,Ei+=24,Ei>=26&&(Ei-=26,_i++);return this._strip()};function v(Yn,In){var Hn=Yn.charCodeAt(In);if(Hn>=48&&Hn<=57)return Hn-48;if(Hn>=65&&Hn<=70)return Hn-55;if(Hn>=97&&Hn<=102)return Hn-87;i(!1,"Invalid character in "+Yn)}function on(Yn,In,Hn){var yi=v(Yn,Hn);return Hn-1>=In&&(yi|=v(Yn,Hn-1)<<4),yi}a.prototype._parseHex=function(In,Hn,yi){this.length=Math.ceil((In.length-Hn)/6),this.words=new Array(this.length);for(var mi=0;mi<this.length;mi++)this.words[mi]=0;var _i=0,wi=0,Ei;if(yi==="be")for(mi=In.length-1;mi>=Hn;mi-=2)Ei=on(In,Hn,mi)<<_i,this.words[wi]|=Ei&67108863,_i>=18?(_i-=18,wi+=1,this.words[wi]|=Ei>>>26):_i+=8;else{var xi=In.length-Hn;for(mi=xi%2===0?Hn+1:Hn;mi<In.length;mi+=2)Ei=on(In,Hn,mi)<<_i,this.words[wi]|=Ei&67108863,_i>=18?(_i-=18,wi+=1,this.words[wi]|=Ei>>>26):_i+=8}this._strip()};function u(Yn,In,Hn,yi){for(var mi=0,_i=0,wi=Math.min(Yn.length,Hn),Ei=In;Ei<wi;Ei++){var xi=Yn.charCodeAt(Ei)-48;mi*=yi,xi>=49?_i=xi-49+10:xi>=17?_i=xi-17+10:_i=xi,i(xi>=0&&_i<yi,"Invalid character"),mi+=_i}return mi}a.prototype._parseBase=function(In,Hn,yi){this.words=[0],this.length=1;for(var mi=0,_i=1;_i<=67108863;_i*=Hn)mi++;mi--,_i=_i/Hn|0;for(var wi=In.length-yi,Ei=wi%mi,xi=Math.min(wi,wi-Ei)+yi,Wn=0,Ti=yi;Ti<xi;Ti+=mi)Wn=u(In,Ti,Ti+mi,Hn),this.imuln(_i),this.words[0]+Wn<67108864?this.words[0]+=Wn:this._iaddn(Wn);if(Ei!==0){var qi=1;for(Wn=u(In,Ti,In.length,Hn),Ti=0;Ti<Ei;Ti++)qi*=Hn;this.imuln(qi),this.words[0]+Wn<67108864?this.words[0]+=Wn:this._iaddn(Wn)}this._strip()},a.prototype.copy=function(In){In.words=new Array(this.length);for(var Hn=0;Hn<this.length;Hn++)In.words[Hn]=this.words[Hn];In.length=this.length,In.negative=this.negative,In.red=this.red};function h(Yn,In){Yn.words=In.words,Yn.length=In.length,Yn.negative=In.negative,Yn.red=In.red}if(a.prototype._move=function(In){h(In,this)},a.prototype.clone=function(){var In=new a(null);return this.copy(In),In},a.prototype._expand=function(In){for(;this.length<In;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=Rn}catch{a.prototype.inspect=Rn}else a.prototype.inspect=Rn;function Rn(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var D=["","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"],Mn=[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],Ln=[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];a.prototype.toString=function(In,Hn){In=In||10,Hn=Hn|0||1;var yi;if(In===16||In==="hex"){yi="";for(var mi=0,_i=0,wi=0;wi<this.length;wi++){var Ei=this.words[wi],xi=((Ei<<mi|_i)&16777215).toString(16);_i=Ei>>>24-mi&16777215,mi+=2,mi>=26&&(mi-=26,wi--),_i!==0||wi!==this.length-1?yi=D[6-xi.length]+xi+yi:yi=xi+yi}for(_i!==0&&(yi=_i.toString(16)+yi);yi.length%Hn!==0;)yi="0"+yi;return this.negative!==0&&(yi="-"+yi),yi}if(In===(In|0)&&In>=2&&In<=36){var Wn=Mn[In],Ti=Ln[In];yi="";var qi=this.clone();for(qi.negative=0;!qi.isZero();){var Vi=qi.modrn(Ti).toString(In);qi=qi.idivn(Ti),qi.isZero()?yi=Vi+yi:yi=D[Wn-Vi.length]+Vi+yi}for(this.isZero()&&(yi="0"+yi);yi.length%Hn!==0;)yi="0"+yi;return this.negative!==0&&(yi="-"+yi),yi}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var In=this.words[0];return this.length===2?In+=this.words[1]*67108864:this.length===3&&this.words[2]===1?In+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-In:In},a.prototype.toJSON=function(){return this.toString(16,2)},l&&(a.prototype.toBuffer=function(In,Hn){return this.toArrayLike(l,In,Hn)}),a.prototype.toArray=function(In,Hn){return this.toArrayLike(Array,In,Hn)};var jn=function(In,Hn){return In.allocUnsafe?In.allocUnsafe(Hn):new In(Hn)};a.prototype.toArrayLike=function(In,Hn,yi){this._strip();var mi=this.byteLength(),_i=yi||Math.max(1,mi);i(mi<=_i,"byte array longer than desired length"),i(_i>0,"Requested array length <= 0");var wi=jn(In,_i),Ei=Hn==="le"?"LE":"BE";return this["_toArrayLike"+Ei](wi,mi),wi},a.prototype._toArrayLikeLE=function(In,Hn){for(var yi=0,mi=0,_i=0,wi=0;_i<this.length;_i++){var Ei=this.words[_i]<<wi|mi;In[yi++]=Ei&255,yi<In.length&&(In[yi++]=Ei>>8&255),yi<In.length&&(In[yi++]=Ei>>16&255),wi===6?(yi<In.length&&(In[yi++]=Ei>>24&255),mi=0,wi=0):(mi=Ei>>>24,wi+=2)}if(yi<In.length)for(In[yi++]=mi;yi<In.length;)In[yi++]=0},a.prototype._toArrayLikeBE=function(In,Hn){for(var yi=In.length-1,mi=0,_i=0,wi=0;_i<this.length;_i++){var Ei=this.words[_i]<<wi|mi;In[yi--]=Ei&255,yi>=0&&(In[yi--]=Ei>>8&255),yi>=0&&(In[yi--]=Ei>>16&255),wi===6?(yi>=0&&(In[yi--]=Ei>>24&255),mi=0,wi=0):(mi=Ei>>>24,wi+=2)}if(yi>=0)for(In[yi--]=mi;yi>=0;)In[yi--]=0},Math.clz32?a.prototype._countBits=function(In){return 32-Math.clz32(In)}:a.prototype._countBits=function(In){var Hn=In,yi=0;return Hn>=4096&&(yi+=13,Hn>>>=13),Hn>=64&&(yi+=7,Hn>>>=7),Hn>=8&&(yi+=4,Hn>>>=4),Hn>=2&&(yi+=2,Hn>>>=2),yi+Hn},a.prototype._zeroBits=function(In){if(In===0)return 26;var Hn=In,yi=0;return(Hn&8191)===0&&(yi+=13,Hn>>>=13),(Hn&127)===0&&(yi+=7,Hn>>>=7),(Hn&15)===0&&(yi+=4,Hn>>>=4),(Hn&3)===0&&(yi+=2,Hn>>>=2),(Hn&1)===0&&yi++,yi},a.prototype.bitLength=function(){var In=this.words[this.length-1],Hn=this._countBits(In);return(this.length-1)*26+Hn};function hi(Yn){for(var In=new Array(Yn.bitLength()),Hn=0;Hn<In.length;Hn++){var yi=Hn/26|0,mi=Hn%26;In[Hn]=Yn.words[yi]>>>mi&1}return In}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var In=0,Hn=0;Hn<this.length;Hn++){var yi=this._zeroBits(this.words[Hn]);if(In+=yi,yi!==26)break}return In},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(In){return this.negative!==0?this.abs().inotn(In).iaddn(1):this.clone()},a.prototype.fromTwos=function(In){return this.testn(In-1)?this.notn(In).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(In){for(;this.length<In.length;)this.words[this.length++]=0;for(var Hn=0;Hn<In.length;Hn++)this.words[Hn]=this.words[Hn]|In.words[Hn];return this._strip()},a.prototype.ior=function(In){return i((this.negative|In.negative)===0),this.iuor(In)},a.prototype.or=function(In){return this.length>In.length?this.clone().ior(In):In.clone().ior(this)},a.prototype.uor=function(In){return this.length>In.length?this.clone().iuor(In):In.clone().iuor(this)},a.prototype.iuand=function(In){var Hn;this.length>In.length?Hn=In:Hn=this;for(var yi=0;yi<Hn.length;yi++)this.words[yi]=this.words[yi]&In.words[yi];return this.length=Hn.length,this._strip()},a.prototype.iand=function(In){return i((this.negative|In.negative)===0),this.iuand(In)},a.prototype.and=function(In){return this.length>In.length?this.clone().iand(In):In.clone().iand(this)},a.prototype.uand=function(In){return this.length>In.length?this.clone().iuand(In):In.clone().iuand(this)},a.prototype.iuxor=function(In){var Hn,yi;this.length>In.length?(Hn=this,yi=In):(Hn=In,yi=this);for(var mi=0;mi<yi.length;mi++)this.words[mi]=Hn.words[mi]^yi.words[mi];if(this!==Hn)for(;mi<Hn.length;mi++)this.words[mi]=Hn.words[mi];return this.length=Hn.length,this._strip()},a.prototype.ixor=function(In){return i((this.negative|In.negative)===0),this.iuxor(In)},a.prototype.xor=function(In){return this.length>In.length?this.clone().ixor(In):In.clone().ixor(this)},a.prototype.uxor=function(In){return this.length>In.length?this.clone().iuxor(In):In.clone().iuxor(this)},a.prototype.inotn=function(In){i(typeof In=="number"&&In>=0);var Hn=Math.ceil(In/26)|0,yi=In%26;this._expand(Hn),yi>0&&Hn--;for(var mi=0;mi<Hn;mi++)this.words[mi]=~this.words[mi]&67108863;return yi>0&&(this.words[mi]=~this.words[mi]&67108863>>26-yi),this._strip()},a.prototype.notn=function(In){return this.clone().inotn(In)},a.prototype.setn=function(In,Hn){i(typeof In=="number"&&In>=0);var yi=In/26|0,mi=In%26;return this._expand(yi+1),Hn?this.words[yi]=this.words[yi]|1<<mi:this.words[yi]=this.words[yi]&~(1<<mi),this._strip()},a.prototype.iadd=function(In){var Hn;if(this.negative!==0&&In.negative===0)return this.negative=0,Hn=this.isub(In),this.negative^=1,this._normSign();if(this.negative===0&&In.negative!==0)return In.negative=0,Hn=this.isub(In),In.negative=1,Hn._normSign();var yi,mi;this.length>In.length?(yi=this,mi=In):(yi=In,mi=this);for(var _i=0,wi=0;wi<mi.length;wi++)Hn=(yi.words[wi]|0)+(mi.words[wi]|0)+_i,this.words[wi]=Hn&67108863,_i=Hn>>>26;for(;_i!==0&&wi<yi.length;wi++)Hn=(yi.words[wi]|0)+_i,this.words[wi]=Hn&67108863,_i=Hn>>>26;if(this.length=yi.length,_i!==0)this.words[this.length]=_i,this.length++;else if(yi!==this)for(;wi<yi.length;wi++)this.words[wi]=yi.words[wi];return this},a.prototype.add=function(In){var Hn;return In.negative!==0&&this.negative===0?(In.negative=0,Hn=this.sub(In),In.negative^=1,Hn):In.negative===0&&this.negative!==0?(this.negative=0,Hn=In.sub(this),this.negative=1,Hn):this.length>In.length?this.clone().iadd(In):In.clone().iadd(this)},a.prototype.isub=function(In){if(In.negative!==0){In.negative=0;var Hn=this.iadd(In);return In.negative=1,Hn._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(In),this.negative=1,this._normSign();var yi=this.cmp(In);if(yi===0)return this.negative=0,this.length=1,this.words[0]=0,this;var mi,_i;yi>0?(mi=this,_i=In):(mi=In,_i=this);for(var wi=0,Ei=0;Ei<_i.length;Ei++)Hn=(mi.words[Ei]|0)-(_i.words[Ei]|0)+wi,wi=Hn>>26,this.words[Ei]=Hn&67108863;for(;wi!==0&&Ei<mi.length;Ei++)Hn=(mi.words[Ei]|0)+wi,wi=Hn>>26,this.words[Ei]=Hn&67108863;if(wi===0&&Ei<mi.length&&mi!==this)for(;Ei<mi.length;Ei++)this.words[Ei]=mi.words[Ei];return this.length=Math.max(this.length,Ei),mi!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(In){return this.clone().isub(In)};function vi(Yn,In,Hn){Hn.negative=In.negative^Yn.negative;var yi=Yn.length+In.length|0;Hn.length=yi,yi=yi-1|0;var mi=Yn.words[0]|0,_i=In.words[0]|0,wi=mi*_i,Ei=wi&67108863,xi=wi/67108864|0;Hn.words[0]=Ei;for(var Wn=1;Wn<yi;Wn++){for(var Ti=xi>>>26,qi=xi&67108863,Vi=Math.min(Wn,In.length-1),ji=Math.max(0,Wn-Yn.length+1);ji<=Vi;ji++){var Bi=Wn-ji|0;mi=Yn.words[Bi]|0,_i=In.words[ji]|0,wi=mi*_i+qi,Ti+=wi/67108864|0,qi=wi&67108863}Hn.words[Wn]=qi|0,xi=Ti|0}return xi!==0?Hn.words[Wn]=xi|0:Hn.length--,Hn._strip()}var gi=function(In,Hn,yi){var mi=In.words,_i=Hn.words,wi=yi.words,Ei=0,xi,Wn,Ti,qi=mi[0]|0,Vi=qi&8191,ji=qi>>>13,Bi=mi[1]|0,Pi=Bi&8191,zi=Bi>>>13,Hi=mi[2]|0,Ui=Hi&8191,Mi=Hi>>>13,Ki=mi[3]|0,Qi=Ki&8191,Yi=Ki>>>13,ea=mi[4]|0,ia=ea&8191,Zi=ea>>>13,Ji=mi[5]|0,ua=Ji&8191,Xi=Ji>>>13,na=mi[6]|0,ta=na&8191,oa=na>>>13,fa=mi[7]|0,ca=fa&8191,la=fa>>>13,ga=mi[8]|0,ha=ga&8191,da=ga>>>13,Aa=mi[9]|0,Ea=Aa&8191,va=Aa>>>13,Ca=_i[0]|0,wa=Ca&8191,ma=Ca>>>13,ka=_i[1]|0,Ta=ka&8191,ya=ka>>>13,Pa=_i[2]|0,Ia=Pa&8191,ba=Pa>>>13,Ba=_i[3]|0,Fa=Ba&8191,Da=Ba>>>13,La=_i[4]|0,Oa=La&8191,Gi=La>>>13,Li=_i[5]|0,$i=Li&8191,Wi=Li>>>13,ra=_i[6]|0,aa=ra&8191,sa=ra>>>13,Ra=_i[7]|0,xa=Ra&8191,pa=Ra>>>13,Na=_i[8]|0,_a=Na&8191,Sa=Na>>>13,$a=_i[9]|0,qa=$a&8191,Ma=$a>>>13;yi.negative=In.negative^Hn.negative,yi.length=19,xi=Math.imul(Vi,wa),Wn=Math.imul(Vi,ma),Wn=Wn+Math.imul(ji,wa)|0,Ti=Math.imul(ji,ma);var Ua=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Ua>>>26)|0,Ua&=67108863,xi=Math.imul(Pi,wa),Wn=Math.imul(Pi,ma),Wn=Wn+Math.imul(zi,wa)|0,Ti=Math.imul(zi,ma),xi=xi+Math.imul(Vi,Ta)|0,Wn=Wn+Math.imul(Vi,ya)|0,Wn=Wn+Math.imul(ji,Ta)|0,Ti=Ti+Math.imul(ji,ya)|0;var ja=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(ja>>>26)|0,ja&=67108863,xi=Math.imul(Ui,wa),Wn=Math.imul(Ui,ma),Wn=Wn+Math.imul(Mi,wa)|0,Ti=Math.imul(Mi,ma),xi=xi+Math.imul(Pi,Ta)|0,Wn=Wn+Math.imul(Pi,ya)|0,Wn=Wn+Math.imul(zi,Ta)|0,Ti=Ti+Math.imul(zi,ya)|0,xi=xi+Math.imul(Vi,Ia)|0,Wn=Wn+Math.imul(Vi,ba)|0,Wn=Wn+Math.imul(ji,Ia)|0,Ti=Ti+Math.imul(ji,ba)|0;var Va=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Va>>>26)|0,Va&=67108863,xi=Math.imul(Qi,wa),Wn=Math.imul(Qi,ma),Wn=Wn+Math.imul(Yi,wa)|0,Ti=Math.imul(Yi,ma),xi=xi+Math.imul(Ui,Ta)|0,Wn=Wn+Math.imul(Ui,ya)|0,Wn=Wn+Math.imul(Mi,Ta)|0,Ti=Ti+Math.imul(Mi,ya)|0,xi=xi+Math.imul(Pi,Ia)|0,Wn=Wn+Math.imul(Pi,ba)|0,Wn=Wn+Math.imul(zi,Ia)|0,Ti=Ti+Math.imul(zi,ba)|0,xi=xi+Math.imul(Vi,Fa)|0,Wn=Wn+Math.imul(Vi,Da)|0,Wn=Wn+Math.imul(ji,Fa)|0,Ti=Ti+Math.imul(ji,Da)|0;var Ga=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Ga>>>26)|0,Ga&=67108863,xi=Math.imul(ia,wa),Wn=Math.imul(ia,ma),Wn=Wn+Math.imul(Zi,wa)|0,Ti=Math.imul(Zi,ma),xi=xi+Math.imul(Qi,Ta)|0,Wn=Wn+Math.imul(Qi,ya)|0,Wn=Wn+Math.imul(Yi,Ta)|0,Ti=Ti+Math.imul(Yi,ya)|0,xi=xi+Math.imul(Ui,Ia)|0,Wn=Wn+Math.imul(Ui,ba)|0,Wn=Wn+Math.imul(Mi,Ia)|0,Ti=Ti+Math.imul(Mi,ba)|0,xi=xi+Math.imul(Pi,Fa)|0,Wn=Wn+Math.imul(Pi,Da)|0,Wn=Wn+Math.imul(zi,Fa)|0,Ti=Ti+Math.imul(zi,Da)|0,xi=xi+Math.imul(Vi,Oa)|0,Wn=Wn+Math.imul(Vi,Gi)|0,Wn=Wn+Math.imul(ji,Oa)|0,Ti=Ti+Math.imul(ji,Gi)|0;var Ka=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Ka>>>26)|0,Ka&=67108863,xi=Math.imul(ua,wa),Wn=Math.imul(ua,ma),Wn=Wn+Math.imul(Xi,wa)|0,Ti=Math.imul(Xi,ma),xi=xi+Math.imul(ia,Ta)|0,Wn=Wn+Math.imul(ia,ya)|0,Wn=Wn+Math.imul(Zi,Ta)|0,Ti=Ti+Math.imul(Zi,ya)|0,xi=xi+Math.imul(Qi,Ia)|0,Wn=Wn+Math.imul(Qi,ba)|0,Wn=Wn+Math.imul(Yi,Ia)|0,Ti=Ti+Math.imul(Yi,ba)|0,xi=xi+Math.imul(Ui,Fa)|0,Wn=Wn+Math.imul(Ui,Da)|0,Wn=Wn+Math.imul(Mi,Fa)|0,Ti=Ti+Math.imul(Mi,Da)|0,xi=xi+Math.imul(Pi,Oa)|0,Wn=Wn+Math.imul(Pi,Gi)|0,Wn=Wn+Math.imul(zi,Oa)|0,Ti=Ti+Math.imul(zi,Gi)|0,xi=xi+Math.imul(Vi,$i)|0,Wn=Wn+Math.imul(Vi,Wi)|0,Wn=Wn+Math.imul(ji,$i)|0,Ti=Ti+Math.imul(ji,Wi)|0;var Ha=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Ha>>>26)|0,Ha&=67108863,xi=Math.imul(ta,wa),Wn=Math.imul(ta,ma),Wn=Wn+Math.imul(oa,wa)|0,Ti=Math.imul(oa,ma),xi=xi+Math.imul(ua,Ta)|0,Wn=Wn+Math.imul(ua,ya)|0,Wn=Wn+Math.imul(Xi,Ta)|0,Ti=Ti+Math.imul(Xi,ya)|0,xi=xi+Math.imul(ia,Ia)|0,Wn=Wn+Math.imul(ia,ba)|0,Wn=Wn+Math.imul(Zi,Ia)|0,Ti=Ti+Math.imul(Zi,ba)|0,xi=xi+Math.imul(Qi,Fa)|0,Wn=Wn+Math.imul(Qi,Da)|0,Wn=Wn+Math.imul(Yi,Fa)|0,Ti=Ti+Math.imul(Yi,Da)|0,xi=xi+Math.imul(Ui,Oa)|0,Wn=Wn+Math.imul(Ui,Gi)|0,Wn=Wn+Math.imul(Mi,Oa)|0,Ti=Ti+Math.imul(Mi,Gi)|0,xi=xi+Math.imul(Pi,$i)|0,Wn=Wn+Math.imul(Pi,Wi)|0,Wn=Wn+Math.imul(zi,$i)|0,Ti=Ti+Math.imul(zi,Wi)|0,xi=xi+Math.imul(Vi,aa)|0,Wn=Wn+Math.imul(Vi,sa)|0,Wn=Wn+Math.imul(ji,aa)|0,Ti=Ti+Math.imul(ji,sa)|0;var Qa=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Qa>>>26)|0,Qa&=67108863,xi=Math.imul(ca,wa),Wn=Math.imul(ca,ma),Wn=Wn+Math.imul(la,wa)|0,Ti=Math.imul(la,ma),xi=xi+Math.imul(ta,Ta)|0,Wn=Wn+Math.imul(ta,ya)|0,Wn=Wn+Math.imul(oa,Ta)|0,Ti=Ti+Math.imul(oa,ya)|0,xi=xi+Math.imul(ua,Ia)|0,Wn=Wn+Math.imul(ua,ba)|0,Wn=Wn+Math.imul(Xi,Ia)|0,Ti=Ti+Math.imul(Xi,ba)|0,xi=xi+Math.imul(ia,Fa)|0,Wn=Wn+Math.imul(ia,Da)|0,Wn=Wn+Math.imul(Zi,Fa)|0,Ti=Ti+Math.imul(Zi,Da)|0,xi=xi+Math.imul(Qi,Oa)|0,Wn=Wn+Math.imul(Qi,Gi)|0,Wn=Wn+Math.imul(Yi,Oa)|0,Ti=Ti+Math.imul(Yi,Gi)|0,xi=xi+Math.imul(Ui,$i)|0,Wn=Wn+Math.imul(Ui,Wi)|0,Wn=Wn+Math.imul(Mi,$i)|0,Ti=Ti+Math.imul(Mi,Wi)|0,xi=xi+Math.imul(Pi,aa)|0,Wn=Wn+Math.imul(Pi,sa)|0,Wn=Wn+Math.imul(zi,aa)|0,Ti=Ti+Math.imul(zi,sa)|0,xi=xi+Math.imul(Vi,xa)|0,Wn=Wn+Math.imul(Vi,pa)|0,Wn=Wn+Math.imul(ji,xa)|0,Ti=Ti+Math.imul(ji,pa)|0;var za=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(za>>>26)|0,za&=67108863,xi=Math.imul(ha,wa),Wn=Math.imul(ha,ma),Wn=Wn+Math.imul(da,wa)|0,Ti=Math.imul(da,ma),xi=xi+Math.imul(ca,Ta)|0,Wn=Wn+Math.imul(ca,ya)|0,Wn=Wn+Math.imul(la,Ta)|0,Ti=Ti+Math.imul(la,ya)|0,xi=xi+Math.imul(ta,Ia)|0,Wn=Wn+Math.imul(ta,ba)|0,Wn=Wn+Math.imul(oa,Ia)|0,Ti=Ti+Math.imul(oa,ba)|0,xi=xi+Math.imul(ua,Fa)|0,Wn=Wn+Math.imul(ua,Da)|0,Wn=Wn+Math.imul(Xi,Fa)|0,Ti=Ti+Math.imul(Xi,Da)|0,xi=xi+Math.imul(ia,Oa)|0,Wn=Wn+Math.imul(ia,Gi)|0,Wn=Wn+Math.imul(Zi,Oa)|0,Ti=Ti+Math.imul(Zi,Gi)|0,xi=xi+Math.imul(Qi,$i)|0,Wn=Wn+Math.imul(Qi,Wi)|0,Wn=Wn+Math.imul(Yi,$i)|0,Ti=Ti+Math.imul(Yi,Wi)|0,xi=xi+Math.imul(Ui,aa)|0,Wn=Wn+Math.imul(Ui,sa)|0,Wn=Wn+Math.imul(Mi,aa)|0,Ti=Ti+Math.imul(Mi,sa)|0,xi=xi+Math.imul(Pi,xa)|0,Wn=Wn+Math.imul(Pi,pa)|0,Wn=Wn+Math.imul(zi,xa)|0,Ti=Ti+Math.imul(zi,pa)|0,xi=xi+Math.imul(Vi,_a)|0,Wn=Wn+Math.imul(Vi,Sa)|0,Wn=Wn+Math.imul(ji,_a)|0,Ti=Ti+Math.imul(ji,Sa)|0;var Wa=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Wa>>>26)|0,Wa&=67108863,xi=Math.imul(Ea,wa),Wn=Math.imul(Ea,ma),Wn=Wn+Math.imul(va,wa)|0,Ti=Math.imul(va,ma),xi=xi+Math.imul(ha,Ta)|0,Wn=Wn+Math.imul(ha,ya)|0,Wn=Wn+Math.imul(da,Ta)|0,Ti=Ti+Math.imul(da,ya)|0,xi=xi+Math.imul(ca,Ia)|0,Wn=Wn+Math.imul(ca,ba)|0,Wn=Wn+Math.imul(la,Ia)|0,Ti=Ti+Math.imul(la,ba)|0,xi=xi+Math.imul(ta,Fa)|0,Wn=Wn+Math.imul(ta,Da)|0,Wn=Wn+Math.imul(oa,Fa)|0,Ti=Ti+Math.imul(oa,Da)|0,xi=xi+Math.imul(ua,Oa)|0,Wn=Wn+Math.imul(ua,Gi)|0,Wn=Wn+Math.imul(Xi,Oa)|0,Ti=Ti+Math.imul(Xi,Gi)|0,xi=xi+Math.imul(ia,$i)|0,Wn=Wn+Math.imul(ia,Wi)|0,Wn=Wn+Math.imul(Zi,$i)|0,Ti=Ti+Math.imul(Zi,Wi)|0,xi=xi+Math.imul(Qi,aa)|0,Wn=Wn+Math.imul(Qi,sa)|0,Wn=Wn+Math.imul(Yi,aa)|0,Ti=Ti+Math.imul(Yi,sa)|0,xi=xi+Math.imul(Ui,xa)|0,Wn=Wn+Math.imul(Ui,pa)|0,Wn=Wn+Math.imul(Mi,xa)|0,Ti=Ti+Math.imul(Mi,pa)|0,xi=xi+Math.imul(Pi,_a)|0,Wn=Wn+Math.imul(Pi,Sa)|0,Wn=Wn+Math.imul(zi,_a)|0,Ti=Ti+Math.imul(zi,Sa)|0,xi=xi+Math.imul(Vi,qa)|0,Wn=Wn+Math.imul(Vi,Ma)|0,Wn=Wn+Math.imul(ji,qa)|0,Ti=Ti+Math.imul(ji,Ma)|0;var Ya=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Ya>>>26)|0,Ya&=67108863,xi=Math.imul(Ea,Ta),Wn=Math.imul(Ea,ya),Wn=Wn+Math.imul(va,Ta)|0,Ti=Math.imul(va,ya),xi=xi+Math.imul(ha,Ia)|0,Wn=Wn+Math.imul(ha,ba)|0,Wn=Wn+Math.imul(da,Ia)|0,Ti=Ti+Math.imul(da,ba)|0,xi=xi+Math.imul(ca,Fa)|0,Wn=Wn+Math.imul(ca,Da)|0,Wn=Wn+Math.imul(la,Fa)|0,Ti=Ti+Math.imul(la,Da)|0,xi=xi+Math.imul(ta,Oa)|0,Wn=Wn+Math.imul(ta,Gi)|0,Wn=Wn+Math.imul(oa,Oa)|0,Ti=Ti+Math.imul(oa,Gi)|0,xi=xi+Math.imul(ua,$i)|0,Wn=Wn+Math.imul(ua,Wi)|0,Wn=Wn+Math.imul(Xi,$i)|0,Ti=Ti+Math.imul(Xi,Wi)|0,xi=xi+Math.imul(ia,aa)|0,Wn=Wn+Math.imul(ia,sa)|0,Wn=Wn+Math.imul(Zi,aa)|0,Ti=Ti+Math.imul(Zi,sa)|0,xi=xi+Math.imul(Qi,xa)|0,Wn=Wn+Math.imul(Qi,pa)|0,Wn=Wn+Math.imul(Yi,xa)|0,Ti=Ti+Math.imul(Yi,pa)|0,xi=xi+Math.imul(Ui,_a)|0,Wn=Wn+Math.imul(Ui,Sa)|0,Wn=Wn+Math.imul(Mi,_a)|0,Ti=Ti+Math.imul(Mi,Sa)|0,xi=xi+Math.imul(Pi,qa)|0,Wn=Wn+Math.imul(Pi,Ma)|0,Wn=Wn+Math.imul(zi,qa)|0,Ti=Ti+Math.imul(zi,Ma)|0;var Xa=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Xa>>>26)|0,Xa&=67108863,xi=Math.imul(Ea,Ia),Wn=Math.imul(Ea,ba),Wn=Wn+Math.imul(va,Ia)|0,Ti=Math.imul(va,ba),xi=xi+Math.imul(ha,Fa)|0,Wn=Wn+Math.imul(ha,Da)|0,Wn=Wn+Math.imul(da,Fa)|0,Ti=Ti+Math.imul(da,Da)|0,xi=xi+Math.imul(ca,Oa)|0,Wn=Wn+Math.imul(ca,Gi)|0,Wn=Wn+Math.imul(la,Oa)|0,Ti=Ti+Math.imul(la,Gi)|0,xi=xi+Math.imul(ta,$i)|0,Wn=Wn+Math.imul(ta,Wi)|0,Wn=Wn+Math.imul(oa,$i)|0,Ti=Ti+Math.imul(oa,Wi)|0,xi=xi+Math.imul(ua,aa)|0,Wn=Wn+Math.imul(ua,sa)|0,Wn=Wn+Math.imul(Xi,aa)|0,Ti=Ti+Math.imul(Xi,sa)|0,xi=xi+Math.imul(ia,xa)|0,Wn=Wn+Math.imul(ia,pa)|0,Wn=Wn+Math.imul(Zi,xa)|0,Ti=Ti+Math.imul(Zi,pa)|0,xi=xi+Math.imul(Qi,_a)|0,Wn=Wn+Math.imul(Qi,Sa)|0,Wn=Wn+Math.imul(Yi,_a)|0,Ti=Ti+Math.imul(Yi,Sa)|0,xi=xi+Math.imul(Ui,qa)|0,Wn=Wn+Math.imul(Ui,Ma)|0,Wn=Wn+Math.imul(Mi,qa)|0,Ti=Ti+Math.imul(Mi,Ma)|0;var Ja=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Ja>>>26)|0,Ja&=67108863,xi=Math.imul(Ea,Fa),Wn=Math.imul(Ea,Da),Wn=Wn+Math.imul(va,Fa)|0,Ti=Math.imul(va,Da),xi=xi+Math.imul(ha,Oa)|0,Wn=Wn+Math.imul(ha,Gi)|0,Wn=Wn+Math.imul(da,Oa)|0,Ti=Ti+Math.imul(da,Gi)|0,xi=xi+Math.imul(ca,$i)|0,Wn=Wn+Math.imul(ca,Wi)|0,Wn=Wn+Math.imul(la,$i)|0,Ti=Ti+Math.imul(la,Wi)|0,xi=xi+Math.imul(ta,aa)|0,Wn=Wn+Math.imul(ta,sa)|0,Wn=Wn+Math.imul(oa,aa)|0,Ti=Ti+Math.imul(oa,sa)|0,xi=xi+Math.imul(ua,xa)|0,Wn=Wn+Math.imul(ua,pa)|0,Wn=Wn+Math.imul(Xi,xa)|0,Ti=Ti+Math.imul(Xi,pa)|0,xi=xi+Math.imul(ia,_a)|0,Wn=Wn+Math.imul(ia,Sa)|0,Wn=Wn+Math.imul(Zi,_a)|0,Ti=Ti+Math.imul(Zi,Sa)|0,xi=xi+Math.imul(Qi,qa)|0,Wn=Wn+Math.imul(Qi,Ma)|0,Wn=Wn+Math.imul(Yi,qa)|0,Ti=Ti+Math.imul(Yi,Ma)|0;var Za=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Za>>>26)|0,Za&=67108863,xi=Math.imul(Ea,Oa),Wn=Math.imul(Ea,Gi),Wn=Wn+Math.imul(va,Oa)|0,Ti=Math.imul(va,Gi),xi=xi+Math.imul(ha,$i)|0,Wn=Wn+Math.imul(ha,Wi)|0,Wn=Wn+Math.imul(da,$i)|0,Ti=Ti+Math.imul(da,Wi)|0,xi=xi+Math.imul(ca,aa)|0,Wn=Wn+Math.imul(ca,sa)|0,Wn=Wn+Math.imul(la,aa)|0,Ti=Ti+Math.imul(la,sa)|0,xi=xi+Math.imul(ta,xa)|0,Wn=Wn+Math.imul(ta,pa)|0,Wn=Wn+Math.imul(oa,xa)|0,Ti=Ti+Math.imul(oa,pa)|0,xi=xi+Math.imul(ua,_a)|0,Wn=Wn+Math.imul(ua,Sa)|0,Wn=Wn+Math.imul(Xi,_a)|0,Ti=Ti+Math.imul(Xi,Sa)|0,xi=xi+Math.imul(ia,qa)|0,Wn=Wn+Math.imul(ia,Ma)|0,Wn=Wn+Math.imul(Zi,qa)|0,Ti=Ti+Math.imul(Zi,Ma)|0;var ao=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(ao>>>26)|0,ao&=67108863,xi=Math.imul(Ea,$i),Wn=Math.imul(Ea,Wi),Wn=Wn+Math.imul(va,$i)|0,Ti=Math.imul(va,Wi),xi=xi+Math.imul(ha,aa)|0,Wn=Wn+Math.imul(ha,sa)|0,Wn=Wn+Math.imul(da,aa)|0,Ti=Ti+Math.imul(da,sa)|0,xi=xi+Math.imul(ca,xa)|0,Wn=Wn+Math.imul(ca,pa)|0,Wn=Wn+Math.imul(la,xa)|0,Ti=Ti+Math.imul(la,pa)|0,xi=xi+Math.imul(ta,_a)|0,Wn=Wn+Math.imul(ta,Sa)|0,Wn=Wn+Math.imul(oa,_a)|0,Ti=Ti+Math.imul(oa,Sa)|0,xi=xi+Math.imul(ua,qa)|0,Wn=Wn+Math.imul(ua,Ma)|0,Wn=Wn+Math.imul(Xi,qa)|0,Ti=Ti+Math.imul(Xi,Ma)|0;var vo=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(vo>>>26)|0,vo&=67108863,xi=Math.imul(Ea,aa),Wn=Math.imul(Ea,sa),Wn=Wn+Math.imul(va,aa)|0,Ti=Math.imul(va,sa),xi=xi+Math.imul(ha,xa)|0,Wn=Wn+Math.imul(ha,pa)|0,Wn=Wn+Math.imul(da,xa)|0,Ti=Ti+Math.imul(da,pa)|0,xi=xi+Math.imul(ca,_a)|0,Wn=Wn+Math.imul(ca,Sa)|0,Wn=Wn+Math.imul(la,_a)|0,Ti=Ti+Math.imul(la,Sa)|0,xi=xi+Math.imul(ta,qa)|0,Wn=Wn+Math.imul(ta,Ma)|0,Wn=Wn+Math.imul(oa,qa)|0,Ti=Ti+Math.imul(oa,Ma)|0;var bo=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(bo>>>26)|0,bo&=67108863,xi=Math.imul(Ea,xa),Wn=Math.imul(Ea,pa),Wn=Wn+Math.imul(va,xa)|0,Ti=Math.imul(va,pa),xi=xi+Math.imul(ha,_a)|0,Wn=Wn+Math.imul(ha,Sa)|0,Wn=Wn+Math.imul(da,_a)|0,Ti=Ti+Math.imul(da,Sa)|0,xi=xi+Math.imul(ca,qa)|0,Wn=Wn+Math.imul(ca,Ma)|0,Wn=Wn+Math.imul(la,qa)|0,Ti=Ti+Math.imul(la,Ma)|0;var So=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(So>>>26)|0,So&=67108863,xi=Math.imul(Ea,_a),Wn=Math.imul(Ea,Sa),Wn=Wn+Math.imul(va,_a)|0,Ti=Math.imul(va,Sa),xi=xi+Math.imul(ha,qa)|0,Wn=Wn+Math.imul(ha,Ma)|0,Wn=Wn+Math.imul(da,qa)|0,Ti=Ti+Math.imul(da,Ma)|0;var To=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(To>>>26)|0,To&=67108863,xi=Math.imul(Ea,qa),Wn=Math.imul(Ea,Ma),Wn=Wn+Math.imul(va,qa)|0,Ti=Math.imul(va,Ma);var No=(Ei+xi|0)+((Wn&8191)<<13)|0;return Ei=(Ti+(Wn>>>13)|0)+(No>>>26)|0,No&=67108863,wi[0]=Ua,wi[1]=ja,wi[2]=Va,wi[3]=Ga,wi[4]=Ka,wi[5]=Ha,wi[6]=Qa,wi[7]=za,wi[8]=Wa,wi[9]=Ya,wi[10]=Xa,wi[11]=Ja,wi[12]=Za,wi[13]=ao,wi[14]=vo,wi[15]=bo,wi[16]=So,wi[17]=To,wi[18]=No,Ei!==0&&(wi[19]=Ei,yi.length++),yi};Math.imul||(gi=vi);function Ri(Yn,In,Hn){Hn.negative=In.negative^Yn.negative,Hn.length=Yn.length+In.length;for(var yi=0,mi=0,_i=0;_i<Hn.length-1;_i++){var wi=mi;mi=0;for(var Ei=yi&67108863,xi=Math.min(_i,In.length-1),Wn=Math.max(0,_i-Yn.length+1);Wn<=xi;Wn++){var Ti=_i-Wn,qi=Yn.words[Ti]|0,Vi=In.words[Wn]|0,ji=qi*Vi,Bi=ji&67108863;wi=wi+(ji/67108864|0)|0,Bi=Bi+Ei|0,Ei=Bi&67108863,wi=wi+(Bi>>>26)|0,mi+=wi>>>26,wi&=67108863}Hn.words[_i]=Ei,yi=wi,wi=mi}return yi!==0?Hn.words[_i]=yi:Hn.length--,Hn._strip()}function Si(Yn,In,Hn){return Ri(Yn,In,Hn)}a.prototype.mulTo=function(In,Hn){var yi,mi=this.length+In.length;return this.length===10&&In.length===10?yi=gi(this,In,Hn):mi<63?yi=vi(this,In,Hn):mi<1024?yi=Ri(this,In,Hn):yi=Si(this,In,Hn),yi},a.prototype.mul=function(In){var Hn=new a(null);return Hn.words=new Array(this.length+In.length),this.mulTo(In,Hn)},a.prototype.mulf=function(In){var Hn=new a(null);return Hn.words=new Array(this.length+In.length),Si(this,In,Hn)},a.prototype.imul=function(In){return this.clone().mulTo(In,this)},a.prototype.imuln=function(In){var Hn=In<0;Hn&&(In=-In),i(typeof In=="number"),i(In<67108864);for(var yi=0,mi=0;mi<this.length;mi++){var _i=(this.words[mi]|0)*In,wi=(_i&67108863)+(yi&67108863);yi>>=26,yi+=_i/67108864|0,yi+=wi>>>26,this.words[mi]=wi&67108863}return yi!==0&&(this.words[mi]=yi,this.length++),this.length=In===0?1:this.length,Hn?this.ineg():this},a.prototype.muln=function(In){return this.clone().imuln(In)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(In){var Hn=hi(In);if(Hn.length===0)return new a(1);for(var yi=this,mi=0;mi<Hn.length&&Hn[mi]===0;mi++,yi=yi.sqr());if(++mi<Hn.length)for(var _i=yi.sqr();mi<Hn.length;mi++,_i=_i.sqr())Hn[mi]!==0&&(yi=yi.mul(_i));return yi},a.prototype.iushln=function(In){i(typeof In=="number"&&In>=0);var Hn=In%26,yi=(In-Hn)/26,mi=67108863>>>26-Hn<<26-Hn,_i;if(Hn!==0){var wi=0;for(_i=0;_i<this.length;_i++){var Ei=this.words[_i]&mi,xi=(this.words[_i]|0)-Ei<<Hn;this.words[_i]=xi|wi,wi=Ei>>>26-Hn}wi&&(this.words[_i]=wi,this.length++)}if(yi!==0){for(_i=this.length-1;_i>=0;_i--)this.words[_i+yi]=this.words[_i];for(_i=0;_i<yi;_i++)this.words[_i]=0;this.length+=yi}return this._strip()},a.prototype.ishln=function(In){return i(this.negative===0),this.iushln(In)},a.prototype.iushrn=function(In,Hn,yi){i(typeof In=="number"&&In>=0);var mi;Hn?mi=(Hn-Hn%26)/26:mi=0;var _i=In%26,wi=Math.min((In-_i)/26,this.length),Ei=67108863^67108863>>>_i<<_i,xi=yi;if(mi-=wi,mi=Math.max(0,mi),xi){for(var Wn=0;Wn<wi;Wn++)xi.words[Wn]=this.words[Wn];xi.length=wi}if(wi!==0)if(this.length>wi)for(this.length-=wi,Wn=0;Wn<this.length;Wn++)this.words[Wn]=this.words[Wn+wi];else this.words[0]=0,this.length=1;var Ti=0;for(Wn=this.length-1;Wn>=0&&(Ti!==0||Wn>=mi);Wn--){var qi=this.words[Wn]|0;this.words[Wn]=Ti<<26-_i|qi>>>_i,Ti=qi&Ei}return xi&&Ti!==0&&(xi.words[xi.length++]=Ti),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(In,Hn,yi){return i(this.negative===0),this.iushrn(In,Hn,yi)},a.prototype.shln=function(In){return this.clone().ishln(In)},a.prototype.ushln=function(In){return this.clone().iushln(In)},a.prototype.shrn=function(In){return this.clone().ishrn(In)},a.prototype.ushrn=function(In){return this.clone().iushrn(In)},a.prototype.testn=function(In){i(typeof In=="number"&&In>=0);var Hn=In%26,yi=(In-Hn)/26,mi=1<<Hn;if(this.length<=yi)return!1;var _i=this.words[yi];return!!(_i&mi)},a.prototype.imaskn=function(In){i(typeof In=="number"&&In>=0);var Hn=In%26,yi=(In-Hn)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=yi)return this;if(Hn!==0&&yi++,this.length=Math.min(yi,this.length),Hn!==0){var mi=67108863^67108863>>>Hn<<Hn;this.words[this.length-1]&=mi}return this._strip()},a.prototype.maskn=function(In){return this.clone().imaskn(In)},a.prototype.iaddn=function(In){return i(typeof In=="number"),i(In<67108864),In<0?this.isubn(-In):this.negative!==0?this.length===1&&(this.words[0]|0)<=In?(this.words[0]=In-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(In),this.negative=1,this):this._iaddn(In)},a.prototype._iaddn=function(In){this.words[0]+=In;for(var Hn=0;Hn<this.length&&this.words[Hn]>=67108864;Hn++)this.words[Hn]-=67108864,Hn===this.length-1?this.words[Hn+1]=1:this.words[Hn+1]++;return this.length=Math.max(this.length,Hn+1),this},a.prototype.isubn=function(In){if(i(typeof In=="number"),i(In<67108864),In<0)return this.iaddn(-In);if(this.negative!==0)return this.negative=0,this.iaddn(In),this.negative=1,this;if(this.words[0]-=In,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Hn=0;Hn<this.length&&this.words[Hn]<0;Hn++)this.words[Hn]+=67108864,this.words[Hn+1]-=1;return this._strip()},a.prototype.addn=function(In){return this.clone().iaddn(In)},a.prototype.subn=function(In){return this.clone().isubn(In)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(In,Hn,yi){var mi=In.length+yi,_i;this._expand(mi);var wi,Ei=0;for(_i=0;_i<In.length;_i++){wi=(this.words[_i+yi]|0)+Ei;var xi=(In.words[_i]|0)*Hn;wi-=xi&67108863,Ei=(wi>>26)-(xi/67108864|0),this.words[_i+yi]=wi&67108863}for(;_i<this.length-yi;_i++)wi=(this.words[_i+yi]|0)+Ei,Ei=wi>>26,this.words[_i+yi]=wi&67108863;if(Ei===0)return this._strip();for(i(Ei===-1),Ei=0,_i=0;_i<this.length;_i++)wi=-(this.words[_i]|0)+Ei,Ei=wi>>26,this.words[_i]=wi&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(In,Hn){var yi=this.length-In.length,mi=this.clone(),_i=In,wi=_i.words[_i.length-1]|0,Ei=this._countBits(wi);yi=26-Ei,yi!==0&&(_i=_i.ushln(yi),mi.iushln(yi),wi=_i.words[_i.length-1]|0);var xi=mi.length-_i.length,Wn;if(Hn!=="mod"){Wn=new a(null),Wn.length=xi+1,Wn.words=new Array(Wn.length);for(var Ti=0;Ti<Wn.length;Ti++)Wn.words[Ti]=0}var qi=mi.clone()._ishlnsubmul(_i,1,xi);qi.negative===0&&(mi=qi,Wn&&(Wn.words[xi]=1));for(var Vi=xi-1;Vi>=0;Vi--){var ji=(mi.words[_i.length+Vi]|0)*67108864+(mi.words[_i.length+Vi-1]|0);for(ji=Math.min(ji/wi|0,67108863),mi._ishlnsubmul(_i,ji,Vi);mi.negative!==0;)ji--,mi.negative=0,mi._ishlnsubmul(_i,1,Vi),mi.isZero()||(mi.negative^=1);Wn&&(Wn.words[Vi]=ji)}return Wn&&Wn._strip(),mi._strip(),Hn!=="div"&&yi!==0&&mi.iushrn(yi),{div:Wn||null,mod:mi}},a.prototype.divmod=function(In,Hn,yi){if(i(!In.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var mi,_i,wi;return this.negative!==0&&In.negative===0?(wi=this.neg().divmod(In,Hn),Hn!=="mod"&&(mi=wi.div.neg()),Hn!=="div"&&(_i=wi.mod.neg(),yi&&_i.negative!==0&&_i.iadd(In)),{div:mi,mod:_i}):this.negative===0&&In.negative!==0?(wi=this.divmod(In.neg(),Hn),Hn!=="mod"&&(mi=wi.div.neg()),{div:mi,mod:wi.mod}):(this.negative&In.negative)!==0?(wi=this.neg().divmod(In.neg(),Hn),Hn!=="div"&&(_i=wi.mod.neg(),yi&&_i.negative!==0&&_i.isub(In)),{div:wi.div,mod:_i}):In.length>this.length||this.cmp(In)<0?{div:new a(0),mod:this}:In.length===1?Hn==="div"?{div:this.divn(In.words[0]),mod:null}:Hn==="mod"?{div:null,mod:new a(this.modrn(In.words[0]))}:{div:this.divn(In.words[0]),mod:new a(this.modrn(In.words[0]))}:this._wordDiv(In,Hn)},a.prototype.div=function(In){return this.divmod(In,"div",!1).div},a.prototype.mod=function(In){return this.divmod(In,"mod",!1).mod},a.prototype.umod=function(In){return this.divmod(In,"mod",!0).mod},a.prototype.divRound=function(In){var Hn=this.divmod(In);if(Hn.mod.isZero())return Hn.div;var yi=Hn.div.negative!==0?Hn.mod.isub(In):Hn.mod,mi=In.ushrn(1),_i=In.andln(1),wi=yi.cmp(mi);return wi<0||_i===1&&wi===0?Hn.div:Hn.div.negative!==0?Hn.div.isubn(1):Hn.div.iaddn(1)},a.prototype.modrn=function(In){var Hn=In<0;Hn&&(In=-In),i(In<=67108863);for(var yi=(1<<26)%In,mi=0,_i=this.length-1;_i>=0;_i--)mi=(yi*mi+(this.words[_i]|0))%In;return Hn?-mi:mi},a.prototype.modn=function(In){return this.modrn(In)},a.prototype.idivn=function(In){var Hn=In<0;Hn&&(In=-In),i(In<=67108863);for(var yi=0,mi=this.length-1;mi>=0;mi--){var _i=(this.words[mi]|0)+yi*67108864;this.words[mi]=_i/In|0,yi=_i%In}return this._strip(),Hn?this.ineg():this},a.prototype.divn=function(In){return this.clone().idivn(In)},a.prototype.egcd=function(In){i(In.negative===0),i(!In.isZero());var Hn=this,yi=In.clone();Hn.negative!==0?Hn=Hn.umod(In):Hn=Hn.clone();for(var mi=new a(1),_i=new a(0),wi=new a(0),Ei=new a(1),xi=0;Hn.isEven()&&yi.isEven();)Hn.iushrn(1),yi.iushrn(1),++xi;for(var Wn=yi.clone(),Ti=Hn.clone();!Hn.isZero();){for(var qi=0,Vi=1;(Hn.words[0]&Vi)===0&&qi<26;++qi,Vi<<=1);if(qi>0)for(Hn.iushrn(qi);qi-- >0;)(mi.isOdd()||_i.isOdd())&&(mi.iadd(Wn),_i.isub(Ti)),mi.iushrn(1),_i.iushrn(1);for(var ji=0,Bi=1;(yi.words[0]&Bi)===0&&ji<26;++ji,Bi<<=1);if(ji>0)for(yi.iushrn(ji);ji-- >0;)(wi.isOdd()||Ei.isOdd())&&(wi.iadd(Wn),Ei.isub(Ti)),wi.iushrn(1),Ei.iushrn(1);Hn.cmp(yi)>=0?(Hn.isub(yi),mi.isub(wi),_i.isub(Ei)):(yi.isub(Hn),wi.isub(mi),Ei.isub(_i))}return{a:wi,b:Ei,gcd:yi.iushln(xi)}},a.prototype._invmp=function(In){i(In.negative===0),i(!In.isZero());var Hn=this,yi=In.clone();Hn.negative!==0?Hn=Hn.umod(In):Hn=Hn.clone();for(var mi=new a(1),_i=new a(0),wi=yi.clone();Hn.cmpn(1)>0&&yi.cmpn(1)>0;){for(var Ei=0,xi=1;(Hn.words[0]&xi)===0&&Ei<26;++Ei,xi<<=1);if(Ei>0)for(Hn.iushrn(Ei);Ei-- >0;)mi.isOdd()&&mi.iadd(wi),mi.iushrn(1);for(var Wn=0,Ti=1;(yi.words[0]&Ti)===0&&Wn<26;++Wn,Ti<<=1);if(Wn>0)for(yi.iushrn(Wn);Wn-- >0;)_i.isOdd()&&_i.iadd(wi),_i.iushrn(1);Hn.cmp(yi)>=0?(Hn.isub(yi),mi.isub(_i)):(yi.isub(Hn),_i.isub(mi))}var qi;return Hn.cmpn(1)===0?qi=mi:qi=_i,qi.cmpn(0)<0&&qi.iadd(In),qi},a.prototype.gcd=function(In){if(this.isZero())return In.abs();if(In.isZero())return this.abs();var Hn=this.clone(),yi=In.clone();Hn.negative=0,yi.negative=0;for(var mi=0;Hn.isEven()&&yi.isEven();mi++)Hn.iushrn(1),yi.iushrn(1);do{for(;Hn.isEven();)Hn.iushrn(1);for(;yi.isEven();)yi.iushrn(1);var _i=Hn.cmp(yi);if(_i<0){var wi=Hn;Hn=yi,yi=wi}else if(_i===0||yi.cmpn(1)===0)break;Hn.isub(yi)}while(!0);return yi.iushln(mi)},a.prototype.invm=function(In){return this.egcd(In).a.umod(In)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(In){return this.words[0]&In},a.prototype.bincn=function(In){i(typeof In=="number");var Hn=In%26,yi=(In-Hn)/26,mi=1<<Hn;if(this.length<=yi)return this._expand(yi+1),this.words[yi]|=mi,this;for(var _i=mi,wi=yi;_i!==0&&wi<this.length;wi++){var Ei=this.words[wi]|0;Ei+=_i,_i=Ei>>>26,Ei&=67108863,this.words[wi]=Ei}return _i!==0&&(this.words[wi]=_i,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(In){var Hn=In<0;if(this.negative!==0&&!Hn)return-1;if(this.negative===0&&Hn)return 1;this._strip();var yi;if(this.length>1)yi=1;else{Hn&&(In=-In),i(In<=67108863,"Number is too big");var mi=this.words[0]|0;yi=mi===In?0:mi<In?-1:1}return this.negative!==0?-yi|0:yi},a.prototype.cmp=function(In){if(this.negative!==0&&In.negative===0)return-1;if(this.negative===0&&In.negative!==0)return 1;var Hn=this.ucmp(In);return this.negative!==0?-Hn|0:Hn},a.prototype.ucmp=function(In){if(this.length>In.length)return 1;if(this.length<In.length)return-1;for(var Hn=0,yi=this.length-1;yi>=0;yi--){var mi=this.words[yi]|0,_i=In.words[yi]|0;if(mi!==_i){mi<_i?Hn=-1:mi>_i&&(Hn=1);break}}return Hn},a.prototype.gtn=function(In){return this.cmpn(In)===1},a.prototype.gt=function(In){return this.cmp(In)===1},a.prototype.gten=function(In){return this.cmpn(In)>=0},a.prototype.gte=function(In){return this.cmp(In)>=0},a.prototype.ltn=function(In){return this.cmpn(In)===-1},a.prototype.lt=function(In){return this.cmp(In)===-1},a.prototype.lten=function(In){return this.cmpn(In)<=0},a.prototype.lte=function(In){return this.cmp(In)<=0},a.prototype.eqn=function(In){return this.cmpn(In)===0},a.prototype.eq=function(In){return this.cmp(In)===0},a.red=function(In){return new Fi(In)},a.prototype.toRed=function(In){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),In.convertTo(this)._forceRed(In)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(In){return this.red=In,this},a.prototype.forceRed=function(In){return i(!this.red,"Already a number in reduction context"),this._forceRed(In)},a.prototype.redAdd=function(In){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,In)},a.prototype.redIAdd=function(In){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,In)},a.prototype.redSub=function(In){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,In)},a.prototype.redISub=function(In){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,In)},a.prototype.redShl=function(In){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,In)},a.prototype.redMul=function(In){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,In),this.red.mul(this,In)},a.prototype.redIMul=function(In){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,In),this.red.imul(this,In)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(In){return i(this.red&&!In.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,In)};var Ai={k256:null,p224:null,p192:null,p25519:null};function Ii(Yn,In){this.name=Yn,this.p=new a(In,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Ii.prototype._tmp=function(){var In=new a(null);return In.words=new Array(Math.ceil(this.n/13)),In},Ii.prototype.ireduce=function(In){var Hn=In,yi;do this.split(Hn,this.tmp),Hn=this.imulK(Hn),Hn=Hn.iadd(this.tmp),yi=Hn.bitLength();while(yi>this.n);var mi=yi<this.n?-1:Hn.ucmp(this.p);return mi===0?(Hn.words[0]=0,Hn.length=1):mi>0?Hn.isub(this.p):Hn.strip!==void 0?Hn.strip():Hn._strip(),Hn},Ii.prototype.split=function(In,Hn){In.iushrn(this.n,0,Hn)},Ii.prototype.imulK=function(In){return In.imul(this.k)};function Ni(){Ii.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}s(Ni,Ii),Ni.prototype.split=function(In,Hn){for(var yi=4194303,mi=Math.min(In.length,9),_i=0;_i<mi;_i++)Hn.words[_i]=In.words[_i];if(Hn.length=mi,In.length<=9){In.words[0]=0,In.length=1;return}var wi=In.words[9];for(Hn.words[Hn.length++]=wi&yi,_i=10;_i<In.length;_i++){var Ei=In.words[_i]|0;In.words[_i-10]=(Ei&yi)<<4|wi>>>22,wi=Ei}wi>>>=22,In.words[_i-10]=wi,wi===0&&In.length>10?In.length-=10:In.length-=9},Ni.prototype.imulK=function(In){In.words[In.length]=0,In.words[In.length+1]=0,In.length+=2;for(var Hn=0,yi=0;yi<In.length;yi++){var mi=In.words[yi]|0;Hn+=mi*977,In.words[yi]=Hn&67108863,Hn=mi*64+(Hn/67108864|0)}return In.words[In.length-1]===0&&(In.length--,In.words[In.length-1]===0&&In.length--),In};function Ci(){Ii.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}s(Ci,Ii);function Oi(){Ii.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}s(Oi,Ii);function ki(){Ii.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}s(ki,Ii),ki.prototype.imulK=function(In){for(var Hn=0,yi=0;yi<In.length;yi++){var mi=(In.words[yi]|0)*19+Hn,_i=mi&67108863;mi>>>=26,In.words[yi]=_i,Hn=mi}return Hn!==0&&(In.words[In.length++]=Hn),In},a._prime=function(In){if(Ai[In])return Ai[In];var Hn;if(In==="k256")Hn=new Ni;else if(In==="p224")Hn=new Ci;else if(In==="p192")Hn=new Oi;else if(In==="p25519")Hn=new ki;else throw new Error("Unknown prime "+In);return Ai[In]=Hn,Hn};function Fi(Yn){if(typeof Yn=="string"){var In=a._prime(Yn);this.m=In.p,this.prime=In}else i(Yn.gtn(1),"modulus must be greater than 1"),this.m=Yn,this.prime=null}Fi.prototype._verify1=function(In){i(In.negative===0,"red works only with positives"),i(In.red,"red works only with red numbers")},Fi.prototype._verify2=function(In,Hn){i((In.negative|Hn.negative)===0,"red works only with positives"),i(In.red&&In.red===Hn.red,"red works only with red numbers")},Fi.prototype.imod=function(In){return this.prime?this.prime.ireduce(In)._forceRed(this):(h(In,In.umod(this.m)._forceRed(this)),In)},Fi.prototype.neg=function(In){return In.isZero()?In.clone():this.m.sub(In)._forceRed(this)},Fi.prototype.add=function(In,Hn){this._verify2(In,Hn);var yi=In.add(Hn);return yi.cmp(this.m)>=0&&yi.isub(this.m),yi._forceRed(this)},Fi.prototype.iadd=function(In,Hn){this._verify2(In,Hn);var yi=In.iadd(Hn);return yi.cmp(this.m)>=0&&yi.isub(this.m),yi},Fi.prototype.sub=function(In,Hn){this._verify2(In,Hn);var yi=In.sub(Hn);return yi.cmpn(0)<0&&yi.iadd(this.m),yi._forceRed(this)},Fi.prototype.isub=function(In,Hn){this._verify2(In,Hn);var yi=In.isub(Hn);return yi.cmpn(0)<0&&yi.iadd(this.m),yi},Fi.prototype.shl=function(In,Hn){return this._verify1(In),this.imod(In.ushln(Hn))},Fi.prototype.imul=function(In,Hn){return this._verify2(In,Hn),this.imod(In.imul(Hn))},Fi.prototype.mul=function(In,Hn){return this._verify2(In,Hn),this.imod(In.mul(Hn))},Fi.prototype.isqr=function(In){return this.imul(In,In.clone())},Fi.prototype.sqr=function(In){return this.mul(In,In)},Fi.prototype.sqrt=function(In){if(In.isZero())return In.clone();var Hn=this.m.andln(3);if(i(Hn%2===1),Hn===3){var yi=this.m.add(new a(1)).iushrn(2);return this.pow(In,yi)}for(var mi=this.m.subn(1),_i=0;!mi.isZero()&&mi.andln(1)===0;)_i++,mi.iushrn(1);i(!mi.isZero());var wi=new a(1).toRed(this),Ei=wi.redNeg(),xi=this.m.subn(1).iushrn(1),Wn=this.m.bitLength();for(Wn=new a(2*Wn*Wn).toRed(this);this.pow(Wn,xi).cmp(Ei)!==0;)Wn.redIAdd(Ei);for(var Ti=this.pow(Wn,mi),qi=this.pow(In,mi.addn(1).iushrn(1)),Vi=this.pow(In,mi),ji=_i;Vi.cmp(wi)!==0;){for(var Bi=Vi,Pi=0;Bi.cmp(wi)!==0;Pi++)Bi=Bi.redSqr();i(Pi<ji);var zi=this.pow(Ti,new a(1).iushln(ji-Pi-1));qi=qi.redMul(zi),Ti=zi.redSqr(),Vi=Vi.redMul(Ti),ji=Pi}return qi},Fi.prototype.invm=function(In){var Hn=In._invmp(this.m);return Hn.negative!==0?(Hn.negative=0,this.imod(Hn).redNeg()):this.imod(Hn)},Fi.prototype.pow=function(In,Hn){if(Hn.isZero())return new a(1).toRed(this);if(Hn.cmpn(1)===0)return In.clone();var yi=4,mi=new Array(1<<yi);mi[0]=new a(1).toRed(this),mi[1]=In;for(var _i=2;_i<mi.length;_i++)mi[_i]=this.mul(mi[_i-1],In);var wi=mi[0],Ei=0,xi=0,Wn=Hn.bitLength()%26;for(Wn===0&&(Wn=26),_i=Hn.length-1;_i>=0;_i--){for(var Ti=Hn.words[_i],qi=Wn-1;qi>=0;qi--){var Vi=Ti>>qi&1;if(wi!==mi[0]&&(wi=this.sqr(wi)),Vi===0&&Ei===0){xi=0;continue}Ei<<=1,Ei|=Vi,xi++,!(xi!==yi&&(_i!==0||qi!==0))&&(wi=this.mul(wi,mi[Ei]),xi=0,Ei=0)}Wn=26}return wi},Fi.prototype.convertTo=function(In){var Hn=In.umod(this.m);return Hn===In?Hn.clone():Hn},Fi.prototype.convertFrom=function(In){var Hn=In.clone();return Hn.red=null,Hn},a.mont=function(In){return new bi(In)};function bi(Yn){Fi.call(this,Yn),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(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)}s(bi,Fi),bi.prototype.convertTo=function(In){return this.imod(In.ushln(this.shift))},bi.prototype.convertFrom=function(In){var Hn=this.imod(In.mul(this.rinv));return Hn.red=null,Hn},bi.prototype.imul=function(In,Hn){if(In.isZero()||Hn.isZero())return In.words[0]=0,In.length=1,In;var yi=In.imul(Hn),mi=yi.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_i=yi.isub(mi).iushrn(this.shift),wi=_i;return _i.cmp(this.m)>=0?wi=_i.isub(this.m):_i.cmpn(0)<0&&(wi=_i.iadd(this.m)),wi._forceRed(this)},bi.prototype.mul=function(In,Hn){if(In.isZero()||Hn.isZero())return new a(0)._forceRed(this);var yi=In.mul(Hn),mi=yi.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_i=yi.isub(mi).iushrn(this.shift),wi=_i;return _i.cmp(this.m)>=0?wi=_i.isub(this.m):_i.cmpn(0)<0&&(wi=_i.iadd(this.m)),wi._forceRed(this)},bi.prototype.invm=function(In){var Hn=this.imod(In._invmp(this.m).mul(this.r2));return Hn._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(),t=requireBrowser$b(),n=requireSafeBuffer$1().Buffer;function i(l){var v=l.modulus.byteLength(),on;do on=new r(t(v));while(on.cmp(l.modulus)>=0||!on.umod(l.prime1)||!on.umod(l.prime2));return on}function s(l){var v=i(l),on=v.toRed(r.mont(l.modulus)).redPow(new r(l.publicExponent)).fromRed();return{blinder:on,unblinder:v.invm(l.modulus)}}function a(l,v){var on=s(v),u=v.modulus.byteLength(),h=new r(l).mul(on.blinder).umod(v.modulus),Rn=h.toRed(r.mont(v.prime1)),D=h.toRed(r.mont(v.prime2)),Mn=v.coefficient,Ln=v.prime1,jn=v.prime2,hi=Rn.redPow(v.exponent1).fromRed(),vi=D.redPow(v.exponent2).fromRed(),gi=hi.isub(vi).imul(Mn).umod(Ln).imul(jn);return vi.iadd(gi).imul(on.unblinder).umod(v.modulus).toArrayLike(n,"be",u)}return a.getr=i,browserifyRsa=a,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 t=r;function n(a,l){if(Array.isArray(a))return a.slice();if(!a)return[];var v=[];if(typeof a!="string"){for(var on=0;on<a.length;on++)v[on]=a[on]|0;return v}if(l==="hex"){a=a.replace(/[^a-z0-9]+/ig,""),a.length%2!==0&&(a="0"+a);for(var on=0;on<a.length;on+=2)v.push(parseInt(a[on]+a[on+1],16))}else for(var on=0;on<a.length;on++){var u=a.charCodeAt(on),h=u>>8,Rn=u&255;h?v.push(h,Rn):v.push(Rn)}return v}t.toArray=n;function i(a){return a.length===1?"0"+a:a}t.zero2=i;function s(a){for(var l="",v=0;v<a.length;v++)l+=i(a[v].toString(16));return l}t.toHex=s,t.encode=function(l,v){return v==="hex"?s(l):l}}(utils$1)),utils$1}var hasRequiredUtils$1;function requireUtils$1(){return hasRequiredUtils$1||(hasRequiredUtils$1=1,function(r){var t=r,n=requireBn$2(),i=requireMinimalisticAssert(),s=requireUtils$2();t.assert=i,t.toArray=s.toArray,t.zero2=s.zero2,t.toHex=s.toHex,t.encode=s.encode;function a(h,Rn,D){var Mn=new Array(Math.max(h.bitLength(),D)+1),Ln;for(Ln=0;Ln<Mn.length;Ln+=1)Mn[Ln]=0;var jn=1<<Rn+1,hi=h.clone();for(Ln=0;Ln<Mn.length;Ln++){var vi,gi=hi.andln(jn-1);hi.isOdd()?(gi>(jn>>1)-1?vi=(jn>>1)-gi:vi=gi,hi.isubn(vi)):vi=0,Mn[Ln]=vi,hi.iushrn(1)}return Mn}t.getNAF=a;function l(h,Rn){var D=[[],[]];h=h.clone(),Rn=Rn.clone();for(var Mn=0,Ln=0,jn;h.cmpn(-Mn)>0||Rn.cmpn(-Ln)>0;){var hi=h.andln(3)+Mn&3,vi=Rn.andln(3)+Ln&3;hi===3&&(hi=-1),vi===3&&(vi=-1);var gi;(hi&1)===0?gi=0:(jn=h.andln(7)+Mn&7,(jn===3||jn===5)&&vi===2?gi=-hi:gi=hi),D[0].push(gi);var Ri;(vi&1)===0?Ri=0:(jn=Rn.andln(7)+Ln&7,(jn===3||jn===5)&&hi===2?Ri=-vi:Ri=vi),D[1].push(Ri),2*Mn===gi+1&&(Mn=1-Mn),2*Ln===Ri+1&&(Ln=1-Ln),h.iushrn(1),Rn.iushrn(1)}return D}t.getJSF=l;function v(h,Rn,D){var Mn="_"+Rn;h.prototype[Rn]=function(){return this[Mn]!==void 0?this[Mn]:this[Mn]=D.call(this)}}t.cachedProperty=v;function on(h){return typeof h=="string"?t.toArray(h,"hex"):h}t.parseBytes=on;function u(h){return new n(h,"hex","le")}t.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(),t=requireUtils$1(),n=t.getNAF,i=t.getJSF,s=t.assert;function a(v,on){this.type=v,this.p=new r(on.p,16),this.red=on.prime?r.red(on.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=on.n&&new r(on.n,16),this.g=on.g&&this.pointFromJSON(on.g,on.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=a,a.prototype.point=function(){throw new Error("Not implemented")},a.prototype.validate=function(){throw new Error("Not implemented")},a.prototype._fixedNafMul=function(on,u){s(on.precomputed);var h=on._getDoubles(),Rn=n(u,1,this._bitLength),D=(1<<h.step+1)-(h.step%2===0?2:1);D/=3;var Mn=[],Ln,jn;for(Ln=0;Ln<Rn.length;Ln+=h.step){jn=0;for(var hi=Ln+h.step-1;hi>=Ln;hi--)jn=(jn<<1)+Rn[hi];Mn.push(jn)}for(var vi=this.jpoint(null,null,null),gi=this.jpoint(null,null,null),Ri=D;Ri>0;Ri--){for(Ln=0;Ln<Mn.length;Ln++)jn=Mn[Ln],jn===Ri?gi=gi.mixedAdd(h.points[Ln]):jn===-Ri&&(gi=gi.mixedAdd(h.points[Ln].neg()));vi=vi.add(gi)}return vi.toP()},a.prototype._wnafMul=function(on,u){var h=4,Rn=on._getNAFPoints(h);h=Rn.wnd;for(var D=Rn.points,Mn=n(u,h,this._bitLength),Ln=this.jpoint(null,null,null),jn=Mn.length-1;jn>=0;jn--){for(var hi=0;jn>=0&&Mn[jn]===0;jn--)hi++;if(jn>=0&&hi++,Ln=Ln.dblp(hi),jn<0)break;var vi=Mn[jn];s(vi!==0),on.type==="affine"?vi>0?Ln=Ln.mixedAdd(D[vi-1>>1]):Ln=Ln.mixedAdd(D[-vi-1>>1].neg()):vi>0?Ln=Ln.add(D[vi-1>>1]):Ln=Ln.add(D[-vi-1>>1].neg())}return on.type==="affine"?Ln.toP():Ln},a.prototype._wnafMulAdd=function(on,u,h,Rn,D){var Mn=this._wnafT1,Ln=this._wnafT2,jn=this._wnafT3,hi=0,vi,gi,Ri;for(vi=0;vi<Rn;vi++){Ri=u[vi];var Si=Ri._getNAFPoints(on);Mn[vi]=Si.wnd,Ln[vi]=Si.points}for(vi=Rn-1;vi>=1;vi-=2){var Ai=vi-1,Ii=vi;if(Mn[Ai]!==1||Mn[Ii]!==1){jn[Ai]=n(h[Ai],Mn[Ai],this._bitLength),jn[Ii]=n(h[Ii],Mn[Ii],this._bitLength),hi=Math.max(jn[Ai].length,hi),hi=Math.max(jn[Ii].length,hi);continue}var Ni=[u[Ai],null,null,u[Ii]];u[Ai].y.cmp(u[Ii].y)===0?(Ni[1]=u[Ai].add(u[Ii]),Ni[2]=u[Ai].toJ().mixedAdd(u[Ii].neg())):u[Ai].y.cmp(u[Ii].y.redNeg())===0?(Ni[1]=u[Ai].toJ().mixedAdd(u[Ii]),Ni[2]=u[Ai].add(u[Ii].neg())):(Ni[1]=u[Ai].toJ().mixedAdd(u[Ii]),Ni[2]=u[Ai].toJ().mixedAdd(u[Ii].neg()));var Ci=[-3,-1,-5,-7,0,7,5,1,3],Oi=i(h[Ai],h[Ii]);for(hi=Math.max(Oi[0].length,hi),jn[Ai]=new Array(hi),jn[Ii]=new Array(hi),gi=0;gi<hi;gi++){var ki=Oi[0][gi]|0,Fi=Oi[1][gi]|0;jn[Ai][gi]=Ci[(ki+1)*3+(Fi+1)],jn[Ii][gi]=0,Ln[Ai]=Ni}}var bi=this.jpoint(null,null,null),Yn=this._wnafT4;for(vi=hi;vi>=0;vi--){for(var In=0;vi>=0;){var Hn=!0;for(gi=0;gi<Rn;gi++)Yn[gi]=jn[gi][vi]|0,Yn[gi]!==0&&(Hn=!1);if(!Hn)break;In++,vi--}if(vi>=0&&In++,bi=bi.dblp(In),vi<0)break;for(gi=0;gi<Rn;gi++){var yi=Yn[gi];yi!==0&&(yi>0?Ri=Ln[gi][yi-1>>1]:yi<0&&(Ri=Ln[gi][-yi-1>>1].neg()),Ri.type==="affine"?bi=bi.mixedAdd(Ri):bi=bi.add(Ri))}}for(vi=0;vi<Rn;vi++)Ln[vi]=null;return D?bi:bi.toP()};function l(v,on){this.curve=v,this.type=on,this.precomputed=null}return a.BasePoint=l,l.prototype.eq=function(){throw new Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},a.prototype.decodePoint=function(on,u){on=t.toArray(on,u);var h=this.p.byteLength();if((on[0]===4||on[0]===6||on[0]===7)&&on.length-1===2*h){on[0]===6?s(on[on.length-1]%2===0):on[0]===7&&s(on[on.length-1]%2===1);var Rn=this.point(on.slice(1,1+h),on.slice(1+h,1+2*h));return Rn}else if((on[0]===2||on[0]===3)&&on.length-1===h)return this.pointFromX(on.slice(1,1+h),on[0]===3);throw new Error("Unknown point format")},l.prototype.encodeCompressed=function(on){return this.encode(on,!0)},l.prototype._encode=function(on){var u=this.curve.p.byteLength(),h=this.getX().toArray("be",u);return on?[this.getY().isEven()?2:3].concat(h):[4].concat(h,this.getY().toArray("be",u))},l.prototype.encode=function(on,u){return t.encode(this._encode(u),on)},l.prototype.precompute=function(on){if(this.precomputed)return this;var u={doubles:null,naf:null,beta:null};return u.naf=this._getNAFPoints(8),u.doubles=this._getDoubles(4,on),u.beta=this._getBeta(),this.precomputed=u,this},l.prototype._hasDoubles=function(on){if(!this.precomputed)return!1;var u=this.precomputed.doubles;return u?u.points.length>=Math.ceil((on.bitLength()+1)/u.step):!1},l.prototype._getDoubles=function(on,u){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var h=[this],Rn=this,D=0;D<u;D+=on){for(var Mn=0;Mn<on;Mn++)Rn=Rn.dbl();h.push(Rn)}return{step:on,points:h}},l.prototype._getNAFPoints=function(on){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var u=[this],h=(1<<on)-1,Rn=h===1?null:this.dbl(),D=1;D<h;D++)u[D]=u[D-1].add(Rn);return{wnd:on,points:u}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(on){for(var u=this,h=0;h<on;h++)u=u.dbl();return u},base$1}var short,hasRequiredShort;function requireShort(){if(hasRequiredShort)return short;hasRequiredShort=1;var r=requireUtils$1(),t=requireBn$2(),n=requireInherits_browser(),i=requireBase$1(),s=r.assert;function a(on){i.call(this,"short",on),this.a=new t(on.a,16).toRed(this.red),this.b=new t(on.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(on),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}n(a,i),short=a,a.prototype._getEndomorphism=function(u){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var h,Rn;if(u.beta)h=new t(u.beta,16).toRed(this.red);else{var D=this._getEndoRoots(this.p);h=D[0].cmp(D[1])<0?D[0]:D[1],h=h.toRed(this.red)}if(u.lambda)Rn=new t(u.lambda,16);else{var Mn=this._getEndoRoots(this.n);this.g.mul(Mn[0]).x.cmp(this.g.x.redMul(h))===0?Rn=Mn[0]:(Rn=Mn[1],s(this.g.mul(Rn).x.cmp(this.g.x.redMul(h))===0))}var Ln;return u.basis?Ln=u.basis.map(function(jn){return{a:new t(jn.a,16),b:new t(jn.b,16)}}):Ln=this._getEndoBasis(Rn),{beta:h,lambda:Rn,basis:Ln}}},a.prototype._getEndoRoots=function(u){var h=u===this.p?this.red:t.mont(u),Rn=new t(2).toRed(h).redInvm(),D=Rn.redNeg(),Mn=new t(3).toRed(h).redNeg().redSqrt().redMul(Rn),Ln=D.redAdd(Mn).fromRed(),jn=D.redSub(Mn).fromRed();return[Ln,jn]},a.prototype._getEndoBasis=function(u){for(var h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),Rn=u,D=this.n.clone(),Mn=new t(1),Ln=new t(0),jn=new t(0),hi=new t(1),vi,gi,Ri,Si,Ai,Ii,Ni,Ci=0,Oi,ki;Rn.cmpn(0)!==0;){var Fi=D.div(Rn);Oi=D.sub(Fi.mul(Rn)),ki=jn.sub(Fi.mul(Mn));var bi=hi.sub(Fi.mul(Ln));if(!Ri&&Oi.cmp(h)<0)vi=Ni.neg(),gi=Mn,Ri=Oi.neg(),Si=ki;else if(Ri&&++Ci===2)break;Ni=Oi,D=Rn,Rn=Oi,jn=Mn,Mn=ki,hi=Ln,Ln=bi}Ai=Oi.neg(),Ii=ki;var Yn=Ri.sqr().add(Si.sqr()),In=Ai.sqr().add(Ii.sqr());return In.cmp(Yn)>=0&&(Ai=vi,Ii=gi),Ri.negative&&(Ri=Ri.neg(),Si=Si.neg()),Ai.negative&&(Ai=Ai.neg(),Ii=Ii.neg()),[{a:Ri,b:Si},{a:Ai,b:Ii}]},a.prototype._endoSplit=function(u){var h=this.endo.basis,Rn=h[0],D=h[1],Mn=D.b.mul(u).divRound(this.n),Ln=Rn.b.neg().mul(u).divRound(this.n),jn=Mn.mul(Rn.a),hi=Ln.mul(D.a),vi=Mn.mul(Rn.b),gi=Ln.mul(D.b),Ri=u.sub(jn).sub(hi),Si=vi.add(gi).neg();return{k1:Ri,k2:Si}},a.prototype.pointFromX=function(u,h){u=new t(u,16),u.red||(u=u.toRed(this.red));var Rn=u.redSqr().redMul(u).redIAdd(u.redMul(this.a)).redIAdd(this.b),D=Rn.redSqrt();if(D.redSqr().redSub(Rn).cmp(this.zero)!==0)throw new Error("invalid point");var Mn=D.fromRed().isOdd();return(h&&!Mn||!h&&Mn)&&(D=D.redNeg()),this.point(u,D)},a.prototype.validate=function(u){if(u.inf)return!0;var h=u.x,Rn=u.y,D=this.a.redMul(h),Mn=h.redSqr().redMul(h).redIAdd(D).redIAdd(this.b);return Rn.redSqr().redISub(Mn).cmpn(0)===0},a.prototype._endoWnafMulAdd=function(u,h,Rn){for(var D=this._endoWnafT1,Mn=this._endoWnafT2,Ln=0;Ln<u.length;Ln++){var jn=this._endoSplit(h[Ln]),hi=u[Ln],vi=hi._getBeta();jn.k1.negative&&(jn.k1.ineg(),hi=hi.neg(!0)),jn.k2.negative&&(jn.k2.ineg(),vi=vi.neg(!0)),D[Ln*2]=hi,D[Ln*2+1]=vi,Mn[Ln*2]=jn.k1,Mn[Ln*2+1]=jn.k2}for(var gi=this._wnafMulAdd(1,D,Mn,Ln*2,Rn),Ri=0;Ri<Ln*2;Ri++)D[Ri]=null,Mn[Ri]=null;return gi};function l(on,u,h,Rn){i.BasePoint.call(this,on,"affine"),u===null&&h===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new t(u,16),this.y=new t(h,16),Rn&&(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)}n(l,i.BasePoint),a.prototype.point=function(u,h,Rn){return new l(this,u,h,Rn)},a.prototype.pointFromJSON=function(u,h){return l.fromJSON(this,u,h)},l.prototype._getBeta=function(){if(this.curve.endo){var u=this.precomputed;if(u&&u.beta)return u.beta;var h=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(u){var Rn=this.curve,D=function(Mn){return Rn.point(Mn.x.redMul(Rn.endo.beta),Mn.y)};u.beta=h,h.precomputed={beta:null,naf:u.naf&&{wnd:u.naf.wnd,points:u.naf.points.map(D)},doubles:u.doubles&&{step:u.doubles.step,points:u.doubles.points.map(D)}}}return h}},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,h,Rn){typeof h=="string"&&(h=JSON.parse(h));var D=u.point(h[0],h[1],Rn);if(!h[2])return D;function Mn(jn){return u.point(jn[0],jn[1],Rn)}var Ln=h[2];return D.precomputed={beta:null,doubles:Ln.doubles&&{step:Ln.doubles.step,points:[D].concat(Ln.doubles.points.map(Mn))},naf:Ln.naf&&{wnd:Ln.naf.wnd,points:[D].concat(Ln.naf.points.map(Mn))}},D},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 h=this.y.redSub(u.y);h.cmpn(0)!==0&&(h=h.redMul(this.x.redSub(u.x).redInvm()));var Rn=h.redSqr().redISub(this.x).redISub(u.x),D=h.redMul(this.x.redSub(Rn)).redISub(this.y);return this.curve.point(Rn,D)},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 h=this.curve.a,Rn=this.x.redSqr(),D=u.redInvm(),Mn=Rn.redAdd(Rn).redIAdd(Rn).redIAdd(h).redMul(D),Ln=Mn.redSqr().redISub(this.x.redAdd(this.x)),jn=Mn.redMul(this.x.redSub(Ln)).redISub(this.y);return this.curve.point(Ln,jn)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(u){return u=new t(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,h,Rn){var D=[this,h],Mn=[u,Rn];return this.curve.endo?this.curve._endoWnafMulAdd(D,Mn):this.curve._wnafMulAdd(1,D,Mn,2)},l.prototype.jmulAdd=function(u,h,Rn){var D=[this,h],Mn=[u,Rn];return this.curve.endo?this.curve._endoWnafMulAdd(D,Mn,!0):this.curve._wnafMulAdd(1,D,Mn,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 h=this.curve.point(this.x,this.y.redNeg());if(u&&this.precomputed){var Rn=this.precomputed,D=function(Mn){return Mn.neg()};h.precomputed={naf:Rn.naf&&{wnd:Rn.naf.wnd,points:Rn.naf.points.map(D)},doubles:Rn.doubles&&{step:Rn.doubles.step,points:Rn.doubles.points.map(D)}}}return h},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 v(on,u,h,Rn){i.BasePoint.call(this,on,"jacobian"),u===null&&h===null&&Rn===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new t(0)):(this.x=new t(u,16),this.y=new t(h,16),this.z=new t(Rn,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 n(v,i.BasePoint),a.prototype.jpoint=function(u,h,Rn){return new v(this,u,h,Rn)},v.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var u=this.z.redInvm(),h=u.redSqr(),Rn=this.x.redMul(h),D=this.y.redMul(h).redMul(u);return this.curve.point(Rn,D)},v.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},v.prototype.add=function(u){if(this.isInfinity())return u;if(u.isInfinity())return this;var h=u.z.redSqr(),Rn=this.z.redSqr(),D=this.x.redMul(h),Mn=u.x.redMul(Rn),Ln=this.y.redMul(h.redMul(u.z)),jn=u.y.redMul(Rn.redMul(this.z)),hi=D.redSub(Mn),vi=Ln.redSub(jn);if(hi.cmpn(0)===0)return vi.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var gi=hi.redSqr(),Ri=gi.redMul(hi),Si=D.redMul(gi),Ai=vi.redSqr().redIAdd(Ri).redISub(Si).redISub(Si),Ii=vi.redMul(Si.redISub(Ai)).redISub(Ln.redMul(Ri)),Ni=this.z.redMul(u.z).redMul(hi);return this.curve.jpoint(Ai,Ii,Ni)},v.prototype.mixedAdd=function(u){if(this.isInfinity())return u.toJ();if(u.isInfinity())return this;var h=this.z.redSqr(),Rn=this.x,D=u.x.redMul(h),Mn=this.y,Ln=u.y.redMul(h).redMul(this.z),jn=Rn.redSub(D),hi=Mn.redSub(Ln);if(jn.cmpn(0)===0)return hi.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var vi=jn.redSqr(),gi=vi.redMul(jn),Ri=Rn.redMul(vi),Si=hi.redSqr().redIAdd(gi).redISub(Ri).redISub(Ri),Ai=hi.redMul(Ri.redISub(Si)).redISub(Mn.redMul(gi)),Ii=this.z.redMul(jn);return this.curve.jpoint(Si,Ai,Ii)},v.prototype.dblp=function(u){if(u===0)return this;if(this.isInfinity())return this;if(!u)return this.dbl();var h;if(this.curve.zeroA||this.curve.threeA){var Rn=this;for(h=0;h<u;h++)Rn=Rn.dbl();return Rn}var D=this.curve.a,Mn=this.curve.tinv,Ln=this.x,jn=this.y,hi=this.z,vi=hi.redSqr().redSqr(),gi=jn.redAdd(jn);for(h=0;h<u;h++){var Ri=Ln.redSqr(),Si=gi.redSqr(),Ai=Si.redSqr(),Ii=Ri.redAdd(Ri).redIAdd(Ri).redIAdd(D.redMul(vi)),Ni=Ln.redMul(Si),Ci=Ii.redSqr().redISub(Ni.redAdd(Ni)),Oi=Ni.redISub(Ci),ki=Ii.redMul(Oi);ki=ki.redIAdd(ki).redISub(Ai);var Fi=gi.redMul(hi);h+1<u&&(vi=vi.redMul(Ai)),Ln=Ci,hi=Fi,gi=ki}return this.curve.jpoint(Ln,gi.redMul(Mn),hi)},v.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},v.prototype._zeroDbl=function(){var u,h,Rn;if(this.zOne){var D=this.x.redSqr(),Mn=this.y.redSqr(),Ln=Mn.redSqr(),jn=this.x.redAdd(Mn).redSqr().redISub(D).redISub(Ln);jn=jn.redIAdd(jn);var hi=D.redAdd(D).redIAdd(D),vi=hi.redSqr().redISub(jn).redISub(jn),gi=Ln.redIAdd(Ln);gi=gi.redIAdd(gi),gi=gi.redIAdd(gi),u=vi,h=hi.redMul(jn.redISub(vi)).redISub(gi),Rn=this.y.redAdd(this.y)}else{var Ri=this.x.redSqr(),Si=this.y.redSqr(),Ai=Si.redSqr(),Ii=this.x.redAdd(Si).redSqr().redISub(Ri).redISub(Ai);Ii=Ii.redIAdd(Ii);var Ni=Ri.redAdd(Ri).redIAdd(Ri),Ci=Ni.redSqr(),Oi=Ai.redIAdd(Ai);Oi=Oi.redIAdd(Oi),Oi=Oi.redIAdd(Oi),u=Ci.redISub(Ii).redISub(Ii),h=Ni.redMul(Ii.redISub(u)).redISub(Oi),Rn=this.y.redMul(this.z),Rn=Rn.redIAdd(Rn)}return this.curve.jpoint(u,h,Rn)},v.prototype._threeDbl=function(){var u,h,Rn;if(this.zOne){var D=this.x.redSqr(),Mn=this.y.redSqr(),Ln=Mn.redSqr(),jn=this.x.redAdd(Mn).redSqr().redISub(D).redISub(Ln);jn=jn.redIAdd(jn);var hi=D.redAdd(D).redIAdd(D).redIAdd(this.curve.a),vi=hi.redSqr().redISub(jn).redISub(jn);u=vi;var gi=Ln.redIAdd(Ln);gi=gi.redIAdd(gi),gi=gi.redIAdd(gi),h=hi.redMul(jn.redISub(vi)).redISub(gi),Rn=this.y.redAdd(this.y)}else{var Ri=this.z.redSqr(),Si=this.y.redSqr(),Ai=this.x.redMul(Si),Ii=this.x.redSub(Ri).redMul(this.x.redAdd(Ri));Ii=Ii.redAdd(Ii).redIAdd(Ii);var Ni=Ai.redIAdd(Ai);Ni=Ni.redIAdd(Ni);var Ci=Ni.redAdd(Ni);u=Ii.redSqr().redISub(Ci),Rn=this.y.redAdd(this.z).redSqr().redISub(Si).redISub(Ri);var Oi=Si.redSqr();Oi=Oi.redIAdd(Oi),Oi=Oi.redIAdd(Oi),Oi=Oi.redIAdd(Oi),h=Ii.redMul(Ni.redISub(u)).redISub(Oi)}return this.curve.jpoint(u,h,Rn)},v.prototype._dbl=function(){var u=this.curve.a,h=this.x,Rn=this.y,D=this.z,Mn=D.redSqr().redSqr(),Ln=h.redSqr(),jn=Rn.redSqr(),hi=Ln.redAdd(Ln).redIAdd(Ln).redIAdd(u.redMul(Mn)),vi=h.redAdd(h);vi=vi.redIAdd(vi);var gi=vi.redMul(jn),Ri=hi.redSqr().redISub(gi.redAdd(gi)),Si=gi.redISub(Ri),Ai=jn.redSqr();Ai=Ai.redIAdd(Ai),Ai=Ai.redIAdd(Ai),Ai=Ai.redIAdd(Ai);var Ii=hi.redMul(Si).redISub(Ai),Ni=Rn.redAdd(Rn).redMul(D);return this.curve.jpoint(Ri,Ii,Ni)},v.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var u=this.x.redSqr(),h=this.y.redSqr(),Rn=this.z.redSqr(),D=h.redSqr(),Mn=u.redAdd(u).redIAdd(u),Ln=Mn.redSqr(),jn=this.x.redAdd(h).redSqr().redISub(u).redISub(D);jn=jn.redIAdd(jn),jn=jn.redAdd(jn).redIAdd(jn),jn=jn.redISub(Ln);var hi=jn.redSqr(),vi=D.redIAdd(D);vi=vi.redIAdd(vi),vi=vi.redIAdd(vi),vi=vi.redIAdd(vi);var gi=Mn.redIAdd(jn).redSqr().redISub(Ln).redISub(hi).redISub(vi),Ri=h.redMul(gi);Ri=Ri.redIAdd(Ri),Ri=Ri.redIAdd(Ri);var Si=this.x.redMul(hi).redISub(Ri);Si=Si.redIAdd(Si),Si=Si.redIAdd(Si);var Ai=this.y.redMul(gi.redMul(vi.redISub(gi)).redISub(jn.redMul(hi)));Ai=Ai.redIAdd(Ai),Ai=Ai.redIAdd(Ai),Ai=Ai.redIAdd(Ai);var Ii=this.z.redAdd(jn).redSqr().redISub(Rn).redISub(hi);return this.curve.jpoint(Si,Ai,Ii)},v.prototype.mul=function(u,h){return u=new t(u,h),this.curve._wnafMul(this,u)},v.prototype.eq=function(u){if(u.type==="affine")return this.eq(u.toJ());if(this===u)return!0;var h=this.z.redSqr(),Rn=u.z.redSqr();if(this.x.redMul(Rn).redISub(u.x.redMul(h)).cmpn(0)!==0)return!1;var D=h.redMul(this.z),Mn=Rn.redMul(u.z);return this.y.redMul(Mn).redISub(u.y.redMul(D)).cmpn(0)===0},v.prototype.eqXToP=function(u){var h=this.z.redSqr(),Rn=u.toRed(this.curve.red).redMul(h);if(this.x.cmp(Rn)===0)return!0;for(var D=u.clone(),Mn=this.curve.redN.redMul(h);;){if(D.iadd(this.curve.n),D.cmp(this.curve.p)>=0)return!1;if(Rn.redIAdd(Mn),this.x.cmp(Rn)===0)return!0}},v.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)+">"},v.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(),t=requireInherits_browser(),n=requireBase$1(),i=requireUtils$1();function s(l){n.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))}t(s,n),mont=s,s.prototype.validate=function(v){var on=v.normalize().x,u=on.redSqr(),h=u.redMul(on).redAdd(u.redMul(this.a)).redAdd(on),Rn=h.redSqrt();return Rn.redSqr().cmp(h)===0};function a(l,v,on){n.BasePoint.call(this,l,"projective"),v===null&&on===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(v,16),this.z=new r(on,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return t(a,n.BasePoint),s.prototype.decodePoint=function(v,on){return this.point(i.toArray(v,on),1)},s.prototype.point=function(v,on){return new a(this,v,on)},s.prototype.pointFromJSON=function(v){return a.fromJSON(this,v)},a.prototype.precompute=function(){},a.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},a.fromJSON=function(v,on){return new a(v,on[0],on[1]||v.one)},a.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)+">"},a.prototype.isInfinity=function(){return this.z.cmpn(0)===0},a.prototype.dbl=function(){var v=this.x.redAdd(this.z),on=v.redSqr(),u=this.x.redSub(this.z),h=u.redSqr(),Rn=on.redSub(h),D=on.redMul(h),Mn=Rn.redMul(h.redAdd(this.curve.a24.redMul(Rn)));return this.curve.point(D,Mn)},a.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},a.prototype.diffAdd=function(v,on){var u=this.x.redAdd(this.z),h=this.x.redSub(this.z),Rn=v.x.redAdd(v.z),D=v.x.redSub(v.z),Mn=D.redMul(u),Ln=Rn.redMul(h),jn=on.z.redMul(Mn.redAdd(Ln).redSqr()),hi=on.x.redMul(Mn.redISub(Ln).redSqr());return this.curve.point(jn,hi)},a.prototype.mul=function(v){for(var on=v.clone(),u=this,h=this.curve.point(null,null),Rn=this,D=[];on.cmpn(0)!==0;on.iushrn(1))D.push(on.andln(1));for(var Mn=D.length-1;Mn>=0;Mn--)D[Mn]===0?(u=u.diffAdd(h,Rn),h=h.dbl()):(h=u.diffAdd(h,Rn),u=u.dbl());return h},a.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},a.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},a.prototype.eq=function(v){return this.getX().cmp(v.getX())===0},a.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},a.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(),t=requireBn$2(),n=requireInherits_browser(),i=requireBase$1(),s=r.assert;function a(v){this.twisted=(v.a|0)!==1,this.mOneA=this.twisted&&(v.a|0)===-1,this.extended=this.mOneA,i.call(this,"edwards",v),this.a=new t(v.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new t(v.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new t(v.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(v.c|0)===1}n(a,i),edwards=a,a.prototype._mulA=function(on){return this.mOneA?on.redNeg():this.a.redMul(on)},a.prototype._mulC=function(on){return this.oneC?on:this.c.redMul(on)},a.prototype.jpoint=function(on,u,h,Rn){return this.point(on,u,h,Rn)},a.prototype.pointFromX=function(on,u){on=new t(on,16),on.red||(on=on.toRed(this.red));var h=on.redSqr(),Rn=this.c2.redSub(this.a.redMul(h)),D=this.one.redSub(this.c2.redMul(this.d).redMul(h)),Mn=Rn.redMul(D.redInvm()),Ln=Mn.redSqrt();if(Ln.redSqr().redSub(Mn).cmp(this.zero)!==0)throw new Error("invalid point");var jn=Ln.fromRed().isOdd();return(u&&!jn||!u&&jn)&&(Ln=Ln.redNeg()),this.point(on,Ln)},a.prototype.pointFromY=function(on,u){on=new t(on,16),on.red||(on=on.toRed(this.red));var h=on.redSqr(),Rn=h.redSub(this.c2),D=h.redMul(this.d).redMul(this.c2).redSub(this.a),Mn=Rn.redMul(D.redInvm());if(Mn.cmp(this.zero)===0){if(u)throw new Error("invalid point");return this.point(this.zero,on)}var Ln=Mn.redSqrt();if(Ln.redSqr().redSub(Mn).cmp(this.zero)!==0)throw new Error("invalid point");return Ln.fromRed().isOdd()!==u&&(Ln=Ln.redNeg()),this.point(Ln,on)},a.prototype.validate=function(on){if(on.isInfinity())return!0;on.normalize();var u=on.x.redSqr(),h=on.y.redSqr(),Rn=u.redMul(this.a).redAdd(h),D=this.c2.redMul(this.one.redAdd(this.d.redMul(u).redMul(h)));return Rn.cmp(D)===0};function l(v,on,u,h,Rn){i.BasePoint.call(this,v,"projective"),on===null&&u===null&&h===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 t(on,16),this.y=new t(u,16),this.z=h?new t(h,16):this.curve.one,this.t=Rn&&new t(Rn,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 n(l,i.BasePoint),a.prototype.pointFromJSON=function(on){return l.fromJSON(this,on)},a.prototype.point=function(on,u,h,Rn){return new l(this,on,u,h,Rn)},l.fromJSON=function(on,u){return new l(on,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 on=this.x.redSqr(),u=this.y.redSqr(),h=this.z.redSqr();h=h.redIAdd(h);var Rn=this.curve._mulA(on),D=this.x.redAdd(this.y).redSqr().redISub(on).redISub(u),Mn=Rn.redAdd(u),Ln=Mn.redSub(h),jn=Rn.redSub(u),hi=D.redMul(Ln),vi=Mn.redMul(jn),gi=D.redMul(jn),Ri=Ln.redMul(Mn);return this.curve.point(hi,vi,Ri,gi)},l.prototype._projDbl=function(){var on=this.x.redAdd(this.y).redSqr(),u=this.x.redSqr(),h=this.y.redSqr(),Rn,D,Mn,Ln,jn,hi;if(this.curve.twisted){Ln=this.curve._mulA(u);var vi=Ln.redAdd(h);this.zOne?(Rn=on.redSub(u).redSub(h).redMul(vi.redSub(this.curve.two)),D=vi.redMul(Ln.redSub(h)),Mn=vi.redSqr().redSub(vi).redSub(vi)):(jn=this.z.redSqr(),hi=vi.redSub(jn).redISub(jn),Rn=on.redSub(u).redISub(h).redMul(hi),D=vi.redMul(Ln.redSub(h)),Mn=vi.redMul(hi))}else Ln=u.redAdd(h),jn=this.curve._mulC(this.z).redSqr(),hi=Ln.redSub(jn).redSub(jn),Rn=this.curve._mulC(on.redISub(Ln)).redMul(hi),D=this.curve._mulC(Ln).redMul(u.redISub(h)),Mn=Ln.redMul(hi);return this.curve.point(Rn,D,Mn)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(on){var u=this.y.redSub(this.x).redMul(on.y.redSub(on.x)),h=this.y.redAdd(this.x).redMul(on.y.redAdd(on.x)),Rn=this.t.redMul(this.curve.dd).redMul(on.t),D=this.z.redMul(on.z.redAdd(on.z)),Mn=h.redSub(u),Ln=D.redSub(Rn),jn=D.redAdd(Rn),hi=h.redAdd(u),vi=Mn.redMul(Ln),gi=jn.redMul(hi),Ri=Mn.redMul(hi),Si=Ln.redMul(jn);return this.curve.point(vi,gi,Si,Ri)},l.prototype._projAdd=function(on){var u=this.z.redMul(on.z),h=u.redSqr(),Rn=this.x.redMul(on.x),D=this.y.redMul(on.y),Mn=this.curve.d.redMul(Rn).redMul(D),Ln=h.redSub(Mn),jn=h.redAdd(Mn),hi=this.x.redAdd(this.y).redMul(on.x.redAdd(on.y)).redISub(Rn).redISub(D),vi=u.redMul(Ln).redMul(hi),gi,Ri;return this.curve.twisted?(gi=u.redMul(jn).redMul(D.redSub(this.curve._mulA(Rn))),Ri=Ln.redMul(jn)):(gi=u.redMul(jn).redMul(D.redSub(Rn)),Ri=this.curve._mulC(Ln).redMul(jn)),this.curve.point(vi,gi,Ri)},l.prototype.add=function(on){return this.isInfinity()?on:on.isInfinity()?this:this.curve.extended?this._extAdd(on):this._projAdd(on)},l.prototype.mul=function(on){return this._hasDoubles(on)?this.curve._fixedNafMul(this,on):this.curve._wnafMul(this,on)},l.prototype.mulAdd=function(on,u,h){return this.curve._wnafMulAdd(1,[this,u],[on,h],2,!1)},l.prototype.jmulAdd=function(on,u,h){return this.curve._wnafMulAdd(1,[this,u],[on,h],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var on=this.z.redInvm();return this.x=this.x.redMul(on),this.y=this.y.redMul(on),this.t&&(this.t=this.t.redMul(on)),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(on){return this===on||this.getX().cmp(on.getX())===0&&this.getY().cmp(on.getY())===0},l.prototype.eqXToP=function(on){var u=on.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(u)===0)return!0;for(var h=on.clone(),Rn=this.curve.redN.redMul(this.z);;){if(h.iadd(this.curve.n),h.cmp(this.curve.p)>=0)return!1;if(u.redIAdd(Rn),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 t=r;t.base=requireBase$1(),t.short=requireShort(),t.mont=requireMont(),t.edwards=requireEdwards()}(curve)),curve}var curves={},hash={},utils={},hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils;hasRequiredUtils=1;var r=requireMinimalisticAssert(),t=requireInherits_browser();utils.inherits=t;function n(bi,Yn){return(bi.charCodeAt(Yn)&64512)!==55296||Yn<0||Yn+1>=bi.length?!1:(bi.charCodeAt(Yn+1)&64512)===56320}function i(bi,Yn){if(Array.isArray(bi))return bi.slice();if(!bi)return[];var In=[];if(typeof bi=="string")if(Yn){if(Yn==="hex")for(bi=bi.replace(/[^a-z0-9]+/ig,""),bi.length%2!==0&&(bi="0"+bi),yi=0;yi<bi.length;yi+=2)In.push(parseInt(bi[yi]+bi[yi+1],16))}else for(var Hn=0,yi=0;yi<bi.length;yi++){var mi=bi.charCodeAt(yi);mi<128?In[Hn++]=mi:mi<2048?(In[Hn++]=mi>>6|192,In[Hn++]=mi&63|128):n(bi,yi)?(mi=65536+((mi&1023)<<10)+(bi.charCodeAt(++yi)&1023),In[Hn++]=mi>>18|240,In[Hn++]=mi>>12&63|128,In[Hn++]=mi>>6&63|128,In[Hn++]=mi&63|128):(In[Hn++]=mi>>12|224,In[Hn++]=mi>>6&63|128,In[Hn++]=mi&63|128)}else for(yi=0;yi<bi.length;yi++)In[yi]=bi[yi]|0;return In}utils.toArray=i;function s(bi){for(var Yn="",In=0;In<bi.length;In++)Yn+=v(bi[In].toString(16));return Yn}utils.toHex=s;function a(bi){var Yn=bi>>>24|bi>>>8&65280|bi<<8&16711680|(bi&255)<<24;return Yn>>>0}utils.htonl=a;function l(bi,Yn){for(var In="",Hn=0;Hn<bi.length;Hn++){var yi=bi[Hn];Yn==="little"&&(yi=a(yi)),In+=on(yi.toString(16))}return In}utils.toHex32=l;function v(bi){return bi.length===1?"0"+bi:bi}utils.zero2=v;function on(bi){return bi.length===7?"0"+bi:bi.length===6?"00"+bi:bi.length===5?"000"+bi:bi.length===4?"0000"+bi:bi.length===3?"00000"+bi:bi.length===2?"000000"+bi:bi.length===1?"0000000"+bi:bi}utils.zero8=on;function u(bi,Yn,In,Hn){var yi=In-Yn;r(yi%4===0);for(var mi=new Array(yi/4),_i=0,wi=Yn;_i<mi.length;_i++,wi+=4){var Ei;Hn==="big"?Ei=bi[wi]<<24|bi[wi+1]<<16|bi[wi+2]<<8|bi[wi+3]:Ei=bi[wi+3]<<24|bi[wi+2]<<16|bi[wi+1]<<8|bi[wi],mi[_i]=Ei>>>0}return mi}utils.join32=u;function h(bi,Yn){for(var In=new Array(bi.length*4),Hn=0,yi=0;Hn<bi.length;Hn++,yi+=4){var mi=bi[Hn];Yn==="big"?(In[yi]=mi>>>24,In[yi+1]=mi>>>16&255,In[yi+2]=mi>>>8&255,In[yi+3]=mi&255):(In[yi+3]=mi>>>24,In[yi+2]=mi>>>16&255,In[yi+1]=mi>>>8&255,In[yi]=mi&255)}return In}utils.split32=h;function Rn(bi,Yn){return bi>>>Yn|bi<<32-Yn}utils.rotr32=Rn;function D(bi,Yn){return bi<<Yn|bi>>>32-Yn}utils.rotl32=D;function Mn(bi,Yn){return bi+Yn>>>0}utils.sum32=Mn;function Ln(bi,Yn,In){return bi+Yn+In>>>0}utils.sum32_3=Ln;function jn(bi,Yn,In,Hn){return bi+Yn+In+Hn>>>0}utils.sum32_4=jn;function hi(bi,Yn,In,Hn,yi){return bi+Yn+In+Hn+yi>>>0}utils.sum32_5=hi;function vi(bi,Yn,In,Hn){var yi=bi[Yn],mi=bi[Yn+1],_i=Hn+mi>>>0,wi=(_i<Hn?1:0)+In+yi;bi[Yn]=wi>>>0,bi[Yn+1]=_i}utils.sum64=vi;function gi(bi,Yn,In,Hn){var yi=Yn+Hn>>>0,mi=(yi<Yn?1:0)+bi+In;return mi>>>0}utils.sum64_hi=gi;function Ri(bi,Yn,In,Hn){var yi=Yn+Hn;return yi>>>0}utils.sum64_lo=Ri;function Si(bi,Yn,In,Hn,yi,mi,_i,wi){var Ei=0,xi=Yn;xi=xi+Hn>>>0,Ei+=xi<Yn?1:0,xi=xi+mi>>>0,Ei+=xi<mi?1:0,xi=xi+wi>>>0,Ei+=xi<wi?1:0;var Wn=bi+In+yi+_i+Ei;return Wn>>>0}utils.sum64_4_hi=Si;function Ai(bi,Yn,In,Hn,yi,mi,_i,wi){var Ei=Yn+Hn+mi+wi;return Ei>>>0}utils.sum64_4_lo=Ai;function Ii(bi,Yn,In,Hn,yi,mi,_i,wi,Ei,xi){var Wn=0,Ti=Yn;Ti=Ti+Hn>>>0,Wn+=Ti<Yn?1:0,Ti=Ti+mi>>>0,Wn+=Ti<mi?1:0,Ti=Ti+wi>>>0,Wn+=Ti<wi?1:0,Ti=Ti+xi>>>0,Wn+=Ti<xi?1:0;var qi=bi+In+yi+_i+Ei+Wn;return qi>>>0}utils.sum64_5_hi=Ii;function Ni(bi,Yn,In,Hn,yi,mi,_i,wi,Ei,xi){var Wn=Yn+Hn+mi+wi+xi;return Wn>>>0}utils.sum64_5_lo=Ni;function Ci(bi,Yn,In){var Hn=Yn<<32-In|bi>>>In;return Hn>>>0}utils.rotr64_hi=Ci;function Oi(bi,Yn,In){var Hn=bi<<32-In|Yn>>>In;return Hn>>>0}utils.rotr64_lo=Oi;function ki(bi,Yn,In){return bi>>>In}utils.shr64_hi=ki;function Fi(bi,Yn,In){var Hn=bi<<32-In|Yn>>>In;return Hn>>>0}return utils.shr64_lo=Fi,utils}var common$1={},hasRequiredCommon$1;function requireCommon$1(){if(hasRequiredCommon$1)return common$1;hasRequiredCommon$1=1;var r=requireUtils(),t=requireMinimalisticAssert();function n(){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=n,n.prototype.update=function(s,a){if(s=r.toArray(s,a),this.pending?this.pending=this.pending.concat(s):this.pending=s,this.pendingTotal+=s.length,this.pending.length>=this._delta8){s=this.pending;var l=s.length%this._delta8;this.pending=s.slice(s.length-l,s.length),this.pending.length===0&&(this.pending=null),s=r.join32(s,0,s.length-l,this.endian);for(var v=0;v<s.length;v+=this._delta32)this._update(s,v,v+this._delta32)}return this},n.prototype.digest=function(s){return this.update(this._pad()),t(this.pending===null),this._digest(s)},n.prototype._pad=function(){var s=this.pendingTotal,a=this._delta8,l=a-(s+this.padLength)%a,v=new Array(l+this.padLength);v[0]=128;for(var on=1;on<l;on++)v[on]=0;if(s<<=3,this.endian==="big"){for(var u=8;u<this.padLength;u++)v[on++]=0;v[on++]=0,v[on++]=0,v[on++]=0,v[on++]=0,v[on++]=s>>>24&255,v[on++]=s>>>16&255,v[on++]=s>>>8&255,v[on++]=s&255}else for(v[on++]=s&255,v[on++]=s>>>8&255,v[on++]=s>>>16&255,v[on++]=s>>>24&255,v[on++]=0,v[on++]=0,v[on++]=0,v[on++]=0,u=8;u<this.padLength;u++)v[on++]=0;return v},common$1}var sha={},common={},hasRequiredCommon;function requireCommon(){if(hasRequiredCommon)return common;hasRequiredCommon=1;var r=requireUtils(),t=r.rotr32;function n(h,Rn,D,Mn){if(h===0)return i(Rn,D,Mn);if(h===1||h===3)return a(Rn,D,Mn);if(h===2)return s(Rn,D,Mn)}common.ft_1=n;function i(h,Rn,D){return h&Rn^~h&D}common.ch32=i;function s(h,Rn,D){return h&Rn^h&D^Rn&D}common.maj32=s;function a(h,Rn,D){return h^Rn^D}common.p32=a;function l(h){return t(h,2)^t(h,13)^t(h,22)}common.s0_256=l;function v(h){return t(h,6)^t(h,11)^t(h,25)}common.s1_256=v;function on(h){return t(h,7)^t(h,18)^h>>>3}common.g0_256=on;function u(h){return t(h,17)^t(h,19)^h>>>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(),t=requireCommon$1(),n=requireCommon(),i=r.rotl32,s=r.sum32,a=r.sum32_5,l=n.ft_1,v=t.BlockHash,on=[1518500249,1859775393,2400959708,3395469782];function u(){if(!(this instanceof u))return new u;v.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return r.inherits(u,v),_1=u,u.blockSize=512,u.outSize=160,u.hmacStrength=80,u.padLength=64,u.prototype._update=function(Rn,D){for(var Mn=this.W,Ln=0;Ln<16;Ln++)Mn[Ln]=Rn[D+Ln];for(;Ln<Mn.length;Ln++)Mn[Ln]=i(Mn[Ln-3]^Mn[Ln-8]^Mn[Ln-14]^Mn[Ln-16],1);var jn=this.h[0],hi=this.h[1],vi=this.h[2],gi=this.h[3],Ri=this.h[4];for(Ln=0;Ln<Mn.length;Ln++){var Si=~~(Ln/20),Ai=a(i(jn,5),l(Si,hi,vi,gi),Ri,Mn[Ln],on[Si]);Ri=gi,gi=vi,vi=i(hi,30),hi=jn,jn=Ai}this.h[0]=s(this.h[0],jn),this.h[1]=s(this.h[1],hi),this.h[2]=s(this.h[2],vi),this.h[3]=s(this.h[3],gi),this.h[4]=s(this.h[4],Ri)},u.prototype._digest=function(Rn){return Rn==="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(),t=requireCommon$1(),n=requireCommon(),i=requireMinimalisticAssert(),s=r.sum32,a=r.sum32_4,l=r.sum32_5,v=n.ch32,on=n.maj32,u=n.s0_256,h=n.s1_256,Rn=n.g0_256,D=n.g1_256,Mn=t.BlockHash,Ln=[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 jn(){if(!(this instanceof jn))return new jn;Mn.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=Ln,this.W=new Array(64)}return r.inherits(jn,Mn),_256=jn,jn.blockSize=512,jn.outSize=256,jn.hmacStrength=192,jn.padLength=64,jn.prototype._update=function(vi,gi){for(var Ri=this.W,Si=0;Si<16;Si++)Ri[Si]=vi[gi+Si];for(;Si<Ri.length;Si++)Ri[Si]=a(D(Ri[Si-2]),Ri[Si-7],Rn(Ri[Si-15]),Ri[Si-16]);var Ai=this.h[0],Ii=this.h[1],Ni=this.h[2],Ci=this.h[3],Oi=this.h[4],ki=this.h[5],Fi=this.h[6],bi=this.h[7];for(i(this.k.length===Ri.length),Si=0;Si<Ri.length;Si++){var Yn=l(bi,h(Oi),v(Oi,ki,Fi),this.k[Si],Ri[Si]),In=s(u(Ai),on(Ai,Ii,Ni));bi=Fi,Fi=ki,ki=Oi,Oi=s(Ci,Yn),Ci=Ni,Ni=Ii,Ii=Ai,Ai=s(Yn,In)}this.h[0]=s(this.h[0],Ai),this.h[1]=s(this.h[1],Ii),this.h[2]=s(this.h[2],Ni),this.h[3]=s(this.h[3],Ci),this.h[4]=s(this.h[4],Oi),this.h[5]=s(this.h[5],ki),this.h[6]=s(this.h[6],Fi),this.h[7]=s(this.h[7],bi)},jn.prototype._digest=function(vi){return vi==="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(),t=require_256();function n(){if(!(this instanceof n))return new n;t.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return r.inherits(n,t),_224=n,n.blockSize=512,n.outSize=224,n.hmacStrength=192,n.padLength=64,n.prototype._digest=function(s){return s==="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(),t=requireCommon$1(),n=requireMinimalisticAssert(),i=r.rotr64_hi,s=r.rotr64_lo,a=r.shr64_hi,l=r.shr64_lo,v=r.sum64,on=r.sum64_hi,u=r.sum64_lo,h=r.sum64_4_hi,Rn=r.sum64_4_lo,D=r.sum64_5_hi,Mn=r.sum64_5_lo,Ln=t.BlockHash,jn=[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 hi(){if(!(this instanceof hi))return new hi;Ln.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=jn,this.W=new Array(160)}r.inherits(hi,Ln),_512=hi,hi.blockSize=1024,hi.outSize=512,hi.hmacStrength=192,hi.padLength=128,hi.prototype._prepareBlock=function(In,Hn){for(var yi=this.W,mi=0;mi<32;mi++)yi[mi]=In[Hn+mi];for(;mi<yi.length;mi+=2){var _i=Fi(yi[mi-4],yi[mi-3]),wi=bi(yi[mi-4],yi[mi-3]),Ei=yi[mi-14],xi=yi[mi-13],Wn=Oi(yi[mi-30],yi[mi-29]),Ti=ki(yi[mi-30],yi[mi-29]),qi=yi[mi-32],Vi=yi[mi-31];yi[mi]=h(_i,wi,Ei,xi,Wn,Ti,qi,Vi),yi[mi+1]=Rn(_i,wi,Ei,xi,Wn,Ti,qi,Vi)}},hi.prototype._update=function(In,Hn){this._prepareBlock(In,Hn);var yi=this.W,mi=this.h[0],_i=this.h[1],wi=this.h[2],Ei=this.h[3],xi=this.h[4],Wn=this.h[5],Ti=this.h[6],qi=this.h[7],Vi=this.h[8],ji=this.h[9],Bi=this.h[10],Pi=this.h[11],zi=this.h[12],Hi=this.h[13],Ui=this.h[14],Mi=this.h[15];n(this.k.length===yi.length);for(var Ki=0;Ki<yi.length;Ki+=2){var Qi=Ui,Yi=Mi,ea=Ni(Vi,ji),ia=Ci(Vi,ji),Zi=vi(Vi,ji,Bi,Pi,zi),Ji=gi(Vi,ji,Bi,Pi,zi,Hi),ua=this.k[Ki],Xi=this.k[Ki+1],na=yi[Ki],ta=yi[Ki+1],oa=D(Qi,Yi,ea,ia,Zi,Ji,ua,Xi,na,ta),fa=Mn(Qi,Yi,ea,ia,Zi,Ji,ua,Xi,na,ta);Qi=Ai(mi,_i),Yi=Ii(mi,_i),ea=Ri(mi,_i,wi,Ei,xi),ia=Si(mi,_i,wi,Ei,xi,Wn);var ca=on(Qi,Yi,ea,ia),la=u(Qi,Yi,ea,ia);Ui=zi,Mi=Hi,zi=Bi,Hi=Pi,Bi=Vi,Pi=ji,Vi=on(Ti,qi,oa,fa),ji=u(qi,qi,oa,fa),Ti=xi,qi=Wn,xi=wi,Wn=Ei,wi=mi,Ei=_i,mi=on(oa,fa,ca,la),_i=u(oa,fa,ca,la)}v(this.h,0,mi,_i),v(this.h,2,wi,Ei),v(this.h,4,xi,Wn),v(this.h,6,Ti,qi),v(this.h,8,Vi,ji),v(this.h,10,Bi,Pi),v(this.h,12,zi,Hi),v(this.h,14,Ui,Mi)},hi.prototype._digest=function(In){return In==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")};function vi(Yn,In,Hn,yi,mi){var _i=Yn&Hn^~Yn&mi;return _i<0&&(_i+=4294967296),_i}function gi(Yn,In,Hn,yi,mi,_i){var wi=In&yi^~In&_i;return wi<0&&(wi+=4294967296),wi}function Ri(Yn,In,Hn,yi,mi){var _i=Yn&Hn^Yn&mi^Hn&mi;return _i<0&&(_i+=4294967296),_i}function Si(Yn,In,Hn,yi,mi,_i){var wi=In&yi^In&_i^yi&_i;return wi<0&&(wi+=4294967296),wi}function Ai(Yn,In){var Hn=i(Yn,In,28),yi=i(In,Yn,2),mi=i(In,Yn,7),_i=Hn^yi^mi;return _i<0&&(_i+=4294967296),_i}function Ii(Yn,In){var Hn=s(Yn,In,28),yi=s(In,Yn,2),mi=s(In,Yn,7),_i=Hn^yi^mi;return _i<0&&(_i+=4294967296),_i}function Ni(Yn,In){var Hn=i(Yn,In,14),yi=i(Yn,In,18),mi=i(In,Yn,9),_i=Hn^yi^mi;return _i<0&&(_i+=4294967296),_i}function Ci(Yn,In){var Hn=s(Yn,In,14),yi=s(Yn,In,18),mi=s(In,Yn,9),_i=Hn^yi^mi;return _i<0&&(_i+=4294967296),_i}function Oi(Yn,In){var Hn=i(Yn,In,1),yi=i(Yn,In,8),mi=a(Yn,In,7),_i=Hn^yi^mi;return _i<0&&(_i+=4294967296),_i}function ki(Yn,In){var Hn=s(Yn,In,1),yi=s(Yn,In,8),mi=l(Yn,In,7),_i=Hn^yi^mi;return _i<0&&(_i+=4294967296),_i}function Fi(Yn,In){var Hn=i(Yn,In,19),yi=i(In,Yn,29),mi=a(Yn,In,6),_i=Hn^yi^mi;return _i<0&&(_i+=4294967296),_i}function bi(Yn,In){var Hn=s(Yn,In,19),yi=s(In,Yn,29),mi=l(Yn,In,6),_i=Hn^yi^mi;return _i<0&&(_i+=4294967296),_i}return _512}var _384,hasRequired_384;function require_384(){if(hasRequired_384)return _384;hasRequired_384=1;var r=requireUtils(),t=require_512();function n(){if(!(this instanceof n))return new n;t.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return r.inherits(n,t),_384=n,n.blockSize=1024,n.outSize=384,n.hmacStrength=192,n.padLength=128,n.prototype._digest=function(s){return s==="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(),t=requireCommon$1(),n=r.rotl32,i=r.sum32,s=r.sum32_3,a=r.sum32_4,l=t.BlockHash;function v(){if(!(this instanceof v))return new v;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}r.inherits(v,l),ripemd.ripemd160=v,v.blockSize=512,v.outSize=160,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(hi,vi){for(var gi=this.h[0],Ri=this.h[1],Si=this.h[2],Ai=this.h[3],Ii=this.h[4],Ni=gi,Ci=Ri,Oi=Si,ki=Ai,Fi=Ii,bi=0;bi<80;bi++){var Yn=i(n(a(gi,on(bi,Ri,Si,Ai),hi[Rn[bi]+vi],u(bi)),Mn[bi]),Ii);gi=Ii,Ii=Ai,Ai=n(Si,10),Si=Ri,Ri=Yn,Yn=i(n(a(Ni,on(79-bi,Ci,Oi,ki),hi[D[bi]+vi],h(bi)),Ln[bi]),Fi),Ni=Fi,Fi=ki,ki=n(Oi,10),Oi=Ci,Ci=Yn}Yn=s(this.h[1],Si,ki),this.h[1]=s(this.h[2],Ai,Fi),this.h[2]=s(this.h[3],Ii,Ni),this.h[3]=s(this.h[4],gi,Ci),this.h[4]=s(this.h[0],Ri,Oi),this.h[0]=Yn},v.prototype._digest=function(hi){return hi==="hex"?r.toHex32(this.h,"little"):r.split32(this.h,"little")};function on(jn,hi,vi,gi){return jn<=15?hi^vi^gi:jn<=31?hi&vi|~hi&gi:jn<=47?(hi|~vi)^gi:jn<=63?hi&gi|vi&~gi:hi^(vi|~gi)}function u(jn){return jn<=15?0:jn<=31?1518500249:jn<=47?1859775393:jn<=63?2400959708:2840853838}function h(jn){return jn<=15?1352829926:jn<=31?1548603684:jn<=47?1836072691:jn<=63?2053994217:0}var Rn=[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],D=[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],Mn=[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],Ln=[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(),t=requireMinimalisticAssert();function n(i,s,a){if(!(this instanceof n))return new n(i,s,a);this.Hash=i,this.blockSize=i.blockSize/8,this.outSize=i.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(s,a))}return hmac$2=n,n.prototype._init=function(s){s.length>this.blockSize&&(s=new this.Hash().update(s).digest()),t(s.length<=this.blockSize);for(var a=s.length;a<this.blockSize;a++)s.push(0);for(a=0;a<s.length;a++)s[a]^=54;for(this.inner=new this.Hash().update(s),a=0;a<s.length;a++)s[a]^=106;this.outer=new this.Hash().update(s)},n.prototype.update=function(s,a){return this.inner.update(s,a),this},n.prototype.digest=function(s){return this.outer.update(this.inner.digest()),this.outer.digest(s)},hmac$2}var hasRequiredHash;function requireHash(){return hasRequiredHash||(hasRequiredHash=1,function(r){var t=r;t.utils=requireUtils(),t.common=requireCommon$1(),t.sha=requireSha(),t.ripemd=requireRipemd(),t.hmac=requireHmac$1(),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.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 t=r,n=requireHash(),i=requireCurve(),s=requireUtils$1(),a=s.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,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}t.PresetCurve=l;function v(u,h){Object.defineProperty(t,u,{configurable:!0,enumerable:!0,get:function(){var Rn=new l(h);return Object.defineProperty(t,u,{configurable:!0,enumerable:!0,value:Rn}),Rn}})}v("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:n.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),v("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:n.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),v("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:n.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),v("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:n.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"]}),v("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:n.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"]}),v("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["9"]}),v("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:n.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var on;try{on=requireSecp256k1()}catch{on=void 0}v("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:n.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",on]})}(curves)),curves}var hmacDrbg,hasRequiredHmacDrbg;function requireHmacDrbg(){if(hasRequiredHmacDrbg)return hmacDrbg;hasRequiredHmacDrbg=1;var r=requireHash(),t=requireUtils$2(),n=requireMinimalisticAssert();function i(s){if(!(this instanceof i))return new i(s);this.hash=s.hash,this.predResist=!!s.predResist,this.outLen=this.hash.outSize,this.minEntropy=s.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var a=t.toArray(s.entropy,s.entropyEnc||"hex"),l=t.toArray(s.nonce,s.nonceEnc||"hex"),v=t.toArray(s.pers,s.persEnc||"hex");n(a.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(a,l,v)}return hmacDrbg=i,i.prototype._init=function(a,l,v){var on=a.concat(l).concat(v);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(on),this._reseed=1,this.reseedInterval=281474976710656},i.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},i.prototype._update=function(a){var l=this._hmac().update(this.V).update([0]);a&&(l=l.update(a)),this.K=l.digest(),this.V=this._hmac().update(this.V).digest(),a&&(this.K=this._hmac().update(this.V).update([1]).update(a).digest(),this.V=this._hmac().update(this.V).digest())},i.prototype.reseed=function(a,l,v,on){typeof l!="string"&&(on=v,v=l,l=null),a=t.toArray(a,l),v=t.toArray(v,on),n(a.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(a.concat(v||[])),this._reseed=1},i.prototype.generate=function(a,l,v,on){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof l!="string"&&(on=v,v=l,l=null),v&&(v=t.toArray(v,on||"hex"),this._update(v));for(var u=[];u.length<a;)this.V=this._hmac().update(this.V).digest(),u=u.concat(this.V);var h=u.slice(0,a);return this._update(v),this._reseed++,t.encode(h,l)},hmacDrbg}var key$1,hasRequiredKey$1;function requireKey$1(){if(hasRequiredKey$1)return key$1;hasRequiredKey$1=1;var r=requireBn$2(),t=requireUtils$1(),n=t.assert;function i(s,a){this.ec=s,this.priv=null,this.pub=null,a.priv&&this._importPrivate(a.priv,a.privEnc),a.pub&&this._importPublic(a.pub,a.pubEnc)}return key$1=i,i.fromPublic=function(a,l,v){return l instanceof i?l:new i(a,{pub:l,pubEnc:v})},i.fromPrivate=function(a,l,v){return l instanceof i?l:new i(a,{priv:l,privEnc:v})},i.prototype.validate=function(){var a=this.getPublic();return a.isInfinity()?{result:!1,reason:"Invalid public key"}:a.validate()?a.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(a,l){return typeof a=="string"&&(l=a,a=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),l?this.pub.encode(l,a):this.pub},i.prototype.getPrivate=function(a){return a==="hex"?this.priv.toString(16,2):this.priv},i.prototype._importPrivate=function(a,l){this.priv=new r(a,l||16),this.priv=this.priv.umod(this.ec.curve.n)},i.prototype._importPublic=function(a,l){if(a.x||a.y){this.ec.curve.type==="mont"?n(a.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&n(a.x&&a.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(a.x,a.y);return}this.pub=this.ec.curve.decodePoint(a,l)},i.prototype.derive=function(a){return a.validate()||n(a.validate(),"public point not validated"),a.mul(this.priv).getX()},i.prototype.sign=function(a,l,v){return this.ec.sign(a,this,l,v)},i.prototype.verify=function(a,l,v){return this.ec.verify(a,l,this,void 0,v)},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(),t=requireUtils$1(),n=t.assert;function i(on,u){if(on instanceof i)return on;this._importDER(on,u)||(n(on.r&&on.s,"Signature without r or s"),this.r=new r(on.r,16),this.s=new r(on.s,16),on.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=on.recoveryParam)}signature$1=i;function s(){this.place=0}function a(on,u){var h=on[u.place++];if(!(h&128))return h;var Rn=h&15;if(Rn===0||Rn>4||on[u.place]===0)return!1;for(var D=0,Mn=0,Ln=u.place;Mn<Rn;Mn++,Ln++)D<<=8,D|=on[Ln],D>>>=0;return D<=127?!1:(u.place=Ln,D)}function l(on){for(var u=0,h=on.length-1;!on[u]&&!(on[u+1]&128)&&u<h;)u++;return u===0?on:on.slice(u)}i.prototype._importDER=function(u,h){u=t.toArray(u,h);var Rn=new s;if(u[Rn.place++]!==48)return!1;var D=a(u,Rn);if(D===!1||D+Rn.place!==u.length||u[Rn.place++]!==2)return!1;var Mn=a(u,Rn);if(Mn===!1||(u[Rn.place]&128)!==0)return!1;var Ln=u.slice(Rn.place,Mn+Rn.place);if(Rn.place+=Mn,u[Rn.place++]!==2)return!1;var jn=a(u,Rn);if(jn===!1||u.length!==jn+Rn.place||(u[Rn.place]&128)!==0)return!1;var hi=u.slice(Rn.place,jn+Rn.place);if(Ln[0]===0)if(Ln[1]&128)Ln=Ln.slice(1);else return!1;if(hi[0]===0)if(hi[1]&128)hi=hi.slice(1);else return!1;return this.r=new r(Ln),this.s=new r(hi),this.recoveryParam=null,!0};function v(on,u){if(u<128){on.push(u);return}var h=1+(Math.log(u)/Math.LN2>>>3);for(on.push(h|128);--h;)on.push(u>>>(h<<3)&255);on.push(u)}return i.prototype.toDER=function(u){var h=this.r.toArray(),Rn=this.s.toArray();for(h[0]&128&&(h=[0].concat(h)),Rn[0]&128&&(Rn=[0].concat(Rn)),h=l(h),Rn=l(Rn);!Rn[0]&&!(Rn[1]&128);)Rn=Rn.slice(1);var D=[2];v(D,h.length),D=D.concat(h),D.push(2),v(D,Rn.length);var Mn=D.concat(Rn),Ln=[48];return v(Ln,Mn.length),Ln=Ln.concat(Mn),t.encode(Ln,u)},signature$1}var ec,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec;hasRequiredEc=1;var r=requireBn$2(),t=requireHmacDrbg(),n=requireUtils$1(),i=requireCurves(),s=requireBrorand(),a=n.assert,l=requireKey$1(),v=requireSignature$1();function on(u){if(!(this instanceof on))return new on(u);typeof u=="string"&&(a(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=on,on.prototype.keyPair=function(h){return new l(this,h)},on.prototype.keyFromPrivate=function(h,Rn){return l.fromPrivate(this,h,Rn)},on.prototype.keyFromPublic=function(h,Rn){return l.fromPublic(this,h,Rn)},on.prototype.genKeyPair=function(h){h||(h={});for(var Rn=new t({hash:this.hash,pers:h.pers,persEnc:h.persEnc||"utf8",entropy:h.entropy||s(this.hash.hmacStrength),entropyEnc:h.entropy&&h.entropyEnc||"utf8",nonce:this.n.toArray()}),D=this.n.byteLength(),Mn=this.n.sub(new r(2));;){var Ln=new r(Rn.generate(D));if(!(Ln.cmp(Mn)>0))return Ln.iaddn(1),this.keyFromPrivate(Ln)}},on.prototype._truncateToN=function(h,Rn,D){var Mn;if(r.isBN(h)||typeof h=="number")h=new r(h,16),Mn=h.byteLength();else if(typeof h=="object")Mn=h.length,h=new r(h,16);else{var Ln=h.toString();Mn=Ln.length+1>>>1,h=new r(Ln,16)}typeof D!="number"&&(D=Mn*8);var jn=D-this.n.bitLength();return jn>0&&(h=h.ushrn(jn)),!Rn&&h.cmp(this.n)>=0?h.sub(this.n):h},on.prototype.sign=function(h,Rn,D,Mn){if(typeof D=="object"&&(Mn=D,D=null),Mn||(Mn={}),typeof h!="string"&&typeof h!="number"&&!r.isBN(h)){a(typeof h=="object"&&h&&typeof h.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),a(h.length>>>0===h.length);for(var Ln=0;Ln<h.length;Ln++)a((h[Ln]&255)===h[Ln])}Rn=this.keyFromPrivate(Rn,D),h=this._truncateToN(h,!1,Mn.msgBitLength),a(!h.isNeg(),"Can not sign a negative message");var jn=this.n.byteLength(),hi=Rn.getPrivate().toArray("be",jn),vi=h.toArray("be",jn);a(new r(vi).eq(h),"Can not sign message");for(var gi=new t({hash:this.hash,entropy:hi,nonce:vi,pers:Mn.pers,persEnc:Mn.persEnc||"utf8"}),Ri=this.n.sub(new r(1)),Si=0;;Si++){var Ai=Mn.k?Mn.k(Si):new r(gi.generate(this.n.byteLength()));if(Ai=this._truncateToN(Ai,!0),!(Ai.cmpn(1)<=0||Ai.cmp(Ri)>=0)){var Ii=this.g.mul(Ai);if(!Ii.isInfinity()){var Ni=Ii.getX(),Ci=Ni.umod(this.n);if(Ci.cmpn(0)!==0){var Oi=Ai.invm(this.n).mul(Ci.mul(Rn.getPrivate()).iadd(h));if(Oi=Oi.umod(this.n),Oi.cmpn(0)!==0){var ki=(Ii.getY().isOdd()?1:0)|(Ni.cmp(Ci)!==0?2:0);return Mn.canonical&&Oi.cmp(this.nh)>0&&(Oi=this.n.sub(Oi),ki^=1),new v({r:Ci,s:Oi,recoveryParam:ki})}}}}}},on.prototype.verify=function(h,Rn,D,Mn,Ln){Ln||(Ln={}),h=this._truncateToN(h,!1,Ln.msgBitLength),D=this.keyFromPublic(D,Mn),Rn=new v(Rn,"hex");var jn=Rn.r,hi=Rn.s;if(jn.cmpn(1)<0||jn.cmp(this.n)>=0||hi.cmpn(1)<0||hi.cmp(this.n)>=0)return!1;var vi=hi.invm(this.n),gi=vi.mul(h).umod(this.n),Ri=vi.mul(jn).umod(this.n),Si;return this.curve._maxwellTrick?(Si=this.g.jmulAdd(gi,D.getPublic(),Ri),Si.isInfinity()?!1:Si.eqXToP(jn)):(Si=this.g.mulAdd(gi,D.getPublic(),Ri),Si.isInfinity()?!1:Si.getX().umod(this.n).cmp(jn)===0)},on.prototype.recoverPubKey=function(u,h,Rn,D){a((3&Rn)===Rn,"The recovery param is more than two bits"),h=new v(h,D);var Mn=this.n,Ln=new r(u),jn=h.r,hi=h.s,vi=Rn&1,gi=Rn>>1;if(jn.cmp(this.curve.p.umod(this.curve.n))>=0&&gi)throw new Error("Unable to find sencond key candinate");gi?jn=this.curve.pointFromX(jn.add(this.curve.n),vi):jn=this.curve.pointFromX(jn,vi);var Ri=h.r.invm(Mn),Si=Mn.sub(Ln).mul(Ri).umod(Mn),Ai=hi.mul(Ri).umod(Mn);return this.g.mulAdd(Si,jn,Ai)},on.prototype.getKeyRecoveryParam=function(u,h,Rn,D){if(h=new v(h,D),h.recoveryParam!==null)return h.recoveryParam;for(var Mn=0;Mn<4;Mn++){var Ln;try{Ln=this.recoverPubKey(u,h,Mn)}catch{continue}if(Ln.eq(Rn))return Mn}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(),t=r.assert,n=r.parseBytes,i=r.cachedProperty;function s(a,l){this.eddsa=a,this._secret=n(l.secret),a.isPoint(l.pub)?this._pub=l.pub:this._pubBytes=n(l.pub)}return s.fromPublic=function(l,v){return v instanceof s?v:new s(l,{pub:v})},s.fromSecret=function(l,v){return v instanceof s?v:new s(l,{secret:v})},s.prototype.secret=function(){return this._secret},i(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),i(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),i(s,"privBytes",function(){var l=this.eddsa,v=this.hash(),on=l.encodingLength-1,u=v.slice(0,l.encodingLength);return u[0]&=248,u[on]&=127,u[on]|=64,u}),i(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),i(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),i(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(l){return t(this._secret,"KeyPair can only verify"),this.eddsa.sign(l,this)},s.prototype.verify=function(l,v){return this.eddsa.verify(l,v,this)},s.prototype.getSecret=function(l){return t(this._secret,"KeyPair is public only"),r.encode(this.secret(),l)},s.prototype.getPublic=function(l){return r.encode(this.pubBytes(),l)},key=s,key}var signature,hasRequiredSignature;function requireSignature(){if(hasRequiredSignature)return signature;hasRequiredSignature=1;var r=requireBn$2(),t=requireUtils$1(),n=t.assert,i=t.cachedProperty,s=t.parseBytes;function a(l,v){this.eddsa=l,typeof v!="object"&&(v=s(v)),Array.isArray(v)&&(n(v.length===l.encodingLength*2,"Signature has invalid size"),v={R:v.slice(0,l.encodingLength),S:v.slice(l.encodingLength)}),n(v.R&&v.S,"Signature without R or S"),l.isPoint(v.R)&&(this._R=v.R),v.S instanceof r&&(this._S=v.S),this._Rencoded=Array.isArray(v.R)?v.R:v.Rencoded,this._Sencoded=Array.isArray(v.S)?v.S:v.Sencoded}return i(a,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),i(a,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),i(a,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),i(a,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),a.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},a.prototype.toHex=function(){return t.encode(this.toBytes(),"hex").toUpperCase()},signature=a,signature}var eddsa,hasRequiredEddsa;function requireEddsa(){if(hasRequiredEddsa)return eddsa;hasRequiredEddsa=1;var r=requireHash(),t=requireCurves(),n=requireUtils$1(),i=n.assert,s=n.parseBytes,a=requireKey(),l=requireSignature();function v(on){if(i(on==="ed25519","only tested with ed25519 so far"),!(this instanceof v))return new v(on);on=t[on].curve,this.curve=on,this.g=on.g,this.g.precompute(on.n.bitLength()+1),this.pointClass=on.point().constructor,this.encodingLength=Math.ceil(on.n.bitLength()/8),this.hash=r.sha512}return eddsa=v,v.prototype.sign=function(u,h){u=s(u);var Rn=this.keyFromSecret(h),D=this.hashInt(Rn.messagePrefix(),u),Mn=this.g.mul(D),Ln=this.encodePoint(Mn),jn=this.hashInt(Ln,Rn.pubBytes(),u).mul(Rn.priv()),hi=D.add(jn).umod(this.curve.n);return this.makeSignature({R:Mn,S:hi,Rencoded:Ln})},v.prototype.verify=function(u,h,Rn){if(u=s(u),h=this.makeSignature(h),h.S().gte(h.eddsa.curve.n)||h.S().isNeg())return!1;var D=this.keyFromPublic(Rn),Mn=this.hashInt(h.Rencoded(),D.pubBytes(),u),Ln=this.g.mul(h.S()),jn=h.R().add(D.pub().mul(Mn));return jn.eq(Ln)},v.prototype.hashInt=function(){for(var u=this.hash(),h=0;h<arguments.length;h++)u.update(arguments[h]);return n.intFromLE(u.digest()).umod(this.curve.n)},v.prototype.keyFromPublic=function(u){return a.fromPublic(this,u)},v.prototype.keyFromSecret=function(u){return a.fromSecret(this,u)},v.prototype.makeSignature=function(u){return u instanceof l?u:new l(this,u)},v.prototype.encodePoint=function(u){var h=u.getY().toArray("le",this.encodingLength);return h[this.encodingLength-1]|=u.getX().isOdd()?128:0,h},v.prototype.decodePoint=function(u){u=n.parseBytes(u);var h=u.length-1,Rn=u.slice(0,h).concat(u[h]&-129),D=(u[h]&128)!==0,Mn=n.intFromLE(Rn);return this.curve.pointFromY(Mn,D)},v.prototype.encodeInt=function(u){return u.toArray("le",this.encodingLength)},v.prototype.decodeInt=function(u){return n.intFromLE(u)},v.prototype.isPoint=function(u){return u instanceof this.pointClass},eddsa}var hasRequiredElliptic;function requireElliptic(){return hasRequiredElliptic||(hasRequiredElliptic=1,function(r){var t=r;t.version=require$$0$1.version,t.utils=requireUtils$1(),t.rand=requireBrorand(),t.curve=requireCurve(),t.curves=requireCurves(),t.ec=requireEc(),t.eddsa=requireEddsa()}(elliptic)),elliptic}var bn$1={exports:{}},bn=bn$1.exports,hasRequiredBn;function requireBn(){return hasRequiredBn||(hasRequiredBn=1,function(r){(function(t,n){function i(Yn,In){if(!Yn)throw new Error(In||"Assertion failed")}function s(Yn,In){Yn.super_=In;var Hn=function(){};Hn.prototype=In.prototype,Yn.prototype=new Hn,Yn.prototype.constructor=Yn}function a(Yn,In,Hn){if(a.isBN(Yn))return Yn;this.negative=0,this.words=null,this.length=0,this.red=null,Yn!==null&&((In==="le"||In==="be")&&(Hn=In,In=10),this._init(Yn||0,In||10,Hn||"be"))}typeof t=="object"?t.exports=a:n.BN=a,a.BN=a,a.wordSize=26;var l;try{typeof window<"u"&&typeof window.Buffer<"u"?l=window.Buffer:l=requireDist().Buffer}catch{}a.isBN=function(In){return In instanceof a?!0:In!==null&&typeof In=="object"&&In.constructor.wordSize===a.wordSize&&Array.isArray(In.words)},a.max=function(In,Hn){return In.cmp(Hn)>0?In:Hn},a.min=function(In,Hn){return In.cmp(Hn)<0?In:Hn},a.prototype._init=function(In,Hn,yi){if(typeof In=="number")return this._initNumber(In,Hn,yi);if(typeof In=="object")return this._initArray(In,Hn,yi);Hn==="hex"&&(Hn=16),i(Hn===(Hn|0)&&Hn>=2&&Hn<=36),In=In.toString().replace(/\s+/g,"");var mi=0;In[0]==="-"&&(mi++,this.negative=1),mi<In.length&&(Hn===16?this._parseHex(In,mi,yi):(this._parseBase(In,Hn,mi),yi==="le"&&this._initArray(this.toArray(),Hn,yi)))},a.prototype._initNumber=function(In,Hn,yi){In<0&&(this.negative=1,In=-In),In<67108864?(this.words=[In&67108863],this.length=1):In<4503599627370496?(this.words=[In&67108863,In/67108864&67108863],this.length=2):(i(In<9007199254740992),this.words=[In&67108863,In/67108864&67108863,1],this.length=3),yi==="le"&&this._initArray(this.toArray(),Hn,yi)},a.prototype._initArray=function(In,Hn,yi){if(i(typeof In.length=="number"),In.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(In.length/3),this.words=new Array(this.length);for(var mi=0;mi<this.length;mi++)this.words[mi]=0;var _i,wi,Ei=0;if(yi==="be")for(mi=In.length-1,_i=0;mi>=0;mi-=3)wi=In[mi]|In[mi-1]<<8|In[mi-2]<<16,this.words[_i]|=wi<<Ei&67108863,this.words[_i+1]=wi>>>26-Ei&67108863,Ei+=24,Ei>=26&&(Ei-=26,_i++);else if(yi==="le")for(mi=0,_i=0;mi<In.length;mi+=3)wi=In[mi]|In[mi+1]<<8|In[mi+2]<<16,this.words[_i]|=wi<<Ei&67108863,this.words[_i+1]=wi>>>26-Ei&67108863,Ei+=24,Ei>=26&&(Ei-=26,_i++);return this._strip()};function v(Yn,In){var Hn=Yn.charCodeAt(In);if(Hn>=48&&Hn<=57)return Hn-48;if(Hn>=65&&Hn<=70)return Hn-55;if(Hn>=97&&Hn<=102)return Hn-87;i(!1,"Invalid character in "+Yn)}function on(Yn,In,Hn){var yi=v(Yn,Hn);return Hn-1>=In&&(yi|=v(Yn,Hn-1)<<4),yi}a.prototype._parseHex=function(In,Hn,yi){this.length=Math.ceil((In.length-Hn)/6),this.words=new Array(this.length);for(var mi=0;mi<this.length;mi++)this.words[mi]=0;var _i=0,wi=0,Ei;if(yi==="be")for(mi=In.length-1;mi>=Hn;mi-=2)Ei=on(In,Hn,mi)<<_i,this.words[wi]|=Ei&67108863,_i>=18?(_i-=18,wi+=1,this.words[wi]|=Ei>>>26):_i+=8;else{var xi=In.length-Hn;for(mi=xi%2===0?Hn+1:Hn;mi<In.length;mi+=2)Ei=on(In,Hn,mi)<<_i,this.words[wi]|=Ei&67108863,_i>=18?(_i-=18,wi+=1,this.words[wi]|=Ei>>>26):_i+=8}this._strip()};function u(Yn,In,Hn,yi){for(var mi=0,_i=0,wi=Math.min(Yn.length,Hn),Ei=In;Ei<wi;Ei++){var xi=Yn.charCodeAt(Ei)-48;mi*=yi,xi>=49?_i=xi-49+10:xi>=17?_i=xi-17+10:_i=xi,i(xi>=0&&_i<yi,"Invalid character"),mi+=_i}return mi}a.prototype._parseBase=function(In,Hn,yi){this.words=[0],this.length=1;for(var mi=0,_i=1;_i<=67108863;_i*=Hn)mi++;mi--,_i=_i/Hn|0;for(var wi=In.length-yi,Ei=wi%mi,xi=Math.min(wi,wi-Ei)+yi,Wn=0,Ti=yi;Ti<xi;Ti+=mi)Wn=u(In,Ti,Ti+mi,Hn),this.imuln(_i),this.words[0]+Wn<67108864?this.words[0]+=Wn:this._iaddn(Wn);if(Ei!==0){var qi=1;for(Wn=u(In,Ti,In.length,Hn),Ti=0;Ti<Ei;Ti++)qi*=Hn;this.imuln(qi),this.words[0]+Wn<67108864?this.words[0]+=Wn:this._iaddn(Wn)}this._strip()},a.prototype.copy=function(In){In.words=new Array(this.length);for(var Hn=0;Hn<this.length;Hn++)In.words[Hn]=this.words[Hn];In.length=this.length,In.negative=this.negative,In.red=this.red};function h(Yn,In){Yn.words=In.words,Yn.length=In.length,Yn.negative=In.negative,Yn.red=In.red}if(a.prototype._move=function(In){h(In,this)},a.prototype.clone=function(){var In=new a(null);return this.copy(In),In},a.prototype._expand=function(In){for(;this.length<In;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=Rn}catch{a.prototype.inspect=Rn}else a.prototype.inspect=Rn;function Rn(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var D=["","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"],Mn=[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],Ln=[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];a.prototype.toString=function(In,Hn){In=In||10,Hn=Hn|0||1;var yi;if(In===16||In==="hex"){yi="";for(var mi=0,_i=0,wi=0;wi<this.length;wi++){var Ei=this.words[wi],xi=((Ei<<mi|_i)&16777215).toString(16);_i=Ei>>>24-mi&16777215,mi+=2,mi>=26&&(mi-=26,wi--),_i!==0||wi!==this.length-1?yi=D[6-xi.length]+xi+yi:yi=xi+yi}for(_i!==0&&(yi=_i.toString(16)+yi);yi.length%Hn!==0;)yi="0"+yi;return this.negative!==0&&(yi="-"+yi),yi}if(In===(In|0)&&In>=2&&In<=36){var Wn=Mn[In],Ti=Ln[In];yi="";var qi=this.clone();for(qi.negative=0;!qi.isZero();){var Vi=qi.modrn(Ti).toString(In);qi=qi.idivn(Ti),qi.isZero()?yi=Vi+yi:yi=D[Wn-Vi.length]+Vi+yi}for(this.isZero()&&(yi="0"+yi);yi.length%Hn!==0;)yi="0"+yi;return this.negative!==0&&(yi="-"+yi),yi}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var In=this.words[0];return this.length===2?In+=this.words[1]*67108864:this.length===3&&this.words[2]===1?In+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-In:In},a.prototype.toJSON=function(){return this.toString(16,2)},l&&(a.prototype.toBuffer=function(In,Hn){return this.toArrayLike(l,In,Hn)}),a.prototype.toArray=function(In,Hn){return this.toArrayLike(Array,In,Hn)};var jn=function(In,Hn){return In.allocUnsafe?In.allocUnsafe(Hn):new In(Hn)};a.prototype.toArrayLike=function(In,Hn,yi){this._strip();var mi=this.byteLength(),_i=yi||Math.max(1,mi);i(mi<=_i,"byte array longer than desired length"),i(_i>0,"Requested array length <= 0");var wi=jn(In,_i),Ei=Hn==="le"?"LE":"BE";return this["_toArrayLike"+Ei](wi,mi),wi},a.prototype._toArrayLikeLE=function(In,Hn){for(var yi=0,mi=0,_i=0,wi=0;_i<this.length;_i++){var Ei=this.words[_i]<<wi|mi;In[yi++]=Ei&255,yi<In.length&&(In[yi++]=Ei>>8&255),yi<In.length&&(In[yi++]=Ei>>16&255),wi===6?(yi<In.length&&(In[yi++]=Ei>>24&255),mi=0,wi=0):(mi=Ei>>>24,wi+=2)}if(yi<In.length)for(In[yi++]=mi;yi<In.length;)In[yi++]=0},a.prototype._toArrayLikeBE=function(In,Hn){for(var yi=In.length-1,mi=0,_i=0,wi=0;_i<this.length;_i++){var Ei=this.words[_i]<<wi|mi;In[yi--]=Ei&255,yi>=0&&(In[yi--]=Ei>>8&255),yi>=0&&(In[yi--]=Ei>>16&255),wi===6?(yi>=0&&(In[yi--]=Ei>>24&255),mi=0,wi=0):(mi=Ei>>>24,wi+=2)}if(yi>=0)for(In[yi--]=mi;yi>=0;)In[yi--]=0},Math.clz32?a.prototype._countBits=function(In){return 32-Math.clz32(In)}:a.prototype._countBits=function(In){var Hn=In,yi=0;return Hn>=4096&&(yi+=13,Hn>>>=13),Hn>=64&&(yi+=7,Hn>>>=7),Hn>=8&&(yi+=4,Hn>>>=4),Hn>=2&&(yi+=2,Hn>>>=2),yi+Hn},a.prototype._zeroBits=function(In){if(In===0)return 26;var Hn=In,yi=0;return(Hn&8191)===0&&(yi+=13,Hn>>>=13),(Hn&127)===0&&(yi+=7,Hn>>>=7),(Hn&15)===0&&(yi+=4,Hn>>>=4),(Hn&3)===0&&(yi+=2,Hn>>>=2),(Hn&1)===0&&yi++,yi},a.prototype.bitLength=function(){var In=this.words[this.length-1],Hn=this._countBits(In);return(this.length-1)*26+Hn};function hi(Yn){for(var In=new Array(Yn.bitLength()),Hn=0;Hn<In.length;Hn++){var yi=Hn/26|0,mi=Hn%26;In[Hn]=Yn.words[yi]>>>mi&1}return In}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var In=0,Hn=0;Hn<this.length;Hn++){var yi=this._zeroBits(this.words[Hn]);if(In+=yi,yi!==26)break}return In},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(In){return this.negative!==0?this.abs().inotn(In).iaddn(1):this.clone()},a.prototype.fromTwos=function(In){return this.testn(In-1)?this.notn(In).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(In){for(;this.length<In.length;)this.words[this.length++]=0;for(var Hn=0;Hn<In.length;Hn++)this.words[Hn]=this.words[Hn]|In.words[Hn];return this._strip()},a.prototype.ior=function(In){return i((this.negative|In.negative)===0),this.iuor(In)},a.prototype.or=function(In){return this.length>In.length?this.clone().ior(In):In.clone().ior(this)},a.prototype.uor=function(In){return this.length>In.length?this.clone().iuor(In):In.clone().iuor(this)},a.prototype.iuand=function(In){var Hn;this.length>In.length?Hn=In:Hn=this;for(var yi=0;yi<Hn.length;yi++)this.words[yi]=this.words[yi]&In.words[yi];return this.length=Hn.length,this._strip()},a.prototype.iand=function(In){return i((this.negative|In.negative)===0),this.iuand(In)},a.prototype.and=function(In){return this.length>In.length?this.clone().iand(In):In.clone().iand(this)},a.prototype.uand=function(In){return this.length>In.length?this.clone().iuand(In):In.clone().iuand(this)},a.prototype.iuxor=function(In){var Hn,yi;this.length>In.length?(Hn=this,yi=In):(Hn=In,yi=this);for(var mi=0;mi<yi.length;mi++)this.words[mi]=Hn.words[mi]^yi.words[mi];if(this!==Hn)for(;mi<Hn.length;mi++)this.words[mi]=Hn.words[mi];return this.length=Hn.length,this._strip()},a.prototype.ixor=function(In){return i((this.negative|In.negative)===0),this.iuxor(In)},a.prototype.xor=function(In){return this.length>In.length?this.clone().ixor(In):In.clone().ixor(this)},a.prototype.uxor=function(In){return this.length>In.length?this.clone().iuxor(In):In.clone().iuxor(this)},a.prototype.inotn=function(In){i(typeof In=="number"&&In>=0);var Hn=Math.ceil(In/26)|0,yi=In%26;this._expand(Hn),yi>0&&Hn--;for(var mi=0;mi<Hn;mi++)this.words[mi]=~this.words[mi]&67108863;return yi>0&&(this.words[mi]=~this.words[mi]&67108863>>26-yi),this._strip()},a.prototype.notn=function(In){return this.clone().inotn(In)},a.prototype.setn=function(In,Hn){i(typeof In=="number"&&In>=0);var yi=In/26|0,mi=In%26;return this._expand(yi+1),Hn?this.words[yi]=this.words[yi]|1<<mi:this.words[yi]=this.words[yi]&~(1<<mi),this._strip()},a.prototype.iadd=function(In){var Hn;if(this.negative!==0&&In.negative===0)return this.negative=0,Hn=this.isub(In),this.negative^=1,this._normSign();if(this.negative===0&&In.negative!==0)return In.negative=0,Hn=this.isub(In),In.negative=1,Hn._normSign();var yi,mi;this.length>In.length?(yi=this,mi=In):(yi=In,mi=this);for(var _i=0,wi=0;wi<mi.length;wi++)Hn=(yi.words[wi]|0)+(mi.words[wi]|0)+_i,this.words[wi]=Hn&67108863,_i=Hn>>>26;for(;_i!==0&&wi<yi.length;wi++)Hn=(yi.words[wi]|0)+_i,this.words[wi]=Hn&67108863,_i=Hn>>>26;if(this.length=yi.length,_i!==0)this.words[this.length]=_i,this.length++;else if(yi!==this)for(;wi<yi.length;wi++)this.words[wi]=yi.words[wi];return this},a.prototype.add=function(In){var Hn;return In.negative!==0&&this.negative===0?(In.negative=0,Hn=this.sub(In),In.negative^=1,Hn):In.negative===0&&this.negative!==0?(this.negative=0,Hn=In.sub(this),this.negative=1,Hn):this.length>In.length?this.clone().iadd(In):In.clone().iadd(this)},a.prototype.isub=function(In){if(In.negative!==0){In.negative=0;var Hn=this.iadd(In);return In.negative=1,Hn._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(In),this.negative=1,this._normSign();var yi=this.cmp(In);if(yi===0)return this.negative=0,this.length=1,this.words[0]=0,this;var mi,_i;yi>0?(mi=this,_i=In):(mi=In,_i=this);for(var wi=0,Ei=0;Ei<_i.length;Ei++)Hn=(mi.words[Ei]|0)-(_i.words[Ei]|0)+wi,wi=Hn>>26,this.words[Ei]=Hn&67108863;for(;wi!==0&&Ei<mi.length;Ei++)Hn=(mi.words[Ei]|0)+wi,wi=Hn>>26,this.words[Ei]=Hn&67108863;if(wi===0&&Ei<mi.length&&mi!==this)for(;Ei<mi.length;Ei++)this.words[Ei]=mi.words[Ei];return this.length=Math.max(this.length,Ei),mi!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(In){return this.clone().isub(In)};function vi(Yn,In,Hn){Hn.negative=In.negative^Yn.negative;var yi=Yn.length+In.length|0;Hn.length=yi,yi=yi-1|0;var mi=Yn.words[0]|0,_i=In.words[0]|0,wi=mi*_i,Ei=wi&67108863,xi=wi/67108864|0;Hn.words[0]=Ei;for(var Wn=1;Wn<yi;Wn++){for(var Ti=xi>>>26,qi=xi&67108863,Vi=Math.min(Wn,In.length-1),ji=Math.max(0,Wn-Yn.length+1);ji<=Vi;ji++){var Bi=Wn-ji|0;mi=Yn.words[Bi]|0,_i=In.words[ji]|0,wi=mi*_i+qi,Ti+=wi/67108864|0,qi=wi&67108863}Hn.words[Wn]=qi|0,xi=Ti|0}return xi!==0?Hn.words[Wn]=xi|0:Hn.length--,Hn._strip()}var gi=function(In,Hn,yi){var mi=In.words,_i=Hn.words,wi=yi.words,Ei=0,xi,Wn,Ti,qi=mi[0]|0,Vi=qi&8191,ji=qi>>>13,Bi=mi[1]|0,Pi=Bi&8191,zi=Bi>>>13,Hi=mi[2]|0,Ui=Hi&8191,Mi=Hi>>>13,Ki=mi[3]|0,Qi=Ki&8191,Yi=Ki>>>13,ea=mi[4]|0,ia=ea&8191,Zi=ea>>>13,Ji=mi[5]|0,ua=Ji&8191,Xi=Ji>>>13,na=mi[6]|0,ta=na&8191,oa=na>>>13,fa=mi[7]|0,ca=fa&8191,la=fa>>>13,ga=mi[8]|0,ha=ga&8191,da=ga>>>13,Aa=mi[9]|0,Ea=Aa&8191,va=Aa>>>13,Ca=_i[0]|0,wa=Ca&8191,ma=Ca>>>13,ka=_i[1]|0,Ta=ka&8191,ya=ka>>>13,Pa=_i[2]|0,Ia=Pa&8191,ba=Pa>>>13,Ba=_i[3]|0,Fa=Ba&8191,Da=Ba>>>13,La=_i[4]|0,Oa=La&8191,Gi=La>>>13,Li=_i[5]|0,$i=Li&8191,Wi=Li>>>13,ra=_i[6]|0,aa=ra&8191,sa=ra>>>13,Ra=_i[7]|0,xa=Ra&8191,pa=Ra>>>13,Na=_i[8]|0,_a=Na&8191,Sa=Na>>>13,$a=_i[9]|0,qa=$a&8191,Ma=$a>>>13;yi.negative=In.negative^Hn.negative,yi.length=19,xi=Math.imul(Vi,wa),Wn=Math.imul(Vi,ma),Wn=Wn+Math.imul(ji,wa)|0,Ti=Math.imul(ji,ma);var Ua=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Ua>>>26)|0,Ua&=67108863,xi=Math.imul(Pi,wa),Wn=Math.imul(Pi,ma),Wn=Wn+Math.imul(zi,wa)|0,Ti=Math.imul(zi,ma),xi=xi+Math.imul(Vi,Ta)|0,Wn=Wn+Math.imul(Vi,ya)|0,Wn=Wn+Math.imul(ji,Ta)|0,Ti=Ti+Math.imul(ji,ya)|0;var ja=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(ja>>>26)|0,ja&=67108863,xi=Math.imul(Ui,wa),Wn=Math.imul(Ui,ma),Wn=Wn+Math.imul(Mi,wa)|0,Ti=Math.imul(Mi,ma),xi=xi+Math.imul(Pi,Ta)|0,Wn=Wn+Math.imul(Pi,ya)|0,Wn=Wn+Math.imul(zi,Ta)|0,Ti=Ti+Math.imul(zi,ya)|0,xi=xi+Math.imul(Vi,Ia)|0,Wn=Wn+Math.imul(Vi,ba)|0,Wn=Wn+Math.imul(ji,Ia)|0,Ti=Ti+Math.imul(ji,ba)|0;var Va=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Va>>>26)|0,Va&=67108863,xi=Math.imul(Qi,wa),Wn=Math.imul(Qi,ma),Wn=Wn+Math.imul(Yi,wa)|0,Ti=Math.imul(Yi,ma),xi=xi+Math.imul(Ui,Ta)|0,Wn=Wn+Math.imul(Ui,ya)|0,Wn=Wn+Math.imul(Mi,Ta)|0,Ti=Ti+Math.imul(Mi,ya)|0,xi=xi+Math.imul(Pi,Ia)|0,Wn=Wn+Math.imul(Pi,ba)|0,Wn=Wn+Math.imul(zi,Ia)|0,Ti=Ti+Math.imul(zi,ba)|0,xi=xi+Math.imul(Vi,Fa)|0,Wn=Wn+Math.imul(Vi,Da)|0,Wn=Wn+Math.imul(ji,Fa)|0,Ti=Ti+Math.imul(ji,Da)|0;var Ga=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Ga>>>26)|0,Ga&=67108863,xi=Math.imul(ia,wa),Wn=Math.imul(ia,ma),Wn=Wn+Math.imul(Zi,wa)|0,Ti=Math.imul(Zi,ma),xi=xi+Math.imul(Qi,Ta)|0,Wn=Wn+Math.imul(Qi,ya)|0,Wn=Wn+Math.imul(Yi,Ta)|0,Ti=Ti+Math.imul(Yi,ya)|0,xi=xi+Math.imul(Ui,Ia)|0,Wn=Wn+Math.imul(Ui,ba)|0,Wn=Wn+Math.imul(Mi,Ia)|0,Ti=Ti+Math.imul(Mi,ba)|0,xi=xi+Math.imul(Pi,Fa)|0,Wn=Wn+Math.imul(Pi,Da)|0,Wn=Wn+Math.imul(zi,Fa)|0,Ti=Ti+Math.imul(zi,Da)|0,xi=xi+Math.imul(Vi,Oa)|0,Wn=Wn+Math.imul(Vi,Gi)|0,Wn=Wn+Math.imul(ji,Oa)|0,Ti=Ti+Math.imul(ji,Gi)|0;var Ka=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Ka>>>26)|0,Ka&=67108863,xi=Math.imul(ua,wa),Wn=Math.imul(ua,ma),Wn=Wn+Math.imul(Xi,wa)|0,Ti=Math.imul(Xi,ma),xi=xi+Math.imul(ia,Ta)|0,Wn=Wn+Math.imul(ia,ya)|0,Wn=Wn+Math.imul(Zi,Ta)|0,Ti=Ti+Math.imul(Zi,ya)|0,xi=xi+Math.imul(Qi,Ia)|0,Wn=Wn+Math.imul(Qi,ba)|0,Wn=Wn+Math.imul(Yi,Ia)|0,Ti=Ti+Math.imul(Yi,ba)|0,xi=xi+Math.imul(Ui,Fa)|0,Wn=Wn+Math.imul(Ui,Da)|0,Wn=Wn+Math.imul(Mi,Fa)|0,Ti=Ti+Math.imul(Mi,Da)|0,xi=xi+Math.imul(Pi,Oa)|0,Wn=Wn+Math.imul(Pi,Gi)|0,Wn=Wn+Math.imul(zi,Oa)|0,Ti=Ti+Math.imul(zi,Gi)|0,xi=xi+Math.imul(Vi,$i)|0,Wn=Wn+Math.imul(Vi,Wi)|0,Wn=Wn+Math.imul(ji,$i)|0,Ti=Ti+Math.imul(ji,Wi)|0;var Ha=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Ha>>>26)|0,Ha&=67108863,xi=Math.imul(ta,wa),Wn=Math.imul(ta,ma),Wn=Wn+Math.imul(oa,wa)|0,Ti=Math.imul(oa,ma),xi=xi+Math.imul(ua,Ta)|0,Wn=Wn+Math.imul(ua,ya)|0,Wn=Wn+Math.imul(Xi,Ta)|0,Ti=Ti+Math.imul(Xi,ya)|0,xi=xi+Math.imul(ia,Ia)|0,Wn=Wn+Math.imul(ia,ba)|0,Wn=Wn+Math.imul(Zi,Ia)|0,Ti=Ti+Math.imul(Zi,ba)|0,xi=xi+Math.imul(Qi,Fa)|0,Wn=Wn+Math.imul(Qi,Da)|0,Wn=Wn+Math.imul(Yi,Fa)|0,Ti=Ti+Math.imul(Yi,Da)|0,xi=xi+Math.imul(Ui,Oa)|0,Wn=Wn+Math.imul(Ui,Gi)|0,Wn=Wn+Math.imul(Mi,Oa)|0,Ti=Ti+Math.imul(Mi,Gi)|0,xi=xi+Math.imul(Pi,$i)|0,Wn=Wn+Math.imul(Pi,Wi)|0,Wn=Wn+Math.imul(zi,$i)|0,Ti=Ti+Math.imul(zi,Wi)|0,xi=xi+Math.imul(Vi,aa)|0,Wn=Wn+Math.imul(Vi,sa)|0,Wn=Wn+Math.imul(ji,aa)|0,Ti=Ti+Math.imul(ji,sa)|0;var Qa=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Qa>>>26)|0,Qa&=67108863,xi=Math.imul(ca,wa),Wn=Math.imul(ca,ma),Wn=Wn+Math.imul(la,wa)|0,Ti=Math.imul(la,ma),xi=xi+Math.imul(ta,Ta)|0,Wn=Wn+Math.imul(ta,ya)|0,Wn=Wn+Math.imul(oa,Ta)|0,Ti=Ti+Math.imul(oa,ya)|0,xi=xi+Math.imul(ua,Ia)|0,Wn=Wn+Math.imul(ua,ba)|0,Wn=Wn+Math.imul(Xi,Ia)|0,Ti=Ti+Math.imul(Xi,ba)|0,xi=xi+Math.imul(ia,Fa)|0,Wn=Wn+Math.imul(ia,Da)|0,Wn=Wn+Math.imul(Zi,Fa)|0,Ti=Ti+Math.imul(Zi,Da)|0,xi=xi+Math.imul(Qi,Oa)|0,Wn=Wn+Math.imul(Qi,Gi)|0,Wn=Wn+Math.imul(Yi,Oa)|0,Ti=Ti+Math.imul(Yi,Gi)|0,xi=xi+Math.imul(Ui,$i)|0,Wn=Wn+Math.imul(Ui,Wi)|0,Wn=Wn+Math.imul(Mi,$i)|0,Ti=Ti+Math.imul(Mi,Wi)|0,xi=xi+Math.imul(Pi,aa)|0,Wn=Wn+Math.imul(Pi,sa)|0,Wn=Wn+Math.imul(zi,aa)|0,Ti=Ti+Math.imul(zi,sa)|0,xi=xi+Math.imul(Vi,xa)|0,Wn=Wn+Math.imul(Vi,pa)|0,Wn=Wn+Math.imul(ji,xa)|0,Ti=Ti+Math.imul(ji,pa)|0;var za=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(za>>>26)|0,za&=67108863,xi=Math.imul(ha,wa),Wn=Math.imul(ha,ma),Wn=Wn+Math.imul(da,wa)|0,Ti=Math.imul(da,ma),xi=xi+Math.imul(ca,Ta)|0,Wn=Wn+Math.imul(ca,ya)|0,Wn=Wn+Math.imul(la,Ta)|0,Ti=Ti+Math.imul(la,ya)|0,xi=xi+Math.imul(ta,Ia)|0,Wn=Wn+Math.imul(ta,ba)|0,Wn=Wn+Math.imul(oa,Ia)|0,Ti=Ti+Math.imul(oa,ba)|0,xi=xi+Math.imul(ua,Fa)|0,Wn=Wn+Math.imul(ua,Da)|0,Wn=Wn+Math.imul(Xi,Fa)|0,Ti=Ti+Math.imul(Xi,Da)|0,xi=xi+Math.imul(ia,Oa)|0,Wn=Wn+Math.imul(ia,Gi)|0,Wn=Wn+Math.imul(Zi,Oa)|0,Ti=Ti+Math.imul(Zi,Gi)|0,xi=xi+Math.imul(Qi,$i)|0,Wn=Wn+Math.imul(Qi,Wi)|0,Wn=Wn+Math.imul(Yi,$i)|0,Ti=Ti+Math.imul(Yi,Wi)|0,xi=xi+Math.imul(Ui,aa)|0,Wn=Wn+Math.imul(Ui,sa)|0,Wn=Wn+Math.imul(Mi,aa)|0,Ti=Ti+Math.imul(Mi,sa)|0,xi=xi+Math.imul(Pi,xa)|0,Wn=Wn+Math.imul(Pi,pa)|0,Wn=Wn+Math.imul(zi,xa)|0,Ti=Ti+Math.imul(zi,pa)|0,xi=xi+Math.imul(Vi,_a)|0,Wn=Wn+Math.imul(Vi,Sa)|0,Wn=Wn+Math.imul(ji,_a)|0,Ti=Ti+Math.imul(ji,Sa)|0;var Wa=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Wa>>>26)|0,Wa&=67108863,xi=Math.imul(Ea,wa),Wn=Math.imul(Ea,ma),Wn=Wn+Math.imul(va,wa)|0,Ti=Math.imul(va,ma),xi=xi+Math.imul(ha,Ta)|0,Wn=Wn+Math.imul(ha,ya)|0,Wn=Wn+Math.imul(da,Ta)|0,Ti=Ti+Math.imul(da,ya)|0,xi=xi+Math.imul(ca,Ia)|0,Wn=Wn+Math.imul(ca,ba)|0,Wn=Wn+Math.imul(la,Ia)|0,Ti=Ti+Math.imul(la,ba)|0,xi=xi+Math.imul(ta,Fa)|0,Wn=Wn+Math.imul(ta,Da)|0,Wn=Wn+Math.imul(oa,Fa)|0,Ti=Ti+Math.imul(oa,Da)|0,xi=xi+Math.imul(ua,Oa)|0,Wn=Wn+Math.imul(ua,Gi)|0,Wn=Wn+Math.imul(Xi,Oa)|0,Ti=Ti+Math.imul(Xi,Gi)|0,xi=xi+Math.imul(ia,$i)|0,Wn=Wn+Math.imul(ia,Wi)|0,Wn=Wn+Math.imul(Zi,$i)|0,Ti=Ti+Math.imul(Zi,Wi)|0,xi=xi+Math.imul(Qi,aa)|0,Wn=Wn+Math.imul(Qi,sa)|0,Wn=Wn+Math.imul(Yi,aa)|0,Ti=Ti+Math.imul(Yi,sa)|0,xi=xi+Math.imul(Ui,xa)|0,Wn=Wn+Math.imul(Ui,pa)|0,Wn=Wn+Math.imul(Mi,xa)|0,Ti=Ti+Math.imul(Mi,pa)|0,xi=xi+Math.imul(Pi,_a)|0,Wn=Wn+Math.imul(Pi,Sa)|0,Wn=Wn+Math.imul(zi,_a)|0,Ti=Ti+Math.imul(zi,Sa)|0,xi=xi+Math.imul(Vi,qa)|0,Wn=Wn+Math.imul(Vi,Ma)|0,Wn=Wn+Math.imul(ji,qa)|0,Ti=Ti+Math.imul(ji,Ma)|0;var Ya=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Ya>>>26)|0,Ya&=67108863,xi=Math.imul(Ea,Ta),Wn=Math.imul(Ea,ya),Wn=Wn+Math.imul(va,Ta)|0,Ti=Math.imul(va,ya),xi=xi+Math.imul(ha,Ia)|0,Wn=Wn+Math.imul(ha,ba)|0,Wn=Wn+Math.imul(da,Ia)|0,Ti=Ti+Math.imul(da,ba)|0,xi=xi+Math.imul(ca,Fa)|0,Wn=Wn+Math.imul(ca,Da)|0,Wn=Wn+Math.imul(la,Fa)|0,Ti=Ti+Math.imul(la,Da)|0,xi=xi+Math.imul(ta,Oa)|0,Wn=Wn+Math.imul(ta,Gi)|0,Wn=Wn+Math.imul(oa,Oa)|0,Ti=Ti+Math.imul(oa,Gi)|0,xi=xi+Math.imul(ua,$i)|0,Wn=Wn+Math.imul(ua,Wi)|0,Wn=Wn+Math.imul(Xi,$i)|0,Ti=Ti+Math.imul(Xi,Wi)|0,xi=xi+Math.imul(ia,aa)|0,Wn=Wn+Math.imul(ia,sa)|0,Wn=Wn+Math.imul(Zi,aa)|0,Ti=Ti+Math.imul(Zi,sa)|0,xi=xi+Math.imul(Qi,xa)|0,Wn=Wn+Math.imul(Qi,pa)|0,Wn=Wn+Math.imul(Yi,xa)|0,Ti=Ti+Math.imul(Yi,pa)|0,xi=xi+Math.imul(Ui,_a)|0,Wn=Wn+Math.imul(Ui,Sa)|0,Wn=Wn+Math.imul(Mi,_a)|0,Ti=Ti+Math.imul(Mi,Sa)|0,xi=xi+Math.imul(Pi,qa)|0,Wn=Wn+Math.imul(Pi,Ma)|0,Wn=Wn+Math.imul(zi,qa)|0,Ti=Ti+Math.imul(zi,Ma)|0;var Xa=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Xa>>>26)|0,Xa&=67108863,xi=Math.imul(Ea,Ia),Wn=Math.imul(Ea,ba),Wn=Wn+Math.imul(va,Ia)|0,Ti=Math.imul(va,ba),xi=xi+Math.imul(ha,Fa)|0,Wn=Wn+Math.imul(ha,Da)|0,Wn=Wn+Math.imul(da,Fa)|0,Ti=Ti+Math.imul(da,Da)|0,xi=xi+Math.imul(ca,Oa)|0,Wn=Wn+Math.imul(ca,Gi)|0,Wn=Wn+Math.imul(la,Oa)|0,Ti=Ti+Math.imul(la,Gi)|0,xi=xi+Math.imul(ta,$i)|0,Wn=Wn+Math.imul(ta,Wi)|0,Wn=Wn+Math.imul(oa,$i)|0,Ti=Ti+Math.imul(oa,Wi)|0,xi=xi+Math.imul(ua,aa)|0,Wn=Wn+Math.imul(ua,sa)|0,Wn=Wn+Math.imul(Xi,aa)|0,Ti=Ti+Math.imul(Xi,sa)|0,xi=xi+Math.imul(ia,xa)|0,Wn=Wn+Math.imul(ia,pa)|0,Wn=Wn+Math.imul(Zi,xa)|0,Ti=Ti+Math.imul(Zi,pa)|0,xi=xi+Math.imul(Qi,_a)|0,Wn=Wn+Math.imul(Qi,Sa)|0,Wn=Wn+Math.imul(Yi,_a)|0,Ti=Ti+Math.imul(Yi,Sa)|0,xi=xi+Math.imul(Ui,qa)|0,Wn=Wn+Math.imul(Ui,Ma)|0,Wn=Wn+Math.imul(Mi,qa)|0,Ti=Ti+Math.imul(Mi,Ma)|0;var Ja=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Ja>>>26)|0,Ja&=67108863,xi=Math.imul(Ea,Fa),Wn=Math.imul(Ea,Da),Wn=Wn+Math.imul(va,Fa)|0,Ti=Math.imul(va,Da),xi=xi+Math.imul(ha,Oa)|0,Wn=Wn+Math.imul(ha,Gi)|0,Wn=Wn+Math.imul(da,Oa)|0,Ti=Ti+Math.imul(da,Gi)|0,xi=xi+Math.imul(ca,$i)|0,Wn=Wn+Math.imul(ca,Wi)|0,Wn=Wn+Math.imul(la,$i)|0,Ti=Ti+Math.imul(la,Wi)|0,xi=xi+Math.imul(ta,aa)|0,Wn=Wn+Math.imul(ta,sa)|0,Wn=Wn+Math.imul(oa,aa)|0,Ti=Ti+Math.imul(oa,sa)|0,xi=xi+Math.imul(ua,xa)|0,Wn=Wn+Math.imul(ua,pa)|0,Wn=Wn+Math.imul(Xi,xa)|0,Ti=Ti+Math.imul(Xi,pa)|0,xi=xi+Math.imul(ia,_a)|0,Wn=Wn+Math.imul(ia,Sa)|0,Wn=Wn+Math.imul(Zi,_a)|0,Ti=Ti+Math.imul(Zi,Sa)|0,xi=xi+Math.imul(Qi,qa)|0,Wn=Wn+Math.imul(Qi,Ma)|0,Wn=Wn+Math.imul(Yi,qa)|0,Ti=Ti+Math.imul(Yi,Ma)|0;var Za=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(Za>>>26)|0,Za&=67108863,xi=Math.imul(Ea,Oa),Wn=Math.imul(Ea,Gi),Wn=Wn+Math.imul(va,Oa)|0,Ti=Math.imul(va,Gi),xi=xi+Math.imul(ha,$i)|0,Wn=Wn+Math.imul(ha,Wi)|0,Wn=Wn+Math.imul(da,$i)|0,Ti=Ti+Math.imul(da,Wi)|0,xi=xi+Math.imul(ca,aa)|0,Wn=Wn+Math.imul(ca,sa)|0,Wn=Wn+Math.imul(la,aa)|0,Ti=Ti+Math.imul(la,sa)|0,xi=xi+Math.imul(ta,xa)|0,Wn=Wn+Math.imul(ta,pa)|0,Wn=Wn+Math.imul(oa,xa)|0,Ti=Ti+Math.imul(oa,pa)|0,xi=xi+Math.imul(ua,_a)|0,Wn=Wn+Math.imul(ua,Sa)|0,Wn=Wn+Math.imul(Xi,_a)|0,Ti=Ti+Math.imul(Xi,Sa)|0,xi=xi+Math.imul(ia,qa)|0,Wn=Wn+Math.imul(ia,Ma)|0,Wn=Wn+Math.imul(Zi,qa)|0,Ti=Ti+Math.imul(Zi,Ma)|0;var ao=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(ao>>>26)|0,ao&=67108863,xi=Math.imul(Ea,$i),Wn=Math.imul(Ea,Wi),Wn=Wn+Math.imul(va,$i)|0,Ti=Math.imul(va,Wi),xi=xi+Math.imul(ha,aa)|0,Wn=Wn+Math.imul(ha,sa)|0,Wn=Wn+Math.imul(da,aa)|0,Ti=Ti+Math.imul(da,sa)|0,xi=xi+Math.imul(ca,xa)|0,Wn=Wn+Math.imul(ca,pa)|0,Wn=Wn+Math.imul(la,xa)|0,Ti=Ti+Math.imul(la,pa)|0,xi=xi+Math.imul(ta,_a)|0,Wn=Wn+Math.imul(ta,Sa)|0,Wn=Wn+Math.imul(oa,_a)|0,Ti=Ti+Math.imul(oa,Sa)|0,xi=xi+Math.imul(ua,qa)|0,Wn=Wn+Math.imul(ua,Ma)|0,Wn=Wn+Math.imul(Xi,qa)|0,Ti=Ti+Math.imul(Xi,Ma)|0;var vo=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(vo>>>26)|0,vo&=67108863,xi=Math.imul(Ea,aa),Wn=Math.imul(Ea,sa),Wn=Wn+Math.imul(va,aa)|0,Ti=Math.imul(va,sa),xi=xi+Math.imul(ha,xa)|0,Wn=Wn+Math.imul(ha,pa)|0,Wn=Wn+Math.imul(da,xa)|0,Ti=Ti+Math.imul(da,pa)|0,xi=xi+Math.imul(ca,_a)|0,Wn=Wn+Math.imul(ca,Sa)|0,Wn=Wn+Math.imul(la,_a)|0,Ti=Ti+Math.imul(la,Sa)|0,xi=xi+Math.imul(ta,qa)|0,Wn=Wn+Math.imul(ta,Ma)|0,Wn=Wn+Math.imul(oa,qa)|0,Ti=Ti+Math.imul(oa,Ma)|0;var bo=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(bo>>>26)|0,bo&=67108863,xi=Math.imul(Ea,xa),Wn=Math.imul(Ea,pa),Wn=Wn+Math.imul(va,xa)|0,Ti=Math.imul(va,pa),xi=xi+Math.imul(ha,_a)|0,Wn=Wn+Math.imul(ha,Sa)|0,Wn=Wn+Math.imul(da,_a)|0,Ti=Ti+Math.imul(da,Sa)|0,xi=xi+Math.imul(ca,qa)|0,Wn=Wn+Math.imul(ca,Ma)|0,Wn=Wn+Math.imul(la,qa)|0,Ti=Ti+Math.imul(la,Ma)|0;var So=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(So>>>26)|0,So&=67108863,xi=Math.imul(Ea,_a),Wn=Math.imul(Ea,Sa),Wn=Wn+Math.imul(va,_a)|0,Ti=Math.imul(va,Sa),xi=xi+Math.imul(ha,qa)|0,Wn=Wn+Math.imul(ha,Ma)|0,Wn=Wn+Math.imul(da,qa)|0,Ti=Ti+Math.imul(da,Ma)|0;var To=(Ei+xi|0)+((Wn&8191)<<13)|0;Ei=(Ti+(Wn>>>13)|0)+(To>>>26)|0,To&=67108863,xi=Math.imul(Ea,qa),Wn=Math.imul(Ea,Ma),Wn=Wn+Math.imul(va,qa)|0,Ti=Math.imul(va,Ma);var No=(Ei+xi|0)+((Wn&8191)<<13)|0;return Ei=(Ti+(Wn>>>13)|0)+(No>>>26)|0,No&=67108863,wi[0]=Ua,wi[1]=ja,wi[2]=Va,wi[3]=Ga,wi[4]=Ka,wi[5]=Ha,wi[6]=Qa,wi[7]=za,wi[8]=Wa,wi[9]=Ya,wi[10]=Xa,wi[11]=Ja,wi[12]=Za,wi[13]=ao,wi[14]=vo,wi[15]=bo,wi[16]=So,wi[17]=To,wi[18]=No,Ei!==0&&(wi[19]=Ei,yi.length++),yi};Math.imul||(gi=vi);function Ri(Yn,In,Hn){Hn.negative=In.negative^Yn.negative,Hn.length=Yn.length+In.length;for(var yi=0,mi=0,_i=0;_i<Hn.length-1;_i++){var wi=mi;mi=0;for(var Ei=yi&67108863,xi=Math.min(_i,In.length-1),Wn=Math.max(0,_i-Yn.length+1);Wn<=xi;Wn++){var Ti=_i-Wn,qi=Yn.words[Ti]|0,Vi=In.words[Wn]|0,ji=qi*Vi,Bi=ji&67108863;wi=wi+(ji/67108864|0)|0,Bi=Bi+Ei|0,Ei=Bi&67108863,wi=wi+(Bi>>>26)|0,mi+=wi>>>26,wi&=67108863}Hn.words[_i]=Ei,yi=wi,wi=mi}return yi!==0?Hn.words[_i]=yi:Hn.length--,Hn._strip()}function Si(Yn,In,Hn){return Ri(Yn,In,Hn)}a.prototype.mulTo=function(In,Hn){var yi,mi=this.length+In.length;return this.length===10&&In.length===10?yi=gi(this,In,Hn):mi<63?yi=vi(this,In,Hn):mi<1024?yi=Ri(this,In,Hn):yi=Si(this,In,Hn),yi},a.prototype.mul=function(In){var Hn=new a(null);return Hn.words=new Array(this.length+In.length),this.mulTo(In,Hn)},a.prototype.mulf=function(In){var Hn=new a(null);return Hn.words=new Array(this.length+In.length),Si(this,In,Hn)},a.prototype.imul=function(In){return this.clone().mulTo(In,this)},a.prototype.imuln=function(In){var Hn=In<0;Hn&&(In=-In),i(typeof In=="number"),i(In<67108864);for(var yi=0,mi=0;mi<this.length;mi++){var _i=(this.words[mi]|0)*In,wi=(_i&67108863)+(yi&67108863);yi>>=26,yi+=_i/67108864|0,yi+=wi>>>26,this.words[mi]=wi&67108863}return yi!==0&&(this.words[mi]=yi,this.length++),this.length=In===0?1:this.length,Hn?this.ineg():this},a.prototype.muln=function(In){return this.clone().imuln(In)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(In){var Hn=hi(In);if(Hn.length===0)return new a(1);for(var yi=this,mi=0;mi<Hn.length&&Hn[mi]===0;mi++,yi=yi.sqr());if(++mi<Hn.length)for(var _i=yi.sqr();mi<Hn.length;mi++,_i=_i.sqr())Hn[mi]!==0&&(yi=yi.mul(_i));return yi},a.prototype.iushln=function(In){i(typeof In=="number"&&In>=0);var Hn=In%26,yi=(In-Hn)/26,mi=67108863>>>26-Hn<<26-Hn,_i;if(Hn!==0){var wi=0;for(_i=0;_i<this.length;_i++){var Ei=this.words[_i]&mi,xi=(this.words[_i]|0)-Ei<<Hn;this.words[_i]=xi|wi,wi=Ei>>>26-Hn}wi&&(this.words[_i]=wi,this.length++)}if(yi!==0){for(_i=this.length-1;_i>=0;_i--)this.words[_i+yi]=this.words[_i];for(_i=0;_i<yi;_i++)this.words[_i]=0;this.length+=yi}return this._strip()},a.prototype.ishln=function(In){return i(this.negative===0),this.iushln(In)},a.prototype.iushrn=function(In,Hn,yi){i(typeof In=="number"&&In>=0);var mi;Hn?mi=(Hn-Hn%26)/26:mi=0;var _i=In%26,wi=Math.min((In-_i)/26,this.length),Ei=67108863^67108863>>>_i<<_i,xi=yi;if(mi-=wi,mi=Math.max(0,mi),xi){for(var Wn=0;Wn<wi;Wn++)xi.words[Wn]=this.words[Wn];xi.length=wi}if(wi!==0)if(this.length>wi)for(this.length-=wi,Wn=0;Wn<this.length;Wn++)this.words[Wn]=this.words[Wn+wi];else this.words[0]=0,this.length=1;var Ti=0;for(Wn=this.length-1;Wn>=0&&(Ti!==0||Wn>=mi);Wn--){var qi=this.words[Wn]|0;this.words[Wn]=Ti<<26-_i|qi>>>_i,Ti=qi&Ei}return xi&&Ti!==0&&(xi.words[xi.length++]=Ti),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(In,Hn,yi){return i(this.negative===0),this.iushrn(In,Hn,yi)},a.prototype.shln=function(In){return this.clone().ishln(In)},a.prototype.ushln=function(In){return this.clone().iushln(In)},a.prototype.shrn=function(In){return this.clone().ishrn(In)},a.prototype.ushrn=function(In){return this.clone().iushrn(In)},a.prototype.testn=function(In){i(typeof In=="number"&&In>=0);var Hn=In%26,yi=(In-Hn)/26,mi=1<<Hn;if(this.length<=yi)return!1;var _i=this.words[yi];return!!(_i&mi)},a.prototype.imaskn=function(In){i(typeof In=="number"&&In>=0);var Hn=In%26,yi=(In-Hn)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=yi)return this;if(Hn!==0&&yi++,this.length=Math.min(yi,this.length),Hn!==0){var mi=67108863^67108863>>>Hn<<Hn;this.words[this.length-1]&=mi}return this._strip()},a.prototype.maskn=function(In){return this.clone().imaskn(In)},a.prototype.iaddn=function(In){return i(typeof In=="number"),i(In<67108864),In<0?this.isubn(-In):this.negative!==0?this.length===1&&(this.words[0]|0)<=In?(this.words[0]=In-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(In),this.negative=1,this):this._iaddn(In)},a.prototype._iaddn=function(In){this.words[0]+=In;for(var Hn=0;Hn<this.length&&this.words[Hn]>=67108864;Hn++)this.words[Hn]-=67108864,Hn===this.length-1?this.words[Hn+1]=1:this.words[Hn+1]++;return this.length=Math.max(this.length,Hn+1),this},a.prototype.isubn=function(In){if(i(typeof In=="number"),i(In<67108864),In<0)return this.iaddn(-In);if(this.negative!==0)return this.negative=0,this.iaddn(In),this.negative=1,this;if(this.words[0]-=In,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Hn=0;Hn<this.length&&this.words[Hn]<0;Hn++)this.words[Hn]+=67108864,this.words[Hn+1]-=1;return this._strip()},a.prototype.addn=function(In){return this.clone().iaddn(In)},a.prototype.subn=function(In){return this.clone().isubn(In)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(In,Hn,yi){var mi=In.length+yi,_i;this._expand(mi);var wi,Ei=0;for(_i=0;_i<In.length;_i++){wi=(this.words[_i+yi]|0)+Ei;var xi=(In.words[_i]|0)*Hn;wi-=xi&67108863,Ei=(wi>>26)-(xi/67108864|0),this.words[_i+yi]=wi&67108863}for(;_i<this.length-yi;_i++)wi=(this.words[_i+yi]|0)+Ei,Ei=wi>>26,this.words[_i+yi]=wi&67108863;if(Ei===0)return this._strip();for(i(Ei===-1),Ei=0,_i=0;_i<this.length;_i++)wi=-(this.words[_i]|0)+Ei,Ei=wi>>26,this.words[_i]=wi&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(In,Hn){var yi=this.length-In.length,mi=this.clone(),_i=In,wi=_i.words[_i.length-1]|0,Ei=this._countBits(wi);yi=26-Ei,yi!==0&&(_i=_i.ushln(yi),mi.iushln(yi),wi=_i.words[_i.length-1]|0);var xi=mi.length-_i.length,Wn;if(Hn!=="mod"){Wn=new a(null),Wn.length=xi+1,Wn.words=new Array(Wn.length);for(var Ti=0;Ti<Wn.length;Ti++)Wn.words[Ti]=0}var qi=mi.clone()._ishlnsubmul(_i,1,xi);qi.negative===0&&(mi=qi,Wn&&(Wn.words[xi]=1));for(var Vi=xi-1;Vi>=0;Vi--){var ji=(mi.words[_i.length+Vi]|0)*67108864+(mi.words[_i.length+Vi-1]|0);for(ji=Math.min(ji/wi|0,67108863),mi._ishlnsubmul(_i,ji,Vi);mi.negative!==0;)ji--,mi.negative=0,mi._ishlnsubmul(_i,1,Vi),mi.isZero()||(mi.negative^=1);Wn&&(Wn.words[Vi]=ji)}return Wn&&Wn._strip(),mi._strip(),Hn!=="div"&&yi!==0&&mi.iushrn(yi),{div:Wn||null,mod:mi}},a.prototype.divmod=function(In,Hn,yi){if(i(!In.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var mi,_i,wi;return this.negative!==0&&In.negative===0?(wi=this.neg().divmod(In,Hn),Hn!=="mod"&&(mi=wi.div.neg()),Hn!=="div"&&(_i=wi.mod.neg(),yi&&_i.negative!==0&&_i.iadd(In)),{div:mi,mod:_i}):this.negative===0&&In.negative!==0?(wi=this.divmod(In.neg(),Hn),Hn!=="mod"&&(mi=wi.div.neg()),{div:mi,mod:wi.mod}):(this.negative&In.negative)!==0?(wi=this.neg().divmod(In.neg(),Hn),Hn!=="div"&&(_i=wi.mod.neg(),yi&&_i.negative!==0&&_i.isub(In)),{div:wi.div,mod:_i}):In.length>this.length||this.cmp(In)<0?{div:new a(0),mod:this}:In.length===1?Hn==="div"?{div:this.divn(In.words[0]),mod:null}:Hn==="mod"?{div:null,mod:new a(this.modrn(In.words[0]))}:{div:this.divn(In.words[0]),mod:new a(this.modrn(In.words[0]))}:this._wordDiv(In,Hn)},a.prototype.div=function(In){return this.divmod(In,"div",!1).div},a.prototype.mod=function(In){return this.divmod(In,"mod",!1).mod},a.prototype.umod=function(In){return this.divmod(In,"mod",!0).mod},a.prototype.divRound=function(In){var Hn=this.divmod(In);if(Hn.mod.isZero())return Hn.div;var yi=Hn.div.negative!==0?Hn.mod.isub(In):Hn.mod,mi=In.ushrn(1),_i=In.andln(1),wi=yi.cmp(mi);return wi<0||_i===1&&wi===0?Hn.div:Hn.div.negative!==0?Hn.div.isubn(1):Hn.div.iaddn(1)},a.prototype.modrn=function(In){var Hn=In<0;Hn&&(In=-In),i(In<=67108863);for(var yi=(1<<26)%In,mi=0,_i=this.length-1;_i>=0;_i--)mi=(yi*mi+(this.words[_i]|0))%In;return Hn?-mi:mi},a.prototype.modn=function(In){return this.modrn(In)},a.prototype.idivn=function(In){var Hn=In<0;Hn&&(In=-In),i(In<=67108863);for(var yi=0,mi=this.length-1;mi>=0;mi--){var _i=(this.words[mi]|0)+yi*67108864;this.words[mi]=_i/In|0,yi=_i%In}return this._strip(),Hn?this.ineg():this},a.prototype.divn=function(In){return this.clone().idivn(In)},a.prototype.egcd=function(In){i(In.negative===0),i(!In.isZero());var Hn=this,yi=In.clone();Hn.negative!==0?Hn=Hn.umod(In):Hn=Hn.clone();for(var mi=new a(1),_i=new a(0),wi=new a(0),Ei=new a(1),xi=0;Hn.isEven()&&yi.isEven();)Hn.iushrn(1),yi.iushrn(1),++xi;for(var Wn=yi.clone(),Ti=Hn.clone();!Hn.isZero();){for(var qi=0,Vi=1;(Hn.words[0]&Vi)===0&&qi<26;++qi,Vi<<=1);if(qi>0)for(Hn.iushrn(qi);qi-- >0;)(mi.isOdd()||_i.isOdd())&&(mi.iadd(Wn),_i.isub(Ti)),mi.iushrn(1),_i.iushrn(1);for(var ji=0,Bi=1;(yi.words[0]&Bi)===0&&ji<26;++ji,Bi<<=1);if(ji>0)for(yi.iushrn(ji);ji-- >0;)(wi.isOdd()||Ei.isOdd())&&(wi.iadd(Wn),Ei.isub(Ti)),wi.iushrn(1),Ei.iushrn(1);Hn.cmp(yi)>=0?(Hn.isub(yi),mi.isub(wi),_i.isub(Ei)):(yi.isub(Hn),wi.isub(mi),Ei.isub(_i))}return{a:wi,b:Ei,gcd:yi.iushln(xi)}},a.prototype._invmp=function(In){i(In.negative===0),i(!In.isZero());var Hn=this,yi=In.clone();Hn.negative!==0?Hn=Hn.umod(In):Hn=Hn.clone();for(var mi=new a(1),_i=new a(0),wi=yi.clone();Hn.cmpn(1)>0&&yi.cmpn(1)>0;){for(var Ei=0,xi=1;(Hn.words[0]&xi)===0&&Ei<26;++Ei,xi<<=1);if(Ei>0)for(Hn.iushrn(Ei);Ei-- >0;)mi.isOdd()&&mi.iadd(wi),mi.iushrn(1);for(var Wn=0,Ti=1;(yi.words[0]&Ti)===0&&Wn<26;++Wn,Ti<<=1);if(Wn>0)for(yi.iushrn(Wn);Wn-- >0;)_i.isOdd()&&_i.iadd(wi),_i.iushrn(1);Hn.cmp(yi)>=0?(Hn.isub(yi),mi.isub(_i)):(yi.isub(Hn),_i.isub(mi))}var qi;return Hn.cmpn(1)===0?qi=mi:qi=_i,qi.cmpn(0)<0&&qi.iadd(In),qi},a.prototype.gcd=function(In){if(this.isZero())return In.abs();if(In.isZero())return this.abs();var Hn=this.clone(),yi=In.clone();Hn.negative=0,yi.negative=0;for(var mi=0;Hn.isEven()&&yi.isEven();mi++)Hn.iushrn(1),yi.iushrn(1);do{for(;Hn.isEven();)Hn.iushrn(1);for(;yi.isEven();)yi.iushrn(1);var _i=Hn.cmp(yi);if(_i<0){var wi=Hn;Hn=yi,yi=wi}else if(_i===0||yi.cmpn(1)===0)break;Hn.isub(yi)}while(!0);return yi.iushln(mi)},a.prototype.invm=function(In){return this.egcd(In).a.umod(In)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(In){return this.words[0]&In},a.prototype.bincn=function(In){i(typeof In=="number");var Hn=In%26,yi=(In-Hn)/26,mi=1<<Hn;if(this.length<=yi)return this._expand(yi+1),this.words[yi]|=mi,this;for(var _i=mi,wi=yi;_i!==0&&wi<this.length;wi++){var Ei=this.words[wi]|0;Ei+=_i,_i=Ei>>>26,Ei&=67108863,this.words[wi]=Ei}return _i!==0&&(this.words[wi]=_i,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(In){var Hn=In<0;if(this.negative!==0&&!Hn)return-1;if(this.negative===0&&Hn)return 1;this._strip();var yi;if(this.length>1)yi=1;else{Hn&&(In=-In),i(In<=67108863,"Number is too big");var mi=this.words[0]|0;yi=mi===In?0:mi<In?-1:1}return this.negative!==0?-yi|0:yi},a.prototype.cmp=function(In){if(this.negative!==0&&In.negative===0)return-1;if(this.negative===0&&In.negative!==0)return 1;var Hn=this.ucmp(In);return this.negative!==0?-Hn|0:Hn},a.prototype.ucmp=function(In){if(this.length>In.length)return 1;if(this.length<In.length)return-1;for(var Hn=0,yi=this.length-1;yi>=0;yi--){var mi=this.words[yi]|0,_i=In.words[yi]|0;if(mi!==_i){mi<_i?Hn=-1:mi>_i&&(Hn=1);break}}return Hn},a.prototype.gtn=function(In){return this.cmpn(In)===1},a.prototype.gt=function(In){return this.cmp(In)===1},a.prototype.gten=function(In){return this.cmpn(In)>=0},a.prototype.gte=function(In){return this.cmp(In)>=0},a.prototype.ltn=function(In){return this.cmpn(In)===-1},a.prototype.lt=function(In){return this.cmp(In)===-1},a.prototype.lten=function(In){return this.cmpn(In)<=0},a.prototype.lte=function(In){return this.cmp(In)<=0},a.prototype.eqn=function(In){return this.cmpn(In)===0},a.prototype.eq=function(In){return this.cmp(In)===0},a.red=function(In){return new Fi(In)},a.prototype.toRed=function(In){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),In.convertTo(this)._forceRed(In)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(In){return this.red=In,this},a.prototype.forceRed=function(In){return i(!this.red,"Already a number in reduction context"),this._forceRed(In)},a.prototype.redAdd=function(In){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,In)},a.prototype.redIAdd=function(In){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,In)},a.prototype.redSub=function(In){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,In)},a.prototype.redISub=function(In){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,In)},a.prototype.redShl=function(In){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,In)},a.prototype.redMul=function(In){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,In),this.red.mul(this,In)},a.prototype.redIMul=function(In){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,In),this.red.imul(this,In)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(In){return i(this.red&&!In.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,In)};var Ai={k256:null,p224:null,p192:null,p25519:null};function Ii(Yn,In){this.name=Yn,this.p=new a(In,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Ii.prototype._tmp=function(){var In=new a(null);return In.words=new Array(Math.ceil(this.n/13)),In},Ii.prototype.ireduce=function(In){var Hn=In,yi;do this.split(Hn,this.tmp),Hn=this.imulK(Hn),Hn=Hn.iadd(this.tmp),yi=Hn.bitLength();while(yi>this.n);var mi=yi<this.n?-1:Hn.ucmp(this.p);return mi===0?(Hn.words[0]=0,Hn.length=1):mi>0?Hn.isub(this.p):Hn.strip!==void 0?Hn.strip():Hn._strip(),Hn},Ii.prototype.split=function(In,Hn){In.iushrn(this.n,0,Hn)},Ii.prototype.imulK=function(In){return In.imul(this.k)};function Ni(){Ii.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}s(Ni,Ii),Ni.prototype.split=function(In,Hn){for(var yi=4194303,mi=Math.min(In.length,9),_i=0;_i<mi;_i++)Hn.words[_i]=In.words[_i];if(Hn.length=mi,In.length<=9){In.words[0]=0,In.length=1;return}var wi=In.words[9];for(Hn.words[Hn.length++]=wi&yi,_i=10;_i<In.length;_i++){var Ei=In.words[_i]|0;In.words[_i-10]=(Ei&yi)<<4|wi>>>22,wi=Ei}wi>>>=22,In.words[_i-10]=wi,wi===0&&In.length>10?In.length-=10:In.length-=9},Ni.prototype.imulK=function(In){In.words[In.length]=0,In.words[In.length+1]=0,In.length+=2;for(var Hn=0,yi=0;yi<In.length;yi++){var mi=In.words[yi]|0;Hn+=mi*977,In.words[yi]=Hn&67108863,Hn=mi*64+(Hn/67108864|0)}return In.words[In.length-1]===0&&(In.length--,In.words[In.length-1]===0&&In.length--),In};function Ci(){Ii.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}s(Ci,Ii);function Oi(){Ii.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}s(Oi,Ii);function ki(){Ii.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}s(ki,Ii),ki.prototype.imulK=function(In){for(var Hn=0,yi=0;yi<In.length;yi++){var mi=(In.words[yi]|0)*19+Hn,_i=mi&67108863;mi>>>=26,In.words[yi]=_i,Hn=mi}return Hn!==0&&(In.words[In.length++]=Hn),In},a._prime=function(In){if(Ai[In])return Ai[In];var Hn;if(In==="k256")Hn=new Ni;else if(In==="p224")Hn=new Ci;else if(In==="p192")Hn=new Oi;else if(In==="p25519")Hn=new ki;else throw new Error("Unknown prime "+In);return Ai[In]=Hn,Hn};function Fi(Yn){if(typeof Yn=="string"){var In=a._prime(Yn);this.m=In.p,this.prime=In}else i(Yn.gtn(1),"modulus must be greater than 1"),this.m=Yn,this.prime=null}Fi.prototype._verify1=function(In){i(In.negative===0,"red works only with positives"),i(In.red,"red works only with red numbers")},Fi.prototype._verify2=function(In,Hn){i((In.negative|Hn.negative)===0,"red works only with positives"),i(In.red&&In.red===Hn.red,"red works only with red numbers")},Fi.prototype.imod=function(In){return this.prime?this.prime.ireduce(In)._forceRed(this):(h(In,In.umod(this.m)._forceRed(this)),In)},Fi.prototype.neg=function(In){return In.isZero()?In.clone():this.m.sub(In)._forceRed(this)},Fi.prototype.add=function(In,Hn){this._verify2(In,Hn);var yi=In.add(Hn);return yi.cmp(this.m)>=0&&yi.isub(this.m),yi._forceRed(this)},Fi.prototype.iadd=function(In,Hn){this._verify2(In,Hn);var yi=In.iadd(Hn);return yi.cmp(this.m)>=0&&yi.isub(this.m),yi},Fi.prototype.sub=function(In,Hn){this._verify2(In,Hn);var yi=In.sub(Hn);return yi.cmpn(0)<0&&yi.iadd(this.m),yi._forceRed(this)},Fi.prototype.isub=function(In,Hn){this._verify2(In,Hn);var yi=In.isub(Hn);return yi.cmpn(0)<0&&yi.iadd(this.m),yi},Fi.prototype.shl=function(In,Hn){return this._verify1(In),this.imod(In.ushln(Hn))},Fi.prototype.imul=function(In,Hn){return this._verify2(In,Hn),this.imod(In.imul(Hn))},Fi.prototype.mul=function(In,Hn){return this._verify2(In,Hn),this.imod(In.mul(Hn))},Fi.prototype.isqr=function(In){return this.imul(In,In.clone())},Fi.prototype.sqr=function(In){return this.mul(In,In)},Fi.prototype.sqrt=function(In){if(In.isZero())return In.clone();var Hn=this.m.andln(3);if(i(Hn%2===1),Hn===3){var yi=this.m.add(new a(1)).iushrn(2);return this.pow(In,yi)}for(var mi=this.m.subn(1),_i=0;!mi.isZero()&&mi.andln(1)===0;)_i++,mi.iushrn(1);i(!mi.isZero());var wi=new a(1).toRed(this),Ei=wi.redNeg(),xi=this.m.subn(1).iushrn(1),Wn=this.m.bitLength();for(Wn=new a(2*Wn*Wn).toRed(this);this.pow(Wn,xi).cmp(Ei)!==0;)Wn.redIAdd(Ei);for(var Ti=this.pow(Wn,mi),qi=this.pow(In,mi.addn(1).iushrn(1)),Vi=this.pow(In,mi),ji=_i;Vi.cmp(wi)!==0;){for(var Bi=Vi,Pi=0;Bi.cmp(wi)!==0;Pi++)Bi=Bi.redSqr();i(Pi<ji);var zi=this.pow(Ti,new a(1).iushln(ji-Pi-1));qi=qi.redMul(zi),Ti=zi.redSqr(),Vi=Vi.redMul(Ti),ji=Pi}return qi},Fi.prototype.invm=function(In){var Hn=In._invmp(this.m);return Hn.negative!==0?(Hn.negative=0,this.imod(Hn).redNeg()):this.imod(Hn)},Fi.prototype.pow=function(In,Hn){if(Hn.isZero())return new a(1).toRed(this);if(Hn.cmpn(1)===0)return In.clone();var yi=4,mi=new Array(1<<yi);mi[0]=new a(1).toRed(this),mi[1]=In;for(var _i=2;_i<mi.length;_i++)mi[_i]=this.mul(mi[_i-1],In);var wi=mi[0],Ei=0,xi=0,Wn=Hn.bitLength()%26;for(Wn===0&&(Wn=26),_i=Hn.length-1;_i>=0;_i--){for(var Ti=Hn.words[_i],qi=Wn-1;qi>=0;qi--){var Vi=Ti>>qi&1;if(wi!==mi[0]&&(wi=this.sqr(wi)),Vi===0&&Ei===0){xi=0;continue}Ei<<=1,Ei|=Vi,xi++,!(xi!==yi&&(_i!==0||qi!==0))&&(wi=this.mul(wi,mi[Ei]),xi=0,Ei=0)}Wn=26}return wi},Fi.prototype.convertTo=function(In){var Hn=In.umod(this.m);return Hn===In?Hn.clone():Hn},Fi.prototype.convertFrom=function(In){var Hn=In.clone();return Hn.red=null,Hn},a.mont=function(In){return new bi(In)};function bi(Yn){Fi.call(this,Yn),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(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)}s(bi,Fi),bi.prototype.convertTo=function(In){return this.imod(In.ushln(this.shift))},bi.prototype.convertFrom=function(In){var Hn=this.imod(In.mul(this.rinv));return Hn.red=null,Hn},bi.prototype.imul=function(In,Hn){if(In.isZero()||Hn.isZero())return In.words[0]=0,In.length=1,In;var yi=In.imul(Hn),mi=yi.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_i=yi.isub(mi).iushrn(this.shift),wi=_i;return _i.cmp(this.m)>=0?wi=_i.isub(this.m):_i.cmpn(0)<0&&(wi=_i.iadd(this.m)),wi._forceRed(this)},bi.prototype.mul=function(In,Hn){if(In.isZero()||Hn.isZero())return new a(0)._forceRed(this);var yi=In.mul(Hn),mi=yi.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_i=yi.isub(mi).iushrn(this.shift),wi=_i;return _i.cmp(this.m)>=0?wi=_i.isub(this.m):_i.cmpn(0)<0&&(wi=_i.iadd(this.m)),wi._forceRed(this)},bi.prototype.invm=function(In){var Hn=this.imod(In._invmp(this.m).mul(this.r2));return Hn._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,t){if(r.indexOf)return r.indexOf(t);for(var n=0;n<r.length;n++)if(r[n]===t)return n;return-1},Object_keys=function(r){if(Object.keys)return Object.keys(r);var t=[];for(var n in r)t.push(n);return t},forEach=function(r,t){if(r.forEach)return r.forEach(t);for(var n=0;n<r.length;n++)t(r[n],n,r)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(r,t,n){Object.defineProperty(r,t,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch{return function(t,n,i){t[n]=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(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(r){if(!(r instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var n=t.contentWindow,i=n.eval,s=n.execScript;!i&&s&&(s.call(n,"null"),i=n.eval),forEach(Object_keys(r),function(v){n[v]=r[v]}),forEach(globals,function(v){r[v]&&(n[v]=r[v])});var a=Object_keys(n),l=i.call(n,this.code);return forEach(Object_keys(n),function(v){(v in r||indexOf(a,v)===-1)&&(r[v]=n[v])}),forEach(globals,function(v){v in r||defineProp(r,v,n[v])}),document.body.removeChild(t),l},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(r){var t=Script.createContext(r),n=this.runInContext(t);return r&&forEach(Object_keys(t),function(i){r[i]=t[i]}),n},forEach(Object_keys(Script.prototype),function(r){exports[r]=Script[r]=function(t){var n=Script(t);return n[r].apply(n,[].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 t=new Context;return typeof r=="object"&&forEach(Object_keys(r),function(n){t[n]=r[n]}),t}}(vmBrowserify)),vmBrowserify}var hasRequiredApi$1;function requireApi$1(){return hasRequiredApi$1||(hasRequiredApi$1=1,function(r){var t=requireAsn1$1(),n=requireInherits_browser(),i=r;i.define=function(l,v){return new s(l,v)};function s(a,l){this.name=a,this.body=l,this.decoders={},this.encoders={}}s.prototype._createNamed=function(l){var v;try{v=requireVmBrowserify().runInThisContext("(function "+this.name+`(entity) {
|
|
99
99
|
this._initNamed(entity);
|
|
100
100
|
})`)}catch{v=function(u){this._initNamed(u)}}return n(v,l),v.prototype._initNamed=function(u){l.call(this,u)},new v(this)},s.prototype._getDecoder=function(l){return l=l||"der",this.decoders.hasOwnProperty(l)||(this.decoders[l]=this._createNamed(t.decoders[l])),this.decoders[l]},s.prototype.decode=function(l,v,on){return this._getDecoder(v).decode(l,on)},s.prototype._getEncoder=function(l){return l=l||"der",this.encoders.hasOwnProperty(l)||(this.encoders[l]=this._createNamed(t.encoders[l])),this.encoders[l]},s.prototype.encode=function(l,v,on){return this._getEncoder(v).encode(l,on)}}(api$1)),api$1}var base={},reporter={},hasRequiredReporter;function requireReporter(){if(hasRequiredReporter)return reporter;hasRequiredReporter=1;var r=requireInherits_browser();function t(i){this._reporterState={obj:null,path:[],options:i||{},errors:[]}}reporter.Reporter=t,t.prototype.isError=function(s){return s instanceof n},t.prototype.save=function(){var s=this._reporterState;return{obj:s.obj,pathLen:s.path.length}},t.prototype.restore=function(s){var a=this._reporterState;a.obj=s.obj,a.path=a.path.slice(0,s.pathLen)},t.prototype.enterKey=function(s){return this._reporterState.path.push(s)},t.prototype.exitKey=function(s){var a=this._reporterState;a.path=a.path.slice(0,s-1)},t.prototype.leaveKey=function(s,a,l){var v=this._reporterState;this.exitKey(s),v.obj!==null&&(v.obj[a]=l)},t.prototype.path=function(){return this._reporterState.path.join("/")},t.prototype.enterObject=function(){var s=this._reporterState,a=s.obj;return s.obj={},a},t.prototype.leaveObject=function(s){var a=this._reporterState,l=a.obj;return a.obj=s,l},t.prototype.error=function(s){var a,l=this._reporterState,v=s instanceof n;if(v?a=s:a=new n(l.path.map(function(on){return"["+JSON.stringify(on)+"]"}).join(""),s.message||s,s.stack),!l.options.partial)throw a;return v||l.errors.push(a),a},t.prototype.wrapResult=function(s){var a=this._reporterState;return a.options.partial?{result:this.isError(s)?null:s,errors:a.errors}:s};function n(i,s){this.path=i,this.rethrow(s)}return r(n,Error),n.prototype.rethrow=function(s){if(this.message=s+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,n),!this.stack)try{throw new Error(this.message)}catch(a){this.stack=a.stack}return this},reporter}var buffer={},hasRequiredBuffer;function requireBuffer(){if(hasRequiredBuffer)return buffer;hasRequiredBuffer=1;var r=requireInherits_browser(),t=requireBase().Reporter,n=requireDist().Buffer;function i(a,l){if(t.call(this,l),!n.isBuffer(a)){this.error("Input not Buffer");return}this.base=a,this.offset=0,this.length=a.length}r(i,t),buffer.DecoderBuffer=i,i.prototype.save=function(){return{offset:this.offset,reporter:t.prototype.save.call(this)}},i.prototype.restore=function(l){var v=new i(this.base);return v.offset=l.offset,v.length=this.offset,this.offset=l.offset,t.prototype.restore.call(this,l.reporter),v},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,v){if(!(this.offset+l<=this.length))return this.error(v||"DecoderBuffer overrun");var on=new i(this.base);return on._reporterState=this._reporterState,on.offset=this.offset,on.length=this.offset+l,this.offset+=l,on},i.prototype.raw=function(l){return this.base.slice(l?l.offset:this.offset,this.length)};function s(a,l){if(Array.isArray(a))this.length=0,this.value=a.map(function(v){return v instanceof s||(v=new s(v,l)),this.length+=v.length,v},this);else if(typeof a=="number"){if(!(0<=a&&a<=255))return l.error("non-byte EncoderBuffer value");this.value=a,this.length=1}else if(typeof a=="string")this.value=a,this.length=n.byteLength(a);else if(n.isBuffer(a))this.value=a,this.length=a.length;else return l.error("Unsupported type: "+typeof a)}return buffer.EncoderBuffer=s,s.prototype.join=function(l,v){return l||(l=new n(this.length)),v||(v=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(on){on.join(l,v),v+=on.length}):(typeof this.value=="number"?l[v]=this.value:typeof this.value=="string"?l.write(this.value,v):n.isBuffer(this.value)&&this.value.copy(l,v),v+=this.length)),l},buffer}var node,hasRequiredNode;function requireNode(){if(hasRequiredNode)return node;hasRequiredNode=1;var r=requireBase().Reporter,t=requireBase().EncoderBuffer,n=requireBase().DecoderBuffer,i=requireMinimalisticAssert(),s=["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"],a=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),l=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function v(u,h){var Rn={};this._baseState=Rn,Rn.enc=u,Rn.parent=h||null,Rn.children=null,Rn.tag=null,Rn.args=null,Rn.reverseArgs=null,Rn.choice=null,Rn.optional=!1,Rn.any=!1,Rn.obj=!1,Rn.use=null,Rn.useDecoder=null,Rn.key=null,Rn.default=null,Rn.explicit=null,Rn.implicit=null,Rn.contains=null,Rn.parent||(Rn.children=[],this._wrap())}node=v;var on=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return v.prototype.clone=function(){var h=this._baseState,Rn={};on.forEach(function(Mn){Rn[Mn]=h[Mn]});var D=new this.constructor(Rn.parent);return D._baseState=Rn,D},v.prototype._wrap=function(){var h=this._baseState;a.forEach(function(Rn){this[Rn]=function(){var Mn=new this.constructor(this);return h.children.push(Mn),Mn[Rn].apply(Mn,arguments)}},this)},v.prototype._init=function(h){var Rn=this._baseState;i(Rn.parent===null),h.call(this),Rn.children=Rn.children.filter(function(D){return D._baseState.parent===this},this),i.equal(Rn.children.length,1,"Root node can have only one child")},v.prototype._useArgs=function(h){var Rn=this._baseState,D=h.filter(function(Mn){return Mn instanceof this.constructor},this);h=h.filter(function(Mn){return!(Mn instanceof this.constructor)},this),D.length!==0&&(i(Rn.children===null),Rn.children=D,D.forEach(function(Mn){Mn._baseState.parent=this},this)),h.length!==0&&(i(Rn.args===null),Rn.args=h,Rn.reverseArgs=h.map(function(Mn){if(typeof Mn!="object"||Mn.constructor!==Object)return Mn;var Ln={};return Object.keys(Mn).forEach(function(jn){jn==(jn|0)&&(jn|=0);var hi=Mn[jn];Ln[hi]=jn}),Ln}))},l.forEach(function(u){v.prototype[u]=function(){var Rn=this._baseState;throw new Error(u+" not implemented for encoding: "+Rn.enc)}}),s.forEach(function(u){v.prototype[u]=function(){var Rn=this._baseState,D=Array.prototype.slice.call(arguments);return i(Rn.tag===null),Rn.tag=u,this._useArgs(D),this}}),v.prototype.use=function(h){i(h);var Rn=this._baseState;return i(Rn.use===null),Rn.use=h,this},v.prototype.optional=function(){var h=this._baseState;return h.optional=!0,this},v.prototype.def=function(h){var Rn=this._baseState;return i(Rn.default===null),Rn.default=h,Rn.optional=!0,this},v.prototype.explicit=function(h){var Rn=this._baseState;return i(Rn.explicit===null&&Rn.implicit===null),Rn.explicit=h,this},v.prototype.implicit=function(h){var Rn=this._baseState;return i(Rn.explicit===null&&Rn.implicit===null),Rn.implicit=h,this},v.prototype.obj=function(){var h=this._baseState,Rn=Array.prototype.slice.call(arguments);return h.obj=!0,Rn.length!==0&&this._useArgs(Rn),this},v.prototype.key=function(h){var Rn=this._baseState;return i(Rn.key===null),Rn.key=h,this},v.prototype.any=function(){var h=this._baseState;return h.any=!0,this},v.prototype.choice=function(h){var Rn=this._baseState;return i(Rn.choice===null),Rn.choice=h,this._useArgs(Object.keys(h).map(function(D){return h[D]})),this},v.prototype.contains=function(h){var Rn=this._baseState;return i(Rn.use===null),Rn.contains=h,this},v.prototype._decode=function(h,Rn){var D=this._baseState;if(D.parent===null)return h.wrapResult(D.children[0]._decode(h,Rn));var Mn=D.default,Ln=!0,jn=null;if(D.key!==null&&(jn=h.enterKey(D.key)),D.optional){var hi=null;if(D.explicit!==null?hi=D.explicit:D.implicit!==null?hi=D.implicit:D.tag!==null&&(hi=D.tag),hi===null&&!D.any){var vi=h.save();try{D.choice===null?this._decodeGeneric(D.tag,h,Rn):this._decodeChoice(h,Rn),Ln=!0}catch{Ln=!1}h.restore(vi)}else if(Ln=this._peekTag(h,hi,D.any),h.isError(Ln))return Ln}var gi;if(D.obj&&Ln&&(gi=h.enterObject()),Ln){if(D.explicit!==null){var Ri=this._decodeTag(h,D.explicit);if(h.isError(Ri))return Ri;h=Ri}var Si=h.offset;if(D.use===null&&D.choice===null){if(D.any)var vi=h.save();var Ai=this._decodeTag(h,D.implicit!==null?D.implicit:D.tag,D.any);if(h.isError(Ai))return Ai;D.any?Mn=h.raw(vi):h=Ai}if(Rn&&Rn.track&&D.tag!==null&&Rn.track(h.path(),Si,h.length,"tagged"),Rn&&Rn.track&&D.tag!==null&&Rn.track(h.path(),h.offset,h.length,"content"),D.any?Mn=Mn:D.choice===null?Mn=this._decodeGeneric(D.tag,h,Rn):Mn=this._decodeChoice(h,Rn),h.isError(Mn))return Mn;if(!D.any&&D.choice===null&&D.children!==null&&D.children.forEach(function(Ci){Ci._decode(h,Rn)}),D.contains&&(D.tag==="octstr"||D.tag==="bitstr")){var Ii=new n(Mn);Mn=this._getUse(D.contains,h._reporterState.obj)._decode(Ii,Rn)}}return D.obj&&Ln&&(Mn=h.leaveObject(gi)),D.key!==null&&(Mn!==null||Ln===!0)?h.leaveKey(jn,D.key,Mn):jn!==null&&h.exitKey(jn),Mn},v.prototype._decodeGeneric=function(h,Rn,D){var Mn=this._baseState;return h==="seq"||h==="set"?null:h==="seqof"||h==="setof"?this._decodeList(Rn,h,Mn.args[0],D):/str$/.test(h)?this._decodeStr(Rn,h,D):h==="objid"&&Mn.args?this._decodeObjid(Rn,Mn.args[0],Mn.args[1],D):h==="objid"?this._decodeObjid(Rn,null,null,D):h==="gentime"||h==="utctime"?this._decodeTime(Rn,h,D):h==="null_"?this._decodeNull(Rn,D):h==="bool"?this._decodeBool(Rn,D):h==="objDesc"?this._decodeStr(Rn,h,D):h==="int"||h==="enum"?this._decodeInt(Rn,Mn.args&&Mn.args[0],D):Mn.use!==null?this._getUse(Mn.use,Rn._reporterState.obj)._decode(Rn,D):Rn.error("unknown tag: "+h)},v.prototype._getUse=function(h,Rn){var D=this._baseState;return D.useDecoder=this._use(h,Rn),i(D.useDecoder._baseState.parent===null),D.useDecoder=D.useDecoder._baseState.children[0],D.implicit!==D.useDecoder._baseState.implicit&&(D.useDecoder=D.useDecoder.clone(),D.useDecoder._baseState.implicit=D.implicit),D.useDecoder},v.prototype._decodeChoice=function(h,Rn){var D=this._baseState,Mn=null,Ln=!1;return Object.keys(D.choice).some(function(jn){var hi=h.save(),vi=D.choice[jn];try{var gi=vi._decode(h,Rn);if(h.isError(gi))return!1;Mn={type:jn,value:gi},Ln=!0}catch{return h.restore(hi),!1}return!0},this),Ln?Mn:h.error("Choice not matched")},v.prototype._createEncoderBuffer=function(h){return new t(h,this.reporter)},v.prototype._encode=function(h,Rn,D){var Mn=this._baseState;if(!(Mn.default!==null&&Mn.default===h)){var Ln=this._encodeValue(h,Rn,D);if(Ln!==void 0&&!this._skipDefault(Ln,Rn,D))return Ln}},v.prototype._encodeValue=function(h,Rn,D){var Mn=this._baseState;if(Mn.parent===null)return Mn.children[0]._encode(h,Rn||new r);var vi=null;if(this.reporter=Rn,Mn.optional&&h===void 0)if(Mn.default!==null)h=Mn.default;else return;var Ln=null,jn=!1;if(Mn.any)vi=this._createEncoderBuffer(h);else if(Mn.choice)vi=this._encodeChoice(h,Rn);else if(Mn.contains)Ln=this._getUse(Mn.contains,D)._encode(h,Rn),jn=!0;else if(Mn.children)Ln=Mn.children.map(function(Si){if(Si._baseState.tag==="null_")return Si._encode(null,Rn,h);if(Si._baseState.key===null)return Rn.error("Child should have a key");var Ai=Rn.enterKey(Si._baseState.key);if(typeof h!="object")return Rn.error("Child expected, but input is not object");var Ii=Si._encode(h[Si._baseState.key],Rn,h);return Rn.leaveKey(Ai),Ii},this).filter(function(Si){return Si}),Ln=this._createEncoderBuffer(Ln);else if(Mn.tag==="seqof"||Mn.tag==="setof"){if(!(Mn.args&&Mn.args.length===1))return Rn.error("Too many args for : "+Mn.tag);if(!Array.isArray(h))return Rn.error("seqof/setof, but data is not Array");var hi=this.clone();hi._baseState.implicit=null,Ln=this._createEncoderBuffer(h.map(function(Si){var Ai=this._baseState;return this._getUse(Ai.args[0],h)._encode(Si,Rn)},hi))}else Mn.use!==null?vi=this._getUse(Mn.use,D)._encode(h,Rn):(Ln=this._encodePrimitive(Mn.tag,h),jn=!0);var vi;if(!Mn.any&&Mn.choice===null){var gi=Mn.implicit!==null?Mn.implicit:Mn.tag,Ri=Mn.implicit===null?"universal":"context";gi===null?Mn.use===null&&Rn.error("Tag could be omitted only for .use()"):Mn.use===null&&(vi=this._encodeComposite(gi,jn,Ri,Ln))}return Mn.explicit!==null&&(vi=this._encodeComposite(Mn.explicit,!1,"context",vi)),vi},v.prototype._encodeChoice=function(h,Rn){var D=this._baseState,Mn=D.choice[h.type];return Mn||i(!1,h.type+" not found in "+JSON.stringify(Object.keys(D.choice))),Mn._encode(h.value,Rn)},v.prototype._encodePrimitive=function(h,Rn){var D=this._baseState;if(/str$/.test(h))return this._encodeStr(Rn,h);if(h==="objid"&&D.args)return this._encodeObjid(Rn,D.reverseArgs[0],D.args[1]);if(h==="objid")return this._encodeObjid(Rn,null,null);if(h==="gentime"||h==="utctime")return this._encodeTime(Rn,h);if(h==="null_")return this._encodeNull();if(h==="int"||h==="enum")return this._encodeInt(Rn,D.args&&D.reverseArgs[0]);if(h==="bool")return this._encodeBool(Rn);if(h==="objDesc")return this._encodeStr(Rn,h);throw new Error("Unsupported tag: "+h)},v.prototype._isNumstr=function(h){return/^[0-9 ]*$/.test(h)},v.prototype._isPrintstr=function(h){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(h)},node}var hasRequiredBase;function requireBase(){return hasRequiredBase||(hasRequiredBase=1,function(r){var t=r;t.Reporter=requireReporter().Reporter,t.DecoderBuffer=requireBuffer().DecoderBuffer,t.EncoderBuffer=requireBuffer().EncoderBuffer,t.Node=requireNode()}(base)),base}var constants={},der={},hasRequiredDer$2;function requireDer$2(){return hasRequiredDer$2||(hasRequiredDer$2=1,function(r){var t=requireConstants();r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=t._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=t._reverse(r.tag)}(der)),der}var hasRequiredConstants;function requireConstants(){return hasRequiredConstants||(hasRequiredConstants=1,function(r){var t=r;t._reverse=function(i){var s={};return Object.keys(i).forEach(function(a){(a|0)==a&&(a=a|0);var l=i[a];s[l]=a}),s},t.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(),t=requireAsn1$1(),n=t.base,i=t.bignum,s=t.constants.der;function a(u){this.enc="der",this.name=u.name,this.entity=u,this.tree=new l,this.tree._init(u.body)}der_1$1=a,a.prototype.decode=function(h,Rn){return h instanceof n.DecoderBuffer||(h=new n.DecoderBuffer(h,Rn)),this.tree._decode(h,Rn)};function l(u){n.Node.call(this,"der",u)}r(l,n.Node),l.prototype._peekTag=function(h,Rn,D){if(h.isEmpty())return!1;var Mn=h.save(),Ln=v(h,'Failed to peek tag: "'+Rn+'"');return h.isError(Ln)?Ln:(h.restore(Mn),Ln.tag===Rn||Ln.tagStr===Rn||Ln.tagStr+"of"===Rn||D)},l.prototype._decodeTag=function(h,Rn,D){var Mn=v(h,'Failed to decode tag of "'+Rn+'"');if(h.isError(Mn))return Mn;var Ln=on(h,Mn.primitive,'Failed to get length of "'+Rn+'"');if(h.isError(Ln))return Ln;if(!D&&Mn.tag!==Rn&&Mn.tagStr!==Rn&&Mn.tagStr+"of"!==Rn)return h.error('Failed to match tag: "'+Rn+'"');if(Mn.primitive||Ln!==null)return h.skip(Ln,'Failed to match body of: "'+Rn+'"');var jn=h.save(),hi=this._skipUntilEnd(h,'Failed to skip indefinite length body: "'+this.tag+'"');return h.isError(hi)?hi:(Ln=h.offset-jn.offset,h.restore(jn),h.skip(Ln,'Failed to match body of: "'+Rn+'"'))},l.prototype._skipUntilEnd=function(h,Rn){for(;;){var D=v(h,Rn);if(h.isError(D))return D;var Mn=on(h,D.primitive,Rn);if(h.isError(Mn))return Mn;var Ln;if(D.primitive||Mn!==null?Ln=h.skip(Mn):Ln=this._skipUntilEnd(h,Rn),h.isError(Ln))return Ln;if(D.tagStr==="end")break}},l.prototype._decodeList=function(h,Rn,D,Mn){for(var Ln=[];!h.isEmpty();){var jn=this._peekTag(h,"end");if(h.isError(jn))return jn;var hi=D.decode(h,"der",Mn);if(h.isError(hi)&&jn)break;Ln.push(hi)}return Ln},l.prototype._decodeStr=function(h,Rn){if(Rn==="bitstr"){var D=h.readUInt8();return h.isError(D)?D:{unused:D,data:h.raw()}}else if(Rn==="bmpstr"){var Mn=h.raw();if(Mn.length%2===1)return h.error("Decoding of string type: bmpstr length mismatch");for(var Ln="",jn=0;jn<Mn.length/2;jn++)Ln+=String.fromCharCode(Mn.readUInt16BE(jn*2));return Ln}else if(Rn==="numstr"){var hi=h.raw().toString("ascii");return this._isNumstr(hi)?hi:h.error("Decoding of string type: numstr unsupported characters")}else{if(Rn==="octstr")return h.raw();if(Rn==="objDesc")return h.raw();if(Rn==="printstr"){var vi=h.raw().toString("ascii");return this._isPrintstr(vi)?vi:h.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(Rn)?h.raw().toString():h.error("Decoding of string type: "+Rn+" unsupported")}},l.prototype._decodeObjid=function(h,Rn,D){for(var Mn,Ln=[],jn=0;!h.isEmpty();){var hi=h.readUInt8();jn<<=7,jn|=hi&127,(hi&128)===0&&(Ln.push(jn),jn=0)}hi&128&&Ln.push(jn);var vi=Ln[0]/40|0,gi=Ln[0]%40;if(D?Mn=Ln:Mn=[vi,gi].concat(Ln.slice(1)),Rn){var Ri=Rn[Mn.join(" ")];Ri===void 0&&(Ri=Rn[Mn.join(".")]),Ri!==void 0&&(Mn=Ri)}return Mn},l.prototype._decodeTime=function(h,Rn){var D=h.raw().toString();if(Rn==="gentime")var Mn=D.slice(0,4)|0,Ln=D.slice(4,6)|0,jn=D.slice(6,8)|0,hi=D.slice(8,10)|0,vi=D.slice(10,12)|0,gi=D.slice(12,14)|0;else if(Rn==="utctime"){var Mn=D.slice(0,2)|0,Ln=D.slice(2,4)|0,jn=D.slice(4,6)|0,hi=D.slice(6,8)|0,vi=D.slice(8,10)|0,gi=D.slice(10,12)|0;Mn<70?Mn=2e3+Mn:Mn=1900+Mn}else return h.error("Decoding "+Rn+" time is not supported yet");return Date.UTC(Mn,Ln-1,jn,hi,vi,gi,0)},l.prototype._decodeNull=function(h){return null},l.prototype._decodeBool=function(h){var Rn=h.readUInt8();return h.isError(Rn)?Rn:Rn!==0},l.prototype._decodeInt=function(h,Rn){var D=h.raw(),Mn=new i(D);return Rn&&(Mn=Rn[Mn.toString(10)]||Mn),Mn},l.prototype._use=function(h,Rn){return typeof h=="function"&&(h=h(Rn)),h._getDecoder("der").tree};function v(u,h){var Rn=u.readUInt8(h);if(u.isError(Rn))return Rn;var D=s.tagClass[Rn>>6],Mn=(Rn&32)===0;if((Rn&31)===31){var Ln=Rn;for(Rn=0;(Ln&128)===128;){if(Ln=u.readUInt8(h),u.isError(Ln))return Ln;Rn<<=7,Rn|=Ln&127}}else Rn&=31;var jn=s.tag[Rn];return{cls:D,primitive:Mn,tag:Rn,tagStr:jn}}function on(u,h,Rn){var D=u.readUInt8(Rn);if(u.isError(D))return D;if(!h&&D===128)return null;if((D&128)===0)return D;var Mn=D&127;if(Mn>4)return u.error("length octect is too long");D=0;for(var Ln=0;Ln<Mn;Ln++){D<<=8;var jn=u.readUInt8(Rn);if(u.isError(jn))return jn;D|=jn}return D}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(),t=requireDist().Buffer,n=requireDer$1();function i(s){n.call(this,s),this.enc="pem"}return r(i,n),pem$1=i,i.prototype.decode=function(a,l){for(var v=a.toString().split(/[\r\n]+/g),on=l.label.toUpperCase(),u=/^-----(BEGIN|END) ([^-]+)-----$/,h=-1,Rn=-1,D=0;D<v.length;D++){var Mn=v[D].match(u);if(Mn!==null&&Mn[2]===on)if(h===-1){if(Mn[1]!=="BEGIN")break;h=D}else{if(Mn[1]!=="END")break;Rn=D;break}}if(h===-1||Rn===-1)throw new Error("PEM section not found for: "+on);var Ln=v.slice(h+1,Rn).join("");Ln.replace(/[^a-z0-9\+\/=]+/gi,"");var jn=new t(Ln,"base64");return n.prototype.decode.call(this,jn,l)},pem$1}var hasRequiredDecoders;function requireDecoders(){return hasRequiredDecoders||(hasRequiredDecoders=1,function(r){var t=r;t.der=requireDer$1(),t.pem=requirePem$1()}(decoders)),decoders}var encoders={},der_1,hasRequiredDer;function requireDer(){if(hasRequiredDer)return der_1;hasRequiredDer=1;var r=requireInherits_browser(),t=requireDist().Buffer,n=requireAsn1$1(),i=n.base,s=n.constants.der;function a(u){this.enc="der",this.name=u.name,this.entity=u,this.tree=new l,this.tree._init(u.body)}der_1=a,a.prototype.encode=function(h,Rn){return this.tree._encode(h,Rn).join()};function l(u){i.Node.call(this,"der",u)}r(l,i.Node),l.prototype._encodeComposite=function(h,Rn,D,Mn){var Ln=on(h,Rn,D,this.reporter);if(Mn.length<128){var vi=new t(2);return vi[0]=Ln,vi[1]=Mn.length,this._createEncoderBuffer([vi,Mn])}for(var jn=1,hi=Mn.length;hi>=256;hi>>=8)jn++;var vi=new t(2+jn);vi[0]=Ln,vi[1]=128|jn;for(var hi=1+jn,gi=Mn.length;gi>0;hi--,gi>>=8)vi[hi]=gi&255;return this._createEncoderBuffer([vi,Mn])},l.prototype._encodeStr=function(h,Rn){if(Rn==="bitstr")return this._createEncoderBuffer([h.unused|0,h.data]);if(Rn==="bmpstr"){for(var D=new t(h.length*2),Mn=0;Mn<h.length;Mn++)D.writeUInt16BE(h.charCodeAt(Mn),Mn*2);return this._createEncoderBuffer(D)}else return Rn==="numstr"?this._isNumstr(h)?this._createEncoderBuffer(h):this.reporter.error("Encoding of string type: numstr supports only digits and space"):Rn==="printstr"?this._isPrintstr(h)?this._createEncoderBuffer(h):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(Rn)?this._createEncoderBuffer(h):Rn==="objDesc"?this._createEncoderBuffer(h):this.reporter.error("Encoding of string type: "+Rn+" unsupported")},l.prototype._encodeObjid=function(h,Rn,D){if(typeof h=="string"){if(!Rn)return this.reporter.error("string objid given, but no values map found");if(!Rn.hasOwnProperty(h))return this.reporter.error("objid not found in values map");h=Rn[h].split(/[\s\.]+/g);for(var Mn=0;Mn<h.length;Mn++)h[Mn]|=0}else if(Array.isArray(h)){h=h.slice();for(var Mn=0;Mn<h.length;Mn++)h[Mn]|=0}if(!Array.isArray(h))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(h));if(!D){if(h[1]>=40)return this.reporter.error("Second objid identifier OOB");h.splice(0,2,h[0]*40+h[1])}for(var Ln=0,Mn=0;Mn<h.length;Mn++){var jn=h[Mn];for(Ln++;jn>=128;jn>>=7)Ln++}for(var hi=new t(Ln),vi=hi.length-1,Mn=h.length-1;Mn>=0;Mn--){var jn=h[Mn];for(hi[vi--]=jn&127;(jn>>=7)>0;)hi[vi--]=128|jn&127}return this._createEncoderBuffer(hi)};function v(u){return u<10?"0"+u:u}l.prototype._encodeTime=function(h,Rn){var D,Mn=new Date(h);return Rn==="gentime"?D=[v(Mn.getFullYear()),v(Mn.getUTCMonth()+1),v(Mn.getUTCDate()),v(Mn.getUTCHours()),v(Mn.getUTCMinutes()),v(Mn.getUTCSeconds()),"Z"].join(""):Rn==="utctime"?D=[v(Mn.getFullYear()%100),v(Mn.getUTCMonth()+1),v(Mn.getUTCDate()),v(Mn.getUTCHours()),v(Mn.getUTCMinutes()),v(Mn.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+Rn+" time is not supported yet"),this._encodeStr(D,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(h,Rn){if(typeof h=="string"){if(!Rn)return this.reporter.error("String int or enum given, but no values map");if(!Rn.hasOwnProperty(h))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(h));h=Rn[h]}if(typeof h!="number"&&!t.isBuffer(h)){var D=h.toArray();!h.sign&&D[0]&128&&D.unshift(0),h=new t(D)}if(t.isBuffer(h)){var Mn=h.length;h.length===0&&Mn++;var jn=new t(Mn);return h.copy(jn),h.length===0&&(jn[0]=0),this._createEncoderBuffer(jn)}if(h<128)return this._createEncoderBuffer(h);if(h<256)return this._createEncoderBuffer([0,h]);for(var Mn=1,Ln=h;Ln>=256;Ln>>=8)Mn++;for(var jn=new Array(Mn),Ln=jn.length-1;Ln>=0;Ln--)jn[Ln]=h&255,h>>=8;return jn[0]&128&&jn.unshift(0),this._createEncoderBuffer(new t(jn))},l.prototype._encodeBool=function(h){return this._createEncoderBuffer(h?255:0)},l.prototype._use=function(h,Rn){return typeof h=="function"&&(h=h(Rn)),h._getEncoder("der").tree},l.prototype._skipDefault=function(h,Rn,D){var Mn=this._baseState,Ln;if(Mn.default===null)return!1;var jn=h.join();if(Mn.defaultBuffer===void 0&&(Mn.defaultBuffer=this._encodeValue(Mn.default,Rn,D).join()),jn.length!==Mn.defaultBuffer.length)return!1;for(Ln=0;Ln<jn.length;Ln++)if(jn[Ln]!==Mn.defaultBuffer[Ln])return!1;return!0};function on(u,h,Rn,D){var Mn;if(u==="seqof"?u="seq":u==="setof"&&(u="set"),s.tagByName.hasOwnProperty(u))Mn=s.tagByName[u];else if(typeof u=="number"&&(u|0)===u)Mn=u;else return D.error("Unknown tag: "+u);return Mn>=31?D.error("Multi-octet tag encoding unsupported"):(h||(Mn|=32),Mn|=s.tagClassByName[Rn||"universal"]<<6,Mn)}return der_1}var pem,hasRequiredPem;function requirePem(){if(hasRequiredPem)return pem;hasRequiredPem=1;var r=requireInherits_browser(),t=requireDer();function n(i){t.call(this,i),this.enc="pem"}return r(n,t),pem=n,n.prototype.encode=function(s,a){for(var l=t.prototype.encode.call(this,s),v=l.toString("base64"),on=["-----BEGIN "+a.label+"-----"],u=0;u<v.length;u+=64)on.push(v.slice(u,u+64));return on.push("-----END "+a.label+"-----"),on.join(`
|
|
@@ -114,7 +114,7 @@ https://github.com/browserify/crypto-browserify`)},cryptoBrowserify.constants={D
|
|
|
114
114
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
115
115
|
* derived from CryptoJS.mode.CTR
|
|
116
116
|
* Jan Hruby jhruby.web@gmail.com
|
|
117
|
-
*/return n.mode.CTRGladman=function(){var i=n.lib.BlockCipherMode.extend();function s(v){if((v>>24&255)===255){var on=v>>16&255,u=v>>8&255,h=v&255;on===255?(on=0,u===255?(u=0,h===255?h=0:++h):++u):++on,v=0,v+=on<<16,v+=u<<8,v+=h}else v+=1<<24;return v}function a(v){return(v[0]=s(v[0]))===0&&(v[1]=s(v[1])),v}var l=i.Encryptor=i.extend({processBlock:function(v,on){var u=this._cipher,h=u.blockSize,Rn=this._iv,D=this._counter;Rn&&(D=this._counter=Rn.slice(0),this._iv=void 0),a(D);var Mn=D.slice(0);u.encryptBlock(Mn,0);for(var Ln=0;Ln<h;Ln++)v[on+Ln]^=Mn[Ln]}});return i.Decryptor=l,i}(),n.mode.CTRGladman})}(modeCtrGladman$1)),modeCtrGladman$1.exports}var modeOfb$1={exports:{}},modeOfb=modeOfb$1.exports,hasRequiredModeOfb;function requireModeOfb(){return hasRequiredModeOfb||(hasRequiredModeOfb=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(modeOfb,function(n){return n.mode.OFB=function(){var i=n.lib.BlockCipherMode.extend(),s=i.Encryptor=i.extend({processBlock:function(a,l){var v=this._cipher,on=v.blockSize,u=this._iv,h=this._keystream;u&&(h=this._keystream=u.slice(0),this._iv=void 0),v.encryptBlock(h,0);for(var Rn=0;Rn<on;Rn++)a[l+Rn]^=h[Rn]}});return i.Decryptor=s,i}(),n.mode.OFB})}(modeOfb$1)),modeOfb$1.exports}var modeEcb$1={exports:{}},modeEcb=modeEcb$1.exports,hasRequiredModeEcb;function requireModeEcb(){return hasRequiredModeEcb||(hasRequiredModeEcb=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(modeEcb,function(n){return n.mode.ECB=function(){var i=n.lib.BlockCipherMode.extend();return i.Encryptor=i.extend({processBlock:function(s,a){this._cipher.encryptBlock(s,a)}}),i.Decryptor=i.extend({processBlock:function(s,a){this._cipher.decryptBlock(s,a)}}),i}(),n.mode.ECB})}(modeEcb$1)),modeEcb$1.exports}var padAnsix923$1={exports:{}},padAnsix923=padAnsix923$1.exports,hasRequiredPadAnsix923;function requirePadAnsix923(){return hasRequiredPadAnsix923||(hasRequiredPadAnsix923=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(padAnsix923,function(n){return n.pad.AnsiX923={pad:function(i,s){var a=i.sigBytes,l=s*4,v=l-a%l,on=a+v-1;i.clamp(),i.words[on>>>2]|=v<<24-on%4*8,i.sigBytes+=v},unpad:function(i){var s=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=s}},n.pad.Ansix923})}(padAnsix923$1)),padAnsix923$1.exports}var padIso10126$1={exports:{}},padIso10126=padIso10126$1.exports,hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(padIso10126,function(n){return n.pad.Iso10126={pad:function(i,s){var a=s*4,l=a-i.sigBytes%a;i.concat(n.lib.WordArray.random(l-1)).concat(n.lib.WordArray.create([l<<24],1))},unpad:function(i){var s=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=s}},n.pad.Iso10126})}(padIso10126$1)),padIso10126$1.exports}var padIso97971$1={exports:{}},padIso97971=padIso97971$1.exports,hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(padIso97971,function(n){return n.pad.Iso97971={pad:function(i,s){i.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(i,s)},unpad:function(i){n.pad.ZeroPadding.unpad(i),i.sigBytes--}},n.pad.Iso97971})}(padIso97971$1)),padIso97971$1.exports}var padZeropadding$1={exports:{}},padZeropadding=padZeropadding$1.exports,hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(padZeropadding,function(n){return n.pad.ZeroPadding={pad:function(i,s){var a=s*4;i.clamp(),i.sigBytes+=a-(i.sigBytes%a||a)},unpad:function(i){for(var s=i.words,a=i.sigBytes-1,a=i.sigBytes-1;a>=0;a--)if(s[a>>>2]>>>24-a%4*8&255){i.sigBytes=a+1;break}}},n.pad.ZeroPadding})}(padZeropadding$1)),padZeropadding$1.exports}var padNopadding$1={exports:{}},padNopadding=padNopadding$1.exports,hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(padNopadding,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(padNopadding$1)),padNopadding$1.exports}var formatHex$1={exports:{}},formatHex=formatHex$1.exports,hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(formatHex,function(n){return function(i){var s=n,a=s.lib,l=a.CipherParams,v=s.enc,on=v.Hex,u=s.format;u.Hex={stringify:function(h){return h.ciphertext.toString(on)},parse:function(h){var Rn=on.parse(h);return l.create({ciphertext:Rn})}}}(),n.format.Hex})}(formatHex$1)),formatHex$1.exports}var aes$1={exports:{}},aes=aes$1.exports,hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(aes,function(n){return function(){var i=n,s=i.lib,a=s.BlockCipher,l=i.algo,v=[],on=[],u=[],h=[],Rn=[],D=[],Mn=[],Ln=[],jn=[],hi=[];(function(){for(var Ri=[],Si=0;Si<256;Si++)Si<128?Ri[Si]=Si<<1:Ri[Si]=Si<<1^283;for(var Ai=0,Ii=0,Si=0;Si<256;Si++){var Ni=Ii^Ii<<1^Ii<<2^Ii<<3^Ii<<4;Ni=Ni>>>8^Ni&255^99,v[Ai]=Ni,on[Ni]=Ai;var Ci=Ri[Ai],Oi=Ri[Ci],ki=Ri[Oi],Fi=Ri[Ni]*257^Ni*16843008;u[Ai]=Fi<<24|Fi>>>8,h[Ai]=Fi<<16|Fi>>>16,Rn[Ai]=Fi<<8|Fi>>>24,D[Ai]=Fi;var Fi=ki*16843009^Oi*65537^Ci*257^Ai*16843008;Mn[Ni]=Fi<<24|Fi>>>8,Ln[Ni]=Fi<<16|Fi>>>16,jn[Ni]=Fi<<8|Fi>>>24,hi[Ni]=Fi,Ai?(Ai=Ci^Ri[Ri[Ri[ki^Ci]]],Ii^=Ri[Ri[Ii]]):Ai=Ii=1}})();var vi=[0,1,2,4,8,16,32,64,128,27,54],gi=l.AES=a.extend({_doReset:function(){var Ri;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var Si=this._keyPriorReset=this._key,Ai=Si.words,Ii=Si.sigBytes/4,Ni=this._nRounds=Ii+6,Ci=(Ni+1)*4,Oi=this._keySchedule=[],ki=0;ki<Ci;ki++)ki<Ii?Oi[ki]=Ai[ki]:(Ri=Oi[ki-1],ki%Ii?Ii>6&&ki%Ii==4&&(Ri=v[Ri>>>24]<<24|v[Ri>>>16&255]<<16|v[Ri>>>8&255]<<8|v[Ri&255]):(Ri=Ri<<8|Ri>>>24,Ri=v[Ri>>>24]<<24|v[Ri>>>16&255]<<16|v[Ri>>>8&255]<<8|v[Ri&255],Ri^=vi[ki/Ii|0]<<24),Oi[ki]=Oi[ki-Ii]^Ri);for(var Fi=this._invKeySchedule=[],bi=0;bi<Ci;bi++){var ki=Ci-bi;if(bi%4)var Ri=Oi[ki];else var Ri=Oi[ki-4];bi<4||ki<=4?Fi[bi]=Ri:Fi[bi]=Mn[v[Ri>>>24]]^Ln[v[Ri>>>16&255]]^jn[v[Ri>>>8&255]]^hi[v[Ri&255]]}}},encryptBlock:function(Ri,Si){this._doCryptBlock(Ri,Si,this._keySchedule,u,h,Rn,D,v)},decryptBlock:function(Ri,Si){var Ai=Ri[Si+1];Ri[Si+1]=Ri[Si+3],Ri[Si+3]=Ai,this._doCryptBlock(Ri,Si,this._invKeySchedule,Mn,Ln,jn,hi,on);var Ai=Ri[Si+1];Ri[Si+1]=Ri[Si+3],Ri[Si+3]=Ai},_doCryptBlock:function(Ri,Si,Ai,Ii,Ni,Ci,Oi,ki){for(var Fi=this._nRounds,bi=Ri[Si]^Ai[0],Yn=Ri[Si+1]^Ai[1],In=Ri[Si+2]^Ai[2],Hn=Ri[Si+3]^Ai[3],yi=4,mi=1;mi<Fi;mi++){var _i=Ii[bi>>>24]^Ni[Yn>>>16&255]^Ci[In>>>8&255]^Oi[Hn&255]^Ai[yi++],wi=Ii[Yn>>>24]^Ni[In>>>16&255]^Ci[Hn>>>8&255]^Oi[bi&255]^Ai[yi++],Ei=Ii[In>>>24]^Ni[Hn>>>16&255]^Ci[bi>>>8&255]^Oi[Yn&255]^Ai[yi++],xi=Ii[Hn>>>24]^Ni[bi>>>16&255]^Ci[Yn>>>8&255]^Oi[In&255]^Ai[yi++];bi=_i,Yn=wi,In=Ei,Hn=xi}var _i=(ki[bi>>>24]<<24|ki[Yn>>>16&255]<<16|ki[In>>>8&255]<<8|ki[Hn&255])^Ai[yi++],wi=(ki[Yn>>>24]<<24|ki[In>>>16&255]<<16|ki[Hn>>>8&255]<<8|ki[bi&255])^Ai[yi++],Ei=(ki[In>>>24]<<24|ki[Hn>>>16&255]<<16|ki[bi>>>8&255]<<8|ki[Yn&255])^Ai[yi++],xi=(ki[Hn>>>24]<<24|ki[bi>>>16&255]<<16|ki[Yn>>>8&255]<<8|ki[In&255])^Ai[yi++];Ri[Si]=_i,Ri[Si+1]=wi,Ri[Si+2]=Ei,Ri[Si+3]=xi},keySize:256/32});i.AES=a._createHelper(gi)}(),n.AES})}(aes$1)),aes$1.exports}var tripledes$1={exports:{}},tripledes=tripledes$1.exports,hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(tripledes,function(n){return function(){var i=n,s=i.lib,a=s.WordArray,l=s.BlockCipher,v=i.algo,on=[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],h=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],Rn=[{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}],D=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],Mn=v.DES=l.extend({_doReset:function(){for(var vi=this._key,gi=vi.words,Ri=[],Si=0;Si<56;Si++){var Ai=on[Si]-1;Ri[Si]=gi[Ai>>>5]>>>31-Ai%32&1}for(var Ii=this._subKeys=[],Ni=0;Ni<16;Ni++){for(var Ci=Ii[Ni]=[],Oi=h[Ni],Si=0;Si<24;Si++)Ci[Si/6|0]|=Ri[(u[Si]-1+Oi)%28]<<31-Si%6,Ci[4+(Si/6|0)]|=Ri[28+(u[Si+24]-1+Oi)%28]<<31-Si%6;Ci[0]=Ci[0]<<1|Ci[0]>>>31;for(var Si=1;Si<7;Si++)Ci[Si]=Ci[Si]>>>(Si-1)*4+3;Ci[7]=Ci[7]<<5|Ci[7]>>>27}for(var ki=this._invSubKeys=[],Si=0;Si<16;Si++)ki[Si]=Ii[15-Si]},encryptBlock:function(vi,gi){this._doCryptBlock(vi,gi,this._subKeys)},decryptBlock:function(vi,gi){this._doCryptBlock(vi,gi,this._invSubKeys)},_doCryptBlock:function(vi,gi,Ri){this._lBlock=vi[gi],this._rBlock=vi[gi+1],Ln.call(this,4,252645135),Ln.call(this,16,65535),jn.call(this,2,858993459),jn.call(this,8,16711935),Ln.call(this,1,1431655765);for(var Si=0;Si<16;Si++){for(var Ai=Ri[Si],Ii=this._lBlock,Ni=this._rBlock,Ci=0,Oi=0;Oi<8;Oi++)Ci|=Rn[Oi][((Ni^Ai[Oi])&D[Oi])>>>0];this._lBlock=Ni,this._rBlock=Ii^Ci}var ki=this._lBlock;this._lBlock=this._rBlock,this._rBlock=ki,Ln.call(this,1,1431655765),jn.call(this,8,16711935),jn.call(this,2,858993459),Ln.call(this,16,65535),Ln.call(this,4,252645135),vi[gi]=this._lBlock,vi[gi+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function Ln(vi,gi){var Ri=(this._lBlock>>>vi^this._rBlock)&gi;this._rBlock^=Ri,this._lBlock^=Ri<<vi}function jn(vi,gi){var Ri=(this._rBlock>>>vi^this._lBlock)&gi;this._lBlock^=Ri,this._rBlock^=Ri<<vi}i.DES=l._createHelper(Mn);var hi=v.TripleDES=l.extend({_doReset:function(){var vi=this._key,gi=vi.words;if(gi.length!==2&&gi.length!==4&&gi.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var Ri=gi.slice(0,2),Si=gi.length<4?gi.slice(0,2):gi.slice(2,4),Ai=gi.length<6?gi.slice(0,2):gi.slice(4,6);this._des1=Mn.createEncryptor(a.create(Ri)),this._des2=Mn.createEncryptor(a.create(Si)),this._des3=Mn.createEncryptor(a.create(Ai))},encryptBlock:function(vi,gi){this._des1.encryptBlock(vi,gi),this._des2.decryptBlock(vi,gi),this._des3.encryptBlock(vi,gi)},decryptBlock:function(vi,gi){this._des3.decryptBlock(vi,gi),this._des2.encryptBlock(vi,gi),this._des1.decryptBlock(vi,gi)},keySize:192/32,ivSize:64/32,blockSize:64/32});i.TripleDES=l._createHelper(hi)}(),n.TripleDES})}(tripledes$1)),tripledes$1.exports}var rc4$1={exports:{}},rc4=rc4$1.exports,hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(rc4,function(n){return function(){var i=n,s=i.lib,a=s.StreamCipher,l=i.algo,v=l.RC4=a.extend({_doReset:function(){for(var h=this._key,Rn=h.words,D=h.sigBytes,Mn=this._S=[],Ln=0;Ln<256;Ln++)Mn[Ln]=Ln;for(var Ln=0,jn=0;Ln<256;Ln++){var hi=Ln%D,vi=Rn[hi>>>2]>>>24-hi%4*8&255;jn=(jn+Mn[Ln]+vi)%256;var gi=Mn[Ln];Mn[Ln]=Mn[jn],Mn[jn]=gi}this._i=this._j=0},_doProcessBlock:function(h,Rn){h[Rn]^=on.call(this)},keySize:256/32,ivSize:0});function on(){for(var h=this._S,Rn=this._i,D=this._j,Mn=0,Ln=0;Ln<4;Ln++){Rn=(Rn+1)%256,D=(D+h[Rn])%256;var jn=h[Rn];h[Rn]=h[D],h[D]=jn,Mn|=h[(h[Rn]+h[D])%256]<<24-Ln*8}return this._i=Rn,this._j=D,Mn}i.RC4=a._createHelper(v);var u=l.RC4Drop=v.extend({cfg:v.cfg.extend({drop:192}),_doReset:function(){v._doReset.call(this);for(var h=this.cfg.drop;h>0;h--)on.call(this)}});i.RC4Drop=a._createHelper(u)}(),n.RC4})}(rc4$1)),rc4$1.exports}var rabbit$1={exports:{}},rabbit=rabbit$1.exports,hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(rabbit,function(n){return function(){var i=n,s=i.lib,a=s.StreamCipher,l=i.algo,v=[],on=[],u=[],h=l.Rabbit=a.extend({_doReset:function(){for(var D=this._key.words,Mn=this.cfg.iv,Ln=0;Ln<4;Ln++)D[Ln]=(D[Ln]<<8|D[Ln]>>>24)&16711935|(D[Ln]<<24|D[Ln]>>>8)&4278255360;var jn=this._X=[D[0],D[3]<<16|D[2]>>>16,D[1],D[0]<<16|D[3]>>>16,D[2],D[1]<<16|D[0]>>>16,D[3],D[2]<<16|D[1]>>>16],hi=this._C=[D[2]<<16|D[2]>>>16,D[0]&4294901760|D[1]&65535,D[3]<<16|D[3]>>>16,D[1]&4294901760|D[2]&65535,D[0]<<16|D[0]>>>16,D[2]&4294901760|D[3]&65535,D[1]<<16|D[1]>>>16,D[3]&4294901760|D[0]&65535];this._b=0;for(var Ln=0;Ln<4;Ln++)Rn.call(this);for(var Ln=0;Ln<8;Ln++)hi[Ln]^=jn[Ln+4&7];if(Mn){var vi=Mn.words,gi=vi[0],Ri=vi[1],Si=(gi<<8|gi>>>24)&16711935|(gi<<24|gi>>>8)&4278255360,Ai=(Ri<<8|Ri>>>24)&16711935|(Ri<<24|Ri>>>8)&4278255360,Ii=Si>>>16|Ai&4294901760,Ni=Ai<<16|Si&65535;hi[0]^=Si,hi[1]^=Ii,hi[2]^=Ai,hi[3]^=Ni,hi[4]^=Si,hi[5]^=Ii,hi[6]^=Ai,hi[7]^=Ni;for(var Ln=0;Ln<4;Ln++)Rn.call(this)}},_doProcessBlock:function(D,Mn){var Ln=this._X;Rn.call(this),v[0]=Ln[0]^Ln[5]>>>16^Ln[3]<<16,v[1]=Ln[2]^Ln[7]>>>16^Ln[5]<<16,v[2]=Ln[4]^Ln[1]>>>16^Ln[7]<<16,v[3]=Ln[6]^Ln[3]>>>16^Ln[1]<<16;for(var jn=0;jn<4;jn++)v[jn]=(v[jn]<<8|v[jn]>>>24)&16711935|(v[jn]<<24|v[jn]>>>8)&4278255360,D[Mn+jn]^=v[jn]},blockSize:128/32,ivSize:64/32});function Rn(){for(var D=this._X,Mn=this._C,Ln=0;Ln<8;Ln++)on[Ln]=Mn[Ln];Mn[0]=Mn[0]+1295307597+this._b|0,Mn[1]=Mn[1]+3545052371+(Mn[0]>>>0<on[0]>>>0?1:0)|0,Mn[2]=Mn[2]+886263092+(Mn[1]>>>0<on[1]>>>0?1:0)|0,Mn[3]=Mn[3]+1295307597+(Mn[2]>>>0<on[2]>>>0?1:0)|0,Mn[4]=Mn[4]+3545052371+(Mn[3]>>>0<on[3]>>>0?1:0)|0,Mn[5]=Mn[5]+886263092+(Mn[4]>>>0<on[4]>>>0?1:0)|0,Mn[6]=Mn[6]+1295307597+(Mn[5]>>>0<on[5]>>>0?1:0)|0,Mn[7]=Mn[7]+3545052371+(Mn[6]>>>0<on[6]>>>0?1:0)|0,this._b=Mn[7]>>>0<on[7]>>>0?1:0;for(var Ln=0;Ln<8;Ln++){var jn=D[Ln]+Mn[Ln],hi=jn&65535,vi=jn>>>16,gi=((hi*hi>>>17)+hi*vi>>>15)+vi*vi,Ri=((jn&4294901760)*jn|0)+((jn&65535)*jn|0);u[Ln]=gi^Ri}D[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,D[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,D[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,D[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,D[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,D[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,D[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,D[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}i.Rabbit=a._createHelper(h)}(),n.Rabbit})}(rabbit$1)),rabbit$1.exports}var rabbitLegacy$1={exports:{}},rabbitLegacy=rabbitLegacy$1.exports,hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(rabbitLegacy,function(n){return function(){var i=n,s=i.lib,a=s.StreamCipher,l=i.algo,v=[],on=[],u=[],h=l.RabbitLegacy=a.extend({_doReset:function(){var D=this._key.words,Mn=this.cfg.iv,Ln=this._X=[D[0],D[3]<<16|D[2]>>>16,D[1],D[0]<<16|D[3]>>>16,D[2],D[1]<<16|D[0]>>>16,D[3],D[2]<<16|D[1]>>>16],jn=this._C=[D[2]<<16|D[2]>>>16,D[0]&4294901760|D[1]&65535,D[3]<<16|D[3]>>>16,D[1]&4294901760|D[2]&65535,D[0]<<16|D[0]>>>16,D[2]&4294901760|D[3]&65535,D[1]<<16|D[1]>>>16,D[3]&4294901760|D[0]&65535];this._b=0;for(var hi=0;hi<4;hi++)Rn.call(this);for(var hi=0;hi<8;hi++)jn[hi]^=Ln[hi+4&7];if(Mn){var vi=Mn.words,gi=vi[0],Ri=vi[1],Si=(gi<<8|gi>>>24)&16711935|(gi<<24|gi>>>8)&4278255360,Ai=(Ri<<8|Ri>>>24)&16711935|(Ri<<24|Ri>>>8)&4278255360,Ii=Si>>>16|Ai&4294901760,Ni=Ai<<16|Si&65535;jn[0]^=Si,jn[1]^=Ii,jn[2]^=Ai,jn[3]^=Ni,jn[4]^=Si,jn[5]^=Ii,jn[6]^=Ai,jn[7]^=Ni;for(var hi=0;hi<4;hi++)Rn.call(this)}},_doProcessBlock:function(D,Mn){var Ln=this._X;Rn.call(this),v[0]=Ln[0]^Ln[5]>>>16^Ln[3]<<16,v[1]=Ln[2]^Ln[7]>>>16^Ln[5]<<16,v[2]=Ln[4]^Ln[1]>>>16^Ln[7]<<16,v[3]=Ln[6]^Ln[3]>>>16^Ln[1]<<16;for(var jn=0;jn<4;jn++)v[jn]=(v[jn]<<8|v[jn]>>>24)&16711935|(v[jn]<<24|v[jn]>>>8)&4278255360,D[Mn+jn]^=v[jn]},blockSize:128/32,ivSize:64/32});function Rn(){for(var D=this._X,Mn=this._C,Ln=0;Ln<8;Ln++)on[Ln]=Mn[Ln];Mn[0]=Mn[0]+1295307597+this._b|0,Mn[1]=Mn[1]+3545052371+(Mn[0]>>>0<on[0]>>>0?1:0)|0,Mn[2]=Mn[2]+886263092+(Mn[1]>>>0<on[1]>>>0?1:0)|0,Mn[3]=Mn[3]+1295307597+(Mn[2]>>>0<on[2]>>>0?1:0)|0,Mn[4]=Mn[4]+3545052371+(Mn[3]>>>0<on[3]>>>0?1:0)|0,Mn[5]=Mn[5]+886263092+(Mn[4]>>>0<on[4]>>>0?1:0)|0,Mn[6]=Mn[6]+1295307597+(Mn[5]>>>0<on[5]>>>0?1:0)|0,Mn[7]=Mn[7]+3545052371+(Mn[6]>>>0<on[6]>>>0?1:0)|0,this._b=Mn[7]>>>0<on[7]>>>0?1:0;for(var Ln=0;Ln<8;Ln++){var jn=D[Ln]+Mn[Ln],hi=jn&65535,vi=jn>>>16,gi=((hi*hi>>>17)+hi*vi>>>15)+vi*vi,Ri=((jn&4294901760)*jn|0)+((jn&65535)*jn|0);u[Ln]=gi^Ri}D[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,D[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,D[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,D[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,D[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,D[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,D[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,D[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}i.RabbitLegacy=a._createHelper(h)}(),n.RabbitLegacy})}(rabbitLegacy$1)),rabbitLegacy$1.exports}var blowfish$1={exports:{}},blowfish=blowfish$1.exports,hasRequiredBlowfish;function requireBlowfish(){return hasRequiredBlowfish||(hasRequiredBlowfish=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(blowfish,function(n){return function(){var i=n,s=i.lib,a=s.BlockCipher,l=i.algo;const v=16,on=[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 h={pbox:[],sbox:[]};function Rn(hi,vi){let gi=vi>>24&255,Ri=vi>>16&255,Si=vi>>8&255,Ai=vi&255,Ii=hi.sbox[0][gi]+hi.sbox[1][Ri];return Ii=Ii^hi.sbox[2][Si],Ii=Ii+hi.sbox[3][Ai],Ii}function D(hi,vi,gi){let Ri=vi,Si=gi,Ai;for(let Ii=0;Ii<v;++Ii)Ri=Ri^hi.pbox[Ii],Si=Rn(hi,Ri)^Si,Ai=Ri,Ri=Si,Si=Ai;return Ai=Ri,Ri=Si,Si=Ai,Si=Si^hi.pbox[v],Ri=Ri^hi.pbox[v+1],{left:Ri,right:Si}}function Mn(hi,vi,gi){let Ri=vi,Si=gi,Ai;for(let Ii=v+1;Ii>1;--Ii)Ri=Ri^hi.pbox[Ii],Si=Rn(hi,Ri)^Si,Ai=Ri,Ri=Si,Si=Ai;return Ai=Ri,Ri=Si,Si=Ai,Si=Si^hi.pbox[1],Ri=Ri^hi.pbox[0],{left:Ri,right:Si}}function Ln(hi,vi,gi){for(let Ni=0;Ni<4;Ni++){hi.sbox[Ni]=[];for(let Ci=0;Ci<256;Ci++)hi.sbox[Ni][Ci]=u[Ni][Ci]}let Ri=0;for(let Ni=0;Ni<v+2;Ni++)hi.pbox[Ni]=on[Ni]^vi[Ri],Ri++,Ri>=gi&&(Ri=0);let Si=0,Ai=0,Ii=0;for(let Ni=0;Ni<v+2;Ni+=2)Ii=D(hi,Si,Ai),Si=Ii.left,Ai=Ii.right,hi.pbox[Ni]=Si,hi.pbox[Ni+1]=Ai;for(let Ni=0;Ni<4;Ni++)for(let Ci=0;Ci<256;Ci+=2)Ii=D(hi,Si,Ai),Si=Ii.left,Ai=Ii.right,hi.sbox[Ni][Ci]=Si,hi.sbox[Ni][Ci+1]=Ai;return!0}var jn=l.Blowfish=a.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var hi=this._keyPriorReset=this._key,vi=hi.words,gi=hi.sigBytes/4;Ln(h,vi,gi)}},encryptBlock:function(hi,vi){var gi=D(h,hi[vi],hi[vi+1]);hi[vi]=gi.left,hi[vi+1]=gi.right},decryptBlock:function(hi,vi){var gi=Mn(h,hi[vi],hi[vi+1]);hi[vi]=gi.left,hi[vi+1]=gi.right},blockSize:64/32,keySize:128/32,ivSize:64/32});i.Blowfish=a._createHelper(jn)}(),n.Blowfish})}(blowfish$1)),blowfish$1.exports}var cryptoJs=cryptoJs$1.exports,hasRequiredCryptoJs;function requireCryptoJs(){return hasRequiredCryptoJs||(hasRequiredCryptoJs=1,function(r,t){(function(n,i,s){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(n){return n})}(cryptoJs$1)),cryptoJs$1.exports}requireCryptoJs();requireBrowser$b();function tryAcquireLock(r,t,n){return openDatabaseWithTransactionScope(["mutex"],"readwrite",async i=>{const s=await i.store.mutex.get(r),a=()=>i.store.mutex.put({resource:r,owner:t,expiresAt:now()+n});return s?s.owner===t||s.expiresAt<now()?(await a(),!0):!1:(await a(),!0)})}function releaseLock(r){return openDatabaseScope(t=>t.delete("mutex",r))}var GraphQLSchemaAttachmentKind=(r=>(r.SDL_SCHEMA="sdl-schema",r.STATISTICS="statistics",r.ITEMS="items",r))(GraphQLSchemaAttachmentKind||{});function isGraphQLSchemaSdlAttachmentEntity(r){return!!r&&r.kind===GraphQLSchemaAttachmentKind.SDL_SCHEMA}function setIndexedGraphQLSchemaEntity(r,t,n,i){return openDatabaseWithTransactionScope(["schema","schema-attachment"],"readwrite",async s=>{const a=await s.store.schema.get(r);!a||a.hash!==t||a.indexed||await Promise.all([s.store.schema.put({...a,indexed:!0}),s.store.schemaAttachment.put({endpoint:r,kind:GraphQLSchemaAttachmentKind.ITEMS,value:n}),s.store.schemaAttachment.put({endpoint:r,kind:GraphQLSchemaAttachmentKind.STATISTICS,value:i}),s.done])})}function getGraphQLSchemaEntity(r){const t=harmonizeSchemaUrl(r);return getEntityByKey("schema",t)}async function getGraphQLSdlSchema(r){const t=harmonizeSchemaUrl(r),n=await getEntityByKey("schema-attachment",[t,GraphQLSchemaAttachmentKind.SDL_SCHEMA]);return isGraphQLSchemaSdlAttachmentEntity(n)?n.value:void 0}RelativeDateTimeRange.last30Minutes;RelativeDateTimeRange.last30Minutes;function requireLock(r,t,n){const i=FIVE_SECONDS,s=createId("mutex");return acquireLock(r,s,i).then(async()=>{const a=new TimeoutAbortController(i);try{const[l]=await Promise.all([t(a.signal.toAbortSignal()).then(v=>(a.cancel(),v)),a.signal.toPromise()]);return l}catch(l){throw isTimeoutAbortError(l)?new LockExpiredError(r):l}finally{a.cancel(),await releaseLock(r)}})}async function acquireLock(r,t,n){for(;!await tryAcquireLock(r,t,n);)await delay(FIFTY_MILLISECONDS)}class LockExpiredError extends Error{constructor(t){super(`Lock for resource "${t}" has been expired`)}}async function tryGetUserSessionAndRefresh(r){const t=await getCurrentTenant();if(!t)return null;let n=await getUserSession(t);if(!n)return null;if(isSessionExpired(n)&&(n=await refreshSession(n),isSessionExpired(n)))throw new UserSessionExpiredError;return n}async function refreshSession(r,t){return requireLock("refresh-session",n);async function n(i){const s=i;let a=await getUserSession(r)||r;if(!isSessionExpired(a)&&a.requiresSignIn)return a;const l=new Headers,v=new URLSearchParams;l.append(HEADER_CONTENT_TYPE,"application/x-www-form-urlencoded"),v.append("client_id","d8b1d8dd-c26d-4b54-8cde-5f3c8eb054ba"),v.append("grant_type","refresh_token"),v.append("refresh_token",a.refreshToken);try{const on=await fetch(`${a.issuer}/connect/token`,{method:"POST",headers:l,body:v,signal:s});if(on.ok){const u=await on.json();if(isToken(u))return replaceUserSession({...a,requiresSignIn:!1,idToken:u.id_token,accessToken:u.access_token,refreshToken:u.refresh_token,expiresAt:now()+u.expires_in*ONE_SECOND})}else if(on.status===400&&(a=await getUserSession(r)||r,isSessionExpired(a)))return replaceUserSession({...a,requiresSignIn:!0,lastTriedToRefresh:now()});return a}catch(on){console.error(on)}return a=await getUserSession(r)||r,isSessionExpired(a)?replaceUserSession({...a,lastTriedToRefresh:now()}):a}}function isToken(r){return isDictionary(r)&&"access_token"in r}class UserSessionExpiredError extends Error{constructor(){super("User session has been expired")}}async function getHttpOptions(r){const t=await tryGetUserSessionAndRefresh(),n=isURL(r)?r:new URL(r,t?.apiUrl??"https://api.chillicream.com").href,i=getHeaders(t?.accessToken);return{uri:n,headers:i}}function getHeaders(r){const t=new Headers;if(t.set("CCC-Agent",APP_AGENT),t.set("GraphQL-Agent",APP_AGENT),t.set("GraphQL-Client-Id",APP_GRAPHQL_CLIENT_ID),t.set("GraphQL-Client-Version",APP_VERSION),t.set("GraphQL-Defer-RFC","v2"),r)t.set("Authorization",`Bearer ${r}`);else throw new UserSessionExpiredError;return t}var RelayFeatureFlags_1,hasRequiredRelayFeatureFlags;function requireRelayFeatureFlags(){if(hasRequiredRelayFeatureFlags)return RelayFeatureFlags_1;hasRequiredRelayFeatureFlags=1;var r={ENABLE_CLIENT_EDGES:!1,ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_RELAY_RESOLVERS:!1,ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION:!1,ENABLE_FRIENDLY_QUERY_NAME_GQL_URL:!1,ENABLE_LOAD_QUERY_REQUEST_DEDUPING:!0,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_LOOSE_SUBSCRIPTION_ATTRIBUTION:!1,ENABLE_OPERATION_TRACKER_OPTIMISTIC_UPDATES:!1,ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE:!1,ENABLE_FIELD_ERROR_HANDLING:!1,ENABLE_FIELD_ERROR_HANDLING_THROW_BY_DEFAULT:!1,ENABLE_FIELD_ERROR_HANDLING_CATCH_DIRECTIVE:!1,ENABLE_SHALLOW_FREEZE_RESOLVER_VALUES:!0,ENABLE_STRICT_EQUAL_SELECTORS:!1};return RelayFeatureFlags_1=r,RelayFeatureFlags_1}var StringInterner,hasRequiredStringInterner;function requireStringInterner(){if(hasRequiredStringInterner)return StringInterner;hasRequiredStringInterner=1;var r=new Map,t=1,n=a(),i=" ",s="\v";function a(){for(var on=new Set,u=0;u<10;++u)on.add(u.toString());return on}function l(on){return on[0]===i&&n.has(on[1])||on[0]===s?s+on:on}function v(on,u){if(u==null||on.length<u)return l(on);var h=r.get(on);return h!=null||(h=i+t++,r.set(on,h)),h}return StringInterner={intern:v},StringInterner}var ClientID,hasRequiredClientID;function requireClientID(){if(hasRequiredClientID)return ClientID;hasRequiredClientID=1;var r=requireRelayFeatureFlags(),t=requireStringInterner(),n=t.intern,i="client:";function s(u,h,Rn){var D=r.STRING_INTERN_LEVEL<=0?u:n(u,r.MAX_DATA_ID_LENGTH),Mn=D+":"+h;return Rn!=null&&(Mn+=":"+Rn),Mn.indexOf(i)!==0&&(Mn=i+Mn),Mn}function a(u){return u.indexOf(i)===0}var l=0;function v(){return"".concat(i,"local:").concat(l++)}function on(u,h,Rn){var D="".concat(i).concat(u,":").concat(h);return Rn!=null&&(D+=":"+Rn),D}return ClientID={generateClientID:s,generateClientObjectClientID:on,generateUniqueClientID:v,isClientID:a},ClientID}var interopRequireDefault={exports:{}},hasRequiredInteropRequireDefault;function requireInteropRequireDefault(){return hasRequiredInteropRequireDefault||(hasRequiredInteropRequireDefault=1,function(r){function t(n){return n&&n.__esModule?n:{default:n}}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(interopRequireDefault)),interopRequireDefault.exports}var toConsumableArray={exports:{}},arrayWithoutHoles={exports:{}},arrayLikeToArray={exports:{}},hasRequiredArrayLikeToArray;function requireArrayLikeToArray(){return hasRequiredArrayLikeToArray||(hasRequiredArrayLikeToArray=1,function(r){function t(n,i){(i==null||i>n.length)&&(i=n.length);for(var s=0,a=new Array(i);s<i;s++)a[s]=n[s];return a}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(arrayLikeToArray)),arrayLikeToArray.exports}var hasRequiredArrayWithoutHoles;function requireArrayWithoutHoles(){return hasRequiredArrayWithoutHoles||(hasRequiredArrayWithoutHoles=1,function(r){var t=requireArrayLikeToArray();function n(i){if(Array.isArray(i))return t(i)}r.exports=n,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 t(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(iterableToArray)),iterableToArray.exports}var unsupportedIterableToArray={exports:{}},hasRequiredUnsupportedIterableToArray;function requireUnsupportedIterableToArray(){return hasRequiredUnsupportedIterableToArray||(hasRequiredUnsupportedIterableToArray=1,function(r){var t=requireArrayLikeToArray();function n(i,s){if(i){if(typeof i=="string")return t(i,s);var a=Object.prototype.toString.call(i).slice(8,-1);if(a==="Object"&&i.constructor&&(a=i.constructor.name),a==="Map"||a==="Set")return Array.from(i);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return t(i,s)}}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(unsupportedIterableToArray)),unsupportedIterableToArray.exports}var nonIterableSpread={exports:{}},hasRequiredNonIterableSpread;function requireNonIterableSpread(){return hasRequiredNonIterableSpread||(hasRequiredNonIterableSpread=1,function(r){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
117
|
+
*/return n.mode.CTRGladman=function(){var i=n.lib.BlockCipherMode.extend();function s(v){if((v>>24&255)===255){var on=v>>16&255,u=v>>8&255,h=v&255;on===255?(on=0,u===255?(u=0,h===255?h=0:++h):++u):++on,v=0,v+=on<<16,v+=u<<8,v+=h}else v+=1<<24;return v}function a(v){return(v[0]=s(v[0]))===0&&(v[1]=s(v[1])),v}var l=i.Encryptor=i.extend({processBlock:function(v,on){var u=this._cipher,h=u.blockSize,Rn=this._iv,D=this._counter;Rn&&(D=this._counter=Rn.slice(0),this._iv=void 0),a(D);var Mn=D.slice(0);u.encryptBlock(Mn,0);for(var Ln=0;Ln<h;Ln++)v[on+Ln]^=Mn[Ln]}});return i.Decryptor=l,i}(),n.mode.CTRGladman})}(modeCtrGladman$1)),modeCtrGladman$1.exports}var modeOfb$1={exports:{}},modeOfb=modeOfb$1.exports,hasRequiredModeOfb;function requireModeOfb(){return hasRequiredModeOfb||(hasRequiredModeOfb=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(modeOfb,function(n){return n.mode.OFB=function(){var i=n.lib.BlockCipherMode.extend(),s=i.Encryptor=i.extend({processBlock:function(a,l){var v=this._cipher,on=v.blockSize,u=this._iv,h=this._keystream;u&&(h=this._keystream=u.slice(0),this._iv=void 0),v.encryptBlock(h,0);for(var Rn=0;Rn<on;Rn++)a[l+Rn]^=h[Rn]}});return i.Decryptor=s,i}(),n.mode.OFB})}(modeOfb$1)),modeOfb$1.exports}var modeEcb$1={exports:{}},modeEcb=modeEcb$1.exports,hasRequiredModeEcb;function requireModeEcb(){return hasRequiredModeEcb||(hasRequiredModeEcb=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(modeEcb,function(n){return n.mode.ECB=function(){var i=n.lib.BlockCipherMode.extend();return i.Encryptor=i.extend({processBlock:function(s,a){this._cipher.encryptBlock(s,a)}}),i.Decryptor=i.extend({processBlock:function(s,a){this._cipher.decryptBlock(s,a)}}),i}(),n.mode.ECB})}(modeEcb$1)),modeEcb$1.exports}var padAnsix923$1={exports:{}},padAnsix923=padAnsix923$1.exports,hasRequiredPadAnsix923;function requirePadAnsix923(){return hasRequiredPadAnsix923||(hasRequiredPadAnsix923=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(padAnsix923,function(n){return n.pad.AnsiX923={pad:function(i,s){var a=i.sigBytes,l=s*4,v=l-a%l,on=a+v-1;i.clamp(),i.words[on>>>2]|=v<<24-on%4*8,i.sigBytes+=v},unpad:function(i){var s=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=s}},n.pad.Ansix923})}(padAnsix923$1)),padAnsix923$1.exports}var padIso10126$1={exports:{}},padIso10126=padIso10126$1.exports,hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(padIso10126,function(n){return n.pad.Iso10126={pad:function(i,s){var a=s*4,l=a-i.sigBytes%a;i.concat(n.lib.WordArray.random(l-1)).concat(n.lib.WordArray.create([l<<24],1))},unpad:function(i){var s=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=s}},n.pad.Iso10126})}(padIso10126$1)),padIso10126$1.exports}var padIso97971$1={exports:{}},padIso97971=padIso97971$1.exports,hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(padIso97971,function(n){return n.pad.Iso97971={pad:function(i,s){i.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(i,s)},unpad:function(i){n.pad.ZeroPadding.unpad(i),i.sigBytes--}},n.pad.Iso97971})}(padIso97971$1)),padIso97971$1.exports}var padZeropadding$1={exports:{}},padZeropadding=padZeropadding$1.exports,hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(padZeropadding,function(n){return n.pad.ZeroPadding={pad:function(i,s){var a=s*4;i.clamp(),i.sigBytes+=a-(i.sigBytes%a||a)},unpad:function(i){for(var s=i.words,a=i.sigBytes-1,a=i.sigBytes-1;a>=0;a--)if(s[a>>>2]>>>24-a%4*8&255){i.sigBytes=a+1;break}}},n.pad.ZeroPadding})}(padZeropadding$1)),padZeropadding$1.exports}var padNopadding$1={exports:{}},padNopadding=padNopadding$1.exports,hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(padNopadding,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(padNopadding$1)),padNopadding$1.exports}var formatHex$1={exports:{}},formatHex=formatHex$1.exports,hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireCipherCore())})(formatHex,function(n){return function(i){var s=n,a=s.lib,l=a.CipherParams,v=s.enc,on=v.Hex,u=s.format;u.Hex={stringify:function(h){return h.ciphertext.toString(on)},parse:function(h){var Rn=on.parse(h);return l.create({ciphertext:Rn})}}}(),n.format.Hex})}(formatHex$1)),formatHex$1.exports}var aes$1={exports:{}},aes=aes$1.exports,hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(aes,function(n){return function(){var i=n,s=i.lib,a=s.BlockCipher,l=i.algo,v=[],on=[],u=[],h=[],Rn=[],D=[],Mn=[],Ln=[],jn=[],hi=[];(function(){for(var Ri=[],Si=0;Si<256;Si++)Si<128?Ri[Si]=Si<<1:Ri[Si]=Si<<1^283;for(var Ai=0,Ii=0,Si=0;Si<256;Si++){var Ni=Ii^Ii<<1^Ii<<2^Ii<<3^Ii<<4;Ni=Ni>>>8^Ni&255^99,v[Ai]=Ni,on[Ni]=Ai;var Ci=Ri[Ai],Oi=Ri[Ci],ki=Ri[Oi],Fi=Ri[Ni]*257^Ni*16843008;u[Ai]=Fi<<24|Fi>>>8,h[Ai]=Fi<<16|Fi>>>16,Rn[Ai]=Fi<<8|Fi>>>24,D[Ai]=Fi;var Fi=ki*16843009^Oi*65537^Ci*257^Ai*16843008;Mn[Ni]=Fi<<24|Fi>>>8,Ln[Ni]=Fi<<16|Fi>>>16,jn[Ni]=Fi<<8|Fi>>>24,hi[Ni]=Fi,Ai?(Ai=Ci^Ri[Ri[Ri[ki^Ci]]],Ii^=Ri[Ri[Ii]]):Ai=Ii=1}})();var vi=[0,1,2,4,8,16,32,64,128,27,54],gi=l.AES=a.extend({_doReset:function(){var Ri;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var Si=this._keyPriorReset=this._key,Ai=Si.words,Ii=Si.sigBytes/4,Ni=this._nRounds=Ii+6,Ci=(Ni+1)*4,Oi=this._keySchedule=[],ki=0;ki<Ci;ki++)ki<Ii?Oi[ki]=Ai[ki]:(Ri=Oi[ki-1],ki%Ii?Ii>6&&ki%Ii==4&&(Ri=v[Ri>>>24]<<24|v[Ri>>>16&255]<<16|v[Ri>>>8&255]<<8|v[Ri&255]):(Ri=Ri<<8|Ri>>>24,Ri=v[Ri>>>24]<<24|v[Ri>>>16&255]<<16|v[Ri>>>8&255]<<8|v[Ri&255],Ri^=vi[ki/Ii|0]<<24),Oi[ki]=Oi[ki-Ii]^Ri);for(var Fi=this._invKeySchedule=[],bi=0;bi<Ci;bi++){var ki=Ci-bi;if(bi%4)var Ri=Oi[ki];else var Ri=Oi[ki-4];bi<4||ki<=4?Fi[bi]=Ri:Fi[bi]=Mn[v[Ri>>>24]]^Ln[v[Ri>>>16&255]]^jn[v[Ri>>>8&255]]^hi[v[Ri&255]]}}},encryptBlock:function(Ri,Si){this._doCryptBlock(Ri,Si,this._keySchedule,u,h,Rn,D,v)},decryptBlock:function(Ri,Si){var Ai=Ri[Si+1];Ri[Si+1]=Ri[Si+3],Ri[Si+3]=Ai,this._doCryptBlock(Ri,Si,this._invKeySchedule,Mn,Ln,jn,hi,on);var Ai=Ri[Si+1];Ri[Si+1]=Ri[Si+3],Ri[Si+3]=Ai},_doCryptBlock:function(Ri,Si,Ai,Ii,Ni,Ci,Oi,ki){for(var Fi=this._nRounds,bi=Ri[Si]^Ai[0],Yn=Ri[Si+1]^Ai[1],In=Ri[Si+2]^Ai[2],Hn=Ri[Si+3]^Ai[3],yi=4,mi=1;mi<Fi;mi++){var _i=Ii[bi>>>24]^Ni[Yn>>>16&255]^Ci[In>>>8&255]^Oi[Hn&255]^Ai[yi++],wi=Ii[Yn>>>24]^Ni[In>>>16&255]^Ci[Hn>>>8&255]^Oi[bi&255]^Ai[yi++],Ei=Ii[In>>>24]^Ni[Hn>>>16&255]^Ci[bi>>>8&255]^Oi[Yn&255]^Ai[yi++],xi=Ii[Hn>>>24]^Ni[bi>>>16&255]^Ci[Yn>>>8&255]^Oi[In&255]^Ai[yi++];bi=_i,Yn=wi,In=Ei,Hn=xi}var _i=(ki[bi>>>24]<<24|ki[Yn>>>16&255]<<16|ki[In>>>8&255]<<8|ki[Hn&255])^Ai[yi++],wi=(ki[Yn>>>24]<<24|ki[In>>>16&255]<<16|ki[Hn>>>8&255]<<8|ki[bi&255])^Ai[yi++],Ei=(ki[In>>>24]<<24|ki[Hn>>>16&255]<<16|ki[bi>>>8&255]<<8|ki[Yn&255])^Ai[yi++],xi=(ki[Hn>>>24]<<24|ki[bi>>>16&255]<<16|ki[Yn>>>8&255]<<8|ki[In&255])^Ai[yi++];Ri[Si]=_i,Ri[Si+1]=wi,Ri[Si+2]=Ei,Ri[Si+3]=xi},keySize:256/32});i.AES=a._createHelper(gi)}(),n.AES})}(aes$1)),aes$1.exports}var tripledes$1={exports:{}},tripledes=tripledes$1.exports,hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(tripledes,function(n){return function(){var i=n,s=i.lib,a=s.WordArray,l=s.BlockCipher,v=i.algo,on=[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],h=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],Rn=[{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}],D=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],Mn=v.DES=l.extend({_doReset:function(){for(var vi=this._key,gi=vi.words,Ri=[],Si=0;Si<56;Si++){var Ai=on[Si]-1;Ri[Si]=gi[Ai>>>5]>>>31-Ai%32&1}for(var Ii=this._subKeys=[],Ni=0;Ni<16;Ni++){for(var Ci=Ii[Ni]=[],Oi=h[Ni],Si=0;Si<24;Si++)Ci[Si/6|0]|=Ri[(u[Si]-1+Oi)%28]<<31-Si%6,Ci[4+(Si/6|0)]|=Ri[28+(u[Si+24]-1+Oi)%28]<<31-Si%6;Ci[0]=Ci[0]<<1|Ci[0]>>>31;for(var Si=1;Si<7;Si++)Ci[Si]=Ci[Si]>>>(Si-1)*4+3;Ci[7]=Ci[7]<<5|Ci[7]>>>27}for(var ki=this._invSubKeys=[],Si=0;Si<16;Si++)ki[Si]=Ii[15-Si]},encryptBlock:function(vi,gi){this._doCryptBlock(vi,gi,this._subKeys)},decryptBlock:function(vi,gi){this._doCryptBlock(vi,gi,this._invSubKeys)},_doCryptBlock:function(vi,gi,Ri){this._lBlock=vi[gi],this._rBlock=vi[gi+1],Ln.call(this,4,252645135),Ln.call(this,16,65535),jn.call(this,2,858993459),jn.call(this,8,16711935),Ln.call(this,1,1431655765);for(var Si=0;Si<16;Si++){for(var Ai=Ri[Si],Ii=this._lBlock,Ni=this._rBlock,Ci=0,Oi=0;Oi<8;Oi++)Ci|=Rn[Oi][((Ni^Ai[Oi])&D[Oi])>>>0];this._lBlock=Ni,this._rBlock=Ii^Ci}var ki=this._lBlock;this._lBlock=this._rBlock,this._rBlock=ki,Ln.call(this,1,1431655765),jn.call(this,8,16711935),jn.call(this,2,858993459),Ln.call(this,16,65535),Ln.call(this,4,252645135),vi[gi]=this._lBlock,vi[gi+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function Ln(vi,gi){var Ri=(this._lBlock>>>vi^this._rBlock)&gi;this._rBlock^=Ri,this._lBlock^=Ri<<vi}function jn(vi,gi){var Ri=(this._rBlock>>>vi^this._lBlock)&gi;this._lBlock^=Ri,this._rBlock^=Ri<<vi}i.DES=l._createHelper(Mn);var hi=v.TripleDES=l.extend({_doReset:function(){var vi=this._key,gi=vi.words;if(gi.length!==2&&gi.length!==4&&gi.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var Ri=gi.slice(0,2),Si=gi.length<4?gi.slice(0,2):gi.slice(2,4),Ai=gi.length<6?gi.slice(0,2):gi.slice(4,6);this._des1=Mn.createEncryptor(a.create(Ri)),this._des2=Mn.createEncryptor(a.create(Si)),this._des3=Mn.createEncryptor(a.create(Ai))},encryptBlock:function(vi,gi){this._des1.encryptBlock(vi,gi),this._des2.decryptBlock(vi,gi),this._des3.encryptBlock(vi,gi)},decryptBlock:function(vi,gi){this._des3.decryptBlock(vi,gi),this._des2.encryptBlock(vi,gi),this._des1.decryptBlock(vi,gi)},keySize:192/32,ivSize:64/32,blockSize:64/32});i.TripleDES=l._createHelper(hi)}(),n.TripleDES})}(tripledes$1)),tripledes$1.exports}var rc4$1={exports:{}},rc4=rc4$1.exports,hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(rc4,function(n){return function(){var i=n,s=i.lib,a=s.StreamCipher,l=i.algo,v=l.RC4=a.extend({_doReset:function(){for(var h=this._key,Rn=h.words,D=h.sigBytes,Mn=this._S=[],Ln=0;Ln<256;Ln++)Mn[Ln]=Ln;for(var Ln=0,jn=0;Ln<256;Ln++){var hi=Ln%D,vi=Rn[hi>>>2]>>>24-hi%4*8&255;jn=(jn+Mn[Ln]+vi)%256;var gi=Mn[Ln];Mn[Ln]=Mn[jn],Mn[jn]=gi}this._i=this._j=0},_doProcessBlock:function(h,Rn){h[Rn]^=on.call(this)},keySize:256/32,ivSize:0});function on(){for(var h=this._S,Rn=this._i,D=this._j,Mn=0,Ln=0;Ln<4;Ln++){Rn=(Rn+1)%256,D=(D+h[Rn])%256;var jn=h[Rn];h[Rn]=h[D],h[D]=jn,Mn|=h[(h[Rn]+h[D])%256]<<24-Ln*8}return this._i=Rn,this._j=D,Mn}i.RC4=a._createHelper(v);var u=l.RC4Drop=v.extend({cfg:v.cfg.extend({drop:192}),_doReset:function(){v._doReset.call(this);for(var h=this.cfg.drop;h>0;h--)on.call(this)}});i.RC4Drop=a._createHelper(u)}(),n.RC4})}(rc4$1)),rc4$1.exports}var rabbit$1={exports:{}},rabbit=rabbit$1.exports,hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(rabbit,function(n){return function(){var i=n,s=i.lib,a=s.StreamCipher,l=i.algo,v=[],on=[],u=[],h=l.Rabbit=a.extend({_doReset:function(){for(var D=this._key.words,Mn=this.cfg.iv,Ln=0;Ln<4;Ln++)D[Ln]=(D[Ln]<<8|D[Ln]>>>24)&16711935|(D[Ln]<<24|D[Ln]>>>8)&4278255360;var jn=this._X=[D[0],D[3]<<16|D[2]>>>16,D[1],D[0]<<16|D[3]>>>16,D[2],D[1]<<16|D[0]>>>16,D[3],D[2]<<16|D[1]>>>16],hi=this._C=[D[2]<<16|D[2]>>>16,D[0]&4294901760|D[1]&65535,D[3]<<16|D[3]>>>16,D[1]&4294901760|D[2]&65535,D[0]<<16|D[0]>>>16,D[2]&4294901760|D[3]&65535,D[1]<<16|D[1]>>>16,D[3]&4294901760|D[0]&65535];this._b=0;for(var Ln=0;Ln<4;Ln++)Rn.call(this);for(var Ln=0;Ln<8;Ln++)hi[Ln]^=jn[Ln+4&7];if(Mn){var vi=Mn.words,gi=vi[0],Ri=vi[1],Si=(gi<<8|gi>>>24)&16711935|(gi<<24|gi>>>8)&4278255360,Ai=(Ri<<8|Ri>>>24)&16711935|(Ri<<24|Ri>>>8)&4278255360,Ii=Si>>>16|Ai&4294901760,Ni=Ai<<16|Si&65535;hi[0]^=Si,hi[1]^=Ii,hi[2]^=Ai,hi[3]^=Ni,hi[4]^=Si,hi[5]^=Ii,hi[6]^=Ai,hi[7]^=Ni;for(var Ln=0;Ln<4;Ln++)Rn.call(this)}},_doProcessBlock:function(D,Mn){var Ln=this._X;Rn.call(this),v[0]=Ln[0]^Ln[5]>>>16^Ln[3]<<16,v[1]=Ln[2]^Ln[7]>>>16^Ln[5]<<16,v[2]=Ln[4]^Ln[1]>>>16^Ln[7]<<16,v[3]=Ln[6]^Ln[3]>>>16^Ln[1]<<16;for(var jn=0;jn<4;jn++)v[jn]=(v[jn]<<8|v[jn]>>>24)&16711935|(v[jn]<<24|v[jn]>>>8)&4278255360,D[Mn+jn]^=v[jn]},blockSize:128/32,ivSize:64/32});function Rn(){for(var D=this._X,Mn=this._C,Ln=0;Ln<8;Ln++)on[Ln]=Mn[Ln];Mn[0]=Mn[0]+1295307597+this._b|0,Mn[1]=Mn[1]+3545052371+(Mn[0]>>>0<on[0]>>>0?1:0)|0,Mn[2]=Mn[2]+886263092+(Mn[1]>>>0<on[1]>>>0?1:0)|0,Mn[3]=Mn[3]+1295307597+(Mn[2]>>>0<on[2]>>>0?1:0)|0,Mn[4]=Mn[4]+3545052371+(Mn[3]>>>0<on[3]>>>0?1:0)|0,Mn[5]=Mn[5]+886263092+(Mn[4]>>>0<on[4]>>>0?1:0)|0,Mn[6]=Mn[6]+1295307597+(Mn[5]>>>0<on[5]>>>0?1:0)|0,Mn[7]=Mn[7]+3545052371+(Mn[6]>>>0<on[6]>>>0?1:0)|0,this._b=Mn[7]>>>0<on[7]>>>0?1:0;for(var Ln=0;Ln<8;Ln++){var jn=D[Ln]+Mn[Ln],hi=jn&65535,vi=jn>>>16,gi=((hi*hi>>>17)+hi*vi>>>15)+vi*vi,Ri=((jn&4294901760)*jn|0)+((jn&65535)*jn|0);u[Ln]=gi^Ri}D[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,D[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,D[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,D[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,D[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,D[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,D[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,D[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}i.Rabbit=a._createHelper(h)}(),n.Rabbit})}(rabbit$1)),rabbit$1.exports}var rabbitLegacy$1={exports:{}},rabbitLegacy=rabbitLegacy$1.exports,hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(rabbitLegacy,function(n){return function(){var i=n,s=i.lib,a=s.StreamCipher,l=i.algo,v=[],on=[],u=[],h=l.RabbitLegacy=a.extend({_doReset:function(){var D=this._key.words,Mn=this.cfg.iv,Ln=this._X=[D[0],D[3]<<16|D[2]>>>16,D[1],D[0]<<16|D[3]>>>16,D[2],D[1]<<16|D[0]>>>16,D[3],D[2]<<16|D[1]>>>16],jn=this._C=[D[2]<<16|D[2]>>>16,D[0]&4294901760|D[1]&65535,D[3]<<16|D[3]>>>16,D[1]&4294901760|D[2]&65535,D[0]<<16|D[0]>>>16,D[2]&4294901760|D[3]&65535,D[1]<<16|D[1]>>>16,D[3]&4294901760|D[0]&65535];this._b=0;for(var hi=0;hi<4;hi++)Rn.call(this);for(var hi=0;hi<8;hi++)jn[hi]^=Ln[hi+4&7];if(Mn){var vi=Mn.words,gi=vi[0],Ri=vi[1],Si=(gi<<8|gi>>>24)&16711935|(gi<<24|gi>>>8)&4278255360,Ai=(Ri<<8|Ri>>>24)&16711935|(Ri<<24|Ri>>>8)&4278255360,Ii=Si>>>16|Ai&4294901760,Ni=Ai<<16|Si&65535;jn[0]^=Si,jn[1]^=Ii,jn[2]^=Ai,jn[3]^=Ni,jn[4]^=Si,jn[5]^=Ii,jn[6]^=Ai,jn[7]^=Ni;for(var hi=0;hi<4;hi++)Rn.call(this)}},_doProcessBlock:function(D,Mn){var Ln=this._X;Rn.call(this),v[0]=Ln[0]^Ln[5]>>>16^Ln[3]<<16,v[1]=Ln[2]^Ln[7]>>>16^Ln[5]<<16,v[2]=Ln[4]^Ln[1]>>>16^Ln[7]<<16,v[3]=Ln[6]^Ln[3]>>>16^Ln[1]<<16;for(var jn=0;jn<4;jn++)v[jn]=(v[jn]<<8|v[jn]>>>24)&16711935|(v[jn]<<24|v[jn]>>>8)&4278255360,D[Mn+jn]^=v[jn]},blockSize:128/32,ivSize:64/32});function Rn(){for(var D=this._X,Mn=this._C,Ln=0;Ln<8;Ln++)on[Ln]=Mn[Ln];Mn[0]=Mn[0]+1295307597+this._b|0,Mn[1]=Mn[1]+3545052371+(Mn[0]>>>0<on[0]>>>0?1:0)|0,Mn[2]=Mn[2]+886263092+(Mn[1]>>>0<on[1]>>>0?1:0)|0,Mn[3]=Mn[3]+1295307597+(Mn[2]>>>0<on[2]>>>0?1:0)|0,Mn[4]=Mn[4]+3545052371+(Mn[3]>>>0<on[3]>>>0?1:0)|0,Mn[5]=Mn[5]+886263092+(Mn[4]>>>0<on[4]>>>0?1:0)|0,Mn[6]=Mn[6]+1295307597+(Mn[5]>>>0<on[5]>>>0?1:0)|0,Mn[7]=Mn[7]+3545052371+(Mn[6]>>>0<on[6]>>>0?1:0)|0,this._b=Mn[7]>>>0<on[7]>>>0?1:0;for(var Ln=0;Ln<8;Ln++){var jn=D[Ln]+Mn[Ln],hi=jn&65535,vi=jn>>>16,gi=((hi*hi>>>17)+hi*vi>>>15)+vi*vi,Ri=((jn&4294901760)*jn|0)+((jn&65535)*jn|0);u[Ln]=gi^Ri}D[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,D[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,D[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,D[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,D[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,D[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,D[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,D[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}i.RabbitLegacy=a._createHelper(h)}(),n.RabbitLegacy})}(rabbitLegacy$1)),rabbitLegacy$1.exports}var blowfish$1={exports:{}},blowfish=blowfish$1.exports,hasRequiredBlowfish;function requireBlowfish(){return hasRequiredBlowfish||(hasRequiredBlowfish=1,function(r,t){(function(n,i,s){r.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(blowfish,function(n){return function(){var i=n,s=i.lib,a=s.BlockCipher,l=i.algo;const v=16,on=[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 h={pbox:[],sbox:[]};function Rn(hi,vi){let gi=vi>>24&255,Ri=vi>>16&255,Si=vi>>8&255,Ai=vi&255,Ii=hi.sbox[0][gi]+hi.sbox[1][Ri];return Ii=Ii^hi.sbox[2][Si],Ii=Ii+hi.sbox[3][Ai],Ii}function D(hi,vi,gi){let Ri=vi,Si=gi,Ai;for(let Ii=0;Ii<v;++Ii)Ri=Ri^hi.pbox[Ii],Si=Rn(hi,Ri)^Si,Ai=Ri,Ri=Si,Si=Ai;return Ai=Ri,Ri=Si,Si=Ai,Si=Si^hi.pbox[v],Ri=Ri^hi.pbox[v+1],{left:Ri,right:Si}}function Mn(hi,vi,gi){let Ri=vi,Si=gi,Ai;for(let Ii=v+1;Ii>1;--Ii)Ri=Ri^hi.pbox[Ii],Si=Rn(hi,Ri)^Si,Ai=Ri,Ri=Si,Si=Ai;return Ai=Ri,Ri=Si,Si=Ai,Si=Si^hi.pbox[1],Ri=Ri^hi.pbox[0],{left:Ri,right:Si}}function Ln(hi,vi,gi){for(let Ni=0;Ni<4;Ni++){hi.sbox[Ni]=[];for(let Ci=0;Ci<256;Ci++)hi.sbox[Ni][Ci]=u[Ni][Ci]}let Ri=0;for(let Ni=0;Ni<v+2;Ni++)hi.pbox[Ni]=on[Ni]^vi[Ri],Ri++,Ri>=gi&&(Ri=0);let Si=0,Ai=0,Ii=0;for(let Ni=0;Ni<v+2;Ni+=2)Ii=D(hi,Si,Ai),Si=Ii.left,Ai=Ii.right,hi.pbox[Ni]=Si,hi.pbox[Ni+1]=Ai;for(let Ni=0;Ni<4;Ni++)for(let Ci=0;Ci<256;Ci+=2)Ii=D(hi,Si,Ai),Si=Ii.left,Ai=Ii.right,hi.sbox[Ni][Ci]=Si,hi.sbox[Ni][Ci+1]=Ai;return!0}var jn=l.Blowfish=a.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var hi=this._keyPriorReset=this._key,vi=hi.words,gi=hi.sigBytes/4;Ln(h,vi,gi)}},encryptBlock:function(hi,vi){var gi=D(h,hi[vi],hi[vi+1]);hi[vi]=gi.left,hi[vi+1]=gi.right},decryptBlock:function(hi,vi){var gi=Mn(h,hi[vi],hi[vi+1]);hi[vi]=gi.left,hi[vi+1]=gi.right},blockSize:64/32,keySize:128/32,ivSize:64/32});i.Blowfish=a._createHelper(jn)}(),n.Blowfish})}(blowfish$1)),blowfish$1.exports}var cryptoJs=cryptoJs$1.exports,hasRequiredCryptoJs;function requireCryptoJs(){return hasRequiredCryptoJs||(hasRequiredCryptoJs=1,function(r,t){(function(n,i,s){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(n){return n})}(cryptoJs$1)),cryptoJs$1.exports}requireCryptoJs();requireBrowser$b();function tryAcquireLock(r,t,n){return openDatabaseWithTransactionScope(["mutex"],"readwrite",async i=>{const s=await i.store.mutex.get(r),a=()=>i.store.mutex.put({resource:r,owner:t,expiresAt:now()+n});return s?s.owner===t||s.expiresAt<now()?(await a(),!0):!1:(await a(),!0)})}function releaseLock(r){return openDatabaseScope(t=>t.delete("mutex",r))}var GraphQLSchemaAttachmentKind=(r=>(r.SDL_SCHEMA="sdl-schema",r.STATISTICS="statistics",r.ITEMS="items",r))(GraphQLSchemaAttachmentKind||{});function isGraphQLSchemaSdlAttachmentEntity(r){return!!r&&r.kind===GraphQLSchemaAttachmentKind.SDL_SCHEMA}function setIndexedGraphQLSchemaEntity(r,t,n,i){return openDatabaseWithTransactionScope(["schema","schema-attachment"],"readwrite",async s=>{const a=await s.store.schema.get(r);!a||a.hash!==t||a.indexed||await Promise.all([s.store.schema.put({...a,indexed:!0}),s.store.schemaAttachment.put({endpoint:r,kind:GraphQLSchemaAttachmentKind.ITEMS,value:n}),s.store.schemaAttachment.put({endpoint:r,kind:GraphQLSchemaAttachmentKind.STATISTICS,value:i}),s.done])})}function getGraphQLSchemaEntity(r){const t=harmonizeSchemaUrl(r);return getEntityByKey("schema",t)}async function getGraphQLSdlSchema(r){const t=harmonizeSchemaUrl(r),n=await getEntityByKey("schema-attachment",[t,GraphQLSchemaAttachmentKind.SDL_SCHEMA]);return isGraphQLSchemaSdlAttachmentEntity(n)?n.value:void 0}RelativeDateTimeRange.last30Minutes;RelativeDateTimeRange.last30Minutes;function requireLock(r,t,n){const i=FIVE_SECONDS,s=createId("mutex");return acquireLock(r,s,i).then(async()=>{const a=new TimeoutAbortController(i);try{const[l]=await Promise.all([t(a.signal.toAbortSignal()).then(v=>(a.cancel(),v)),a.signal.toPromise()]);return l}catch(l){throw isTimeoutAbortError(l)?new LockExpiredError(r):l}finally{a.cancel(),await releaseLock(r)}})}async function acquireLock(r,t,n){for(;!await tryAcquireLock(r,t,n);)await delay(FIFTY_MILLISECONDS)}class LockExpiredError extends Error{constructor(t){super(`Lock for resource "${t}" has been expired`)}}async function tryGetUserSessionAndRefresh(r){const t=await getCurrentTenant();if(!t)return null;let n=await getUserSession(t);if(!n)return null;if(isSessionExpired(n)&&(n=await refreshSession(n),isSessionExpired(n)))throw new UserSessionExpiredError;return n}async function refreshSession(r,t){return requireLock("refresh-session",n);async function n(i){const s=i;let a=await getUserSession(r)||r;if(!isSessionExpired(a)&&a.requiresSignIn)return a;const l=new Headers,v=new URLSearchParams;l.append(HEADER_CONTENT_TYPE,"application/x-www-form-urlencoded"),v.append("client_id","3c9f56bd-0e2c-4358-9bf5-ff3a0efa9bf5"),v.append("grant_type","refresh_token"),v.append("refresh_token",a.refreshToken);try{const on=await fetch(`${a.issuer}/connect/token`,{method:"POST",headers:l,body:v,signal:s});if(on.ok){const u=await on.json();if(isToken(u))return replaceUserSession({...a,requiresSignIn:!1,idToken:u.id_token,accessToken:u.access_token,refreshToken:u.refresh_token,expiresAt:now()+u.expires_in*ONE_SECOND})}else if(on.status===400&&(a=await getUserSession(r)||r,isSessionExpired(a)))return replaceUserSession({...a,requiresSignIn:!0,lastTriedToRefresh:now()});return a}catch(on){console.error(on)}return a=await getUserSession(r)||r,isSessionExpired(a)?replaceUserSession({...a,lastTriedToRefresh:now()}):a}}function isToken(r){return isDictionary(r)&&"access_token"in r}class UserSessionExpiredError extends Error{constructor(){super("User session has been expired")}}async function getHttpOptions(r){const t=await tryGetUserSessionAndRefresh(),n=isURL(r)?r:new URL(r,t?.apiUrl??"https://api.chillicream.com").href,i=getHeaders(t?.accessToken);return{uri:n,headers:i}}function getHeaders(r){const t=new Headers;if(t.set("CCC-Agent",APP_AGENT),t.set("GraphQL-Agent",APP_AGENT),t.set("GraphQL-Client-Id",APP_GRAPHQL_CLIENT_ID),t.set("GraphQL-Client-Version",APP_VERSION),t.set("GraphQL-Defer-RFC","v2"),r)t.set("Authorization",`Bearer ${r}`);else throw new UserSessionExpiredError;return t}var RelayFeatureFlags_1,hasRequiredRelayFeatureFlags;function requireRelayFeatureFlags(){if(hasRequiredRelayFeatureFlags)return RelayFeatureFlags_1;hasRequiredRelayFeatureFlags=1;var r={ENABLE_CLIENT_EDGES:!1,ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_RELAY_RESOLVERS:!1,ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION:!1,ENABLE_FRIENDLY_QUERY_NAME_GQL_URL:!1,ENABLE_LOAD_QUERY_REQUEST_DEDUPING:!0,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_LOOSE_SUBSCRIPTION_ATTRIBUTION:!1,ENABLE_OPERATION_TRACKER_OPTIMISTIC_UPDATES:!1,ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE:!1,ENABLE_FIELD_ERROR_HANDLING:!1,ENABLE_FIELD_ERROR_HANDLING_THROW_BY_DEFAULT:!1,ENABLE_FIELD_ERROR_HANDLING_CATCH_DIRECTIVE:!1,ENABLE_SHALLOW_FREEZE_RESOLVER_VALUES:!0,ENABLE_STRICT_EQUAL_SELECTORS:!1};return RelayFeatureFlags_1=r,RelayFeatureFlags_1}var StringInterner,hasRequiredStringInterner;function requireStringInterner(){if(hasRequiredStringInterner)return StringInterner;hasRequiredStringInterner=1;var r=new Map,t=1,n=a(),i=" ",s="\v";function a(){for(var on=new Set,u=0;u<10;++u)on.add(u.toString());return on}function l(on){return on[0]===i&&n.has(on[1])||on[0]===s?s+on:on}function v(on,u){if(u==null||on.length<u)return l(on);var h=r.get(on);return h!=null||(h=i+t++,r.set(on,h)),h}return StringInterner={intern:v},StringInterner}var ClientID,hasRequiredClientID;function requireClientID(){if(hasRequiredClientID)return ClientID;hasRequiredClientID=1;var r=requireRelayFeatureFlags(),t=requireStringInterner(),n=t.intern,i="client:";function s(u,h,Rn){var D=r.STRING_INTERN_LEVEL<=0?u:n(u,r.MAX_DATA_ID_LENGTH),Mn=D+":"+h;return Rn!=null&&(Mn+=":"+Rn),Mn.indexOf(i)!==0&&(Mn=i+Mn),Mn}function a(u){return u.indexOf(i)===0}var l=0;function v(){return"".concat(i,"local:").concat(l++)}function on(u,h,Rn){var D="".concat(i).concat(u,":").concat(h);return Rn!=null&&(D+=":"+Rn),D}return ClientID={generateClientID:s,generateClientObjectClientID:on,generateUniqueClientID:v,isClientID:a},ClientID}var interopRequireDefault={exports:{}},hasRequiredInteropRequireDefault;function requireInteropRequireDefault(){return hasRequiredInteropRequireDefault||(hasRequiredInteropRequireDefault=1,function(r){function t(n){return n&&n.__esModule?n:{default:n}}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(interopRequireDefault)),interopRequireDefault.exports}var toConsumableArray={exports:{}},arrayWithoutHoles={exports:{}},arrayLikeToArray={exports:{}},hasRequiredArrayLikeToArray;function requireArrayLikeToArray(){return hasRequiredArrayLikeToArray||(hasRequiredArrayLikeToArray=1,function(r){function t(n,i){(i==null||i>n.length)&&(i=n.length);for(var s=0,a=new Array(i);s<i;s++)a[s]=n[s];return a}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(arrayLikeToArray)),arrayLikeToArray.exports}var hasRequiredArrayWithoutHoles;function requireArrayWithoutHoles(){return hasRequiredArrayWithoutHoles||(hasRequiredArrayWithoutHoles=1,function(r){var t=requireArrayLikeToArray();function n(i){if(Array.isArray(i))return t(i)}r.exports=n,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 t(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(iterableToArray)),iterableToArray.exports}var unsupportedIterableToArray={exports:{}},hasRequiredUnsupportedIterableToArray;function requireUnsupportedIterableToArray(){return hasRequiredUnsupportedIterableToArray||(hasRequiredUnsupportedIterableToArray=1,function(r){var t=requireArrayLikeToArray();function n(i,s){if(i){if(typeof i=="string")return t(i,s);var a=Object.prototype.toString.call(i).slice(8,-1);if(a==="Object"&&i.constructor&&(a=i.constructor.name),a==="Map"||a==="Set")return Array.from(i);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return t(i,s)}}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(unsupportedIterableToArray)),unsupportedIterableToArray.exports}var nonIterableSpread={exports:{}},hasRequiredNonIterableSpread;function requireNonIterableSpread(){return hasRequiredNonIterableSpread||(hasRequiredNonIterableSpread=1,function(r){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
118
118
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}(nonIterableSpread)),nonIterableSpread.exports}var hasRequiredToConsumableArray;function requireToConsumableArray(){return hasRequiredToConsumableArray||(hasRequiredToConsumableArray=1,function(r){var t=requireArrayWithoutHoles(),n=requireIterableToArray(),i=requireUnsupportedIterableToArray(),s=requireNonIterableSpread();function a(l){return t(l)||n(l)||i(l)||s()}r.exports=a,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 browser,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser;hasRequiredBrowser=1;var r=function(t,n,i,s,a,l,v,on){if(!t){var u;if(n===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 h=[i,s,a,l,v,on],Rn=0;u=new Error(n.replace(/%s/g,function(){return h[Rn++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};return browser=r,browser}var getRelayHandleKey_1,hasRequiredGetRelayHandleKey;function requireGetRelayHandleKey(){if(hasRequiredGetRelayHandleKey)return getRelayHandleKey_1;hasRequiredGetRelayHandleKey=1;var r=requireRelayDefaultHandleKey(),t=r.DEFAULT_HANDLE_KEY,n=requireBrowser();function i(s,a,l){return a&&a!==t?"__".concat(a,"_").concat(s):(l==null&&n(!1),"__".concat(l,"_").concat(s))}return getRelayHandleKey_1=i,getRelayHandleKey_1}var RelayConcreteNode_1,hasRequiredRelayConcreteNode;function requireRelayConcreteNode(){if(hasRequiredRelayConcreteNode)return RelayConcreteNode_1;hasRequiredRelayConcreteNode=1;var r={ACTOR_CHANGE:"ActorChange",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 stableCopy_1,hasRequiredStableCopy;function requireStableCopy(){if(hasRequiredStableCopy)return stableCopy_1;hasRequiredStableCopy=1;function r(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(r);for(var n=Object.keys(t).sort(),i={},s=0;s<n.length;s++)i[n[s]]=r(t[n[s]]);return i}return stableCopy_1=r,stableCopy_1}var RelayStoreUtils_1,hasRequiredRelayStoreUtils;function requireRelayStoreUtils(){if(hasRequiredRelayStoreUtils)return RelayStoreUtils_1;hasRequiredRelayStoreUtils=1;var r=requireInteropRequireDefault().default,t=r(requireToConsumableArray()),n=requireGetRelayHandleKey(),i=requireRelayConcreteNode(),s=requireStableCopy(),a=requireBrowser(),l=i.VARIABLE,v=i.LITERAL,on=i.OBJECT_VALUE,u=i.LIST_VALUE,h="__errors",Rn="__module_component_",D="__module_operation_";function Mn(Ci,Oi){if(Ci.kind===l)return Si(Ci.variableName,Oi);if(Ci.kind===v)return Ci.value;if(Ci.kind===on){var ki={};return Ci.fields.forEach(function(bi){ki[bi.name]=Mn(bi,Oi)}),ki}else if(Ci.kind===u){var Fi=[];return Ci.items.forEach(function(bi){bi!=null&&Fi.push(Mn(bi,Oi))}),Fi}}function Ln(Ci,Oi,ki){var Fi={};return ki&&(Fi[Ni.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT]=!0),Ci&&Ci.forEach(function(bi){Fi[bi.name]=Mn(bi,Oi)}),Fi}function jn(Ci,Oi){var ki=Ci.dynamicKey,Fi=Ci.handle,bi=Ci.key,Yn=Ci.name,In=Ci.args,Hn=Ci.filters,yi=n(Fi,bi,Yn),mi=null;return In&&Hn&&In.length!==0&&Hn.length!==0&&(mi=In.filter(function(_i){return Hn.indexOf(_i.name)>-1})),ki&&(mi=mi!=null?[ki].concat((0,t.default)(mi)):[ki]),mi===null?yi:Ri(yi,Ln(mi,Oi))}function hi(Ci,Oi){if(Ci.storageKey)return Ci.storageKey;var ki=vi(Ci),Fi=Ci.name;return ki&&ki.length!==0?Ri(Fi,Ln(ki,Oi)):Fi}function vi(Ci){if(Ci.kind==="RelayResolver"||Ci.kind==="RelayLiveResolver"){var Oi;if(Ci.args==null){var ki;return(ki=Ci.fragment)===null||ki===void 0?void 0:ki.args}return((Oi=Ci.fragment)===null||Oi===void 0?void 0:Oi.args)==null?Ci.args:Ci.args.concat(Ci.fragment.args)}var Fi=typeof Ci.args>"u"?void 0:Ci.args;return Fi}function gi(Ci,Oi){return Ri(Ci,s(Oi))}function Ri(Ci,Oi){if(!Oi)return Ci;var ki=[];for(var Fi in Oi)if(Oi.hasOwnProperty(Fi)){var bi=Oi[Fi];if(bi!=null){var Yn;ki.push(Fi+":"+((Yn=JSON.stringify(bi))!==null&&Yn!==void 0?Yn:"undefined"))}}return ki.length===0?Ci:Ci+"(".concat(ki.join(","),")")}function Si(Ci,Oi){return Oi.hasOwnProperty(Ci)||a(!1),s(Oi[Ci])}function Ai(Ci){return"".concat(Rn).concat(Ci)}function Ii(Ci){return"".concat(D).concat(Ci)}var Ni={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,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",formatStorageKey:Ri,getArgumentValue:Mn,getArgumentValues:Ln,getHandleStorageKey:jn,getStorageKey:hi,getStableStorageKey:gi,getModuleComponentKey:Ai,getModuleOperationKey:Ii};return RelayStoreUtils_1=Ni,RelayStoreUtils_1}var ConnectionInterface_1,hasRequiredConnectionInterface;function requireConnectionInterface(){if(hasRequiredConnectionInterface)return ConnectionInterface_1;hasRequiredConnectionInterface=1;var r={after:!0,before:!0,find:!0,first:!0,last:!0,surrounds:!0},t={CURSOR:"cursor",EDGES:"edges",END_CURSOR:"endCursor",HAS_NEXT_PAGE:"hasNextPage",HAS_PREV_PAGE:"hasPreviousPage",NODE:"node",PAGE_INFO_TYPE:"PageInfo",PAGE_INFO:"pageInfo",START_CURSOR:"startCursor"},n={inject:function(s){t=s},get:function(){return t},isConnectionCall:function(s){return r.hasOwnProperty(s.name)}};return ConnectionInterface_1=n,ConnectionInterface_1}var emptyFunction_1,hasRequiredEmptyFunction;function requireEmptyFunction(){if(hasRequiredEmptyFunction)return emptyFunction_1;hasRequiredEmptyFunction=1;function r(n){return function(){return n}}var t=function(){};return t.thatReturns=r,t.thatReturnsFalse=r(!1),t.thatReturnsTrue=r(!0),t.thatReturnsNull=r(null),t.thatReturnsThis=function(){return this},t.thatReturnsArgument=function(n){return n},emptyFunction_1=t,emptyFunction_1}var warning_1,hasRequiredWarning;function requireWarning(){if(hasRequiredWarning)return warning_1;hasRequiredWarning=1;var r=requireEmptyFunction(),t=r;return warning_1=t,warning_1}var ConnectionHandler,hasRequiredConnectionHandler;function requireConnectionHandler(){if(hasRequiredConnectionHandler)return ConnectionHandler;hasRequiredConnectionHandler=1;var r=requireClientID(),t=r.generateClientID,n=requireRelayStoreUtils(),i=n.getStableStorageKey,s=requireGetRelayHandleKey(),a=requireConnectionInterface(),l=requireBrowser();requireWarning();var v="connection",on="__connection_next_edge_index";function u(gi,Ri){var Si=gi.get(Ri.dataID);if(Si){var Ai=a.get(),Ii=Ai.EDGES,Ni=Ai.END_CURSOR,Ci=Ai.HAS_NEXT_PAGE,Oi=Ai.HAS_PREV_PAGE,ki=Ai.PAGE_INFO,Fi=Ai.PAGE_INFO_TYPE,bi=Ai.START_CURSOR,Yn=Si.getLinkedRecord(Ri.fieldKey),In=Yn&&Yn.getLinkedRecord(ki);if(!Yn){Si.setValue(null,Ri.handleKey);return}var Hn=t(Si.getDataID(),Ri.handleKey),yi=Si.getLinkedRecord(Ri.handleKey),mi=yi??gi.get(Hn),_i=mi&&mi.getLinkedRecord(ki);if(mi){yi==null&&Si.setLinkedRecord(mi,Ri.handleKey);var xi=mi,Wn=Yn.getLinkedRecords(Ii);Wn&&(Wn=Wn.map(function(ea){return hi(gi,xi,ea)}));var Ti=xi.getLinkedRecords(Ii),qi=xi.getLinkedRecord(ki);xi.copyFieldsFrom(Yn),Ti&&xi.setLinkedRecords(Ti,Ii),qi&&xi.setLinkedRecord(qi,ki);var Vi=[],ji=Ri.args;if(Ti&&Wn)if(ji.after!=null){var Bi,Pi=(Bi=_i)===null||Bi===void 0?void 0:Bi.getValue(Ni),zi=In?.getValue(Ni),Hi=_i&&ji.after===Pi,Ui=_i&&Pi===zi;if(Hi||Ui){var Mi=new Set;vi(Ti,Vi,Mi),vi(Wn,Vi,Mi)}else return}else if(ji.before!=null)if(_i&&ji.before===_i.getValue(bi)){var Ki=new Set;vi(Wn,Vi,Ki),vi(Ti,Vi,Ki)}else return;else Vi=Wn;else Wn?Vi=Wn:Vi=Ti;if(Vi!=null&&Vi!==Ti&&xi.setLinkedRecords(Vi,Ii),_i&&In){if(ji.after==null&&ji.before==null)_i.copyFieldsFrom(In);else if(ji.before!=null||ji.after==null&&ji.last){_i.setValue(!!In.getValue(Oi),Oi);var Qi=In.getValue(bi);typeof Qi=="string"&&_i.setValue(Qi,bi)}else if(ji.after!=null||ji.before==null&&ji.first){_i.setValue(!!In.getValue(Ci),Ci);var Yi=In.getValue(Ni);typeof Yi=="string"&&_i.setValue(Yi,Ni)}}}else{var wi=gi.create(Hn,Yn.getType());wi.setValue(0,on),wi.copyFieldsFrom(Yn);var Ei=Yn.getLinkedRecords(Ii);Ei&&(Ei=Ei.map(function(ea){return hi(gi,wi,ea)}),wi.setLinkedRecords(Ei,Ii)),Si.setLinkedRecord(wi,Ri.handleKey),_i=gi.create(t(wi.getDataID(),ki),Fi),_i.setValue(!1,Ci),_i.setValue(!1,Oi),_i.setValue(null,Ni),_i.setValue(null,bi),In&&_i.copyFieldsFrom(In),wi.setLinkedRecord(_i,ki)}}}function h(gi,Ri,Si){var Ai=s(v,Ri,null);return gi.getLinkedRecord(Ai,Si)}function Rn(gi,Ri,Si){var Ai=s(v,Ri,null),Ii=i(Ai,Si);return t(gi,Ii)}function D(gi,Ri,Si){var Ai=a.get(),Ii=Ai.CURSOR,Ni=Ai.EDGES,Ci=gi.getLinkedRecords(Ni);if(!Ci){gi.setLinkedRecords([Ri],Ni);return}var Oi;if(Si==null)Oi=Ci.concat(Ri);else{Oi=[];for(var ki=!1,Fi=0;Fi<Ci.length;Fi++){var bi=Ci[Fi];if(Oi.push(bi),bi!=null){var Yn=bi.getValue(Ii);Si===Yn&&(Oi.push(Ri),ki=!0)}}ki||Oi.push(Ri)}gi.setLinkedRecords(Oi,Ni)}function Mn(gi,Ri,Si,Ai){var Ii=a.get(),Ni=Ii.NODE,Ci=t(Ri.getDataID(),Si.getDataID()),Oi=gi.get(Ci);return Oi||(Oi=gi.create(Ci,Ai)),Oi.setLinkedRecord(Si,Ni),Oi.getValue("cursor")==null&&Oi.setValue(null,"cursor"),Oi}function Ln(gi,Ri,Si){var Ai=a.get(),Ii=Ai.CURSOR,Ni=Ai.EDGES,Ci=gi.getLinkedRecords(Ni);if(!Ci){gi.setLinkedRecords([Ri],Ni);return}var Oi;if(Si==null)Oi=[Ri].concat(Ci);else{Oi=[];for(var ki=!1,Fi=0;Fi<Ci.length;Fi++){var bi=Ci[Fi];if(bi!=null){var Yn=bi.getValue(Ii);Si===Yn&&(Oi.push(Ri),ki=!0)}Oi.push(bi)}ki||Oi.unshift(Ri)}gi.setLinkedRecords(Oi,Ni)}function jn(gi,Ri){var Si=a.get(),Ai=Si.EDGES,Ii=Si.NODE,Ni=gi.getLinkedRecords(Ai);if(Ni){for(var Ci,Oi=0;Oi<Ni.length;Oi++){var ki=Ni[Oi],Fi=ki&&ki.getLinkedRecord(Ii);Fi!=null&&Fi.getDataID()===Ri?Ci===void 0&&(Ci=Ni.slice(0,Oi)):Ci!==void 0&&Ci.push(ki)}Ci!==void 0&&gi.setLinkedRecords(Ci,Ai)}}function hi(gi,Ri,Si){if(Si==null)return Si;var Ai=a.get(),Ii=Ai.EDGES,Ni=Ri.getValue(on);typeof Ni!="number"&&l(!1);var Ci=t(Ri.getDataID(),Ii,Ni),Oi=gi.create(Ci,Si.getType());return Oi.copyFieldsFrom(Si),Oi.getValue("cursor")==null&&Oi.setValue(null,"cursor"),Ri.setValue(Ni+1,on),Oi}function vi(gi,Ri,Si){for(var Ai=a.get(),Ii=Ai.NODE,Ni=0;Ni<gi.length;Ni++){var Ci=gi[Ni];if(Ci){var Oi=Ci.getLinkedRecord(Ii),ki=Oi&&Oi.getDataID();if(ki){if(Si.has(ki))continue;Si.add(ki)}Ri.push(Ci)}}}return ConnectionHandler={buildConnectionEdge:hi,createEdge:Mn,deleteNode:jn,getConnection:h,getConnectionID:Rn,insertEdgeAfter:D,insertEdgeBefore:Ln,update:u},ConnectionHandler}var createForOfIteratorHelper={exports:{}},hasRequiredCreateForOfIteratorHelper;function requireCreateForOfIteratorHelper(){return hasRequiredCreateForOfIteratorHelper||(hasRequiredCreateForOfIteratorHelper=1,function(r){var t=requireUnsupportedIterableToArray();function n(i,s){var a=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!a){if(Array.isArray(i)||(a=t(i))||s&&i&&typeof i.length=="number"){a&&(i=a);var l=0,v=function(){};return{s:v,n:function(){return l>=i.length?{done:!0}:{done:!1,value:i[l++]}},e:function(D){throw D},f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
119
119
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var on=!0,u=!1,h;return{s:function(){a=a.call(i)},n:function(){var D=a.next();return on=D.done,D},e:function(D){u=!0,h=D},f:function(){try{!on&&a.return!=null&&a.return()}finally{if(u)throw h}}}}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(createForOfIteratorHelper)),createForOfIteratorHelper.exports}var MutationHandlers,hasRequiredMutationHandlers;function requireMutationHandlers(){if(hasRequiredMutationHandlers)return MutationHandlers;hasRequiredMutationHandlers=1;var r=requireInteropRequireDefault().default,t=r(requireCreateForOfIteratorHelper()),n=requireConnectionHandler(),i=requireConnectionInterface(),s=requireBrowser(),a=requireWarning(),l={update:function(jn,hi){var vi=jn.get(hi.dataID);if(vi!=null){var gi=vi.getValue(hi.fieldKey);typeof gi=="string"?jn.delete(gi):Array.isArray(gi)&&gi.forEach(function(Ri){typeof Ri=="string"&&jn.delete(Ri)})}}},v={update:function(jn,hi){var vi=jn.get(hi.dataID);if(vi!=null){var gi=hi.handleArgs.connections;gi==null&&s(!1);var Ri=vi.getValue(hi.fieldKey),Si=Array.isArray(Ri)?Ri:[Ri];Si.forEach(function(Ai){if(typeof Ai=="string"){var Ii=(0,t.default)(gi),Ni;try{for(Ii.s();!(Ni=Ii.n()).done;){var Ci=Ni.value,Oi=jn.get(Ci);Oi!=null&&n.deleteNode(Oi,Ai)}}catch(ki){Ii.e(ki)}finally{Ii.f()}}})}}},on={update:D(n.insertEdgeAfter)},u={update:D(n.insertEdgeBefore)},h={update:Mn(n.insertEdgeAfter)},Rn={update:Mn(n.insertEdgeBefore)};function D(Ln){return function(jn,hi){var vi,gi=jn.get(hi.dataID);if(gi!=null){var Ri=hi.handleArgs.connections;Ri==null&&s(!1);var Si,Ai;try{Si=gi.getLinkedRecord(hi.fieldKey)}catch{}if(!Si)try{Ai=gi.getLinkedRecords(hi.fieldKey)}catch{}if(!(Si==null&&Ai==null)){var Ii=i.get(),Ni=Ii.NODE,Ci=Ii.EDGES,Oi=(vi=Ai)!==null&&vi!==void 0?vi:[Si],ki=(0,t.default)(Oi),Fi;try{var bi=function(){var yi=Fi.value;if(yi==null)return"continue";var mi=yi.getLinkedRecord("node");if(!mi)return"continue";var _i=mi.getDataID(),wi=(0,t.default)(Ri),Ei;try{for(wi.s();!(Ei=wi.n()).done;){var xi=Ei.value,Wn=jn.get(xi);if(Wn!=null){var Ti=(Yn=Wn.getLinkedRecords(Ci))===null||Yn===void 0?void 0:Yn.some(function(Vi){var ji;return(Vi==null||(ji=Vi.getLinkedRecord(Ni))===null||ji===void 0?void 0:ji.getDataID())===_i});if(!Ti){var qi=n.buildConnectionEdge(jn,Wn,yi);qi==null&&s(!1),Ln(Wn,qi)}}}}catch(Vi){wi.e(Vi)}finally{wi.f()}};for(ki.s();!(Fi=ki.n()).done;)var Yn,In=bi()}catch(Hn){ki.e(Hn)}finally{ki.f()}}}}}function Mn(Ln){return function(jn,hi){var vi,gi=jn.get(hi.dataID);if(gi!=null){var Ri=hi.handleArgs,Si=Ri.connections,Ai=Ri.edgeTypeName;Si==null&&s(!1),Ai==null&&s(!1);var Ii,Ni;try{Ii=gi.getLinkedRecord(hi.fieldKey)}catch{}if(!Ii)try{Ni=gi.getLinkedRecords(hi.fieldKey)}catch{}if(!(Ii==null&&Ni==null)){var Ci=i.get(),Oi=Ci.NODE,ki=Ci.EDGES,Fi=(vi=Ni)!==null&&vi!==void 0?vi:[Ii],bi=(0,t.default)(Fi),Yn;try{var In=function(){var _i=Yn.value;if(_i==null)return"continue";var wi=_i.getDataID(),Ei=(0,t.default)(Si),xi;try{for(Ei.s();!(xi=Ei.n()).done;){var Wn=xi.value,Ti=jn.get(Wn);if(Ti!=null){var qi=(Hn=Ti.getLinkedRecords(ki))===null||Hn===void 0?void 0:Hn.some(function(ji){var Bi;return(ji==null||(Bi=ji.getLinkedRecord(Oi))===null||Bi===void 0?void 0:Bi.getDataID())===wi});if(!qi){var Vi=n.createEdge(jn,Ti,_i,Ai);Vi==null&&s(!1),Ln(Ti,Vi)}}}}catch(ji){Ei.e(ji)}finally{Ei.f()}};for(bi.s();!(Yn=bi.n()).done;)var Hn,yi=In()}catch(mi){bi.e(mi)}finally{bi.f()}}}}}return MutationHandlers={AppendEdgeHandler:on,DeleteRecordHandler:l,PrependEdgeHandler:u,AppendNodeHandler:h,PrependNodeHandler:Rn,DeleteEdgeHandler:v},MutationHandlers}var RelayDefaultHandlerProvider_1,hasRequiredRelayDefaultHandlerProvider;function requireRelayDefaultHandlerProvider(){if(hasRequiredRelayDefaultHandlerProvider)return RelayDefaultHandlerProvider_1;hasRequiredRelayDefaultHandlerProvider=1;var r=requireConnectionHandler(),t=requireMutationHandlers(),n=requireBrowser();function i(s){switch(s){case"connection":return r;case"deleteRecord":return t.DeleteRecordHandler;case"deleteEdge":return t.DeleteEdgeHandler;case"appendEdge":return t.AppendEdgeHandler;case"prependEdge":return t.PrependEdgeHandler;case"appendNode":return t.AppendNodeHandler;case"prependNode":return t.PrependNodeHandler}n(!1)}return RelayDefaultHandlerProvider_1=i,RelayDefaultHandlerProvider_1}var GraphQLTag,hasRequiredGraphQLTag;function requireGraphQLTag(){if(hasRequiredGraphQLTag)return GraphQLTag;hasRequiredGraphQLTag=1;var r=requireRelayConcreteNode(),t=requireBrowser();requireWarning();function n(Ln){t(!1)}function i(Ln){var jn=Ln;return typeof jn=="function"?jn=jn():jn.default&&(jn=jn.default),jn}function s(Ln){var jn=i(Ln);return typeof jn=="object"&&jn!==null&&jn.kind===r.FRAGMENT}function a(Ln){var jn=i(Ln);return typeof jn=="object"&&jn!==null&&jn.kind===r.REQUEST}function l(Ln){var jn=i(Ln);return typeof jn=="object"&&jn!==null&&jn.kind===r.UPDATABLE_QUERY}function v(Ln){var jn=i(Ln);return typeof jn=="object"&&jn!==null&&jn.kind===r.INLINE_DATA_FRAGMENT}function on(Ln){var jn=i(Ln);return s(jn)||t(!1),jn}function u(Ln){var jn,hi=on(Ln),vi=(jn=hi.metadata)===null||jn===void 0?void 0:jn.refetch,gi=vi?.connection;return vi===null||typeof vi!="object"||gi===null||typeof gi!="object"?null:hi}function h(Ln){var jn,hi=on(Ln),vi=(jn=hi.metadata)===null||jn===void 0?void 0:jn.refetch;return vi===null||typeof vi!="object"?null:hi}function Rn(Ln){var jn=i(Ln);return a(jn)||t(!1),jn}function D(Ln){var jn=i(Ln);return l(jn)||t(!1),jn}function Mn(Ln){var jn=i(Ln);return v(jn)||t(!1),jn}return GraphQLTag={getFragment:on,getNode:i,getPaginationFragment:u,getRefetchableFragment:h,getRequest:Rn,getUpdatableQuery:D,getInlineDataFragment:Mn,graphql:n,isFragment:s,isRequest:a,isUpdatableQuery:l,isInlineDataFragment:v},GraphQLTag}var isRelayModernEnvironment_1,hasRequiredIsRelayModernEnvironment;function requireIsRelayModernEnvironment(){if(hasRequiredIsRelayModernEnvironment)return isRelayModernEnvironment_1;hasRequiredIsRelayModernEnvironment=1;function r(t){return!!(t&&t["@@RelayModernEnvironment"])}return isRelayModernEnvironment_1=r,isRelayModernEnvironment_1}var deepFreeze_1,hasRequiredDeepFreeze;function requireDeepFreeze(){if(hasRequiredDeepFreeze)return deepFreeze_1;hasRequiredDeepFreeze=1;function r(n){return t(n)&&(Object.freeze(n),Object.getOwnPropertyNames(n).forEach(function(i){var s=n[i];s&&typeof s=="object"&&!Object.isFrozen(s)&&r(s)})),n}function t(n){return n!=null&&(Array.isArray(n)||typeof n=="object"&&n.constructor===Object)}return deepFreeze_1=r,deepFreeze_1}var getRequestIdentifier_1,hasRequiredGetRequestIdentifier;function requireGetRequestIdentifier(){if(hasRequiredGetRequestIdentifier)return getRequestIdentifier_1;hasRequiredGetRequestIdentifier=1;var r=requireStableCopy(),t=requireBrowser();function n(i,s){var a=i.cacheID!=null?i.cacheID:i.id;return a==null&&t(!1),a+JSON.stringify(r(s))}return getRequestIdentifier_1=n,getRequestIdentifier_1}var objectSpread2={exports:{}},defineProperty={exports:{}},toPropertyKey={exports:{}},_typeof={exports:{}},hasRequired_typeof;function require_typeof(){return hasRequired_typeof||(hasRequired_typeof=1,function(r){function t(n){"@babel/helpers - typeof";return r.exports=t=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,t(n)}r.exports=t,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 t=require_typeof().default;function n(i,s){if(t(i)!="object"||!i)return i;var a=i[Symbol.toPrimitive];if(a!==void 0){var l=a.call(i,s||"default");if(t(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(i)}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(toPrimitive)),toPrimitive.exports}var hasRequiredToPropertyKey;function requireToPropertyKey(){return hasRequiredToPropertyKey||(hasRequiredToPropertyKey=1,function(r){var t=require_typeof().default,n=requireToPrimitive();function i(s){var a=n(s,"string");return t(a)=="symbol"?a:a+""}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 t=requireToPropertyKey();function n(i,s,a){return s=t(s),s in i?Object.defineProperty(i,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[s]=a,i}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}(defineProperty)),defineProperty.exports}var hasRequiredObjectSpread2;function requireObjectSpread2(){return hasRequiredObjectSpread2||(hasRequiredObjectSpread2=1,function(r){var t=requireDefineProperty();function n(s,a){var l=Object.keys(s);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(s);a&&(v=v.filter(function(on){return Object.getOwnPropertyDescriptor(s,on).enumerable})),l.push.apply(l,v)}return l}function i(s){for(var a=1;a<arguments.length;a++){var l=arguments[a]!=null?arguments[a]:{};a%2?n(Object(l),!0).forEach(function(v){t(s,v,l[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(l)):n(Object(l)).forEach(function(v){Object.defineProperty(s,v,Object.getOwnPropertyDescriptor(l,v))})}return s}r.exports=i,r.exports.__esModule=!0,r.exports.default=r.exports}(objectSpread2)),objectSpread2.exports}var RelayConcreteVariables,hasRequiredRelayConcreteVariables;function requireRelayConcreteVariables(){if(hasRequiredRelayConcreteVariables)return RelayConcreteVariables;hasRequiredRelayConcreteVariables=1;var r=requireInteropRequireDefault().default,t=r(requireObjectSpread2()),n=requireRelayStoreUtils(),i=n.getArgumentValues,s=requireBrowser();function a(on,u,h){if(on.argumentDefinitions==null)return h;var Rn;return on.argumentDefinitions.forEach(function(D){if(!h.hasOwnProperty(D.name))switch(Rn=Rn||(0,t.default)({},h),D.kind){case"LocalArgument":Rn[D.name]=D.defaultValue;break;case"RootArgument":if(!u.hasOwnProperty(D.name)){Rn[D.name]=void 0;break}Rn[D.name]=u[D.name];break;default:s(!1)}}),Rn||h}function l(on,u,h){var Rn={};return on.argumentDefinitions.forEach(function(D){var Mn=D.defaultValue;h[D.name]!=null&&(Mn=h[D.name]),Rn[D.name]=Mn}),u!=null&&Object.keys(u).forEach(function(D){Rn[D]=u[D].get()}),Rn}function v(on,u,h){if(u==null)return on;var Rn=(0,t.default)({},on),D=h?i(h,on):{};return u.forEach(function(Mn){var Ln,jn=(Ln=D[Mn.name])!==null&&Ln!==void 0?Ln:Mn.defaultValue;Rn[Mn.name]=jn}),Rn}return RelayConcreteVariables={getLocalVariables:v,getFragmentVariables:a,getOperationVariables:l},RelayConcreteVariables}var areEqual_1,hasRequiredAreEqual;function requireAreEqual(){if(hasRequiredAreEqual)return areEqual_1;hasRequiredAreEqual=1;var r=[],t=[];/**
|
|
120
120
|
* Checks if two values are equal. Values may be primitives, arrays, or objects.
|