@circle-fin/smart-contract-platform 10.1.0 → 10.3.0
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/README.md +8 -8
- package/dist/smart-contract-platform.cjs.js +26 -23
- package/dist/smart-contract-platform.es.js +26 -23
- package/dist/types/clients/configurations.d.ts +30 -29
- package/dist/types/clients/core.d.ts +2 -1
- package/dist/types/clients/smart-contract-platform.d.ts +64 -57
- package/dist/types/smart-contract-platform.d.ts +6 -1
- package/package.json +8 -7
|
@@ -1,43 +1,46 @@
|
|
|
1
|
-
import Na from"util";import _t,{Readable as tm}from"stream";import gp from"path";import bl from"http";import El from"https";import Cc from"url";import am from"fs";import tr,{randomUUID as rm}from"crypto";import nm from"assert";import xp from"tty";import im from"os";import ta from"zlib";import{EventEmitter as sm}from"events";function yp(e,t){return function(){return e.apply(t,arguments)}}const{toString:om}=Object.prototype,{getPrototypeOf:Cl}=Object,{iterator:Sc,toStringTag:bp}=Symbol,Tc=(e=>t=>{const r=om.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Pt=e=>(e=e.toLowerCase(),t=>Tc(t)===e),wc=e=>t=>typeof t===e,{isArray:La}=Array,Ua=wc("undefined");function ar(e){return e!==null&&!Ua(e)&&e.constructor!==null&&!Ua(e.constructor)&&ft(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ep=Pt("ArrayBuffer");function cm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ep(e.buffer),t}const lm=wc("string"),ft=wc("function"),Cp=wc("number"),rr=e=>e!==null&&typeof e=="object",um=e=>e===!0||e===!1,Ac=e=>{if(Tc(e)!=="object")return!1;const t=Cl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(bp in e)&&!(Sc in e)},pm=e=>{if(!rr(e)||ar(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},dm=Pt("Date"),fm=Pt("File"),mm=Pt("Blob"),hm=Pt("FileList"),vm=e=>rr(e)&&ft(e.pipe),gm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ft(e.append)&&((t=Tc(e))==="formdata"||t==="object"&&ft(e.toString)&&e.toString()==="[object FormData]"))},xm=Pt("URLSearchParams"),[ym,bm,Em,Cm]=["ReadableStream","Request","Response","Headers"].map(Pt),Sm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function nr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let a,n;if(typeof e!="object"&&(e=[e]),La(e))for(a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else{if(ar(e))return;const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let o;for(a=0;a<i;a++)o=s[a],t.call(null,e[o],o,e)}}function Sp(e,t){if(ar(e))return null;t=t.toLowerCase();const r=Object.keys(e);let a=r.length,n;for(;a-- >0;)if(n=r[a],t===n.toLowerCase())return n;return null}const va=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Tp=e=>!Ua(e)&&e!==va;function Sl(){const{caseless:e,skipUndefined:t}=Tp(this)&&this||{},r={},a=(n,s)=>{const i=e&&Sp(r,s)||s;Ac(r[i])&&Ac(n)?r[i]=Sl(r[i],n):Ac(n)?r[i]=Sl({},n):La(n)?r[i]=n.slice():(!t||!Ua(n))&&(r[i]=n)};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&nr(arguments[n],a);return r}const Tm=(e,t,r,{allOwnKeys:a}={})=>(nr(t,(n,s)=>{r&&ft(n)?e[s]=yp(n,r):e[s]=n},{allOwnKeys:a}),e),wm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Am=(e,t,r,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Im=(e,t,r,a)=>{let n,s,i;const o={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),s=n.length;s-- >0;)i=n[s],(!a||a(i,e,t))&&!o[i]&&(t[i]=e[i],o[i]=!0);e=r!==!1&&Cl(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Bm=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const a=e.indexOf(t,r);return a!==-1&&a===r},_m=e=>{if(!e)return null;if(La(e))return e;let t=e.length;if(!Cp(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Rm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Cl(Uint8Array)),km=(e,t)=>{const a=(e&&e[Sc]).call(e);let n;for(;(n=a.next())&&!n.done;){const s=n.value;t.call(e,s[0],s[1])}},Nm=(e,t)=>{let r;const a=[];for(;(r=e.exec(t))!==null;)a.push(r);return a},Lm=Pt("HTMLFormElement"),Um=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,a,n){return a.toUpperCase()+n}),wp=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Dm=Pt("RegExp"),Ap=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),a={};nr(r,(n,s)=>{let i;(i=t(n,s,e))!==!1&&(a[s]=i||n)}),Object.defineProperties(e,a)},Pm=e=>{Ap(e,(t,r)=>{if(ft(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const a=e[r];if(ft(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Om=(e,t)=>{const r={},a=n=>{n.forEach(s=>{r[s]=!0})};return La(e)?a(e):a(String(e).split(t)),r},Fm=()=>{},Mm=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Vm(e){return!!(e&&ft(e.append)&&e[bp]==="FormData"&&e[Sc])}const qm=e=>{const t=new Array(10),r=(a,n)=>{if(rr(a)){if(t.indexOf(a)>=0)return;if(ar(a))return a;if(!("toJSON"in a)){t[n]=a;const s=La(a)?[]:{};return nr(a,(i,o)=>{const c=r(i,n+1);!Ua(c)&&(s[o]=c)}),t[n]=void 0,s}}return a};return r(e,0)},jm=Pt("AsyncFunction"),Km=e=>e&&(rr(e)||ft(e))&&ft(e.then)&&ft(e.catch),Ip=((e,t)=>e?setImmediate:t?((r,a)=>(va.addEventListener("message",({source:n,data:s})=>{n===va&&s===r&&a.length&&a.shift()()},!1),n=>{a.push(n),va.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ft(va.postMessage)),zm=typeof queueMicrotask<"u"?queueMicrotask.bind(va):typeof process<"u"&&process.nextTick||Ip,Hm=e=>e!=null&&ft(e[Sc]);var A={isArray:La,isArrayBuffer:Ep,isBuffer:ar,isFormData:gm,isArrayBufferView:cm,isString:lm,isNumber:Cp,isBoolean:um,isObject:rr,isPlainObject:Ac,isEmptyObject:pm,isReadableStream:ym,isRequest:bm,isResponse:Em,isHeaders:Cm,isUndefined:Ua,isDate:dm,isFile:fm,isBlob:mm,isRegExp:Dm,isFunction:ft,isStream:vm,isURLSearchParams:xm,isTypedArray:Rm,isFileList:hm,forEach:nr,merge:Sl,extend:Tm,trim:Sm,stripBOM:wm,inherits:Am,toFlatObject:Im,kindOf:Tc,kindOfTest:Pt,endsWith:Bm,toArray:_m,forEachEntry:km,matchAll:Nm,isHTMLForm:Lm,hasOwnProperty:wp,hasOwnProp:wp,reduceDescriptors:Ap,freezeMethods:Pm,toObjectSet:Om,toCamelCase:Um,noop:Fm,toFiniteNumber:Mm,findKey:Sp,global:va,isContextDefined:Tp,isSpecCompliantForm:Vm,toJSONObject:qm,isAsyncFn:jm,isThenable:Km,setImmediate:Ip,asap:zm,isIterable:Hm};function j(e,t,r,a,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),a&&(this.request=a),n&&(this.response=n,this.status=n.status?n.status:null)}A.inherits(j,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.status}}});const Bp=j.prototype,_p={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{_p[e]={value:e}}),Object.defineProperties(j,_p),Object.defineProperty(Bp,"isAxiosError",{value:!0}),j.from=(e,t,r,a,n,s)=>{const i=Object.create(Bp);A.toFlatObject(e,i,function(u){return u!==Error.prototype},l=>l!=="isAxiosError");const o=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return j.call(i,o,c,r,a,n),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",s&&Object.assign(i,s),i};var $m=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kp=_t.Stream,Gm=Na,Qm=Ot;function Ot(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}Gm.inherits(Ot,kp),Ot.create=function(e,t){var r=new this;t=t||{};for(var a in t)r[a]=t[a];r.source=e;var n=e.emit;return e.emit=function(){return r._handleEmit(arguments),n.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r},Object.defineProperty(Ot.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),Ot.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},Ot.prototype.resume=function(){this._released||this.release(),this.source.resume()},Ot.prototype.pause=function(){this.source.pause()},Ot.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},Ot.prototype.pipe=function(){var e=kp.prototype.pipe.apply(this,arguments);return this.resume(),e},Ot.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)},Ot.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}};var Wm=Na,Np=_t.Stream,Lp=Qm,Xm=Ne;function Ne(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}Wm.inherits(Ne,Np),Ne.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t},Ne.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)},Ne.prototype.append=function(e){var t=Ne.isStreamLike(e);if(t){if(!(e instanceof Lp)){var r=Lp.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},Ne.prototype.pipe=function(e,t){return Np.prototype.pipe.call(this,e,t),this.resume(),e},Ne.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}},Ne.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(r){var a=Ne.isStreamLike(r);a&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))},Ne.prototype._pipeNext=function(e){this._currentStream=e;var t=Ne.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()},Ne.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})},Ne.prototype.write=function(e){this.emit("data",e)},Ne.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))},Ne.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")},Ne.prototype.end=function(){this._reset(),this.emit("end")},Ne.prototype.destroy=function(){this._reset(),this.emit("close")},Ne.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},Ne.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},Ne.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},Ne.prototype._emitError=function(e){this._reset(),this.emit("error",e)};var Up={},Ym={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};/*!
|
|
1
|
+
import ha from"util";import dt,{Readable as nm}from"stream";import xp from"path";import bl from"http";import El from"https";import Cl from"url";import im from"fs";import er,{randomUUID as sm}from"crypto";import yp from"http2";import om from"assert";import bp from"tty";import cm from"os";import ta from"zlib";import{EventEmitter as lm}from"events";function Ep(e,t){return function(){return e.apply(t,arguments)}}const{toString:um}=Object.prototype,{getPrototypeOf:Sl}=Object,{iterator:Cc,toStringTag:Cp}=Symbol,Sc=(e=>t=>{const r=um.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ot=e=>(e=e.toLowerCase(),t=>Sc(t)===e),Tc=e=>t=>typeof t===e,{isArray:La}=Array,Ua=Tc("undefined");function tr(e){return e!==null&&!Ua(e)&&e.constructor!==null&&!Ua(e.constructor)&&ft(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Sp=Ot("ArrayBuffer");function pm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Sp(e.buffer),t}const dm=Tc("string"),ft=Tc("function"),Tp=Tc("number"),ar=e=>e!==null&&typeof e=="object",fm=e=>e===!0||e===!1,wc=e=>{if(Sc(e)!=="object")return!1;const t=Sl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Cp in e)&&!(Cc in e)},mm=e=>{if(!ar(e)||tr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},hm=Ot("Date"),vm=Ot("File"),gm=e=>!!(e&&typeof e.uri<"u"),xm=e=>e&&typeof e.getParts<"u",ym=Ot("Blob"),bm=Ot("FileList"),Em=e=>ar(e)&&ft(e.pipe);function Cm(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const wp=Cm(),Ap=typeof wp.FormData<"u"?wp.FormData:void 0,Sm=e=>{let t;return e&&(Ap&&e instanceof Ap||ft(e.append)&&((t=Sc(e))==="formdata"||t==="object"&&ft(e.toString)&&e.toString()==="[object FormData]"))},Tm=Ot("URLSearchParams"),[wm,Am,Im,Bm]=["ReadableStream","Request","Response","Headers"].map(Ot),_m=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let a,n;if(typeof e!="object"&&(e=[e]),La(e))for(a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else{if(tr(e))return;const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let o;for(a=0;a<i;a++)o=s[a],t.call(null,e[o],o,e)}}function Ip(e,t){if(tr(e))return null;t=t.toLowerCase();const r=Object.keys(e);let a=r.length,n;for(;a-- >0;)if(n=r[a],t===n.toLowerCase())return n;return null}const va=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Bp=e=>!Ua(e)&&e!==va;function Tl(){const{caseless:e,skipUndefined:t}=Bp(this)&&this||{},r={},a=(n,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const i=e&&Ip(r,s)||s;wc(r[i])&&wc(n)?r[i]=Tl(r[i],n):wc(n)?r[i]=Tl({},n):La(n)?r[i]=n.slice():(!t||!Ua(n))&&(r[i]=n)};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&rr(arguments[n],a);return r}const Rm=(e,t,r,{allOwnKeys:a}={})=>(rr(t,(n,s)=>{r&&ft(n)?Object.defineProperty(e,s,{value:Ep(n,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{value:n,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:a}),e),km=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Nm=(e,t,r,a)=>{e.prototype=Object.create(t.prototype,a),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Lm=(e,t,r,a)=>{let n,s,i;const o={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),s=n.length;s-- >0;)i=n[s],(!a||a(i,e,t))&&!o[i]&&(t[i]=e[i],o[i]=!0);e=r!==!1&&Sl(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Um=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const a=e.indexOf(t,r);return a!==-1&&a===r},Dm=e=>{if(!e)return null;if(La(e))return e;let t=e.length;if(!Tp(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Pm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Sl(Uint8Array)),Om=(e,t)=>{const a=(e&&e[Cc]).call(e);let n;for(;(n=a.next())&&!n.done;){const s=n.value;t.call(e,s[0],s[1])}},Fm=(e,t)=>{let r;const a=[];for(;(r=e.exec(t))!==null;)a.push(r);return a},Mm=Ot("HTMLFormElement"),Vm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,a,n){return a.toUpperCase()+n}),_p=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),qm=Ot("RegExp"),Rp=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),a={};rr(r,(n,s)=>{let i;(i=t(n,s,e))!==!1&&(a[s]=i||n)}),Object.defineProperties(e,a)},jm=e=>{Rp(e,(t,r)=>{if(ft(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const a=e[r];if(ft(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Km=(e,t)=>{const r={},a=n=>{n.forEach(s=>{r[s]=!0})};return La(e)?a(e):a(String(e).split(t)),r},zm=()=>{},Hm=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function $m(e){return!!(e&&ft(e.append)&&e[Cp]==="FormData"&&e[Cc])}const Gm=e=>{const t=new Array(10),r=(a,n)=>{if(ar(a)){if(t.indexOf(a)>=0)return;if(tr(a))return a;if(!("toJSON"in a)){t[n]=a;const s=La(a)?[]:{};return rr(a,(i,o)=>{const c=r(i,n+1);!Ua(c)&&(s[o]=c)}),t[n]=void 0,s}}return a};return r(e,0)},Qm=Ot("AsyncFunction"),Wm=e=>e&&(ar(e)||ft(e))&&ft(e.then)&&ft(e.catch),kp=((e,t)=>e?setImmediate:t?((r,a)=>(va.addEventListener("message",({source:n,data:s})=>{n===va&&s===r&&a.length&&a.shift()()},!1),n=>{a.push(n),va.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ft(va.postMessage)),Ym=typeof queueMicrotask<"u"?queueMicrotask.bind(va):typeof process<"u"&&process.nextTick||kp,Xm=e=>e!=null&&ft(e[Cc]);var A={isArray:La,isArrayBuffer:Sp,isBuffer:tr,isFormData:Sm,isArrayBufferView:pm,isString:dm,isNumber:Tp,isBoolean:fm,isObject:ar,isPlainObject:wc,isEmptyObject:mm,isReadableStream:wm,isRequest:Am,isResponse:Im,isHeaders:Bm,isUndefined:Ua,isDate:hm,isFile:vm,isReactNativeBlob:gm,isReactNative:xm,isBlob:ym,isRegExp:qm,isFunction:ft,isStream:Em,isURLSearchParams:Tm,isTypedArray:Pm,isFileList:bm,forEach:rr,merge:Tl,extend:Rm,trim:_m,stripBOM:km,inherits:Nm,toFlatObject:Lm,kindOf:Sc,kindOfTest:Ot,endsWith:Um,toArray:Dm,forEachEntry:Om,matchAll:Fm,isHTMLForm:Mm,hasOwnProperty:_p,hasOwnProp:_p,reduceDescriptors:Rp,freezeMethods:jm,toObjectSet:Km,toCamelCase:Vm,noop:zm,toFiniteNumber:Hm,findKey:Ip,global:va,isContextDefined:Bp,isSpecCompliantForm:$m,toJSONObject:Gm,isAsyncFn:Qm,isThenable:Wm,setImmediate:kp,asap:Ym,isIterable:Xm};let F=class am extends Error{static from(t,r,a,n,s,i){const o=new am(t.message,r||t.code,a,n,s);return o.cause=t,o.name=t.name,t.status!=null&&o.status==null&&(o.status=t.status),i&&Object.assign(o,i),o}constructor(t,r,a,n,s){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),a&&(this.config=a),n&&(this.request=n),s&&(this.response=s,this.status=s.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.status}}};F.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",F.ERR_BAD_OPTION="ERR_BAD_OPTION",F.ECONNABORTED="ECONNABORTED",F.ETIMEDOUT="ETIMEDOUT",F.ERR_NETWORK="ERR_NETWORK",F.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",F.ERR_DEPRECATED="ERR_DEPRECATED",F.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",F.ERR_BAD_REQUEST="ERR_BAD_REQUEST",F.ERR_CANCELED="ERR_CANCELED",F.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",F.ERR_INVALID_URL="ERR_INVALID_URL";var Jm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Np(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lp=dt.Stream,Zm=ha,eh=Ft;function Ft(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}Zm.inherits(Ft,Lp),Ft.create=function(e,t){var r=new this;t=t||{};for(var a in t)r[a]=t[a];r.source=e;var n=e.emit;return e.emit=function(){return r._handleEmit(arguments),n.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r},Object.defineProperty(Ft.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),Ft.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},Ft.prototype.resume=function(){this._released||this.release(),this.source.resume()},Ft.prototype.pause=function(){this.source.pause()},Ft.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},Ft.prototype.pipe=function(){var e=Lp.prototype.pipe.apply(this,arguments);return this.resume(),e},Ft.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)},Ft.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}};var th=ha,Up=dt.Stream,Dp=eh,ah=Le;function Le(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}th.inherits(Le,Up),Le.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t},Le.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)},Le.prototype.append=function(e){var t=Le.isStreamLike(e);if(t){if(!(e instanceof Dp)){var r=Dp.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},Le.prototype.pipe=function(e,t){return Up.prototype.pipe.call(this,e,t),this.resume(),e},Le.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}},Le.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(r){var a=Le.isStreamLike(r);a&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))},Le.prototype._pipeNext=function(e){this._currentStream=e;var t=Le.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()},Le.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})},Le.prototype.write=function(e){this.emit("data",e)},Le.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))},Le.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")},Le.prototype.end=function(){this._reset(),this.emit("end")},Le.prototype.destroy=function(){this._reset(),this.emit("close")},Le.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},Le.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},Le.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},Le.prototype._emitError=function(e){this._reset(),this.emit("error",e)};var Pp={},rh={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};/*!
|
|
2
2
|
* mime-db
|
|
3
3
|
* Copyright(c) 2014 Jonathan Ong
|
|
4
4
|
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
5
5
|
* MIT Licensed
|
|
6
|
-
*/var
|
|
6
|
+
*/var nh=rh;/*!
|
|
7
7
|
* mime-types
|
|
8
8
|
* Copyright(c) 2014 Jonathan Ong
|
|
9
9
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
10
10
|
* MIT Licensed
|
|
11
|
-
*/(function(e){var t=Jm,r=gp.extname,a=/^\s*([^;\s]*)(?:;|\s|$)/,n=/^text\//i;e.charset=s,e.charsets={lookup:s},e.contentType=i,e.extension=o,e.extensions=Object.create(null),e.lookup=c,e.types=Object.create(null),l(e.extensions,e.types);function s(u){if(!u||typeof u!="string")return!1;var p=a.exec(u),f=p&&t[p[1].toLowerCase()];return f&&f.charset?f.charset:p&&n.test(p[1])?"UTF-8":!1}function i(u){if(!u||typeof u!="string")return!1;var p=u.indexOf("/")===-1?e.lookup(u):u;if(!p)return!1;if(p.indexOf("charset")===-1){var f=e.charset(p);f&&(p+="; charset="+f.toLowerCase())}return p}function o(u){if(!u||typeof u!="string")return!1;var p=a.exec(u),f=p&&e.extensions[p[1].toLowerCase()];return!f||!f.length?!1:f[0]}function c(u){if(!u||typeof u!="string")return!1;var p=r("x."+u).toLowerCase().substr(1);return p&&e.types[p]||!1}function l(u,p){var f=["nginx","apache",void 0,"iana"];Object.keys(t).forEach(function(m){var y=t[m],b=y.extensions;if(!(!b||!b.length)){u[m]=b;for(var S=0;S<b.length;S++){var B=b[S];if(p[B]){var _=f.indexOf(t[p[B]].source),D=f.indexOf(y.source);if(p[B]!=="application/octet-stream"&&(_>D||_===D&&p[B].substr(0,12)==="application/"))continue}p[B]=m}}})}})(Up);var Zm=eh;function eh(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}var Dp=Zm,Pp=th;function th(e){var t=!1;return Dp(function(){t=!0}),function(a,n){t?e(a,n):Dp(function(){e(a,n)})}}var Op=ah;function ah(e){Object.keys(e.jobs).forEach(rh.bind(e)),e.jobs={}}function rh(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}var Fp=Pp,nh=Op,Mp=ih;function ih(e,t,r,a){var n=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[n]=sh(t,n,e[n],function(s,i){n in r.jobs&&(delete r.jobs[n],s?nh(r):r.results[n]=i,a(s,r.results))})}function sh(e,t,r,a){var n;return e.length==2?n=e(r,Fp(a)):n=e(r,t,Fp(a)),n}var Vp=oh;function oh(e,t){var r=!Array.isArray(e),a={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};return t&&a.keyedList.sort(r?t:function(n,s){return t(e[n],e[s])}),a}var ch=Op,lh=Pp,qp=uh;function uh(e){Object.keys(this.jobs).length&&(this.index=this.size,ch(this),lh(e)(null,this.results))}var ph=Mp,dh=Vp,fh=qp,mh=hh;function hh(e,t,r){for(var a=dh(e);a.index<(a.keyedList||e).length;)ph(e,t,a,function(n,s){if(n){r(n,s);return}if(Object.keys(a.jobs).length===0){r(null,a.results);return}}),a.index++;return fh.bind(a,r)}var Ic={exports:{}},jp=Mp,vh=Vp,gh=qp;Ic.exports=xh,Ic.exports.ascending=Kp,Ic.exports.descending=yh;function xh(e,t,r,a){var n=vh(e,r);return jp(e,t,n,function s(i,o){if(i){a(i,o);return}if(n.index++,n.index<(n.keyedList||e).length){jp(e,t,n,s);return}a(null,n.results)}),gh.bind(n,a)}function Kp(e,t){return e<t?-1:e>t?1:0}function yh(e,t){return-1*Kp(e,t)}var zp=Ic.exports,bh=zp,Eh=Ch;function Ch(e,t,r){return bh(e,t,null,r)}var Sh={parallel:mh,serial:Eh,serialOrdered:zp},Hp=Object,Th=Error,wh=EvalError,Ah=RangeError,Ih=ReferenceError,Bh=SyntaxError,Tl,$p;function wl(){return $p||($p=1,Tl=TypeError),Tl}var _h=URIError,Rh=Math.abs,kh=Math.floor,Nh=Math.max,Lh=Math.min,Uh=Math.pow,Dh=Math.round,Ph=Number.isNaN||function(t){return t!==t},Oh=Ph,Fh=function(t){return Oh(t)||t===0?t:t<0?-1:1},Mh=Object.getOwnPropertyDescriptor,Bc=Mh;if(Bc)try{Bc([],"length")}catch{Bc=null}var Gp=Bc,_c=Object.defineProperty||!1;if(_c)try{_c({},"a",{value:1})}catch{_c=!1}var Vh=_c,Al,Qp;function Wp(){return Qp||(Qp=1,Al=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),a=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;t[r]=n;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==n||o.enumerable!==!0)return!1}return!0}),Al}var Il,Xp;function qh(){if(Xp)return Il;Xp=1;var e=typeof Symbol<"u"&&Symbol,t=Wp();return Il=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Il}var Bl,Yp;function Jp(){return Yp||(Yp=1,Bl=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Bl}var _l,Zp;function ed(){if(Zp)return _l;Zp=1;var e=Hp;return _l=e.getPrototypeOf||null,_l}var jh="Function.prototype.bind called on incompatible ",Kh=Object.prototype.toString,zh=Math.max,Hh="[object Function]",td=function(t,r){for(var a=[],n=0;n<t.length;n+=1)a[n]=t[n];for(var s=0;s<r.length;s+=1)a[s+t.length]=r[s];return a},$h=function(t,r){for(var a=[],n=r||0,s=0;n<t.length;n+=1,s+=1)a[s]=t[n];return a},Gh=function(e,t){for(var r="",a=0;a<e.length;a+=1)r+=e[a],a+1<e.length&&(r+=t);return r},Qh=function(t){var r=this;if(typeof r!="function"||Kh.apply(r)!==Hh)throw new TypeError(jh+r);for(var a=$h(arguments,1),n,s=function(){if(this instanceof n){var u=r.apply(this,td(a,arguments));return Object(u)===u?u:this}return r.apply(t,td(a,arguments))},i=zh(0,r.length-a.length),o=[],c=0;c<i;c++)o[c]="$"+c;if(n=Function("binder","return function ("+Gh(o,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var l=function(){};l.prototype=r.prototype,n.prototype=new l,l.prototype=null}return n},Wh=Qh,Rc=Function.prototype.bind||Wh,Rl,ad;function kl(){return ad||(ad=1,Rl=Function.prototype.call),Rl}var Nl,rd;function nd(){return rd||(rd=1,Nl=Function.prototype.apply),Nl}var Ll,id;function Xh(){return id||(id=1,Ll=typeof Reflect<"u"&&Reflect&&Reflect.apply),Ll}var Ul,sd;function Yh(){if(sd)return Ul;sd=1;var e=Rc,t=nd(),r=kl(),a=Xh();return Ul=a||e.call(r,t),Ul}var Dl,od;function Jh(){if(od)return Dl;od=1;var e=Rc,t=wl(),r=kl(),a=Yh();return Dl=function(s){if(s.length<1||typeof s[0]!="function")throw new t("a function is required");return a(e,r,s)},Dl}var Pl,cd;function Zh(){if(cd)return Pl;cd=1;var e=Jh(),t=Gp,r;try{r=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var a=!!r&&t&&t(Object.prototype,"__proto__"),n=Object,s=n.getPrototypeOf;return Pl=a&&typeof a.get=="function"?e([a.get]):typeof s=="function"?function(o){return s(o==null?o:n(o))}:!1,Pl}var Ol,ld;function ev(){if(ld)return Ol;ld=1;var e=Jp(),t=ed(),r=Zh();return Ol=e?function(n){return e(n)}:t?function(n){if(!n||typeof n!="object"&&typeof n!="function")throw new TypeError("getProto: not an object");return t(n)}:r?function(n){return r(n)}:null,Ol}var tv=Function.prototype.call,av=Object.prototype.hasOwnProperty,rv=Rc,Fl=rv.call(tv,av),ae,nv=Hp,iv=Th,sv=wh,ov=Ah,cv=Ih,Da=Bh,Pa=wl(),lv=_h,uv=Rh,pv=kh,dv=Nh,fv=Lh,mv=Uh,hv=Dh,vv=Fh,ud=Function,Ml=function(e){try{return ud('"use strict"; return ('+e+").constructor;")()}catch{}},ir=Gp,gv=Vh,Vl=function(){throw new Pa},xv=ir?function(){try{return arguments.callee,Vl}catch{try{return ir(arguments,"callee").get}catch{return Vl}}}():Vl,Oa=qh()(),Me=ev(),yv=ed(),bv=Jp(),pd=nd(),sr=kl(),Fa={},Ev=typeof Uint8Array>"u"||!Me?ae:Me(Uint8Array),ga={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ae:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ae:ArrayBuffer,"%ArrayIteratorPrototype%":Oa&&Me?Me([][Symbol.iterator]()):ae,"%AsyncFromSyncIteratorPrototype%":ae,"%AsyncFunction%":Fa,"%AsyncGenerator%":Fa,"%AsyncGeneratorFunction%":Fa,"%AsyncIteratorPrototype%":Fa,"%Atomics%":typeof Atomics>"u"?ae:Atomics,"%BigInt%":typeof BigInt>"u"?ae:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ae:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ae:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ae:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":iv,"%eval%":eval,"%EvalError%":sv,"%Float16Array%":typeof Float16Array>"u"?ae:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ae:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ae:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ae:FinalizationRegistry,"%Function%":ud,"%GeneratorFunction%":Fa,"%Int8Array%":typeof Int8Array>"u"?ae:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ae:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ae:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Oa&&Me?Me(Me([][Symbol.iterator]())):ae,"%JSON%":typeof JSON=="object"?JSON:ae,"%Map%":typeof Map>"u"?ae:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Oa||!Me?ae:Me(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":nv,"%Object.getOwnPropertyDescriptor%":ir,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ae:Promise,"%Proxy%":typeof Proxy>"u"?ae:Proxy,"%RangeError%":ov,"%ReferenceError%":cv,"%Reflect%":typeof Reflect>"u"?ae:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ae:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Oa||!Me?ae:Me(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ae:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Oa&&Me?Me(""[Symbol.iterator]()):ae,"%Symbol%":Oa?Symbol:ae,"%SyntaxError%":Da,"%ThrowTypeError%":xv,"%TypedArray%":Ev,"%TypeError%":Pa,"%Uint8Array%":typeof Uint8Array>"u"?ae:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ae:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ae:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ae:Uint32Array,"%URIError%":lv,"%WeakMap%":typeof WeakMap>"u"?ae:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ae:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ae:WeakSet,"%Function.prototype.call%":sr,"%Function.prototype.apply%":pd,"%Object.defineProperty%":gv,"%Object.getPrototypeOf%":yv,"%Math.abs%":uv,"%Math.floor%":pv,"%Math.max%":dv,"%Math.min%":fv,"%Math.pow%":mv,"%Math.round%":hv,"%Math.sign%":vv,"%Reflect.getPrototypeOf%":bv};if(Me)try{null.error}catch(e){var Cv=Me(Me(e));ga["%Error.prototype%"]=Cv}var Sv=function e(t){var r;if(t==="%AsyncFunction%")r=Ml("async function () {}");else if(t==="%GeneratorFunction%")r=Ml("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Ml("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(r=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Me&&(r=Me(n.prototype))}return ga[t]=r,r},dd={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},or=Rc,kc=Fl,Tv=or.call(sr,Array.prototype.concat),wv=or.call(pd,Array.prototype.splice),fd=or.call(sr,String.prototype.replace),Nc=or.call(sr,String.prototype.slice),Av=or.call(sr,RegExp.prototype.exec),Iv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Bv=/\\(\\)?/g,_v=function(t){var r=Nc(t,0,1),a=Nc(t,-1);if(r==="%"&&a!=="%")throw new Da("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&r!=="%")throw new Da("invalid intrinsic syntax, expected opening `%`");var n=[];return fd(t,Iv,function(s,i,o,c){n[n.length]=o?fd(c,Bv,"$1"):i||s}),n},Rv=function(t,r){var a=t,n;if(kc(dd,a)&&(n=dd[a],a="%"+n[0]+"%"),kc(ga,a)){var s=ga[a];if(s===Fa&&(s=Sv(a)),typeof s>"u"&&!r)throw new Pa("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:s}}throw new Da("intrinsic "+t+" does not exist!")},kv=function(t,r){if(typeof t!="string"||t.length===0)throw new Pa("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Pa('"allowMissing" argument must be a boolean');if(Av(/^%?[^%]*%?$/,t)===null)throw new Da("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=_v(t),n=a.length>0?a[0]:"",s=Rv("%"+n+"%",r),i=s.name,o=s.value,c=!1,l=s.alias;l&&(n=l[0],wv(a,Tv([0,1],l)));for(var u=1,p=!0;u<a.length;u+=1){var f=a[u],x=Nc(f,0,1),m=Nc(f,-1);if((x==='"'||x==="'"||x==="`"||m==='"'||m==="'"||m==="`")&&x!==m)throw new Da("property names with quotes must have matching quotes");if((f==="constructor"||!p)&&(c=!0),n+="."+f,i="%"+n+"%",kc(ga,i))o=ga[i];else if(o!=null){if(!(f in o)){if(!r)throw new Pa("base intrinsic for "+t+" exists, but the property is not available.");return}if(ir&&u+1>=a.length){var y=ir(o,f);p=!!y,p&&"get"in y&&!("originalValue"in y.get)?o=y.get:o=o[f]}else p=kc(o,f),o=o[f];p&&!c&&(ga[i]=o)}}return o},ql,md;function Nv(){if(md)return ql;md=1;var e=Wp();return ql=function(){return e()&&!!Symbol.toStringTag},ql}var Lv=kv,hd=Lv("%Object.defineProperty%",!0),Uv=Nv()(),Dv=Fl,Pv=wl(),Lc=Uv?Symbol.toStringTag:null,Ov=function(t,r){var a=arguments.length>2&&!!arguments[2]&&arguments[2].force,n=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof a<"u"&&typeof a!="boolean"||typeof n<"u"&&typeof n!="boolean")throw new Pv("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Lc&&(a||!Dv(t,Lc))&&(hd?hd(t,Lc,{configurable:!n,enumerable:!1,value:r,writable:!1}):t[Lc]=r)},Fv=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e},jl=Xm,Mv=Na,Kl=gp,Vv=bl,qv=El,jv=Cc.parse,Kv=am,zv=_t.Stream,Hv=tr,zl=Up,$v=Sh,Gv=Ov,aa=Fl,Hl=Fv;function de(e){if(!(this instanceof de))return new de(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],jl.call(this),e=e||{};for(var t in e)this[t]=e[t]}Mv.inherits(de,jl),de.LINE_BREAK=`\r
|
|
12
|
-
`,de.DEFAULT_CONTENT_TYPE="application/octet-stream",de.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var a=jl.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var n=this._multiPartHeader(e,t,r),s=this._multiPartFooter();a(n),a(t),a(s),this._trackLength(n,t,r)},de.prototype._trackLength=function(e,t,r){var a=0;r.knownLength!=null?a+=Number(r.knownLength):Buffer.isBuffer(t)?a=t.length:typeof t=="string"&&(a=Buffer.byteLength(t)),this._valueLength+=a,this._overheadLength+=Buffer.byteLength(e)+de.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&aa(t,"httpVersion"))&&!(t instanceof zv))&&(r.knownLength||this._valuesToMeasure.push(t))},de.prototype._lengthRetriever=function(e,t){aa(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):Kv.stat(e.path,function(r,a){if(r){t(r);return}var n=a.size-(e.start?e.start:0);t(null,n)}):aa(e,"httpVersion")?t(null,Number(e.headers["content-length"])):aa(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")},de.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var a=this._getContentDisposition(t,r),n=this._getContentType(t,r),s="",i={"Content-Disposition":["form-data",'name="'+e+'"'].concat(a||[]),"Content-Type":[].concat(n||[])};typeof r.header=="object"&&Hl(i,r.header);var o;for(var c in i)if(aa(i,c)){if(o=i[c],o==null)continue;Array.isArray(o)||(o=[o]),o.length&&(s+=c+": "+o.join("; ")+de.LINE_BREAK)}return"--"+this.getBoundary()+de.LINE_BREAK+s+de.LINE_BREAK},de.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=Kl.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=Kl.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&aa(e,"httpVersion")&&(r=Kl.basename(e.client._httpMessage.path||"")),r)return'filename="'+r+'"'},de.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=zl.lookup(e.name)),!r&&e&&e.path&&(r=zl.lookup(e.path)),!r&&e&&e.readable&&aa(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=zl.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=de.DEFAULT_CONTENT_TYPE),r},de.prototype._multiPartFooter=function(){return function(e){var t=de.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)},de.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+de.LINE_BREAK},de.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)aa(e,t)&&(r[t.toLowerCase()]=e[t]);return r},de.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e},de.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},de.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,a=this._streams.length;r<a;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(de.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},de.prototype._generateBoundary=function(){this._boundary="--------------------------"+Hv.randomBytes(12).toString("hex")},de.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},de.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},de.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}$v.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,a){if(r){e(r);return}a.forEach(function(n){t+=n}),e(null,t)})},de.prototype.submit=function(e,t){var r,a,n={method:"post"};return typeof e=="string"?(e=jv(e),a=Hl({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},n)):(a=Hl(e,n),a.port||(a.port=a.protocol==="https:"?443:80)),a.headers=this.getHeaders(e.headers),a.protocol==="https:"?r=qv.request(a):r=Vv.request(a),this.getLength(function(s,i){if(s&&s!=="Unknown stream"){this._error(s);return}if(i&&r.setHeader("Content-Length",i),this.pipe(r),t){var o,c=function(l,u){return r.removeListener("error",c),r.removeListener("response",o),t.call(this,l,u)};o=c.bind(this,null),r.on("error",c),r.on("response",o)}}.bind(this)),r},de.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},de.prototype.toString=function(){return"[object FormData]"},Gv(de,"FormData");var Qv=de,vd=Rp(Qv);function $l(e){return A.isPlainObject(e)||A.isArray(e)}function gd(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function xd(e,t,r){return e?e.concat(t).map(function(n,s){return n=gd(n),!r&&s?"["+n+"]":n}).join(r?".":""):t}function Wv(e){return A.isArray(e)&&!e.some($l)}const Xv=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Uc(e,t,r){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new(vd||FormData),r=A.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!A.isUndefined(b[y])});const a=r.metaTokens,n=r.visitor||u,s=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(n))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(A.isDate(m))return m.toISOString();if(A.isBoolean(m))return m.toString();if(!c&&A.isBlob(m))throw new j("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(m)||A.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,y,b){let S=m;if(m&&!b&&typeof m=="object"){if(A.endsWith(y,"{}"))y=a?y:y.slice(0,-2),m=JSON.stringify(m);else if(A.isArray(m)&&Wv(m)||(A.isFileList(m)||A.endsWith(y,"[]"))&&(S=A.toArray(m)))return y=gd(y),S.forEach(function(_,D){!(A.isUndefined(_)||_===null)&&t.append(i===!0?xd([y],D,s):i===null?y:y+"[]",l(_))}),!1}return $l(m)?!0:(t.append(xd(b,y,s),l(m)),!1)}const p=[],f=Object.assign(Xv,{defaultVisitor:u,convertValue:l,isVisitable:$l});function x(m,y){if(!A.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(m),A.forEach(m,function(S,B){(!(A.isUndefined(S)||S===null)&&n.call(t,S,A.isString(B)?B.trim():B,y,f))===!0&&x(S,y?y.concat(B):[B])}),p.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return x(e),t}function yd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function bd(e,t){this._pairs=[],e&&Uc(e,this,t)}const Ed=bd.prototype;Ed.append=function(t,r){this._pairs.push([t,r])},Ed.toString=function(t){const r=t?function(a){return t.call(this,a,yd)}:yd;return this._pairs.map(function(n){return r(n[0])+"="+r(n[1])},"").join("&")};function Yv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Gl(e,t,r){if(!t)return e;const a=r&&r.encode||Yv;A.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let s;if(n?s=n(t,r):s=A.isURLSearchParams(t)?t.toString():new bd(t,r).toString(a),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Cd{constructor(){this.handlers=[]}use(t,r,a){return this.handlers.push({fulfilled:t,rejected:r,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){A.forEach(this.handlers,function(a){a!==null&&t(a)})}}var Ql={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jv=Cc.URLSearchParams;const Wl="abcdefghijklmnopqrstuvwxyz",Sd="0123456789",Td={DIGIT:Sd,ALPHA:Wl,ALPHA_DIGIT:Wl+Wl.toUpperCase()+Sd},Zv=(e=16,t=Td.ALPHA_DIGIT)=>{let r="";const{length:a}=t,n=new Uint32Array(e);tr.randomFillSync(n);for(let s=0;s<e;s++)r+=t[n[s]%a];return r};var eg={isNode:!0,classes:{URLSearchParams:Jv,FormData:vd,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:Td,generateString:Zv,protocols:["http","https","file","data"]};const Xl=typeof window<"u"&&typeof document<"u",Yl=typeof navigator=="object"&&navigator||void 0,tg=Xl&&(!Yl||["ReactNative","NativeScript","NS"].indexOf(Yl.product)<0),ag=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",rg=Xl&&window.location.href||"http://localhost";var ng=Object.freeze({__proto__:null,hasBrowserEnv:Xl,hasStandardBrowserEnv:tg,hasStandardBrowserWebWorkerEnv:ag,navigator:Yl,origin:rg}),Le={...ng,...eg};function ig(e,t){return Uc(e,new Le.classes.URLSearchParams,{visitor:function(r,a,n,s){return Le.isNode&&A.isBuffer(r)?(this.append(a,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function sg(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function og(e){const t={},r=Object.keys(e);let a;const n=r.length;let s;for(a=0;a<n;a++)s=r[a],t[s]=e[s];return t}function wd(e){function t(r,a,n,s){let i=r[s++];if(i==="__proto__")return!0;const o=Number.isFinite(+i),c=s>=r.length;return i=!i&&A.isArray(n)?n.length:i,c?(A.hasOwnProp(n,i)?n[i]=[n[i],a]:n[i]=a,!o):((!n[i]||!A.isObject(n[i]))&&(n[i]=[]),t(r,a,n[i],s)&&A.isArray(n[i])&&(n[i]=og(n[i])),!o)}if(A.isFormData(e)&&A.isFunction(e.entries)){const r={};return A.forEachEntry(e,(a,n)=>{t(sg(a),n,r,0)}),r}return null}function cg(e,t,r){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(r||JSON.stringify)(e)}const cr={transitional:Ql,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const a=r.getContentType()||"",n=a.indexOf("application/json")>-1,s=A.isObject(t);if(s&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return n?JSON.stringify(wd(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t)||A.isReadableStream(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(s){if(a.indexOf("application/x-www-form-urlencoded")>-1)return ig(t,this.formSerializer).toString();if((o=A.isFileList(t))||a.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Uc(o?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||n?(r.setContentType("application/json",!1),cg(t)):t}],transformResponse:[function(t){const r=this.transitional||cr.transitional,a=r&&r.forcedJSONParsing,n=this.responseType==="json";if(A.isResponse(t)||A.isReadableStream(t))return t;if(t&&A.isString(t)&&(a&&!this.responseType||n)){const i=!(r&&r.silentJSONParsing)&&n;try{return JSON.parse(t,this.parseReviver)}catch(o){if(i)throw o.name==="SyntaxError"?j.from(o,j.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Le.classes.FormData,Blob:Le.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{cr.headers[e]={}});const lg=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var ug=e=>{const t={};let r,a,n;return e&&e.split(`
|
|
13
|
-
`).forEach(function(i){n=i.indexOf(":"),r=i.substring(0,n).trim().toLowerCase(),a=i.substring(n+1).trim(),!(!r||t[r]&&
|
|
14
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const a=new this(t);return r.forEach(n=>a.set(n)),a}static accessor(t){const a=(this[Ad]=this[Ad]={accessors:{}}).accessors,n=this.prototype;function s(i){const o=lr(i);a[o]||(mg(n,i),a[o]=!0)}return A.isArray(t)?t.forEach(s):s(t),this}};ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),A.reduceDescriptors(ze.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[r]=a}}}),A.freezeMethods(ze);function Zl(e,t){const r=this||cr,a=t||r,n=ze.from(a.headers);let s=a.data;return A.forEach(e,function(o){s=o.call(r,s,n.normalize(),t?t.status:void 0)}),n.normalize(),s}function Id(e){return!!(e&&e.__CANCEL__)}function ra(e,t,r){j.call(this,e??"canceled",j.ERR_CANCELED,t,r),this.name="CanceledError"}A.inherits(ra,j,{__CANCEL__:!0});function Ma(e,t,r){const a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):t(new j("Request failed with status code "+r.status,[j.ERR_BAD_REQUEST,j.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function hg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vg(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function eu(e,t,r){let a=!hg(t);return e&&(a||r==!1)?vg(e,t):t}var Bd={},gg=Cc.parse,xg={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},yg=String.prototype.endsWith||function(e){return e.length<=this.length&&this.indexOf(e,this.length-e.length)!==-1};function bg(e){var t=typeof e=="string"?gg(e):e||{},r=t.protocol,a=t.host,n=t.port;if(typeof a!="string"||!a||typeof r!="string"||(r=r.split(":",1)[0],a=a.replace(/:\d*$/,""),n=parseInt(n)||xg[r]||0,!Eg(a,n)))return"";var s=Va("npm_config_"+r+"_proxy")||Va(r+"_proxy")||Va("npm_config_proxy")||Va("all_proxy");return s&&s.indexOf("://")===-1&&(s=r+"://"+s),s}function Eg(e,t){var r=(Va("npm_config_no_proxy")||Va("no_proxy")).toLowerCase();return r?r==="*"?!1:r.split(/[,\s]/).every(function(a){if(!a)return!0;var n=a.match(/^(.+):(\d+)$/),s=n?n[1]:a,i=n?parseInt(n[2]):0;return i&&i!==t?!0:/^[.*]/.test(s)?(s.charAt(0)==="*"&&(s=s.slice(1)),!yg.call(e,s)):e!==s}):!0}function Va(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}Bd.getProxyForUrl=bg;var tu={exports:{}},Pc={exports:{}},Oc={exports:{}},au,_d;function Cg(){if(_d)return au;_d=1;var e=1e3,t=e*60,r=t*60,a=r*24,n=a*7,s=a*365.25;au=function(u,p){p=p||{};var f=typeof u;if(f==="string"&&u.length>0)return i(u);if(f==="number"&&isFinite(u))return p.long?c(u):o(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function i(u){if(u=String(u),!(u.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(p){var f=parseFloat(p[1]),x=(p[2]||"ms").toLowerCase();switch(x){case"years":case"year":case"yrs":case"yr":case"y":return f*s;case"weeks":case"week":case"w":return f*n;case"days":case"day":case"d":return f*a;case"hours":case"hour":case"hrs":case"hr":case"h":return f*r;case"minutes":case"minute":case"mins":case"min":case"m":return f*t;case"seconds":case"second":case"secs":case"sec":case"s":return f*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}function o(u){var p=Math.abs(u);return p>=a?Math.round(u/a)+"d":p>=r?Math.round(u/r)+"h":p>=t?Math.round(u/t)+"m":p>=e?Math.round(u/e)+"s":u+"ms"}function c(u){var p=Math.abs(u);return p>=a?l(u,p,a,"day"):p>=r?l(u,p,r,"hour"):p>=t?l(u,p,t,"minute"):p>=e?l(u,p,e,"second"):u+" ms"}function l(u,p,f,x){var m=p>=f*1.5;return Math.round(u/f)+" "+x+(m?"s":"")}return au}var ru,Rd;function kd(){if(Rd)return ru;Rd=1;function e(t){a.debug=a,a.default=a,a.coerce=l,a.disable=o,a.enable=s,a.enabled=c,a.humanize=Cg(),a.destroy=u,Object.keys(t).forEach(p=>{a[p]=t[p]}),a.names=[],a.skips=[],a.formatters={};function r(p){let f=0;for(let x=0;x<p.length;x++)f=(f<<5)-f+p.charCodeAt(x),f|=0;return a.colors[Math.abs(f)%a.colors.length]}a.selectColor=r;function a(p){let f,x=null,m,y;function b(...S){if(!b.enabled)return;const B=b,_=Number(new Date),D=_-(f||_);B.diff=D,B.prev=f,B.curr=_,f=_,S[0]=a.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let k=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(z,W)=>{if(z==="%%")return"%";k++;const J=a.formatters[W];if(typeof J=="function"){const te=S[k];z=J.call(B,te),S.splice(k,1),k--}return z}),a.formatArgs.call(B,S),(B.log||a.log).apply(B,S)}return b.namespace=p,b.useColors=a.useColors(),b.color=a.selectColor(p),b.extend=n,b.destroy=a.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>x!==null?x:(m!==a.namespaces&&(m=a.namespaces,y=a.enabled(p)),y),set:S=>{x=S}}),typeof a.init=="function"&&a.init(b),b}function n(p,f){const x=a(this.namespace+(typeof f>"u"?":":f)+p);return x.log=this.log,x}function s(p){a.save(p),a.namespaces=p,a.names=[],a.skips=[];const f=(typeof p=="string"?p:"").trim().replace(" ",",").split(",").filter(Boolean);for(const x of f)x[0]==="-"?a.skips.push(x.slice(1)):a.names.push(x)}function i(p,f){let x=0,m=0,y=-1,b=0;for(;x<p.length;)if(m<f.length&&(f[m]===p[x]||f[m]==="*"))f[m]==="*"?(y=m,b=x,m++):(x++,m++);else if(y!==-1)m=y+1,b++,x=b;else return!1;for(;m<f.length&&f[m]==="*";)m++;return m===f.length}function o(){const p=[...a.names,...a.skips.map(f=>"-"+f)].join(",");return a.enable(""),p}function c(p){for(const f of a.skips)if(i(p,f))return!1;for(const f of a.names)if(i(p,f))return!0;return!1}function l(p){return p instanceof Error?p.stack||p.message:p}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return a.enable(a.load()),a}return ru=e,ru}var Nd;function Sg(){return Nd||(Nd=1,function(e,t){t.formatArgs=a,t.save=n,t.load=s,t.useColors=r,t.storage=i(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let c;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(c=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(c[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function a(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;c.splice(1,0,l,"color: inherit");let u=0,p=0;c[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(p=u))}),c.splice(p,0,l)}t.log=console.debug||console.log||(()=>{});function n(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function s(){let c;try{c=t.storage.getItem("debug")}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}function i(){try{return localStorage}catch{}}e.exports=kd()(t);const{formatters:o}=e.exports;o.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}}(Oc,Oc.exports)),Oc.exports}var Fc={exports:{}},nu,Ld;function Tg(){return Ld||(Ld=1,nu=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--",a=t.indexOf(r+e),n=t.indexOf("--");return a!==-1&&(n===-1||a<n)}),nu}var iu,Ud;function wg(){if(Ud)return iu;Ud=1;const e=im,t=xp,r=Tg(),{env:a}=process;let n;r("no-color")||r("no-colors")||r("color=false")||r("color=never")?n=0:(r("color")||r("colors")||r("color=true")||r("color=always"))&&(n=1),"FORCE_COLOR"in a&&(a.FORCE_COLOR==="true"?n=1:a.FORCE_COLOR==="false"?n=0:n=a.FORCE_COLOR.length===0?1:Math.min(parseInt(a.FORCE_COLOR,10),3));function s(c){return c===0?!1:{level:c,hasBasic:!0,has256:c>=2,has16m:c>=3}}function i(c,l){if(n===0)return 0;if(r("color=16m")||r("color=full")||r("color=truecolor"))return 3;if(r("color=256"))return 2;if(c&&!l&&n===void 0)return 0;const u=n||0;if(a.TERM==="dumb")return u;if(process.platform==="win32"){const p=e.release().split(".");return Number(p[0])>=10&&Number(p[2])>=10586?Number(p[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(p=>p in a)||a.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if(a.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in a){const p=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return p>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:u}function o(c){const l=i(c,c&&c.isTTY);return s(l)}return iu={supportsColor:o,stdout:s(i(!0,t.isatty(1))),stderr:s(i(!0,t.isatty(2)))},iu}var Dd;function Ag(){return Dd||(Dd=1,function(e,t){const r=xp,a=Na;t.init=u,t.log=o,t.formatArgs=s,t.save=c,t.load=l,t.useColors=n,t.destroy=a.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const f=wg();f&&(f.stderr||f).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}t.inspectOpts=Object.keys(process.env).filter(f=>/^debug_/i.test(f)).reduce((f,x)=>{const m=x.substring(6).toLowerCase().replace(/_([a-z])/g,(b,S)=>S.toUpperCase());let y=process.env[x];return/^(yes|on|true|enabled)$/i.test(y)?y=!0:/^(no|off|false|disabled)$/i.test(y)?y=!1:y==="null"?y=null:y=Number(y),f[m]=y,f},{});function n(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:r.isatty(process.stderr.fd)}function s(f){const{namespace:x,useColors:m}=this;if(m){const y=this.color,b="\x1B[3"+(y<8?y:"8;5;"+y),S=` ${b};1m${x} \x1B[0m`;f[0]=S+f[0].split(`
|
|
11
|
+
*/(function(e){var t=nh,r=xp.extname,a=/^\s*([^;\s]*)(?:;|\s|$)/,n=/^text\//i;e.charset=s,e.charsets={lookup:s},e.contentType=i,e.extension=o,e.extensions=Object.create(null),e.lookup=c,e.types=Object.create(null),l(e.extensions,e.types);function s(u){if(!u||typeof u!="string")return!1;var p=a.exec(u),f=p&&t[p[1].toLowerCase()];return f&&f.charset?f.charset:p&&n.test(p[1])?"UTF-8":!1}function i(u){if(!u||typeof u!="string")return!1;var p=u.indexOf("/")===-1?e.lookup(u):u;if(!p)return!1;if(p.indexOf("charset")===-1){var f=e.charset(p);f&&(p+="; charset="+f.toLowerCase())}return p}function o(u){if(!u||typeof u!="string")return!1;var p=a.exec(u),f=p&&e.extensions[p[1].toLowerCase()];return!f||!f.length?!1:f[0]}function c(u){if(!u||typeof u!="string")return!1;var p=r("x."+u).toLowerCase().substr(1);return p&&e.types[p]||!1}function l(u,p){var f=["nginx","apache",void 0,"iana"];Object.keys(t).forEach(function(m){var y=t[m],b=y.extensions;if(!(!b||!b.length)){u[m]=b;for(var S=0;S<b.length;S++){var B=b[S];if(p[B]){var _=f.indexOf(t[p[B]].source),P=f.indexOf(y.source);if(p[B]!=="application/octet-stream"&&(_>P||_===P&&p[B].substr(0,12)==="application/"))continue}p[B]=m}}})}})(Pp);var ih=sh;function sh(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}var Op=ih,Fp=oh;function oh(e){var t=!1;return Op(function(){t=!0}),function(a,n){t?e(a,n):Op(function(){e(a,n)})}}var Mp=ch;function ch(e){Object.keys(e.jobs).forEach(lh.bind(e)),e.jobs={}}function lh(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}var Vp=Fp,uh=Mp,qp=ph;function ph(e,t,r,a){var n=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[n]=dh(t,n,e[n],function(s,i){n in r.jobs&&(delete r.jobs[n],s?uh(r):r.results[n]=i,a(s,r.results))})}function dh(e,t,r,a){var n;return e.length==2?n=e(r,Vp(a)):n=e(r,t,Vp(a)),n}var jp=fh;function fh(e,t){var r=!Array.isArray(e),a={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};return t&&a.keyedList.sort(r?t:function(n,s){return t(e[n],e[s])}),a}var mh=Mp,hh=Fp,Kp=vh;function vh(e){Object.keys(this.jobs).length&&(this.index=this.size,mh(this),hh(e)(null,this.results))}var gh=qp,xh=jp,yh=Kp,bh=Eh;function Eh(e,t,r){for(var a=xh(e);a.index<(a.keyedList||e).length;)gh(e,t,a,function(n,s){if(n){r(n,s);return}if(Object.keys(a.jobs).length===0){r(null,a.results);return}}),a.index++;return yh.bind(a,r)}var Ac={exports:{}},zp=qp,Ch=jp,Sh=Kp;Ac.exports=Th,Ac.exports.ascending=Hp,Ac.exports.descending=wh;function Th(e,t,r,a){var n=Ch(e,r);return zp(e,t,n,function s(i,o){if(i){a(i,o);return}if(n.index++,n.index<(n.keyedList||e).length){zp(e,t,n,s);return}a(null,n.results)}),Sh.bind(n,a)}function Hp(e,t){return e<t?-1:e>t?1:0}function wh(e,t){return-1*Hp(e,t)}var $p=Ac.exports,Ah=$p,Ih=Bh;function Bh(e,t,r){return Ah(e,t,null,r)}var _h={parallel:bh,serial:Ih,serialOrdered:$p},Gp=Object,Rh=Error,kh=EvalError,Nh=RangeError,Lh=ReferenceError,Uh=SyntaxError,wl,Qp;function Al(){return Qp||(Qp=1,wl=TypeError),wl}var Dh=URIError,Ph=Math.abs,Oh=Math.floor,Fh=Math.max,Mh=Math.min,Vh=Math.pow,qh=Math.round,jh=Number.isNaN||function(t){return t!==t},Kh=jh,zh=function(t){return Kh(t)||t===0?t:t<0?-1:1},Hh=Object.getOwnPropertyDescriptor,Ic=Hh;if(Ic)try{Ic([],"length")}catch{Ic=null}var Wp=Ic,Bc=Object.defineProperty||!1;if(Bc)try{Bc({},"a",{value:1})}catch{Bc=!1}var $h=Bc,Il,Yp;function Xp(){return Yp||(Yp=1,Il=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),a=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;t[r]=n;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==n||o.enumerable!==!0)return!1}return!0}),Il}var Bl,Jp;function Gh(){if(Jp)return Bl;Jp=1;var e=typeof Symbol<"u"&&Symbol,t=Xp();return Bl=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Bl}var _l,Zp;function ed(){return Zp||(Zp=1,_l=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),_l}var Rl,td;function ad(){if(td)return Rl;td=1;var e=Gp;return Rl=e.getPrototypeOf||null,Rl}var Qh="Function.prototype.bind called on incompatible ",Wh=Object.prototype.toString,Yh=Math.max,Xh="[object Function]",rd=function(t,r){for(var a=[],n=0;n<t.length;n+=1)a[n]=t[n];for(var s=0;s<r.length;s+=1)a[s+t.length]=r[s];return a},Jh=function(t,r){for(var a=[],n=r||0,s=0;n<t.length;n+=1,s+=1)a[s]=t[n];return a},Zh=function(e,t){for(var r="",a=0;a<e.length;a+=1)r+=e[a],a+1<e.length&&(r+=t);return r},ev=function(t){var r=this;if(typeof r!="function"||Wh.apply(r)!==Xh)throw new TypeError(Qh+r);for(var a=Jh(arguments,1),n,s=function(){if(this instanceof n){var u=r.apply(this,rd(a,arguments));return Object(u)===u?u:this}return r.apply(t,rd(a,arguments))},i=Yh(0,r.length-a.length),o=[],c=0;c<i;c++)o[c]="$"+c;if(n=Function("binder","return function ("+Zh(o,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var l=function(){};l.prototype=r.prototype,n.prototype=new l,l.prototype=null}return n},tv=ev,_c=Function.prototype.bind||tv,kl,nd;function Nl(){return nd||(nd=1,kl=Function.prototype.call),kl}var Ll,id;function sd(){return id||(id=1,Ll=Function.prototype.apply),Ll}var Ul,od;function av(){return od||(od=1,Ul=typeof Reflect<"u"&&Reflect&&Reflect.apply),Ul}var Dl,cd;function rv(){if(cd)return Dl;cd=1;var e=_c,t=sd(),r=Nl(),a=av();return Dl=a||e.call(r,t),Dl}var Pl,ld;function nv(){if(ld)return Pl;ld=1;var e=_c,t=Al(),r=Nl(),a=rv();return Pl=function(s){if(s.length<1||typeof s[0]!="function")throw new t("a function is required");return a(e,r,s)},Pl}var Ol,ud;function iv(){if(ud)return Ol;ud=1;var e=nv(),t=Wp,r;try{r=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var a=!!r&&t&&t(Object.prototype,"__proto__"),n=Object,s=n.getPrototypeOf;return Ol=a&&typeof a.get=="function"?e([a.get]):typeof s=="function"?function(o){return s(o==null?o:n(o))}:!1,Ol}var Fl,pd;function sv(){if(pd)return Fl;pd=1;var e=ed(),t=ad(),r=iv();return Fl=e?function(n){return e(n)}:t?function(n){if(!n||typeof n!="object"&&typeof n!="function")throw new TypeError("getProto: not an object");return t(n)}:r?function(n){return r(n)}:null,Fl}var ov=Function.prototype.call,cv=Object.prototype.hasOwnProperty,lv=_c,Ml=lv.call(ov,cv),ne,uv=Gp,pv=Rh,dv=kh,fv=Nh,mv=Lh,Da=Uh,Pa=Al(),hv=Dh,vv=Ph,gv=Oh,xv=Fh,yv=Mh,bv=Vh,Ev=qh,Cv=zh,dd=Function,Vl=function(e){try{return dd('"use strict"; return ('+e+").constructor;")()}catch{}},nr=Wp,Sv=$h,ql=function(){throw new Pa},Tv=nr?(function(){try{return arguments.callee,ql}catch{try{return nr(arguments,"callee").get}catch{return ql}}})():ql,Oa=Gh()(),Ve=sv(),wv=ad(),Av=ed(),fd=sd(),ir=Nl(),Fa={},Iv=typeof Uint8Array>"u"||!Ve?ne:Ve(Uint8Array),ga={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ne:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ne:ArrayBuffer,"%ArrayIteratorPrototype%":Oa&&Ve?Ve([][Symbol.iterator]()):ne,"%AsyncFromSyncIteratorPrototype%":ne,"%AsyncFunction%":Fa,"%AsyncGenerator%":Fa,"%AsyncGeneratorFunction%":Fa,"%AsyncIteratorPrototype%":Fa,"%Atomics%":typeof Atomics>"u"?ne:Atomics,"%BigInt%":typeof BigInt>"u"?ne:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ne:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ne:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ne:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":pv,"%eval%":eval,"%EvalError%":dv,"%Float16Array%":typeof Float16Array>"u"?ne:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ne:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ne:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ne:FinalizationRegistry,"%Function%":dd,"%GeneratorFunction%":Fa,"%Int8Array%":typeof Int8Array>"u"?ne:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ne:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ne:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Oa&&Ve?Ve(Ve([][Symbol.iterator]())):ne,"%JSON%":typeof JSON=="object"?JSON:ne,"%Map%":typeof Map>"u"?ne:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Oa||!Ve?ne:Ve(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":uv,"%Object.getOwnPropertyDescriptor%":nr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ne:Promise,"%Proxy%":typeof Proxy>"u"?ne:Proxy,"%RangeError%":fv,"%ReferenceError%":mv,"%Reflect%":typeof Reflect>"u"?ne:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ne:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Oa||!Ve?ne:Ve(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ne:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Oa&&Ve?Ve(""[Symbol.iterator]()):ne,"%Symbol%":Oa?Symbol:ne,"%SyntaxError%":Da,"%ThrowTypeError%":Tv,"%TypedArray%":Iv,"%TypeError%":Pa,"%Uint8Array%":typeof Uint8Array>"u"?ne:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ne:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ne:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ne:Uint32Array,"%URIError%":hv,"%WeakMap%":typeof WeakMap>"u"?ne:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ne:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ne:WeakSet,"%Function.prototype.call%":ir,"%Function.prototype.apply%":fd,"%Object.defineProperty%":Sv,"%Object.getPrototypeOf%":wv,"%Math.abs%":vv,"%Math.floor%":gv,"%Math.max%":xv,"%Math.min%":yv,"%Math.pow%":bv,"%Math.round%":Ev,"%Math.sign%":Cv,"%Reflect.getPrototypeOf%":Av};if(Ve)try{null.error}catch(e){var Bv=Ve(Ve(e));ga["%Error.prototype%"]=Bv}var _v=function e(t){var r;if(t==="%AsyncFunction%")r=Vl("async function () {}");else if(t==="%GeneratorFunction%")r=Vl("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Vl("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(r=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Ve&&(r=Ve(n.prototype))}return ga[t]=r,r},md={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},sr=_c,Rc=Ml,Rv=sr.call(ir,Array.prototype.concat),kv=sr.call(fd,Array.prototype.splice),hd=sr.call(ir,String.prototype.replace),kc=sr.call(ir,String.prototype.slice),Nv=sr.call(ir,RegExp.prototype.exec),Lv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Uv=/\\(\\)?/g,Dv=function(t){var r=kc(t,0,1),a=kc(t,-1);if(r==="%"&&a!=="%")throw new Da("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&r!=="%")throw new Da("invalid intrinsic syntax, expected opening `%`");var n=[];return hd(t,Lv,function(s,i,o,c){n[n.length]=o?hd(c,Uv,"$1"):i||s}),n},Pv=function(t,r){var a=t,n;if(Rc(md,a)&&(n=md[a],a="%"+n[0]+"%"),Rc(ga,a)){var s=ga[a];if(s===Fa&&(s=_v(a)),typeof s>"u"&&!r)throw new Pa("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:s}}throw new Da("intrinsic "+t+" does not exist!")},Ov=function(t,r){if(typeof t!="string"||t.length===0)throw new Pa("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Pa('"allowMissing" argument must be a boolean');if(Nv(/^%?[^%]*%?$/,t)===null)throw new Da("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=Dv(t),n=a.length>0?a[0]:"",s=Pv("%"+n+"%",r),i=s.name,o=s.value,c=!1,l=s.alias;l&&(n=l[0],kv(a,Rv([0,1],l)));for(var u=1,p=!0;u<a.length;u+=1){var f=a[u],x=kc(f,0,1),m=kc(f,-1);if((x==='"'||x==="'"||x==="`"||m==='"'||m==="'"||m==="`")&&x!==m)throw new Da("property names with quotes must have matching quotes");if((f==="constructor"||!p)&&(c=!0),n+="."+f,i="%"+n+"%",Rc(ga,i))o=ga[i];else if(o!=null){if(!(f in o)){if(!r)throw new Pa("base intrinsic for "+t+" exists, but the property is not available.");return}if(nr&&u+1>=a.length){var y=nr(o,f);p=!!y,p&&"get"in y&&!("originalValue"in y.get)?o=y.get:o=o[f]}else p=Rc(o,f),o=o[f];p&&!c&&(ga[i]=o)}}return o},jl,vd;function Fv(){if(vd)return jl;vd=1;var e=Xp();return jl=function(){return e()&&!!Symbol.toStringTag},jl}var Mv=Ov,gd=Mv("%Object.defineProperty%",!0),Vv=Fv()(),qv=Ml,jv=Al(),Nc=Vv?Symbol.toStringTag:null,Kv=function(t,r){var a=arguments.length>2&&!!arguments[2]&&arguments[2].force,n=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof a<"u"&&typeof a!="boolean"||typeof n<"u"&&typeof n!="boolean")throw new jv("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Nc&&(a||!qv(t,Nc))&&(gd?gd(t,Nc,{configurable:!n,enumerable:!1,value:r,writable:!1}):t[Nc]=r)},zv=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e},Kl=ah,Hv=ha,zl=xp,$v=bl,Gv=El,Qv=Cl.parse,Wv=im,Yv=dt.Stream,Xv=er,Hl=Pp,Jv=_h,Zv=Kv,aa=Ml,$l=zv;function de(e){if(!(this instanceof de))return new de(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Kl.call(this),e=e||{};for(var t in e)this[t]=e[t]}Hv.inherits(de,Kl),de.LINE_BREAK=`\r
|
|
12
|
+
`,de.DEFAULT_CONTENT_TYPE="application/octet-stream",de.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var a=Kl.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var n=this._multiPartHeader(e,t,r),s=this._multiPartFooter();a(n),a(t),a(s),this._trackLength(n,t,r)},de.prototype._trackLength=function(e,t,r){var a=0;r.knownLength!=null?a+=Number(r.knownLength):Buffer.isBuffer(t)?a=t.length:typeof t=="string"&&(a=Buffer.byteLength(t)),this._valueLength+=a,this._overheadLength+=Buffer.byteLength(e)+de.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&aa(t,"httpVersion"))&&!(t instanceof Yv))&&(r.knownLength||this._valuesToMeasure.push(t))},de.prototype._lengthRetriever=function(e,t){aa(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):Wv.stat(e.path,function(r,a){if(r){t(r);return}var n=a.size-(e.start?e.start:0);t(null,n)}):aa(e,"httpVersion")?t(null,Number(e.headers["content-length"])):aa(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")},de.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var a=this._getContentDisposition(t,r),n=this._getContentType(t,r),s="",i={"Content-Disposition":["form-data",'name="'+e+'"'].concat(a||[]),"Content-Type":[].concat(n||[])};typeof r.header=="object"&&$l(i,r.header);var o;for(var c in i)if(aa(i,c)){if(o=i[c],o==null)continue;Array.isArray(o)||(o=[o]),o.length&&(s+=c+": "+o.join("; ")+de.LINE_BREAK)}return"--"+this.getBoundary()+de.LINE_BREAK+s+de.LINE_BREAK},de.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=zl.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=zl.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&aa(e,"httpVersion")&&(r=zl.basename(e.client._httpMessage.path||"")),r)return'filename="'+r+'"'},de.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=Hl.lookup(e.name)),!r&&e&&e.path&&(r=Hl.lookup(e.path)),!r&&e&&e.readable&&aa(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=Hl.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=de.DEFAULT_CONTENT_TYPE),r},de.prototype._multiPartFooter=function(){return function(e){var t=de.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)},de.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+de.LINE_BREAK},de.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)aa(e,t)&&(r[t.toLowerCase()]=e[t]);return r},de.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e},de.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},de.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,a=this._streams.length;r<a;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(de.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},de.prototype._generateBoundary=function(){this._boundary="--------------------------"+Xv.randomBytes(12).toString("hex")},de.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},de.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},de.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}Jv.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,a){if(r){e(r);return}a.forEach(function(n){t+=n}),e(null,t)})},de.prototype.submit=function(e,t){var r,a,n={method:"post"};return typeof e=="string"?(e=Qv(e),a=$l({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},n)):(a=$l(e,n),a.port||(a.port=a.protocol==="https:"?443:80)),a.headers=this.getHeaders(e.headers),a.protocol==="https:"?r=Gv.request(a):r=$v.request(a),this.getLength(function(s,i){if(s&&s!=="Unknown stream"){this._error(s);return}if(i&&r.setHeader("Content-Length",i),this.pipe(r),t){var o,c=function(l,u){return r.removeListener("error",c),r.removeListener("response",o),t.call(this,l,u)};o=c.bind(this,null),r.on("error",c),r.on("response",o)}}.bind(this)),r},de.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},de.prototype.toString=function(){return"[object FormData]"},Zv(de.prototype,"FormData");var eg=de,xd=Np(eg);function Gl(e){return A.isPlainObject(e)||A.isArray(e)}function yd(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function Ql(e,t,r){return e?e.concat(t).map(function(n,s){return n=yd(n),!r&&s?"["+n+"]":n}).join(r?".":""):t}function tg(e){return A.isArray(e)&&!e.some(Gl)}const ag=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Lc(e,t,r){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new(xd||FormData),r=A.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!A.isUndefined(b[y])});const a=r.metaTokens,n=r.visitor||u,s=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(n))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(A.isDate(m))return m.toISOString();if(A.isBoolean(m))return m.toString();if(!c&&A.isBlob(m))throw new F("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(m)||A.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,y,b){let S=m;if(A.isReactNative(t)&&A.isReactNativeBlob(m))return t.append(Ql(b,y,s),l(m)),!1;if(m&&!b&&typeof m=="object"){if(A.endsWith(y,"{}"))y=a?y:y.slice(0,-2),m=JSON.stringify(m);else if(A.isArray(m)&&tg(m)||(A.isFileList(m)||A.endsWith(y,"[]"))&&(S=A.toArray(m)))return y=yd(y),S.forEach(function(_,P){!(A.isUndefined(_)||_===null)&&t.append(i===!0?Ql([y],P,s):i===null?y:y+"[]",l(_))}),!1}return Gl(m)?!0:(t.append(Ql(b,y,s),l(m)),!1)}const p=[],f=Object.assign(ag,{defaultVisitor:u,convertValue:l,isVisitable:Gl});function x(m,y){if(!A.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(m),A.forEach(m,function(S,B){(!(A.isUndefined(S)||S===null)&&n.call(t,S,A.isString(B)?B.trim():B,y,f))===!0&&x(S,y?y.concat(B):[B])}),p.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return x(e),t}function bd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function Ed(e,t){this._pairs=[],e&&Lc(e,this,t)}const Cd=Ed.prototype;Cd.append=function(t,r){this._pairs.push([t,r])},Cd.toString=function(t){const r=t?function(a){return t.call(this,a,bd)}:bd;return this._pairs.map(function(n){return r(n[0])+"="+r(n[1])},"").join("&")};function rg(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Wl(e,t,r){if(!t)return e;const a=r&&r.encode||rg,n=A.isFunction(r)?{serialize:r}:r,s=n&&n.serialize;let i;if(s?i=s(t,n):i=A.isURLSearchParams(t)?t.toString():new Ed(t,n).toString(a),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Sd{constructor(){this.handlers=[]}use(t,r,a){return this.handlers.push({fulfilled:t,rejected:r,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){A.forEach(this.handlers,function(a){a!==null&&t(a)})}}var Uc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ng=Cl.URLSearchParams;const Yl="abcdefghijklmnopqrstuvwxyz",Td="0123456789",wd={DIGIT:Td,ALPHA:Yl,ALPHA_DIGIT:Yl+Yl.toUpperCase()+Td},ig=(e=16,t=wd.ALPHA_DIGIT)=>{let r="";const{length:a}=t,n=new Uint32Array(e);er.randomFillSync(n);for(let s=0;s<e;s++)r+=t[n[s]%a];return r};var sg={isNode:!0,classes:{URLSearchParams:ng,FormData:xd,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:wd,generateString:ig,protocols:["http","https","file","data"]};const Xl=typeof window<"u"&&typeof document<"u",Jl=typeof navigator=="object"&&navigator||void 0,og=Xl&&(!Jl||["ReactNative","NativeScript","NS"].indexOf(Jl.product)<0),cg=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",lg=Xl&&window.location.href||"http://localhost";var ug=Object.freeze({__proto__:null,hasBrowserEnv:Xl,hasStandardBrowserEnv:og,hasStandardBrowserWebWorkerEnv:cg,navigator:Jl,origin:lg}),Ue={...ug,...sg};function pg(e,t){return Lc(e,new Ue.classes.URLSearchParams,{visitor:function(r,a,n,s){return Ue.isNode&&A.isBuffer(r)?(this.append(a,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function dg(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function fg(e){const t={},r=Object.keys(e);let a;const n=r.length;let s;for(a=0;a<n;a++)s=r[a],t[s]=e[s];return t}function Ad(e){function t(r,a,n,s){let i=r[s++];if(i==="__proto__")return!0;const o=Number.isFinite(+i),c=s>=r.length;return i=!i&&A.isArray(n)?n.length:i,c?(A.hasOwnProp(n,i)?n[i]=[n[i],a]:n[i]=a,!o):((!n[i]||!A.isObject(n[i]))&&(n[i]=[]),t(r,a,n[i],s)&&A.isArray(n[i])&&(n[i]=fg(n[i])),!o)}if(A.isFormData(e)&&A.isFunction(e.entries)){const r={};return A.forEachEntry(e,(a,n)=>{t(dg(a),n,r,0)}),r}return null}function mg(e,t,r){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(r||JSON.stringify)(e)}const or={transitional:Uc,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const a=r.getContentType()||"",n=a.indexOf("application/json")>-1,s=A.isObject(t);if(s&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return n?JSON.stringify(Ad(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t)||A.isReadableStream(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(s){if(a.indexOf("application/x-www-form-urlencoded")>-1)return pg(t,this.formSerializer).toString();if((o=A.isFileList(t))||a.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Lc(o?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||n?(r.setContentType("application/json",!1),mg(t)):t}],transformResponse:[function(t){const r=this.transitional||or.transitional,a=r&&r.forcedJSONParsing,n=this.responseType==="json";if(A.isResponse(t)||A.isReadableStream(t))return t;if(t&&A.isString(t)&&(a&&!this.responseType||n)){const i=!(r&&r.silentJSONParsing)&&n;try{return JSON.parse(t,this.parseReviver)}catch(o){if(i)throw o.name==="SyntaxError"?F.from(o,F.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ue.classes.FormData,Blob:Ue.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{or.headers[e]={}});const hg=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var vg=e=>{const t={};let r,a,n;return e&&e.split(`
|
|
13
|
+
`).forEach(function(i){n=i.indexOf(":"),r=i.substring(0,n).trim().toLowerCase(),a=i.substring(n+1).trim(),!(!r||t[r]&&hg[r])&&(r==="set-cookie"?t[r]?t[r].push(a):t[r]=[a]:t[r]=t[r]?t[r]+", "+a:a)}),t};const Id=Symbol("internals"),gg=e=>!/[\r\n]/.test(e);function Bd(e,t){if(!(e===!1||e==null)){if(A.isArray(e)){e.forEach(r=>Bd(r,t));return}if(!gg(String(e)))throw new Error(`Invalid character in header content ["${t}"]`)}}function cr(e){return e&&String(e).trim().toLowerCase()}function xg(e){let t=e.length;for(;t>0;){const r=e.charCodeAt(t-1);if(r!==10&&r!==13)break;t-=1}return t===e.length?e:e.slice(0,t)}function Dc(e){return e===!1||e==null?e:A.isArray(e)?e.map(Dc):xg(String(e))}function yg(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=r.exec(e);)t[a[1]]=a[2];return t}const bg=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Zl(e,t,r,a,n){if(A.isFunction(a))return a.call(this,t,r);if(n&&(t=r),!!A.isString(t)){if(A.isString(a))return t.indexOf(a)!==-1;if(A.isRegExp(a))return a.test(t)}}function Eg(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,a)=>r.toUpperCase()+a)}function Cg(e,t){const r=A.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+r,{value:function(n,s,i){return this[a].call(this,t,n,s,i)},configurable:!0})})}let He=class{constructor(t){t&&this.set(t)}set(t,r,a){const n=this;function s(o,c,l){const u=cr(c);if(!u)throw new Error("header name must be a non-empty string");const p=A.findKey(n,u);(!p||n[p]===void 0||l===!0||l===void 0&&n[p]!==!1)&&(Bd(o,c),n[p||c]=Dc(o))}const i=(o,c)=>A.forEach(o,(l,u)=>s(l,u,c));if(A.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(A.isString(t)&&(t=t.trim())&&!bg(t))i(vg(t),r);else if(A.isObject(t)&&A.isIterable(t)){let o={},c,l;for(const u of t){if(!A.isArray(u))throw TypeError("Object iterator must return a key-value pair");o[l=u[0]]=(c=o[l])?A.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}i(o,r)}else t!=null&&s(r,t,a);return this}get(t,r){if(t=cr(t),t){const a=A.findKey(this,t);if(a){const n=this[a];if(!r)return n;if(r===!0)return yg(n);if(A.isFunction(r))return r.call(this,n,a);if(A.isRegExp(r))return r.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=cr(t),t){const a=A.findKey(this,t);return!!(a&&this[a]!==void 0&&(!r||Zl(this,this[a],a,r)))}return!1}delete(t,r){const a=this;let n=!1;function s(i){if(i=cr(i),i){const o=A.findKey(a,i);o&&(!r||Zl(a,a[o],o,r))&&(delete a[o],n=!0)}}return A.isArray(t)?t.forEach(s):s(t),n}clear(t){const r=Object.keys(this);let a=r.length,n=!1;for(;a--;){const s=r[a];(!t||Zl(this,this[s],s,t,!0))&&(delete this[s],n=!0)}return n}normalize(t){const r=this,a={};return A.forEach(this,(n,s)=>{const i=A.findKey(a,s);if(i){r[i]=Dc(n),delete r[s];return}const o=t?Eg(s):String(s).trim();o!==s&&delete r[s],r[o]=Dc(n),a[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return A.forEach(this,(a,n)=>{a!=null&&a!==!1&&(r[n]=t&&A.isArray(a)?a.join(", "):a)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
14
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const a=new this(t);return r.forEach(n=>a.set(n)),a}static accessor(t){const a=(this[Id]=this[Id]={accessors:{}}).accessors,n=this.prototype;function s(i){const o=cr(i);a[o]||(Cg(n,i),a[o]=!0)}return A.isArray(t)?t.forEach(s):s(t),this}};He.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),A.reduceDescriptors(He.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[r]=a}}}),A.freezeMethods(He);function eu(e,t){const r=this||or,a=t||r,n=He.from(a.headers);let s=a.data;return A.forEach(e,function(o){s=o.call(r,s,n.normalize(),t?t.status:void 0)}),n.normalize(),s}function _d(e){return!!(e&&e.__CANCEL__)}let xa=class extends F{constructor(t,r,a){super(t??"canceled",F.ERR_CANCELED,r,a),this.name="CanceledError",this.__CANCEL__=!0}};function Ma(e,t,r){const a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):t(new F("Request failed with status code "+r.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Sg(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Tg(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function tu(e,t,r){let a=!Sg(t);return e&&(a||r==!1)?Tg(e,t):t}var wg={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function Ag(e){try{return new URL(e)}catch{return null}}function Ig(e){var t=(typeof e=="string"?Ag(e):e)||{},r=t.protocol,a=t.host,n=t.port;if(typeof a!="string"||!a||typeof r!="string"||(r=r.split(":",1)[0],a=a.replace(/:\d*$/,""),n=parseInt(n)||wg[r]||0,!Bg(a,n)))return"";var s=au(r+"_proxy")||au("all_proxy");return s&&s.indexOf("://")===-1&&(s=r+"://"+s),s}function Bg(e,t){var r=au("no_proxy").toLowerCase();return r?r==="*"?!1:r.split(/[,\s]/).every(function(a){if(!a)return!0;var n=a.match(/^(.+):(\d+)$/),s=n?n[1]:a,i=n?parseInt(n[2]):0;return i&&i!==t?!0:/^[.*]/.test(s)?(s.charAt(0)==="*"&&(s=s.slice(1)),!e.endsWith(s)):e!==s}):!0}function au(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}var ru={exports:{}},Pc={exports:{}},Oc={exports:{}},nu,Rd;function _g(){if(Rd)return nu;Rd=1;var e=1e3,t=e*60,r=t*60,a=r*24,n=a*7,s=a*365.25;nu=function(u,p){p=p||{};var f=typeof u;if(f==="string"&&u.length>0)return i(u);if(f==="number"&&isFinite(u))return p.long?c(u):o(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function i(u){if(u=String(u),!(u.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(p){var f=parseFloat(p[1]),x=(p[2]||"ms").toLowerCase();switch(x){case"years":case"year":case"yrs":case"yr":case"y":return f*s;case"weeks":case"week":case"w":return f*n;case"days":case"day":case"d":return f*a;case"hours":case"hour":case"hrs":case"hr":case"h":return f*r;case"minutes":case"minute":case"mins":case"min":case"m":return f*t;case"seconds":case"second":case"secs":case"sec":case"s":return f*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}function o(u){var p=Math.abs(u);return p>=a?Math.round(u/a)+"d":p>=r?Math.round(u/r)+"h":p>=t?Math.round(u/t)+"m":p>=e?Math.round(u/e)+"s":u+"ms"}function c(u){var p=Math.abs(u);return p>=a?l(u,p,a,"day"):p>=r?l(u,p,r,"hour"):p>=t?l(u,p,t,"minute"):p>=e?l(u,p,e,"second"):u+" ms"}function l(u,p,f,x){var m=p>=f*1.5;return Math.round(u/f)+" "+x+(m?"s":"")}return nu}var iu,kd;function Nd(){if(kd)return iu;kd=1;function e(t){a.debug=a,a.default=a,a.coerce=l,a.disable=o,a.enable=s,a.enabled=c,a.humanize=_g(),a.destroy=u,Object.keys(t).forEach(p=>{a[p]=t[p]}),a.names=[],a.skips=[],a.formatters={};function r(p){let f=0;for(let x=0;x<p.length;x++)f=(f<<5)-f+p.charCodeAt(x),f|=0;return a.colors[Math.abs(f)%a.colors.length]}a.selectColor=r;function a(p){let f,x=null,m,y;function b(...S){if(!b.enabled)return;const B=b,_=Number(new Date),P=_-(f||_);B.diff=P,B.prev=f,B.curr=_,f=_,S[0]=a.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let U=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(H,G)=>{if(H==="%%")return"%";U++;const Z=a.formatters[G];if(typeof Z=="function"){const ce=S[U];H=Z.call(B,ce),S.splice(U,1),U--}return H}),a.formatArgs.call(B,S),(B.log||a.log).apply(B,S)}return b.namespace=p,b.useColors=a.useColors(),b.color=a.selectColor(p),b.extend=n,b.destroy=a.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>x!==null?x:(m!==a.namespaces&&(m=a.namespaces,y=a.enabled(p)),y),set:S=>{x=S}}),typeof a.init=="function"&&a.init(b),b}function n(p,f){const x=a(this.namespace+(typeof f>"u"?":":f)+p);return x.log=this.log,x}function s(p){a.save(p),a.namespaces=p,a.names=[],a.skips=[];const f=(typeof p=="string"?p:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const x of f)x[0]==="-"?a.skips.push(x.slice(1)):a.names.push(x)}function i(p,f){let x=0,m=0,y=-1,b=0;for(;x<p.length;)if(m<f.length&&(f[m]===p[x]||f[m]==="*"))f[m]==="*"?(y=m,b=x,m++):(x++,m++);else if(y!==-1)m=y+1,b++,x=b;else return!1;for(;m<f.length&&f[m]==="*";)m++;return m===f.length}function o(){const p=[...a.names,...a.skips.map(f=>"-"+f)].join(",");return a.enable(""),p}function c(p){for(const f of a.skips)if(i(p,f))return!1;for(const f of a.names)if(i(p,f))return!0;return!1}function l(p){return p instanceof Error?p.stack||p.message:p}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return a.enable(a.load()),a}return iu=e,iu}var Ld;function Rg(){return Ld||(Ld=1,(function(e,t){t.formatArgs=a,t.save=n,t.load=s,t.useColors=r,t.storage=i(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let c;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(c=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(c[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function a(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;c.splice(1,0,l,"color: inherit");let u=0,p=0;c[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(p=u))}),c.splice(p,0,l)}t.log=console.debug||console.log||(()=>{});function n(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function s(){let c;try{c=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}function i(){try{return localStorage}catch{}}e.exports=Nd()(t);const{formatters:o}=e.exports;o.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}})(Oc,Oc.exports)),Oc.exports}var Fc={exports:{}},su,Ud;function kg(){return Ud||(Ud=1,su=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--",a=t.indexOf(r+e),n=t.indexOf("--");return a!==-1&&(n===-1||a<n)}),su}var ou,Dd;function Ng(){if(Dd)return ou;Dd=1;const e=cm,t=bp,r=kg(),{env:a}=process;let n;r("no-color")||r("no-colors")||r("color=false")||r("color=never")?n=0:(r("color")||r("colors")||r("color=true")||r("color=always"))&&(n=1),"FORCE_COLOR"in a&&(a.FORCE_COLOR==="true"?n=1:a.FORCE_COLOR==="false"?n=0:n=a.FORCE_COLOR.length===0?1:Math.min(parseInt(a.FORCE_COLOR,10),3));function s(c){return c===0?!1:{level:c,hasBasic:!0,has256:c>=2,has16m:c>=3}}function i(c,l){if(n===0)return 0;if(r("color=16m")||r("color=full")||r("color=truecolor"))return 3;if(r("color=256"))return 2;if(c&&!l&&n===void 0)return 0;const u=n||0;if(a.TERM==="dumb")return u;if(process.platform==="win32"){const p=e.release().split(".");return Number(p[0])>=10&&Number(p[2])>=10586?Number(p[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(p=>p in a)||a.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if(a.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in a){const p=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return p>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:u}function o(c){const l=i(c,c&&c.isTTY);return s(l)}return ou={supportsColor:o,stdout:s(i(!0,t.isatty(1))),stderr:s(i(!0,t.isatty(2)))},ou}var Pd;function Lg(){return Pd||(Pd=1,(function(e,t){const r=bp,a=ha;t.init=u,t.log=o,t.formatArgs=s,t.save=c,t.load=l,t.useColors=n,t.destroy=a.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const f=Ng();f&&(f.stderr||f).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}t.inspectOpts=Object.keys(process.env).filter(f=>/^debug_/i.test(f)).reduce((f,x)=>{const m=x.substring(6).toLowerCase().replace(/_([a-z])/g,(b,S)=>S.toUpperCase());let y=process.env[x];return/^(yes|on|true|enabled)$/i.test(y)?y=!0:/^(no|off|false|disabled)$/i.test(y)?y=!1:y==="null"?y=null:y=Number(y),f[m]=y,f},{});function n(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:r.isatty(process.stderr.fd)}function s(f){const{namespace:x,useColors:m}=this;if(m){const y=this.color,b="\x1B[3"+(y<8?y:"8;5;"+y),S=` ${b};1m${x} \x1B[0m`;f[0]=S+f[0].split(`
|
|
15
15
|
`).join(`
|
|
16
16
|
`+S),f.push(b+"m+"+e.exports.humanize(this.diff)+"\x1B[0m")}else f[0]=i()+x+" "+f[0]}function i(){return t.inspectOpts.hideDate?"":new Date().toISOString()+" "}function o(...f){return process.stderr.write(a.formatWithOptions(t.inspectOpts,...f)+`
|
|
17
|
-
`)}function c(f){f?process.env.DEBUG=f:delete process.env.DEBUG}function l(){return process.env.DEBUG}function u(f){f.inspectOpts={};const x=Object.keys(t.inspectOpts);for(let m=0;m<x.length;m++)f.inspectOpts[x[m]]=t.inspectOpts[x[m]]}e.exports=
|
|
18
|
-
`).map(x=>x.trim()).join(" ")},p.O=function(f){return this.inspectOpts.colors=this.useColors,a.inspect(f,this.inspectOpts)}}(Fc,Fc.exports)),Fc.exports}var Pd;function Ig(){return Pd||(Pd=1,typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Pc.exports=Sg():Pc.exports=Ag()),Pc.exports}var ur,Bg=function(){if(!ur){try{ur=Ig()("follow-redirects")}catch{}typeof ur!="function"&&(ur=function(){})}ur.apply(null,arguments)},pr=Cc,dr=pr.URL,_g=bl,Rg=El,su=_t.Writable,ou=nm,Od=Bg;(function(){var t=typeof process<"u",r=typeof window<"u"&&typeof document<"u",a=ya(Error.captureStackTrace);!t&&(r||!a)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var cu=!1;try{ou(new dr(""))}catch(e){cu=e.code==="ERR_INVALID_URL"}var kg=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],lu=["abort","aborted","connect","error","socket","timeout"],uu=Object.create(null);lu.forEach(function(e){uu[e]=function(t,r,a){this._redirectable.emit(e,t,r,a)}});var pu=fr("ERR_INVALID_URL","Invalid URL",TypeError),du=fr("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Ng=fr("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",du),Lg=fr("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Ug=fr("ERR_STREAM_WRITE_AFTER_END","write after end"),Dg=su.prototype.destroy||Md;function mt(e,t){su.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(a){try{r._processResponse(a)}catch(n){r.emit("error",n instanceof du?n:new du({cause:n}))}},this._performRequest()}mt.prototype=Object.create(su.prototype),mt.prototype.abort=function(){vu(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},mt.prototype.destroy=function(e){return vu(this._currentRequest,e),Dg.call(this,e),this},mt.prototype.write=function(e,t,r){if(this._ending)throw new Ug;if(!xa(e)&&!Fg(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(ya(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Lg),this.abort())},mt.prototype.end=function(e,t,r){if(ya(e)?(r=e,e=t=null):ya(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var a=this,n=this._currentRequest;this.write(e,t,function(){a._ended=!0,n.end(null,null,r)}),this._ending=!0}},mt.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},mt.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},mt.prototype.setTimeout=function(e,t){var r=this;function a(i){i.setTimeout(e),i.removeListener("timeout",i.destroy),i.addListener("timeout",i.destroy)}function n(i){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},e),a(i)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),r.removeListener("close",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",n)}return t&&this.on("timeout",t),this.socket?n(this.socket):this._currentRequest.once("socket",n),this.on("socket",a),this.on("abort",s),this.on("error",s),this.on("response",s),this.on("close",s),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){mt.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(mt.prototype,e,{get:function(){return this._currentRequest[e]}})}),mt.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},mt.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var a=this._currentRequest=t.request(this._options,this._onNativeResponse);a._redirectable=this;for(var n of lu)a.on(n,uu[n]);if(this._currentUrl=/^\//.test(this._options.path)?pr.format(this._options):this._options.path,this._isRedirect){var s=0,i=this,o=this._requestBodyBuffers;(function c(l){if(a===i._currentRequest)if(l)i.emit("error",l);else if(s<o.length){var u=o[s++];a.finished||a.write(u.data,u.encoding,c)}else i._ended&&a.end()})()}},mt.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(vu(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Ng;var a,n=this._options.beforeRedirect;n&&(a=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],hu(/^content-/i,this._options.headers));var i=hu(/^host$/i,this._options.headers),o=fu(this._currentUrl),c=i||o.host,l=/^\w+:/.test(r)?this._currentUrl:pr.format(Object.assign(o,{host:c})),u=Pg(r,l);if(Od("redirecting to",u.href),this._isRedirect=!0,mu(u,this._options),(u.protocol!==o.protocol&&u.protocol!=="https:"||u.host!==c&&!Og(u.host,c))&&hu(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),ya(n)){var p={headers:e.headers,statusCode:t},f={url:l,method:s,headers:a};n(this._options,p,f),this._sanitizeOptions(this._options)}this._performRequest()};function Fd(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(a){var n=a+":",s=r[n]=e[a],i=t[a]=Object.create(s);function o(l,u,p){return Mg(l)?l=mu(l):xa(l)?l=mu(fu(l)):(p=u,u=Vd(l),l={protocol:n}),ya(u)&&(p=u,u=null),u=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},l,u),u.nativeProtocols=r,!xa(u.host)&&!xa(u.hostname)&&(u.hostname="::1"),ou.equal(u.protocol,n,"protocol mismatch"),Od("options",u),new mt(u,p)}function c(l,u,p){var f=i.request(l,u,p);return f.end(),f}Object.defineProperties(i,{request:{value:o,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function Md(){}function fu(e){var t;if(cu)t=new dr(e);else if(t=Vd(pr.parse(e)),!xa(t.protocol))throw new pu({input:e});return t}function Pg(e,t){return cu?new dr(e,t):fu(pr.resolve(t,e))}function Vd(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new pu({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new pu({input:e.href||e});return e}function mu(e,t){var r=t||{};for(var a of kg)r[a]=e[a];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function hu(e,t){var r;for(var a in t)e.test(a)&&(r=t[a],delete t[a]);return r===null||typeof r>"u"?void 0:String(r).trim()}function fr(e,t,r){function a(n){ya(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return a.prototype=new(r||Error),Object.defineProperties(a.prototype,{constructor:{value:a,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),a}function vu(e,t){for(var r of lu)e.removeListener(r,uu[r]);e.on("error",Md),e.destroy(t)}function Og(e,t){ou(xa(e)&&xa(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function xa(e){return typeof e=="string"||e instanceof String}function ya(e){return typeof e=="function"}function Fg(e){return typeof e=="object"&&"length"in e}function Mg(e){return dr&&e instanceof dr}tu.exports=Fd({http:_g,https:Rg}),tu.exports.wrap=Fd;var Vg=tu.exports,qg=Rp(Vg);const Mc="1.12.2";function qd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const jg=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function Kg(e,t,r){const a=r&&r.Blob||Le.classes.Blob,n=qd(e);if(t===void 0&&a&&(t=!0),n==="data"){e=n.length?e.slice(n.length+1):e;const s=jg.exec(e);if(!s)throw new j("Invalid URL",j.ERR_INVALID_URL);const i=s[1],o=s[2],c=s[3],l=Buffer.from(decodeURIComponent(c),o?"base64":"utf8");if(t){if(!a)throw new j("Blob is not supported",j.ERR_NOT_SUPPORT);return new a([l],{type:i})}return l}throw new j("Unsupported protocol "+n,j.ERR_NOT_SUPPORT)}const gu=Symbol("internals");class jd extends _t.Transform{constructor(t){t=A.toFlatObject(t,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(a,n)=>!A.isUndefined(n[a])),super({readableHighWaterMark:t.chunkSize});const r=this[gu]={timeWindow:t.timeWindow,chunkSize:t.chunkSize,maxRate:t.maxRate,minChunkSize:t.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",a=>{a==="progress"&&(r.isCaptured||(r.isCaptured=!0))})}_read(t){const r=this[gu];return r.onReadCallback&&r.onReadCallback(),super._read(t)}_transform(t,r,a){const n=this[gu],s=n.maxRate,i=this.readableHighWaterMark,o=n.timeWindow,c=1e3/o,l=s/c,u=n.minChunkSize!==!1?Math.max(n.minChunkSize,l*.01):0,p=(x,m)=>{const y=Buffer.byteLength(x);n.bytesSeen+=y,n.bytes+=y,n.isCaptured&&this.emit("progress",n.bytesSeen),this.push(x)?process.nextTick(m):n.onReadCallback=()=>{n.onReadCallback=null,process.nextTick(m)}},f=(x,m)=>{const y=Buffer.byteLength(x);let b=null,S=i,B,_=0;if(s){const D=Date.now();(!n.ts||(_=D-n.ts)>=o)&&(n.ts=D,B=l-n.bytes,n.bytes=B<0?-B:0,_=0),B=l-n.bytes}if(s){if(B<=0)return setTimeout(()=>{m(null,x)},o-_);B<S&&(S=B)}S&&y>S&&y-S>u&&(b=x.subarray(S),x=x.subarray(0,S)),p(x,b?()=>{process.nextTick(m,null,b)}:m)};f(t,function x(m,y){if(m)return a(m);y?f(y,x):a(null)})}}const{asyncIterator:Kd}=Symbol,zd=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[Kd]?yield*e[Kd]():yield e},zg=Le.ALPHABET.ALPHA_DIGIT+"-_",mr=typeof TextEncoder=="function"?new TextEncoder:new Na.TextEncoder,ba=`\r
|
|
19
|
-
`,Hg=mr.encode(ba),$g=2;class Gg{constructor(t,r){const{escapeName:a}=this.constructor,n=A.isString(r);let s=`Content-Disposition: form-data; name="${a(t)}"${!n&&r.name?`; filename="${a(r.name)}"`:""}${ba}`;n?r=mr.encode(String(r).replace(/\r?\n|\r\n?/g,ba)):s+=`Content-Type: ${r.type||"application/octet-stream"}${ba}`,this.headers=mr.encode(s+ba),this.contentLength=n?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+$g,this.name=t,this.value=r}async*encode(){yield this.headers;const{value:t}=this;A.isTypedArray(t)?yield t:yield*zd(t),yield Hg}static escapeName(t){return String(t).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}}const Qg=(e,t,r)=>{const{tag:a="form-data-boundary",size:n=25,boundary:s=a+"-"+Le.generateString(n,zg)}=r||{};if(!A.isFormData(e))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");const i=mr.encode("--"+s+ba),o=mr.encode("--"+s+"--"+ba);let c=o.byteLength;const l=Array.from(e.entries()).map(([p,f])=>{const x=new Gg(p,f);return c+=x.size,x});c+=i.byteLength*l.length,c=A.toFiniteNumber(c);const u={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(c)&&(u["Content-Length"]=c),t&&t(u),tm.from(async function*(){for(const p of l)yield i,yield*p.encode();yield o}())};class Wg extends _t.Transform{__transform(t,r,a){this.push(t),a()}_transform(t,r,a){if(t.length!==0&&(this._transform=this.__transform,t[0]!==120)){const n=Buffer.alloc(2);n[0]=120,n[1]=156,this.push(n,r)}this.__transform(t,r,a)}}const Xg=(e,t)=>A.isAsyncFn(e)?function(...r){const a=r.pop();e.apply(this,r).then(n=>{try{t?a(null,...t(n)):a(null,n)}catch(s){a(s)}},a)}:e;function Yg(e,t){e=e||10;const r=new Array(e),a=new Array(e);let n=0,s=0,i;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=a[s];i||(i=l),r[n]=c,a[n]=l;let p=s,f=0;for(;p!==n;)f+=r[p++],p=p%e;if(n=(n+1)%e,n===s&&(s=(s+1)%e),l-i<t)return;const x=u&&l-u;return x?Math.round(f*1e3/x):void 0}}function Jg(e,t){let r=0,a=1e3/t,n,s;const i=(l,u=Date.now())=>{r=u,n=null,s&&(clearTimeout(s),s=null),e(...l)};return[(...l)=>{const u=Date.now(),p=u-r;p>=a?i(l,u):(n=l,s||(s=setTimeout(()=>{s=null,i(n)},a-p)))},()=>n&&i(n)]}const qa=(e,t,r=3)=>{let a=0;const n=Yg(50,250);return Jg(s=>{const i=s.loaded,o=s.lengthComputable?s.total:void 0,c=i-a,l=n(c),u=i<=o;a=i;const p={loaded:i,total:o,progress:o?i/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:s,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(p)},r)},Vc=(e,t)=>{const r=e!=null;return[a=>t[0]({lengthComputable:r,total:e,loaded:a}),t[1]]},qc=e=>(...t)=>A.asap(()=>e(...t));function Zg(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const r=e.slice(5,t),a=e.slice(t+1);if(/;base64/i.test(r)){let s=a.length;const i=a.length;for(let f=0;f<i;f++)if(a.charCodeAt(f)===37&&f+2<i){const x=a.charCodeAt(f+1),m=a.charCodeAt(f+2);(x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102)&&(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(s-=2,f+=2)}let o=0,c=i-1;const l=f=>f>=2&&a.charCodeAt(f-2)===37&&a.charCodeAt(f-1)===51&&(a.charCodeAt(f)===68||a.charCodeAt(f)===100);c>=0&&(a.charCodeAt(c)===61?(o++,c--):l(c)&&(o++,c-=3)),o===1&&c>=0&&(a.charCodeAt(c)===61||l(c))&&o++;const p=Math.floor(s/4)*3-(o||0);return p>0?p:0}return Buffer.byteLength(a,"utf8")}const Hd={flush:ta.constants.Z_SYNC_FLUSH,finishFlush:ta.constants.Z_SYNC_FLUSH},ex={flush:ta.constants.BROTLI_OPERATION_FLUSH,finishFlush:ta.constants.BROTLI_OPERATION_FLUSH},$d=A.isFunction(ta.createBrotliDecompress),{http:tx,https:ax}=qg,rx=/https:?/,Gd=Le.protocols.map(e=>e+":"),Qd=(e,[t,r])=>(e.on("end",r).on("error",r),t);function nx(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function Wd(e,t,r){let a=t;if(!a&&a!==!1){const n=Bd.getProxyForUrl(r);n&&(a=new URL(n))}if(a){if(a.username&&(a.auth=(a.username||"")+":"+(a.password||"")),a.auth){(a.auth.username||a.auth.password)&&(a.auth=(a.auth.username||"")+":"+(a.auth.password||""));const s=Buffer.from(a.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+s}e.headers.host=e.hostname+(e.port?":"+e.port:"");const n=a.hostname||a.host;e.hostname=n,e.host=n,e.port=a.port,e.path=r,a.protocol&&(e.protocol=a.protocol.includes(":")?a.protocol:`${a.protocol}:`)}e.beforeRedirects.proxy=function(s){Wd(s,t,s.href)}}const ix=typeof process<"u"&&A.kindOf(process)==="process",sx=e=>new Promise((t,r)=>{let a,n;const s=(c,l)=>{n||(n=!0,a&&a(c,l))},i=c=>{s(c),t(c)},o=c=>{s(c,!0),r(c)};e(i,o,c=>a=c).catch(o)}),ox=({address:e,family:t})=>{if(!A.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}},Xd=(e,t)=>ox(A.isObject(e)?e:{address:e,family:t});var cx=ix&&function(t){return sx(async function(a,n,s){let{data:i,lookup:o,family:c}=t;const{responseType:l,responseEncoding:u}=t,p=t.method.toUpperCase();let f,x=!1,m;if(o){const U=Xg(o,H=>A.isArray(H)?H:[H]);o=(H,Se,be)=>{U(H,Se,(X,ue,_e)=>{if(X)return be(X);const ge=A.isArray(ue)?ue.map(xe=>Xd(xe)):[Xd(ue,_e)];Se.all?be(X,ge):be(X,ge[0].address,ge[0].family)})}}const y=new sm,b=()=>{t.cancelToken&&t.cancelToken.unsubscribe(S),t.signal&&t.signal.removeEventListener("abort",S),y.removeAllListeners()};s((U,H)=>{f=!0,H&&(x=!0,b())});function S(U){y.emit("abort",!U||U.type?new ra(null,t,m):U)}y.once("abort",n),(t.cancelToken||t.signal)&&(t.cancelToken&&t.cancelToken.subscribe(S),t.signal&&(t.signal.aborted?S():t.signal.addEventListener("abort",S)));const B=eu(t.baseURL,t.url,t.allowAbsoluteUrls),_=new URL(B,Le.hasBrowserEnv?Le.origin:void 0),D=_.protocol||Gd[0];if(D==="data:"){if(t.maxContentLength>-1){const H=String(t.url||B||"");if(Zg(H)>t.maxContentLength)return n(new j("maxContentLength size of "+t.maxContentLength+" exceeded",j.ERR_BAD_RESPONSE,t))}let U;if(p!=="GET")return Ma(a,n,{status:405,statusText:"method not allowed",headers:{},config:t});try{U=Kg(t.url,l==="blob",{Blob:t.env&&t.env.Blob})}catch(H){throw j.from(H,j.ERR_BAD_REQUEST,t)}return l==="text"?(U=U.toString(u),(!u||u==="utf8")&&(U=A.stripBOM(U))):l==="stream"&&(U=_t.Readable.from(U)),Ma(a,n,{data:U,status:200,statusText:"OK",headers:new ze,config:t})}if(Gd.indexOf(D)===-1)return n(new j("Unsupported protocol "+D,j.ERR_BAD_REQUEST,t));const k=ze.from(t.headers).normalize();k.set("User-Agent","axios/"+Mc,!1);const{onUploadProgress:P,onDownloadProgress:z}=t,W=t.maxRate;let J,te;if(A.isSpecCompliantForm(i)){const U=k.getContentType(/boundary=([-_\w\d]{10,70})/i);i=Qg(i,H=>{k.set(H)},{tag:`axios-${Mc}-boundary`,boundary:U&&U[1]||void 0})}else if(A.isFormData(i)&&A.isFunction(i.getHeaders)){if(k.set(i.getHeaders()),!k.hasContentLength())try{const U=await Na.promisify(i.getLength).call(i);Number.isFinite(U)&&U>=0&&k.setContentLength(U)}catch{}}else if(A.isBlob(i)||A.isFile(i))i.size&&k.setContentType(i.type||"application/octet-stream"),k.setContentLength(i.size||0),i=_t.Readable.from(zd(i));else if(i&&!A.isStream(i)){if(!Buffer.isBuffer(i))if(A.isArrayBuffer(i))i=Buffer.from(new Uint8Array(i));else if(A.isString(i))i=Buffer.from(i,"utf-8");else return n(new j("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",j.ERR_BAD_REQUEST,t));if(k.setContentLength(i.length,!1),t.maxBodyLength>-1&&i.length>t.maxBodyLength)return n(new j("Request body larger than maxBodyLength limit",j.ERR_BAD_REQUEST,t))}const ve=A.toFiniteNumber(k.getContentLength());A.isArray(W)?(J=W[0],te=W[1]):J=te=W,i&&(P||J)&&(A.isStream(i)||(i=_t.Readable.from(i,{objectMode:!1})),i=_t.pipeline([i,new jd({maxRate:A.toFiniteNumber(J)})],A.noop),P&&i.on("progress",Qd(i,Vc(ve,qa(qc(P),!1,3)))));let pe;if(t.auth){const U=t.auth.username||"",H=t.auth.password||"";pe=U+":"+H}if(!pe&&_.username){const U=_.username,H=_.password;pe=U+":"+H}pe&&k.delete("authorization");let ke;try{ke=Gl(_.pathname+_.search,t.params,t.paramsSerializer).replace(/^\?/,"")}catch(U){const H=new Error(U.message);return H.config=t,H.url=t.url,H.exists=!0,n(H)}k.set("Accept-Encoding","gzip, compress, deflate"+($d?", br":""),!1);const oe={path:ke,method:p,headers:k.toJSON(),agents:{http:t.httpAgent,https:t.httpsAgent},auth:pe,protocol:D,family:c,beforeRedirect:nx,beforeRedirects:{}};!A.isUndefined(o)&&(oe.lookup=o),t.socketPath?oe.socketPath=t.socketPath:(oe.hostname=_.hostname.startsWith("[")?_.hostname.slice(1,-1):_.hostname,oe.port=_.port,Wd(oe,t.proxy,D+"//"+_.hostname+(_.port?":"+_.port:"")+oe.path));let ce;const le=rx.test(oe.protocol);if(oe.agent=le?t.httpsAgent:t.httpAgent,t.transport?ce=t.transport:t.maxRedirects===0?ce=le?El:bl:(t.maxRedirects&&(oe.maxRedirects=t.maxRedirects),t.beforeRedirect&&(oe.beforeRedirects.config=t.beforeRedirect),ce=le?ax:tx),t.maxBodyLength>-1?oe.maxBodyLength=t.maxBodyLength:oe.maxBodyLength=1/0,t.insecureHTTPParser&&(oe.insecureHTTPParser=t.insecureHTTPParser),m=ce.request(oe,function(H){if(m.destroyed)return;const Se=[H],be=+H.headers["content-length"];if(z||te){const xe=new jd({maxRate:A.toFiniteNumber(te)});z&&xe.on("progress",Qd(xe,Vc(be,qa(qc(z),!0,3)))),Se.push(xe)}let X=H;const ue=H.req||m;if(t.decompress!==!1&&H.headers["content-encoding"])switch((p==="HEAD"||H.statusCode===204)&&delete H.headers["content-encoding"],(H.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":Se.push(ta.createUnzip(Hd)),delete H.headers["content-encoding"];break;case"deflate":Se.push(new Wg),Se.push(ta.createUnzip(Hd)),delete H.headers["content-encoding"];break;case"br":$d&&(Se.push(ta.createBrotliDecompress(ex)),delete H.headers["content-encoding"])}X=Se.length>1?_t.pipeline(Se,A.noop):Se[0];const _e=_t.finished(X,()=>{_e(),b()}),ge={status:H.statusCode,statusText:H.statusMessage,headers:new ze(H.headers),config:t,request:ue};if(l==="stream")ge.data=X,Ma(a,n,ge);else{const xe=[];let Fe=0;X.on("data",function(ye){xe.push(ye),Fe+=ye.length,t.maxContentLength>-1&&Fe>t.maxContentLength&&(x=!0,X.destroy(),n(new j("maxContentLength size of "+t.maxContentLength+" exceeded",j.ERR_BAD_RESPONSE,t,ue)))}),X.on("aborted",function(){if(x)return;const ye=new j("stream has been aborted",j.ERR_BAD_RESPONSE,t,ue);X.destroy(ye),n(ye)}),X.on("error",function(ye){m.destroyed||n(j.from(ye,null,t,ue))}),X.on("end",function(){try{let ye=xe.length===1?xe[0]:Buffer.concat(xe);l!=="arraybuffer"&&(ye=ye.toString(u),(!u||u==="utf8")&&(ye=A.stripBOM(ye))),ge.data=ye}catch(ye){return n(j.from(ye,null,t,ge.request,ge))}Ma(a,n,ge)})}y.once("abort",xe=>{X.destroyed||(X.emit("error",xe),X.destroy())})}),y.once("abort",U=>{n(U),m.destroy(U)}),m.on("error",function(H){n(j.from(H,null,t,m))}),m.on("socket",function(H){H.setKeepAlive(!0,1e3*60)}),t.timeout){const U=parseInt(t.timeout,10);if(Number.isNaN(U)){n(new j("error trying to parse `config.timeout` to int",j.ERR_BAD_OPTION_VALUE,t,m));return}m.setTimeout(U,function(){if(f)return;let Se=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const be=t.transitional||Ql;t.timeoutErrorMessage&&(Se=t.timeoutErrorMessage),n(new j(Se,be.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,t,m)),S()})}if(A.isStream(i)){let U=!1,H=!1;i.on("end",()=>{U=!0}),i.once("error",Se=>{H=!0,m.destroy(Se)}),i.on("close",()=>{!U&&!H&&S(new ra("Request stream has been aborted",t,m))}),i.pipe(m)}else m.end(i)})},lx=Le.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Le.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Le.origin),Le.navigator&&/(msie|trident)/i.test(Le.navigator.userAgent)):()=>!0,ux=Le.hasStandardBrowserEnv?{write(e,t,r,a,n,s){const i=[e+"="+encodeURIComponent(t)];A.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),A.isString(a)&&i.push("path="+a),A.isString(n)&&i.push("domain="+n),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};const Yd=e=>e instanceof ze?{...e}:e;function Ea(e,t){t=t||{};const r={};function a(l,u,p,f){return A.isPlainObject(l)&&A.isPlainObject(u)?A.merge.call({caseless:f},l,u):A.isPlainObject(u)?A.merge({},u):A.isArray(u)?u.slice():u}function n(l,u,p,f){if(A.isUndefined(u)){if(!A.isUndefined(l))return a(void 0,l,p,f)}else return a(l,u,p,f)}function s(l,u){if(!A.isUndefined(u))return a(void 0,u)}function i(l,u){if(A.isUndefined(u)){if(!A.isUndefined(l))return a(void 0,l)}else return a(void 0,u)}function o(l,u,p){if(p in t)return a(l,u);if(p in e)return a(void 0,l)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:o,headers:(l,u,p)=>n(Yd(l),Yd(u),p,!0)};return A.forEach(Object.keys({...e,...t}),function(u){const p=c[u]||n,f=p(e[u],t[u],u);A.isUndefined(f)&&p!==o||(r[u]=f)}),r}var Jd=e=>{const t=Ea({},e);let{data:r,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:s,headers:i,auth:o}=t;if(t.headers=i=ze.from(i),t.url=Gl(eu(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),o&&i.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),A.isFormData(r)){if(Le.hasStandardBrowserEnv||Le.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(A.isFunction(r.getHeaders)){const c=r.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([u,p])=>{l.includes(u.toLowerCase())&&i.set(u,p)})}}if(Le.hasStandardBrowserEnv&&(a&&A.isFunction(a)&&(a=a(t)),a||a!==!1&&lx(t.url))){const c=n&&s&&ux.read(s);c&&i.set(n,c)}return t};const px=typeof XMLHttpRequest<"u";var dx=px&&function(e){return new Promise(function(r,a){const n=Jd(e);let s=n.data;const i=ze.from(n.headers).normalize();let{responseType:o,onUploadProgress:c,onDownloadProgress:l}=n,u,p,f,x,m;function y(){x&&x(),m&&m(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(n.method.toUpperCase(),n.url,!0),b.timeout=n.timeout;function S(){if(!b)return;const _=ze.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),k={data:!o||o==="text"||o==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:_,config:e,request:b};Ma(function(z){r(z),y()},function(z){a(z),y()},k),b=null}"onloadend"in b?b.onloadend=S:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(S)},b.onabort=function(){b&&(a(new j("Request aborted",j.ECONNABORTED,e,b)),b=null)},b.onerror=function(D){const k=D&&D.message?D.message:"Network Error",P=new j(k,j.ERR_NETWORK,e,b);P.event=D||null,a(P),b=null},b.ontimeout=function(){let D=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const k=n.transitional||Ql;n.timeoutErrorMessage&&(D=n.timeoutErrorMessage),a(new j(D,k.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,e,b)),b=null},s===void 0&&i.setContentType(null),"setRequestHeader"in b&&A.forEach(i.toJSON(),function(D,k){b.setRequestHeader(k,D)}),A.isUndefined(n.withCredentials)||(b.withCredentials=!!n.withCredentials),o&&o!=="json"&&(b.responseType=n.responseType),l&&([f,m]=qa(l,!0),b.addEventListener("progress",f)),c&&b.upload&&([p,x]=qa(c),b.upload.addEventListener("progress",p),b.upload.addEventListener("loadend",x)),(n.cancelToken||n.signal)&&(u=_=>{b&&(a(!_||_.type?new ra(null,e,b):_),b.abort(),b=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const B=qd(n.url);if(B&&Le.protocols.indexOf(B)===-1){a(new j("Unsupported protocol "+B+":",j.ERR_BAD_REQUEST,e));return}b.send(s||null)})};const fx=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let a=new AbortController,n;const s=function(l){if(!n){n=!0,o();const u=l instanceof Error?l:this.reason;a.abort(u instanceof j?u:new ra(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,s(new j(`timeout ${t} of ms exceeded`,j.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),e=null)};e.forEach(l=>l.addEventListener("abort",s));const{signal:c}=a;return c.unsubscribe=()=>A.asap(o),c}},mx=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let a=0,n;for(;a<r;)n=a+t,yield e.slice(a,n),a=n},hx=async function*(e,t){for await(const r of vx(e))yield*mx(r,t)},vx=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:a}=await t.read();if(r)break;yield a}}finally{await t.cancel()}},Zd=(e,t,r,a)=>{const n=hx(e,t);let s=0,i,o=c=>{i||(i=!0,a&&a(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await n.next();if(l){o(),c.close();return}let p=u.byteLength;if(r){let f=s+=p;r(f)}c.enqueue(new Uint8Array(u))}catch(l){throw o(l),l}},cancel(c){return o(c),n.return()}},{highWaterMark:2})},ef=64*1024,{isFunction:jc}=A,gx=(({Request:e,Response:t})=>({Request:e,Response:t}))(A.global),{ReadableStream:tf,TextEncoder:af}=A.global,rf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},xx=e=>{e=A.merge.call({skipUndefined:!0},gx,e);const{fetch:t,Request:r,Response:a}=e,n=t?jc(t):typeof fetch=="function",s=jc(r),i=jc(a);if(!n)return!1;const o=n&&jc(tf),c=n&&(typeof af=="function"?(m=>y=>m.encode(y))(new af):async m=>new Uint8Array(await new r(m).arrayBuffer())),l=s&&o&&rf(()=>{let m=!1;const y=new r(Le.origin,{body:new tf,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!y}),u=i&&o&&rf(()=>A.isReadableStream(new a("").body)),p={stream:u&&(m=>m.body)};n&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!p[m]&&(p[m]=(y,b)=>{let S=y&&y[m];if(S)return S.call(y);throw new j(`Response type '${m}' is not supported`,j.ERR_NOT_SUPPORT,b)})});const f=async m=>{if(m==null)return 0;if(A.isBlob(m))return m.size;if(A.isSpecCompliantForm(m))return(await new r(Le.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(A.isArrayBufferView(m)||A.isArrayBuffer(m))return m.byteLength;if(A.isURLSearchParams(m)&&(m=m+""),A.isString(m))return(await c(m)).byteLength},x=async(m,y)=>{const b=A.toFiniteNumber(m.getContentLength());return b??f(y)};return async m=>{let{url:y,method:b,data:S,signal:B,cancelToken:_,timeout:D,onDownloadProgress:k,onUploadProgress:P,responseType:z,headers:W,withCredentials:J="same-origin",fetchOptions:te}=Jd(m),ve=t||fetch;z=z?(z+"").toLowerCase():"text";let pe=fx([B,_&&_.toAbortSignal()],D),ke=null;const oe=pe&&pe.unsubscribe&&(()=>{pe.unsubscribe()});let ce;try{if(P&&l&&b!=="get"&&b!=="head"&&(ce=await x(W,S))!==0){let X=new r(y,{method:"POST",body:S,duplex:"half"}),ue;if(A.isFormData(S)&&(ue=X.headers.get("content-type"))&&W.setContentType(ue),X.body){const[_e,ge]=Vc(ce,qa(qc(P)));S=Zd(X.body,ef,_e,ge)}}A.isString(J)||(J=J?"include":"omit");const le=s&&"credentials"in r.prototype,U={...te,signal:pe,method:b.toUpperCase(),headers:W.normalize().toJSON(),body:S,duplex:"half",credentials:le?J:void 0};ke=s&&new r(y,U);let H=await(s?ve(ke,te):ve(y,U));const Se=u&&(z==="stream"||z==="response");if(u&&(k||Se&&oe)){const X={};["status","statusText","headers"].forEach(xe=>{X[xe]=H[xe]});const ue=A.toFiniteNumber(H.headers.get("content-length")),[_e,ge]=k&&Vc(ue,qa(qc(k),!0))||[];H=new a(Zd(H.body,ef,_e,()=>{ge&&ge(),oe&&oe()}),X)}z=z||"text";let be=await p[A.findKey(p,z)||"text"](H,m);return!Se&&oe&&oe(),await new Promise((X,ue)=>{Ma(X,ue,{data:be,headers:ze.from(H.headers),status:H.status,statusText:H.statusText,config:m,request:ke})})}catch(le){throw oe&&oe(),le&&le.name==="TypeError"&&/Load failed|fetch/i.test(le.message)?Object.assign(new j("Network Error",j.ERR_NETWORK,m,ke),{cause:le.cause||le}):j.from(le,le&&le.code,m,ke)}}},yx=new Map,nf=e=>{let t=e?e.env:{};const{fetch:r,Request:a,Response:n}=t,s=[a,n,r];let i=s.length,o=i,c,l,u=yx;for(;o--;)c=s[o],l=u.get(c),l===void 0&&u.set(c,l=o?new Map:xx(t)),u=l;return l};nf();const xu={http:cx,xhr:dx,fetch:{get:nf}};A.forEach(xu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const sf=e=>`- ${e}`,bx=e=>A.isFunction(e)||e===null||e===!1;var of={getAdapter:(e,t)=>{e=A.isArray(e)?e:[e];const{length:r}=e;let a,n;const s={};for(let i=0;i<r;i++){a=e[i];let o;if(n=a,!bx(a)&&(n=xu[(o=String(a)).toLowerCase()],n===void 0))throw new j(`Unknown adapter '${o}'`);if(n&&(A.isFunction(n)||(n=n.get(t))))break;s[o||"#"+i]=n}if(!n){const i=Object.entries(s).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=r?i.length>1?`since :
|
|
20
|
-
`+i.map(
|
|
21
|
-
`):" "+
|
|
22
|
-
`+s):a.stack=s}catch{}}throw a}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ea(this.defaults,r);const{transitional:a,paramsSerializer:n,headers:s}=r;a!==void 0&&zc.assertOptions(a,{silentJSONParsing:Vt.transitional(Vt.boolean),forcedJSONParsing:Vt.transitional(Vt.boolean),clarifyTimeoutError:Vt.transitional(Vt.boolean)},!1),n!=null&&(A.isFunction(n)?r.paramsSerializer={serialize:n}:zc.assertOptions(n,{encode:Vt.function,serialize:Vt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),zc.assertOptions(r,{baseUrl:Vt.spelling("baseURL"),withXsrfToken:Vt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=s&&A.merge(s.common,s[r.method]);s&&A.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),r.headers=ze.concat(i,s);const o=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(c=c&&y.synchronous,o.unshift(y.fulfilled,y.rejected))});const l=[];this.interceptors.response.forEach(function(y){l.push(y.fulfilled,y.rejected)});let u,p=0,f;if(!c){const m=[cf.bind(this),void 0];for(m.unshift(...o),m.push(...l),f=m.length,u=Promise.resolve(r);p<f;)u=u.then(m[p++],m[p++]);return u}f=o.length;let x=r;for(;p<f;){const m=o[p++],y=o[p++];try{x=m(x)}catch(b){y.call(this,b);break}}try{u=cf.call(this,x)}catch(m){return Promise.reject(m)}for(p=0,f=l.length;p<f;)u=u.then(l[p++],l[p++]);return u}getUri(t){t=Ea(this.defaults,t);const r=eu(t.baseURL,t.url,t.allowAbsoluteUrls);return Gl(r,t.params,t.paramsSerializer)}};A.forEach(["delete","get","head","options"],function(t){Ca.prototype[t]=function(r,a){return this.request(Ea(a||{},{method:t,url:r,data:(a||{}).data}))}}),A.forEach(["post","put","patch"],function(t){function r(a){return function(s,i,o){return this.request(Ea(o||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Ca.prototype[t]=r(),Ca.prototype[t+"Form"]=r(!0)});let Cx=class em{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const a=this;this.promise.then(n=>{if(!a._listeners)return;let s=a._listeners.length;for(;s-- >0;)a._listeners[s](n);a._listeners=null}),this.promise.then=n=>{let s;const i=new Promise(o=>{a.subscribe(o),s=o}).then(n);return i.cancel=function(){a.unsubscribe(s)},i},t(function(s,i,o){a.reason||(a.reason=new ra(s,i,o),r(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=a=>{t.abort(a)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new em(function(n){t=n}),cancel:t}}};function Sx(e){return function(r){return e.apply(null,r)}}function Tx(e){return A.isObject(e)&&e.isAxiosError===!0}const bu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(bu).forEach(([e,t])=>{bu[t]=e});function uf(e){const t=new Ca(e),r=yp(Ca.prototype.request,t);return A.extend(r,Ca.prototype,t,{allOwnKeys:!0}),A.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return uf(Ea(e,n))},r}const Pe=uf(cr);Pe.Axios=Ca,Pe.CanceledError=ra,Pe.CancelToken=Cx,Pe.isCancel=Id,Pe.VERSION=Mc,Pe.toFormData=Uc,Pe.AxiosError=j,Pe.Cancel=Pe.CanceledError,Pe.all=function(t){return Promise.all(t)},Pe.spread=Sx,Pe.isAxiosError=Tx,Pe.mergeConfig=Ea,Pe.AxiosHeaders=ze,Pe.formToJSON=e=>wd(A.isHTMLForm(e)?new FormData(e):e),Pe.getAdapter=of.getAdapter,Pe.HttpStatusCode=bu,Pe.default=Pe;var Ee=Pe;const{Axios:V2,AxiosError:q2,CanceledError:j2,isCancel:K2,CancelToken:z2,VERSION:H2,all:$2,Cancel:G2,isAxiosError:at,spread:Q2,toFormData:W2,AxiosHeaders:X2,HttpStatusCode:Y2,formToJSON:J2,getAdapter:Z2,mergeConfig:eS}=Ee,rt="https://api.circle.com".replace(/\/+$/,"");let wx=class extends Error{constructor(t,r){super(r),this.field=t,this.name="RequiredError"}};const nt={},it="https://example.com",qt=function(e,t,r){if(r==null)throw new wx(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},ht=async function(e,t){if(t&&t.accessToken){const r=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+r}};function Eu(e,t,r=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(a=>Eu(e,a,r)):Object.keys(t).forEach(a=>Eu(e,t[a],`${r}${r!==""?".":""}${a}`)):e.has(r)?e.append(r,t):e.set(r,t))}const st=function(e,...t){const r=new URLSearchParams(e.search);Eu(r,t),e.search=r.toString()},Sa=function(e,t,r){const a=typeof e!="string";return(a&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):a)?JSON.stringify(e!==void 0?e:{}):e||""},ot=function(e){return e.pathname+e.search+e.hash},ct=function(e,t,r,a){return(n=t,s=r)=>{const i={...e.options,url:(a?.basePath||n.defaults.baseURL||s)+e.url};return n.request(i)}},Ax=function(e){return{getEntityConfig:async(t={})=>{const r="/v1/w3s/config/entity",a=new URL(r,it);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},i={},o={};await ht(i,e),st(a,o);let c=n&&n.headers?n.headers:{};return s.headers={...i,...c,...t.headers},{url:ot(a),options:s}},getPublicKey:async(t={})=>{const r="/v1/w3s/config/entity/publicKey",a=new URL(r,it);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},i={},o={};await ht(i,e),st(a,o);let c=n&&n.headers?n.headers:{};return s.headers={...i,...c,...t.headers},{url:ot(a),options:s}}}},Ix=function(e){const t=Ax(e);return{async getEntityConfig(r){const a=await t.getEntityConfig(r),n=e?.serverIndex??0,s=nt["DeveloperAccountApi.getEntityConfig"]?.[n]?.url;return(i,o)=>ct(a,Ee,rt,e)(i,s||o)},async getPublicKey(r){const a=await t.getPublicKey(r),n=e?.serverIndex??0,s=nt["DeveloperAccountApi.getPublicKey"]?.[n]?.url;return(i,o)=>ct(a,Ee,rt,e)(i,s||o)}}},Bx=function(e,t,r){const a=Ix(e);return{getEntityConfig(n){return a.getEntityConfig(n).then(s=>s(r,t))},getPublicKey(n){return a.getPublicKey(n).then(s=>s(r,t))}}},_x=function(e){return{requestTestnetTokens:async(t,r,a={})=>{const n="/v1/faucet/drips",s=new URL(n,it);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...a},c={},l={};await ht(c,e),t!=null&&(c["X-Request-Id"]=String(t)),c["Content-Type"]="application/json",st(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},o.data=Sa(r,o,e),{url:ot(s),options:o}}}},Rx=function(e){const t=_x(e);return{async requestTestnetTokens(r,a,n){const s=await t.requestTestnetTokens(r,a,n),i=e?.serverIndex??0,o=nt["FaucetApi.requestTestnetTokens"]?.[i]?.url;return(c,l)=>ct(s,Ee,rt,e)(c,o||l)}}},kx=function(e,t,r){const a=Rx(e);return{requestTestnetTokens(n,s,i){return a.requestTestnetTokens(n,s,i).then(o=>o(r,t))}}},Nx=function(e){return{ping:async(t={})=>{const r="/ping",a=new URL(r,it);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},i={};st(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...i,...o,...t.headers},{url:ot(a),options:s}}}},Lx=function(e){const t=Nx(e);return{async ping(r){const a=await t.ping(r),n=e?.serverIndex??0,s=nt["HealthApi.ping"]?.[n]?.url;return(i,o)=>ct(a,Ee,rt,e)(i,s||o)}}},Ux=function(e,t,r){const a=Lx(e);return{ping(n){return a.ping(n).then(s=>s(r,t))}}},Dx=function(e){return{createMonitoredTokens:async(t,r={})=>{qt("createMonitoredTokens","createMonitoredTokensRequest",t);const a="/v1/w3s/config/entity/monitoredTokens",n=new URL(a,it);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...r},o={},c={};await ht(o,e),o["Content-Type"]="application/json",st(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...r.headers},i.data=Sa(t,i,e),{url:ot(n),options:i}},deleteMonitoredTokens:async(t,r={})=>{qt("deleteMonitoredTokens","deleteMonitoredTokensRequest",t);const a="/v1/w3s/config/entity/monitoredTokens/delete",n=new URL(a,it);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...r},o={},c={};await ht(o,e),o["Content-Type"]="application/json",st(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...r.headers},i.data=Sa(t,i,e),{url:ot(n),options:i}},listMonitoredTokens:async(t,r,a,n,s,i,o,c,l={})=>{const u="/v1/w3s/config/entity/monitoredTokens",p=new URL(u,it);let f;e&&(f=e.baseOptions);const x={method:"GET",...f,...l},m={},y={};await ht(m,e),t!==void 0&&(y.blockchain=t),r!==void 0&&(y.tokenAddress=r),a!==void 0&&(y.symbol=a),n!==void 0&&(y.from=n instanceof Date?n.toISOString():n),s!==void 0&&(y.to=s instanceof Date?s.toISOString():s),i!==void 0&&(y.pageBefore=i),o!==void 0&&(y.pageAfter=o),c!==void 0&&(y.pageSize=c),st(p,y);let b=f&&f.headers?f.headers:{};return x.headers={...m,...b,...l.headers},{url:ot(p),options:x}},updateMonitoredTokens:async(t,r={})=>{qt("updateMonitoredTokens","updateMonitoredTokensRequest",t);const a="/v1/w3s/config/entity/monitoredTokens",n=new URL(a,it);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...r},o={},c={};await ht(o,e),o["Content-Type"]="application/json",st(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...r.headers},i.data=Sa(t,i,e),{url:ot(n),options:i}},updateMonitoredTokensScope:async(t,r={})=>{qt("updateMonitoredTokensScope","updateMonitoredTokensScopeRequest",t);const a="/v1/w3s/config/entity/monitoredTokens/scope",n=new URL(a,it);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...r},o={},c={};await ht(o,e),o["Content-Type"]="application/json",st(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...r.headers},i.data=Sa(t,i,e),{url:ot(n),options:i}}}},Px=function(e){const t=Dx(e);return{async createMonitoredTokens(r,a){const n=await t.createMonitoredTokens(r,a),s=e?.serverIndex??0,i=nt["MonitorTokensApi.createMonitoredTokens"]?.[s]?.url;return(o,c)=>ct(n,Ee,rt,e)(o,i||c)},async deleteMonitoredTokens(r,a){const n=await t.deleteMonitoredTokens(r,a),s=e?.serverIndex??0,i=nt["MonitorTokensApi.deleteMonitoredTokens"]?.[s]?.url;return(o,c)=>ct(n,Ee,rt,e)(o,i||c)},async listMonitoredTokens(r,a,n,s,i,o,c,l,u){const p=await t.listMonitoredTokens(r,a,n,s,i,o,c,l,u),f=e?.serverIndex??0,x=nt["MonitorTokensApi.listMonitoredTokens"]?.[f]?.url;return(m,y)=>ct(p,Ee,rt,e)(m,x||y)},async updateMonitoredTokens(r,a){const n=await t.updateMonitoredTokens(r,a),s=e?.serverIndex??0,i=nt["MonitorTokensApi.updateMonitoredTokens"]?.[s]?.url;return(o,c)=>ct(n,Ee,rt,e)(o,i||c)},async updateMonitoredTokensScope(r,a){const n=await t.updateMonitoredTokensScope(r,a),s=e?.serverIndex??0,i=nt["MonitorTokensApi.updateMonitoredTokensScope"]?.[s]?.url;return(o,c)=>ct(n,Ee,rt,e)(o,i||c)}}},Ox=function(e,t,r){const a=Px(e);return{createMonitoredTokens(n,s){return a.createMonitoredTokens(n,s).then(i=>i(r,t))},deleteMonitoredTokens(n,s){return a.deleteMonitoredTokens(n,s).then(i=>i(r,t))},listMonitoredTokens(n,s,i,o,c,l,u,p,f){return a.listMonitoredTokens(n,s,i,o,c,l,u,p,f).then(x=>x(r,t))},updateMonitoredTokens(n,s){return a.updateMonitoredTokens(n,s).then(i=>i(r,t))},updateMonitoredTokensScope(n,s){return a.updateMonitoredTokensScope(n,s).then(i=>i(r,t))}}},Fx=function(e){return{createSubscription:async(t,r,a={})=>{qt("createSubscription","createSubscriptionRequest",t);const n="/v2/notifications/subscriptions",s=new URL(n,it);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...a},c={},l={};await ht(c,e),r!=null&&(c["X-Request-Id"]=String(r)),c["Content-Type"]="application/json",st(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},o.data=Sa(t,o,e),{url:ot(s),options:o}},deleteSubscription:async(t,r,a={})=>{qt("deleteSubscription","id",t);const n="/v2/notifications/subscriptions/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,it);let i;e&&(i=e.baseOptions);const o={method:"DELETE",...i,...a},c={},l={};await ht(c,e),r!=null&&(c["X-Request-Id"]=String(r)),st(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},{url:ot(s),options:o}},getNotificationSignature:async(t,r,a={})=>{qt("getNotificationSignature","id",t);const n="/v2/notifications/publicKey/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,it);let i;e&&(i=e.baseOptions);const o={method:"GET",...i,...a},c={},l={};await ht(c,e),r!=null&&(c["X-Request-Id"]=String(r)),st(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},{url:ot(s),options:o}},getSubscription:async(t,r,a={})=>{qt("getSubscription","id",t);const n="/v2/notifications/subscriptions/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,it);let i;e&&(i=e.baseOptions);const o={method:"GET",...i,...a},c={},l={};await ht(c,e),r!=null&&(c["X-Request-Id"]=String(r)),st(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},{url:ot(s),options:o}},getSubscriptions:async(t={})=>{const r="/v2/notifications/subscriptions",a=new URL(r,it);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},i={},o={};await ht(i,e),st(a,o);let c=n&&n.headers?n.headers:{};return s.headers={...i,...c,...t.headers},{url:ot(a),options:s}},updateSubscription:async(t,r,a,n={})=>{qt("updateSubscription","id",t),qt("updateSubscription","updateSubscriptionRequest",r);const s="/v2/notifications/subscriptions/{id}".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,it);let o;e&&(o=e.baseOptions);const c={method:"PATCH",...o,...n},l={},u={};await ht(l,e),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",st(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=Sa(r,c,e),{url:ot(i),options:c}}}},Mx=function(e){const t=Fx(e);return{async createSubscription(r,a,n){const s=await t.createSubscription(r,a,n),i=e?.serverIndex??0,o=nt["WebhookSubscriptionsApi.createSubscription"]?.[i]?.url;return(c,l)=>ct(s,Ee,rt,e)(c,o||l)},async deleteSubscription(r,a,n){const s=await t.deleteSubscription(r,a,n),i=e?.serverIndex??0,o=nt["WebhookSubscriptionsApi.deleteSubscription"]?.[i]?.url;return(c,l)=>ct(s,Ee,rt,e)(c,o||l)},async getNotificationSignature(r,a,n){const s=await t.getNotificationSignature(r,a,n),i=e?.serverIndex??0,o=nt["WebhookSubscriptionsApi.getNotificationSignature"]?.[i]?.url;return(c,l)=>ct(s,Ee,rt,e)(c,o||l)},async getSubscription(r,a,n){const s=await t.getSubscription(r,a,n),i=e?.serverIndex??0,o=nt["WebhookSubscriptionsApi.getSubscription"]?.[i]?.url;return(c,l)=>ct(s,Ee,rt,e)(c,o||l)},async getSubscriptions(r){const a=await t.getSubscriptions(r),n=e?.serverIndex??0,s=nt["WebhookSubscriptionsApi.getSubscriptions"]?.[n]?.url;return(i,o)=>ct(a,Ee,rt,e)(i,s||o)},async updateSubscription(r,a,n,s){const i=await t.updateSubscription(r,a,n,s),o=e?.serverIndex??0,c=nt["WebhookSubscriptionsApi.updateSubscription"]?.[o]?.url;return(l,u)=>ct(i,Ee,rt,e)(l,c||u)}}},Vx=function(e,t,r){const a=Mx(e);return{createSubscription(n,s,i){return a.createSubscription(n,s,i).then(o=>o(r,t))},deleteSubscription(n,s,i){return a.deleteSubscription(n,s,i).then(o=>o(r,t))},getNotificationSignature(n,s,i){return a.getNotificationSignature(n,s,i).then(o=>o(r,t))},getSubscription(n,s,i){return a.getSubscription(n,s,i).then(o=>o(r,t))},getSubscriptions(n){return a.getSubscriptions(n).then(s=>s(r,t))},updateSubscription(n,s,i,o){return a.updateSubscription(n,s,i,o).then(c=>c(r,t))}}};var qx=Object.defineProperty,jx=(e,t,r)=>t in e?qx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,na=(e,t,r)=>jx(e,typeof t!="symbol"?t+"":t,r);let Kx=class{constructor(t={}){na(this,"apiKey"),na(this,"username"),na(this,"password"),na(this,"accessToken"),na(this,"basePath"),na(this,"serverIndex"),na(this,"baseOptions"),na(this,"formDataCtor"),this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}isJsonMime(t){const r=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(r.test(t)||t.toLowerCase()==="application/json-patch+json")}};var zx=Object.defineProperty,Hx=(e,t,r)=>t in e?zx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hr=(e,t,r)=>Hx(e,typeof t!="symbol"?t+"":t,r);class $x{constructor(t,r,a={}){hr(this,"DeveloperAccount"),hr(this,"Faucet"),hr(this,"Health"),hr(this,"MonitorTokens"),hr(this,"WebhookSubscriptions");const n=new Kx({basePath:t,baseOptions:{headers:{...a,Authorization:`Bearer ${r.apiKey}`,"Content-Type":"application/json","User-Agent":`${r.userAgent?r.userAgent+" / ":""}CircleNodeJS / Configurations / ${r.version}`}}});this.DeveloperAccount=Bx(n),this.Faucet=kx(n),this.Health=Ux(n),this.MonitorTokens=Ox(n),this.WebhookSubscriptions=Vx(n)}}const vt="https://api.circle.com".replace(/\/+$/,"");class Gx extends Error{constructor(t,r){super(r),this.field=t,this.name="RequiredError"}}const gt={},xt="https://example.com",At=function(e,t,r){if(r==null)throw new Gx(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},yt=async function(e,t){if(t&&t.accessToken){const r=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+r}};function Cu(e,t,r=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(a=>Cu(e,a,r)):Object.keys(t).forEach(a=>Cu(e,t[a],`${r}${r!==""?".":""}${a}`)):e.has(r)?e.append(r,t):e.set(r,t))}const bt=function(e,...t){const r=new URLSearchParams(e.search);Cu(r,t),e.search=r.toString()},Xt=function(e,t,r){const a=typeof e!="string";return(a&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):a)?JSON.stringify(e!==void 0?e:{}):e||""},Et=function(e){return e.pathname+e.search+e.hash},Ct=function(e,t,r,a){return(n=t,s=r)=>{const i={...e.options,url:(a?.basePath||n.defaults.baseURL||s)+e.url};return n.request(i)}},Qx=function(e){return{deployContract:async(t,r,a={})=>{At("deployContract","contractDeploymentRequest",t);const n="/v1/w3s/contracts/deploy",s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...a},c={},l={};await yt(c,e),r!=null&&(c["X-Request-Id"]=String(r)),c["Content-Type"]="application/json",bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},o.data=Xt(t,o,e),{url:Et(s),options:o}},estimateContractDeploy:async(t,r,a={})=>{At("estimateContractDeploy","contractDeploymentEstimateFeeRequest",t);const n="/v1/w3s/contracts/deploy/estimateFee",s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...a},c={},l={};await yt(c,e),r!=null&&(c["X-Request-Id"]=String(r)),c["Content-Type"]="application/json",bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},o.data=Xt(t,o,e),{url:Et(s),options:o}},importContract:async(t,r,a={})=>{At("importContract","importContractRequest",t);const n="/v1/w3s/contracts/import",s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...a},c={},l={};await yt(c,e),r!=null&&(c["X-Request-Id"]=String(r)),c["Content-Type"]="application/json",bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},o.data=Xt(t,o,e),{url:Et(s),options:o}}}},Wx=function(e){const t=Qx(e);return{async deployContract(r,a,n){const s=await t.deployContract(r,a,n),i=e?.serverIndex??0,o=gt["DeployImportApi.deployContract"]?.[i]?.url;return(c,l)=>Ct(s,Ee,vt,e)(c,o||l)},async estimateContractDeploy(r,a,n){const s=await t.estimateContractDeploy(r,a,n),i=e?.serverIndex??0,o=gt["DeployImportApi.estimateContractDeploy"]?.[i]?.url;return(c,l)=>Ct(s,Ee,vt,e)(c,o||l)},async importContract(r,a,n){const s=await t.importContract(r,a,n),i=e?.serverIndex??0,o=gt["DeployImportApi.importContract"]?.[i]?.url;return(c,l)=>Ct(s,Ee,vt,e)(c,o||l)}}},Xx=function(e,t,r){const a=Wx(e);return{deployContract(n,s,i){return a.deployContract(n,s,i).then(o=>o(r,t))},estimateContractDeploy(n,s,i){return a.estimateContractDeploy(n,s,i).then(o=>o(r,t))},importContract(n,s,i){return a.importContract(n,s,i).then(o=>o(r,t))}}},Yx=function(e){return{createEventMonitor:async(t,r,a={})=>{const n="/v1/w3s/contracts/monitors",s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...a},c={},l={};await yt(c,e),t!=null&&(c["X-Request-Id"]=String(t)),c["Content-Type"]="application/json",bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},o.data=Xt(r,o,e),{url:Et(s),options:o}},deleteEventMonitor:async(t,r,a={})=>{At("deleteEventMonitor","id",t);const n="/v1/w3s/contracts/monitors/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"DELETE",...i,...a},c={},l={};await yt(c,e),r!=null&&(c["X-Request-Id"]=String(r)),bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},{url:Et(s),options:o}},getEventMonitors:async(t,r,a,n,s,i,o,c,l,u={})=>{const p="/v1/w3s/contracts/monitors",f=new URL(p,xt);let x;e&&(x=e.baseOptions);const m={method:"GET",...x,...u},y={},b={};await yt(y,e),t!==void 0&&(b.contractAddress=t),r!==void 0&&(b.blockchain=r),a!==void 0&&(b.eventSignature=a),n!==void 0&&(b.from=n instanceof Date?n.toISOString():n),s!==void 0&&(b.to=s instanceof Date?s.toISOString():s),i!==void 0&&(b.pageBefore=i),o!==void 0&&(b.pageAfter=o),c!==void 0&&(b.pageSize=c),l!=null&&(y["X-Request-Id"]=String(l)),bt(f,b);let S=x&&x.headers?x.headers:{};return m.headers={...y,...S,...u.headers},{url:Et(f),options:m}},listEventLogs:async(t,r,a,n,s,i,o,c,l={})=>{const u="/v1/w3s/contracts/events",p=new URL(u,xt);let f;e&&(f=e.baseOptions);const x={method:"GET",...f,...l},m={},y={};await yt(m,e),t!==void 0&&(y.contractAddress=t),r!==void 0&&(y.blockchain=r),a!==void 0&&(y.from=a instanceof Date?a.toISOString():a),n!==void 0&&(y.to=n instanceof Date?n.toISOString():n),s!==void 0&&(y.pageBefore=s),i!==void 0&&(y.pageAfter=i),o!==void 0&&(y.pageSize=o),c!=null&&(m["X-Request-Id"]=String(c)),bt(p,y);let b=f&&f.headers?f.headers:{};return x.headers={...m,...b,...l.headers},{url:Et(p),options:x}},updateEventMonitor:async(t,r,a,n={})=>{At("updateEventMonitor","id",t);const s="/v1/w3s/contracts/monitors/{id}".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,xt);let o;e&&(o=e.baseOptions);const c={method:"PUT",...o,...n},l={},u={};await yt(l,e),r!=null&&(l["X-Request-Id"]=String(r)),l["Content-Type"]="application/json",bt(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=Xt(a,c,e),{url:Et(i),options:c}}}},Jx=function(e){const t=Yx(e);return{async createEventMonitor(r,a,n){const s=await t.createEventMonitor(r,a,n),i=e?.serverIndex??0,o=gt["EventMonitorsApi.createEventMonitor"]?.[i]?.url;return(c,l)=>Ct(s,Ee,vt,e)(c,o||l)},async deleteEventMonitor(r,a,n){const s=await t.deleteEventMonitor(r,a,n),i=e?.serverIndex??0,o=gt["EventMonitorsApi.deleteEventMonitor"]?.[i]?.url;return(c,l)=>Ct(s,Ee,vt,e)(c,o||l)},async getEventMonitors(r,a,n,s,i,o,c,l,u,p){const f=await t.getEventMonitors(r,a,n,s,i,o,c,l,u,p),x=e?.serverIndex??0,m=gt["EventMonitorsApi.getEventMonitors"]?.[x]?.url;return(y,b)=>Ct(f,Ee,vt,e)(y,m||b)},async listEventLogs(r,a,n,s,i,o,c,l,u){const p=await t.listEventLogs(r,a,n,s,i,o,c,l,u),f=e?.serverIndex??0,x=gt["EventMonitorsApi.listEventLogs"]?.[f]?.url;return(m,y)=>Ct(p,Ee,vt,e)(m,x||y)},async updateEventMonitor(r,a,n,s){const i=await t.updateEventMonitor(r,a,n,s),o=e?.serverIndex??0,c=gt["EventMonitorsApi.updateEventMonitor"]?.[o]?.url;return(l,u)=>Ct(i,Ee,vt,e)(l,c||u)}}},Zx=function(e,t,r){const a=Jx(e);return{createEventMonitor(n,s,i){return a.createEventMonitor(n,s,i).then(o=>o(r,t))},deleteEventMonitor(n,s,i){return a.deleteEventMonitor(n,s,i).then(o=>o(r,t))},getEventMonitors(n,s,i,o,c,l,u,p,f,x){return a.getEventMonitors(n,s,i,o,c,l,u,p,f,x).then(m=>m(r,t))},listEventLogs(n,s,i,o,c,l,u,p,f){return a.listEventLogs(n,s,i,o,c,l,u,p,f).then(x=>x(r,t))},updateEventMonitor(n,s,i,o){return a.updateEventMonitor(n,s,i,o).then(c=>c(r,t))}}},ey=function(e){return{queryContract:async(t,r,a={})=>{At("queryContract","readContractStateRequest",t);const n="/v1/w3s/contracts/query",s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...a},c={},l={};await yt(c,e),r!=null&&(c["X-Request-Id"]=String(r)),c["Content-Type"]="application/json",bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},o.data=Xt(t,o,e),{url:Et(s),options:o}}}},ty=function(e){const t=ey(e);return{async queryContract(r,a,n){const s=await t.queryContract(r,a,n),i=e?.serverIndex??0,o=gt["InteractApi.queryContract"]?.[i]?.url;return(c,l)=>Ct(s,Ee,vt,e)(c,o||l)}}},ay=function(e,t,r){const a=ty(e);return{queryContract(n,s,i){return a.queryContract(n,s,i).then(o=>o(r,t))}}},ry=function(e){return{deployContractTemplate:async(t,r,a,n={})=>{At("deployContractTemplate","id",t),At("deployContractTemplate","templateContractDeploymentRequest",r);const s="/v1/w3s/templates/{id}/deploy".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,xt);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await yt(l,e),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",bt(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=Xt(r,c,e),{url:Et(i),options:c}},estimateContractTemplateDeploy:async(t,r,a,n={})=>{At("estimateContractTemplateDeploy","id",t),At("estimateContractTemplateDeploy","contractDeploymentEstimateRequest",r);const s="/v1/w3s/templates/{id}/deploy/estimateFee".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,xt);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await yt(l,e),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",bt(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=Xt(r,c,e),{url:Et(i),options:c}}}},ny=function(e){const t=ry(e);return{async deployContractTemplate(r,a,n,s){const i=await t.deployContractTemplate(r,a,n,s),o=e?.serverIndex??0,c=gt["TemplatesApi.deployContractTemplate"]?.[o]?.url;return(l,u)=>Ct(i,Ee,vt,e)(l,c||u)},async estimateContractTemplateDeploy(r,a,n,s){const i=await t.estimateContractTemplateDeploy(r,a,n,s),o=e?.serverIndex??0,c=gt["TemplatesApi.estimateContractTemplateDeploy"]?.[o]?.url;return(l,u)=>Ct(i,Ee,vt,e)(l,c||u)}}},iy=function(e,t,r){const a=ny(e);return{deployContractTemplate(n,s,i,o){return a.deployContractTemplate(n,s,i,o).then(c=>c(r,t))},estimateContractTemplateDeploy(n,s,i,o){return a.estimateContractTemplateDeploy(n,s,i,o).then(c=>c(r,t))}}},sy=function(e){return{getContract:async(t,r,a={})=>{At("getContract","id",t);const n="/v1/w3s/contracts/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"GET",...i,...a},c={},l={};await yt(c,e),r!=null&&(c["X-Request-Id"]=String(r)),bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},{url:Et(s),options:o}},listContracts:async(t,r,a,n,s,i,o,c,l,u,p,f={})=>{const x="/v1/w3s/contracts",m=new URL(x,xt);let y;e&&(y=e.baseOptions);const b={method:"GET",...y,...f},S={},B={};await yt(S,e),t!==void 0&&(B.blockchain=t),r!==void 0&&(B.contractInputType=r),a!==void 0&&(B.deployerAddress=a),n!==void 0&&(B.name=n),s!==void 0&&(B.status=s),i!==void 0&&(B.from=i instanceof Date?i.toISOString():i),o!==void 0&&(B.to=o instanceof Date?o.toISOString():o),c!==void 0&&(B.pageBefore=c),l!==void 0&&(B.pageAfter=l),u!==void 0&&(B.pageSize=u),p!=null&&(S["X-Request-Id"]=String(p)),bt(m,B);let _=y&&y.headers?y.headers:{};return b.headers={...S,..._,...f.headers},{url:Et(m),options:b}},updateContract:async(t,r,a,n={})=>{At("updateContract","id",t),At("updateContract","patchContractRequest",r);const s="/v1/w3s/contracts/{id}".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,xt);let o;e&&(o=e.baseOptions);const c={method:"PATCH",...o,...n},l={},u={};await yt(l,e),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",bt(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=Xt(r,c,e),{url:Et(i),options:c}}}},oy=function(e){const t=sy(e);return{async getContract(r,a,n){const s=await t.getContract(r,a,n),i=e?.serverIndex??0,o=gt["ViewUpdateApi.getContract"]?.[i]?.url;return(c,l)=>Ct(s,Ee,vt,e)(c,o||l)},async listContracts(r,a,n,s,i,o,c,l,u,p,f,x){const m=await t.listContracts(r,a,n,s,i,o,c,l,u,p,f,x),y=e?.serverIndex??0,b=gt["ViewUpdateApi.listContracts"]?.[y]?.url;return(S,B)=>Ct(m,Ee,vt,e)(S,b||B)},async updateContract(r,a,n,s){const i=await t.updateContract(r,a,n,s),o=e?.serverIndex??0,c=gt["ViewUpdateApi.updateContract"]?.[o]?.url;return(l,u)=>Ct(i,Ee,vt,e)(l,c||u)}}},cy=function(e,t,r){const a=oy(e);return{getContract(n,s,i){return a.getContract(n,s,i).then(o=>o(r,t))},listContracts(n,s,i,o,c,l,u,p,f,x,m,y){return a.listContracts(n,s,i,o,c,l,u,p,f,x,m,y).then(b=>b(r,t))},updateContract(n,s,i,o){return a.updateContract(n,s,i,o).then(c=>c(r,t))}}};var ly=Object.defineProperty,uy=(e,t,r)=>t in e?ly(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ia=(e,t,r)=>uy(e,typeof t!="symbol"?t+"":t,r);class py{constructor(t={}){ia(this,"apiKey"),ia(this,"username"),ia(this,"password"),ia(this,"accessToken"),ia(this,"basePath"),ia(this,"serverIndex"),ia(this,"baseOptions"),ia(this,"formDataCtor"),this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}isJsonMime(t){const r=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(r.test(t)||t.toLowerCase()==="application/json-patch+json")}}const dy={Eth:"ETH",EthSepolia:"ETH-SEPOLIA",Matic:"MATIC",MaticAmoy:"MATIC-AMOY",Arb:"ARB",ArbSepolia:"ARB-SEPOLIA",Uni:"UNI",UniSepolia:"UNI-SEPOLIA",Base:"BASE",BaseSepolia:"BASE-SEPOLIA",Op:"OP",OpSepolia:"OP-SEPOLIA",Avax:"AVAX",AvaxFuji:"AVAX-FUJI",ArcTestnet:"ARC-TESTNET",Monad:"MONAD",MonadTestnet:"MONAD-TESTNET"};var fy=Object.defineProperty,my=(e,t,r)=>t in e?fy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vr=(e,t,r)=>my(e,typeof t!="symbol"?t+"":t,r);class hy{constructor(t,r,a={}){vr(this,"DeployImport"),vr(this,"EventMonitors"),vr(this,"Interact"),vr(this,"Templates"),vr(this,"ViewUpdate");const n=new py({basePath:t,baseOptions:{headers:{...a,Authorization:`Bearer ${r.apiKey}`,"Content-Type":"application/json","User-Agent":`${r.userAgent?r.userAgent+" / ":""}CircleNodeJS / SmartContractPlatform / ${r.version}`}}});this.DeployImport=Xx(n),this.EventMonitors=Zx(n),this.Interact=ay(n),this.Templates=iy(n),this.ViewUpdate=cy(n)}}var vy=Object.defineProperty,pf=e=>{throw TypeError(e)},gy=(e,t,r)=>t in e?vy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ja=(e,t,r)=>gy(e,typeof t!="symbol"?t+"":t,r),df=(e,t,r)=>t.has(e)||pf("Cannot "+r),xy=(e,t,r)=>(df(e,t,"read from private field"),r?r.call(e):t.get(e)),yy=(e,t,r)=>t.has(e)?pf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),by=(e,t,r,a)=>(df(e,t,"write to private field"),a?a.call(e,r):t.set(e,r),r),Hc;class gr extends Error{constructor({message:t,code:r,url:a,method:n,error:s}){super(t),ja(this,"code"),ja(this,"message"),ja(this,"url"),ja(this,"method"),yy(this,Hc),this.message=t??new.target.message,this.code=r??new.target.code,this.url=a,this.method=n,by(this,Hc,s)}get error(){return xy(this,Hc)}}Hc=new WeakMap,ja(gr,"code","UNKNOWN"),ja(gr,"message","HTTP Error");var Ey=Object.defineProperty,Cy=(e,t,r)=>t in e?Ey(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Su=(e,t,r)=>Cy(e,typeof t!="symbol"?t+"":t,r);class E extends gr{constructor({message:t,code:r,url:a,method:n,status:s,error:i}){super({message:t,code:r,url:a,method:n,error:i}),Su(this,"status"),this.status=s}}Su(E,"code",-1),Su(E,"message","HTTP Response Error");var Sy=Object.defineProperty,Ty=(e,t,r)=>t in e?Sy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ff=(e,t,r)=>Ty(e,typeof t!="symbol"?t+"":t,r);class Rt extends gr{}ff(Rt,"code","UNKNOWN"),ff(Rt,"message","Unknown HTTP request error");var wy=Object.defineProperty,Ay=(e,t,r)=>t in e?wy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mf=(e,t,r)=>Ay(e,typeof t!="symbol"?t+"":t,r);class xr extends E{}mf(xr,"code",400),mf(xr,"message","Bad Request");var Iy=Object.defineProperty,By=(e,t,r)=>t in e?Iy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hf=(e,t,r)=>By(e,typeof t!="symbol"?t+"":t,r);class yr extends E{}hf(yr,"code",401),hf(yr,"message","Unauthorized");var _y=Object.defineProperty,Ry=(e,t,r)=>t in e?_y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vf=(e,t,r)=>Ry(e,typeof t!="symbol"?t+"":t,r);class br extends E{}vf(br,"code",403),vf(br,"message","Forbidden");var ky=Object.defineProperty,Ny=(e,t,r)=>t in e?ky(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gf=(e,t,r)=>Ny(e,typeof t!="symbol"?t+"":t,r);class Er extends E{}gf(Er,"code",404),gf(Er,"message","Not Found");var Ly=Object.defineProperty,Uy=(e,t,r)=>t in e?Ly(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xf=(e,t,r)=>Uy(e,typeof t!="symbol"?t+"":t,r);class Cr extends E{}xf(Cr,"code",429),xf(Cr,"message","Too Many Requests");var Dy=Object.defineProperty,Py=(e,t,r)=>t in e?Dy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yf=(e,t,r)=>Py(e,typeof t!="symbol"?t+"":t,r);class Sr extends E{}yf(Sr,"code",500),yf(Sr,"message","Internal Server Error");var Oy=Object.defineProperty,Fy=(e,t,r)=>t in e?Oy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bf=(e,t,r)=>Fy(e,typeof t!="symbol"?t+"":t,r);class Tr extends E{}bf(Tr,"code",501),bf(Tr,"message","Not Implemented");var My=Object.defineProperty,Vy=(e,t,r)=>t in e?My(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ef=(e,t,r)=>Vy(e,typeof t!="symbol"?t+"":t,r);class wr extends E{}Ef(wr,"code",502),Ef(wr,"message","Bad Gateway");var qy=Object.defineProperty,jy=(e,t,r)=>t in e?qy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Cf=(e,t,r)=>jy(e,typeof t!="symbol"?t+"":t,r);class Ar extends E{}Cf(Ar,"code",503),Cf(Ar,"message","Service Unavailable");var Ky=Object.defineProperty,zy=(e,t,r)=>t in e?Ky(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sf=(e,t,r)=>zy(e,typeof t!="symbol"?t+"":t,r);class Ir extends E{}Sf(Ir,"code",504),Sf(Ir,"message","Gateway Timeout");var Hy=Object.defineProperty,$y=(e,t,r)=>t in e?Hy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Tf=(e,t,r)=>$y(e,typeof t!="symbol"?t+"":t,r);class Br extends Rt{}Tf(Br,"code","ECONNREFUSED"),Tf(Br,"message","Connection refused");var Gy=Object.defineProperty,Qy=(e,t,r)=>t in e?Gy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wf=(e,t,r)=>Qy(e,typeof t!="symbol"?t+"":t,r);class _r extends Rt{}wf(_r,"code","ETIMEDOUT"),wf(_r,"message","Connection timeout");var Wy=Object.defineProperty,Xy=(e,t,r)=>t in e?Wy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Af=(e,t,r)=>Xy(e,typeof t!="symbol"?t+"":t,r);class Rr extends Rt{}Af(Rr,"code","ECONNABORTED"),Af(Rr,"message","Request timeout");var Yy=Object.defineProperty,Jy=(e,t,r)=>t in e?Yy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,If=(e,t,r)=>Jy(e,typeof t!="symbol"?t+"":t,r);class kr extends Rt{}If(kr,"code","ENOTFOUND"),If(kr,"message","DNS lookup failed - host not found");var Zy=Object.defineProperty,e1=(e,t,r)=>t in e?Zy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bf=(e,t,r)=>e1(e,typeof t!="symbol"?t+"":t,r);class Nr extends Rt{}Bf(Nr,"code","EAI_AGAIN"),Bf(Nr,"message","DNS lookup failed - timeout");var t1=Object.defineProperty,a1=(e,t,r)=>t in e?t1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_f=(e,t,r)=>a1(e,typeof t!="symbol"?t+"":t,r);class Lr extends Rt{}_f(Lr,"code","ENETUNREACH"),_f(Lr,"message","Network unreachable");var r1=Object.defineProperty,n1=(e,t,r)=>t in e?r1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rf=(e,t,r)=>n1(e,typeof t!="symbol"?t+"":t,r);class Ur extends Rt{}Rf(Ur,"code","ECONNRESET"),Rf(Ur,"message","Connection reset");var i1=Object.defineProperty,s1=(e,t,r)=>t in e?i1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kf=(e,t,r)=>s1(e,typeof t!="symbol"?t+"":t,r);class Dr extends Rt{}kf(Dr,"code","EHOSTUNREACH"),kf(Dr,"message","Host unreachable");const Nf={undefined:Rt,[Br.code]:Br,[_r.code]:_r,[Rr.code]:Rr,[Ur.code]:Ur,[kr.code]:kr,[Nr.code]:Nr,[Lr.code]:Lr,[Dr.code]:Dr};function o1(e){return Nf[e]??Nf.undefined}function c1(e){return l1({code:e.code,message:e.message,url:e.config.url,method:e.config.method.toUpperCase(),error:e})}function l1({code:e,message:t,url:r,method:a,error:n}){const s=o1(e);return new s({message:t,code:e,url:r,method:a,error:n})}var u1=Object.defineProperty,p1=(e,t,r)=>t in e?u1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d=(e,t,r)=>p1(e,typeof t!="symbol"?t+"":t,r);class Tu extends E{}d(Tu,"code",110700),d(Tu,"message","The input amount is outside trade limit.");class wu extends E{}d(wu,"code",110701),d(wu,"message","No quote is available with given input.");class Au extends E{}d(Au,"code",110702),d(Au,"message","No supported configurations with given input.");class Iu extends E{}d(Iu,"code",110703),d(Iu,"message","refId already exists, should be unique.");class Pr extends E{}d(Pr,"code",155101),d(Pr,"message","Existing user already created with the provided userId.");class Or extends E{}d(Or,"code",155102),d(Or,"message","Cannot find the user id in the system.");class Fr extends E{}d(Fr,"code",155103),d(Fr,"message","Cannot find the user token in the system.");class Mr extends E{}d(Mr,"code",155104),d(Mr,"message","The userToken had expired.");class Vr extends E{}d(Vr,"code",155105),d(Vr,"message","The userToken is invalid.");class qr extends E{}d(qr,"code",155106),d(qr,"message","The user had already been initialized.");class jr extends E{}d(jr,"code",155107),d(jr,"message","User has previously set a PIN. Use PUT /user/pin to reset the PIN.");class Kr extends E{}d(Kr,"code",155108),d(Kr,"message","User has previously set up their security questions, and they can't be reset.");class zr extends E{}d(zr,"code",155109),d(zr,"message","The specified user has been disabled.");class Hr extends E{}d(Hr,"code",155110),d(Hr,"message","User has not set up a PIN yet.");class $r extends E{}d($r,"code",155111),d($r,"message","User hasn't set the security questions for PIN backup yet.");class Gr extends E{}d(Gr,"code",155112),d(Gr,"message","The user has inputted the incorrect pin.");class Qr extends E{}d(Qr,"code",155113),d(Qr,"message","Provided device ID is not found in the system.");class Wr extends E{}d(Wr,"code",155114),d(Wr,"message","Provided app ID is not recognized in the system.");class Xr extends E{}d(Xr,"code",155115),d(Xr,"message","The user has inputted the incorrect security answers");class Yr extends E{}d(Yr,"code",155116),d(Yr,"message","The challenge ID doesn't exist in the system.");class Jr extends E{}d(Jr,"code",155117),d(Jr,"message","The content provided for approval is not correct.");class Zr extends E{}d(Zr,"code",155118),d(Zr,"message","Encryption key does not match with the user's token. Call POST /users/token to get the correct token encryption key pair.");class en extends E{}d(en,"code",155119),d(en,"message","The user's PIN input is locked. It will be unlocked after the cooldown period.");class tn extends E{}d(tn,"code",155120),d(tn,"message","The user's security questions input is locked. It will be unlocked after the cooldown period.");class an extends E{}d(an,"code",155121),d(an,"message","The provided challengeId has expired.");class rn extends E{}d(rn,"code",155122),d(rn,"message","The provided challengeId is invalid");class nn extends E{}d(nn,"code",155123),d(nn,"message","No extra information provided when adding PIN-related requests.");class sn extends E{}d(sn,"code",155124),d(sn,"message","The extra information provided for PIN-related requests is invalid.");class on extends E{}d(on,"code",155130),d(on,"message","User OTP token is expired.");class cn extends E{}d(cn,"code",155131),d(cn,"message","User OTP token is invalid.");class ln extends E{}d(ln,"code",155132),d(ln,"message","User OTP value is not found.");class un extends E{}d(un,"code",155133),d(un,"message","User OTP value is invalid.");class pn extends E{}d(pn,"code",155134),d(pn,"message","User OTP value is not matched.");class dn extends E{}d(dn,"code",155135),d(dn,"message","User's email is invalid.");class fn extends E{}d(fn,"code",155136),d(fn,"message","User's email is not matched.");class mn extends E{}d(mn,"code",155137),d(mn,"message","User's device ID is invalid.");class hn extends E{}d(hn,"code",155138),d(hn,"message","Failed to send the email.");class vn extends E{}d(vn,"code",155139),d(vn,"message","The idToken / accessToken of SSO is expired.");class gn extends E{}d(gn,"code",155140),d(gn,"message","Failed to validate the idToken/ accessToken.");class xn extends E{}d(xn,"code",155141),d(xn,"message","The user has exceeded the max limit (5) of entering OTP at the moment.");class yn extends E{}d(yn,"code",155142),d(yn,"message","The max limit (5) of sending OTP has been exceeded at the moment.");class bn extends E{}d(bn,"code",155143),d(bn,"message","The device token is expired.");class En extends E{}d(En,"code",155144),d(En,"message","The device token is invalid.");class Cn extends E{}d(Cn,"code",155145),d(Cn,"message","The device token is not found.");class Sn extends E{}d(Sn,"code",155146),d(Sn,"message","The one-time password token is invalid as the user has entered it incorrectly three times.");class Tn extends E{}d(Tn,"code",155150),d(Tn,"message","The SMTP server configuration is not found.");class wn extends E{}d(wn,"code",155151),d(wn,"message","The SMTP server configuration is invalid.");class An extends E{}d(An,"code",155152),d(An,"message","The SSO provider configuration is not found.");class In extends E{}d(In,"code",155154),d(In,"message","The OTP email template is invalid.");class Bn extends E{}d(Bn,"code",155155),d(Bn,"message","The OTP email template is not found.");class _n extends E{}d(_n,"code",155156),d(_n,"message","Failed to update the email template.");class Rn extends E{}d(Rn,"code",155157),d(Rn,"message","Failed to update the SMTP server configuration.");class kn extends E{}d(kn,"code",155158),d(kn,"message","Failed to dial to the SMTP server.");class Nn extends E{}d(Nn,"code",155159),d(Nn,"message","Failed to auth to the SMTP server.");class Ln extends E{}d(Ln,"code",155160),d(Ln,"message","Failed to send to the SMTP server.");class Un extends E{}d(Un,"code",155201),d(Un,"message","Not enough funds to fulfill the withdraw request.");class Dn extends E{}d(Dn,"code",155202),d(Dn,"message","Transaction nonce is inconsistent with sender's latest nonce.");class Pn extends E{}d(Pn,"code",155203),d(Pn,"message","User op nonce can not be larger than 0 when the smart contract wallet hasn't been deployed.");class On extends E{}d(On,"code",155204),d(On,"message","The total cost of executing transaction is higher than the balance of the user's account when estimating fee.");class Fn extends E{}d(Fn,"code",155205),d(Fn,"message","Failed to execute this request on EVM due to insufficient tokens when the estimating gas fee.");class Mn extends E{}d(Mn,"code",155206),d(Mn,"message","The sender address is not the token owner or the sender wasn't approved to commit this transaction.");class Vn extends E{}d(Vn,"code",155207),d(Vn,"message","Gas required exceeds the maximum allowance for the account. This is based on the gas fee estimate amount.");class qn extends E{}d(qn,"code",155208),d(qn,"message","Estimate fee execution reverted.");class jn extends E{}d(jn,"code",155209),d(jn,"message","ABI function signature can't pack ABI parameter.");class Kn extends E{}d(Kn,"code",155210),d(Kn,"message","Fails to perform transaction estimation.");class zn extends E{}d(zn,"code",155211),d(zn,"message","MaxFee * GasLimit exceeded the maximum permitted transaction gas fee.");class Hn extends E{}d(Hn,"code",155215),d(Hn,"message","Unsupported operation for transaction.");class $n extends E{}d($n,"code",155218),d($n,"message","Invalid number of nft in transaction request.");class Gn extends E{}d(Gn,"code",155219),d(Gn,"message","Invalid destination address.");class Qn extends E{}d(Qn,"code",155220),d(Qn,"message","Wallet and token's blockchain mismatch.");class Wn extends E{}d(Wn,"code",155221),d(Wn,"message","Invalid amounts in transfer request.");class Xn extends E{}d(Xn,"code",155222),d(Xn,"message","NFT metadata can not be found.");class Yn extends E{}d(Yn,"code",155223),d(Yn,"message","Unsupported userId for get transactions.");class Jn extends E{}d(Jn,"code",155224),d(Jn,"message","Failed to parse the provided amounts in request to decimals.");class Zn extends E{}d(Zn,"code",155225),d(Zn,"message","Wallet and request's blockchain mismatch.");class ei extends E{}d(ei,"code",155226),d(ei,"message","Invalid source address.");class ti extends E{}d(ti,"code",155227),d(ti,"message","Invalid transaction type.");class ai extends E{}d(ai,"code",155228),d(ai,"message","Missing token ID.");class ri extends E{}d(ri,"code",155229),d(ri,"message","Transaction is not eligible for operation.");class ni extends E{}d(ni,"code",155230),d(ni,"message","No abi signature provided.");class ii extends E{}d(ii,"code",155231),d(ii,"message","Transaction needs feeLevel or gasLimit provided.");class si extends E{}d(si,"code",155232),d(si,"message","SCA transaction needs feeLevel provided.");class oi extends E{}d(oi,"code",155233),d(oi,"message","Provided gasLimit is too low to complete the requested transaction.");class ci extends E{}d(ci,"code",155234),d(ci,"message","Transaction can't have both feeLevel and fee parameters provided.");class li extends E{}d(li,"code",155235),d(li,"message","EIP1559 chains need maxFee/priorityFee provided.");class ui extends E{}d(ui,"code",155236),d(ui,"message","The provided fee in request is invalid.");class pi extends E{}d(pi,"code",155237),d(pi,"message","PriorityFee cannot be larger than maxFee in creating transaction request.");class di extends E{}d(di,"code",155238),d(di,"message","Non-EIP1559 chains need gasPrice provided.");class fi extends E{}d(fi,"code",155239),d(fi,"message","Invalid token address for transfer.");class mi extends E{}d(mi,"code",155240),d(mi,"message","Invalid token standard for transfer.");class hi extends E{}d(hi,"code",155241),d(hi,"message","Invalid token decimal for transfer.");class vi extends E{}d(vi,"code",155242),d(vi,"message","The lengths of amounts and nft tokens don't match.");class gi extends E{}d(gi,"code",155243),d(gi,"message","Missing bytecode for contract deployment.");class xi extends E{}d(xi,"code",155244),d(xi,"message","Cannot provide both WalletID and SourceAddress/Blockchain.");class yi extends E{}d(yi,"code",155245),d(yi,"message","Invalid amount in contract execution request.");class bi extends E{}d(bi,"code",155247),d(bi,"message","Cannot provide both CallData and AbiFunctionSignature/AbiParameters.");class Ei extends E{}d(Ei,"code",155254),d(Ei,"message","Non-EIP1559 chains don't support maxFee/priorityFee.");class Ci extends E{}d(Ci,"code",155257),d(Ci,"message","the transfer amount is insufficient to make the destination account rent exempted or the balance of the source account is insufficient to remain rent exempted. The source address's remaining balance after transfer must be either zero or above the rent exemption threshold.");class Si extends E{}d(Si,"code",155258),d(Si,"message","The asset amount owned by the wallet is insufficient for the transaction.");class Ti extends E{}d(Ti,"code",155262),d(Ti,"message","Account is not found, could be caused by transacting from a Solana account with zero balance.");class wi extends E{}d(wi,"code",155264),d(wi,"message","Wait for pending transactions to be included on the blockchain before submitting new requests. EVM chains restrict the number of queued transactions per sender address.");class Ai extends E{}d(Ai,"code",155501),d(Ai,"message","Frozen wallets can not be updated or interact with, only query.");class Ii extends E{}d(Ii,"code",155502),d(Ii,"message","Max amount of wallets (tentative 1M) reached under 1 wallet set.");class Bi extends E{}d(Bi,"code",155503),d(Bi,"message","Metadata array length needs to match wallet count in create developer wallets request.");class _i extends E{}d(_i,"code",155504),d(_i,"message","Metadata array length needs to match number of blockchains in create user wallets request.");class Ri extends E{}d(Ri,"code",155505),d(Ri,"message","SCA wallet needs to wait for first-time transaction to be queued before processing more transactions.");class ki extends E{}d(ki,"code",155506),d(ki,"message","SCA wallet config is invalid.");class Ni extends E{}d(Ni,"code",155507),d(Ni,"message","SCA account is not supported on the given blockchain.");class Li extends E{}d(Li,"code",155508),d(Li,"message","Can't create multiple user-controlled SCA wallets across multiple blockchains at a time.");class Ui extends E{}d(Ui,"code",155509),d(Ui,"message","Entity needs to setup paymaster policy in developer console before sending transaction on mainnet");class Di extends E{}d(Di,"code",155510),d(Di,"message","The operation is not supported on the blockchain you specify.");class Pi extends E{}d(Pi,"code",155511),d(Pi,"message","Blockchain is not supported for wallet creation.");class Oi extends E{}d(Oi,"code",155512),d(Oi,"message","The owner of the SCA wallet can not be found.");class Fi extends E{}d(Fi,"code",155514),d(Fi,"message","circle_4337_v1 SCA wallet must be deployed before being upgraded.");class Mi extends E{}d(Mi,"code",155515),d(Mi,"message","The provided wallet account type is not supported by this API.");class Vi extends E{}d(Vi,"code",155516),d(Vi,"message","The source wallet was originally created on an SCA version that does not support wallet derivation.");class qi extends E{}d(qi,"code",155517),d(qi,"message","The SCA wallet is not deployed onchain.");class ji extends E{}d(ji,"code",155601),d(ji,"message","Failed to retrieve wallet set which already exists.");class Ki extends E{}d(Ki,"code",155701),d(Ki,"message","User canceled");class zi extends E{}d(zi,"code",155702),d(zi,"message","<Launch UI failed reason>");class Hi extends E{}d(Hi,"code",155703),d(Hi,"message","The code you entered is not the same as the first one.");class $i extends E{}d($i,"code",155704),d($i,"message","Your PIN can't have repeating or consecutive numbers.");class Gi extends E{}d(Gi,"code",155705),d(Gi,"message","Your hint can't be the same as the answer.");class Qi extends E{}d(Qi,"code",155706),d(Qi,"message","Network error");class Wi extends E{}d(Wi,"code",155707),d(Wi,"message","Failed to encrypt data");class Xi extends E{}d(Xi,"code",155708),d(Xi,"message",'"Biometrics instead of PIN" is disabled');class Yi extends E{}d(Yi,"code",155709),d(Yi,"message","The device system doesn't support biometrics");class Ji extends E{}d(Ji,"code",155710),d(Ji,"message","Failed to decrypt biometrics key");class Zi extends E{}d(Zi,"code",155711),d(Zi,"message","The user has not enabled biometrics yet");class es extends E{}d(es,"code",155712),d(es,"message","The user refused to enable biometrics");class ts extends E{}d(ts,"code",155713),d(ts,"message","Too many requests. Try again later");class as extends E{}d(as,"code",155714),d(as,"message","Too many requests. The biometrics sensor on the device is locked.");class rs extends E{}d(rs,"code",155715),d(rs,"message","The user didn't enable biometrics");class ns extends E{}d(ns,"code",155716),d(ns,"message","Unexpected error for biometrics");class is extends E{}d(is,"code",155717),d(is,"message","User secret is missing.");class ss extends E{}d(ss,"code",155718),d(ss,"message","User secret is invalid.");class os extends E{}d(os,"code",155719),d(os,"message","User token and SDK API execute function does not match.");class cs extends E{}d(cs,"code",155720),d(cs,"message","Social login failed.");class ls extends E{}d(ls,"code",155721),d(ls,"message","Login info is missing.");class us extends E{}d(us,"code",155801),d(us,"message","Transaction or rawTransaction is invalid.");class ps extends E{}d(ps,"code",155802),d(ps,"message","Account not found.");class ds extends E{}d(ds,"code",155803),d(ds,"message","Not signer account.");class fs extends E{}d(fs,"code",155804),d(fs,"message","Transaction already signed.");class ms extends E{}d(ms,"code",155805),d(ms,"message","Transaction failed to deserialize.");class hs extends E{}d(hs,"code",155806),d(hs,"message","The transaction size exceeds blockchain limit.");class vs extends E{}d(vs,"code",155807),d(vs,"message","The chain ID is not supported for signing.");class gs extends E{}d(gs,"code",155808),d(gs,"message","The chain ID is missing in sign request.");class xs extends E{}d(xs,"code",156001),d(xs,"message","Cannot find target wallet in the system. Either the specified wallet doesn't exist or it's not accessible to the caller.");class ys extends E{}d(ys,"code",156002),d(ys,"message","Cannot find target token in the system. Either the specified token doesn't exist or it's not accessible to the caller.");class bs extends E{}d(bs,"code",156003),d(bs,"message","Cannot find target transaction in the system. Either the specified transaction doesn't exist or it's not accessible to the caller.");class Es extends E{}d(Es,"code",156004),d(Es,"message","Reusing an entity secret ciphertext is not allowed. Please re-encrypt the entity secret to generate new ciphertext.");class Cs extends E{}d(Cs,"code",156005),d(Cs,"message","Cannot find target wallet set in the system. Either no such wallet set, or it's not accessible to the caller.");class Ss extends E{}d(Ss,"code",156006),d(Ss,"message","TEST_API key cannot be used with blockchain mainnets, or LIVE_API key cannot be used with blockchain testnets.");class Ts extends E{}d(Ts,"code",156007),d(Ts,"message","TEST_API key or LIVE_API key is not found for the request.");class ws extends E{}d(ws,"code",156008),d(ws,"message","Cannot find target entity config in the system. Either no such entity config, or it's not accessible to the caller.");class As extends E{}d(As,"code",156009),d(As,"message","Fail to parse id as UUID in url.");class Is extends E{}d(Is,"code",156010),d(Is,"message","Cannot find the corresponding entity in the system.");class Bs extends E{}d(Bs,"code",156011),d(Bs,"message","Cannot find target nftTokenId in the system.");class _s extends E{}d(_s,"code",156012),d(_s,"message","Cannot find corresponding pagination cursor in the system.");class Rs extends E{}d(Rs,"code",156013),d(Rs,"message","The provided entity secret is invalid.");class ks extends E{}d(ks,"code",156014),d(ks,"message","Pagination params are invalid. Only UUID format is supported for pageBefore and pageAfter.");class Ns extends E{}d(Ns,"code",156015),d(Ns,"message","The secret for this entity has already been set.");class Ls extends E{}d(Ls,"code",156016),d(Ls,"message","The entity secret has not been set yet. Please provide encrypted ciphertext in the console.");class Us extends E{}d(Us,"code",156017),d(Us,"message","The specified blockchain parameters are incorrect.");class Ds extends E{}d(Ds,"code",156018),d(Ds,"message","The uploaded recovery file is invalid.");class Ps extends E{}d(Ps,"code",156019),d(Ps,"message","Current entity secret is invalid. Please rotate the entity secret first.");class Os extends E{}d(Os,"code",156020),d(Os,"message","Please use a new idempotency key.");class Fs extends E{}d(Fs,"code",156021),d(Fs,"message","A new wallet set ID is required.");class Ms extends E{}d(Ms,"code",156023),d(Ms,"message","EncodedByHex is true in sign request, but the message is not hex encoded.");class Vs extends E{}d(Vs,"code",156024),d(Vs,"message","Data is not a valid JSON string in sign request.");class qs extends E{}d(qs,"code",156025),d(qs,"message","Invalid message in request.");class js extends E{}d(js,"code",156026),d(js,"message","Invalid typed data in request.");class Ks extends E{}d(Ks,"code",156027),d(Ks,"message","The specified blockchain is either not supported or deprecated.");class zs extends E{}d(zs,"code",156030),d(zs,"message","Invalid unsigned delegate action in request.");class Hs extends E{}d(Hs,"code",156031),d(Hs,"message","The specified token address is not supported.");class $s extends E{}d($s,"code",156032),d($s,"message","The provided amount is invalid.");class Gs extends E{}d(Gs,"code",175001),d(Gs,"message","contract not found");class Qs extends E{}d(Qs,"code",175002),d(Qs,"message","no ABI JSON for the target contract");class Ws extends E{}d(Ws,"code",175003),d(Ws,"message","constructor parameters length must match constructor signature");class Xs extends E{}d(Xs,"code",175004),d(Xs,"message","contract already exists");class Ys extends E{}d(Ys,"code",175005),d(Ys,"message","address is not a contract address");class Js extends E{}d(Js,"code",175006),d(Js,"message","contract is archived");class Zs extends E{}d(Zs,"code",175007),d(Zs,"message","invalid ABI JSON");class eo extends E{}d(eo,"code",175008),d(eo,"message","multi-layered proxies are not supported");class to extends E{}d(to,"code",175009),d(to,"message","contract deployment pending");class ao extends E{}d(ao,"code",175010),d(ao,"message","ABI function not found");class ro extends E{}d(ro,"code",175011),d(ro,"message","empty update on a contract");class no extends E{}d(no,"code",175012),d(no,"message","unable to query contract");class io extends E{}d(io,"code",175013),d(io,"message","ABI function is not supported");class so extends E{}d(so,"code",175201),d(so,"message","template not found");class oo extends E{}d(oo,"code",175202),d(oo,"message","deploying this template is temporarily disabled");class co extends E{}d(co,"code",175203),d(co,"message","invalid template deployment parameter");class lo extends E{}d(lo,"code",175204),d(lo,"message","missing required template deployment parameter");class uo extends E{}d(uo,"code",175205),d(uo,"message","estimation is not supported");class po extends E{}d(po,"code",175301),d(po,"message","event subscription not found");class fo extends E{}d(fo,"code",175302),d(fo,"message","event subscription already exists");class mo extends E{}d(mo,"code",175303),d(mo,"message","the specified event signature does not exist");class ho extends E{}d(ho,"code",175401),d(ho,"message","failed to parse id as UUID in url");class vo extends E{}d(vo,"code",175402),d(vo,"message","the specified blockchain is either not supported or deprecated");class go extends E{}d(go,"code",175403),d(go,"message","please use a new idempotency key");class xo extends E{}d(xo,"code",175404),d(xo,"message","TEST_API key cannot be used with blockchain mainnets, or LIVE_API key cannot be used with blockchain testnets");class yo extends E{}d(yo,"code",175405),d(yo,"message","TEST_API key or LIVE_API key is not found for the request");class bo extends E{}d(bo,"code",175406),d(bo,"message","this feature is temporarily disabled");class Eo extends E{}d(Eo,"code",175407),d(Eo,"message","the specified blockchain is currently unavailable");class Co extends E{}d(Co,"code",175408),d(Co,"message","can not find corresponding pagination cursor in the system");class So extends E{}d(So,"code",175409),d(So,"message","restricted entity cannot perform this operation");class To extends E{}d(To,"code",175410),d(To,"message","invalid address format");class wo extends E{}d(wo,"code",177001),d(wo,"message","transaction nonce is inconsistent with sender's latest nonce");class Ao extends E{}d(Ao,"code",177002),d(Ao,"message","user op nonce can not be larger than 0 when smart contract wallet hasn't been deployed");class Io extends E{}d(Io,"code",177003),d(Io,"message","failed to execute this request on EVM due to insufficient token when estimating fee");class Bo extends E{}d(Bo,"code",177004),d(Bo,"message","the total cost of executing transaction is higher than the balance of the user's account when estimating fee");class _o extends E{}d(_o,"code",177005),d(_o,"message","the sender address is not token owner or approved when estimating token transfer");class Ro extends E{}d(Ro,"code",177006),d(Ro,"message","gas required exceeds allowance when estimating fee");class ko extends E{}d(ko,"code",177007),d(ko,"message","estimate fee execution reverted");class No extends E{}d(No,"code",177008),d(No,"message","ABI function signature can't pack ABI parameter");class Lo extends E{}d(Lo,"code",177009),d(Lo,"message","fails to perform transaction estimation");class Uo extends E{}d(Uo,"code",177010),d(Uo,"message","MaxFee * GasLimit exceeds configurable max transaction fee (default is 1 native token)");class Do extends E{}d(Do,"code",177011),d(Do,"message","transaction needs feeLevel or gasLimit provided");class Po extends E{}d(Po,"code",177012),d(Po,"message","SCA transaction needs feeLevel provided");class Oo extends E{}d(Oo,"code",177013),d(Oo,"message","EIP1559 chains need maxFee/priorityFee provided");class Fo extends E{}d(Fo,"code",177014),d(Fo,"message","priorityFee cannot be larger than maxFee in creating transaction request");class Mo extends E{}d(Mo,"code",177015),d(Mo,"message","missing bytecode for contract deployment");class Vo extends E{}d(Vo,"code",177016),d(Vo,"message","cannot provide both WalletID and SourceAddress/Blockchain");class qo extends E{}d(qo,"code",177017),d(qo,"message","invalid amount in contract execution request");class jo extends E{}d(jo,"code",177018),d(jo,"message","policy is not activated and cannot be used");class Ko extends E{}d(Ko,"code",177019),d(Ko,"message","exceeded max daily transaction of the policy");class zo extends E{}d(zo,"code",177020),d(zo,"message","exceeded max spend USD per transaction of the policy");class Ho extends E{}d(Ho,"code",177021),d(Ho,"message","exceeded max spend USD daily of the policy");class $o extends E{}d($o,"code",177022),d($o,"message","exceeded max native token daily of the policy");class Go extends E{}d(Go,"code",177023),d(Go,"message","sender is in policy blocklist");class Qo extends E{}d(Qo,"code",177024),d(Qo,"message","Wallet and request's blockchain mismatch.");class Wo extends E{}d(Wo,"code",177025),d(Wo,"message","the asset amount owned by the wallet is insufficient for the transaction");class Xo extends E{}d(Xo,"code",177026),d(Xo,"message","Wait for pending transactions to be included on the blockchain before submitting new requests. EVM chains restrict the number of queued transactions per sender address.");class Yo extends E{}d(Yo,"code",177301),d(Yo,"message","wallet is Frozen");class Jo extends E{}d(Jo,"code",177302),d(Jo,"message","invalid sca wallet config");class Zo extends E{}d(Zo,"code",177303),d(Zo,"message","SCA wallet first-time transaction is still in progress");class ec extends E{}d(ec,"code",177304),d(ec,"message","SCA account is not supported on the given blockchain");class tc extends E{}d(tc,"code",177305),d(tc,"message","entity is not eligible for SCA account creation. Please check paymaster policy setup");class ac extends E{}d(ac,"code",177601),d(ac,"message","cannot find target wallet in the system. Either the specified wallet doesn't exist or it's not accessible to the caller");class rc extends E{}d(rc,"code",177602),d(rc,"message","reusing an entity secret ciphertext is not allowed. Please re-encrypt the entity secret to generate new ciphertext");class nc extends E{}d(nc,"code",177603),d(nc,"message","cannot find the corresponding entity in the system");class ic extends E{}d(ic,"code",177604),d(ic,"message","the provided entity secret is invalid");class sc extends E{}d(sc,"code",177605),d(sc,"message","the entity secret has not been set yet. Please provide encrypted ciphertext in the console");class oc extends E{}d(oc,"code",177606),d(oc,"message","current entity secret is invalid. Please rotate the entity secret first");class cc extends E{}d(cc,"code",177607),d(cc,"message","please use a new idempotency key");class lc extends E{}d(lc,"code",177901),d(lc,"message","smart contract query failed");const Lf={undefined:E,[xr.code]:xr,[yr.code]:yr,[br.code]:br,[Er.code]:Er,[Cr.code]:Cr,[Sr.code]:Sr,[Tr.code]:Tr,[wr.code]:wr,[Ar.code]:Ar,[Ir.code]:Ir,[Pr.code]:Pr,[Or.code]:Or,[Fr.code]:Fr,[Mr.code]:Mr,[Vr.code]:Vr,[qr.code]:qr,[jr.code]:jr,[Kr.code]:Kr,[zr.code]:zr,[Hr.code]:Hr,[$r.code]:$r,[Gr.code]:Gr,[Qr.code]:Qr,[Wr.code]:Wr,[Xr.code]:Xr,[Yr.code]:Yr,[Jr.code]:Jr,[Zr.code]:Zr,[en.code]:en,[tn.code]:tn,[an.code]:an,[rn.code]:rn,[nn.code]:nn,[sn.code]:sn,[on.code]:on,[cn.code]:cn,[ln.code]:ln,[un.code]:un,[pn.code]:pn,[dn.code]:dn,[fn.code]:fn,[mn.code]:mn,[hn.code]:hn,[vn.code]:vn,[gn.code]:gn,[xn.code]:xn,[yn.code]:yn,[bn.code]:bn,[En.code]:En,[Cn.code]:Cn,[Sn.code]:Sn,[Tn.code]:Tn,[wn.code]:wn,[An.code]:An,[In.code]:In,[Bn.code]:Bn,[_n.code]:_n,[Rn.code]:Rn,[kn.code]:kn,[Nn.code]:Nn,[Ln.code]:Ln,[Un.code]:Un,[Dn.code]:Dn,[Pn.code]:Pn,[On.code]:On,[Fn.code]:Fn,[Mn.code]:Mn,[Vn.code]:Vn,[qn.code]:qn,[jn.code]:jn,[Kn.code]:Kn,[zn.code]:zn,[Hn.code]:Hn,[$n.code]:$n,[Gn.code]:Gn,[Qn.code]:Qn,[Wn.code]:Wn,[Xn.code]:Xn,[Yn.code]:Yn,[Jn.code]:Jn,[Zn.code]:Zn,[ei.code]:ei,[ti.code]:ti,[ai.code]:ai,[ri.code]:ri,[ni.code]:ni,[ii.code]:ii,[si.code]:si,[oi.code]:oi,[ci.code]:ci,[li.code]:li,[ui.code]:ui,[pi.code]:pi,[di.code]:di,[fi.code]:fi,[mi.code]:mi,[hi.code]:hi,[vi.code]:vi,[gi.code]:gi,[xi.code]:xi,[yi.code]:yi,[bi.code]:bi,[Ei.code]:Ei,[Ci.code]:Ci,[Si.code]:Si,[Ti.code]:Ti,[wi.code]:wi,[Ai.code]:Ai,[Ii.code]:Ii,[Bi.code]:Bi,[_i.code]:_i,[Ri.code]:Ri,[ki.code]:ki,[Ni.code]:Ni,[Li.code]:Li,[Ui.code]:Ui,[Di.code]:Di,[Pi.code]:Pi,[Oi.code]:Oi,[Fi.code]:Fi,[Mi.code]:Mi,[Vi.code]:Vi,[qi.code]:qi,[ji.code]:ji,[Ki.code]:Ki,[zi.code]:zi,[Hi.code]:Hi,[$i.code]:$i,[Gi.code]:Gi,[Qi.code]:Qi,[Wi.code]:Wi,[Xi.code]:Xi,[Yi.code]:Yi,[Ji.code]:Ji,[Zi.code]:Zi,[es.code]:es,[ts.code]:ts,[as.code]:as,[rs.code]:rs,[ns.code]:ns,[is.code]:is,[ss.code]:ss,[os.code]:os,[cs.code]:cs,[ls.code]:ls,[us.code]:us,[ps.code]:ps,[ds.code]:ds,[fs.code]:fs,[ms.code]:ms,[hs.code]:hs,[vs.code]:vs,[gs.code]:gs,[xs.code]:xs,[ys.code]:ys,[bs.code]:bs,[Es.code]:Es,[Cs.code]:Cs,[Ss.code]:Ss,[Ts.code]:Ts,[ws.code]:ws,[As.code]:As,[Is.code]:Is,[Bs.code]:Bs,[_s.code]:_s,[Rs.code]:Rs,[ks.code]:ks,[Ns.code]:Ns,[Ls.code]:Ls,[Us.code]:Us,[Ds.code]:Ds,[Ps.code]:Ps,[Os.code]:Os,[Fs.code]:Fs,[Ms.code]:Ms,[Vs.code]:Vs,[qs.code]:qs,[js.code]:js,[Ks.code]:Ks,[zs.code]:zs,[Hs.code]:Hs,[$s.code]:$s,[Gs.code]:Gs,[Qs.code]:Qs,[Ws.code]:Ws,[Xs.code]:Xs,[Ys.code]:Ys,[Js.code]:Js,[Zs.code]:Zs,[eo.code]:eo,[to.code]:to,[ao.code]:ao,[ro.code]:ro,[no.code]:no,[io.code]:io,[so.code]:so,[oo.code]:oo,[co.code]:co,[lo.code]:lo,[uo.code]:uo,[po.code]:po,[fo.code]:fo,[mo.code]:mo,[ho.code]:ho,[vo.code]:vo,[go.code]:go,[xo.code]:xo,[yo.code]:yo,[bo.code]:bo,[Eo.code]:Eo,[Co.code]:Co,[So.code]:So,[To.code]:To,[wo.code]:wo,[Ao.code]:Ao,[Io.code]:Io,[Bo.code]:Bo,[_o.code]:_o,[Ro.code]:Ro,[ko.code]:ko,[No.code]:No,[Lo.code]:Lo,[Uo.code]:Uo,[Do.code]:Do,[Po.code]:Po,[Oo.code]:Oo,[Fo.code]:Fo,[Mo.code]:Mo,[Vo.code]:Vo,[qo.code]:qo,[jo.code]:jo,[Ko.code]:Ko,[zo.code]:zo,[Ho.code]:Ho,[$o.code]:$o,[Go.code]:Go,[Qo.code]:Qo,[Wo.code]:Wo,[Xo.code]:Xo,[Yo.code]:Yo,[Jo.code]:Jo,[Zo.code]:Zo,[ec.code]:ec,[tc.code]:tc,[ac.code]:ac,[rc.code]:rc,[nc.code]:nc,[ic.code]:ic,[sc.code]:sc,[oc.code]:oc,[cc.code]:cc,[lc.code]:lc};function d1(e){return Lf[e]??Lf.undefined}function f1(e){const t=e.response.data,r=e.response.status;return m1({code:t?.code??r,status:r,message:t?.message,url:e.config.url,method:e.config.method.toUpperCase(),error:e})}function m1({code:e,status:t,message:r,url:a,method:n,error:s}){const i=d1(e);return new i({message:r,code:e,url:a,method:n,status:t,error:s})}function tt(e){return e.response?f1(e):c1(e)}const St=e=>{const{data:t,headers:r,...a}=e;return{...a,data:t.data,headers:r}},h1=({configurationsClient:e})=>async()=>{try{return St(await e.DeveloperAccount.getPublicKey())}catch(t){throw at(t)?tt(t):t}};var v1=Object.defineProperty,g1=(e,t,r)=>t in e?v1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x1=(e,t,r)=>g1(e,typeof t!="symbol"?t+"":t,r);class y1{constructor(){x1(this,"data",{})}get(t){return Promise.resolve(this.data[t]??void 0)}set(t,r){return r===void 0?delete this.data[t]:this.data[t]=r,Promise.resolve()}}var ee={options:{usePureJavaScript:!1}},Bu={},b1=Bu,Uf={};Bu.encode=function(e,t,r){if(typeof t!="string")throw new TypeError('"alphabet" must be a string.');if(r!==void 0&&typeof r!="number")throw new TypeError('"maxline" must be a number.');var a="";if(!(e instanceof Uint8Array))a=E1(e,t);else{var n=0,s=t.length,i=t.charAt(0),o=[0];for(n=0;n<e.length;++n){for(var c=0,l=e[n];c<o.length;++c)l+=o[c]<<8,o[c]=l%s,l=l/s|0;for(;l>0;)o.push(l%s),l=l/s|0}for(n=0;e[n]===0&&n<e.length-1;++n)a+=i;for(n=o.length-1;n>=0;--n)a+=t[o[n]]}if(r){var u=new RegExp(".{1,"+r+"}","g");a=a.match(u).join(`\r
|
|
23
|
-
`)}return a},Bu.decode=function(e,t){if(typeof e!="string")throw new TypeError('"input" must be a string.');if(typeof t!="string")throw new TypeError('"alphabet" must be a string.');var r=Uf[t];if(!r){r=Uf[t]=[];for(var a=0;a<t.length;++a)r[t.charCodeAt(a)]=a}e=e.replace(/\s/g,"");for(var n=t.length,s=t.charAt(0),i=[0],a=0;a<e.length;a++){var o=r[e.charCodeAt(a)];if(o===void 0)return;for(var c=0,l=o;c<i.length;++c)l+=i[c]*n,i[c]=l&255,l>>=8;for(;l>0;)i.push(l&255),l>>=8}for(var u=0;e[u]===s&&u<e.length-1;++u)i.push(0);return typeof Buffer<"u"?Buffer.from(i.reverse()):new Uint8Array(i.reverse())};function E1(e,t){var r=0,a=t.length,n=t.charAt(0),s=[0];for(r=0;r<e.length();++r){for(var i=0,o=e.at(r);i<s.length;++i)o+=s[i]<<8,s[i]=o%a,o=o/a|0;for(;o>0;)s.push(o%a),o=o/a|0}var c="";for(r=0;e.at(r)===0&&r<e.length()-1;++r)c+=n;for(r=s.length-1;r>=0;--r)c+=t[s[r]];return c}var Df=ee,Pf=b1,w=Df.util=Df.util||{};(function(){if(typeof process<"u"&&process.nextTick&&!process.browser){w.nextTick=process.nextTick,typeof setImmediate=="function"?w.setImmediate=setImmediate:w.setImmediate=w.nextTick;return}if(typeof setImmediate=="function"){w.setImmediate=function(){return setImmediate.apply(void 0,arguments)},w.nextTick=function(i){return setImmediate(i)};return}if(w.setImmediate=function(i){setTimeout(i,0)},typeof window<"u"&&typeof window.postMessage=="function"){let i=function(o){if(o.source===window&&o.data===e){o.stopPropagation();var c=t.slice();t.length=0,c.forEach(function(l){l()})}};var e="forge.setImmediate",t=[];w.setImmediate=function(o){t.push(o),t.length===1&&window.postMessage(e,"*")},window.addEventListener("message",i,!0)}if(typeof MutationObserver<"u"){var r=Date.now(),a=!0,n=document.createElement("div"),t=[];new MutationObserver(function(){var o=t.slice();t.length=0,o.forEach(function(c){c()})}).observe(n,{attributes:!0});var s=w.setImmediate;w.setImmediate=function(o){Date.now()-r>15?(r=Date.now(),s(o)):(t.push(o),t.length===1&&n.setAttribute("a",a=!a))}}w.nextTick=w.setImmediate})(),w.isNodejs=typeof process<"u"&&process.versions&&process.versions.node,w.globalScope=function(){return w.isNodejs?$m:typeof self>"u"?window:self}(),w.isArray=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},w.isArrayBuffer=function(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer},w.isArrayBufferView=function(e){return e&&w.isArrayBuffer(e.buffer)&&e.byteLength!==void 0};function uc(e){if(!(e===8||e===16||e===24||e===32))throw new Error("Only 8, 16, 24, or 32 bits supported: "+e)}w.ByteBuffer=_u;function _u(e){if(this.data="",this.read=0,typeof e=="string")this.data=e;else if(w.isArrayBuffer(e)||w.isArrayBufferView(e))if(typeof Buffer<"u"&&e instanceof Buffer)this.data=e.toString("binary");else{var t=new Uint8Array(e);try{this.data=String.fromCharCode.apply(null,t)}catch{for(var r=0;r<t.length;++r)this.putByte(t[r])}}else(e instanceof _u||typeof e=="object"&&typeof e.data=="string"&&typeof e.read=="number")&&(this.data=e.data,this.read=e.read);this._constructedStringLength=0}w.ByteStringBuffer=_u;var C1=4096;w.ByteStringBuffer.prototype._optimizeConstructedString=function(e){this._constructedStringLength+=e,this._constructedStringLength>C1&&(this.data.substr(0,1),this._constructedStringLength=0)},w.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},w.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},w.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))},w.ByteStringBuffer.prototype.fillWithByte=function(e,t){e=String.fromCharCode(e);for(var r=this.data;t>0;)t&1&&(r+=e),t>>>=1,t>0&&(e+=e);return this.data=r,this._optimizeConstructedString(t),this},w.ByteStringBuffer.prototype.putBytes=function(e){return this.data+=e,this._optimizeConstructedString(e.length),this},w.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(w.encodeUtf8(e))},w.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},w.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},w.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},w.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255))},w.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))},w.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))},w.ByteStringBuffer.prototype.putInt=function(e,t){uc(t);var r="";do t-=8,r+=String.fromCharCode(e>>t&255);while(t>0);return this.putBytes(r)},w.ByteStringBuffer.prototype.putSignedInt=function(e,t){return e<0&&(e+=2<<t-1),this.putInt(e,t)},w.ByteStringBuffer.prototype.putBuffer=function(e){return this.putBytes(e.getBytes())},w.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)},w.ByteStringBuffer.prototype.getInt16=function(){var e=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,e},w.ByteStringBuffer.prototype.getInt24=function(){var e=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,e},w.ByteStringBuffer.prototype.getInt32=function(){var e=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,e},w.ByteStringBuffer.prototype.getInt16Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,e},w.ByteStringBuffer.prototype.getInt24Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,e},w.ByteStringBuffer.prototype.getInt32Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,e},w.ByteStringBuffer.prototype.getInt=function(e){uc(e);var t=0;do t=(t<<8)+this.data.charCodeAt(this.read++),e-=8;while(e>0);return t},w.ByteStringBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<<e-2;return t>=r&&(t-=r<<1),t},w.ByteStringBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):e===0?t="":(t=this.read===0?this.data:this.data.slice(this.read),this.clear()),t},w.ByteStringBuffer.prototype.bytes=function(e){return typeof e>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},w.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)},w.ByteStringBuffer.prototype.setAt=function(e,t){return this.data=this.data.substr(0,this.read+e)+String.fromCharCode(t)+this.data.substr(this.read+e+1),this},w.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},w.ByteStringBuffer.prototype.copy=function(){var e=w.createBuffer(this.data);return e.read=this.read,e},w.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},w.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},w.ByteStringBuffer.prototype.truncate=function(e){var t=Math.max(0,this.length()-e);return this.data=this.data.substr(this.read,t),this.read=0,this},w.ByteStringBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.length;++t){var r=this.data.charCodeAt(t);r<16&&(e+="0"),e+=r.toString(16)}return e},w.ByteStringBuffer.prototype.toString=function(){return w.decodeUtf8(this.bytes())};function S1(e,t){t=t||{},this.read=t.readOffset||0,this.growSize=t.growSize||1024;var r=w.isArrayBuffer(e),a=w.isArrayBufferView(e);if(r||a){r?this.data=new DataView(e):this.data=new DataView(e.buffer,e.byteOffset,e.byteLength),this.write="writeOffset"in t?t.writeOffset:this.data.byteLength;return}this.data=new DataView(new ArrayBuffer(0)),this.write=0,e!=null&&this.putBytes(e),"writeOffset"in t&&(this.write=t.writeOffset)}w.DataBuffer=S1,w.DataBuffer.prototype.length=function(){return this.write-this.read},w.DataBuffer.prototype.isEmpty=function(){return this.length()<=0},w.DataBuffer.prototype.accommodate=function(e,t){if(this.length()>=e)return this;t=Math.max(t||this.growSize,e);var r=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),a=new Uint8Array(this.length()+t);return a.set(r),this.data=new DataView(a.buffer),this},w.DataBuffer.prototype.putByte=function(e){return this.accommodate(1),this.data.setUint8(this.write++,e),this},w.DataBuffer.prototype.fillWithByte=function(e,t){this.accommodate(t);for(var r=0;r<t;++r)this.data.setUint8(e);return this},w.DataBuffer.prototype.putBytes=function(e,t){if(w.isArrayBufferView(e)){var r=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),a=r.byteLength-r.byteOffset;this.accommodate(a);var n=new Uint8Array(this.data.buffer,this.write);return n.set(r),this.write+=a,this}if(w.isArrayBuffer(e)){var r=new Uint8Array(e);this.accommodate(r.byteLength);var n=new Uint8Array(this.data.buffer);return n.set(r,this.write),this.write+=r.byteLength,this}if(e instanceof w.DataBuffer||typeof e=="object"&&typeof e.read=="number"&&typeof e.write=="number"&&w.isArrayBufferView(e.data)){var r=new Uint8Array(e.data.byteLength,e.read,e.length());this.accommodate(r.byteLength);var n=new Uint8Array(e.data.byteLength,this.write);return n.set(r),this.write+=r.byteLength,this}if(e instanceof w.ByteStringBuffer&&(e=e.data,t="binary"),t=t||"binary",typeof e=="string"){var s;if(t==="hex")return this.accommodate(Math.ceil(e.length/2)),s=new Uint8Array(this.data.buffer,this.write),this.write+=w.binary.hex.decode(e,s,this.write),this;if(t==="base64")return this.accommodate(Math.ceil(e.length/4)*3),s=new Uint8Array(this.data.buffer,this.write),this.write+=w.binary.base64.decode(e,s,this.write),this;if(t==="utf8"&&(e=w.encodeUtf8(e),t="binary"),t==="binary"||t==="raw")return this.accommodate(e.length),s=new Uint8Array(this.data.buffer,this.write),this.write+=w.binary.raw.decode(s),this;if(t==="utf16")return this.accommodate(e.length*2),s=new Uint16Array(this.data.buffer,this.write),this.write+=w.text.utf16.encode(s),this;throw new Error("Invalid encoding: "+t)}throw Error("Invalid parameter: "+e)},w.DataBuffer.prototype.putBuffer=function(e){return this.putBytes(e),e.clear(),this},w.DataBuffer.prototype.putString=function(e){return this.putBytes(e,"utf16")},w.DataBuffer.prototype.putInt16=function(e){return this.accommodate(2),this.data.setInt16(this.write,e),this.write+=2,this},w.DataBuffer.prototype.putInt24=function(e){return this.accommodate(3),this.data.setInt16(this.write,e>>8&65535),this.data.setInt8(this.write,e>>16&255),this.write+=3,this},w.DataBuffer.prototype.putInt32=function(e){return this.accommodate(4),this.data.setInt32(this.write,e),this.write+=4,this},w.DataBuffer.prototype.putInt16Le=function(e){return this.accommodate(2),this.data.setInt16(this.write,e,!0),this.write+=2,this},w.DataBuffer.prototype.putInt24Le=function(e){return this.accommodate(3),this.data.setInt8(this.write,e>>16&255),this.data.setInt16(this.write,e>>8&65535,!0),this.write+=3,this},w.DataBuffer.prototype.putInt32Le=function(e){return this.accommodate(4),this.data.setInt32(this.write,e,!0),this.write+=4,this},w.DataBuffer.prototype.putInt=function(e,t){uc(t),this.accommodate(t/8);do t-=8,this.data.setInt8(this.write++,e>>t&255);while(t>0);return this},w.DataBuffer.prototype.putSignedInt=function(e,t){return uc(t),this.accommodate(t/8),e<0&&(e+=2<<t-1),this.putInt(e,t)},w.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)},w.DataBuffer.prototype.getInt16=function(){var e=this.data.getInt16(this.read);return this.read+=2,e},w.DataBuffer.prototype.getInt24=function(){var e=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,e},w.DataBuffer.prototype.getInt32=function(){var e=this.data.getInt32(this.read);return this.read+=4,e},w.DataBuffer.prototype.getInt16Le=function(){var e=this.data.getInt16(this.read,!0);return this.read+=2,e},w.DataBuffer.prototype.getInt24Le=function(){var e=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,e},w.DataBuffer.prototype.getInt32Le=function(){var e=this.data.getInt32(this.read,!0);return this.read+=4,e},w.DataBuffer.prototype.getInt=function(e){uc(e);var t=0;do t=(t<<8)+this.data.getInt8(this.read++),e-=8;while(e>0);return t},w.DataBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<<e-2;return t>=r&&(t-=r<<1),t},w.DataBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):e===0?t="":(t=this.read===0?this.data:this.data.slice(this.read),this.clear()),t},w.DataBuffer.prototype.bytes=function(e){return typeof e>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},w.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)},w.DataBuffer.prototype.setAt=function(e,t){return this.data.setUint8(e,t),this},w.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},w.DataBuffer.prototype.copy=function(){return new w.DataBuffer(this)},w.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read),t=new Uint8Array(e.byteLength);t.set(e),this.data=new DataView(t),this.write-=this.read,this.read=0}return this},w.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},w.DataBuffer.prototype.truncate=function(e){return this.write=Math.max(0,this.length()-e),this.read=Math.min(this.read,this.write),this},w.DataBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.byteLength;++t){var r=this.data.getUint8(t);r<16&&(e+="0"),e+=r.toString(16)}return e},w.DataBuffer.prototype.toString=function(e){var t=new Uint8Array(this.data,this.read,this.length());if(e=e||"utf8",e==="binary"||e==="raw")return w.binary.raw.encode(t);if(e==="hex")return w.binary.hex.encode(t);if(e==="base64")return w.binary.base64.encode(t);if(e==="utf8")return w.text.utf8.decode(t);if(e==="utf16")return w.text.utf16.decode(t);throw new Error("Invalid encoding: "+e)},w.createBuffer=function(e,t){return t=t||"raw",e!==void 0&&t==="utf8"&&(e=w.encodeUtf8(e)),new w.ByteBuffer(e)},w.fillString=function(e,t){for(var r="";t>0;)t&1&&(r+=e),t>>>=1,t>0&&(e+=e);return r},w.xorBytes=function(e,t,r){for(var a="",n="",s="",i=0,o=0;r>0;--r,++i)n=e.charCodeAt(i)^t.charCodeAt(i),o>=10&&(a+=s,s="",o=0),s+=String.fromCharCode(n),++o;return a+=s,a},w.hexToBytes=function(e){var t="",r=0;for(e.length&!0&&(r=1,t+=String.fromCharCode(parseInt(e[0],16)));r<e.length;r+=2)t+=String.fromCharCode(parseInt(e.substr(r,2),16));return t},w.bytesToHex=function(e){return w.createBuffer(e).toHex()},w.int32ToBytes=function(e){return String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255)};var sa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",oa=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],Of="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";w.encode64=function(e,t){for(var r="",a="",n,s,i,o=0;o<e.length;)n=e.charCodeAt(o++),s=e.charCodeAt(o++),i=e.charCodeAt(o++),r+=sa.charAt(n>>2),r+=sa.charAt((n&3)<<4|s>>4),isNaN(s)?r+="==":(r+=sa.charAt((s&15)<<2|i>>6),r+=isNaN(i)?"=":sa.charAt(i&63)),t&&r.length>t&&(a+=r.substr(0,t)+`\r
|
|
24
|
-
`,
|
|
25
|
-
`,r=r.substr(t));return a+=r,a},w.binary.base64.decode=function(e,t,r){var a=t;a||(a=new Uint8Array(Math.ceil(e.length/4)*3)),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,""),r=r||0;for(var n,s,i,o,c=0,l=r;c<e.length;)n=oa[e.charCodeAt(c++)-43],s=oa[e.charCodeAt(c++)-43],i=oa[e.charCodeAt(c++)-43],o=oa[e.charCodeAt(c++)-43],a[l++]=n<<2|s>>4,i!==64&&(a[l++]=(s&15)<<4|i>>2,o!==64&&(a[l++]=(i&3)<<6|o));return t?l-r:a.subarray(0,l)},w.binary.base58.encode=function(e,t){return w.binary.baseN.encode(e,Of,t)},w.binary.base58.decode=function(e,t){return w.binary.baseN.decode(e,Of,t)},w.text={utf8:{},utf16:{}},w.text.utf8.encode=function(e,t,r){e=w.encodeUtf8(e);var a=t;a||(a=new Uint8Array(e.length)),r=r||0;for(var n=r,s=0;s<e.length;++s)a[n++]=e.charCodeAt(s);return t?n-r:a},w.text.utf8.decode=function(e){return w.decodeUtf8(String.fromCharCode.apply(null,e))},w.text.utf16.encode=function(e,t,r){var a=t;a||(a=new Uint8Array(e.length*2));var n=new Uint16Array(a.buffer);r=r||0;for(var s=r,i=r,o=0;o<e.length;++o)n[i++]=e.charCodeAt(o),s+=2;return t?s-r:a},w.text.utf16.decode=function(e){return String.fromCharCode.apply(null,new Uint16Array(e.buffer))},w.deflate=function(e,t,r){if(t=w.decode64(e.deflate(w.encode64(t)).rval),r){var a=2,n=t.charCodeAt(1);n&32&&(a=6),t=t.substring(a,t.length-4)}return t},w.inflate=function(e,t,r){var a=e.inflate(w.encode64(t)).rval;return a===null?null:w.decode64(a)};var Ru=function(e,t,r){if(!e)throw new Error("WebStorage not available.");var a;if(r===null?a=e.removeItem(t):(r=w.encode64(JSON.stringify(r)),a=e.setItem(t,r)),typeof a<"u"&&a.rval!==!0){var n=new Error(a.error.message);throw n.id=a.error.id,n.name=a.error.name,n}},ku=function(e,t){if(!e)throw new Error("WebStorage not available.");var r=e.getItem(t);if(e.init)if(r.rval===null){if(r.error){var a=new Error(r.error.message);throw a.id=r.error.id,a.name=r.error.name,a}r=null}else r=r.rval;return r!==null&&(r=JSON.parse(w.decode64(r))),r},T1=function(e,t,r,a){var n=ku(e,t);n===null&&(n={}),n[r]=a,Ru(e,t,n)},w1=function(e,t,r){var a=ku(e,t);return a!==null&&(a=r in a?a[r]:null),a},A1=function(e,t,r){var a=ku(e,t);if(a!==null&&r in a){delete a[r];var n=!0;for(var s in a){n=!1;break}n&&(a=null),Ru(e,t,a)}},I1=function(e,t){Ru(e,t,null)},$c=function(e,t,r){var a=null;typeof r>"u"&&(r=["web","flash"]);var n,s=!1,i=null;for(var o in r){n=r[o];try{if(n==="flash"||n==="both"){if(t[0]===null)throw new Error("Flash local storage not available.");a=e.apply(this,t),s=n==="flash"}(n==="web"||n==="both")&&(t[0]=localStorage,a=e.apply(this,t),s=!0)}catch(c){i=c}if(s)break}if(!s)throw i;return a};w.setItem=function(e,t,r,a,n){$c(T1,arguments,n)},w.getItem=function(e,t,r,a){return $c(w1,arguments,a)},w.removeItem=function(e,t,r,a){$c(A1,arguments,a)},w.clearItems=function(e,t,r){$c(I1,arguments,r)},w.isEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},w.format=function(e){for(var t=/%./g,r,a,n=0,s=[],i=0;r=t.exec(e);){a=e.substring(i,t.lastIndex-2),a.length>0&&s.push(a),i=t.lastIndex;var o=r[0][1];switch(o){case"s":case"o":n<arguments.length?s.push(arguments[n+++1]):s.push("<?>");break;case"%":s.push("%");break;default:s.push("<%"+o+"?>")}}return s.push(e.substring(i)),s.join("")},w.formatNumber=function(e,t,r,a){var n=e,s=isNaN(t=Math.abs(t))?2:t,i=r===void 0?",":r,o=a===void 0?".":a,c=n<0?"-":"",l=parseInt(n=Math.abs(+n||0).toFixed(s),10)+"",u=l.length>3?l.length%3:0;return c+(u?l.substr(0,u)+o:"")+l.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+o)+(s?i+Math.abs(n-l).toFixed(s).slice(2):"")},w.formatSize=function(e){return e>=1073741824?e=w.formatNumber(e/1073741824,2,".","")+" GiB":e>=1048576?e=w.formatNumber(e/1048576,2,".","")+" MiB":e>=1024?e=w.formatNumber(e/1024,0)+" KiB":e=w.formatNumber(e,0)+" bytes",e},w.bytesFromIP=function(e){return e.indexOf(".")!==-1?w.bytesFromIPv4(e):e.indexOf(":")!==-1?w.bytesFromIPv6(e):null},w.bytesFromIPv4=function(e){if(e=e.split("."),e.length!==4)return null;for(var t=w.createBuffer(),r=0;r<e.length;++r){var a=parseInt(e[r],10);if(isNaN(a))return null;t.putByte(a)}return t.getBytes()},w.bytesFromIPv6=function(e){var t=0;e=e.split(":").filter(function(i){return i.length===0&&++t,!0});for(var r=(8-e.length+t)*2,a=w.createBuffer(),n=0;n<8;++n){if(!e[n]||e[n].length===0){a.fillWithByte(0,r),r=0;continue}var s=w.hexToBytes(e[n]);s.length<2&&a.putByte(0),a.putBytes(s)}return a.getBytes()},w.bytesToIP=function(e){return e.length===4?w.bytesToIPv4(e):e.length===16?w.bytesToIPv6(e):null},w.bytesToIPv4=function(e){if(e.length!==4)return null;for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t.join(".")},w.bytesToIPv6=function(e){if(e.length!==16)return null;for(var t=[],r=[],a=0,n=0;n<e.length;n+=2){for(var s=w.bytesToHex(e[n]+e[n+1]);s[0]==="0"&&s!=="0";)s=s.substr(1);if(s==="0"){var i=r[r.length-1],o=t.length;!i||o!==i.end+1?r.push({start:o,end:o}):(i.end=o,i.end-i.start>r[a].end-r[a].start&&(a=r.length-1))}t.push(s)}if(r.length>0){var c=r[a];c.end-c.start>0&&(t.splice(c.start,c.end-c.start+1,""),c.start===0&&t.unshift(""),c.end===7&&t.push(""))}return t.join(":")},w.estimateCores=function(e,t){if(typeof e=="function"&&(t=e,e={}),e=e||{},"cores"in w&&!e.update)return t(null,w.cores);if(typeof navigator<"u"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return w.cores=navigator.hardwareConcurrency,t(null,w.cores);if(typeof Worker>"u")return w.cores=1,t(null,w.cores);if(typeof Blob>"u")return w.cores=2,t(null,w.cores);var r=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(i){var o=Date.now(),c=o+4;self.postMessage({st:o,et:c})})}.toString(),")()"],{type:"application/javascript"}));a([],5,16);function a(i,o,c){if(o===0){var l=Math.floor(i.reduce(function(u,p){return u+p},0)/i.length);return w.cores=Math.max(1,l),URL.revokeObjectURL(r),t(null,w.cores)}n(c,function(u,p){i.push(s(c,p)),a(i,o-1,c)})}function n(i,o){for(var c=[],l=[],u=0;u<i;++u){var p=new Worker(r);p.addEventListener("message",function(f){if(l.push(f.data),l.length===i){for(var x=0;x<i;++x)c[x].terminate();o(null,l)}}),c.push(p)}for(var u=0;u<i;++u)c[u].postMessage(u)}function s(i,o){for(var c=[],l=0;l<i;++l)for(var u=o[l],p=c[l]=[],f=0;f<i;++f)if(l!==f){var x=o[f];(u.st>x.st&&u.st<x.et||x.st>u.st&&x.st<u.et)&&p.push(f)}return c.reduce(function(m,y){return Math.max(m,y.length)},0)}};var Ve=ee;Ve.cipher=Ve.cipher||{},Ve.cipher.algorithms=Ve.cipher.algorithms||{},Ve.cipher.createCipher=function(e,t){var r=e;if(typeof r=="string"&&(r=Ve.cipher.getAlgorithm(r),r&&(r=r())),!r)throw new Error("Unsupported algorithm: "+e);return new Ve.cipher.BlockCipher({algorithm:r,key:t,decrypt:!1})},Ve.cipher.createDecipher=function(e,t){var r=e;if(typeof r=="string"&&(r=Ve.cipher.getAlgorithm(r),r&&(r=r())),!r)throw new Error("Unsupported algorithm: "+e);return new Ve.cipher.BlockCipher({algorithm:r,key:t,decrypt:!0})},Ve.cipher.registerAlgorithm=function(e,t){e=e.toUpperCase(),Ve.cipher.algorithms[e]=t},Ve.cipher.getAlgorithm=function(e){return e=e.toUpperCase(),e in Ve.cipher.algorithms?Ve.cipher.algorithms[e]:null};var Nu=Ve.cipher.BlockCipher=function(e){this.algorithm=e.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=e.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=e.decrypt,this.algorithm.initialize(e)};Nu.prototype.start=function(e){e=e||{};var t={};for(var r in e)t[r]=e[r];t.decrypt=this._decrypt,this._finish=!1,this._input=Ve.util.createBuffer(),this.output=e.output||Ve.util.createBuffer(),this.mode.start(t)},Nu.prototype.update=function(e){for(e&&this._input.putBuffer(e);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()},Nu.prototype.finish=function(e){e&&(this.mode.name==="ECB"||this.mode.name==="CBC")&&(this.mode.pad=function(r){return e(this.blockSize,r,!1)},this.mode.unpad=function(r){return e(this.blockSize,r,!0)});var t={};return t.decrypt=this._decrypt,t.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,t)||(this._finish=!0,this.update(),this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,t))||this.mode.afterFinish&&!this.mode.afterFinish(this.output,t))};var qe=ee;qe.cipher=qe.cipher||{};var re=qe.cipher.modes=qe.cipher.modes||{};re.ecb=function(e){e=e||{},this.name="ECB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},re.ecb.prototype.start=function(e){},re.ecb.prototype.encrypt=function(e,t,r){if(e.length()<this.blockSize&&!(r&&e.length()>0))return!0;for(var a=0;a<this._ints;++a)this._inBlock[a]=e.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var a=0;a<this._ints;++a)t.putInt32(this._outBlock[a])},re.ecb.prototype.decrypt=function(e,t,r){if(e.length()<this.blockSize&&!(r&&e.length()>0))return!0;for(var a=0;a<this._ints;++a)this._inBlock[a]=e.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var a=0;a<this._ints;++a)t.putInt32(this._outBlock[a])},re.ecb.prototype.pad=function(e,t){var r=e.length()===this.blockSize?this.blockSize:this.blockSize-e.length();return e.fillWithByte(r,r),!0},re.ecb.prototype.unpad=function(e,t){if(t.overflow>0)return!1;var r=e.length(),a=e.at(r-1);return a>this.blockSize<<2?!1:(e.truncate(a),!0)},re.cbc=function(e){e=e||{},this.name="CBC",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},re.cbc.prototype.start=function(e){if(e.iv===null){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else if("iv"in e)this._iv=Gc(e.iv,this.blockSize),this._prev=this._iv.slice(0);else throw new Error("Invalid IV parameter.")},re.cbc.prototype.encrypt=function(e,t,r){if(e.length()<this.blockSize&&!(r&&e.length()>0))return!0;for(var a=0;a<this._ints;++a)this._inBlock[a]=this._prev[a]^e.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var a=0;a<this._ints;++a)t.putInt32(this._outBlock[a]);this._prev=this._outBlock},re.cbc.prototype.decrypt=function(e,t,r){if(e.length()<this.blockSize&&!(r&&e.length()>0))return!0;for(var a=0;a<this._ints;++a)this._inBlock[a]=e.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var a=0;a<this._ints;++a)t.putInt32(this._prev[a]^this._outBlock[a]);this._prev=this._inBlock.slice(0)},re.cbc.prototype.pad=function(e,t){var r=e.length()===this.blockSize?this.blockSize:this.blockSize-e.length();return e.fillWithByte(r,r),!0},re.cbc.prototype.unpad=function(e,t){if(t.overflow>0)return!1;var r=e.length(),a=e.at(r-1);return a>this.blockSize<<2?!1:(e.truncate(a),!0)},re.cfb=function(e){e=e||{},this.name="CFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=qe.util.createBuffer(),this._partialBytes=0},re.cfb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=Gc(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},re.cfb.prototype.encrypt=function(e,t,r){var a=e.length();if(a===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&a>=this.blockSize){for(var n=0;n<this._ints;++n)this._inBlock[n]=e.getInt32()^this._outBlock[n],t.putInt32(this._inBlock[n]);return}var s=(this.blockSize-a)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialBlock[n]=e.getInt32()^this._outBlock[n],this._partialOutput.putInt32(this._partialBlock[n]);if(s>0)e.read-=this.blockSize;else for(var n=0;n<this._ints;++n)this._inBlock[n]=this._partialBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=0},re.cfb.prototype.decrypt=function(e,t,r){var a=e.length();if(a===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&a>=this.blockSize){for(var n=0;n<this._ints;++n)this._inBlock[n]=e.getInt32(),t.putInt32(this._inBlock[n]^this._outBlock[n]);return}var s=(this.blockSize-a)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialBlock[n]=e.getInt32(),this._partialOutput.putInt32(this._partialBlock[n]^this._outBlock[n]);if(s>0)e.read-=this.blockSize;else for(var n=0;n<this._ints;++n)this._inBlock[n]=this._partialBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=0},re.ofb=function(e){e=e||{},this.name="OFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=qe.util.createBuffer(),this._partialBytes=0},re.ofb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=Gc(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},re.ofb.prototype.encrypt=function(e,t,r){var a=e.length();if(e.length()===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&a>=this.blockSize){for(var n=0;n<this._ints;++n)t.putInt32(e.getInt32()^this._outBlock[n]),this._inBlock[n]=this._outBlock[n];return}var s=(this.blockSize-a)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialOutput.putInt32(e.getInt32()^this._outBlock[n]);if(s>0)e.read-=this.blockSize;else for(var n=0;n<this._ints;++n)this._inBlock[n]=this._outBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=0},re.ofb.prototype.decrypt=re.ofb.prototype.encrypt,re.ctr=function(e){e=e||{},this.name="CTR",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=qe.util.createBuffer(),this._partialBytes=0},re.ctr.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=Gc(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},re.ctr.prototype.encrypt=function(e,t,r){var a=e.length();if(a===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&a>=this.blockSize)for(var n=0;n<this._ints;++n)t.putInt32(e.getInt32()^this._outBlock[n]);else{var s=(this.blockSize-a)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialOutput.putInt32(e.getInt32()^this._outBlock[n]);if(s>0&&(e.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=0}Qc(this._inBlock)},re.ctr.prototype.decrypt=re.ctr.prototype.encrypt,re.gcm=function(e){e=e||{},this.name="GCM",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=qe.util.createBuffer(),this._partialBytes=0,this._R=3774873600},re.gcm.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");var t=qe.util.createBuffer(e.iv);this._cipherLength=0;var r;if("additionalData"in e?r=qe.util.createBuffer(e.additionalData):r=qe.util.createBuffer(),"tagLength"in e?this._tagLength=e.tagLength:this._tagLength=128,this._tag=null,e.decrypt&&(this._tag=qe.util.createBuffer(e.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.");this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var a=t.length();if(a===12)this._j0=[t.getInt32(),t.getInt32(),t.getInt32(),1];else{for(this._j0=[0,0,0,0];t.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[t.getInt32(),t.getInt32(),t.getInt32(),t.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(Lu(a*8)))}this._inBlock=this._j0.slice(0),Qc(this._inBlock),this._partialBytes=0,r=qe.util.createBuffer(r),this._aDataLength=Lu(r.length()*8);var n=r.length()%this.blockSize;for(n&&r.fillWithByte(0,this.blockSize-n),this._s=[0,0,0,0];r.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[r.getInt32(),r.getInt32(),r.getInt32(),r.getInt32()])},re.gcm.prototype.encrypt=function(e,t,r){var a=e.length();if(a===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&a>=this.blockSize){for(var n=0;n<this._ints;++n)t.putInt32(this._outBlock[n]^=e.getInt32());this._cipherLength+=this.blockSize}else{var s=(this.blockSize-a)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialOutput.putInt32(e.getInt32()^this._outBlock[n]);if(s<=0||r){if(r){var i=a%this.blockSize;this._cipherLength+=i,this._partialOutput.truncate(this.blockSize-i)}else this._cipherLength+=this.blockSize;for(var n=0;n<this._ints;++n)this._outBlock[n]=this._partialOutput.getInt32();this._partialOutput.read-=this.blockSize}if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return e.read-=this.blockSize,t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),Qc(this._inBlock)},re.gcm.prototype.decrypt=function(e,t,r){var a=e.length();if(a<this.blockSize&&!(r&&a>0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),Qc(this._inBlock),this._hashBlock[0]=e.getInt32(),this._hashBlock[1]=e.getInt32(),this._hashBlock[2]=e.getInt32(),this._hashBlock[3]=e.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var n=0;n<this._ints;++n)t.putInt32(this._outBlock[n]^this._hashBlock[n]);a<this.blockSize?this._cipherLength+=a%this.blockSize:this._cipherLength+=this.blockSize},re.gcm.prototype.afterFinish=function(e,t){var r=!0;t.decrypt&&t.overflow&&e.truncate(this.blockSize-t.overflow),this.tag=qe.util.createBuffer();var a=this._aDataLength.concat(Lu(this._cipherLength*8));this._s=this.ghash(this._hashSubkey,this._s,a);var n=[];this.cipher.encrypt(this._j0,n);for(var s=0;s<this._ints;++s)this.tag.putInt32(this._s[s]^n[s]);return this.tag.truncate(this.tag.length()%(this._tagLength/8)),t.decrypt&&this.tag.bytes()!==this._tag&&(r=!1),r},re.gcm.prototype.multiply=function(e,t){for(var r=[0,0,0,0],a=t.slice(0),n=0;n<128;++n){var s=e[n/32|0]&1<<31-n%32;s&&(r[0]^=a[0],r[1]^=a[1],r[2]^=a[2],r[3]^=a[3]),this.pow(a,a)}return r},re.gcm.prototype.pow=function(e,t){for(var r=e[3]&1,a=3;a>0;--a)t[a]=e[a]>>>1|(e[a-1]&1)<<31;t[0]=e[0]>>>1,r&&(t[0]^=this._R)},re.gcm.prototype.tableMultiply=function(e){for(var t=[0,0,0,0],r=0;r<32;++r){var a=r/8|0,n=e[a]>>>(7-r%8)*4&15,s=this._m[r][n];t[0]^=s[0],t[1]^=s[1],t[2]^=s[2],t[3]^=s[3]}return t},re.gcm.prototype.ghash=function(e,t,r){return t[0]^=r[0],t[1]^=r[1],t[2]^=r[2],t[3]^=r[3],this.tableMultiply(t)},re.gcm.prototype.generateHashTable=function(e,t){for(var r=8/t,a=4*r,n=16*r,s=new Array(n),i=0;i<n;++i){var o=[0,0,0,0],c=i/a|0,l=(a-1-i%a)*t;o[c]=1<<t-1<<l,s[i]=this.generateSubHashTable(this.multiply(o,e),t)}return s},re.gcm.prototype.generateSubHashTable=function(e,t){var r=1<<t,a=r>>>1,n=new Array(r);n[a]=e.slice(0);for(var s=a>>>1;s>0;)this.pow(n[2*s],n[s]=[]),s>>=1;for(s=2;s<a;){for(var i=1;i<s;++i){var o=n[s],c=n[i];n[s+i]=[o[0]^c[0],o[1]^c[1],o[2]^c[2],o[3]^c[3]]}s*=2}for(n[0]=[0,0,0,0],s=a+1;s<r;++s){var l=n[s^a];n[s]=[e[0]^l[0],e[1]^l[1],e[2]^l[2],e[3]^l[3]]}return n};function Gc(e,t){if(typeof e=="string"&&(e=qe.util.createBuffer(e)),qe.util.isArray(e)&&e.length>4){var r=e;e=qe.util.createBuffer();for(var a=0;a<r.length;++a)e.putByte(r[a])}if(e.length()<t)throw new Error("Invalid IV length; got "+e.length()+" bytes and expected "+t+" bytes.");if(!qe.util.isArray(e)){for(var n=[],s=t/4,a=0;a<s;++a)n.push(e.getInt32());e=n}return e}function Qc(e){e[e.length-1]=e[e.length-1]+1&4294967295}function Lu(e){return[e/4294967296|0,e&4294967295]}var we=ee;we.aes=we.aes||{},we.aes.startEncrypting=function(e,t,r,a){var n=Wc({key:e,output:r,decrypt:!1,mode:a});return n.start(t),n},we.aes.createEncryptionCipher=function(e,t){return Wc({key:e,output:null,decrypt:!1,mode:t})},we.aes.startDecrypting=function(e,t,r,a){var n=Wc({key:e,output:r,decrypt:!0,mode:a});return n.start(t),n},we.aes.createDecryptionCipher=function(e,t){return Wc({key:e,output:null,decrypt:!0,mode:t})},we.aes.Algorithm=function(e,t){Uu||Mf();var r=this;r.name=e,r.mode=new t({blockSize:16,cipher:{encrypt:function(a,n){return Pu(r._w,a,n,!1)},decrypt:function(a,n){return Pu(r._w,a,n,!0)}}}),r._init=!1},we.aes.Algorithm.prototype.initialize=function(e){if(!this._init){var t=e.key,r;if(typeof t=="string"&&(t.length===16||t.length===24||t.length===32))t=we.util.createBuffer(t);else if(we.util.isArray(t)&&(t.length===16||t.length===24||t.length===32)){r=t,t=we.util.createBuffer();for(var a=0;a<r.length;++a)t.putByte(r[a])}if(!we.util.isArray(t)){r=t,t=[];var n=r.length();if(n===16||n===24||n===32){n=n>>>2;for(var a=0;a<n;++a)t.push(r.getInt32())}}if(!we.util.isArray(t)||!(t.length===4||t.length===6||t.length===8))throw new Error("Invalid key parameter.");var s=this.mode.name,i=["CFB","OFB","CTR","GCM"].indexOf(s)!==-1;this._w=Vf(t,e.decrypt&&!i),this._init=!0}},we.aes._expandKey=function(e,t){return Uu||Mf(),Vf(e,t)},we.aes._updateBlock=Pu,Ka("AES-ECB",we.cipher.modes.ecb),Ka("AES-CBC",we.cipher.modes.cbc),Ka("AES-CFB",we.cipher.modes.cfb),Ka("AES-OFB",we.cipher.modes.ofb),Ka("AES-CTR",we.cipher.modes.ctr),Ka("AES-GCM",we.cipher.modes.gcm);function Ka(e,t){var r=function(){return new we.aes.Algorithm(e,t)};we.cipher.registerAlgorithm(e,r)}var Uu=!1,za=4,lt,Du,Ff,Ta,Ft;function Mf(){Uu=!0,Ff=[0,1,2,4,8,16,32,64,128,27,54];for(var e=new Array(256),t=0;t<128;++t)e[t]=t<<1,e[t+128]=t+128<<1^283;lt=new Array(256),Du=new Array(256),Ta=new Array(4),Ft=new Array(4);for(var t=0;t<4;++t)Ta[t]=new Array(256),Ft[t]=new Array(256);for(var r=0,a=0,n,s,i,o,c,l,u,t=0;t<256;++t){o=a^a<<1^a<<2^a<<3^a<<4,o=o>>8^o&255^99,lt[r]=o,Du[o]=r,c=e[o],n=e[r],s=e[n],i=e[s],l=c<<24^o<<16^o<<8^(o^c),u=(n^s^i)<<24^(r^i)<<16^(r^s^i)<<8^(r^n^i);for(var p=0;p<4;++p)Ta[p][r]=l,Ft[p][o]=u,l=l<<24|l>>>8,u=u<<24|u>>>8;r===0?r=a=1:(r=n^e[e[e[n^i]]],a^=e[e[a]])}}function Vf(e,t){for(var r=e.slice(0),a,n=1,s=r.length,i=s+6+1,o=za*i,c=s;c<o;++c)a=r[c-1],c%s===0?(a=lt[a>>>16&255]<<24^lt[a>>>8&255]<<16^lt[a&255]<<8^lt[a>>>24]^Ff[n]<<24,n++):s>6&&c%s===4&&(a=lt[a>>>24]<<24^lt[a>>>16&255]<<16^lt[a>>>8&255]<<8^lt[a&255]),r[c]=r[c-s]^a;if(t){var l,u=Ft[0],p=Ft[1],f=Ft[2],x=Ft[3],m=r.slice(0);o=r.length;for(var c=0,y=o-za;c<o;c+=za,y-=za)if(c===0||c===o-za)m[c]=r[y],m[c+1]=r[y+3],m[c+2]=r[y+2],m[c+3]=r[y+1];else for(var b=0;b<za;++b)l=r[y+b],m[c+(3&-b)]=u[lt[l>>>24]]^p[lt[l>>>16&255]]^f[lt[l>>>8&255]]^x[lt[l&255]];r=m}return r}function Pu(e,t,r,a){var n=e.length/4-1,s,i,o,c,l;a?(s=Ft[0],i=Ft[1],o=Ft[2],c=Ft[3],l=Du):(s=Ta[0],i=Ta[1],o=Ta[2],c=Ta[3],l=lt);var u,p,f,x,m,y,b;u=t[0]^e[0],p=t[a?3:1]^e[1],f=t[2]^e[2],x=t[a?1:3]^e[3];for(var S=3,B=1;B<n;++B)m=s[u>>>24]^i[p>>>16&255]^o[f>>>8&255]^c[x&255]^e[++S],y=s[p>>>24]^i[f>>>16&255]^o[x>>>8&255]^c[u&255]^e[++S],b=s[f>>>24]^i[x>>>16&255]^o[u>>>8&255]^c[p&255]^e[++S],x=s[x>>>24]^i[u>>>16&255]^o[p>>>8&255]^c[f&255]^e[++S],u=m,p=y,f=b;r[0]=l[u>>>24]<<24^l[p>>>16&255]<<16^l[f>>>8&255]<<8^l[x&255]^e[++S],r[a?3:1]=l[p>>>24]<<24^l[f>>>16&255]<<16^l[x>>>8&255]<<8^l[u&255]^e[++S],r[2]=l[f>>>24]<<24^l[x>>>16&255]<<16^l[u>>>8&255]<<8^l[p&255]^e[++S],r[a?1:3]=l[x>>>24]<<24^l[u>>>16&255]<<16^l[p>>>8&255]<<8^l[f&255]^e[++S]}function Wc(e){e=e||{};var t=(e.mode||"CBC").toUpperCase(),r="AES-"+t,a;e.decrypt?a=we.cipher.createDecipher(r,e.key):a=we.cipher.createCipher(r,e.key);var n=a.start;return a.start=function(s,i){var o=null;i instanceof we.util.ByteBuffer&&(o=i,i={}),i=i||{},i.output=o,i.iv=s,n.call(a,i)},a}var pc=ee;pc.pki=pc.pki||{};var Ou=pc.pki.oids=pc.oids=pc.oids||{};function O(e,t){Ou[e]=t,Ou[t]=e}function Ce(e,t){Ou[e]=t}O("1.2.840.113549.1.1.1","rsaEncryption"),O("1.2.840.113549.1.1.4","md5WithRSAEncryption"),O("1.2.840.113549.1.1.5","sha1WithRSAEncryption"),O("1.2.840.113549.1.1.7","RSAES-OAEP"),O("1.2.840.113549.1.1.8","mgf1"),O("1.2.840.113549.1.1.9","pSpecified"),O("1.2.840.113549.1.1.10","RSASSA-PSS"),O("1.2.840.113549.1.1.11","sha256WithRSAEncryption"),O("1.2.840.113549.1.1.12","sha384WithRSAEncryption"),O("1.2.840.113549.1.1.13","sha512WithRSAEncryption"),O("1.3.101.112","EdDSA25519"),O("1.2.840.10040.4.3","dsa-with-sha1"),O("1.3.14.3.2.7","desCBC"),O("1.3.14.3.2.26","sha1"),O("1.3.14.3.2.29","sha1WithRSASignature"),O("2.16.840.1.101.3.4.2.1","sha256"),O("2.16.840.1.101.3.4.2.2","sha384"),O("2.16.840.1.101.3.4.2.3","sha512"),O("2.16.840.1.101.3.4.2.4","sha224"),O("2.16.840.1.101.3.4.2.5","sha512-224"),O("2.16.840.1.101.3.4.2.6","sha512-256"),O("1.2.840.113549.2.2","md2"),O("1.2.840.113549.2.5","md5"),O("1.2.840.113549.1.7.1","data"),O("1.2.840.113549.1.7.2","signedData"),O("1.2.840.113549.1.7.3","envelopedData"),O("1.2.840.113549.1.7.4","signedAndEnvelopedData"),O("1.2.840.113549.1.7.5","digestedData"),O("1.2.840.113549.1.7.6","encryptedData"),O("1.2.840.113549.1.9.1","emailAddress"),O("1.2.840.113549.1.9.2","unstructuredName"),O("1.2.840.113549.1.9.3","contentType"),O("1.2.840.113549.1.9.4","messageDigest"),O("1.2.840.113549.1.9.5","signingTime"),O("1.2.840.113549.1.9.6","counterSignature"),O("1.2.840.113549.1.9.7","challengePassword"),O("1.2.840.113549.1.9.8","unstructuredAddress"),O("1.2.840.113549.1.9.14","extensionRequest"),O("1.2.840.113549.1.9.20","friendlyName"),O("1.2.840.113549.1.9.21","localKeyId"),O("1.2.840.113549.1.9.22.1","x509Certificate"),O("1.2.840.113549.1.12.10.1.1","keyBag"),O("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag"),O("1.2.840.113549.1.12.10.1.3","certBag"),O("1.2.840.113549.1.12.10.1.4","crlBag"),O("1.2.840.113549.1.12.10.1.5","secretBag"),O("1.2.840.113549.1.12.10.1.6","safeContentsBag"),O("1.2.840.113549.1.5.13","pkcs5PBES2"),O("1.2.840.113549.1.5.12","pkcs5PBKDF2"),O("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4"),O("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4"),O("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC"),O("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC"),O("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC"),O("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC"),O("1.2.840.113549.2.7","hmacWithSHA1"),O("1.2.840.113549.2.8","hmacWithSHA224"),O("1.2.840.113549.2.9","hmacWithSHA256"),O("1.2.840.113549.2.10","hmacWithSHA384"),O("1.2.840.113549.2.11","hmacWithSHA512"),O("1.2.840.113549.3.7","des-EDE3-CBC"),O("2.16.840.1.101.3.4.1.2","aes128-CBC"),O("2.16.840.1.101.3.4.1.22","aes192-CBC"),O("2.16.840.1.101.3.4.1.42","aes256-CBC"),O("2.5.4.3","commonName"),O("2.5.4.4","surname"),O("2.5.4.5","serialNumber"),O("2.5.4.6","countryName"),O("2.5.4.7","localityName"),O("2.5.4.8","stateOrProvinceName"),O("2.5.4.9","streetAddress"),O("2.5.4.10","organizationName"),O("2.5.4.11","organizationalUnitName"),O("2.5.4.12","title"),O("2.5.4.13","description"),O("2.5.4.15","businessCategory"),O("2.5.4.17","postalCode"),O("2.5.4.42","givenName"),O("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName"),O("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName"),O("2.16.840.1.113730.1.1","nsCertType"),O("2.16.840.1.113730.1.13","nsComment"),Ce("2.5.29.1","authorityKeyIdentifier"),Ce("2.5.29.2","keyAttributes"),Ce("2.5.29.3","certificatePolicies"),Ce("2.5.29.4","keyUsageRestriction"),Ce("2.5.29.5","policyMapping"),Ce("2.5.29.6","subtreesConstraint"),Ce("2.5.29.7","subjectAltName"),Ce("2.5.29.8","issuerAltName"),Ce("2.5.29.9","subjectDirectoryAttributes"),Ce("2.5.29.10","basicConstraints"),Ce("2.5.29.11","nameConstraints"),Ce("2.5.29.12","policyConstraints"),Ce("2.5.29.13","basicConstraints"),O("2.5.29.14","subjectKeyIdentifier"),O("2.5.29.15","keyUsage"),Ce("2.5.29.16","privateKeyUsagePeriod"),O("2.5.29.17","subjectAltName"),O("2.5.29.18","issuerAltName"),O("2.5.29.19","basicConstraints"),Ce("2.5.29.20","cRLNumber"),Ce("2.5.29.21","cRLReason"),Ce("2.5.29.22","expirationDate"),Ce("2.5.29.23","instructionCode"),Ce("2.5.29.24","invalidityDate"),Ce("2.5.29.25","cRLDistributionPoints"),Ce("2.5.29.26","issuingDistributionPoint"),Ce("2.5.29.27","deltaCRLIndicator"),Ce("2.5.29.28","issuingDistributionPoint"),Ce("2.5.29.29","certificateIssuer"),Ce("2.5.29.30","nameConstraints"),O("2.5.29.31","cRLDistributionPoints"),O("2.5.29.32","certificatePolicies"),Ce("2.5.29.33","policyMappings"),Ce("2.5.29.34","policyConstraints"),O("2.5.29.35","authorityKeyIdentifier"),Ce("2.5.29.36","policyConstraints"),O("2.5.29.37","extKeyUsage"),Ce("2.5.29.46","freshestCRL"),Ce("2.5.29.54","inhibitAnyPolicy"),O("1.3.6.1.4.1.11129.2.4.2","timestampList"),O("1.3.6.1.5.5.7.1.1","authorityInfoAccess"),O("1.3.6.1.5.5.7.3.1","serverAuth"),O("1.3.6.1.5.5.7.3.2","clientAuth"),O("1.3.6.1.5.5.7.3.3","codeSigning"),O("1.3.6.1.5.5.7.3.4","emailProtection"),O("1.3.6.1.5.5.7.3.8","timeStamping");var Ie=ee,V=Ie.asn1=Ie.asn1||{};V.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192},V.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30},V.maxDepth=256,V.create=function(e,t,r,a,n){if(Ie.util.isArray(a)){for(var s=[],i=0;i<a.length;++i)a[i]!==void 0&&s.push(a[i]);a=s}var o={tagClass:e,type:t,constructed:r,composed:r||Ie.util.isArray(a),value:a};return n&&"bitStringContents"in n&&(o.bitStringContents=n.bitStringContents,o.original=V.copy(o)),o},V.copy=function(e,t){var r;if(Ie.util.isArray(e)){r=[];for(var a=0;a<e.length;++a)r.push(V.copy(e[a],t));return r}return typeof e=="string"?e:(r={tagClass:e.tagClass,type:e.type,constructed:e.constructed,composed:e.composed,value:V.copy(e.value,t)},t&&!t.excludeBitStringContents&&(r.bitStringContents=e.bitStringContents),r)},V.equals=function(e,t,r){if(Ie.util.isArray(e)){if(!Ie.util.isArray(t)||e.length!==t.length)return!1;for(var a=0;a<e.length;++a)if(!V.equals(e[a],t[a]))return!1;return!0}if(typeof e!=typeof t)return!1;if(typeof e=="string")return e===t;var n=e.tagClass===t.tagClass&&e.type===t.type&&e.constructed===t.constructed&&e.composed===t.composed&&V.equals(e.value,t.value);return r&&r.includeBitStringContents&&(n=n&&e.bitStringContents===t.bitStringContents),n},V.getBerValueLength=function(e){var t=e.getByte();if(t!==128){var r,a=t&128;return a?r=e.getInt((t&127)<<3):r=t,r}};function dc(e,t,r){if(r>t){var a=new Error("Too few bytes to parse DER.");throw a.available=e.length(),a.remaining=t,a.requested=r,a}}var B1=function(e,t){var r=e.getByte();if(t--,r!==128){var a,n=r&128;if(!n)a=r;else{var s=r&127;dc(e,t,s),a=e.getInt(s<<3)}if(a<0)throw new Error("Negative length: "+a);return a}};V.fromDer=function(e,t){t===void 0&&(t={strict:!0,parseAllBytes:!0,decodeBitStrings:!0}),typeof t=="boolean"&&(t={strict:t,parseAllBytes:!0,decodeBitStrings:!0}),"strict"in t||(t.strict=!0),"parseAllBytes"in t||(t.parseAllBytes=!0),"decodeBitStrings"in t||(t.decodeBitStrings=!0),"maxDepth"in t||(t.maxDepth=V.maxDepth),typeof e=="string"&&(e=Ie.util.createBuffer(e));var r=e.length(),a=Xc(e,e.length(),0,t);if(t.parseAllBytes&&e.length()!==0){var n=new Error("Unparsed DER bytes remain after ASN.1 parsing.");throw n.byteCount=r,n.remaining=e.length(),n}return a};function Xc(e,t,r,a){if(r>=a.maxDepth)throw new Error("ASN.1 parsing error: Max depth exceeded.");var n;dc(e,t,2);var s=e.getByte();t--;var i=s&192,o=s&31;n=e.length();var c=B1(e,t);if(t-=n-e.length(),c!==void 0&&c>t){if(a.strict){var l=new Error("Too few bytes to read ASN.1 value.");throw l.available=e.length(),l.remaining=t,l.requested=c,l}c=t}var u,p,f=(s&32)===32;if(f)if(u=[],c===void 0)for(;;){if(dc(e,t,2),e.bytes(2)==="\0\0"){e.getBytes(2),t-=2;break}n=e.length(),u.push(Xc(e,t,r+1,a)),t-=n-e.length()}else for(;c>0;)n=e.length(),u.push(Xc(e,c,r+1,a)),t-=n-e.length(),c-=n-e.length();if(u===void 0&&i===V.Class.UNIVERSAL&&o===V.Type.BITSTRING&&(p=e.bytes(c)),u===void 0&&a.decodeBitStrings&&i===V.Class.UNIVERSAL&&o===V.Type.BITSTRING&&c>1){var x=e.read,m=t,y=0;if(o===V.Type.BITSTRING&&(dc(e,t,1),y=e.getByte(),t--),y===0)try{n=e.length();var b={strict:!0,decodeBitStrings:!0},S=Xc(e,t,r+1,b),B=n-e.length();t-=B,o==V.Type.BITSTRING&&B++;var _=S.tagClass;B===c&&(_===V.Class.UNIVERSAL||_===V.Class.CONTEXT_SPECIFIC)&&(u=[S])}catch{}u===void 0&&(e.read=x,t=m)}if(u===void 0){if(c===void 0){if(a.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");c=t}if(o===V.Type.BMPSTRING)for(u="";c>0;c-=2)dc(e,t,2),u+=String.fromCharCode(e.getInt16()),t-=2;else u=e.getBytes(c),t-=c}var D=p===void 0?null:{bitStringContents:p};return V.create(i,o,f,u,D)}V.toDer=function(e){var t=Ie.util.createBuffer(),r=e.tagClass|e.type,a=Ie.util.createBuffer(),n=!1;if("bitStringContents"in e&&(n=!0,e.original&&(n=V.equals(e,e.original))),n)a.putBytes(e.bitStringContents);else if(e.composed){e.constructed?r|=32:a.putByte(0);for(var s=0;s<e.value.length;++s)e.value[s]!==void 0&&a.putBuffer(V.toDer(e.value[s]))}else if(e.type===V.Type.BMPSTRING)for(var s=0;s<e.value.length;++s)a.putInt16(e.value.charCodeAt(s));else e.type===V.Type.INTEGER&&e.value.length>1&&(e.value.charCodeAt(0)===0&&(e.value.charCodeAt(1)&128)===0||e.value.charCodeAt(0)===255&&(e.value.charCodeAt(1)&128)===128)?a.putBytes(e.value.substr(1)):a.putBytes(e.value);if(t.putByte(r),a.length()<=127)t.putByte(a.length()&127);else{var i=a.length(),o="";do o+=String.fromCharCode(i&255),i=i>>>8;while(i>0);t.putByte(o.length|128);for(var s=o.length-1;s>=0;--s)t.putByte(o.charCodeAt(s))}return t.putBuffer(a),t},V.oidToDer=function(e){var t=e.split("."),r=Ie.util.createBuffer();r.putByte(40*parseInt(t[0],10)+parseInt(t[1],10));for(var a,n,s,i,o=2;o<t.length;++o){if(a=!0,n=[],s=parseInt(t[o],10),s>4294967295)throw new Error("OID value too large; max is 32-bits.");do i=s&127,s=s>>>7,a||(i|=128),n.push(i),a=!1;while(s>0);for(var c=n.length-1;c>=0;--c)r.putByte(n[c])}return r},V.derToOid=function(e){var t;typeof e=="string"&&(e=Ie.util.createBuffer(e));var r=e.getByte();t=Math.floor(r/40)+"."+r%40;for(var a=0;e.length()>0;){if(a>70368744177663)throw new Error("OID value too large; max is 53-bits.");r=e.getByte(),a=a*128,r&128?a+=r&127:(t+="."+(a+r),a=0)}return t},V.utcTimeToDate=function(e){var t=new Date,r=parseInt(e.substr(0,2),10);r=r>=50?1900+r:2e3+r;var a=parseInt(e.substr(2,2),10)-1,n=parseInt(e.substr(4,2),10),s=parseInt(e.substr(6,2),10),i=parseInt(e.substr(8,2),10),o=0;if(e.length>11){var c=e.charAt(10),l=10;c!=="+"&&c!=="-"&&(o=parseInt(e.substr(10,2),10),l+=2)}if(t.setUTCFullYear(r,a,n),t.setUTCHours(s,i,o,0),l&&(c=e.charAt(l),c==="+"||c==="-")){var u=parseInt(e.substr(l+1,2),10),p=parseInt(e.substr(l+4,2),10),f=u*60+p;f*=6e4,c==="+"?t.setTime(+t-f):t.setTime(+t+f)}return t},V.generalizedTimeToDate=function(e){var t=new Date,r=parseInt(e.substr(0,4),10),a=parseInt(e.substr(4,2),10)-1,n=parseInt(e.substr(6,2),10),s=parseInt(e.substr(8,2),10),i=parseInt(e.substr(10,2),10),o=parseInt(e.substr(12,2),10),c=0,l=0,u=!1;e.charAt(e.length-1)==="Z"&&(u=!0);var p=e.length-5,f=e.charAt(p);if(f==="+"||f==="-"){var x=parseInt(e.substr(p+1,2),10),m=parseInt(e.substr(p+4,2),10);l=x*60+m,l*=6e4,f==="+"&&(l*=-1),u=!0}return e.charAt(14)==="."&&(c=parseFloat(e.substr(14),10)*1e3),u?(t.setUTCFullYear(r,a,n),t.setUTCHours(s,i,o,c),t.setTime(+t+l)):(t.setFullYear(r,a,n),t.setHours(s,i,o,c)),t},V.dateToUtcTime=function(e){if(typeof e=="string")return e;var t="",r=[];r.push((""+e.getUTCFullYear()).substr(2)),r.push(""+(e.getUTCMonth()+1)),r.push(""+e.getUTCDate()),r.push(""+e.getUTCHours()),r.push(""+e.getUTCMinutes()),r.push(""+e.getUTCSeconds());for(var a=0;a<r.length;++a)r[a].length<2&&(t+="0"),t+=r[a];return t+="Z",t},V.dateToGeneralizedTime=function(e){if(typeof e=="string")return e;var t="",r=[];r.push(""+e.getUTCFullYear()),r.push(""+(e.getUTCMonth()+1)),r.push(""+e.getUTCDate()),r.push(""+e.getUTCHours()),r.push(""+e.getUTCMinutes()),r.push(""+e.getUTCSeconds());for(var a=0;a<r.length;++a)r[a].length<2&&(t+="0"),t+=r[a];return t+="Z",t},V.integerToDer=function(e){var t=Ie.util.createBuffer();if(e>=-128&&e<128)return t.putSignedInt(e,8);if(e>=-32768&&e<32768)return t.putSignedInt(e,16);if(e>=-8388608&&e<8388608)return t.putSignedInt(e,24);if(e>=-2147483648&&e<2147483648)return t.putSignedInt(e,32);var r=new Error("Integer too large; max is 32-bits.");throw r.integer=e,r},V.derToInteger=function(e){typeof e=="string"&&(e=Ie.util.createBuffer(e));var t=e.length()*8;if(t>32)throw new Error("Integer too large; max is 32-bits.");return e.getSignedInt(t)},V.validate=function(e,t,r,a){var n=!1;if((e.tagClass===t.tagClass||typeof t.tagClass>"u")&&(e.type===t.type||typeof t.type>"u"))if(e.constructed===t.constructed||typeof t.constructed>"u"){if(n=!0,t.value&&Ie.util.isArray(t.value))for(var s=0,i=0;n&&i<t.value.length;++i){var o=t.value[i];n=!!o.optional;var c=e.value[s];if(!c){o.optional||(n=!1,a&&a.push("["+t.name+'] Missing required element. Expected tag class "'+o.tagClass+'", type "'+o.type+'"'));continue}var l=typeof o.tagClass<"u"&&typeof o.type<"u";if(l&&(c.tagClass!==o.tagClass||c.type!==o.type))if(o.optional){n=!0;continue}else{n=!1,a&&a.push("["+t.name+"] Tag mismatch. Expected ("+o.tagClass+","+o.type+"), got ("+c.tagClass+","+c.type+")");break}var u=V.validate(c,o,r,a);if(u)++s,n=!0;else if(o.optional)n=!0;else{n=!1;break}}if(n&&r&&(t.capture&&(r[t.capture]=e.value),t.captureAsn1&&(r[t.captureAsn1]=e),t.captureBitStringContents&&"bitStringContents"in e&&(r[t.captureBitStringContents]=e.bitStringContents),t.captureBitStringValue&&"bitStringContents"in e))if(e.bitStringContents.length<2)r[t.captureBitStringValue]="";else{var p=e.bitStringContents.charCodeAt(0);if(p!==0)throw new Error("captureBitStringValue only supported for zero unused bits");r[t.captureBitStringValue]=e.bitStringContents.slice(1)}}else a&&a.push("["+t.name+'] Expected constructed "'+t.constructed+'", got "'+e.constructed+'"');else a&&(e.tagClass!==t.tagClass&&a.push("["+t.name+'] Expected tag class "'+t.tagClass+'", got "'+e.tagClass+'"'),e.type!==t.type&&a.push("["+t.name+'] Expected type "'+t.type+'", got "'+e.type+'"'));return n};var qf=/[^\\u0000-\\u00ff]/;V.prettyPrint=function(e,t,r){var a="";t=t||0,r=r||2,t>0&&(a+=`
|
|
26
|
-
`);for(var n="",s=0;s<t*r;++s)n+=" ";switch(a+=n+"Tag: ",e.tagClass){case V.Class.UNIVERSAL:a+="Universal:";break;case V.Class.APPLICATION:a+="Application:";break;case V.Class.CONTEXT_SPECIFIC:a+="Context-Specific:";break;case V.Class.PRIVATE:a+="Private:";break}if(e.tagClass===V.Class.UNIVERSAL)switch(a+=e.type,e.type){case V.Type.NONE:a+=" (None)";break;case V.Type.BOOLEAN:a+=" (Boolean)";break;case V.Type.INTEGER:a+=" (Integer)";break;case V.Type.BITSTRING:a+=" (Bit string)";break;case V.Type.OCTETSTRING:a+=" (Octet string)";break;case V.Type.NULL:a+=" (Null)";break;case V.Type.OID:a+=" (Object Identifier)";break;case V.Type.ODESC:a+=" (Object Descriptor)";break;case V.Type.EXTERNAL:a+=" (External or Instance of)";break;case V.Type.REAL:a+=" (Real)";break;case V.Type.ENUMERATED:a+=" (Enumerated)";break;case V.Type.EMBEDDED:a+=" (Embedded PDV)";break;case V.Type.UTF8:a+=" (UTF8)";break;case V.Type.ROID:a+=" (Relative Object Identifier)";break;case V.Type.SEQUENCE:a+=" (Sequence)";break;case V.Type.SET:a+=" (Set)";break;case V.Type.PRINTABLESTRING:a+=" (Printable String)";break;case V.Type.IA5String:a+=" (IA5String (ASCII))";break;case V.Type.UTCTIME:a+=" (UTC time)";break;case V.Type.GENERALIZEDTIME:a+=" (Generalized time)";break;case V.Type.BMPSTRING:a+=" (BMP String)";break}else a+=e.type;if(a+=`
|
|
17
|
+
`)}function c(f){f?process.env.DEBUG=f:delete process.env.DEBUG}function l(){return process.env.DEBUG}function u(f){f.inspectOpts={};const x=Object.keys(t.inspectOpts);for(let m=0;m<x.length;m++)f.inspectOpts[x[m]]=t.inspectOpts[x[m]]}e.exports=Nd()(t);const{formatters:p}=e.exports;p.o=function(f){return this.inspectOpts.colors=this.useColors,a.inspect(f,this.inspectOpts).split(`
|
|
18
|
+
`).map(x=>x.trim()).join(" ")},p.O=function(f){return this.inspectOpts.colors=this.useColors,a.inspect(f,this.inspectOpts)}})(Fc,Fc.exports)),Fc.exports}var Od;function Ug(){return Od||(Od=1,typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Pc.exports=Rg():Pc.exports=Lg()),Pc.exports}var lr,Dg=function(){if(!lr){try{lr=Ug()("follow-redirects")}catch{}typeof lr!="function"&&(lr=function(){})}lr.apply(null,arguments)},ur=Cl,pr=ur.URL,Pg=bl,Og=El,cu=dt.Writable,lu=om,Fd=Dg;(function(){var t=typeof process<"u",r=typeof window<"u"&&typeof document<"u",a=ba(Error.captureStackTrace);!t&&(r||!a)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var uu=!1;try{lu(new pr(""))}catch(e){uu=e.code==="ERR_INVALID_URL"}var Fg=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],pu=["abort","aborted","connect","error","socket","timeout"],du=Object.create(null);pu.forEach(function(e){du[e]=function(t,r,a){this._redirectable.emit(e,t,r,a)}});var fu=dr("ERR_INVALID_URL","Invalid URL",TypeError),mu=dr("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Mg=dr("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",mu),Vg=dr("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),qg=dr("ERR_STREAM_WRITE_AFTER_END","write after end"),jg=cu.prototype.destroy||Vd;function mt(e,t){cu.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(a){try{r._processResponse(a)}catch(n){r.emit("error",n instanceof mu?n:new mu({cause:n}))}},this._performRequest()}mt.prototype=Object.create(cu.prototype),mt.prototype.abort=function(){xu(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},mt.prototype.destroy=function(e){return xu(this._currentRequest,e),jg.call(this,e),this},mt.prototype.write=function(e,t,r){if(this._ending)throw new qg;if(!ya(e)&&!Hg(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(ba(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Vg),this.abort())},mt.prototype.end=function(e,t,r){if(ba(e)?(r=e,e=t=null):ba(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var a=this,n=this._currentRequest;this.write(e,t,function(){a._ended=!0,n.end(null,null,r)}),this._ending=!0}},mt.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},mt.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},mt.prototype.setTimeout=function(e,t){var r=this;function a(i){i.setTimeout(e),i.removeListener("timeout",i.destroy),i.addListener("timeout",i.destroy)}function n(i){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},e),a(i)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),r.removeListener("close",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",n)}return t&&this.on("timeout",t),this.socket?n(this.socket):this._currentRequest.once("socket",n),this.on("socket",a),this.on("abort",s),this.on("error",s),this.on("response",s),this.on("close",s),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){mt.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(mt.prototype,e,{get:function(){return this._currentRequest[e]}})}),mt.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},mt.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var a=this._currentRequest=t.request(this._options,this._onNativeResponse);a._redirectable=this;for(var n of pu)a.on(n,du[n]);if(this._currentUrl=/^\//.test(this._options.path)?ur.format(this._options):this._options.path,this._isRedirect){var s=0,i=this,o=this._requestBodyBuffers;(function c(l){if(a===i._currentRequest)if(l)i.emit("error",l);else if(s<o.length){var u=o[s++];a.finished||a.write(u.data,u.encoding,c)}else i._ended&&a.end()})()}},mt.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(xu(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Mg;var a,n=this._options.beforeRedirect;n&&(a=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],gu(/^content-/i,this._options.headers));var i=gu(/^host$/i,this._options.headers),o=hu(this._currentUrl),c=i||o.host,l=/^\w+:/.test(r)?this._currentUrl:ur.format(Object.assign(o,{host:c})),u=Kg(r,l);if(Fd("redirecting to",u.href),this._isRedirect=!0,vu(u,this._options),(u.protocol!==o.protocol&&u.protocol!=="https:"||u.host!==c&&!zg(u.host,c))&&gu(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),ba(n)){var p={headers:e.headers,statusCode:t},f={url:l,method:s,headers:a};n(this._options,p,f),this._sanitizeOptions(this._options)}this._performRequest()};function Md(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(a){var n=a+":",s=r[n]=e[a],i=t[a]=Object.create(s);function o(l,u,p){return $g(l)?l=vu(l):ya(l)?l=vu(hu(l)):(p=u,u=qd(l),l={protocol:n}),ba(u)&&(p=u,u=null),u=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},l,u),u.nativeProtocols=r,!ya(u.host)&&!ya(u.hostname)&&(u.hostname="::1"),lu.equal(u.protocol,n,"protocol mismatch"),Fd("options",u),new mt(u,p)}function c(l,u,p){var f=i.request(l,u,p);return f.end(),f}Object.defineProperties(i,{request:{value:o,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function Vd(){}function hu(e){var t;if(uu)t=new pr(e);else if(t=qd(ur.parse(e)),!ya(t.protocol))throw new fu({input:e});return t}function Kg(e,t){return uu?new pr(e,t):hu(ur.resolve(t,e))}function qd(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new fu({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new fu({input:e.href||e});return e}function vu(e,t){var r=t||{};for(var a of Fg)r[a]=e[a];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function gu(e,t){var r;for(var a in t)e.test(a)&&(r=t[a],delete t[a]);return r===null||typeof r>"u"?void 0:String(r).trim()}function dr(e,t,r){function a(n){ba(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return a.prototype=new(r||Error),Object.defineProperties(a.prototype,{constructor:{value:a,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),a}function xu(e,t){for(var r of pu)e.removeListener(r,du[r]);e.on("error",Vd),e.destroy(t)}function zg(e,t){lu(ya(e)&&ya(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function ya(e){return typeof e=="string"||e instanceof String}function ba(e){return typeof e=="function"}function Hg(e){return typeof e=="object"&&"length"in e}function $g(e){return pr&&e instanceof pr}ru.exports=Md({http:Pg,https:Og}),ru.exports.wrap=Md;var Gg=ru.exports,Qg=Np(Gg);const Mc="1.15.0";function jd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const Wg=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function Yg(e,t,r){const a=r&&r.Blob||Ue.classes.Blob,n=jd(e);if(t===void 0&&a&&(t=!0),n==="data"){e=n.length?e.slice(n.length+1):e;const s=Wg.exec(e);if(!s)throw new F("Invalid URL",F.ERR_INVALID_URL);const i=s[1],o=s[2],c=s[3],l=Buffer.from(decodeURIComponent(c),o?"base64":"utf8");if(t){if(!a)throw new F("Blob is not supported",F.ERR_NOT_SUPPORT);return new a([l],{type:i})}return l}throw new F("Unsupported protocol "+n,F.ERR_NOT_SUPPORT)}const yu=Symbol("internals");class Kd extends dt.Transform{constructor(t){t=A.toFlatObject(t,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(a,n)=>!A.isUndefined(n[a])),super({readableHighWaterMark:t.chunkSize});const r=this[yu]={timeWindow:t.timeWindow,chunkSize:t.chunkSize,maxRate:t.maxRate,minChunkSize:t.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",a=>{a==="progress"&&(r.isCaptured||(r.isCaptured=!0))})}_read(t){const r=this[yu];return r.onReadCallback&&r.onReadCallback(),super._read(t)}_transform(t,r,a){const n=this[yu],s=n.maxRate,i=this.readableHighWaterMark,o=n.timeWindow,c=1e3/o,l=s/c,u=n.minChunkSize!==!1?Math.max(n.minChunkSize,l*.01):0,p=(x,m)=>{const y=Buffer.byteLength(x);n.bytesSeen+=y,n.bytes+=y,n.isCaptured&&this.emit("progress",n.bytesSeen),this.push(x)?process.nextTick(m):n.onReadCallback=()=>{n.onReadCallback=null,process.nextTick(m)}},f=(x,m)=>{const y=Buffer.byteLength(x);let b=null,S=i,B,_=0;if(s){const P=Date.now();(!n.ts||(_=P-n.ts)>=o)&&(n.ts=P,B=l-n.bytes,n.bytes=B<0?-B:0,_=0),B=l-n.bytes}if(s){if(B<=0)return setTimeout(()=>{m(null,x)},o-_);B<S&&(S=B)}S&&y>S&&y-S>u&&(b=x.subarray(S),x=x.subarray(0,S)),p(x,b?()=>{process.nextTick(m,null,b)}:m)};f(t,function x(m,y){if(m)return a(m);y?f(y,x):a(null)})}}const{asyncIterator:zd}=Symbol,Hd=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[zd]?yield*e[zd]():yield e},Xg=Ue.ALPHABET.ALPHA_DIGIT+"-_",fr=typeof TextEncoder=="function"?new TextEncoder:new ha.TextEncoder,Ea=`\r
|
|
19
|
+
`,Jg=fr.encode(Ea),Zg=2;class ex{constructor(t,r){const{escapeName:a}=this.constructor,n=A.isString(r);let s=`Content-Disposition: form-data; name="${a(t)}"${!n&&r.name?`; filename="${a(r.name)}"`:""}${Ea}`;n?r=fr.encode(String(r).replace(/\r?\n|\r\n?/g,Ea)):s+=`Content-Type: ${r.type||"application/octet-stream"}${Ea}`,this.headers=fr.encode(s+Ea),this.contentLength=n?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+Zg,this.name=t,this.value=r}async*encode(){yield this.headers;const{value:t}=this;A.isTypedArray(t)?yield t:yield*Hd(t),yield Jg}static escapeName(t){return String(t).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}}const tx=(e,t,r)=>{const{tag:a="form-data-boundary",size:n=25,boundary:s=a+"-"+Ue.generateString(n,Xg)}=r||{};if(!A.isFormData(e))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");const i=fr.encode("--"+s+Ea),o=fr.encode("--"+s+"--"+Ea);let c=o.byteLength;const l=Array.from(e.entries()).map(([p,f])=>{const x=new ex(p,f);return c+=x.size,x});c+=i.byteLength*l.length,c=A.toFiniteNumber(c);const u={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(c)&&(u["Content-Length"]=c),t&&t(u),nm.from((async function*(){for(const p of l)yield i,yield*p.encode();yield o})())};class ax extends dt.Transform{__transform(t,r,a){this.push(t),a()}_transform(t,r,a){if(t.length!==0&&(this._transform=this.__transform,t[0]!==120)){const n=Buffer.alloc(2);n[0]=120,n[1]=156,this.push(n,r)}this.__transform(t,r,a)}}const rx=(e,t)=>A.isAsyncFn(e)?function(...r){const a=r.pop();e.apply(this,r).then(n=>{try{t?a(null,...t(n)):a(null,n)}catch(s){a(s)}},a)}:e,nx={http:80,https:443,ws:80,wss:443,ftp:21},ix=e=>{let t=e,r=0;if(t.charAt(0)==="["){const s=t.indexOf("]");if(s!==-1){const i=t.slice(1,s),o=t.slice(s+1);return o.charAt(0)===":"&&/^\d+$/.test(o.slice(1))&&(r=Number.parseInt(o.slice(1),10)),[i,r]}}const a=t.indexOf(":"),n=t.lastIndexOf(":");return a!==-1&&a===n&&/^\d+$/.test(t.slice(n+1))&&(r=Number.parseInt(t.slice(n+1),10),t=t.slice(0,n)),[t,r]},$d=e=>e&&(e.charAt(0)==="["&&e.charAt(e.length-1)==="]"&&(e=e.slice(1,-1)),e.replace(/\.+$/,""));function sx(e){let t;try{t=new URL(e)}catch{return!1}const r=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!r)return!1;if(r==="*")return!0;const a=Number.parseInt(t.port,10)||nx[t.protocol.split(":",1)[0]]||0,n=$d(t.hostname.toLowerCase());return r.split(/[\s,]+/).some(s=>{if(!s)return!1;let[i,o]=ix(s);return i=$d(i),!i||o&&o!==a?!1:(i.charAt(0)==="*"&&(i=i.slice(1)),i.charAt(0)==="."?n.endsWith(i):n===i)})}function ox(e,t){e=e||10;const r=new Array(e),a=new Array(e);let n=0,s=0,i;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=a[s];i||(i=l),r[n]=c,a[n]=l;let p=s,f=0;for(;p!==n;)f+=r[p++],p=p%e;if(n=(n+1)%e,n===s&&(s=(s+1)%e),l-i<t)return;const x=u&&l-u;return x?Math.round(f*1e3/x):void 0}}function cx(e,t){let r=0,a=1e3/t,n,s;const i=(l,u=Date.now())=>{r=u,n=null,s&&(clearTimeout(s),s=null),e(...l)};return[(...l)=>{const u=Date.now(),p=u-r;p>=a?i(l,u):(n=l,s||(s=setTimeout(()=>{s=null,i(n)},a-p)))},()=>n&&i(n)]}const Va=(e,t,r=3)=>{let a=0;const n=ox(50,250);return cx(s=>{const i=s.loaded,o=s.lengthComputable?s.total:void 0,c=i-a,l=n(c),u=i<=o;a=i;const p={loaded:i,total:o,progress:o?i/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:s,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(p)},r)},Vc=(e,t)=>{const r=e!=null;return[a=>t[0]({lengthComputable:r,total:e,loaded:a}),t[1]]},qc=e=>(...t)=>A.asap(()=>e(...t));function lx(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const r=e.slice(5,t),a=e.slice(t+1);if(/;base64/i.test(r)){let s=a.length;const i=a.length;for(let f=0;f<i;f++)if(a.charCodeAt(f)===37&&f+2<i){const x=a.charCodeAt(f+1),m=a.charCodeAt(f+2);(x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102)&&(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(s-=2,f+=2)}let o=0,c=i-1;const l=f=>f>=2&&a.charCodeAt(f-2)===37&&a.charCodeAt(f-1)===51&&(a.charCodeAt(f)===68||a.charCodeAt(f)===100);c>=0&&(a.charCodeAt(c)===61?(o++,c--):l(c)&&(o++,c-=3)),o===1&&c>=0&&(a.charCodeAt(c)===61||l(c))&&o++;const p=Math.floor(s/4)*3-(o||0);return p>0?p:0}return Buffer.byteLength(a,"utf8")}const Gd={flush:ta.constants.Z_SYNC_FLUSH,finishFlush:ta.constants.Z_SYNC_FLUSH},ux={flush:ta.constants.BROTLI_OPERATION_FLUSH,finishFlush:ta.constants.BROTLI_OPERATION_FLUSH},Qd=A.isFunction(ta.createBrotliDecompress),{http:px,https:dx}=Qg,fx=/https:?/,Wd=Ue.protocols.map(e=>e+":"),Yd=(e,[t,r])=>(e.on("end",r).on("error",r),t);class mx{constructor(){this.sessions=Object.create(null)}getSession(t,r){r=Object.assign({sessionTimeout:1e3},r);let a=this.sessions[t];if(a){let u=a.length;for(let p=0;p<u;p++){const[f,x]=a[p];if(!f.destroyed&&!f.closed&&ha.isDeepStrictEqual(x,r))return f}}const n=yp.connect(t,r);let s;const i=()=>{if(s)return;s=!0;let u=a,p=u.length,f=p;for(;f--;)if(u[f][0]===n){p===1?delete this.sessions[t]:u.splice(f,1),n.closed||n.close();return}},o=n.request,{sessionTimeout:c}=r;if(c!=null){let u,p=0;n.request=function(){const f=o.apply(this,arguments);return p++,u&&(clearTimeout(u),u=null),f.once("close",()=>{--p||(u=setTimeout(()=>{u=null,i()},c))}),f}}n.once("close",i);let l=[n,r];return a?a.push(l):a=this.sessions[t]=[l],n}}const hx=new mx;function vx(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function Xd(e,t,r){let a=t;if(!a&&a!==!1){const n=Ig(r);n&&(sx(r)||(a=new URL(n)))}if(a){if(a.username&&(a.auth=(a.username||"")+":"+(a.password||"")),a.auth){if(!!(a.auth.username||a.auth.password))a.auth=(a.auth.username||"")+":"+(a.auth.password||"");else if(typeof a.auth=="object")throw new F("Invalid proxy authorization",F.ERR_BAD_OPTION,{proxy:a});const i=Buffer.from(a.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+i}e.headers.host=e.hostname+(e.port?":"+e.port:"");const n=a.hostname||a.host;e.hostname=n,e.host=n,e.port=a.port,e.path=r,a.protocol&&(e.protocol=a.protocol.includes(":")?a.protocol:`${a.protocol}:`)}e.beforeRedirects.proxy=function(s){Xd(s,t,s.href)}}const gx=typeof process<"u"&&A.kindOf(process)==="process",xx=e=>new Promise((t,r)=>{let a,n;const s=(c,l)=>{n||(n=!0,a&&a(c,l))},i=c=>{s(c),t(c)},o=c=>{s(c,!0),r(c)};e(i,o,c=>a=c).catch(o)}),yx=({address:e,family:t})=>{if(!A.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}},Jd=(e,t)=>yx(A.isObject(e)?e:{address:e,family:t}),bx={request(e,t){const r=e.protocol+"//"+e.hostname+":"+(e.port||(e.protocol==="https:"?443:80)),{http2Options:a,headers:n}=e,s=hx.getSession(r,a),{HTTP2_HEADER_SCHEME:i,HTTP2_HEADER_METHOD:o,HTTP2_HEADER_PATH:c,HTTP2_HEADER_STATUS:l}=yp.constants,u={[i]:e.protocol.replace(":",""),[o]:e.method,[c]:e.path};A.forEach(n,(f,x)=>{x.charAt(0)!==":"&&(u[x]=f)});const p=s.request(u);return p.once("response",f=>{const x=p;f=Object.assign({},f);const m=f[l];delete f[l],x.headers=f,x.statusCode=+m,t(x)}),p}};var Ex=gx&&function(t){return xx(async function(a,n,s){let{data:i,lookup:o,family:c,httpVersion:l=1,http2Options:u}=t;const{responseType:p,responseEncoding:f}=t,x=t.method.toUpperCase();let m,y=!1,b;if(l=+l,Number.isNaN(l))throw TypeError(`Invalid protocol version: '${t.httpVersion}' is not a number`);if(l!==1&&l!==2)throw TypeError(`Unsupported protocol version '${l}'`);const S=l===2;if(o){const $=rx(o,M=>A.isArray(M)?M:[M]);o=(M,X,ye)=>{$(M,X,(re,Ce,Ae)=>{if(re)return ye(re);const xe=A.isArray(Ce)?Ce.map(Pe=>Jd(Pe)):[Jd(Ce,Ae)];X.all?ye(re,xe):ye(re,xe[0].address,xe[0].family)})}}const B=new lm;function _($){try{B.emit("abort",!$||$.type?new xa(null,t,b):$)}catch(M){console.warn("emit error",M)}}B.once("abort",n);const P=()=>{t.cancelToken&&t.cancelToken.unsubscribe(_),t.signal&&t.signal.removeEventListener("abort",_),B.removeAllListeners()};(t.cancelToken||t.signal)&&(t.cancelToken&&t.cancelToken.subscribe(_),t.signal&&(t.signal.aborted?_():t.signal.addEventListener("abort",_))),s(($,M)=>{if(m=!0,M){y=!0,P();return}const{data:X}=$;if(X instanceof dt.Readable||X instanceof dt.Duplex){const ye=dt.finished(X,()=>{ye(),P()})}else P()});const U=tu(t.baseURL,t.url,t.allowAbsoluteUrls),k=new URL(U,Ue.hasBrowserEnv?Ue.origin:void 0),H=k.protocol||Wd[0];if(H==="data:"){if(t.maxContentLength>-1){const M=String(t.url||U||"");if(lx(M)>t.maxContentLength)return n(new F("maxContentLength size of "+t.maxContentLength+" exceeded",F.ERR_BAD_RESPONSE,t))}let $;if(x!=="GET")return Ma(a,n,{status:405,statusText:"method not allowed",headers:{},config:t});try{$=Yg(t.url,p==="blob",{Blob:t.env&&t.env.Blob})}catch(M){throw F.from(M,F.ERR_BAD_REQUEST,t)}return p==="text"?($=$.toString(f),(!f||f==="utf8")&&($=A.stripBOM($))):p==="stream"&&($=dt.Readable.from($)),Ma(a,n,{data:$,status:200,statusText:"OK",headers:new He,config:t})}if(Wd.indexOf(H)===-1)return n(new F("Unsupported protocol "+H,F.ERR_BAD_REQUEST,t));const G=He.from(t.headers).normalize();G.set("User-Agent","axios/"+Mc,!1);const{onUploadProgress:Z,onDownloadProgress:ce}=t,pe=t.maxRate;let he,_e;if(A.isSpecCompliantForm(i)){const $=G.getContentType(/boundary=([-_\w\d]{10,70})/i);i=tx(i,M=>{G.set(M)},{tag:`axios-${Mc}-boundary`,boundary:$&&$[1]||void 0})}else if(A.isFormData(i)&&A.isFunction(i.getHeaders)){if(G.set(i.getHeaders()),!G.hasContentLength())try{const $=await ha.promisify(i.getLength).call(i);Number.isFinite($)&&$>=0&&G.setContentLength($)}catch{}}else if(A.isBlob(i)||A.isFile(i))i.size&&G.setContentType(i.type||"application/octet-stream"),G.setContentLength(i.size||0),i=dt.Readable.from(Hd(i));else if(i&&!A.isStream(i)){if(!Buffer.isBuffer(i))if(A.isArrayBuffer(i))i=Buffer.from(new Uint8Array(i));else if(A.isString(i))i=Buffer.from(i,"utf-8");else return n(new F("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",F.ERR_BAD_REQUEST,t));if(G.setContentLength(i.length,!1),t.maxBodyLength>-1&&i.length>t.maxBodyLength)return n(new F("Request body larger than maxBodyLength limit",F.ERR_BAD_REQUEST,t))}const ke=A.toFiniteNumber(G.getContentLength());A.isArray(pe)?(he=pe[0],_e=pe[1]):he=_e=pe,i&&(Z||he)&&(A.isStream(i)||(i=dt.Readable.from(i,{objectMode:!1})),i=dt.pipeline([i,new Kd({maxRate:A.toFiniteNumber(he)})],A.noop),Z&&i.on("progress",Yd(i,Vc(ke,Va(qc(Z),!1,3)))));let le;if(t.auth){const $=t.auth.username||"",M=t.auth.password||"";le=$+":"+M}if(!le&&k.username){const $=k.username,M=k.password;le=$+":"+M}le&&G.delete("authorization");let ae;try{ae=Wl(k.pathname+k.search,t.params,t.paramsSerializer).replace(/^\?/,"")}catch($){const M=new Error($.message);return M.config=t,M.url=t.url,M.exists=!0,n(M)}G.set("Accept-Encoding","gzip, compress, deflate"+(Qd?", br":""),!1);const j={path:ae,method:x,headers:G.toJSON(),agents:{http:t.httpAgent,https:t.httpsAgent},auth:le,protocol:H,family:c,beforeRedirect:vx,beforeRedirects:{},http2Options:u};!A.isUndefined(o)&&(j.lookup=o),t.socketPath?j.socketPath=t.socketPath:(j.hostname=k.hostname.startsWith("[")?k.hostname.slice(1,-1):k.hostname,j.port=k.port,Xd(j,t.proxy,H+"//"+k.hostname+(k.port?":"+k.port:"")+j.path));let Ne;const At=fx.test(j.protocol);if(j.agent=At?t.httpsAgent:t.httpAgent,S?Ne=bx:t.transport?Ne=t.transport:t.maxRedirects===0?Ne=At?El:bl:(t.maxRedirects&&(j.maxRedirects=t.maxRedirects),t.beforeRedirect&&(j.beforeRedirects.config=t.beforeRedirect),Ne=At?dx:px),t.maxBodyLength>-1?j.maxBodyLength=t.maxBodyLength:j.maxBodyLength=1/0,t.insecureHTTPParser&&(j.insecureHTTPParser=t.insecureHTTPParser),b=Ne.request(j,function(M){if(b.destroyed)return;const X=[M],ye=A.toFiniteNumber(M.headers["content-length"]);if(ce||_e){const xe=new Kd({maxRate:A.toFiniteNumber(_e)});ce&&xe.on("progress",Yd(xe,Vc(ye,Va(qc(ce),!0,3)))),X.push(xe)}let re=M;const Ce=M.req||b;if(t.decompress!==!1&&M.headers["content-encoding"])switch((x==="HEAD"||M.statusCode===204)&&delete M.headers["content-encoding"],(M.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":X.push(ta.createUnzip(Gd)),delete M.headers["content-encoding"];break;case"deflate":X.push(new ax),X.push(ta.createUnzip(Gd)),delete M.headers["content-encoding"];break;case"br":Qd&&(X.push(ta.createBrotliDecompress(ux)),delete M.headers["content-encoding"])}re=X.length>1?dt.pipeline(X,A.noop):X[0];const Ae={status:M.statusCode,statusText:M.statusMessage,headers:new He(M.headers),config:t,request:Ce};if(p==="stream")Ae.data=re,Ma(a,n,Ae);else{const xe=[];let Pe=0;re.on("data",function(ge){xe.push(ge),Pe+=ge.length,t.maxContentLength>-1&&Pe>t.maxContentLength&&(y=!0,re.destroy(),_(new F("maxContentLength size of "+t.maxContentLength+" exceeded",F.ERR_BAD_RESPONSE,t,Ce)))}),re.on("aborted",function(){if(y)return;const ge=new F("stream has been aborted",F.ERR_BAD_RESPONSE,t,Ce);re.destroy(ge),n(ge)}),re.on("error",function(ge){b.destroyed||n(F.from(ge,null,t,Ce))}),re.on("end",function(){try{let ge=xe.length===1?xe[0]:Buffer.concat(xe);p!=="arraybuffer"&&(ge=ge.toString(f),(!f||f==="utf8")&&(ge=A.stripBOM(ge))),Ae.data=ge}catch(ge){return n(F.from(ge,null,t,Ae.request,Ae))}Ma(a,n,Ae)})}B.once("abort",xe=>{re.destroyed||(re.emit("error",xe),re.destroy())})}),B.once("abort",$=>{b.close?b.close():b.destroy($)}),b.on("error",function(M){n(F.from(M,null,t,b))}),b.on("socket",function(M){M.setKeepAlive(!0,1e3*60)}),t.timeout){const $=parseInt(t.timeout,10);if(Number.isNaN($)){_(new F("error trying to parse `config.timeout` to int",F.ERR_BAD_OPTION_VALUE,t,b));return}b.setTimeout($,function(){if(m)return;let X=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const ye=t.transitional||Uc;t.timeoutErrorMessage&&(X=t.timeoutErrorMessage),_(new F(X,ye.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,t,b))})}else b.setTimeout(0);if(A.isStream(i)){let $=!1,M=!1;i.on("end",()=>{$=!0}),i.once("error",X=>{M=!0,b.destroy(X)}),i.on("close",()=>{!$&&!M&&_(new xa("Request stream has been aborted",t,b))}),i.pipe(b)}else i&&b.write(i),b.end()})},Cx=Ue.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ue.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ue.origin),Ue.navigator&&/(msie|trident)/i.test(Ue.navigator.userAgent)):()=>!0,Sx=Ue.hasStandardBrowserEnv?{write(e,t,r,a,n,s,i){if(typeof document>"u")return;const o=[`${e}=${encodeURIComponent(t)}`];A.isNumber(r)&&o.push(`expires=${new Date(r).toUTCString()}`),A.isString(a)&&o.push(`path=${a}`),A.isString(n)&&o.push(`domain=${n}`),s===!0&&o.push("secure"),A.isString(i)&&o.push(`SameSite=${i}`),document.cookie=o.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};const Zd=e=>e instanceof He?{...e}:e;function Ca(e,t){t=t||{};const r={};function a(l,u,p,f){return A.isPlainObject(l)&&A.isPlainObject(u)?A.merge.call({caseless:f},l,u):A.isPlainObject(u)?A.merge({},u):A.isArray(u)?u.slice():u}function n(l,u,p,f){if(A.isUndefined(u)){if(!A.isUndefined(l))return a(void 0,l,p,f)}else return a(l,u,p,f)}function s(l,u){if(!A.isUndefined(u))return a(void 0,u)}function i(l,u){if(A.isUndefined(u)){if(!A.isUndefined(l))return a(void 0,l)}else return a(void 0,u)}function o(l,u,p){if(p in t)return a(l,u);if(p in e)return a(void 0,l)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:o,headers:(l,u,p)=>n(Zd(l),Zd(u),p,!0)};return A.forEach(Object.keys({...e,...t}),function(u){if(u==="__proto__"||u==="constructor"||u==="prototype")return;const p=A.hasOwnProp(c,u)?c[u]:n,f=p(e[u],t[u],u);A.isUndefined(f)&&p!==o||(r[u]=f)}),r}var ef=e=>{const t=Ca({},e);let{data:r,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:s,headers:i,auth:o}=t;if(t.headers=i=He.from(i),t.url=Wl(tu(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),o&&i.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),A.isFormData(r)){if(Ue.hasStandardBrowserEnv||Ue.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(A.isFunction(r.getHeaders)){const c=r.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([u,p])=>{l.includes(u.toLowerCase())&&i.set(u,p)})}}if(Ue.hasStandardBrowserEnv&&(a&&A.isFunction(a)&&(a=a(t)),a||a!==!1&&Cx(t.url))){const c=n&&s&&Sx.read(s);c&&i.set(n,c)}return t};const Tx=typeof XMLHttpRequest<"u";var wx=Tx&&function(e){return new Promise(function(r,a){const n=ef(e);let s=n.data;const i=He.from(n.headers).normalize();let{responseType:o,onUploadProgress:c,onDownloadProgress:l}=n,u,p,f,x,m;function y(){x&&x(),m&&m(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(n.method.toUpperCase(),n.url,!0),b.timeout=n.timeout;function S(){if(!b)return;const _=He.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),U={data:!o||o==="text"||o==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:_,config:e,request:b};Ma(function(H){r(H),y()},function(H){a(H),y()},U),b=null}"onloadend"in b?b.onloadend=S:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(S)},b.onabort=function(){b&&(a(new F("Request aborted",F.ECONNABORTED,e,b)),b=null)},b.onerror=function(P){const U=P&&P.message?P.message:"Network Error",k=new F(U,F.ERR_NETWORK,e,b);k.event=P||null,a(k),b=null},b.ontimeout=function(){let P=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const U=n.transitional||Uc;n.timeoutErrorMessage&&(P=n.timeoutErrorMessage),a(new F(P,U.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,e,b)),b=null},s===void 0&&i.setContentType(null),"setRequestHeader"in b&&A.forEach(i.toJSON(),function(P,U){b.setRequestHeader(U,P)}),A.isUndefined(n.withCredentials)||(b.withCredentials=!!n.withCredentials),o&&o!=="json"&&(b.responseType=n.responseType),l&&([f,m]=Va(l,!0),b.addEventListener("progress",f)),c&&b.upload&&([p,x]=Va(c),b.upload.addEventListener("progress",p),b.upload.addEventListener("loadend",x)),(n.cancelToken||n.signal)&&(u=_=>{b&&(a(!_||_.type?new xa(null,e,b):_),b.abort(),b=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const B=jd(n.url);if(B&&Ue.protocols.indexOf(B)===-1){a(new F("Unsupported protocol "+B+":",F.ERR_BAD_REQUEST,e));return}b.send(s||null)})};const Ax=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let a=new AbortController,n;const s=function(l){if(!n){n=!0,o();const u=l instanceof Error?l:this.reason;a.abort(u instanceof F?u:new xa(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,s(new F(`timeout of ${t}ms exceeded`,F.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),e=null)};e.forEach(l=>l.addEventListener("abort",s));const{signal:c}=a;return c.unsubscribe=()=>A.asap(o),c}},Ix=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let a=0,n;for(;a<r;)n=a+t,yield e.slice(a,n),a=n},Bx=async function*(e,t){for await(const r of _x(e))yield*Ix(r,t)},_x=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:a}=await t.read();if(r)break;yield a}}finally{await t.cancel()}},tf=(e,t,r,a)=>{const n=Bx(e,t);let s=0,i,o=c=>{i||(i=!0,a&&a(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await n.next();if(l){o(),c.close();return}let p=u.byteLength;if(r){let f=s+=p;r(f)}c.enqueue(new Uint8Array(u))}catch(l){throw o(l),l}},cancel(c){return o(c),n.return()}},{highWaterMark:2})},af=64*1024,{isFunction:jc}=A,Rx=(({Request:e,Response:t})=>({Request:e,Response:t}))(A.global),{ReadableStream:rf,TextEncoder:nf}=A.global,sf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},kx=e=>{e=A.merge.call({skipUndefined:!0},Rx,e);const{fetch:t,Request:r,Response:a}=e,n=t?jc(t):typeof fetch=="function",s=jc(r),i=jc(a);if(!n)return!1;const o=n&&jc(rf),c=n&&(typeof nf=="function"?(m=>y=>m.encode(y))(new nf):async m=>new Uint8Array(await new r(m).arrayBuffer())),l=s&&o&&sf(()=>{let m=!1;const y=new rf,b=new r(Ue.origin,{body:y,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return y.cancel(),m&&!b}),u=i&&o&&sf(()=>A.isReadableStream(new a("").body)),p={stream:u&&(m=>m.body)};n&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!p[m]&&(p[m]=(y,b)=>{let S=y&&y[m];if(S)return S.call(y);throw new F(`Response type '${m}' is not supported`,F.ERR_NOT_SUPPORT,b)})});const f=async m=>{if(m==null)return 0;if(A.isBlob(m))return m.size;if(A.isSpecCompliantForm(m))return(await new r(Ue.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(A.isArrayBufferView(m)||A.isArrayBuffer(m))return m.byteLength;if(A.isURLSearchParams(m)&&(m=m+""),A.isString(m))return(await c(m)).byteLength},x=async(m,y)=>{const b=A.toFiniteNumber(m.getContentLength());return b??f(y)};return async m=>{let{url:y,method:b,data:S,signal:B,cancelToken:_,timeout:P,onDownloadProgress:U,onUploadProgress:k,responseType:H,headers:G,withCredentials:Z="same-origin",fetchOptions:ce}=ef(m),pe=t||fetch;H=H?(H+"").toLowerCase():"text";let he=Ax([B,_&&_.toAbortSignal()],P),_e=null;const ke=he&&he.unsubscribe&&(()=>{he.unsubscribe()});let le;try{if(k&&l&&b!=="get"&&b!=="head"&&(le=await x(G,S))!==0){let M=new r(y,{method:"POST",body:S,duplex:"half"}),X;if(A.isFormData(S)&&(X=M.headers.get("content-type"))&&G.setContentType(X),M.body){const[ye,re]=Vc(le,Va(qc(k)));S=tf(M.body,af,ye,re)}}A.isString(Z)||(Z=Z?"include":"omit");const ae=s&&"credentials"in r.prototype,j={...ce,signal:he,method:b.toUpperCase(),headers:G.normalize().toJSON(),body:S,duplex:"half",credentials:ae?Z:void 0};_e=s&&new r(y,j);let Ne=await(s?pe(_e,ce):pe(y,j));const At=u&&(H==="stream"||H==="response");if(u&&(U||At&&ke)){const M={};["status","statusText","headers"].forEach(Ce=>{M[Ce]=Ne[Ce]});const X=A.toFiniteNumber(Ne.headers.get("content-length")),[ye,re]=U&&Vc(X,Va(qc(U),!0))||[];Ne=new a(tf(Ne.body,af,ye,()=>{re&&re(),ke&&ke()}),M)}H=H||"text";let $=await p[A.findKey(p,H)||"text"](Ne,m);return!At&&ke&&ke(),await new Promise((M,X)=>{Ma(M,X,{data:$,headers:He.from(Ne.headers),status:Ne.status,statusText:Ne.statusText,config:m,request:_e})})}catch(ae){throw ke&&ke(),ae&&ae.name==="TypeError"&&/Load failed|fetch/i.test(ae.message)?Object.assign(new F("Network Error",F.ERR_NETWORK,m,_e,ae&&ae.response),{cause:ae.cause||ae}):F.from(ae,ae&&ae.code,m,_e,ae&&ae.response)}}},Nx=new Map,of=e=>{let t=e&&e.env||{};const{fetch:r,Request:a,Response:n}=t,s=[a,n,r];let i=s.length,o=i,c,l,u=Nx;for(;o--;)c=s[o],l=u.get(c),l===void 0&&u.set(c,l=o?new Map:kx(t)),u=l;return l};of();const bu={http:Ex,xhr:wx,fetch:{get:of}};A.forEach(bu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const cf=e=>`- ${e}`,Lx=e=>A.isFunction(e)||e===null||e===!1;function Ux(e,t){e=A.isArray(e)?e:[e];const{length:r}=e;let a,n;const s={};for(let i=0;i<r;i++){a=e[i];let o;if(n=a,!Lx(a)&&(n=bu[(o=String(a)).toLowerCase()],n===void 0))throw new F(`Unknown adapter '${o}'`);if(n&&(A.isFunction(n)||(n=n.get(t))))break;s[o||"#"+i]=n}if(!n){const i=Object.entries(s).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=r?i.length>1?`since :
|
|
20
|
+
`+i.map(cf).join(`
|
|
21
|
+
`):" "+cf(i[0]):"as no adapter specified";throw new F("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n}var lf={getAdapter:Ux,adapters:bu};function Eu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xa(null,e)}function uf(e){return Eu(e),e.headers=He.from(e.headers),e.data=eu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),lf.getAdapter(e.adapter||or.adapter,e)(e).then(function(a){return Eu(e),a.data=eu.call(e,e.transformResponse,a),a.headers=He.from(a.headers),a},function(a){return _d(a)||(Eu(e),a&&a.response&&(a.response.data=eu.call(e,e.transformResponse,a.response),a.response.headers=He.from(a.response.headers))),Promise.reject(a)})}const Kc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Kc[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const pf={};Kc.transitional=function(t,r,a){function n(s,i){return"[Axios v"+Mc+"] Transitional option '"+s+"'"+i+(a?". "+a:"")}return(s,i,o)=>{if(t===!1)throw new F(n(i," has been removed"+(r?" in "+r:"")),F.ERR_DEPRECATED);return r&&!pf[i]&&(pf[i]=!0,console.warn(n(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,i,o):!0}},Kc.spelling=function(t){return(r,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function Dx(e,t,r){if(typeof e!="object")throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let n=a.length;for(;n-- >0;){const s=a[n],i=t[s];if(i){const o=e[s],c=o===void 0||i(o,s,e);if(c!==!0)throw new F("option "+s+" must be "+c,F.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new F("Unknown option "+s,F.ERR_BAD_OPTION)}}var zc={assertOptions:Dx,validators:Kc};const Rt=zc.validators;let Sa=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Sd,response:new Sd}}async request(t,r){try{return await this._request(t,r)}catch(a){if(a instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const s=(()=>{if(!n.stack)return"";const i=n.stack.indexOf(`
|
|
22
|
+
`);return i===-1?"":n.stack.slice(i+1)})();try{if(!a.stack)a.stack=s;else if(s){const i=s.indexOf(`
|
|
23
|
+
`),o=i===-1?-1:s.indexOf(`
|
|
24
|
+
`,i+1),c=o===-1?"":s.slice(o+1);String(a.stack).endsWith(c)||(a.stack+=`
|
|
25
|
+
`+s)}}catch{}}throw a}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ca(this.defaults,r);const{transitional:a,paramsSerializer:n,headers:s}=r;a!==void 0&&zc.assertOptions(a,{silentJSONParsing:Rt.transitional(Rt.boolean),forcedJSONParsing:Rt.transitional(Rt.boolean),clarifyTimeoutError:Rt.transitional(Rt.boolean),legacyInterceptorReqResOrdering:Rt.transitional(Rt.boolean)},!1),n!=null&&(A.isFunction(n)?r.paramsSerializer={serialize:n}:zc.assertOptions(n,{encode:Rt.function,serialize:Rt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),zc.assertOptions(r,{baseUrl:Rt.spelling("baseURL"),withXsrfToken:Rt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=s&&A.merge(s.common,s[r.method]);s&&A.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),r.headers=He.concat(i,s);const o=[];let c=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(r)===!1)return;c=c&&y.synchronous;const b=r.transitional||Uc;b&&b.legacyInterceptorReqResOrdering?o.unshift(y.fulfilled,y.rejected):o.push(y.fulfilled,y.rejected)});const l=[];this.interceptors.response.forEach(function(y){l.push(y.fulfilled,y.rejected)});let u,p=0,f;if(!c){const m=[uf.bind(this),void 0];for(m.unshift(...o),m.push(...l),f=m.length,u=Promise.resolve(r);p<f;)u=u.then(m[p++],m[p++]);return u}f=o.length;let x=r;for(;p<f;){const m=o[p++],y=o[p++];try{x=m(x)}catch(b){y.call(this,b);break}}try{u=uf.call(this,x)}catch(m){return Promise.reject(m)}for(p=0,f=l.length;p<f;)u=u.then(l[p++],l[p++]);return u}getUri(t){t=Ca(this.defaults,t);const r=tu(t.baseURL,t.url,t.allowAbsoluteUrls);return Wl(r,t.params,t.paramsSerializer)}};A.forEach(["delete","get","head","options"],function(t){Sa.prototype[t]=function(r,a){return this.request(Ca(a||{},{method:t,url:r,data:(a||{}).data}))}}),A.forEach(["post","put","patch"],function(t){function r(a){return function(s,i,o){return this.request(Ca(o||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Sa.prototype[t]=r(),Sa.prototype[t+"Form"]=r(!0)});let Px=class rm{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const a=this;this.promise.then(n=>{if(!a._listeners)return;let s=a._listeners.length;for(;s-- >0;)a._listeners[s](n);a._listeners=null}),this.promise.then=n=>{let s;const i=new Promise(o=>{a.subscribe(o),s=o}).then(n);return i.cancel=function(){a.unsubscribe(s)},i},t(function(s,i,o){a.reason||(a.reason=new xa(s,i,o),r(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=a=>{t.abort(a)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new rm(function(n){t=n}),cancel:t}}};function Ox(e){return function(r){return e.apply(null,r)}}function Fx(e){return A.isObject(e)&&e.isAxiosError===!0}const Cu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Cu).forEach(([e,t])=>{Cu[t]=e});function df(e){const t=new Sa(e),r=Ep(Sa.prototype.request,t);return A.extend(r,Sa.prototype,t,{allOwnKeys:!0}),A.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return df(Ca(e,n))},r}const Fe=df(or);Fe.Axios=Sa,Fe.CanceledError=xa,Fe.CancelToken=Px,Fe.isCancel=_d,Fe.VERSION=Mc,Fe.toFormData=Lc,Fe.AxiosError=F,Fe.Cancel=Fe.CanceledError,Fe.all=function(t){return Promise.all(t)},Fe.spread=Ox,Fe.isAxiosError=Fx,Fe.mergeConfig=Ca,Fe.AxiosHeaders=He,Fe.formToJSON=e=>Ad(A.isHTMLForm(e)?new FormData(e):e),Fe.getAdapter=lf.getAdapter,Fe.HttpStatusCode=Cu,Fe.default=Fe;var be=Fe;const{Axios:nS,AxiosError:iS,CanceledError:sS,isCancel:oS,CancelToken:cS,VERSION:lS,all:uS,Cancel:pS,isAxiosError:tt,spread:dS,toFormData:fS,AxiosHeaders:mS,HttpStatusCode:hS,formToJSON:vS,getAdapter:gS,mergeConfig:xS}=be,at="https://api.circle.com".replace(/\/+$/,"");let Mx=class extends Error{constructor(t,r){super(r),this.field=t,this.name="RequiredError"}};const rt={},nt="https://example.com",qt=function(e,t,r){if(r==null)throw new Mx(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},ht=async function(e,t){if(t&&t.accessToken){const r=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+r}};function Su(e,t,r=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(a=>Su(e,a,r)):Object.keys(t).forEach(a=>Su(e,t[a],`${r}${r!==""?".":""}${a}`)):e.has(r)?e.append(r,t):e.set(r,t))}const it=function(e,...t){const r=new URLSearchParams(e.search);Su(r,t),e.search=r.toString()},Ta=function(e,t,r){const a=typeof e!="string";return(a&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):a)?JSON.stringify(e!==void 0?e:{}):e||""},st=function(e){return e.pathname+e.search+e.hash},ot=function(e,t,r,a){return(n=t,s=r)=>{const i={...e.options,url:(a?.basePath||n.defaults.baseURL||s)+e.url};return n.request(i)}},Vx=function(e){return{getEntityConfig:async(t={})=>{const r="/v1/w3s/config/entity",a=new URL(r,nt);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},i={},o={};await ht(i,e),it(a,o);let c=n&&n.headers?n.headers:{};return s.headers={...i,...c,...t.headers},{url:st(a),options:s}},getPublicKey:async(t={})=>{const r="/v1/w3s/config/entity/publicKey",a=new URL(r,nt);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},i={},o={};await ht(i,e),it(a,o);let c=n&&n.headers?n.headers:{};return s.headers={...i,...c,...t.headers},{url:st(a),options:s}}}},qx=function(e){const t=Vx(e);return{async getEntityConfig(r){const a=await t.getEntityConfig(r),n=e?.serverIndex??0,s=rt["DeveloperAccountApi.getEntityConfig"]?.[n]?.url;return(i,o)=>ot(a,be,at,e)(i,s||o)},async getPublicKey(r){const a=await t.getPublicKey(r),n=e?.serverIndex??0,s=rt["DeveloperAccountApi.getPublicKey"]?.[n]?.url;return(i,o)=>ot(a,be,at,e)(i,s||o)}}},jx=function(e,t,r){const a=qx(e);return{getEntityConfig(n){return a.getEntityConfig(n).then(s=>s(r,t))},getPublicKey(n){return a.getPublicKey(n).then(s=>s(r,t))}}},Kx=function(e){return{requestTestnetTokens:async(t,r,a={})=>{const n="/v1/faucet/drips",s=new URL(n,nt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...a},c={},l={};await ht(c,e),t!=null&&(c["X-Request-Id"]=String(t)),c["Content-Type"]="application/json",it(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},o.data=Ta(r,o,e),{url:st(s),options:o}}}},zx=function(e){const t=Kx(e);return{async requestTestnetTokens(r,a,n){const s=await t.requestTestnetTokens(r,a,n),i=e?.serverIndex??0,o=rt["FaucetApi.requestTestnetTokens"]?.[i]?.url;return(c,l)=>ot(s,be,at,e)(c,o||l)}}},Hx=function(e,t,r){const a=zx(e);return{requestTestnetTokens(n,s,i){return a.requestTestnetTokens(n,s,i).then(o=>o(r,t))}}},$x=function(e){return{ping:async(t={})=>{const r="/ping",a=new URL(r,nt);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},i={};it(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...i,...o,...t.headers},{url:st(a),options:s}}}},Gx=function(e){const t=$x(e);return{async ping(r){const a=await t.ping(r),n=e?.serverIndex??0,s=rt["HealthApi.ping"]?.[n]?.url;return(i,o)=>ot(a,be,at,e)(i,s||o)}}},Qx=function(e,t,r){const a=Gx(e);return{ping(n){return a.ping(n).then(s=>s(r,t))}}},Wx=function(e){return{createMonitoredTokens:async(t,r={})=>{qt("createMonitoredTokens","createMonitoredTokensRequest",t);const a="/v1/w3s/config/entity/monitoredTokens",n=new URL(a,nt);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...r},o={},c={};await ht(o,e),o["Content-Type"]="application/json",it(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...r.headers},i.data=Ta(t,i,e),{url:st(n),options:i}},deleteMonitoredTokens:async(t,r={})=>{qt("deleteMonitoredTokens","deleteMonitoredTokensRequest",t);const a="/v1/w3s/config/entity/monitoredTokens/delete",n=new URL(a,nt);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...r},o={},c={};await ht(o,e),o["Content-Type"]="application/json",it(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...r.headers},i.data=Ta(t,i,e),{url:st(n),options:i}},listMonitoredTokens:async(t,r,a,n,s,i,o,c,l={})=>{const u="/v1/w3s/config/entity/monitoredTokens",p=new URL(u,nt);let f;e&&(f=e.baseOptions);const x={method:"GET",...f,...l},m={},y={};await ht(m,e),t!==void 0&&(y.blockchain=t),r!==void 0&&(y.tokenAddress=r),a!==void 0&&(y.symbol=a),n!==void 0&&(y.from=n instanceof Date?n.toISOString():n),s!==void 0&&(y.to=s instanceof Date?s.toISOString():s),i!==void 0&&(y.pageBefore=i),o!==void 0&&(y.pageAfter=o),c!==void 0&&(y.pageSize=c),it(p,y);let b=f&&f.headers?f.headers:{};return x.headers={...m,...b,...l.headers},{url:st(p),options:x}},updateMonitoredTokens:async(t,r={})=>{qt("updateMonitoredTokens","updateMonitoredTokensRequest",t);const a="/v1/w3s/config/entity/monitoredTokens",n=new URL(a,nt);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...r},o={},c={};await ht(o,e),o["Content-Type"]="application/json",it(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...r.headers},i.data=Ta(t,i,e),{url:st(n),options:i}},updateMonitoredTokensScope:async(t,r={})=>{qt("updateMonitoredTokensScope","updateMonitoredTokensScopeRequest",t);const a="/v1/w3s/config/entity/monitoredTokens/scope",n=new URL(a,nt);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...r},o={},c={};await ht(o,e),o["Content-Type"]="application/json",it(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...r.headers},i.data=Ta(t,i,e),{url:st(n),options:i}}}},Yx=function(e){const t=Wx(e);return{async createMonitoredTokens(r,a){const n=await t.createMonitoredTokens(r,a),s=e?.serverIndex??0,i=rt["MonitorTokensApi.createMonitoredTokens"]?.[s]?.url;return(o,c)=>ot(n,be,at,e)(o,i||c)},async deleteMonitoredTokens(r,a){const n=await t.deleteMonitoredTokens(r,a),s=e?.serverIndex??0,i=rt["MonitorTokensApi.deleteMonitoredTokens"]?.[s]?.url;return(o,c)=>ot(n,be,at,e)(o,i||c)},async listMonitoredTokens(r,a,n,s,i,o,c,l,u){const p=await t.listMonitoredTokens(r,a,n,s,i,o,c,l,u),f=e?.serverIndex??0,x=rt["MonitorTokensApi.listMonitoredTokens"]?.[f]?.url;return(m,y)=>ot(p,be,at,e)(m,x||y)},async updateMonitoredTokens(r,a){const n=await t.updateMonitoredTokens(r,a),s=e?.serverIndex??0,i=rt["MonitorTokensApi.updateMonitoredTokens"]?.[s]?.url;return(o,c)=>ot(n,be,at,e)(o,i||c)},async updateMonitoredTokensScope(r,a){const n=await t.updateMonitoredTokensScope(r,a),s=e?.serverIndex??0,i=rt["MonitorTokensApi.updateMonitoredTokensScope"]?.[s]?.url;return(o,c)=>ot(n,be,at,e)(o,i||c)}}},Xx=function(e,t,r){const a=Yx(e);return{createMonitoredTokens(n,s){return a.createMonitoredTokens(n,s).then(i=>i(r,t))},deleteMonitoredTokens(n,s){return a.deleteMonitoredTokens(n,s).then(i=>i(r,t))},listMonitoredTokens(n,s,i,o,c,l,u,p,f){return a.listMonitoredTokens(n,s,i,o,c,l,u,p,f).then(x=>x(r,t))},updateMonitoredTokens(n,s){return a.updateMonitoredTokens(n,s).then(i=>i(r,t))},updateMonitoredTokensScope(n,s){return a.updateMonitoredTokensScope(n,s).then(i=>i(r,t))}}},Jx=function(e){return{createSubscription:async(t,r,a={})=>{qt("createSubscription","createSubscriptionRequest",t);const n="/v2/notifications/subscriptions",s=new URL(n,nt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...a},c={},l={};await ht(c,e),r!=null&&(c["X-Request-Id"]=String(r)),c["Content-Type"]="application/json",it(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},o.data=Ta(t,o,e),{url:st(s),options:o}},deleteSubscription:async(t,r,a={})=>{qt("deleteSubscription","id",t);const n="/v2/notifications/subscriptions/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,nt);let i;e&&(i=e.baseOptions);const o={method:"DELETE",...i,...a},c={},l={};await ht(c,e),r!=null&&(c["X-Request-Id"]=String(r)),it(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},{url:st(s),options:o}},getNotificationSignature:async(t,r,a={})=>{qt("getNotificationSignature","id",t);const n="/v2/notifications/publicKey/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,nt);let i;e&&(i=e.baseOptions);const o={method:"GET",...i,...a},c={},l={};await ht(c,e),r!=null&&(c["X-Request-Id"]=String(r)),it(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},{url:st(s),options:o}},getSubscription:async(t,r,a={})=>{qt("getSubscription","id",t);const n="/v2/notifications/subscriptions/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,nt);let i;e&&(i=e.baseOptions);const o={method:"GET",...i,...a},c={},l={};await ht(c,e),r!=null&&(c["X-Request-Id"]=String(r)),it(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},{url:st(s),options:o}},getSubscriptions:async(t={})=>{const r="/v2/notifications/subscriptions",a=new URL(r,nt);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},i={},o={};await ht(i,e),it(a,o);let c=n&&n.headers?n.headers:{};return s.headers={...i,...c,...t.headers},{url:st(a),options:s}},updateSubscription:async(t,r,a,n={})=>{qt("updateSubscription","id",t),qt("updateSubscription","updateSubscriptionRequest",r);const s="/v2/notifications/subscriptions/{id}".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,nt);let o;e&&(o=e.baseOptions);const c={method:"PATCH",...o,...n},l={},u={};await ht(l,e),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",it(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=Ta(r,c,e),{url:st(i),options:c}}}},Zx=function(e){const t=Jx(e);return{async createSubscription(r,a,n){const s=await t.createSubscription(r,a,n),i=e?.serverIndex??0,o=rt["WebhookSubscriptionsApi.createSubscription"]?.[i]?.url;return(c,l)=>ot(s,be,at,e)(c,o||l)},async deleteSubscription(r,a,n){const s=await t.deleteSubscription(r,a,n),i=e?.serverIndex??0,o=rt["WebhookSubscriptionsApi.deleteSubscription"]?.[i]?.url;return(c,l)=>ot(s,be,at,e)(c,o||l)},async getNotificationSignature(r,a,n){const s=await t.getNotificationSignature(r,a,n),i=e?.serverIndex??0,o=rt["WebhookSubscriptionsApi.getNotificationSignature"]?.[i]?.url;return(c,l)=>ot(s,be,at,e)(c,o||l)},async getSubscription(r,a,n){const s=await t.getSubscription(r,a,n),i=e?.serverIndex??0,o=rt["WebhookSubscriptionsApi.getSubscription"]?.[i]?.url;return(c,l)=>ot(s,be,at,e)(c,o||l)},async getSubscriptions(r){const a=await t.getSubscriptions(r),n=e?.serverIndex??0,s=rt["WebhookSubscriptionsApi.getSubscriptions"]?.[n]?.url;return(i,o)=>ot(a,be,at,e)(i,s||o)},async updateSubscription(r,a,n,s){const i=await t.updateSubscription(r,a,n,s),o=e?.serverIndex??0,c=rt["WebhookSubscriptionsApi.updateSubscription"]?.[o]?.url;return(l,u)=>ot(i,be,at,e)(l,c||u)}}},ey=function(e,t,r){const a=Zx(e);return{createSubscription(n,s,i){return a.createSubscription(n,s,i).then(o=>o(r,t))},deleteSubscription(n,s,i){return a.deleteSubscription(n,s,i).then(o=>o(r,t))},getNotificationSignature(n,s,i){return a.getNotificationSignature(n,s,i).then(o=>o(r,t))},getSubscription(n,s,i){return a.getSubscription(n,s,i).then(o=>o(r,t))},getSubscriptions(n){return a.getSubscriptions(n).then(s=>s(r,t))},updateSubscription(n,s,i,o){return a.updateSubscription(n,s,i,o).then(c=>c(r,t))}}};var ty=Object.defineProperty,ay=(e,t,r)=>t in e?ty(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ra=(e,t,r)=>ay(e,typeof t!="symbol"?t+"":t,r);let ry=class{constructor(t={}){ra(this,"apiKey"),ra(this,"username"),ra(this,"password"),ra(this,"accessToken"),ra(this,"basePath"),ra(this,"serverIndex"),ra(this,"baseOptions"),ra(this,"formDataCtor"),this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}isJsonMime(t){const r=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(r.test(t)||t.toLowerCase()==="application/json-patch+json")}};var ny=Object.defineProperty,iy=(e,t,r)=>t in e?ny(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mr=(e,t,r)=>iy(e,typeof t!="symbol"?t+"":t,r);class sy{constructor(t,r,a={}){mr(this,"DeveloperAccount"),mr(this,"Faucet"),mr(this,"Health"),mr(this,"MonitorTokens"),mr(this,"WebhookSubscriptions");const n=new ry({basePath:t,baseOptions:{headers:{...a,Authorization:`Bearer ${r.apiKey}`,"Content-Type":"application/json","User-Agent":`${r.userAgent?r.userAgent+" / ":""}CircleNodeJS / Configurations / ${r.version}`}}});this.DeveloperAccount=jx(n),this.Faucet=Hx(n),this.Health=Qx(n),this.MonitorTokens=Xx(n),this.WebhookSubscriptions=ey(n)}}const vt="https://api.circle.com".replace(/\/+$/,"");class oy extends Error{constructor(t,r){super(r),this.field=t,this.name="RequiredError"}}const gt={},xt="https://example.com",It=function(e,t,r){if(r==null)throw new oy(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},yt=async function(e,t){if(t&&t.accessToken){const r=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+r}};function Tu(e,t,r=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(a=>Tu(e,a,r)):Object.keys(t).forEach(a=>Tu(e,t[a],`${r}${r!==""?".":""}${a}`)):e.has(r)?e.append(r,t):e.set(r,t))}const bt=function(e,...t){const r=new URLSearchParams(e.search);Tu(r,t),e.search=r.toString()},Yt=function(e,t,r){const a=typeof e!="string";return(a&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):a)?JSON.stringify(e!==void 0?e:{}):e||""},Et=function(e){return e.pathname+e.search+e.hash},Ct=function(e,t,r,a){return(n=t,s=r)=>{const i={...e.options,url:(a?.basePath||n.defaults.baseURL||s)+e.url};return n.request(i)}},cy=function(e){return{deployContract:async(t,r,a={})=>{It("deployContract","contractDeploymentRequest",t);const n="/v1/w3s/contracts/deploy",s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...a},c={},l={};await yt(c,e),r!=null&&(c["X-Request-Id"]=String(r)),c["Content-Type"]="application/json",bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},o.data=Yt(t,o,e),{url:Et(s),options:o}},estimateContractDeploy:async(t,r,a={})=>{It("estimateContractDeploy","contractDeploymentEstimateFeeRequest",t);const n="/v1/w3s/contracts/deploy/estimateFee",s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...a},c={},l={};await yt(c,e),r!=null&&(c["X-Request-Id"]=String(r)),c["Content-Type"]="application/json",bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},o.data=Yt(t,o,e),{url:Et(s),options:o}},importContract:async(t,r,a={})=>{It("importContract","importContractRequest",t);const n="/v1/w3s/contracts/import",s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...a},c={},l={};await yt(c,e),r!=null&&(c["X-Request-Id"]=String(r)),c["Content-Type"]="application/json",bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},o.data=Yt(t,o,e),{url:Et(s),options:o}}}},ly=function(e){const t=cy(e);return{async deployContract(r,a,n){const s=await t.deployContract(r,a,n),i=e?.serverIndex??0,o=gt["DeployImportApi.deployContract"]?.[i]?.url;return(c,l)=>Ct(s,be,vt,e)(c,o||l)},async estimateContractDeploy(r,a,n){const s=await t.estimateContractDeploy(r,a,n),i=e?.serverIndex??0,o=gt["DeployImportApi.estimateContractDeploy"]?.[i]?.url;return(c,l)=>Ct(s,be,vt,e)(c,o||l)},async importContract(r,a,n){const s=await t.importContract(r,a,n),i=e?.serverIndex??0,o=gt["DeployImportApi.importContract"]?.[i]?.url;return(c,l)=>Ct(s,be,vt,e)(c,o||l)}}},uy=function(e,t,r){const a=ly(e);return{deployContract(n,s,i){return a.deployContract(n,s,i).then(o=>o(r,t))},estimateContractDeploy(n,s,i){return a.estimateContractDeploy(n,s,i).then(o=>o(r,t))},importContract(n,s,i){return a.importContract(n,s,i).then(o=>o(r,t))}}},py=function(e){return{createEventMonitor:async(t,r,a={})=>{const n="/v1/w3s/contracts/monitors",s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...a},c={},l={};await yt(c,e),t!=null&&(c["X-Request-Id"]=String(t)),c["Content-Type"]="application/json",bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},o.data=Yt(r,o,e),{url:Et(s),options:o}},deleteEventMonitor:async(t,r,a={})=>{It("deleteEventMonitor","id",t);const n="/v1/w3s/contracts/monitors/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"DELETE",...i,...a},c={},l={};await yt(c,e),r!=null&&(c["X-Request-Id"]=String(r)),bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},{url:Et(s),options:o}},getEventMonitors:async(t,r,a,n,s,i,o,c,l,u={})=>{const p="/v1/w3s/contracts/monitors",f=new URL(p,xt);let x;e&&(x=e.baseOptions);const m={method:"GET",...x,...u},y={},b={};await yt(y,e),t!==void 0&&(b.contractAddress=t),r!==void 0&&(b.blockchain=r),a!==void 0&&(b.eventSignature=a),n!==void 0&&(b.from=n instanceof Date?n.toISOString():n),s!==void 0&&(b.to=s instanceof Date?s.toISOString():s),i!==void 0&&(b.pageBefore=i),o!==void 0&&(b.pageAfter=o),c!==void 0&&(b.pageSize=c),l!=null&&(y["X-Request-Id"]=String(l)),bt(f,b);let S=x&&x.headers?x.headers:{};return m.headers={...y,...S,...u.headers},{url:Et(f),options:m}},listEventLogs:async(t,r,a,n,s,i,o,c,l={})=>{const u="/v1/w3s/contracts/events",p=new URL(u,xt);let f;e&&(f=e.baseOptions);const x={method:"GET",...f,...l},m={},y={};await yt(m,e),t!==void 0&&(y.contractAddress=t),r!==void 0&&(y.blockchain=r),a!==void 0&&(y.from=a instanceof Date?a.toISOString():a),n!==void 0&&(y.to=n instanceof Date?n.toISOString():n),s!==void 0&&(y.pageBefore=s),i!==void 0&&(y.pageAfter=i),o!==void 0&&(y.pageSize=o),c!=null&&(m["X-Request-Id"]=String(c)),bt(p,y);let b=f&&f.headers?f.headers:{};return x.headers={...m,...b,...l.headers},{url:Et(p),options:x}},updateEventMonitor:async(t,r,a,n={})=>{It("updateEventMonitor","id",t);const s="/v1/w3s/contracts/monitors/{id}".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,xt);let o;e&&(o=e.baseOptions);const c={method:"PUT",...o,...n},l={},u={};await yt(l,e),r!=null&&(l["X-Request-Id"]=String(r)),l["Content-Type"]="application/json",bt(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=Yt(a,c,e),{url:Et(i),options:c}}}},dy=function(e){const t=py(e);return{async createEventMonitor(r,a,n){const s=await t.createEventMonitor(r,a,n),i=e?.serverIndex??0,o=gt["EventMonitorsApi.createEventMonitor"]?.[i]?.url;return(c,l)=>Ct(s,be,vt,e)(c,o||l)},async deleteEventMonitor(r,a,n){const s=await t.deleteEventMonitor(r,a,n),i=e?.serverIndex??0,o=gt["EventMonitorsApi.deleteEventMonitor"]?.[i]?.url;return(c,l)=>Ct(s,be,vt,e)(c,o||l)},async getEventMonitors(r,a,n,s,i,o,c,l,u,p){const f=await t.getEventMonitors(r,a,n,s,i,o,c,l,u,p),x=e?.serverIndex??0,m=gt["EventMonitorsApi.getEventMonitors"]?.[x]?.url;return(y,b)=>Ct(f,be,vt,e)(y,m||b)},async listEventLogs(r,a,n,s,i,o,c,l,u){const p=await t.listEventLogs(r,a,n,s,i,o,c,l,u),f=e?.serverIndex??0,x=gt["EventMonitorsApi.listEventLogs"]?.[f]?.url;return(m,y)=>Ct(p,be,vt,e)(m,x||y)},async updateEventMonitor(r,a,n,s){const i=await t.updateEventMonitor(r,a,n,s),o=e?.serverIndex??0,c=gt["EventMonitorsApi.updateEventMonitor"]?.[o]?.url;return(l,u)=>Ct(i,be,vt,e)(l,c||u)}}},fy=function(e,t,r){const a=dy(e);return{createEventMonitor(n,s,i){return a.createEventMonitor(n,s,i).then(o=>o(r,t))},deleteEventMonitor(n,s,i){return a.deleteEventMonitor(n,s,i).then(o=>o(r,t))},getEventMonitors(n,s,i,o,c,l,u,p,f,x){return a.getEventMonitors(n,s,i,o,c,l,u,p,f,x).then(m=>m(r,t))},listEventLogs(n,s,i,o,c,l,u,p,f){return a.listEventLogs(n,s,i,o,c,l,u,p,f).then(x=>x(r,t))},updateEventMonitor(n,s,i,o){return a.updateEventMonitor(n,s,i,o).then(c=>c(r,t))}}},my=function(e){return{queryContract:async(t,r,a={})=>{It("queryContract","readContractStateRequest",t);const n="/v1/w3s/contracts/query",s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...a},c={},l={};await yt(c,e),r!=null&&(c["X-Request-Id"]=String(r)),c["Content-Type"]="application/json",bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},o.data=Yt(t,o,e),{url:Et(s),options:o}}}},hy=function(e){const t=my(e);return{async queryContract(r,a,n){const s=await t.queryContract(r,a,n),i=e?.serverIndex??0,o=gt["InteractApi.queryContract"]?.[i]?.url;return(c,l)=>Ct(s,be,vt,e)(c,o||l)}}},vy=function(e,t,r){const a=hy(e);return{queryContract(n,s,i){return a.queryContract(n,s,i).then(o=>o(r,t))}}},gy=function(e){return{deployContractTemplate:async(t,r,a,n={})=>{It("deployContractTemplate","id",t),It("deployContractTemplate","templateContractDeploymentRequest",r);const s="/v1/w3s/templates/{id}/deploy".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,xt);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await yt(l,e),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",bt(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=Yt(r,c,e),{url:Et(i),options:c}},estimateContractTemplateDeploy:async(t,r,a,n={})=>{It("estimateContractTemplateDeploy","id",t),It("estimateContractTemplateDeploy","contractDeploymentEstimateRequest",r);const s="/v1/w3s/templates/{id}/deploy/estimateFee".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,xt);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await yt(l,e),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",bt(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=Yt(r,c,e),{url:Et(i),options:c}}}},xy=function(e){const t=gy(e);return{async deployContractTemplate(r,a,n,s){const i=await t.deployContractTemplate(r,a,n,s),o=e?.serverIndex??0,c=gt["TemplatesApi.deployContractTemplate"]?.[o]?.url;return(l,u)=>Ct(i,be,vt,e)(l,c||u)},async estimateContractTemplateDeploy(r,a,n,s){const i=await t.estimateContractTemplateDeploy(r,a,n,s),o=e?.serverIndex??0,c=gt["TemplatesApi.estimateContractTemplateDeploy"]?.[o]?.url;return(l,u)=>Ct(i,be,vt,e)(l,c||u)}}},yy=function(e,t,r){const a=xy(e);return{deployContractTemplate(n,s,i,o){return a.deployContractTemplate(n,s,i,o).then(c=>c(r,t))},estimateContractTemplateDeploy(n,s,i,o){return a.estimateContractTemplateDeploy(n,s,i,o).then(c=>c(r,t))}}},by=function(e){return{getContract:async(t,r,a={})=>{It("getContract","id",t);const n="/v1/w3s/contracts/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,xt);let i;e&&(i=e.baseOptions);const o={method:"GET",...i,...a},c={},l={};await yt(c,e),r!=null&&(c["X-Request-Id"]=String(r)),bt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},{url:Et(s),options:o}},listContracts:async(t,r,a,n,s,i,o,c,l,u,p,f={})=>{const x="/v1/w3s/contracts",m=new URL(x,xt);let y;e&&(y=e.baseOptions);const b={method:"GET",...y,...f},S={},B={};await yt(S,e),t!==void 0&&(B.blockchain=t),r!==void 0&&(B.contractInputType=r),a!==void 0&&(B.deployerAddress=a),n!==void 0&&(B.name=n),s!==void 0&&(B.status=s),i!==void 0&&(B.from=i instanceof Date?i.toISOString():i),o!==void 0&&(B.to=o instanceof Date?o.toISOString():o),c!==void 0&&(B.pageBefore=c),l!==void 0&&(B.pageAfter=l),u!==void 0&&(B.pageSize=u),p!=null&&(S["X-Request-Id"]=String(p)),bt(m,B);let _=y&&y.headers?y.headers:{};return b.headers={...S,..._,...f.headers},{url:Et(m),options:b}},updateContract:async(t,r,a,n={})=>{It("updateContract","id",t),It("updateContract","patchContractRequest",r);const s="/v1/w3s/contracts/{id}".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,xt);let o;e&&(o=e.baseOptions);const c={method:"PATCH",...o,...n},l={},u={};await yt(l,e),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",bt(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=Yt(r,c,e),{url:Et(i),options:c}}}},Ey=function(e){const t=by(e);return{async getContract(r,a,n){const s=await t.getContract(r,a,n),i=e?.serverIndex??0,o=gt["ViewUpdateApi.getContract"]?.[i]?.url;return(c,l)=>Ct(s,be,vt,e)(c,o||l)},async listContracts(r,a,n,s,i,o,c,l,u,p,f,x){const m=await t.listContracts(r,a,n,s,i,o,c,l,u,p,f,x),y=e?.serverIndex??0,b=gt["ViewUpdateApi.listContracts"]?.[y]?.url;return(S,B)=>Ct(m,be,vt,e)(S,b||B)},async updateContract(r,a,n,s){const i=await t.updateContract(r,a,n,s),o=e?.serverIndex??0,c=gt["ViewUpdateApi.updateContract"]?.[o]?.url;return(l,u)=>Ct(i,be,vt,e)(l,c||u)}}},Cy=function(e,t,r){const a=Ey(e);return{getContract(n,s,i){return a.getContract(n,s,i).then(o=>o(r,t))},listContracts(n,s,i,o,c,l,u,p,f,x,m,y){return a.listContracts(n,s,i,o,c,l,u,p,f,x,m,y).then(b=>b(r,t))},updateContract(n,s,i,o){return a.updateContract(n,s,i,o).then(c=>c(r,t))}}};var Sy=Object.defineProperty,Ty=(e,t,r)=>t in e?Sy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,na=(e,t,r)=>Ty(e,typeof t!="symbol"?t+"":t,r);class wy{constructor(t={}){na(this,"apiKey"),na(this,"username"),na(this,"password"),na(this,"accessToken"),na(this,"basePath"),na(this,"serverIndex"),na(this,"baseOptions"),na(this,"formDataCtor"),this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}isJsonMime(t){const r=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(r.test(t)||t.toLowerCase()==="application/json-patch+json")}}const Ay={Eth:"ETH",EthSepolia:"ETH-SEPOLIA",Matic:"MATIC",MaticAmoy:"MATIC-AMOY",Arb:"ARB",ArbSepolia:"ARB-SEPOLIA",Uni:"UNI",UniSepolia:"UNI-SEPOLIA",Base:"BASE",BaseSepolia:"BASE-SEPOLIA",Op:"OP",OpSepolia:"OP-SEPOLIA",Avax:"AVAX",AvaxFuji:"AVAX-FUJI",ArcTestnet:"ARC-TESTNET",Monad:"MONAD",MonadTestnet:"MONAD-TESTNET"};var Iy=Object.defineProperty,By=(e,t,r)=>t in e?Iy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hr=(e,t,r)=>By(e,typeof t!="symbol"?t+"":t,r);class _y{constructor(t,r,a={}){hr(this,"DeployImport"),hr(this,"EventMonitors"),hr(this,"Interact"),hr(this,"Templates"),hr(this,"ViewUpdate");const n=new wy({basePath:t,baseOptions:{headers:{...a,Authorization:`Bearer ${r.apiKey}`,"Content-Type":"application/json","User-Agent":`${r.userAgent?r.userAgent+" / ":""}CircleNodeJS / SmartContractPlatform / ${r.version}`}}});this.DeployImport=uy(n),this.EventMonitors=fy(n),this.Interact=vy(n),this.Templates=yy(n),this.ViewUpdate=Cy(n)}}var Ry=Object.defineProperty,ff=e=>{throw TypeError(e)},ky=(e,t,r)=>t in e?Ry(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qa=(e,t,r)=>ky(e,typeof t!="symbol"?t+"":t,r),mf=(e,t,r)=>t.has(e)||ff("Cannot "+r),Ny=(e,t,r)=>(mf(e,t,"read from private field"),r?r.call(e):t.get(e)),Ly=(e,t,r)=>t.has(e)?ff("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Uy=(e,t,r,a)=>(mf(e,t,"write to private field"),a?a.call(e,r):t.set(e,r),r),Hc;class vr extends Error{constructor({message:t,code:r,url:a,method:n,error:s}){super(t),qa(this,"code"),qa(this,"message"),qa(this,"url"),qa(this,"method"),Ly(this,Hc),this.message=t??new.target.message,this.code=r??new.target.code,this.url=a,this.method=n,Uy(this,Hc,s)}get error(){return Ny(this,Hc)}}Hc=new WeakMap,qa(vr,"code","UNKNOWN"),qa(vr,"message","HTTP Error");var Dy=Object.defineProperty,Py=(e,t,r)=>t in e?Dy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wu=(e,t,r)=>Py(e,typeof t!="symbol"?t+"":t,r);class E extends vr{constructor({message:t,code:r,url:a,method:n,status:s,error:i}){super({message:t,code:r,url:a,method:n,error:i}),wu(this,"status"),this.status=s}}wu(E,"code",-1),wu(E,"message","HTTP Response Error");var Oy=Object.defineProperty,Fy=(e,t,r)=>t in e?Oy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hf=(e,t,r)=>Fy(e,typeof t!="symbol"?t+"":t,r);class kt extends vr{}hf(kt,"code","UNKNOWN"),hf(kt,"message","Unknown HTTP request error");var My=Object.defineProperty,Vy=(e,t,r)=>t in e?My(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vf=(e,t,r)=>Vy(e,typeof t!="symbol"?t+"":t,r);class gr extends E{}vf(gr,"code",400),vf(gr,"message","Bad Request");var qy=Object.defineProperty,jy=(e,t,r)=>t in e?qy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gf=(e,t,r)=>jy(e,typeof t!="symbol"?t+"":t,r);class xr extends E{}gf(xr,"code",401),gf(xr,"message","Unauthorized");var Ky=Object.defineProperty,zy=(e,t,r)=>t in e?Ky(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xf=(e,t,r)=>zy(e,typeof t!="symbol"?t+"":t,r);class yr extends E{}xf(yr,"code",403),xf(yr,"message","Forbidden");var Hy=Object.defineProperty,$y=(e,t,r)=>t in e?Hy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yf=(e,t,r)=>$y(e,typeof t!="symbol"?t+"":t,r);class br extends E{}yf(br,"code",404),yf(br,"message","Not Found");var Gy=Object.defineProperty,Qy=(e,t,r)=>t in e?Gy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bf=(e,t,r)=>Qy(e,typeof t!="symbol"?t+"":t,r);class Er extends E{}bf(Er,"code",429),bf(Er,"message","Too Many Requests");var Wy=Object.defineProperty,Yy=(e,t,r)=>t in e?Wy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ef=(e,t,r)=>Yy(e,typeof t!="symbol"?t+"":t,r);class Cr extends E{}Ef(Cr,"code",500),Ef(Cr,"message","Internal Server Error");var Xy=Object.defineProperty,Jy=(e,t,r)=>t in e?Xy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Cf=(e,t,r)=>Jy(e,typeof t!="symbol"?t+"":t,r);class Sr extends E{}Cf(Sr,"code",501),Cf(Sr,"message","Not Implemented");var Zy=Object.defineProperty,e1=(e,t,r)=>t in e?Zy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sf=(e,t,r)=>e1(e,typeof t!="symbol"?t+"":t,r);class Tr extends E{}Sf(Tr,"code",502),Sf(Tr,"message","Bad Gateway");var t1=Object.defineProperty,a1=(e,t,r)=>t in e?t1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Tf=(e,t,r)=>a1(e,typeof t!="symbol"?t+"":t,r);class wr extends E{}Tf(wr,"code",503),Tf(wr,"message","Service Unavailable");var r1=Object.defineProperty,n1=(e,t,r)=>t in e?r1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wf=(e,t,r)=>n1(e,typeof t!="symbol"?t+"":t,r);class Ar extends E{}wf(Ar,"code",504),wf(Ar,"message","Gateway Timeout");var i1=Object.defineProperty,s1=(e,t,r)=>t in e?i1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Af=(e,t,r)=>s1(e,typeof t!="symbol"?t+"":t,r);class Ir extends kt{}Af(Ir,"code","ECONNREFUSED"),Af(Ir,"message","Connection refused");var o1=Object.defineProperty,c1=(e,t,r)=>t in e?o1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,If=(e,t,r)=>c1(e,typeof t!="symbol"?t+"":t,r);class Br extends kt{}If(Br,"code","ETIMEDOUT"),If(Br,"message","Connection timeout");var l1=Object.defineProperty,u1=(e,t,r)=>t in e?l1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bf=(e,t,r)=>u1(e,typeof t!="symbol"?t+"":t,r);class _r extends kt{}Bf(_r,"code","ECONNABORTED"),Bf(_r,"message","Request timeout");var p1=Object.defineProperty,d1=(e,t,r)=>t in e?p1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_f=(e,t,r)=>d1(e,typeof t!="symbol"?t+"":t,r);class Rr extends kt{}_f(Rr,"code","ENOTFOUND"),_f(Rr,"message","DNS lookup failed - host not found");var f1=Object.defineProperty,m1=(e,t,r)=>t in e?f1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rf=(e,t,r)=>m1(e,typeof t!="symbol"?t+"":t,r);class kr extends kt{}Rf(kr,"code","EAI_AGAIN"),Rf(kr,"message","DNS lookup failed - timeout");var h1=Object.defineProperty,v1=(e,t,r)=>t in e?h1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kf=(e,t,r)=>v1(e,typeof t!="symbol"?t+"":t,r);class Nr extends kt{}kf(Nr,"code","ENETUNREACH"),kf(Nr,"message","Network unreachable");var g1=Object.defineProperty,x1=(e,t,r)=>t in e?g1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Nf=(e,t,r)=>x1(e,typeof t!="symbol"?t+"":t,r);class Lr extends kt{}Nf(Lr,"code","ECONNRESET"),Nf(Lr,"message","Connection reset");var y1=Object.defineProperty,b1=(e,t,r)=>t in e?y1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lf=(e,t,r)=>b1(e,typeof t!="symbol"?t+"":t,r);class Ur extends kt{}Lf(Ur,"code","EHOSTUNREACH"),Lf(Ur,"message","Host unreachable");const Uf={undefined:kt,[Ir.code]:Ir,[Br.code]:Br,[_r.code]:_r,[Lr.code]:Lr,[Rr.code]:Rr,[kr.code]:kr,[Nr.code]:Nr,[Ur.code]:Ur};function E1(e){return Uf[e]??Uf.undefined}function C1(e){return S1({code:e.code,message:e.message,url:e.config.url,method:e.config.method.toUpperCase(),error:e})}function S1({code:e,message:t,url:r,method:a,error:n}){const s=E1(e);return new s({message:t,code:e,url:r,method:a,error:n})}var T1=Object.defineProperty,w1=(e,t,r)=>t in e?T1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d=(e,t,r)=>w1(e,typeof t!="symbol"?t+"":t,r);class Au extends E{}d(Au,"code",110700),d(Au,"message","The input amount is outside trade limit.");class Iu extends E{}d(Iu,"code",110701),d(Iu,"message","No quote is available with given input.");class Bu extends E{}d(Bu,"code",110702),d(Bu,"message","No supported configurations with given input.");class _u extends E{}d(_u,"code",110703),d(_u,"message","refId already exists, should be unique.");class Dr extends E{}d(Dr,"code",155101),d(Dr,"message","Existing user already created with the provided userId.");class Pr extends E{}d(Pr,"code",155102),d(Pr,"message","Cannot find the user id in the system.");class Or extends E{}d(Or,"code",155103),d(Or,"message","Cannot find the user token in the system.");class Fr extends E{}d(Fr,"code",155104),d(Fr,"message","The userToken had expired.");class Mr extends E{}d(Mr,"code",155105),d(Mr,"message","The userToken is invalid.");class Vr extends E{}d(Vr,"code",155106),d(Vr,"message","The user had already been initialized.");class qr extends E{}d(qr,"code",155107),d(qr,"message","User has previously set a PIN. Use PUT /user/pin to reset the PIN.");class jr extends E{}d(jr,"code",155108),d(jr,"message","User has previously set up their security questions, and they can't be reset.");class Kr extends E{}d(Kr,"code",155109),d(Kr,"message","The specified user has been disabled.");class zr extends E{}d(zr,"code",155110),d(zr,"message","User has not set up a PIN yet.");class Hr extends E{}d(Hr,"code",155111),d(Hr,"message","User hasn't set the security questions for PIN backup yet.");class $r extends E{}d($r,"code",155112),d($r,"message","The user has inputted the incorrect pin.");class Gr extends E{}d(Gr,"code",155113),d(Gr,"message","Provided device ID is not found in the system.");class Qr extends E{}d(Qr,"code",155114),d(Qr,"message","Provided app ID is not recognized in the system.");class Wr extends E{}d(Wr,"code",155115),d(Wr,"message","The user has inputted the incorrect security answers");class Yr extends E{}d(Yr,"code",155116),d(Yr,"message","The challenge ID doesn't exist in the system.");class Xr extends E{}d(Xr,"code",155117),d(Xr,"message","The content provided for approval is not correct.");class Jr extends E{}d(Jr,"code",155118),d(Jr,"message","Encryption key does not match with the user's token. Call POST /users/token to get the correct token encryption key pair.");class Zr extends E{}d(Zr,"code",155119),d(Zr,"message","The user's PIN input is locked. It will be unlocked after the cooldown period.");class en extends E{}d(en,"code",155120),d(en,"message","The user's security questions input is locked. It will be unlocked after the cooldown period.");class tn extends E{}d(tn,"code",155121),d(tn,"message","The provided challengeId has expired.");class an extends E{}d(an,"code",155122),d(an,"message","The provided challengeId is invalid");class rn extends E{}d(rn,"code",155123),d(rn,"message","No extra information provided when adding PIN-related requests.");class nn extends E{}d(nn,"code",155124),d(nn,"message","The extra information provided for PIN-related requests is invalid.");class sn extends E{}d(sn,"code",155130),d(sn,"message","User OTP token is expired.");class on extends E{}d(on,"code",155131),d(on,"message","User OTP token is invalid.");class cn extends E{}d(cn,"code",155132),d(cn,"message","User OTP value is not found.");class ln extends E{}d(ln,"code",155133),d(ln,"message","User OTP value is invalid.");class un extends E{}d(un,"code",155134),d(un,"message","User OTP value is not matched.");class pn extends E{}d(pn,"code",155135),d(pn,"message","User's email is invalid.");class dn extends E{}d(dn,"code",155136),d(dn,"message","User's email is not matched.");class fn extends E{}d(fn,"code",155137),d(fn,"message","User's device ID is invalid.");class mn extends E{}d(mn,"code",155138),d(mn,"message","Failed to send the email.");class hn extends E{}d(hn,"code",155139),d(hn,"message","The idToken / accessToken of SSO is expired.");class vn extends E{}d(vn,"code",155140),d(vn,"message","Failed to validate the idToken/ accessToken.");class gn extends E{}d(gn,"code",155141),d(gn,"message","The user has exceeded the max limit (5) of entering OTP at the moment.");class xn extends E{}d(xn,"code",155142),d(xn,"message","The max limit (5) of sending OTP has been exceeded at the moment.");class yn extends E{}d(yn,"code",155143),d(yn,"message","The device token is expired.");class bn extends E{}d(bn,"code",155144),d(bn,"message","The device token is invalid.");class En extends E{}d(En,"code",155145),d(En,"message","The device token is not found.");class Cn extends E{}d(Cn,"code",155146),d(Cn,"message","The one-time password token is invalid as the user has entered it incorrectly three times.");class Sn extends E{}d(Sn,"code",155150),d(Sn,"message","The SMTP server configuration is not found.");class Tn extends E{}d(Tn,"code",155151),d(Tn,"message","The SMTP server configuration is invalid.");class wn extends E{}d(wn,"code",155152),d(wn,"message","The SSO provider configuration is not found.");class An extends E{}d(An,"code",155154),d(An,"message","The OTP email template is invalid.");class In extends E{}d(In,"code",155155),d(In,"message","The OTP email template is not found.");class Bn extends E{}d(Bn,"code",155156),d(Bn,"message","Failed to update the email template.");class _n extends E{}d(_n,"code",155157),d(_n,"message","Failed to update the SMTP server configuration.");class Rn extends E{}d(Rn,"code",155158),d(Rn,"message","Failed to dial to the SMTP server.");class kn extends E{}d(kn,"code",155159),d(kn,"message","Failed to auth to the SMTP server.");class Nn extends E{}d(Nn,"code",155160),d(Nn,"message","Failed to send to the SMTP server.");class Ln extends E{}d(Ln,"code",155201),d(Ln,"message","Not enough funds to fulfill the withdraw request.");class Un extends E{}d(Un,"code",155202),d(Un,"message","Transaction nonce is inconsistent with sender's latest nonce.");class Dn extends E{}d(Dn,"code",155203),d(Dn,"message","User op nonce can not be larger than 0 when the smart contract wallet hasn't been deployed.");class Pn extends E{}d(Pn,"code",155204),d(Pn,"message","The total cost of executing transaction is higher than the balance of the user's account when estimating fee.");class On extends E{}d(On,"code",155205),d(On,"message","Failed to execute this request on EVM due to insufficient tokens when the estimating gas fee.");class Fn extends E{}d(Fn,"code",155206),d(Fn,"message","The sender address is not the token owner or the sender wasn't approved to commit this transaction.");class Mn extends E{}d(Mn,"code",155207),d(Mn,"message","Gas required exceeds the maximum allowance for the account. This is based on the gas fee estimate amount.");class Vn extends E{}d(Vn,"code",155208),d(Vn,"message","Estimate fee execution reverted.");class qn extends E{}d(qn,"code",155209),d(qn,"message","ABI function signature can't pack ABI parameter.");class jn extends E{}d(jn,"code",155210),d(jn,"message","Fails to perform transaction estimation.");class Kn extends E{}d(Kn,"code",155211),d(Kn,"message","MaxFee * GasLimit exceeded the maximum permitted transaction gas fee.");class zn extends E{}d(zn,"code",155215),d(zn,"message","Unsupported operation for transaction.");class Hn extends E{}d(Hn,"code",155218),d(Hn,"message","Invalid number of nft in transaction request.");class $n extends E{}d($n,"code",155219),d($n,"message","Invalid destination address.");class Gn extends E{}d(Gn,"code",155220),d(Gn,"message","Wallet and token's blockchain mismatch.");class Qn extends E{}d(Qn,"code",155221),d(Qn,"message","Invalid amounts in transfer request.");class Wn extends E{}d(Wn,"code",155222),d(Wn,"message","NFT metadata can not be found.");class Yn extends E{}d(Yn,"code",155223),d(Yn,"message","Unsupported userId for get transactions.");class Xn extends E{}d(Xn,"code",155224),d(Xn,"message","Failed to parse the provided amounts in request to decimals.");class Jn extends E{}d(Jn,"code",155225),d(Jn,"message","Wallet and request's blockchain mismatch.");class Zn extends E{}d(Zn,"code",155226),d(Zn,"message","Invalid source address.");class ei extends E{}d(ei,"code",155227),d(ei,"message","Invalid transaction type.");class ti extends E{}d(ti,"code",155228),d(ti,"message","Missing token ID.");class ai extends E{}d(ai,"code",155229),d(ai,"message","Transaction is not eligible for operation.");class ri extends E{}d(ri,"code",155230),d(ri,"message","No abi signature provided.");class ni extends E{}d(ni,"code",155231),d(ni,"message","Transaction needs feeLevel or gasLimit provided.");class ii extends E{}d(ii,"code",155232),d(ii,"message","SCA transaction needs feeLevel provided.");class si extends E{}d(si,"code",155233),d(si,"message","Provided gasLimit is too low to complete the requested transaction.");class oi extends E{}d(oi,"code",155234),d(oi,"message","Transaction can't have both feeLevel and fee parameters provided.");class ci extends E{}d(ci,"code",155235),d(ci,"message","EIP1559 chains need maxFee/priorityFee provided.");class li extends E{}d(li,"code",155236),d(li,"message","The provided fee in request is invalid.");class ui extends E{}d(ui,"code",155237),d(ui,"message","PriorityFee cannot be larger than maxFee in creating transaction request.");class pi extends E{}d(pi,"code",155238),d(pi,"message","Non-EIP1559 chains need gasPrice provided.");class di extends E{}d(di,"code",155239),d(di,"message","Invalid token address for transfer.");class fi extends E{}d(fi,"code",155240),d(fi,"message","Invalid token standard for transfer.");class mi extends E{}d(mi,"code",155241),d(mi,"message","Invalid token decimal for transfer.");class hi extends E{}d(hi,"code",155242),d(hi,"message","The lengths of amounts and nft tokens don't match.");class vi extends E{}d(vi,"code",155243),d(vi,"message","Missing bytecode for contract deployment.");class gi extends E{}d(gi,"code",155244),d(gi,"message","Cannot provide both WalletID and SourceAddress/Blockchain.");class xi extends E{}d(xi,"code",155245),d(xi,"message","Invalid amount in contract execution request.");class yi extends E{}d(yi,"code",155247),d(yi,"message","Cannot provide both CallData and AbiFunctionSignature/AbiParameters.");class bi extends E{}d(bi,"code",155254),d(bi,"message","Non-EIP1559 chains don't support maxFee/priorityFee.");class Ei extends E{}d(Ei,"code",155257),d(Ei,"message","the transfer amount is insufficient to make the destination account rent exempted or the balance of the source account is insufficient to remain rent exempted. The source address's remaining balance after transfer must be either zero or above the rent exemption threshold.");class Ci extends E{}d(Ci,"code",155258),d(Ci,"message","The asset amount owned by the wallet is insufficient for the transaction.");class Si extends E{}d(Si,"code",155262),d(Si,"message","Account is not found, could be caused by transacting from a Solana account with zero balance.");class Ti extends E{}d(Ti,"code",155264),d(Ti,"message","Wait for pending transactions to be included on the blockchain before submitting new requests. EVM chains restrict the number of queued transactions per sender address.");class wi extends E{}d(wi,"code",155501),d(wi,"message","Frozen wallets can not be updated or interact with, only query.");class Ai extends E{}d(Ai,"code",155502),d(Ai,"message","Max amount of wallets (tentative 1M) reached under 1 wallet set.");class Ii extends E{}d(Ii,"code",155503),d(Ii,"message","Metadata array length needs to match wallet count in create developer wallets request.");class Bi extends E{}d(Bi,"code",155504),d(Bi,"message","Metadata array length needs to match number of blockchains in create user wallets request.");class _i extends E{}d(_i,"code",155505),d(_i,"message","SCA wallet needs to wait for first-time transaction to be queued before processing more transactions.");class Ri extends E{}d(Ri,"code",155506),d(Ri,"message","SCA wallet config is invalid.");class ki extends E{}d(ki,"code",155507),d(ki,"message","SCA account is not supported on the given blockchain.");class Ni extends E{}d(Ni,"code",155508),d(Ni,"message","Can't create multiple user-controlled SCA wallets across multiple blockchains at a time.");class Li extends E{}d(Li,"code",155509),d(Li,"message","Entity needs to setup paymaster policy in developer console before sending transaction on mainnet");class Ui extends E{}d(Ui,"code",155510),d(Ui,"message","The operation is not supported on the blockchain you specify.");class Di extends E{}d(Di,"code",155511),d(Di,"message","Blockchain is not supported for wallet creation.");class Pi extends E{}d(Pi,"code",155512),d(Pi,"message","The owner of the SCA wallet can not be found.");class Oi extends E{}d(Oi,"code",155514),d(Oi,"message","circle_4337_v1 SCA wallet must be deployed before being upgraded.");class Fi extends E{}d(Fi,"code",155515),d(Fi,"message","The provided wallet account type is not supported by this API.");class Mi extends E{}d(Mi,"code",155516),d(Mi,"message","The source wallet was originally created on an SCA version that does not support wallet derivation.");class Vi extends E{}d(Vi,"code",155517),d(Vi,"message","The SCA wallet is not deployed onchain.");class qi extends E{}d(qi,"code",155601),d(qi,"message","Failed to retrieve wallet set which already exists.");class ji extends E{}d(ji,"code",155701),d(ji,"message","User canceled");class Ki extends E{}d(Ki,"code",155702),d(Ki,"message","<Launch UI failed reason>");class zi extends E{}d(zi,"code",155703),d(zi,"message","The code you entered is not the same as the first one.");class Hi extends E{}d(Hi,"code",155704),d(Hi,"message","Your PIN can't have repeating or consecutive numbers.");class $i extends E{}d($i,"code",155705),d($i,"message","Your hint can't be the same as the answer.");class Gi extends E{}d(Gi,"code",155706),d(Gi,"message","Network error");class Qi extends E{}d(Qi,"code",155707),d(Qi,"message","Failed to encrypt data");class Wi extends E{}d(Wi,"code",155708),d(Wi,"message",'"Biometrics instead of PIN" is disabled');class Yi extends E{}d(Yi,"code",155709),d(Yi,"message","The device system doesn't support biometrics");class Xi extends E{}d(Xi,"code",155710),d(Xi,"message","Failed to decrypt biometrics key");class Ji extends E{}d(Ji,"code",155711),d(Ji,"message","The user has not enabled biometrics yet");class Zi extends E{}d(Zi,"code",155712),d(Zi,"message","The user refused to enable biometrics");class es extends E{}d(es,"code",155713),d(es,"message","Too many requests. Try again later");class ts extends E{}d(ts,"code",155714),d(ts,"message","Too many requests. The biometrics sensor on the device is locked.");class as extends E{}d(as,"code",155715),d(as,"message","The user didn't enable biometrics");class rs extends E{}d(rs,"code",155716),d(rs,"message","Unexpected error for biometrics");class ns extends E{}d(ns,"code",155717),d(ns,"message","User secret is missing.");class is extends E{}d(is,"code",155718),d(is,"message","User secret is invalid.");class ss extends E{}d(ss,"code",155719),d(ss,"message","User token and SDK API execute function does not match.");class os extends E{}d(os,"code",155720),d(os,"message","Social login failed.");class cs extends E{}d(cs,"code",155721),d(cs,"message","Login info is missing.");class ls extends E{}d(ls,"code",155801),d(ls,"message","Transaction or rawTransaction is invalid.");class us extends E{}d(us,"code",155802),d(us,"message","Account not found.");class ps extends E{}d(ps,"code",155803),d(ps,"message","Not signer account.");class ds extends E{}d(ds,"code",155804),d(ds,"message","Transaction already signed.");class fs extends E{}d(fs,"code",155805),d(fs,"message","Transaction failed to deserialize.");class ms extends E{}d(ms,"code",155806),d(ms,"message","The transaction size exceeds blockchain limit.");class hs extends E{}d(hs,"code",155807),d(hs,"message","The chain ID is not supported for signing.");class vs extends E{}d(vs,"code",155808),d(vs,"message","The chain ID is missing in sign request.");class gs extends E{}d(gs,"code",156001),d(gs,"message","Cannot find target wallet in the system. Either the specified wallet doesn't exist or it's not accessible to the caller.");class xs extends E{}d(xs,"code",156002),d(xs,"message","Cannot find target token in the system. Either the specified token doesn't exist or it's not accessible to the caller.");class ys extends E{}d(ys,"code",156003),d(ys,"message","Cannot find target transaction in the system. Either the specified transaction doesn't exist or it's not accessible to the caller.");class bs extends E{}d(bs,"code",156004),d(bs,"message","Reusing an entity secret ciphertext is not allowed. Please re-encrypt the entity secret to generate new ciphertext.");class Es extends E{}d(Es,"code",156005),d(Es,"message","Cannot find target wallet set in the system. Either no such wallet set, or it's not accessible to the caller.");class Cs extends E{}d(Cs,"code",156006),d(Cs,"message","TEST_API key cannot be used with blockchain mainnets, or LIVE_API key cannot be used with blockchain testnets.");class Ss extends E{}d(Ss,"code",156007),d(Ss,"message","TEST_API key or LIVE_API key is not found for the request.");class Ts extends E{}d(Ts,"code",156008),d(Ts,"message","Cannot find target entity config in the system. Either no such entity config, or it's not accessible to the caller.");class ws extends E{}d(ws,"code",156009),d(ws,"message","Fail to parse id as UUID in url.");class As extends E{}d(As,"code",156010),d(As,"message","Cannot find the corresponding entity in the system.");class Is extends E{}d(Is,"code",156011),d(Is,"message","Cannot find target nftTokenId in the system.");class Bs extends E{}d(Bs,"code",156012),d(Bs,"message","Cannot find corresponding pagination cursor in the system.");class _s extends E{}d(_s,"code",156013),d(_s,"message","The provided entity secret is invalid.");class Rs extends E{}d(Rs,"code",156014),d(Rs,"message","Pagination params are invalid. Only UUID format is supported for pageBefore and pageAfter.");class ks extends E{}d(ks,"code",156015),d(ks,"message","The secret for this entity has already been set.");class Ns extends E{}d(Ns,"code",156016),d(Ns,"message","The entity secret has not been set yet. Please provide encrypted ciphertext in the console.");class Ls extends E{}d(Ls,"code",156017),d(Ls,"message","The specified blockchain parameters are incorrect.");class Us extends E{}d(Us,"code",156018),d(Us,"message","The uploaded recovery file is invalid.");class Ds extends E{}d(Ds,"code",156019),d(Ds,"message","Current entity secret is invalid. Please rotate the entity secret first.");class Ps extends E{}d(Ps,"code",156020),d(Ps,"message","Please use a new idempotency key.");class Os extends E{}d(Os,"code",156021),d(Os,"message","A new wallet set ID is required.");class Fs extends E{}d(Fs,"code",156023),d(Fs,"message","EncodedByHex is true in sign request, but the message is not hex encoded.");class Ms extends E{}d(Ms,"code",156024),d(Ms,"message","Data is not a valid JSON string in sign request.");class Vs extends E{}d(Vs,"code",156025),d(Vs,"message","Invalid message in request.");class qs extends E{}d(qs,"code",156026),d(qs,"message","Invalid typed data in request.");class js extends E{}d(js,"code",156027),d(js,"message","The specified blockchain is either not supported or deprecated.");class Ks extends E{}d(Ks,"code",156030),d(Ks,"message","Invalid unsigned delegate action in request.");class zs extends E{}d(zs,"code",156031),d(zs,"message","The specified token address is not supported.");class Hs extends E{}d(Hs,"code",156032),d(Hs,"message","The provided amount is invalid.");class $s extends E{}d($s,"code",175001),d($s,"message","contract not found");class Gs extends E{}d(Gs,"code",175002),d(Gs,"message","no ABI JSON for the target contract");class Qs extends E{}d(Qs,"code",175003),d(Qs,"message","constructor parameters length must match constructor signature");class Ws extends E{}d(Ws,"code",175004),d(Ws,"message","contract already exists");class Ys extends E{}d(Ys,"code",175005),d(Ys,"message","address is not a contract address");class Xs extends E{}d(Xs,"code",175006),d(Xs,"message","contract is archived");class Js extends E{}d(Js,"code",175007),d(Js,"message","invalid ABI JSON");class Zs extends E{}d(Zs,"code",175008),d(Zs,"message","multi-layered proxies are not supported");class eo extends E{}d(eo,"code",175009),d(eo,"message","contract deployment pending");class to extends E{}d(to,"code",175010),d(to,"message","ABI function not found");class ao extends E{}d(ao,"code",175011),d(ao,"message","empty update on a contract");class ro extends E{}d(ro,"code",175012),d(ro,"message","unable to query contract");class no extends E{}d(no,"code",175013),d(no,"message","ABI function is not supported");class io extends E{}d(io,"code",175201),d(io,"message","template not found");class so extends E{}d(so,"code",175202),d(so,"message","deploying this template is temporarily disabled");class oo extends E{}d(oo,"code",175203),d(oo,"message","invalid template deployment parameter");class co extends E{}d(co,"code",175204),d(co,"message","missing required template deployment parameter");class lo extends E{}d(lo,"code",175205),d(lo,"message","estimation is not supported");class uo extends E{}d(uo,"code",175301),d(uo,"message","event subscription not found");class po extends E{}d(po,"code",175302),d(po,"message","event subscription already exists");class fo extends E{}d(fo,"code",175303),d(fo,"message","the specified event signature does not exist");class mo extends E{}d(mo,"code",175401),d(mo,"message","failed to parse id as UUID in url");class ho extends E{}d(ho,"code",175402),d(ho,"message","the specified blockchain is either not supported or deprecated");class vo extends E{}d(vo,"code",175403),d(vo,"message","please use a new idempotency key");class go extends E{}d(go,"code",175404),d(go,"message","TEST_API key cannot be used with blockchain mainnets, or LIVE_API key cannot be used with blockchain testnets");class xo extends E{}d(xo,"code",175405),d(xo,"message","TEST_API key or LIVE_API key is not found for the request");class yo extends E{}d(yo,"code",175406),d(yo,"message","this feature is temporarily disabled");class bo extends E{}d(bo,"code",175407),d(bo,"message","the specified blockchain is currently unavailable");class Eo extends E{}d(Eo,"code",175408),d(Eo,"message","can not find corresponding pagination cursor in the system");class Co extends E{}d(Co,"code",175409),d(Co,"message","restricted entity cannot perform this operation");class So extends E{}d(So,"code",175410),d(So,"message","invalid address format");class To extends E{}d(To,"code",177001),d(To,"message","transaction nonce is inconsistent with sender's latest nonce");class wo extends E{}d(wo,"code",177002),d(wo,"message","user op nonce can not be larger than 0 when smart contract wallet hasn't been deployed");class Ao extends E{}d(Ao,"code",177003),d(Ao,"message","failed to execute this request on EVM due to insufficient token when estimating fee");class Io extends E{}d(Io,"code",177004),d(Io,"message","the total cost of executing transaction is higher than the balance of the user's account when estimating fee");class Bo extends E{}d(Bo,"code",177005),d(Bo,"message","the sender address is not token owner or approved when estimating token transfer");class _o extends E{}d(_o,"code",177006),d(_o,"message","gas required exceeds allowance when estimating fee");class Ro extends E{}d(Ro,"code",177007),d(Ro,"message","estimate fee execution reverted");class ko extends E{}d(ko,"code",177008),d(ko,"message","ABI function signature can't pack ABI parameter");class No extends E{}d(No,"code",177009),d(No,"message","fails to perform transaction estimation");class Lo extends E{}d(Lo,"code",177010),d(Lo,"message","MaxFee * GasLimit exceeds configurable max transaction fee (default is 1 native token)");class Uo extends E{}d(Uo,"code",177011),d(Uo,"message","transaction needs feeLevel or gasLimit provided");class Do extends E{}d(Do,"code",177012),d(Do,"message","SCA transaction needs feeLevel provided");class Po extends E{}d(Po,"code",177013),d(Po,"message","EIP1559 chains need maxFee/priorityFee provided");class Oo extends E{}d(Oo,"code",177014),d(Oo,"message","priorityFee cannot be larger than maxFee in creating transaction request");class Fo extends E{}d(Fo,"code",177015),d(Fo,"message","missing bytecode for contract deployment");class Mo extends E{}d(Mo,"code",177016),d(Mo,"message","cannot provide both WalletID and SourceAddress/Blockchain");class Vo extends E{}d(Vo,"code",177017),d(Vo,"message","invalid amount in contract execution request");class qo extends E{}d(qo,"code",177018),d(qo,"message","policy is not activated and cannot be used");class jo extends E{}d(jo,"code",177019),d(jo,"message","exceeded max daily transaction of the policy");class Ko extends E{}d(Ko,"code",177020),d(Ko,"message","exceeded max spend USD per transaction of the policy");class zo extends E{}d(zo,"code",177021),d(zo,"message","exceeded max spend USD daily of the policy");class Ho extends E{}d(Ho,"code",177022),d(Ho,"message","exceeded max native token daily of the policy");class $o extends E{}d($o,"code",177023),d($o,"message","sender is in policy blocklist");class Go extends E{}d(Go,"code",177024),d(Go,"message","Wallet and request's blockchain mismatch.");class Qo extends E{}d(Qo,"code",177025),d(Qo,"message","the asset amount owned by the wallet is insufficient for the transaction");class Wo extends E{}d(Wo,"code",177026),d(Wo,"message","Wait for pending transactions to be included on the blockchain before submitting new requests. EVM chains restrict the number of queued transactions per sender address.");class Yo extends E{}d(Yo,"code",177301),d(Yo,"message","wallet is Frozen");class Xo extends E{}d(Xo,"code",177302),d(Xo,"message","invalid sca wallet config");class Jo extends E{}d(Jo,"code",177303),d(Jo,"message","SCA wallet first-time transaction is still in progress");class Zo extends E{}d(Zo,"code",177304),d(Zo,"message","SCA account is not supported on the given blockchain");class ec extends E{}d(ec,"code",177305),d(ec,"message","entity is not eligible for SCA account creation. Please check paymaster policy setup");class tc extends E{}d(tc,"code",177601),d(tc,"message","cannot find target wallet in the system. Either the specified wallet doesn't exist or it's not accessible to the caller");class ac extends E{}d(ac,"code",177602),d(ac,"message","reusing an entity secret ciphertext is not allowed. Please re-encrypt the entity secret to generate new ciphertext");class rc extends E{}d(rc,"code",177603),d(rc,"message","cannot find the corresponding entity in the system");class nc extends E{}d(nc,"code",177604),d(nc,"message","the provided entity secret is invalid");class ic extends E{}d(ic,"code",177605),d(ic,"message","the entity secret has not been set yet. Please provide encrypted ciphertext in the console");class sc extends E{}d(sc,"code",177606),d(sc,"message","current entity secret is invalid. Please rotate the entity secret first");class oc extends E{}d(oc,"code",177607),d(oc,"message","please use a new idempotency key");class cc extends E{}d(cc,"code",177901),d(cc,"message","smart contract query failed");const Df={undefined:E,[gr.code]:gr,[xr.code]:xr,[yr.code]:yr,[br.code]:br,[Er.code]:Er,[Cr.code]:Cr,[Sr.code]:Sr,[Tr.code]:Tr,[wr.code]:wr,[Ar.code]:Ar,[Dr.code]:Dr,[Pr.code]:Pr,[Or.code]:Or,[Fr.code]:Fr,[Mr.code]:Mr,[Vr.code]:Vr,[qr.code]:qr,[jr.code]:jr,[Kr.code]:Kr,[zr.code]:zr,[Hr.code]:Hr,[$r.code]:$r,[Gr.code]:Gr,[Qr.code]:Qr,[Wr.code]:Wr,[Yr.code]:Yr,[Xr.code]:Xr,[Jr.code]:Jr,[Zr.code]:Zr,[en.code]:en,[tn.code]:tn,[an.code]:an,[rn.code]:rn,[nn.code]:nn,[sn.code]:sn,[on.code]:on,[cn.code]:cn,[ln.code]:ln,[un.code]:un,[pn.code]:pn,[dn.code]:dn,[fn.code]:fn,[mn.code]:mn,[hn.code]:hn,[vn.code]:vn,[gn.code]:gn,[xn.code]:xn,[yn.code]:yn,[bn.code]:bn,[En.code]:En,[Cn.code]:Cn,[Sn.code]:Sn,[Tn.code]:Tn,[wn.code]:wn,[An.code]:An,[In.code]:In,[Bn.code]:Bn,[_n.code]:_n,[Rn.code]:Rn,[kn.code]:kn,[Nn.code]:Nn,[Ln.code]:Ln,[Un.code]:Un,[Dn.code]:Dn,[Pn.code]:Pn,[On.code]:On,[Fn.code]:Fn,[Mn.code]:Mn,[Vn.code]:Vn,[qn.code]:qn,[jn.code]:jn,[Kn.code]:Kn,[zn.code]:zn,[Hn.code]:Hn,[$n.code]:$n,[Gn.code]:Gn,[Qn.code]:Qn,[Wn.code]:Wn,[Yn.code]:Yn,[Xn.code]:Xn,[Jn.code]:Jn,[Zn.code]:Zn,[ei.code]:ei,[ti.code]:ti,[ai.code]:ai,[ri.code]:ri,[ni.code]:ni,[ii.code]:ii,[si.code]:si,[oi.code]:oi,[ci.code]:ci,[li.code]:li,[ui.code]:ui,[pi.code]:pi,[di.code]:di,[fi.code]:fi,[mi.code]:mi,[hi.code]:hi,[vi.code]:vi,[gi.code]:gi,[xi.code]:xi,[yi.code]:yi,[bi.code]:bi,[Ei.code]:Ei,[Ci.code]:Ci,[Si.code]:Si,[Ti.code]:Ti,[wi.code]:wi,[Ai.code]:Ai,[Ii.code]:Ii,[Bi.code]:Bi,[_i.code]:_i,[Ri.code]:Ri,[ki.code]:ki,[Ni.code]:Ni,[Li.code]:Li,[Ui.code]:Ui,[Di.code]:Di,[Pi.code]:Pi,[Oi.code]:Oi,[Fi.code]:Fi,[Mi.code]:Mi,[Vi.code]:Vi,[qi.code]:qi,[ji.code]:ji,[Ki.code]:Ki,[zi.code]:zi,[Hi.code]:Hi,[$i.code]:$i,[Gi.code]:Gi,[Qi.code]:Qi,[Wi.code]:Wi,[Yi.code]:Yi,[Xi.code]:Xi,[Ji.code]:Ji,[Zi.code]:Zi,[es.code]:es,[ts.code]:ts,[as.code]:as,[rs.code]:rs,[ns.code]:ns,[is.code]:is,[ss.code]:ss,[os.code]:os,[cs.code]:cs,[ls.code]:ls,[us.code]:us,[ps.code]:ps,[ds.code]:ds,[fs.code]:fs,[ms.code]:ms,[hs.code]:hs,[vs.code]:vs,[gs.code]:gs,[xs.code]:xs,[ys.code]:ys,[bs.code]:bs,[Es.code]:Es,[Cs.code]:Cs,[Ss.code]:Ss,[Ts.code]:Ts,[ws.code]:ws,[As.code]:As,[Is.code]:Is,[Bs.code]:Bs,[_s.code]:_s,[Rs.code]:Rs,[ks.code]:ks,[Ns.code]:Ns,[Ls.code]:Ls,[Us.code]:Us,[Ds.code]:Ds,[Ps.code]:Ps,[Os.code]:Os,[Fs.code]:Fs,[Ms.code]:Ms,[Vs.code]:Vs,[qs.code]:qs,[js.code]:js,[Ks.code]:Ks,[zs.code]:zs,[Hs.code]:Hs,[$s.code]:$s,[Gs.code]:Gs,[Qs.code]:Qs,[Ws.code]:Ws,[Ys.code]:Ys,[Xs.code]:Xs,[Js.code]:Js,[Zs.code]:Zs,[eo.code]:eo,[to.code]:to,[ao.code]:ao,[ro.code]:ro,[no.code]:no,[io.code]:io,[so.code]:so,[oo.code]:oo,[co.code]:co,[lo.code]:lo,[uo.code]:uo,[po.code]:po,[fo.code]:fo,[mo.code]:mo,[ho.code]:ho,[vo.code]:vo,[go.code]:go,[xo.code]:xo,[yo.code]:yo,[bo.code]:bo,[Eo.code]:Eo,[Co.code]:Co,[So.code]:So,[To.code]:To,[wo.code]:wo,[Ao.code]:Ao,[Io.code]:Io,[Bo.code]:Bo,[_o.code]:_o,[Ro.code]:Ro,[ko.code]:ko,[No.code]:No,[Lo.code]:Lo,[Uo.code]:Uo,[Do.code]:Do,[Po.code]:Po,[Oo.code]:Oo,[Fo.code]:Fo,[Mo.code]:Mo,[Vo.code]:Vo,[qo.code]:qo,[jo.code]:jo,[Ko.code]:Ko,[zo.code]:zo,[Ho.code]:Ho,[$o.code]:$o,[Go.code]:Go,[Qo.code]:Qo,[Wo.code]:Wo,[Yo.code]:Yo,[Xo.code]:Xo,[Jo.code]:Jo,[Zo.code]:Zo,[ec.code]:ec,[tc.code]:tc,[ac.code]:ac,[rc.code]:rc,[nc.code]:nc,[ic.code]:ic,[sc.code]:sc,[oc.code]:oc,[cc.code]:cc};function A1(e){return Df[e]??Df.undefined}function I1(e){const t=e.response.data,r=e.response.status;return B1({code:t?.code??r,status:r,message:t?.message,url:e.config.url,method:e.config.method.toUpperCase(),error:e})}function B1({code:e,status:t,message:r,url:a,method:n,error:s}){const i=A1(e);return new i({message:r,code:e,url:a,method:n,status:t,error:s})}function et(e){return e.response?I1(e):C1(e)}const St=e=>{const{data:t,headers:r,...a}=e;return{...a,data:t.data,headers:r}},_1=({configurationsClient:e})=>async()=>{try{return St(await e.DeveloperAccount.getPublicKey())}catch(t){throw tt(t)?et(t):t}};var R1=Object.defineProperty,k1=(e,t,r)=>t in e?R1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,N1=(e,t,r)=>k1(e,typeof t!="symbol"?t+"":t,r);class L1{constructor(){N1(this,"data",{})}get(t){return Promise.resolve(this.data[t]??void 0)}set(t,r){return r===void 0?delete this.data[t]:this.data[t]=r,Promise.resolve()}}var te={options:{usePureJavaScript:!1}},Ru={},U1=Ru,Pf={};Ru.encode=function(e,t,r){if(typeof t!="string")throw new TypeError('"alphabet" must be a string.');if(r!==void 0&&typeof r!="number")throw new TypeError('"maxline" must be a number.');var a="";if(!(e instanceof Uint8Array))a=D1(e,t);else{var n=0,s=t.length,i=t.charAt(0),o=[0];for(n=0;n<e.length;++n){for(var c=0,l=e[n];c<o.length;++c)l+=o[c]<<8,o[c]=l%s,l=l/s|0;for(;l>0;)o.push(l%s),l=l/s|0}for(n=0;e[n]===0&&n<e.length-1;++n)a+=i;for(n=o.length-1;n>=0;--n)a+=t[o[n]]}if(r){var u=new RegExp(".{1,"+r+"}","g");a=a.match(u).join(`\r
|
|
26
|
+
`)}return a},Ru.decode=function(e,t){if(typeof e!="string")throw new TypeError('"input" must be a string.');if(typeof t!="string")throw new TypeError('"alphabet" must be a string.');var r=Pf[t];if(!r){r=Pf[t]=[];for(var a=0;a<t.length;++a)r[t.charCodeAt(a)]=a}e=e.replace(/\s/g,"");for(var n=t.length,s=t.charAt(0),i=[0],a=0;a<e.length;a++){var o=r[e.charCodeAt(a)];if(o===void 0)return;for(var c=0,l=o;c<i.length;++c)l+=i[c]*n,i[c]=l&255,l>>=8;for(;l>0;)i.push(l&255),l>>=8}for(var u=0;e[u]===s&&u<e.length-1;++u)i.push(0);return typeof Buffer<"u"?Buffer.from(i.reverse()):new Uint8Array(i.reverse())};function D1(e,t){var r=0,a=t.length,n=t.charAt(0),s=[0];for(r=0;r<e.length();++r){for(var i=0,o=e.at(r);i<s.length;++i)o+=s[i]<<8,s[i]=o%a,o=o/a|0;for(;o>0;)s.push(o%a),o=o/a|0}var c="";for(r=0;e.at(r)===0&&r<e.length()-1;++r)c+=n;for(r=s.length-1;r>=0;--r)c+=t[s[r]];return c}var Of=te,Ff=U1,w=Of.util=Of.util||{};(function(){if(typeof process<"u"&&process.nextTick&&!process.browser){w.nextTick=process.nextTick,typeof setImmediate=="function"?w.setImmediate=setImmediate:w.setImmediate=w.nextTick;return}if(typeof setImmediate=="function"){w.setImmediate=function(){return setImmediate.apply(void 0,arguments)},w.nextTick=function(i){return setImmediate(i)};return}if(w.setImmediate=function(i){setTimeout(i,0)},typeof window<"u"&&typeof window.postMessage=="function"){let i=function(o){if(o.source===window&&o.data===e){o.stopPropagation();var c=t.slice();t.length=0,c.forEach(function(l){l()})}};var e="forge.setImmediate",t=[];w.setImmediate=function(o){t.push(o),t.length===1&&window.postMessage(e,"*")},window.addEventListener("message",i,!0)}if(typeof MutationObserver<"u"){var r=Date.now(),a=!0,n=document.createElement("div"),t=[];new MutationObserver(function(){var o=t.slice();t.length=0,o.forEach(function(c){c()})}).observe(n,{attributes:!0});var s=w.setImmediate;w.setImmediate=function(o){Date.now()-r>15?(r=Date.now(),s(o)):(t.push(o),t.length===1&&n.setAttribute("a",a=!a))}}w.nextTick=w.setImmediate})(),w.isNodejs=typeof process<"u"&&process.versions&&process.versions.node,w.globalScope=(function(){return w.isNodejs?Jm:typeof self>"u"?window:self})(),w.isArray=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},w.isArrayBuffer=function(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer},w.isArrayBufferView=function(e){return e&&w.isArrayBuffer(e.buffer)&&e.byteLength!==void 0};function lc(e){if(!(e===8||e===16||e===24||e===32))throw new Error("Only 8, 16, 24, or 32 bits supported: "+e)}w.ByteBuffer=ku;function ku(e){if(this.data="",this.read=0,typeof e=="string")this.data=e;else if(w.isArrayBuffer(e)||w.isArrayBufferView(e))if(typeof Buffer<"u"&&e instanceof Buffer)this.data=e.toString("binary");else{var t=new Uint8Array(e);try{this.data=String.fromCharCode.apply(null,t)}catch{for(var r=0;r<t.length;++r)this.putByte(t[r])}}else(e instanceof ku||typeof e=="object"&&typeof e.data=="string"&&typeof e.read=="number")&&(this.data=e.data,this.read=e.read);this._constructedStringLength=0}w.ByteStringBuffer=ku;var P1=4096;w.ByteStringBuffer.prototype._optimizeConstructedString=function(e){this._constructedStringLength+=e,this._constructedStringLength>P1&&(this.data.substr(0,1),this._constructedStringLength=0)},w.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},w.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},w.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))},w.ByteStringBuffer.prototype.fillWithByte=function(e,t){e=String.fromCharCode(e);for(var r=this.data;t>0;)t&1&&(r+=e),t>>>=1,t>0&&(e+=e);return this.data=r,this._optimizeConstructedString(t),this},w.ByteStringBuffer.prototype.putBytes=function(e){return this.data+=e,this._optimizeConstructedString(e.length),this},w.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(w.encodeUtf8(e))},w.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},w.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},w.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},w.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255))},w.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))},w.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))},w.ByteStringBuffer.prototype.putInt=function(e,t){lc(t);var r="";do t-=8,r+=String.fromCharCode(e>>t&255);while(t>0);return this.putBytes(r)},w.ByteStringBuffer.prototype.putSignedInt=function(e,t){return e<0&&(e+=2<<t-1),this.putInt(e,t)},w.ByteStringBuffer.prototype.putBuffer=function(e){return this.putBytes(e.getBytes())},w.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)},w.ByteStringBuffer.prototype.getInt16=function(){var e=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,e},w.ByteStringBuffer.prototype.getInt24=function(){var e=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,e},w.ByteStringBuffer.prototype.getInt32=function(){var e=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,e},w.ByteStringBuffer.prototype.getInt16Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,e},w.ByteStringBuffer.prototype.getInt24Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,e},w.ByteStringBuffer.prototype.getInt32Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,e},w.ByteStringBuffer.prototype.getInt=function(e){lc(e);var t=0;do t=(t<<8)+this.data.charCodeAt(this.read++),e-=8;while(e>0);return t},w.ByteStringBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<<e-2;return t>=r&&(t-=r<<1),t},w.ByteStringBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):e===0?t="":(t=this.read===0?this.data:this.data.slice(this.read),this.clear()),t},w.ByteStringBuffer.prototype.bytes=function(e){return typeof e>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},w.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)},w.ByteStringBuffer.prototype.setAt=function(e,t){return this.data=this.data.substr(0,this.read+e)+String.fromCharCode(t)+this.data.substr(this.read+e+1),this},w.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},w.ByteStringBuffer.prototype.copy=function(){var e=w.createBuffer(this.data);return e.read=this.read,e},w.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},w.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},w.ByteStringBuffer.prototype.truncate=function(e){var t=Math.max(0,this.length()-e);return this.data=this.data.substr(this.read,t),this.read=0,this},w.ByteStringBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.length;++t){var r=this.data.charCodeAt(t);r<16&&(e+="0"),e+=r.toString(16)}return e},w.ByteStringBuffer.prototype.toString=function(){return w.decodeUtf8(this.bytes())};function O1(e,t){t=t||{},this.read=t.readOffset||0,this.growSize=t.growSize||1024;var r=w.isArrayBuffer(e),a=w.isArrayBufferView(e);if(r||a){r?this.data=new DataView(e):this.data=new DataView(e.buffer,e.byteOffset,e.byteLength),this.write="writeOffset"in t?t.writeOffset:this.data.byteLength;return}this.data=new DataView(new ArrayBuffer(0)),this.write=0,e!=null&&this.putBytes(e),"writeOffset"in t&&(this.write=t.writeOffset)}w.DataBuffer=O1,w.DataBuffer.prototype.length=function(){return this.write-this.read},w.DataBuffer.prototype.isEmpty=function(){return this.length()<=0},w.DataBuffer.prototype.accommodate=function(e,t){if(this.length()>=e)return this;t=Math.max(t||this.growSize,e);var r=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),a=new Uint8Array(this.length()+t);return a.set(r),this.data=new DataView(a.buffer),this},w.DataBuffer.prototype.putByte=function(e){return this.accommodate(1),this.data.setUint8(this.write++,e),this},w.DataBuffer.prototype.fillWithByte=function(e,t){this.accommodate(t);for(var r=0;r<t;++r)this.data.setUint8(e);return this},w.DataBuffer.prototype.putBytes=function(e,t){if(w.isArrayBufferView(e)){var r=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),a=r.byteLength-r.byteOffset;this.accommodate(a);var n=new Uint8Array(this.data.buffer,this.write);return n.set(r),this.write+=a,this}if(w.isArrayBuffer(e)){var r=new Uint8Array(e);this.accommodate(r.byteLength);var n=new Uint8Array(this.data.buffer);return n.set(r,this.write),this.write+=r.byteLength,this}if(e instanceof w.DataBuffer||typeof e=="object"&&typeof e.read=="number"&&typeof e.write=="number"&&w.isArrayBufferView(e.data)){var r=new Uint8Array(e.data.byteLength,e.read,e.length());this.accommodate(r.byteLength);var n=new Uint8Array(e.data.byteLength,this.write);return n.set(r),this.write+=r.byteLength,this}if(e instanceof w.ByteStringBuffer&&(e=e.data,t="binary"),t=t||"binary",typeof e=="string"){var s;if(t==="hex")return this.accommodate(Math.ceil(e.length/2)),s=new Uint8Array(this.data.buffer,this.write),this.write+=w.binary.hex.decode(e,s,this.write),this;if(t==="base64")return this.accommodate(Math.ceil(e.length/4)*3),s=new Uint8Array(this.data.buffer,this.write),this.write+=w.binary.base64.decode(e,s,this.write),this;if(t==="utf8"&&(e=w.encodeUtf8(e),t="binary"),t==="binary"||t==="raw")return this.accommodate(e.length),s=new Uint8Array(this.data.buffer,this.write),this.write+=w.binary.raw.decode(s),this;if(t==="utf16")return this.accommodate(e.length*2),s=new Uint16Array(this.data.buffer,this.write),this.write+=w.text.utf16.encode(s),this;throw new Error("Invalid encoding: "+t)}throw Error("Invalid parameter: "+e)},w.DataBuffer.prototype.putBuffer=function(e){return this.putBytes(e),e.clear(),this},w.DataBuffer.prototype.putString=function(e){return this.putBytes(e,"utf16")},w.DataBuffer.prototype.putInt16=function(e){return this.accommodate(2),this.data.setInt16(this.write,e),this.write+=2,this},w.DataBuffer.prototype.putInt24=function(e){return this.accommodate(3),this.data.setInt16(this.write,e>>8&65535),this.data.setInt8(this.write,e>>16&255),this.write+=3,this},w.DataBuffer.prototype.putInt32=function(e){return this.accommodate(4),this.data.setInt32(this.write,e),this.write+=4,this},w.DataBuffer.prototype.putInt16Le=function(e){return this.accommodate(2),this.data.setInt16(this.write,e,!0),this.write+=2,this},w.DataBuffer.prototype.putInt24Le=function(e){return this.accommodate(3),this.data.setInt8(this.write,e>>16&255),this.data.setInt16(this.write,e>>8&65535,!0),this.write+=3,this},w.DataBuffer.prototype.putInt32Le=function(e){return this.accommodate(4),this.data.setInt32(this.write,e,!0),this.write+=4,this},w.DataBuffer.prototype.putInt=function(e,t){lc(t),this.accommodate(t/8);do t-=8,this.data.setInt8(this.write++,e>>t&255);while(t>0);return this},w.DataBuffer.prototype.putSignedInt=function(e,t){return lc(t),this.accommodate(t/8),e<0&&(e+=2<<t-1),this.putInt(e,t)},w.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)},w.DataBuffer.prototype.getInt16=function(){var e=this.data.getInt16(this.read);return this.read+=2,e},w.DataBuffer.prototype.getInt24=function(){var e=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,e},w.DataBuffer.prototype.getInt32=function(){var e=this.data.getInt32(this.read);return this.read+=4,e},w.DataBuffer.prototype.getInt16Le=function(){var e=this.data.getInt16(this.read,!0);return this.read+=2,e},w.DataBuffer.prototype.getInt24Le=function(){var e=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,e},w.DataBuffer.prototype.getInt32Le=function(){var e=this.data.getInt32(this.read,!0);return this.read+=4,e},w.DataBuffer.prototype.getInt=function(e){lc(e);var t=0;do t=(t<<8)+this.data.getInt8(this.read++),e-=8;while(e>0);return t},w.DataBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<<e-2;return t>=r&&(t-=r<<1),t},w.DataBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):e===0?t="":(t=this.read===0?this.data:this.data.slice(this.read),this.clear()),t},w.DataBuffer.prototype.bytes=function(e){return typeof e>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},w.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)},w.DataBuffer.prototype.setAt=function(e,t){return this.data.setUint8(e,t),this},w.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},w.DataBuffer.prototype.copy=function(){return new w.DataBuffer(this)},w.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read),t=new Uint8Array(e.byteLength);t.set(e),this.data=new DataView(t),this.write-=this.read,this.read=0}return this},w.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},w.DataBuffer.prototype.truncate=function(e){return this.write=Math.max(0,this.length()-e),this.read=Math.min(this.read,this.write),this},w.DataBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.byteLength;++t){var r=this.data.getUint8(t);r<16&&(e+="0"),e+=r.toString(16)}return e},w.DataBuffer.prototype.toString=function(e){var t=new Uint8Array(this.data,this.read,this.length());if(e=e||"utf8",e==="binary"||e==="raw")return w.binary.raw.encode(t);if(e==="hex")return w.binary.hex.encode(t);if(e==="base64")return w.binary.base64.encode(t);if(e==="utf8")return w.text.utf8.decode(t);if(e==="utf16")return w.text.utf16.decode(t);throw new Error("Invalid encoding: "+e)},w.createBuffer=function(e,t){return t=t||"raw",e!==void 0&&t==="utf8"&&(e=w.encodeUtf8(e)),new w.ByteBuffer(e)},w.fillString=function(e,t){for(var r="";t>0;)t&1&&(r+=e),t>>>=1,t>0&&(e+=e);return r},w.xorBytes=function(e,t,r){for(var a="",n="",s="",i=0,o=0;r>0;--r,++i)n=e.charCodeAt(i)^t.charCodeAt(i),o>=10&&(a+=s,s="",o=0),s+=String.fromCharCode(n),++o;return a+=s,a},w.hexToBytes=function(e){var t="",r=0;for(e.length&!0&&(r=1,t+=String.fromCharCode(parseInt(e[0],16)));r<e.length;r+=2)t+=String.fromCharCode(parseInt(e.substr(r,2),16));return t},w.bytesToHex=function(e){return w.createBuffer(e).toHex()},w.int32ToBytes=function(e){return String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255)};var ia="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",sa=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],Mf="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";w.encode64=function(e,t){for(var r="",a="",n,s,i,o=0;o<e.length;)n=e.charCodeAt(o++),s=e.charCodeAt(o++),i=e.charCodeAt(o++),r+=ia.charAt(n>>2),r+=ia.charAt((n&3)<<4|s>>4),isNaN(s)?r+="==":(r+=ia.charAt((s&15)<<2|i>>6),r+=isNaN(i)?"=":ia.charAt(i&63)),t&&r.length>t&&(a+=r.substr(0,t)+`\r
|
|
27
|
+
`,r=r.substr(t));return a+=r,a},w.decode64=function(e){e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var t="",r,a,n,s,i=0;i<e.length;)r=sa[e.charCodeAt(i++)-43],a=sa[e.charCodeAt(i++)-43],n=sa[e.charCodeAt(i++)-43],s=sa[e.charCodeAt(i++)-43],t+=String.fromCharCode(r<<2|a>>4),n!==64&&(t+=String.fromCharCode((a&15)<<4|n>>2),s!==64&&(t+=String.fromCharCode((n&3)<<6|s)));return t},w.encodeUtf8=function(e){return unescape(encodeURIComponent(e))},w.decodeUtf8=function(e){return decodeURIComponent(escape(e))},w.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:Ff.encode,decode:Ff.decode}},w.binary.raw.encode=function(e){return String.fromCharCode.apply(null,e)},w.binary.raw.decode=function(e,t,r){var a=t;a||(a=new Uint8Array(e.length)),r=r||0;for(var n=r,s=0;s<e.length;++s)a[n++]=e.charCodeAt(s);return t?n-r:a},w.binary.hex.encode=w.bytesToHex,w.binary.hex.decode=function(e,t,r){var a=t;a||(a=new Uint8Array(Math.ceil(e.length/2))),r=r||0;var n=0,s=r;for(e.length&1&&(n=1,a[s++]=parseInt(e[0],16));n<e.length;n+=2)a[s++]=parseInt(e.substr(n,2),16);return t?s-r:a},w.binary.base64.encode=function(e,t){for(var r="",a="",n,s,i,o=0;o<e.byteLength;)n=e[o++],s=e[o++],i=e[o++],r+=ia.charAt(n>>2),r+=ia.charAt((n&3)<<4|s>>4),isNaN(s)?r+="==":(r+=ia.charAt((s&15)<<2|i>>6),r+=isNaN(i)?"=":ia.charAt(i&63)),t&&r.length>t&&(a+=r.substr(0,t)+`\r
|
|
28
|
+
`,r=r.substr(t));return a+=r,a},w.binary.base64.decode=function(e,t,r){var a=t;a||(a=new Uint8Array(Math.ceil(e.length/4)*3)),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,""),r=r||0;for(var n,s,i,o,c=0,l=r;c<e.length;)n=sa[e.charCodeAt(c++)-43],s=sa[e.charCodeAt(c++)-43],i=sa[e.charCodeAt(c++)-43],o=sa[e.charCodeAt(c++)-43],a[l++]=n<<2|s>>4,i!==64&&(a[l++]=(s&15)<<4|i>>2,o!==64&&(a[l++]=(i&3)<<6|o));return t?l-r:a.subarray(0,l)},w.binary.base58.encode=function(e,t){return w.binary.baseN.encode(e,Mf,t)},w.binary.base58.decode=function(e,t){return w.binary.baseN.decode(e,Mf,t)},w.text={utf8:{},utf16:{}},w.text.utf8.encode=function(e,t,r){e=w.encodeUtf8(e);var a=t;a||(a=new Uint8Array(e.length)),r=r||0;for(var n=r,s=0;s<e.length;++s)a[n++]=e.charCodeAt(s);return t?n-r:a},w.text.utf8.decode=function(e){return w.decodeUtf8(String.fromCharCode.apply(null,e))},w.text.utf16.encode=function(e,t,r){var a=t;a||(a=new Uint8Array(e.length*2));var n=new Uint16Array(a.buffer);r=r||0;for(var s=r,i=r,o=0;o<e.length;++o)n[i++]=e.charCodeAt(o),s+=2;return t?s-r:a},w.text.utf16.decode=function(e){return String.fromCharCode.apply(null,new Uint16Array(e.buffer))},w.deflate=function(e,t,r){if(t=w.decode64(e.deflate(w.encode64(t)).rval),r){var a=2,n=t.charCodeAt(1);n&32&&(a=6),t=t.substring(a,t.length-4)}return t},w.inflate=function(e,t,r){var a=e.inflate(w.encode64(t)).rval;return a===null?null:w.decode64(a)};var Nu=function(e,t,r){if(!e)throw new Error("WebStorage not available.");var a;if(r===null?a=e.removeItem(t):(r=w.encode64(JSON.stringify(r)),a=e.setItem(t,r)),typeof a<"u"&&a.rval!==!0){var n=new Error(a.error.message);throw n.id=a.error.id,n.name=a.error.name,n}},Lu=function(e,t){if(!e)throw new Error("WebStorage not available.");var r=e.getItem(t);if(e.init)if(r.rval===null){if(r.error){var a=new Error(r.error.message);throw a.id=r.error.id,a.name=r.error.name,a}r=null}else r=r.rval;return r!==null&&(r=JSON.parse(w.decode64(r))),r},F1=function(e,t,r,a){var n=Lu(e,t);n===null&&(n={}),n[r]=a,Nu(e,t,n)},M1=function(e,t,r){var a=Lu(e,t);return a!==null&&(a=r in a?a[r]:null),a},V1=function(e,t,r){var a=Lu(e,t);if(a!==null&&r in a){delete a[r];var n=!0;for(var s in a){n=!1;break}n&&(a=null),Nu(e,t,a)}},q1=function(e,t){Nu(e,t,null)},$c=function(e,t,r){var a=null;typeof r>"u"&&(r=["web","flash"]);var n,s=!1,i=null;for(var o in r){n=r[o];try{if(n==="flash"||n==="both"){if(t[0]===null)throw new Error("Flash local storage not available.");a=e.apply(this,t),s=n==="flash"}(n==="web"||n==="both")&&(t[0]=localStorage,a=e.apply(this,t),s=!0)}catch(c){i=c}if(s)break}if(!s)throw i;return a};w.setItem=function(e,t,r,a,n){$c(F1,arguments,n)},w.getItem=function(e,t,r,a){return $c(M1,arguments,a)},w.removeItem=function(e,t,r,a){$c(V1,arguments,a)},w.clearItems=function(e,t,r){$c(q1,arguments,r)},w.isEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},w.format=function(e){for(var t=/%./g,r,a,n=0,s=[],i=0;r=t.exec(e);){a=e.substring(i,t.lastIndex-2),a.length>0&&s.push(a),i=t.lastIndex;var o=r[0][1];switch(o){case"s":case"o":n<arguments.length?s.push(arguments[n+++1]):s.push("<?>");break;case"%":s.push("%");break;default:s.push("<%"+o+"?>")}}return s.push(e.substring(i)),s.join("")},w.formatNumber=function(e,t,r,a){var n=e,s=isNaN(t=Math.abs(t))?2:t,i=r===void 0?",":r,o=a===void 0?".":a,c=n<0?"-":"",l=parseInt(n=Math.abs(+n||0).toFixed(s),10)+"",u=l.length>3?l.length%3:0;return c+(u?l.substr(0,u)+o:"")+l.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+o)+(s?i+Math.abs(n-l).toFixed(s).slice(2):"")},w.formatSize=function(e){return e>=1073741824?e=w.formatNumber(e/1073741824,2,".","")+" GiB":e>=1048576?e=w.formatNumber(e/1048576,2,".","")+" MiB":e>=1024?e=w.formatNumber(e/1024,0)+" KiB":e=w.formatNumber(e,0)+" bytes",e},w.bytesFromIP=function(e){return e.indexOf(".")!==-1?w.bytesFromIPv4(e):e.indexOf(":")!==-1?w.bytesFromIPv6(e):null},w.bytesFromIPv4=function(e){if(e=e.split("."),e.length!==4)return null;for(var t=w.createBuffer(),r=0;r<e.length;++r){var a=parseInt(e[r],10);if(isNaN(a))return null;t.putByte(a)}return t.getBytes()},w.bytesFromIPv6=function(e){var t=0;e=e.split(":").filter(function(i){return i.length===0&&++t,!0});for(var r=(8-e.length+t)*2,a=w.createBuffer(),n=0;n<8;++n){if(!e[n]||e[n].length===0){a.fillWithByte(0,r),r=0;continue}var s=w.hexToBytes(e[n]);s.length<2&&a.putByte(0),a.putBytes(s)}return a.getBytes()},w.bytesToIP=function(e){return e.length===4?w.bytesToIPv4(e):e.length===16?w.bytesToIPv6(e):null},w.bytesToIPv4=function(e){if(e.length!==4)return null;for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t.join(".")},w.bytesToIPv6=function(e){if(e.length!==16)return null;for(var t=[],r=[],a=0,n=0;n<e.length;n+=2){for(var s=w.bytesToHex(e[n]+e[n+1]);s[0]==="0"&&s!=="0";)s=s.substr(1);if(s==="0"){var i=r[r.length-1],o=t.length;!i||o!==i.end+1?r.push({start:o,end:o}):(i.end=o,i.end-i.start>r[a].end-r[a].start&&(a=r.length-1))}t.push(s)}if(r.length>0){var c=r[a];c.end-c.start>0&&(t.splice(c.start,c.end-c.start+1,""),c.start===0&&t.unshift(""),c.end===7&&t.push(""))}return t.join(":")},w.estimateCores=function(e,t){if(typeof e=="function"&&(t=e,e={}),e=e||{},"cores"in w&&!e.update)return t(null,w.cores);if(typeof navigator<"u"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return w.cores=navigator.hardwareConcurrency,t(null,w.cores);if(typeof Worker>"u")return w.cores=1,t(null,w.cores);if(typeof Blob>"u")return w.cores=2,t(null,w.cores);var r=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(i){var o=Date.now(),c=o+4;self.postMessage({st:o,et:c})})}.toString(),")()"],{type:"application/javascript"}));a([],5,16);function a(i,o,c){if(o===0){var l=Math.floor(i.reduce(function(u,p){return u+p},0)/i.length);return w.cores=Math.max(1,l),URL.revokeObjectURL(r),t(null,w.cores)}n(c,function(u,p){i.push(s(c,p)),a(i,o-1,c)})}function n(i,o){for(var c=[],l=[],u=0;u<i;++u){var p=new Worker(r);p.addEventListener("message",function(f){if(l.push(f.data),l.length===i){for(var x=0;x<i;++x)c[x].terminate();o(null,l)}}),c.push(p)}for(var u=0;u<i;++u)c[u].postMessage(u)}function s(i,o){for(var c=[],l=0;l<i;++l)for(var u=o[l],p=c[l]=[],f=0;f<i;++f)if(l!==f){var x=o[f];(u.st>x.st&&u.st<x.et||x.st>u.st&&x.st<u.et)&&p.push(f)}return c.reduce(function(m,y){return Math.max(m,y.length)},0)}};var qe=te;qe.cipher=qe.cipher||{},qe.cipher.algorithms=qe.cipher.algorithms||{},qe.cipher.createCipher=function(e,t){var r=e;if(typeof r=="string"&&(r=qe.cipher.getAlgorithm(r),r&&(r=r())),!r)throw new Error("Unsupported algorithm: "+e);return new qe.cipher.BlockCipher({algorithm:r,key:t,decrypt:!1})},qe.cipher.createDecipher=function(e,t){var r=e;if(typeof r=="string"&&(r=qe.cipher.getAlgorithm(r),r&&(r=r())),!r)throw new Error("Unsupported algorithm: "+e);return new qe.cipher.BlockCipher({algorithm:r,key:t,decrypt:!0})},qe.cipher.registerAlgorithm=function(e,t){e=e.toUpperCase(),qe.cipher.algorithms[e]=t},qe.cipher.getAlgorithm=function(e){return e=e.toUpperCase(),e in qe.cipher.algorithms?qe.cipher.algorithms[e]:null};var Uu=qe.cipher.BlockCipher=function(e){this.algorithm=e.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=e.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=e.decrypt,this.algorithm.initialize(e)};Uu.prototype.start=function(e){e=e||{};var t={};for(var r in e)t[r]=e[r];t.decrypt=this._decrypt,this._finish=!1,this._input=qe.util.createBuffer(),this.output=e.output||qe.util.createBuffer(),this.mode.start(t)},Uu.prototype.update=function(e){for(e&&this._input.putBuffer(e);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()},Uu.prototype.finish=function(e){e&&(this.mode.name==="ECB"||this.mode.name==="CBC")&&(this.mode.pad=function(r){return e(this.blockSize,r,!1)},this.mode.unpad=function(r){return e(this.blockSize,r,!0)});var t={};return t.decrypt=this._decrypt,t.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,t)||(this._finish=!0,this.update(),this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,t))||this.mode.afterFinish&&!this.mode.afterFinish(this.output,t))};var je=te;je.cipher=je.cipher||{};var ie=je.cipher.modes=je.cipher.modes||{};ie.ecb=function(e){e=e||{},this.name="ECB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},ie.ecb.prototype.start=function(e){},ie.ecb.prototype.encrypt=function(e,t,r){if(e.length()<this.blockSize&&!(r&&e.length()>0))return!0;for(var a=0;a<this._ints;++a)this._inBlock[a]=e.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var a=0;a<this._ints;++a)t.putInt32(this._outBlock[a])},ie.ecb.prototype.decrypt=function(e,t,r){if(e.length()<this.blockSize&&!(r&&e.length()>0))return!0;for(var a=0;a<this._ints;++a)this._inBlock[a]=e.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var a=0;a<this._ints;++a)t.putInt32(this._outBlock[a])},ie.ecb.prototype.pad=function(e,t){var r=e.length()===this.blockSize?this.blockSize:this.blockSize-e.length();return e.fillWithByte(r,r),!0},ie.ecb.prototype.unpad=function(e,t){if(t.overflow>0)return!1;var r=e.length(),a=e.at(r-1);return a>this.blockSize<<2?!1:(e.truncate(a),!0)},ie.cbc=function(e){e=e||{},this.name="CBC",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},ie.cbc.prototype.start=function(e){if(e.iv===null){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else if("iv"in e)this._iv=Gc(e.iv,this.blockSize),this._prev=this._iv.slice(0);else throw new Error("Invalid IV parameter.")},ie.cbc.prototype.encrypt=function(e,t,r){if(e.length()<this.blockSize&&!(r&&e.length()>0))return!0;for(var a=0;a<this._ints;++a)this._inBlock[a]=this._prev[a]^e.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var a=0;a<this._ints;++a)t.putInt32(this._outBlock[a]);this._prev=this._outBlock},ie.cbc.prototype.decrypt=function(e,t,r){if(e.length()<this.blockSize&&!(r&&e.length()>0))return!0;for(var a=0;a<this._ints;++a)this._inBlock[a]=e.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var a=0;a<this._ints;++a)t.putInt32(this._prev[a]^this._outBlock[a]);this._prev=this._inBlock.slice(0)},ie.cbc.prototype.pad=function(e,t){var r=e.length()===this.blockSize?this.blockSize:this.blockSize-e.length();return e.fillWithByte(r,r),!0},ie.cbc.prototype.unpad=function(e,t){if(t.overflow>0)return!1;var r=e.length(),a=e.at(r-1);return a>this.blockSize<<2?!1:(e.truncate(a),!0)},ie.cfb=function(e){e=e||{},this.name="CFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=je.util.createBuffer(),this._partialBytes=0},ie.cfb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=Gc(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},ie.cfb.prototype.encrypt=function(e,t,r){var a=e.length();if(a===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&a>=this.blockSize){for(var n=0;n<this._ints;++n)this._inBlock[n]=e.getInt32()^this._outBlock[n],t.putInt32(this._inBlock[n]);return}var s=(this.blockSize-a)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialBlock[n]=e.getInt32()^this._outBlock[n],this._partialOutput.putInt32(this._partialBlock[n]);if(s>0)e.read-=this.blockSize;else for(var n=0;n<this._ints;++n)this._inBlock[n]=this._partialBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=0},ie.cfb.prototype.decrypt=function(e,t,r){var a=e.length();if(a===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&a>=this.blockSize){for(var n=0;n<this._ints;++n)this._inBlock[n]=e.getInt32(),t.putInt32(this._inBlock[n]^this._outBlock[n]);return}var s=(this.blockSize-a)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialBlock[n]=e.getInt32(),this._partialOutput.putInt32(this._partialBlock[n]^this._outBlock[n]);if(s>0)e.read-=this.blockSize;else for(var n=0;n<this._ints;++n)this._inBlock[n]=this._partialBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=0},ie.ofb=function(e){e=e||{},this.name="OFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=je.util.createBuffer(),this._partialBytes=0},ie.ofb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=Gc(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},ie.ofb.prototype.encrypt=function(e,t,r){var a=e.length();if(e.length()===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&a>=this.blockSize){for(var n=0;n<this._ints;++n)t.putInt32(e.getInt32()^this._outBlock[n]),this._inBlock[n]=this._outBlock[n];return}var s=(this.blockSize-a)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialOutput.putInt32(e.getInt32()^this._outBlock[n]);if(s>0)e.read-=this.blockSize;else for(var n=0;n<this._ints;++n)this._inBlock[n]=this._outBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=0},ie.ofb.prototype.decrypt=ie.ofb.prototype.encrypt,ie.ctr=function(e){e=e||{},this.name="CTR",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=je.util.createBuffer(),this._partialBytes=0},ie.ctr.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=Gc(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},ie.ctr.prototype.encrypt=function(e,t,r){var a=e.length();if(a===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&a>=this.blockSize)for(var n=0;n<this._ints;++n)t.putInt32(e.getInt32()^this._outBlock[n]);else{var s=(this.blockSize-a)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialOutput.putInt32(e.getInt32()^this._outBlock[n]);if(s>0&&(e.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=0}Qc(this._inBlock)},ie.ctr.prototype.decrypt=ie.ctr.prototype.encrypt,ie.gcm=function(e){e=e||{},this.name="GCM",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=je.util.createBuffer(),this._partialBytes=0,this._R=3774873600},ie.gcm.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");var t=je.util.createBuffer(e.iv);this._cipherLength=0;var r;if("additionalData"in e?r=je.util.createBuffer(e.additionalData):r=je.util.createBuffer(),"tagLength"in e?this._tagLength=e.tagLength:this._tagLength=128,this._tag=null,e.decrypt&&(this._tag=je.util.createBuffer(e.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.");this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var a=t.length();if(a===12)this._j0=[t.getInt32(),t.getInt32(),t.getInt32(),1];else{for(this._j0=[0,0,0,0];t.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[t.getInt32(),t.getInt32(),t.getInt32(),t.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(Du(a*8)))}this._inBlock=this._j0.slice(0),Qc(this._inBlock),this._partialBytes=0,r=je.util.createBuffer(r),this._aDataLength=Du(r.length()*8);var n=r.length()%this.blockSize;for(n&&r.fillWithByte(0,this.blockSize-n),this._s=[0,0,0,0];r.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[r.getInt32(),r.getInt32(),r.getInt32(),r.getInt32()])},ie.gcm.prototype.encrypt=function(e,t,r){var a=e.length();if(a===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&a>=this.blockSize){for(var n=0;n<this._ints;++n)t.putInt32(this._outBlock[n]^=e.getInt32());this._cipherLength+=this.blockSize}else{var s=(this.blockSize-a)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialOutput.putInt32(e.getInt32()^this._outBlock[n]);if(s<=0||r){if(r){var i=a%this.blockSize;this._cipherLength+=i,this._partialOutput.truncate(this.blockSize-i)}else this._cipherLength+=this.blockSize;for(var n=0;n<this._ints;++n)this._outBlock[n]=this._partialOutput.getInt32();this._partialOutput.read-=this.blockSize}if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return e.read-=this.blockSize,t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),Qc(this._inBlock)},ie.gcm.prototype.decrypt=function(e,t,r){var a=e.length();if(a<this.blockSize&&!(r&&a>0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),Qc(this._inBlock),this._hashBlock[0]=e.getInt32(),this._hashBlock[1]=e.getInt32(),this._hashBlock[2]=e.getInt32(),this._hashBlock[3]=e.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var n=0;n<this._ints;++n)t.putInt32(this._outBlock[n]^this._hashBlock[n]);a<this.blockSize?this._cipherLength+=a%this.blockSize:this._cipherLength+=this.blockSize},ie.gcm.prototype.afterFinish=function(e,t){var r=!0;t.decrypt&&t.overflow&&e.truncate(this.blockSize-t.overflow),this.tag=je.util.createBuffer();var a=this._aDataLength.concat(Du(this._cipherLength*8));this._s=this.ghash(this._hashSubkey,this._s,a);var n=[];this.cipher.encrypt(this._j0,n);for(var s=0;s<this._ints;++s)this.tag.putInt32(this._s[s]^n[s]);return this.tag.truncate(this.tag.length()%(this._tagLength/8)),t.decrypt&&this.tag.bytes()!==this._tag&&(r=!1),r},ie.gcm.prototype.multiply=function(e,t){for(var r=[0,0,0,0],a=t.slice(0),n=0;n<128;++n){var s=e[n/32|0]&1<<31-n%32;s&&(r[0]^=a[0],r[1]^=a[1],r[2]^=a[2],r[3]^=a[3]),this.pow(a,a)}return r},ie.gcm.prototype.pow=function(e,t){for(var r=e[3]&1,a=3;a>0;--a)t[a]=e[a]>>>1|(e[a-1]&1)<<31;t[0]=e[0]>>>1,r&&(t[0]^=this._R)},ie.gcm.prototype.tableMultiply=function(e){for(var t=[0,0,0,0],r=0;r<32;++r){var a=r/8|0,n=e[a]>>>(7-r%8)*4&15,s=this._m[r][n];t[0]^=s[0],t[1]^=s[1],t[2]^=s[2],t[3]^=s[3]}return t},ie.gcm.prototype.ghash=function(e,t,r){return t[0]^=r[0],t[1]^=r[1],t[2]^=r[2],t[3]^=r[3],this.tableMultiply(t)},ie.gcm.prototype.generateHashTable=function(e,t){for(var r=8/t,a=4*r,n=16*r,s=new Array(n),i=0;i<n;++i){var o=[0,0,0,0],c=i/a|0,l=(a-1-i%a)*t;o[c]=1<<t-1<<l,s[i]=this.generateSubHashTable(this.multiply(o,e),t)}return s},ie.gcm.prototype.generateSubHashTable=function(e,t){var r=1<<t,a=r>>>1,n=new Array(r);n[a]=e.slice(0);for(var s=a>>>1;s>0;)this.pow(n[2*s],n[s]=[]),s>>=1;for(s=2;s<a;){for(var i=1;i<s;++i){var o=n[s],c=n[i];n[s+i]=[o[0]^c[0],o[1]^c[1],o[2]^c[2],o[3]^c[3]]}s*=2}for(n[0]=[0,0,0,0],s=a+1;s<r;++s){var l=n[s^a];n[s]=[e[0]^l[0],e[1]^l[1],e[2]^l[2],e[3]^l[3]]}return n};function Gc(e,t){if(typeof e=="string"&&(e=je.util.createBuffer(e)),je.util.isArray(e)&&e.length>4){var r=e;e=je.util.createBuffer();for(var a=0;a<r.length;++a)e.putByte(r[a])}if(e.length()<t)throw new Error("Invalid IV length; got "+e.length()+" bytes and expected "+t+" bytes.");if(!je.util.isArray(e)){for(var n=[],s=t/4,a=0;a<s;++a)n.push(e.getInt32());e=n}return e}function Qc(e){e[e.length-1]=e[e.length-1]+1&4294967295}function Du(e){return[e/4294967296|0,e&4294967295]}var Te=te;Te.aes=Te.aes||{},Te.aes.startEncrypting=function(e,t,r,a){var n=Wc({key:e,output:r,decrypt:!1,mode:a});return n.start(t),n},Te.aes.createEncryptionCipher=function(e,t){return Wc({key:e,output:null,decrypt:!1,mode:t})},Te.aes.startDecrypting=function(e,t,r,a){var n=Wc({key:e,output:r,decrypt:!0,mode:a});return n.start(t),n},Te.aes.createDecryptionCipher=function(e,t){return Wc({key:e,output:null,decrypt:!0,mode:t})},Te.aes.Algorithm=function(e,t){Pu||qf();var r=this;r.name=e,r.mode=new t({blockSize:16,cipher:{encrypt:function(a,n){return Fu(r._w,a,n,!1)},decrypt:function(a,n){return Fu(r._w,a,n,!0)}}}),r._init=!1},Te.aes.Algorithm.prototype.initialize=function(e){if(!this._init){var t=e.key,r;if(typeof t=="string"&&(t.length===16||t.length===24||t.length===32))t=Te.util.createBuffer(t);else if(Te.util.isArray(t)&&(t.length===16||t.length===24||t.length===32)){r=t,t=Te.util.createBuffer();for(var a=0;a<r.length;++a)t.putByte(r[a])}if(!Te.util.isArray(t)){r=t,t=[];var n=r.length();if(n===16||n===24||n===32){n=n>>>2;for(var a=0;a<n;++a)t.push(r.getInt32())}}if(!Te.util.isArray(t)||!(t.length===4||t.length===6||t.length===8))throw new Error("Invalid key parameter.");var s=this.mode.name,i=["CFB","OFB","CTR","GCM"].indexOf(s)!==-1;this._w=jf(t,e.decrypt&&!i),this._init=!0}},Te.aes._expandKey=function(e,t){return Pu||qf(),jf(e,t)},Te.aes._updateBlock=Fu,ja("AES-ECB",Te.cipher.modes.ecb),ja("AES-CBC",Te.cipher.modes.cbc),ja("AES-CFB",Te.cipher.modes.cfb),ja("AES-OFB",Te.cipher.modes.ofb),ja("AES-CTR",Te.cipher.modes.ctr),ja("AES-GCM",Te.cipher.modes.gcm);function ja(e,t){var r=function(){return new Te.aes.Algorithm(e,t)};Te.cipher.registerAlgorithm(e,r)}var Pu=!1,Ka=4,ct,Ou,Vf,wa,Mt;function qf(){Pu=!0,Vf=[0,1,2,4,8,16,32,64,128,27,54];for(var e=new Array(256),t=0;t<128;++t)e[t]=t<<1,e[t+128]=t+128<<1^283;ct=new Array(256),Ou=new Array(256),wa=new Array(4),Mt=new Array(4);for(var t=0;t<4;++t)wa[t]=new Array(256),Mt[t]=new Array(256);for(var r=0,a=0,n,s,i,o,c,l,u,t=0;t<256;++t){o=a^a<<1^a<<2^a<<3^a<<4,o=o>>8^o&255^99,ct[r]=o,Ou[o]=r,c=e[o],n=e[r],s=e[n],i=e[s],l=c<<24^o<<16^o<<8^(o^c),u=(n^s^i)<<24^(r^i)<<16^(r^s^i)<<8^(r^n^i);for(var p=0;p<4;++p)wa[p][r]=l,Mt[p][o]=u,l=l<<24|l>>>8,u=u<<24|u>>>8;r===0?r=a=1:(r=n^e[e[e[n^i]]],a^=e[e[a]])}}function jf(e,t){for(var r=e.slice(0),a,n=1,s=r.length,i=s+6+1,o=Ka*i,c=s;c<o;++c)a=r[c-1],c%s===0?(a=ct[a>>>16&255]<<24^ct[a>>>8&255]<<16^ct[a&255]<<8^ct[a>>>24]^Vf[n]<<24,n++):s>6&&c%s===4&&(a=ct[a>>>24]<<24^ct[a>>>16&255]<<16^ct[a>>>8&255]<<8^ct[a&255]),r[c]=r[c-s]^a;if(t){var l,u=Mt[0],p=Mt[1],f=Mt[2],x=Mt[3],m=r.slice(0);o=r.length;for(var c=0,y=o-Ka;c<o;c+=Ka,y-=Ka)if(c===0||c===o-Ka)m[c]=r[y],m[c+1]=r[y+3],m[c+2]=r[y+2],m[c+3]=r[y+1];else for(var b=0;b<Ka;++b)l=r[y+b],m[c+(3&-b)]=u[ct[l>>>24]]^p[ct[l>>>16&255]]^f[ct[l>>>8&255]]^x[ct[l&255]];r=m}return r}function Fu(e,t,r,a){var n=e.length/4-1,s,i,o,c,l;a?(s=Mt[0],i=Mt[1],o=Mt[2],c=Mt[3],l=Ou):(s=wa[0],i=wa[1],o=wa[2],c=wa[3],l=ct);var u,p,f,x,m,y,b;u=t[0]^e[0],p=t[a?3:1]^e[1],f=t[2]^e[2],x=t[a?1:3]^e[3];for(var S=3,B=1;B<n;++B)m=s[u>>>24]^i[p>>>16&255]^o[f>>>8&255]^c[x&255]^e[++S],y=s[p>>>24]^i[f>>>16&255]^o[x>>>8&255]^c[u&255]^e[++S],b=s[f>>>24]^i[x>>>16&255]^o[u>>>8&255]^c[p&255]^e[++S],x=s[x>>>24]^i[u>>>16&255]^o[p>>>8&255]^c[f&255]^e[++S],u=m,p=y,f=b;r[0]=l[u>>>24]<<24^l[p>>>16&255]<<16^l[f>>>8&255]<<8^l[x&255]^e[++S],r[a?3:1]=l[p>>>24]<<24^l[f>>>16&255]<<16^l[x>>>8&255]<<8^l[u&255]^e[++S],r[2]=l[f>>>24]<<24^l[x>>>16&255]<<16^l[u>>>8&255]<<8^l[p&255]^e[++S],r[a?1:3]=l[x>>>24]<<24^l[u>>>16&255]<<16^l[p>>>8&255]<<8^l[f&255]^e[++S]}function Wc(e){e=e||{};var t=(e.mode||"CBC").toUpperCase(),r="AES-"+t,a;e.decrypt?a=Te.cipher.createDecipher(r,e.key):a=Te.cipher.createCipher(r,e.key);var n=a.start;return a.start=function(s,i){var o=null;i instanceof Te.util.ByteBuffer&&(o=i,i={}),i=i||{},i.output=o,i.iv=s,n.call(a,i)},a}var uc=te;uc.pki=uc.pki||{};var Mu=uc.pki.oids=uc.oids=uc.oids||{};function D(e,t){Mu[e]=t,Mu[t]=e}function Ee(e,t){Mu[e]=t}D("1.2.840.113549.1.1.1","rsaEncryption"),D("1.2.840.113549.1.1.4","md5WithRSAEncryption"),D("1.2.840.113549.1.1.5","sha1WithRSAEncryption"),D("1.2.840.113549.1.1.7","RSAES-OAEP"),D("1.2.840.113549.1.1.8","mgf1"),D("1.2.840.113549.1.1.9","pSpecified"),D("1.2.840.113549.1.1.10","RSASSA-PSS"),D("1.2.840.113549.1.1.11","sha256WithRSAEncryption"),D("1.2.840.113549.1.1.12","sha384WithRSAEncryption"),D("1.2.840.113549.1.1.13","sha512WithRSAEncryption"),D("1.3.101.112","EdDSA25519"),D("1.2.840.10040.4.3","dsa-with-sha1"),D("1.3.14.3.2.7","desCBC"),D("1.3.14.3.2.26","sha1"),D("1.3.14.3.2.29","sha1WithRSASignature"),D("2.16.840.1.101.3.4.2.1","sha256"),D("2.16.840.1.101.3.4.2.2","sha384"),D("2.16.840.1.101.3.4.2.3","sha512"),D("2.16.840.1.101.3.4.2.4","sha224"),D("2.16.840.1.101.3.4.2.5","sha512-224"),D("2.16.840.1.101.3.4.2.6","sha512-256"),D("1.2.840.113549.2.2","md2"),D("1.2.840.113549.2.5","md5"),D("1.2.840.113549.1.7.1","data"),D("1.2.840.113549.1.7.2","signedData"),D("1.2.840.113549.1.7.3","envelopedData"),D("1.2.840.113549.1.7.4","signedAndEnvelopedData"),D("1.2.840.113549.1.7.5","digestedData"),D("1.2.840.113549.1.7.6","encryptedData"),D("1.2.840.113549.1.9.1","emailAddress"),D("1.2.840.113549.1.9.2","unstructuredName"),D("1.2.840.113549.1.9.3","contentType"),D("1.2.840.113549.1.9.4","messageDigest"),D("1.2.840.113549.1.9.5","signingTime"),D("1.2.840.113549.1.9.6","counterSignature"),D("1.2.840.113549.1.9.7","challengePassword"),D("1.2.840.113549.1.9.8","unstructuredAddress"),D("1.2.840.113549.1.9.14","extensionRequest"),D("1.2.840.113549.1.9.20","friendlyName"),D("1.2.840.113549.1.9.21","localKeyId"),D("1.2.840.113549.1.9.22.1","x509Certificate"),D("1.2.840.113549.1.12.10.1.1","keyBag"),D("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag"),D("1.2.840.113549.1.12.10.1.3","certBag"),D("1.2.840.113549.1.12.10.1.4","crlBag"),D("1.2.840.113549.1.12.10.1.5","secretBag"),D("1.2.840.113549.1.12.10.1.6","safeContentsBag"),D("1.2.840.113549.1.5.13","pkcs5PBES2"),D("1.2.840.113549.1.5.12","pkcs5PBKDF2"),D("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4"),D("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4"),D("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC"),D("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC"),D("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC"),D("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC"),D("1.2.840.113549.2.7","hmacWithSHA1"),D("1.2.840.113549.2.8","hmacWithSHA224"),D("1.2.840.113549.2.9","hmacWithSHA256"),D("1.2.840.113549.2.10","hmacWithSHA384"),D("1.2.840.113549.2.11","hmacWithSHA512"),D("1.2.840.113549.3.7","des-EDE3-CBC"),D("2.16.840.1.101.3.4.1.2","aes128-CBC"),D("2.16.840.1.101.3.4.1.22","aes192-CBC"),D("2.16.840.1.101.3.4.1.42","aes256-CBC"),D("2.5.4.3","commonName"),D("2.5.4.4","surname"),D("2.5.4.5","serialNumber"),D("2.5.4.6","countryName"),D("2.5.4.7","localityName"),D("2.5.4.8","stateOrProvinceName"),D("2.5.4.9","streetAddress"),D("2.5.4.10","organizationName"),D("2.5.4.11","organizationalUnitName"),D("2.5.4.12","title"),D("2.5.4.13","description"),D("2.5.4.15","businessCategory"),D("2.5.4.17","postalCode"),D("2.5.4.42","givenName"),D("2.5.4.65","pseudonym"),D("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName"),D("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName"),D("2.16.840.1.113730.1.1","nsCertType"),D("2.16.840.1.113730.1.13","nsComment"),Ee("2.5.29.1","authorityKeyIdentifier"),Ee("2.5.29.2","keyAttributes"),Ee("2.5.29.3","certificatePolicies"),Ee("2.5.29.4","keyUsageRestriction"),Ee("2.5.29.5","policyMapping"),Ee("2.5.29.6","subtreesConstraint"),Ee("2.5.29.7","subjectAltName"),Ee("2.5.29.8","issuerAltName"),Ee("2.5.29.9","subjectDirectoryAttributes"),Ee("2.5.29.10","basicConstraints"),Ee("2.5.29.11","nameConstraints"),Ee("2.5.29.12","policyConstraints"),Ee("2.5.29.13","basicConstraints"),D("2.5.29.14","subjectKeyIdentifier"),D("2.5.29.15","keyUsage"),Ee("2.5.29.16","privateKeyUsagePeriod"),D("2.5.29.17","subjectAltName"),D("2.5.29.18","issuerAltName"),D("2.5.29.19","basicConstraints"),Ee("2.5.29.20","cRLNumber"),Ee("2.5.29.21","cRLReason"),Ee("2.5.29.22","expirationDate"),Ee("2.5.29.23","instructionCode"),Ee("2.5.29.24","invalidityDate"),Ee("2.5.29.25","cRLDistributionPoints"),Ee("2.5.29.26","issuingDistributionPoint"),Ee("2.5.29.27","deltaCRLIndicator"),Ee("2.5.29.28","issuingDistributionPoint"),Ee("2.5.29.29","certificateIssuer"),Ee("2.5.29.30","nameConstraints"),D("2.5.29.31","cRLDistributionPoints"),D("2.5.29.32","certificatePolicies"),Ee("2.5.29.33","policyMappings"),Ee("2.5.29.34","policyConstraints"),D("2.5.29.35","authorityKeyIdentifier"),Ee("2.5.29.36","policyConstraints"),D("2.5.29.37","extKeyUsage"),Ee("2.5.29.46","freshestCRL"),Ee("2.5.29.54","inhibitAnyPolicy"),D("1.3.6.1.4.1.11129.2.4.2","timestampList"),D("1.3.6.1.5.5.7.1.1","authorityInfoAccess"),D("1.3.6.1.5.5.7.3.1","serverAuth"),D("1.3.6.1.5.5.7.3.2","clientAuth"),D("1.3.6.1.5.5.7.3.3","codeSigning"),D("1.3.6.1.5.5.7.3.4","emailProtection"),D("1.3.6.1.5.5.7.3.8","timeStamping");var Ie=te,q=Ie.asn1=Ie.asn1||{};q.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192},q.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30},q.maxDepth=256,q.create=function(e,t,r,a,n){if(Ie.util.isArray(a)){for(var s=[],i=0;i<a.length;++i)a[i]!==void 0&&s.push(a[i]);a=s}var o={tagClass:e,type:t,constructed:r,composed:r||Ie.util.isArray(a),value:a};return n&&"bitStringContents"in n&&(o.bitStringContents=n.bitStringContents,o.original=q.copy(o)),o},q.copy=function(e,t){var r;if(Ie.util.isArray(e)){r=[];for(var a=0;a<e.length;++a)r.push(q.copy(e[a],t));return r}return typeof e=="string"?e:(r={tagClass:e.tagClass,type:e.type,constructed:e.constructed,composed:e.composed,value:q.copy(e.value,t)},t&&!t.excludeBitStringContents&&(r.bitStringContents=e.bitStringContents),r)},q.equals=function(e,t,r){if(Ie.util.isArray(e)){if(!Ie.util.isArray(t)||e.length!==t.length)return!1;for(var a=0;a<e.length;++a)if(!q.equals(e[a],t[a]))return!1;return!0}if(typeof e!=typeof t)return!1;if(typeof e=="string")return e===t;var n=e.tagClass===t.tagClass&&e.type===t.type&&e.constructed===t.constructed&&e.composed===t.composed&&q.equals(e.value,t.value);return r&&r.includeBitStringContents&&(n=n&&e.bitStringContents===t.bitStringContents),n},q.getBerValueLength=function(e){var t=e.getByte();if(t!==128){var r,a=t&128;return a?r=e.getInt((t&127)<<3):r=t,r}};function pc(e,t,r){if(r>t){var a=new Error("Too few bytes to parse DER.");throw a.available=e.length(),a.remaining=t,a.requested=r,a}}var j1=function(e,t){var r=e.getByte();if(t--,r!==128){var a,n=r&128;if(!n)a=r;else{var s=r&127;pc(e,t,s),a=e.getInt(s<<3)}if(a<0)throw new Error("Negative length: "+a);return a}};q.fromDer=function(e,t){t===void 0&&(t={strict:!0,parseAllBytes:!0,decodeBitStrings:!0}),typeof t=="boolean"&&(t={strict:t,parseAllBytes:!0,decodeBitStrings:!0}),"strict"in t||(t.strict=!0),"parseAllBytes"in t||(t.parseAllBytes=!0),"decodeBitStrings"in t||(t.decodeBitStrings=!0),"maxDepth"in t||(t.maxDepth=q.maxDepth),typeof e=="string"&&(e=Ie.util.createBuffer(e));var r=e.length(),a=Yc(e,e.length(),0,t);if(t.parseAllBytes&&e.length()!==0){var n=new Error("Unparsed DER bytes remain after ASN.1 parsing.");throw n.byteCount=r,n.remaining=e.length(),n}return a};function Yc(e,t,r,a){if(r>=a.maxDepth)throw new Error("ASN.1 parsing error: Max depth exceeded.");var n;pc(e,t,2);var s=e.getByte();t--;var i=s&192,o=s&31;n=e.length();var c=j1(e,t);if(t-=n-e.length(),c!==void 0&&c>t){if(a.strict){var l=new Error("Too few bytes to read ASN.1 value.");throw l.available=e.length(),l.remaining=t,l.requested=c,l}c=t}var u,p,f=(s&32)===32;if(f)if(u=[],c===void 0)for(;;){if(pc(e,t,2),e.bytes(2)==="\0\0"){e.getBytes(2),t-=2;break}n=e.length(),u.push(Yc(e,t,r+1,a)),t-=n-e.length()}else for(;c>0;)n=e.length(),u.push(Yc(e,c,r+1,a)),t-=n-e.length(),c-=n-e.length();if(u===void 0&&i===q.Class.UNIVERSAL&&o===q.Type.BITSTRING&&(p=e.bytes(c)),u===void 0&&a.decodeBitStrings&&i===q.Class.UNIVERSAL&&o===q.Type.BITSTRING&&c>1){var x=e.read,m=t,y=0;if(o===q.Type.BITSTRING&&(pc(e,t,1),y=e.getByte(),t--),y===0)try{n=e.length();var b={strict:!0,decodeBitStrings:!0},S=Yc(e,t,r+1,b),B=n-e.length();t-=B,o==q.Type.BITSTRING&&B++;var _=S.tagClass;B===c&&(_===q.Class.UNIVERSAL||_===q.Class.CONTEXT_SPECIFIC)&&(u=[S])}catch{}u===void 0&&(e.read=x,t=m)}if(u===void 0){if(c===void 0){if(a.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");c=t}if(o===q.Type.BMPSTRING)for(u="";c>0;c-=2)pc(e,t,2),u+=String.fromCharCode(e.getInt16()),t-=2;else u=e.getBytes(c),t-=c}var P=p===void 0?null:{bitStringContents:p};return q.create(i,o,f,u,P)}q.toDer=function(e){var t=Ie.util.createBuffer(),r=e.tagClass|e.type,a=Ie.util.createBuffer(),n=!1;if("bitStringContents"in e&&(n=!0,e.original&&(n=q.equals(e,e.original))),n)a.putBytes(e.bitStringContents);else if(e.composed){e.constructed?r|=32:a.putByte(0);for(var s=0;s<e.value.length;++s)e.value[s]!==void 0&&a.putBuffer(q.toDer(e.value[s]))}else if(e.type===q.Type.BMPSTRING)for(var s=0;s<e.value.length;++s)a.putInt16(e.value.charCodeAt(s));else e.type===q.Type.INTEGER&&e.value.length>1&&(e.value.charCodeAt(0)===0&&(e.value.charCodeAt(1)&128)===0||e.value.charCodeAt(0)===255&&(e.value.charCodeAt(1)&128)===128)?a.putBytes(e.value.substr(1)):a.putBytes(e.value);if(t.putByte(r),a.length()<=127)t.putByte(a.length()&127);else{var i=a.length(),o="";do o+=String.fromCharCode(i&255),i=i>>>8;while(i>0);t.putByte(o.length|128);for(var s=o.length-1;s>=0;--s)t.putByte(o.charCodeAt(s))}return t.putBuffer(a),t},q.oidToDer=function(e){var t=e.split("."),r=Ie.util.createBuffer();r.putByte(40*parseInt(t[0],10)+parseInt(t[1],10));for(var a,n,s,i,o=2;o<t.length;++o){if(a=!0,n=[],s=parseInt(t[o],10),s>4294967295)throw new Error("OID value too large; max is 32-bits.");do i=s&127,s=s>>>7,a||(i|=128),n.push(i),a=!1;while(s>0);for(var c=n.length-1;c>=0;--c)r.putByte(n[c])}return r},q.derToOid=function(e){var t;typeof e=="string"&&(e=Ie.util.createBuffer(e));var r=e.getByte();t=Math.floor(r/40)+"."+r%40;for(var a=0;e.length()>0;){if(a>70368744177663)throw new Error("OID value too large; max is 53-bits.");r=e.getByte(),a=a*128,r&128?a+=r&127:(t+="."+(a+r),a=0)}return t},q.utcTimeToDate=function(e){var t=new Date,r=parseInt(e.substr(0,2),10);r=r>=50?1900+r:2e3+r;var a=parseInt(e.substr(2,2),10)-1,n=parseInt(e.substr(4,2),10),s=parseInt(e.substr(6,2),10),i=parseInt(e.substr(8,2),10),o=0;if(e.length>11){var c=e.charAt(10),l=10;c!=="+"&&c!=="-"&&(o=parseInt(e.substr(10,2),10),l+=2)}if(t.setUTCFullYear(r,a,n),t.setUTCHours(s,i,o,0),l&&(c=e.charAt(l),c==="+"||c==="-")){var u=parseInt(e.substr(l+1,2),10),p=parseInt(e.substr(l+4,2),10),f=u*60+p;f*=6e4,c==="+"?t.setTime(+t-f):t.setTime(+t+f)}return t},q.generalizedTimeToDate=function(e){var t=new Date,r=parseInt(e.substr(0,4),10),a=parseInt(e.substr(4,2),10)-1,n=parseInt(e.substr(6,2),10),s=parseInt(e.substr(8,2),10),i=parseInt(e.substr(10,2),10),o=parseInt(e.substr(12,2),10),c=0,l=0,u=!1;e.charAt(e.length-1)==="Z"&&(u=!0);var p=e.length-5,f=e.charAt(p);if(f==="+"||f==="-"){var x=parseInt(e.substr(p+1,2),10),m=parseInt(e.substr(p+4,2),10);l=x*60+m,l*=6e4,f==="+"&&(l*=-1),u=!0}return e.charAt(14)==="."&&(c=parseFloat(e.substr(14),10)*1e3),u?(t.setUTCFullYear(r,a,n),t.setUTCHours(s,i,o,c),t.setTime(+t+l)):(t.setFullYear(r,a,n),t.setHours(s,i,o,c)),t},q.dateToUtcTime=function(e){if(typeof e=="string")return e;var t="",r=[];r.push((""+e.getUTCFullYear()).substr(2)),r.push(""+(e.getUTCMonth()+1)),r.push(""+e.getUTCDate()),r.push(""+e.getUTCHours()),r.push(""+e.getUTCMinutes()),r.push(""+e.getUTCSeconds());for(var a=0;a<r.length;++a)r[a].length<2&&(t+="0"),t+=r[a];return t+="Z",t},q.dateToGeneralizedTime=function(e){if(typeof e=="string")return e;var t="",r=[];r.push(""+e.getUTCFullYear()),r.push(""+(e.getUTCMonth()+1)),r.push(""+e.getUTCDate()),r.push(""+e.getUTCHours()),r.push(""+e.getUTCMinutes()),r.push(""+e.getUTCSeconds());for(var a=0;a<r.length;++a)r[a].length<2&&(t+="0"),t+=r[a];return t+="Z",t},q.integerToDer=function(e){var t=Ie.util.createBuffer();if(e>=-128&&e<128)return t.putSignedInt(e,8);if(e>=-32768&&e<32768)return t.putSignedInt(e,16);if(e>=-8388608&&e<8388608)return t.putSignedInt(e,24);if(e>=-2147483648&&e<2147483648)return t.putSignedInt(e,32);var r=new Error("Integer too large; max is 32-bits.");throw r.integer=e,r},q.derToInteger=function(e){typeof e=="string"&&(e=Ie.util.createBuffer(e));var t=e.length()*8;if(t>32)throw new Error("Integer too large; max is 32-bits.");return e.getSignedInt(t)},q.validate=function(e,t,r,a){var n=!1;if((e.tagClass===t.tagClass||typeof t.tagClass>"u")&&(e.type===t.type||typeof t.type>"u"))if(e.constructed===t.constructed||typeof t.constructed>"u"){if(n=!0,t.value&&Ie.util.isArray(t.value))for(var s=0,i=0;n&&i<t.value.length;++i){var o=t.value[i];n=!!o.optional;var c=e.value[s];if(!c){o.optional||(n=!1,a&&a.push("["+t.name+'] Missing required element. Expected tag class "'+o.tagClass+'", type "'+o.type+'"'));continue}var l=typeof o.tagClass<"u"&&typeof o.type<"u";if(l&&(c.tagClass!==o.tagClass||c.type!==o.type))if(o.optional){n=!0;continue}else{n=!1,a&&a.push("["+t.name+"] Tag mismatch. Expected ("+o.tagClass+","+o.type+"), got ("+c.tagClass+","+c.type+")");break}var u=q.validate(c,o,r,a);if(u)++s,n=!0;else if(o.optional)n=!0;else{n=!1;break}}if(n&&r&&(t.capture&&(r[t.capture]=e.value),t.captureAsn1&&(r[t.captureAsn1]=e),t.captureBitStringContents&&"bitStringContents"in e&&(r[t.captureBitStringContents]=e.bitStringContents),t.captureBitStringValue&&"bitStringContents"in e))if(e.bitStringContents.length<2)r[t.captureBitStringValue]="";else{var p=e.bitStringContents.charCodeAt(0);if(p!==0)throw new Error("captureBitStringValue only supported for zero unused bits");r[t.captureBitStringValue]=e.bitStringContents.slice(1)}}else a&&a.push("["+t.name+'] Expected constructed "'+t.constructed+'", got "'+e.constructed+'"');else a&&(e.tagClass!==t.tagClass&&a.push("["+t.name+'] Expected tag class "'+t.tagClass+'", got "'+e.tagClass+'"'),e.type!==t.type&&a.push("["+t.name+'] Expected type "'+t.type+'", got "'+e.type+'"'));return n};var Kf=/[^\\u0000-\\u00ff]/;q.prettyPrint=function(e,t,r){var a="";t=t||0,r=r||2,t>0&&(a+=`
|
|
29
|
+
`);for(var n="",s=0;s<t*r;++s)n+=" ";switch(a+=n+"Tag: ",e.tagClass){case q.Class.UNIVERSAL:a+="Universal:";break;case q.Class.APPLICATION:a+="Application:";break;case q.Class.CONTEXT_SPECIFIC:a+="Context-Specific:";break;case q.Class.PRIVATE:a+="Private:";break}if(e.tagClass===q.Class.UNIVERSAL)switch(a+=e.type,e.type){case q.Type.NONE:a+=" (None)";break;case q.Type.BOOLEAN:a+=" (Boolean)";break;case q.Type.INTEGER:a+=" (Integer)";break;case q.Type.BITSTRING:a+=" (Bit string)";break;case q.Type.OCTETSTRING:a+=" (Octet string)";break;case q.Type.NULL:a+=" (Null)";break;case q.Type.OID:a+=" (Object Identifier)";break;case q.Type.ODESC:a+=" (Object Descriptor)";break;case q.Type.EXTERNAL:a+=" (External or Instance of)";break;case q.Type.REAL:a+=" (Real)";break;case q.Type.ENUMERATED:a+=" (Enumerated)";break;case q.Type.EMBEDDED:a+=" (Embedded PDV)";break;case q.Type.UTF8:a+=" (UTF8)";break;case q.Type.ROID:a+=" (Relative Object Identifier)";break;case q.Type.SEQUENCE:a+=" (Sequence)";break;case q.Type.SET:a+=" (Set)";break;case q.Type.PRINTABLESTRING:a+=" (Printable String)";break;case q.Type.IA5String:a+=" (IA5String (ASCII))";break;case q.Type.UTCTIME:a+=" (UTC time)";break;case q.Type.GENERALIZEDTIME:a+=" (Generalized time)";break;case q.Type.BMPSTRING:a+=" (BMP String)";break}else a+=e.type;if(a+=`
|
|
27
30
|
`,a+=n+"Constructed: "+e.constructed+`
|
|
28
|
-
`,e.composed){for(var i=0,o="",s=0;s<e.value.length;++s)e.value[s]!==void 0&&(i+=1,o+=
|
|
31
|
+
`,e.composed){for(var i=0,o="",s=0;s<e.value.length;++s)e.value[s]!==void 0&&(i+=1,o+=q.prettyPrint(e.value[s],t+1,r),s+1<e.value.length&&(o+=","));a+=n+"Sub values: "+i+o}else{if(a+=n+"Value: ",e.type===q.Type.OID){var c=q.derToOid(e.value);a+=c,Ie.pki&&Ie.pki.oids&&c in Ie.pki.oids&&(a+=" ("+Ie.pki.oids[c]+") ")}if(e.type===q.Type.INTEGER)try{a+=q.derToInteger(e.value)}catch{a+="0x"+Ie.util.bytesToHex(e.value)}else if(e.type===q.Type.BITSTRING){if(e.value.length>1?a+="0x"+Ie.util.bytesToHex(e.value.slice(1)):a+="(none)",e.value.length>0){var l=e.value.charCodeAt(0);l==1?a+=" (1 unused bit shown)":l>1&&(a+=" ("+l+" unused bits shown)")}}else if(e.type===q.Type.OCTETSTRING)Kf.test(e.value)||(a+="("+e.value+") "),a+="0x"+Ie.util.bytesToHex(e.value);else if(e.type===q.Type.UTF8)try{a+=Ie.util.decodeUtf8(e.value)}catch(u){if(u.message==="URI malformed")a+="0x"+Ie.util.bytesToHex(e.value)+" (malformed UTF8)";else throw u}else e.type===q.Type.PRINTABLESTRING||e.type===q.Type.IA5String?a+=e.value:Kf.test(e.value)?a+="0x"+Ie.util.bytesToHex(e.value):e.value.length===0?a+="[null]":a+=e.value}return a};var Xc=te;Xc.md=Xc.md||{},Xc.md.algorithms=Xc.md.algorithms||{};var Xt=te,K1=Xt.hmac=Xt.hmac||{};K1.create=function(){var e=null,t=null,r=null,a=null,n={};return n.start=function(s,i){if(s!==null)if(typeof s=="string")if(s=s.toLowerCase(),s in Xt.md.algorithms)t=Xt.md.algorithms[s].create();else throw new Error('Unknown hash algorithm "'+s+'"');else t=s;if(i===null)i=e;else{if(typeof i=="string")i=Xt.util.createBuffer(i);else if(Xt.util.isArray(i)){var o=i;i=Xt.util.createBuffer();for(var c=0;c<o.length;++c)i.putByte(o[c])}var l=i.length();l>t.blockLength&&(t.start(),t.update(i.bytes()),i=t.digest()),r=Xt.util.createBuffer(),a=Xt.util.createBuffer(),l=i.length();for(var c=0;c<l;++c){var o=i.at(c);r.putByte(54^o),a.putByte(92^o)}if(l<t.blockLength)for(var o=t.blockLength-l,c=0;c<o;++c)r.putByte(54),a.putByte(92);e=i,r=r.bytes(),a=a.bytes()}t.start(),t.update(r)},n.update=function(s){t.update(s)},n.getMac=function(){var s=t.digest().bytes();return t.start(),t.update(a),t.update(s),t.digest()},n.digest=n.getMac,n};var jt=te,zf=jt.md5=jt.md5||{};jt.md.md5=jt.md.algorithms.md5=zf,zf.create=function(){Hf||z1();var e=null,t=jt.util.createBuffer(),r=new Array(16),a={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,fullMessageLength:null,messageLengthSize:8};return a.start=function(){a.messageLength=0,a.fullMessageLength=a.messageLength64=[];for(var n=a.messageLengthSize/4,s=0;s<n;++s)a.fullMessageLength.push(0);return t=jt.util.createBuffer(),e={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878},a},a.start(),a.update=function(n,s){s==="utf8"&&(n=jt.util.encodeUtf8(n));var i=n.length;a.messageLength+=i,i=[i/4294967296>>>0,i>>>0];for(var o=a.fullMessageLength.length-1;o>=0;--o)a.fullMessageLength[o]+=i[1],i[1]=i[0]+(a.fullMessageLength[o]/4294967296>>>0),a.fullMessageLength[o]=a.fullMessageLength[o]>>>0,i[0]=i[1]/4294967296>>>0;return t.putBytes(n),$f(e,r,t),(t.read>2048||t.length()===0)&&t.compact(),a},a.digest=function(){var n=jt.util.createBuffer();n.putBytes(t.bytes());var s=a.fullMessageLength[a.fullMessageLength.length-1]+a.messageLengthSize,i=s&a.blockLength-1;n.putBytes(Vu.substr(0,a.blockLength-i));for(var o,c=0,l=a.fullMessageLength.length-1;l>=0;--l)o=a.fullMessageLength[l]*8+c,c=o/4294967296>>>0,n.putInt32Le(o>>>0);var u={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3};$f(u,r,n);var p=jt.util.createBuffer();return p.putInt32Le(u.h0),p.putInt32Le(u.h1),p.putInt32Le(u.h2),p.putInt32Le(u.h3),p},a};var Vu=null,Jc=null,dc=null,za=null,Hf=!1;function z1(){Vu="\x80",Vu+=jt.util.fillString("\0",64),Jc=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9],dc=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],za=new Array(64);for(var e=0;e<64;++e)za[e]=Math.floor(Math.abs(Math.sin(e+1))*4294967296);Hf=!0}function $f(e,t,r){for(var a,n,s,i,o,c,l,u,p=r.length();p>=64;){for(n=e.h0,s=e.h1,i=e.h2,o=e.h3,u=0;u<16;++u)t[u]=r.getInt32Le(),c=o^s&(i^o),a=n+c+za[u]+t[u],l=dc[u],n=o,o=i,i=s,s+=a<<l|a>>>32-l;for(;u<32;++u)c=i^o&(s^i),a=n+c+za[u]+t[Jc[u]],l=dc[u],n=o,o=i,i=s,s+=a<<l|a>>>32-l;for(;u<48;++u)c=s^i^o,a=n+c+za[u]+t[Jc[u]],l=dc[u],n=o,o=i,i=s,s+=a<<l|a>>>32-l;for(;u<64;++u)c=i^(s|~o),a=n+c+za[u]+t[Jc[u]],l=dc[u],n=o,o=i,i=s,s+=a<<l|a>>>32-l;e.h0=e.h0+n|0,e.h1=e.h1+s|0,e.h2=e.h2+i|0,e.h3=e.h3+o|0,p-=64}}var Zc=te,Gf=Zc.pem=Zc.pem||{};Gf.encode=function(e,t){t=t||{};var r="-----BEGIN "+e.type+`-----\r
|
|
29
32
|
`,a;if(e.procType&&(a={name:"Proc-Type",values:[String(e.procType.version),e.procType.type]},r+=el(a)),e.contentDomain&&(a={name:"Content-Domain",values:[e.contentDomain]},r+=el(a)),e.dekInfo&&(a={name:"DEK-Info",values:[e.dekInfo.algorithm]},e.dekInfo.parameters&&a.values.push(e.dekInfo.parameters),r+=el(a)),e.headers)for(var n=0;n<e.headers.length;++n)r+=el(e.headers[n]);return e.procType&&(r+=`\r
|
|
30
33
|
`),r+=Zc.util.encode64(e.body,t.maxline||64)+`\r
|
|
31
34
|
`,r+="-----END "+e.type+`-----\r
|
|
32
|
-
`,r},
|
|
35
|
+
`,r},Gf.decode=function(e){for(var t=[],r=/\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n?([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g,a=/([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/,n=/\r?\n/,s;s=r.exec(e),!!s;){var i=s[1];i==="NEW CERTIFICATE REQUEST"&&(i="CERTIFICATE REQUEST");var o={type:i,procType:null,contentDomain:null,dekInfo:null,headers:[],body:Zc.util.decode64(s[3])};if(t.push(o),!!s[2]){for(var c=s[2].split(n),l=0;s&&l<c.length;){for(var u=c[l].replace(/\s+$/,""),p=l+1;p<c.length;++p){var f=c[p];if(!/\s/.test(f[0]))break;u+=f,l=p}if(s=u.match(a),s){for(var x={name:s[1],values:[]},m=s[2].split(","),y=0;y<m.length;++y)x.values.push(H1(m[y]));if(o.procType)if(!o.contentDomain&&x.name==="Content-Domain")o.contentDomain=m[0]||"";else if(!o.dekInfo&&x.name==="DEK-Info"){if(x.values.length===0)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must have at least one subfield.');o.dekInfo={algorithm:m[0],parameters:m[1]||null}}else o.headers.push(x);else{if(x.name!=="Proc-Type")throw new Error('Invalid PEM formatted message. The first encapsulated header must be "Proc-Type".');if(x.values.length!==2)throw new Error('Invalid PEM formatted message. The "Proc-Type" header must have two subfields.');o.procType={version:m[0],type:m[1]}}}++l}if(o.procType==="ENCRYPTED"&&!o.dekInfo)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must be present if "Proc-Type" is "ENCRYPTED".')}}if(t.length===0)throw new Error("Invalid PEM formatted message.");return t};function el(e){for(var t=e.name+": ",r=[],a=function(c,l){return" "+l},n=0;n<e.values.length;++n)r.push(e.values[n].replace(/^(\S+\r\n)/,a));t+=r.join(",")+`\r
|
|
33
36
|
`;for(var s=0,i=-1,n=0;n<t.length;++n,++s)if(s>65&&i!==-1){var o=t[i];o===","?(++i,t=t.substr(0,i)+`\r
|
|
34
37
|
`+t.substr(i)):t=t.substr(0,i)+`\r
|
|
35
|
-
`+o+t.substr(i+1),s=n-i-1,i=-1,++n}else(t[n]===" "||t[n]===" "||t[n]===",")&&(i=n);return t}function k1(e){return e.replace(/^\s+/,"")}var Re=ee;Re.des=Re.des||{},Re.des.startEncrypting=function(e,t,r,a){var n=tl({key:e,output:r,decrypt:!1,mode:a||(t===null?"ECB":"CBC")});return n.start(t),n},Re.des.createEncryptionCipher=function(e,t){return tl({key:e,output:null,decrypt:!1,mode:t})},Re.des.startDecrypting=function(e,t,r,a){var n=tl({key:e,output:r,decrypt:!0,mode:a||(t===null?"ECB":"CBC")});return n.start(t),n},Re.des.createDecryptionCipher=function(e,t){return tl({key:e,output:null,decrypt:!0,mode:t})},Re.des.Algorithm=function(e,t){var r=this;r.name=e,r.mode=new t({blockSize:8,cipher:{encrypt:function(a,n){return $f(r._keys,a,n,!1)},decrypt:function(a,n){return $f(r._keys,a,n,!0)}}}),r._init=!1},Re.des.Algorithm.prototype.initialize=function(e){if(!this._init){var t=Re.util.createBuffer(e.key);if(this.name.indexOf("3DES")===0&&t.length()!==24)throw new Error("Invalid Triple-DES key size: "+t.length()*8);this._keys=V1(t),this._init=!0}},Kt("DES-ECB",Re.cipher.modes.ecb),Kt("DES-CBC",Re.cipher.modes.cbc),Kt("DES-CFB",Re.cipher.modes.cfb),Kt("DES-OFB",Re.cipher.modes.ofb),Kt("DES-CTR",Re.cipher.modes.ctr),Kt("3DES-ECB",Re.cipher.modes.ecb),Kt("3DES-CBC",Re.cipher.modes.cbc),Kt("3DES-CFB",Re.cipher.modes.cfb),Kt("3DES-OFB",Re.cipher.modes.ofb),Kt("3DES-CTR",Re.cipher.modes.ctr);function Kt(e,t){var r=function(){return new Re.des.Algorithm(e,t)};Re.cipher.registerAlgorithm(e,r)}var N1=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],L1=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],U1=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],D1=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],P1=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],O1=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],F1=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],M1=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function V1(e){for(var t=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],r=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],a=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],n=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],s=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],i=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],o=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],c=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],l=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],u=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],p=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],f=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],x=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],m=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],y=e.length()>8?3:1,b=[],S=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],B=0,_,D=0;D<y;D++){var k=e.getInt32(),P=e.getInt32();_=(k>>>4^P)&252645135,P^=_,k^=_<<4,_=(P>>>-16^k)&65535,k^=_,P^=_<<-16,_=(k>>>2^P)&858993459,P^=_,k^=_<<2,_=(P>>>-16^k)&65535,k^=_,P^=_<<-16,_=(k>>>1^P)&1431655765,P^=_,k^=_<<1,_=(P>>>8^k)&16711935,k^=_,P^=_<<8,_=(k>>>1^P)&1431655765,P^=_,k^=_<<1,_=k<<8|P>>>20&240,k=P<<24|P<<8&16711680|P>>>8&65280|P>>>24&240,P=_;for(var z=0;z<S.length;++z){S[z]?(k=k<<2|k>>>26,P=P<<2|P>>>26):(k=k<<1|k>>>27,P=P<<1|P>>>27),k&=-15,P&=-15;var W=t[k>>>28]|r[k>>>24&15]|a[k>>>20&15]|n[k>>>16&15]|s[k>>>12&15]|i[k>>>8&15]|o[k>>>4&15],J=c[P>>>28]|l[P>>>24&15]|u[P>>>20&15]|p[P>>>16&15]|f[P>>>12&15]|x[P>>>8&15]|m[P>>>4&15];_=(J>>>16^W)&65535,b[B++]=W^_,b[B++]=J^_<<16}}return b}function $f(e,t,r,a){var n=e.length===32?3:9,s;n===3?s=a?[30,-2,-2]:[0,32,2]:s=a?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var i,o=t[0],c=t[1];i=(o>>>4^c)&252645135,c^=i,o^=i<<4,i=(o>>>16^c)&65535,c^=i,o^=i<<16,i=(c>>>2^o)&858993459,o^=i,c^=i<<2,i=(c>>>8^o)&16711935,o^=i,c^=i<<8,i=(o>>>1^c)&1431655765,c^=i,o^=i<<1,o=o<<1|o>>>31,c=c<<1|c>>>31;for(var l=0;l<n;l+=3){for(var u=s[l+1],p=s[l+2],f=s[l];f!=u;f+=p){var x=c^e[f],m=(c>>>4|c<<28)^e[f+1];i=o,o=c,c=i^(L1[x>>>24&63]|D1[x>>>16&63]|O1[x>>>8&63]|M1[x&63]|N1[m>>>24&63]|U1[m>>>16&63]|P1[m>>>8&63]|F1[m&63])}i=o,o=c,c=i}o=o>>>1|o<<31,c=c>>>1|c<<31,i=(o>>>1^c)&1431655765,c^=i,o^=i<<1,i=(c>>>8^o)&16711935,o^=i,c^=i<<8,i=(c>>>2^o)&858993459,o^=i,c^=i<<2,i=(o>>>16^c)&65535,c^=i,o^=i<<16,i=(o>>>4^c)&252645135,c^=i,o^=i<<4,r[0]=o,r[1]=c}function tl(e){e=e||{};var t=(e.mode||"CBC").toUpperCase(),r="DES-"+t,a;e.decrypt?a=Re.cipher.createDecipher(r,e.key):a=Re.cipher.createCipher(r,e.key);var n=a.start;return a.start=function(s,i){var o=null;i instanceof Re.util.ByteBuffer&&(o=i,i={}),i=i||{},i.output=o,i.iv=s,n.call(a,i)},a}var ut=ee,q1=ut.pkcs5=ut.pkcs5||{},Jt;ut.util.isNodejs&&!ut.options.usePureJavaScript&&(Jt=tr),ut.pbkdf2=q1.pbkdf2=function(e,t,r,a,n,s){if(typeof n=="function"&&(s=n,n=null),ut.util.isNodejs&&!ut.options.usePureJavaScript&&Jt.pbkdf2&&(n===null||typeof n!="object")&&(Jt.pbkdf2Sync.length>4||!n||n==="sha1"))return typeof n!="string"&&(n="sha1"),e=Buffer.from(e,"binary"),t=Buffer.from(t,"binary"),s?Jt.pbkdf2Sync.length===4?Jt.pbkdf2(e,t,r,a,function(_,D){if(_)return s(_);s(null,D.toString("binary"))}):Jt.pbkdf2(e,t,r,a,n,function(_,D){if(_)return s(_);s(null,D.toString("binary"))}):Jt.pbkdf2Sync.length===4?Jt.pbkdf2Sync(e,t,r,a).toString("binary"):Jt.pbkdf2Sync(e,t,r,a,n).toString("binary");if((typeof n>"u"||n===null)&&(n="sha1"),typeof n=="string"){if(!(n in ut.md.algorithms))throw new Error("Unknown hash algorithm: "+n);n=ut.md[n].create()}var i=n.digestLength;if(a>4294967295*i){var o=new Error("Derived key is too long.");if(s)return s(o);throw o}var c=Math.ceil(a/i),l=a-(c-1)*i,u=ut.hmac.create();u.start(n,e);var p="",f,x,m;if(!s){for(var y=1;y<=c;++y){u.start(null,null),u.update(t),u.update(ut.util.int32ToBytes(y)),f=m=u.digest().getBytes();for(var b=2;b<=r;++b)u.start(null,null),u.update(m),x=u.digest().getBytes(),f=ut.util.xorBytes(f,x,i),m=x;p+=y<c?f:f.substr(0,l)}return p}var y=1,b;function S(){if(y>c)return s(null,p);u.start(null,null),u.update(t),u.update(ut.util.int32ToBytes(y)),f=m=u.digest().getBytes(),b=2,B()}function B(){if(b<=r)return u.start(null,null),u.update(m),x=u.digest().getBytes(),f=ut.util.xorBytes(f,x,i),m=x,++b,ut.util.setImmediate(B);p+=y<c?f:f.substr(0,l),++y,S()}S()};var zt=ee,Gf=zt.sha256=zt.sha256||{};zt.md.sha256=zt.md.algorithms.sha256=Gf,Gf.create=function(){Qf||j1();var e=null,t=zt.util.createBuffer(),r=new Array(64),a={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8};return a.start=function(){a.messageLength=0,a.fullMessageLength=a.messageLength64=[];for(var n=a.messageLengthSize/4,s=0;s<n;++s)a.fullMessageLength.push(0);return t=zt.util.createBuffer(),e={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},a},a.start(),a.update=function(n,s){s==="utf8"&&(n=zt.util.encodeUtf8(n));var i=n.length;a.messageLength+=i,i=[i/4294967296>>>0,i>>>0];for(var o=a.fullMessageLength.length-1;o>=0;--o)a.fullMessageLength[o]+=i[1],i[1]=i[0]+(a.fullMessageLength[o]/4294967296>>>0),a.fullMessageLength[o]=a.fullMessageLength[o]>>>0,i[0]=i[1]/4294967296>>>0;return t.putBytes(n),Xf(e,r,t),(t.read>2048||t.length()===0)&&t.compact(),a},a.digest=function(){var n=zt.util.createBuffer();n.putBytes(t.bytes());var s=a.fullMessageLength[a.fullMessageLength.length-1]+a.messageLengthSize,i=s&a.blockLength-1;n.putBytes(Mu.substr(0,a.blockLength-i));for(var o,c,l=a.fullMessageLength[0]*8,u=0;u<a.fullMessageLength.length-1;++u)o=a.fullMessageLength[u+1]*8,c=o/4294967296>>>0,l+=c,n.putInt32(l>>>0),l=o>>>0;n.putInt32(l);var p={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4,h5:e.h5,h6:e.h6,h7:e.h7};Xf(p,r,n);var f=zt.util.createBuffer();return f.putInt32(p.h0),f.putInt32(p.h1),f.putInt32(p.h2),f.putInt32(p.h3),f.putInt32(p.h4),f.putInt32(p.h5),f.putInt32(p.h6),f.putInt32(p.h7),f},a};var Mu=null,Qf=!1,Wf=null;function j1(){Mu="\x80",Mu+=zt.util.fillString("\0",64),Wf=[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],Qf=!0}function Xf(e,t,r){for(var a,n,s,i,o,c,l,u,p,f,x,m,y,b,S,B=r.length();B>=64;){for(l=0;l<16;++l)t[l]=r.getInt32();for(;l<64;++l)a=t[l-2],a=(a>>>17|a<<15)^(a>>>19|a<<13)^a>>>10,n=t[l-15],n=(n>>>7|n<<25)^(n>>>18|n<<14)^n>>>3,t[l]=a+t[l-7]+n+t[l-16]|0;for(u=e.h0,p=e.h1,f=e.h2,x=e.h3,m=e.h4,y=e.h5,b=e.h6,S=e.h7,l=0;l<64;++l)i=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7),o=b^m&(y^b),s=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),c=u&p|f&(u^p),a=S+i+o+Wf[l]+t[l],n=s+c,S=b,b=y,y=m,m=x+a>>>0,x=f,f=p,p=u,u=a+n>>>0;e.h0=e.h0+u|0,e.h1=e.h1+p|0,e.h2=e.h2+f|0,e.h3=e.h3+x|0,e.h4=e.h4+m|0,e.h5=e.h5+y|0,e.h6=e.h6+b|0,e.h7=e.h7+S|0,B-=64}}var Ht=ee,al=null;Ht.util.isNodejs&&!Ht.options.usePureJavaScript&&!process.versions["node-webkit"]&&(al=tr);var K1=Ht.prng=Ht.prng||{};K1.create=function(e){for(var t={plugin:e,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},r=e.md,a=new Array(32),n=0;n<32;++n)a[n]=r.create();t.pools=a,t.pool=0,t.generate=function(l,u){if(!u)return t.generateSync(l);var p=t.plugin.cipher,f=t.plugin.increment,x=t.plugin.formatKey,m=t.plugin.formatSeed,y=Ht.util.createBuffer();t.key=null,b();function b(S){if(S)return u(S);if(y.length()>=l)return u(null,y.getBytes(l));if(t.generated>1048575&&(t.key=null),t.key===null)return Ht.util.nextTick(function(){s(b)});var B=p(t.key,t.seed);t.generated+=B.length,y.putBytes(B),t.key=x(p(t.key,f(t.seed))),t.seed=m(p(t.key,t.seed)),Ht.util.setImmediate(b)}},t.generateSync=function(l){var u=t.plugin.cipher,p=t.plugin.increment,f=t.plugin.formatKey,x=t.plugin.formatSeed;t.key=null;for(var m=Ht.util.createBuffer();m.length()<l;){t.generated>1048575&&(t.key=null),t.key===null&&i();var y=u(t.key,t.seed);t.generated+=y.length,m.putBytes(y),t.key=f(u(t.key,p(t.seed))),t.seed=x(u(t.key,t.seed))}return m.getBytes(l)};function s(l){if(t.pools[0].messageLength>=32)return o(),l();var u=32-t.pools[0].messageLength<<5;t.seedFile(u,function(p,f){if(p)return l(p);t.collect(f),o(),l()})}function i(){if(t.pools[0].messageLength>=32)return o();var l=32-t.pools[0].messageLength<<5;t.collect(t.seedFileSync(l)),o()}function o(){t.reseeds=t.reseeds===4294967295?0:t.reseeds+1;var l=t.plugin.md.create();l.update(t.keyBytes);for(var u=1,p=0;p<32;++p)t.reseeds%u===0&&(l.update(t.pools[p].digest().getBytes()),t.pools[p].start()),u=u<<1;t.keyBytes=l.digest().getBytes(),l.start(),l.update(t.keyBytes);var f=l.digest().getBytes();t.key=t.plugin.formatKey(t.keyBytes),t.seed=t.plugin.formatSeed(f),t.generated=0}function c(l){var u=null,p=Ht.util.globalScope,f=p.crypto||p.msCrypto;f&&f.getRandomValues&&(u=function(k){return f.getRandomValues(k)});var x=Ht.util.createBuffer();if(u)for(;x.length()<l;){var m=Math.max(1,Math.min(l-x.length(),65536)/4),y=new Uint32Array(Math.floor(m));try{u(y);for(var b=0;b<y.length;++b)x.putInt32(y[b])}catch(k){if(!(typeof QuotaExceededError<"u"&&k instanceof QuotaExceededError))throw k}}if(x.length()<l)for(var S,B,_,D=Math.floor(Math.random()*65536);x.length()<l;){B=16807*(D&65535),S=16807*(D>>16),B+=(S&32767)<<16,B+=S>>15,B=(B&2147483647)+(B>>31),D=B&4294967295;for(var b=0;b<3;++b)_=D>>>(b<<3),_^=Math.floor(Math.random()*256),x.putByte(_&255)}return x.getBytes(l)}return al?(t.seedFile=function(l,u){al.randomBytes(l,function(p,f){if(p)return u(p);u(null,f.toString())})},t.seedFileSync=function(l){return al.randomBytes(l).toString()}):(t.seedFile=function(l,u){try{u(null,c(l))}catch(p){u(p)}},t.seedFileSync=c),t.collect=function(l){for(var u=l.length,p=0;p<u;++p)t.pools[t.pool].update(l.substr(p,1)),t.pool=t.pool===31?0:t.pool+1},t.collectInt=function(l,u){for(var p="",f=0;f<u;f+=8)p+=String.fromCharCode(l>>f&255);t.collect(p)},t.registerWorker=function(l){if(l===self)t.seedFile=function(p,f){function x(m){var y=m.data;y.forge&&y.forge.prng&&(self.removeEventListener("message",x),f(y.forge.prng.err,y.forge.prng.bytes))}self.addEventListener("message",x),self.postMessage({forge:{prng:{needed:p}}})};else{var u=function(p){var f=p.data;f.forge&&f.forge.prng&&t.seedFile(f.forge.prng.needed,function(x,m){l.postMessage({forge:{prng:{err:x,bytes:m}}})})};l.addEventListener("message",u)}},t};var je=ee;(function(){if(je.random&&je.random.getBytes){je.random;return}(function(e){var t={},r=new Array(4),a=je.util.createBuffer();t.formatKey=function(p){var f=je.util.createBuffer(p);return p=new Array(4),p[0]=f.getInt32(),p[1]=f.getInt32(),p[2]=f.getInt32(),p[3]=f.getInt32(),je.aes._expandKey(p,!1)},t.formatSeed=function(p){var f=je.util.createBuffer(p);return p=new Array(4),p[0]=f.getInt32(),p[1]=f.getInt32(),p[2]=f.getInt32(),p[3]=f.getInt32(),p},t.cipher=function(p,f){return je.aes._updateBlock(p,f,r,!1),a.putInt32(r[0]),a.putInt32(r[1]),a.putInt32(r[2]),a.putInt32(r[3]),a.getBytes()},t.increment=function(p){return++p[3],p},t.md=je.md.sha256;function n(){var p=je.prng.create(t);return p.getBytes=function(f,x){return p.generate(f,x)},p.getBytesSync=function(f){return p.generate(f)},p}var s=n(),i=null,o=je.util.globalScope,c=o.crypto||o.msCrypto;if(c&&c.getRandomValues&&(i=function(p){return c.getRandomValues(p)}),je.options.usePureJavaScript||!je.util.isNodejs&&!i){if(s.collectInt(+new Date,32),typeof navigator<"u"){var l="";for(var u in navigator)try{typeof navigator[u]=="string"&&(l+=navigator[u])}catch{}s.collect(l),l=null}e&&(e().mousemove(function(p){s.collectInt(p.clientX,16),s.collectInt(p.clientY,16)}),e().keypress(function(p){s.collectInt(p.charCode,8)}))}if(!je.random)je.random=s;else for(var u in s)je.random[u]=s[u];je.random.createInstance=n,je.random})(typeof jQuery<"u"?jQuery:null)})();var Tt=ee,Vu=[217,120,249,196,25,221,181,237,40,233,253,121,74,160,216,157,198,126,55,131,43,118,83,142,98,76,100,136,68,139,251,162,23,154,89,245,135,179,79,19,97,69,109,141,9,129,125,50,189,143,64,235,134,183,123,11,240,149,33,34,92,107,78,130,84,214,101,147,206,96,178,28,115,86,192,20,167,140,241,220,18,117,202,31,59,190,228,209,66,61,212,48,163,60,182,38,111,191,14,218,70,105,7,87,39,242,29,155,188,148,67,3,248,17,199,246,144,239,62,231,6,195,213,47,200,102,30,215,8,232,234,222,128,82,238,247,132,170,114,172,53,77,106,42,150,26,210,113,90,21,73,116,75,159,208,94,4,24,164,236,194,224,65,110,15,81,203,204,36,145,175,80,161,244,112,57,153,124,58,133,35,184,180,122,252,2,54,91,37,85,151,49,45,93,250,152,227,138,146,174,5,223,41,16,103,108,186,201,211,0,230,207,225,158,168,44,99,22,1,63,88,226,137,169,13,56,52,27,171,51,255,176,187,72,12,95,185,177,205,46,197,243,219,71,229,165,156,119,10,166,32,104,254,127,193,173],Yf=[1,2,3,5],z1=function(e,t){return e<<t&65535|(e&65535)>>16-t},H1=function(e,t){return(e&65535)>>t|e<<16-t&65535};Tt.rc2=Tt.rc2||{},Tt.rc2.expandKey=function(e,t){typeof e=="string"&&(e=Tt.util.createBuffer(e)),t=t||128;var r=e,a=e.length(),n=t,s=Math.ceil(n/8),i=255>>(n&7),o;for(o=a;o<128;o++)r.putByte(Vu[r.at(o-1)+r.at(o-a)&255]);for(r.setAt(128-s,Vu[r.at(128-s)&i]),o=127-s;o>=0;o--)r.setAt(o,Vu[r.at(o+1)^r.at(o+s)]);return r};var Jf=function(e,t,r){var a=!1,n=null,s=null,i=null,o,c,l,u,p=[];for(e=Tt.rc2.expandKey(e,t),l=0;l<64;l++)p.push(e.getInt16Le());r?(o=function(m){for(l=0;l<4;l++)m[l]+=p[u]+(m[(l+3)%4]&m[(l+2)%4])+(~m[(l+3)%4]&m[(l+1)%4]),m[l]=z1(m[l],Yf[l]),u++},c=function(m){for(l=0;l<4;l++)m[l]+=p[m[(l+3)%4]&63]}):(o=function(m){for(l=3;l>=0;l--)m[l]=H1(m[l],Yf[l]),m[l]-=p[u]+(m[(l+3)%4]&m[(l+2)%4])+(~m[(l+3)%4]&m[(l+1)%4]),u--},c=function(m){for(l=3;l>=0;l--)m[l]-=p[m[(l+3)%4]&63]});var f=function(m){var y=[];for(l=0;l<4;l++){var b=n.getInt16Le();i!==null&&(r?b^=i.getInt16Le():i.putInt16Le(b)),y.push(b&65535)}u=r?0:63;for(var S=0;S<m.length;S++)for(var B=0;B<m[S][0];B++)m[S][1](y);for(l=0;l<4;l++)i!==null&&(r?i.putInt16Le(y[l]):y[l]^=i.getInt16Le()),s.putInt16Le(y[l])},x=null;return x={start:function(m,y){m&&typeof m=="string"&&(m=Tt.util.createBuffer(m)),a=!1,n=Tt.util.createBuffer(),s=y||new Tt.util.createBuffer,i=m,x.output=s},update:function(m){for(a||n.putBuffer(m);n.length()>=8;)f([[5,o],[1,c],[6,o],[1,c],[5,o]])},finish:function(m){var y=!0;if(r)if(m)y=m(8,n,!r);else{var b=n.length()===8?8:8-n.length();n.fillWithByte(b,b)}if(y&&(a=!0,x.update()),!r&&(y=n.length()===0,y))if(m)y=m(8,s,!r);else{var S=s.length(),B=s.at(S-1);B>S?y=!1:s.truncate(B)}return y}},x};Tt.rc2.startEncrypting=function(e,t,r){var a=Tt.rc2.createEncryptionCipher(e,128);return a.start(t,r),a},Tt.rc2.createEncryptionCipher=function(e,t){return Jf(e,t,!0)},Tt.rc2.startDecrypting=function(e,t,r){var a=Tt.rc2.createDecryptionCipher(e,128);return a.start(t,r),a},Tt.rc2.createDecryptionCipher=function(e,t){return Jf(e,t,!1)};var qu=ee;qu.jsbn=qu.jsbn||{};var Zt;function N(e,t,r){this.data=[],e!=null&&(typeof e=="number"?this.fromNumber(e,t,r):t==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,t))}qu.jsbn.BigInteger=N;function me(){return new N(null)}function $1(e,t,r,a,n,s){for(;--s>=0;){var i=t*this.data[e++]+r.data[a]+n;n=Math.floor(i/67108864),r.data[a++]=i&67108863}return n}function G1(e,t,r,a,n,s){for(var i=t&32767,o=t>>15;--s>=0;){var c=this.data[e]&32767,l=this.data[e++]>>15,u=o*c+l*i;c=i*c+((u&32767)<<15)+r.data[a]+(n&1073741823),n=(c>>>30)+(u>>>15)+o*l+(n>>>30),r.data[a++]=c&1073741823}return n}function Zf(e,t,r,a,n,s){for(var i=t&16383,o=t>>14;--s>=0;){var c=this.data[e]&16383,l=this.data[e++]>>14,u=o*c+l*i;c=i*c+((u&16383)<<14)+r.data[a]+n,n=(c>>28)+(u>>14)+o*l,r.data[a++]=c&268435455}return n}typeof navigator>"u"?(N.prototype.am=Zf,Zt=28):navigator.appName=="Microsoft Internet Explorer"?(N.prototype.am=G1,Zt=30):navigator.appName!="Netscape"?(N.prototype.am=$1,Zt=26):(N.prototype.am=Zf,Zt=28),N.prototype.DB=Zt,N.prototype.DM=(1<<Zt)-1,N.prototype.DV=1<<Zt;var ju=52;N.prototype.FV=Math.pow(2,ju),N.prototype.F1=ju-Zt,N.prototype.F2=2*Zt-ju;var Q1="0123456789abcdefghijklmnopqrstuvwxyz",rl=new Array,$a,kt;for($a=48,kt=0;kt<=9;++kt)rl[$a++]=kt;for($a=97,kt=10;kt<36;++kt)rl[$a++]=kt;for($a=65,kt=10;kt<36;++kt)rl[$a++]=kt;function e0(e){return Q1.charAt(e)}function t0(e,t){var r=rl[e.charCodeAt(t)];return r??-1}function W1(e){for(var t=this.t-1;t>=0;--t)e.data[t]=this.data[t];e.t=this.t,e.s=this.s}function X1(e){this.t=1,this.s=e<0?-1:0,e>0?this.data[0]=e:e<-1?this.data[0]=e+this.DV:this.t=0}function ca(e){var t=me();return t.fromInt(e),t}function Y1(e,t){var r;if(t==16)r=4;else if(t==8)r=3;else if(t==256)r=8;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else{this.fromRadix(e,t);return}this.t=0,this.s=0;for(var a=e.length,n=!1,s=0;--a>=0;){var i=r==8?e[a]&255:t0(e,a);if(i<0){e.charAt(a)=="-"&&(n=!0);continue}n=!1,s==0?this.data[this.t++]=i:s+r>this.DB?(this.data[this.t-1]|=(i&(1<<this.DB-s)-1)<<s,this.data[this.t++]=i>>this.DB-s):this.data[this.t-1]|=i<<s,s+=r,s>=this.DB&&(s-=this.DB)}r==8&&(e[0]&128)!=0&&(this.s=-1,s>0&&(this.data[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),n&&N.ZERO.subTo(this,this)}function J1(){for(var e=this.s&this.DM;this.t>0&&this.data[this.t-1]==e;)--this.t}function Z1(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else return this.toRadix(e);var r=(1<<t)-1,a,n=!1,s="",i=this.t,o=this.DB-i*this.DB%t;if(i-- >0)for(o<this.DB&&(a=this.data[i]>>o)>0&&(n=!0,s=e0(a));i>=0;)o<t?(a=(this.data[i]&(1<<o)-1)<<t-o,a|=this.data[--i]>>(o+=this.DB-t)):(a=this.data[i]>>(o-=t)&r,o<=0&&(o+=this.DB,--i)),a>0&&(n=!0),n&&(s+=e0(a));return n?s:"0"}function eb(){var e=me();return N.ZERO.subTo(this,e),e}function tb(){return this.s<0?this.negate():this}function ab(e){var t=this.s-e.s;if(t!=0)return t;var r=this.t;if(t=r-e.t,t!=0)return this.s<0?-t:t;for(;--r>=0;)if((t=this.data[r]-e.data[r])!=0)return t;return 0}function nl(e){var t=1,r;return(r=e>>>16)!=0&&(e=r,t+=16),(r=e>>8)!=0&&(e=r,t+=8),(r=e>>4)!=0&&(e=r,t+=4),(r=e>>2)!=0&&(e=r,t+=2),(r=e>>1)!=0&&(e=r,t+=1),t}function rb(){return this.t<=0?0:this.DB*(this.t-1)+nl(this.data[this.t-1]^this.s&this.DM)}function nb(e,t){var r;for(r=this.t-1;r>=0;--r)t.data[r+e]=this.data[r];for(r=e-1;r>=0;--r)t.data[r]=0;t.t=this.t+e,t.s=this.s}function ib(e,t){for(var r=e;r<this.t;++r)t.data[r-e]=this.data[r];t.t=Math.max(this.t-e,0),t.s=this.s}function sb(e,t){var r=e%this.DB,a=this.DB-r,n=(1<<a)-1,s=Math.floor(e/this.DB),i=this.s<<r&this.DM,o;for(o=this.t-1;o>=0;--o)t.data[o+s+1]=this.data[o]>>a|i,i=(this.data[o]&n)<<r;for(o=s-1;o>=0;--o)t.data[o]=0;t.data[s]=i,t.t=this.t+s+1,t.s=this.s,t.clamp()}function ob(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t){t.t=0;return}var a=e%this.DB,n=this.DB-a,s=(1<<a)-1;t.data[0]=this.data[r]>>a;for(var i=r+1;i<this.t;++i)t.data[i-r-1]|=(this.data[i]&s)<<n,t.data[i-r]=this.data[i]>>a;a>0&&(t.data[this.t-r-1]|=(this.s&s)<<n),t.t=this.t-r,t.clamp()}function cb(e,t){for(var r=0,a=0,n=Math.min(e.t,this.t);r<n;)a+=this.data[r]-e.data[r],t.data[r++]=a&this.DM,a>>=this.DB;if(e.t<this.t){for(a-=e.s;r<this.t;)a+=this.data[r],t.data[r++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;r<e.t;)a-=e.data[r],t.data[r++]=a&this.DM,a>>=this.DB;a-=e.s}t.s=a<0?-1:0,a<-1?t.data[r++]=this.DV+a:a>0&&(t.data[r++]=a),t.t=r,t.clamp()}function lb(e,t){var r=this.abs(),a=e.abs(),n=r.t;for(t.t=n+a.t;--n>=0;)t.data[n]=0;for(n=0;n<a.t;++n)t.data[n+r.t]=r.am(0,a.data[n],t,n,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&N.ZERO.subTo(t,t)}function ub(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e.data[r]=0;for(r=0;r<t.t-1;++r){var a=t.am(r,t.data[r],e,2*r,0,1);(e.data[r+t.t]+=t.am(r+1,2*t.data[r],e,2*r+1,a,t.t-r-1))>=t.DV&&(e.data[r+t.t]-=t.DV,e.data[r+t.t+1]=1)}e.t>0&&(e.data[e.t-1]+=t.am(r,t.data[r],e,2*r,0,1)),e.s=0,e.clamp()}function pb(e,t,r){var a=e.abs();if(!(a.t<=0)){var n=this.abs();if(n.t<a.t){t?.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=me());var s=me(),i=this.s,o=e.s,c=this.DB-nl(a.data[a.t-1]);c>0?(a.lShiftTo(c,s),n.lShiftTo(c,r)):(a.copyTo(s),n.copyTo(r));var l=s.t,u=s.data[l-1];if(u!=0){var p=u*(1<<this.F1)+(l>1?s.data[l-2]>>this.F2:0),f=this.FV/p,x=(1<<this.F1)/p,m=1<<this.F2,y=r.t,b=y-l,S=t??me();for(s.dlShiftTo(b,S),r.compareTo(S)>=0&&(r.data[r.t++]=1,r.subTo(S,r)),N.ONE.dlShiftTo(l,S),S.subTo(s,s);s.t<l;)s.data[s.t++]=0;for(;--b>=0;){var B=r.data[--y]==u?this.DM:Math.floor(r.data[y]*f+(r.data[y-1]+m)*x);if((r.data[y]+=s.am(0,B,r,b,0,l))<B)for(s.dlShiftTo(b,S),r.subTo(S,r);r.data[y]<--B;)r.subTo(S,r)}t!=null&&(r.drShiftTo(l,t),i!=o&&N.ZERO.subTo(t,t)),r.t=l,r.clamp(),c>0&&r.rShiftTo(c,r),i<0&&N.ZERO.subTo(r,r)}}}function db(e){var t=me();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(N.ZERO)>0&&e.subTo(t,t),t}function wa(e){this.m=e}function fb(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e}function mb(e){return e}function hb(e){e.divRemTo(this.m,null,e)}function vb(e,t,r){e.multiplyTo(t,r),this.reduce(r)}function gb(e,t){e.squareTo(t),this.reduce(t)}wa.prototype.convert=fb,wa.prototype.revert=mb,wa.prototype.reduce=hb,wa.prototype.mulTo=vb,wa.prototype.sqrTo=gb;function xb(){if(this.t<1)return 0;var e=this.data[0];if((e&1)==0)return 0;var t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function Aa(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function yb(e){var t=me();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(N.ZERO)>0&&this.m.subTo(t,t),t}function bb(e){var t=me();return e.copyTo(t),this.reduce(t),t}function Eb(e){for(;e.t<=this.mt2;)e.data[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=e.data[t]&32767,a=r*this.mpl+((r*this.mph+(e.data[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(r=t+this.m.t,e.data[r]+=this.m.am(0,a,e,t,0,this.m.t);e.data[r]>=e.DV;)e.data[r]-=e.DV,e.data[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function Cb(e,t){e.squareTo(t),this.reduce(t)}function Sb(e,t,r){e.multiplyTo(t,r),this.reduce(r)}Aa.prototype.convert=yb,Aa.prototype.revert=bb,Aa.prototype.reduce=Eb,Aa.prototype.mulTo=Sb,Aa.prototype.sqrTo=Cb;function Tb(){return(this.t>0?this.data[0]&1:this.s)==0}function wb(e,t){if(e>4294967295||e<1)return N.ONE;var r=me(),a=me(),n=t.convert(this),s=nl(e)-1;for(n.copyTo(r);--s>=0;)if(t.sqrTo(r,a),(e&1<<s)>0)t.mulTo(a,n,r);else{var i=r;r=a,a=i}return t.revert(r)}function Ab(e,t){var r;return e<256||t.isEven()?r=new wa(t):r=new Aa(t),this.exp(e,r)}N.prototype.copyTo=W1,N.prototype.fromInt=X1,N.prototype.fromString=Y1,N.prototype.clamp=J1,N.prototype.dlShiftTo=nb,N.prototype.drShiftTo=ib,N.prototype.lShiftTo=sb,N.prototype.rShiftTo=ob,N.prototype.subTo=cb,N.prototype.multiplyTo=lb,N.prototype.squareTo=ub,N.prototype.divRemTo=pb,N.prototype.invDigit=xb,N.prototype.isEven=Tb,N.prototype.exp=wb,N.prototype.toString=Z1,N.prototype.negate=eb,N.prototype.abs=tb,N.prototype.compareTo=ab,N.prototype.bitLength=rb,N.prototype.mod=db,N.prototype.modPowInt=Ab,N.ZERO=ca(0),N.ONE=ca(1);function Ib(){var e=me();return this.copyTo(e),e}function Bb(){if(this.s<0){if(this.t==1)return this.data[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this.data[0];if(this.t==0)return 0}return(this.data[1]&(1<<32-this.DB)-1)<<this.DB|this.data[0]}function _b(){return this.t==0?this.s:this.data[0]<<24>>24}function Rb(){return this.t==0?this.s:this.data[0]<<16>>16}function kb(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function Nb(){return this.s<0?-1:this.t<=0||this.t==1&&this.data[0]<=0?0:1}function Lb(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),a=ca(r),n=me(),s=me(),i="";for(this.divRemTo(a,n,s);n.signum()>0;)i=(r+s.intValue()).toString(e).substr(1)+i,n.divRemTo(a,n,s);return s.intValue().toString(e)+i}function Ub(e,t){this.fromInt(0),t==null&&(t=10);for(var r=this.chunkSize(t),a=Math.pow(t,r),n=!1,s=0,i=0,o=0;o<e.length;++o){var c=t0(e,o);if(c<0){e.charAt(o)=="-"&&this.signum()==0&&(n=!0);continue}i=t*i+c,++s>=r&&(this.dMultiply(a),this.dAddOffset(i,0),s=0,i=0)}s>0&&(this.dMultiply(Math.pow(t,s)),this.dAddOffset(i,0)),n&&N.ZERO.subTo(this,this)}function Db(e,t,r){if(typeof t=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(N.ONE.shiftLeft(e-1),Ku,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(N.ONE.shiftLeft(e-1),this);else{var a=new Array,n=e&7;a.length=(e>>3)+1,t.nextBytes(a),n>0?a[0]&=(1<<n)-1:a[0]=0,this.fromString(a,256)}}function Pb(){var e=this.t,t=new Array;t[0]=this.s;var r=this.DB-e*this.DB%8,a,n=0;if(e-- >0)for(r<this.DB&&(a=this.data[e]>>r)!=(this.s&this.DM)>>r&&(t[n++]=a|this.s<<this.DB-r);e>=0;)r<8?(a=(this.data[e]&(1<<r)-1)<<8-r,a|=this.data[--e]>>(r+=this.DB-8)):(a=this.data[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),(a&128)!=0&&(a|=-256),n==0&&(this.s&128)!=(a&128)&&++n,(n>0||a!=this.s)&&(t[n++]=a);return t}function Ob(e){return this.compareTo(e)==0}function Fb(e){return this.compareTo(e)<0?this:e}function Mb(e){return this.compareTo(e)>0?this:e}function Vb(e,t,r){var a,n,s=Math.min(e.t,this.t);for(a=0;a<s;++a)r.data[a]=t(this.data[a],e.data[a]);if(e.t<this.t){for(n=e.s&this.DM,a=s;a<this.t;++a)r.data[a]=t(this.data[a],n);r.t=this.t}else{for(n=this.s&this.DM,a=s;a<e.t;++a)r.data[a]=t(n,e.data[a]);r.t=e.t}r.s=t(this.s,e.s),r.clamp()}function qb(e,t){return e&t}function jb(e){var t=me();return this.bitwiseTo(e,qb,t),t}function Ku(e,t){return e|t}function Kb(e){var t=me();return this.bitwiseTo(e,Ku,t),t}function a0(e,t){return e^t}function zb(e){var t=me();return this.bitwiseTo(e,a0,t),t}function r0(e,t){return e&~t}function Hb(e){var t=me();return this.bitwiseTo(e,r0,t),t}function $b(){for(var e=me(),t=0;t<this.t;++t)e.data[t]=this.DM&~this.data[t];return e.t=this.t,e.s=~this.s,e}function Gb(e){var t=me();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t}function Qb(e){var t=me();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t}function Wb(e){if(e==0)return-1;var t=0;return(e&65535)==0&&(e>>=16,t+=16),(e&255)==0&&(e>>=8,t+=8),(e&15)==0&&(e>>=4,t+=4),(e&3)==0&&(e>>=2,t+=2),(e&1)==0&&++t,t}function Xb(){for(var e=0;e<this.t;++e)if(this.data[e]!=0)return e*this.DB+Wb(this.data[e]);return this.s<0?this.t*this.DB:-1}function Yb(e){for(var t=0;e!=0;)e&=e-1,++t;return t}function Jb(){for(var e=0,t=this.s&this.DM,r=0;r<this.t;++r)e+=Yb(this.data[r]^t);return e}function Zb(e){var t=Math.floor(e/this.DB);return t>=this.t?this.s!=0:(this.data[t]&1<<e%this.DB)!=0}function eE(e,t){var r=N.ONE.shiftLeft(e);return this.bitwiseTo(r,t,r),r}function tE(e){return this.changeBit(e,Ku)}function aE(e){return this.changeBit(e,r0)}function rE(e){return this.changeBit(e,a0)}function nE(e,t){for(var r=0,a=0,n=Math.min(e.t,this.t);r<n;)a+=this.data[r]+e.data[r],t.data[r++]=a&this.DM,a>>=this.DB;if(e.t<this.t){for(a+=e.s;r<this.t;)a+=this.data[r],t.data[r++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;r<e.t;)a+=e.data[r],t.data[r++]=a&this.DM,a>>=this.DB;a+=e.s}t.s=a<0?-1:0,a>0?t.data[r++]=a:a<-1&&(t.data[r++]=this.DV+a),t.t=r,t.clamp()}function iE(e){var t=me();return this.addTo(e,t),t}function sE(e){var t=me();return this.subTo(e,t),t}function oE(e){var t=me();return this.multiplyTo(e,t),t}function cE(e){var t=me();return this.divRemTo(e,t,null),t}function lE(e){var t=me();return this.divRemTo(e,null,t),t}function uE(e){var t=me(),r=me();return this.divRemTo(e,t,r),new Array(t,r)}function pE(e){this.data[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()}function dE(e,t){if(e!=0){for(;this.t<=t;)this.data[this.t++]=0;for(this.data[t]+=e;this.data[t]>=this.DV;)this.data[t]-=this.DV,++t>=this.t&&(this.data[this.t++]=0),++this.data[t]}}function mc(){}function n0(e){return e}function fE(e,t,r){e.multiplyTo(t,r)}function mE(e,t){e.squareTo(t)}mc.prototype.convert=n0,mc.prototype.revert=n0,mc.prototype.mulTo=fE,mc.prototype.sqrTo=mE;function hE(e){return this.exp(e,new mc)}function vE(e,t,r){var a=Math.min(this.t+e.t,t);for(r.s=0,r.t=a;a>0;)r.data[--a]=0;var n;for(n=r.t-this.t;a<n;++a)r.data[a+this.t]=this.am(0,e.data[a],r,a,0,this.t);for(n=Math.min(e.t,t);a<n;++a)this.am(0,e.data[a],r,a,0,t-a);r.clamp()}function gE(e,t,r){--t;var a=r.t=this.t+e.t-t;for(r.s=0;--a>=0;)r.data[a]=0;for(a=Math.max(t-this.t,0);a<e.t;++a)r.data[this.t+a-t]=this.am(t-a,e.data[a],r,0,0,this.t+a-t);r.clamp(),r.drShiftTo(1,r)}function Ga(e){this.r2=me(),this.q3=me(),N.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}function xE(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=me();return e.copyTo(t),this.reduce(t),t}function yE(e){return e}function bE(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)}function EE(e,t){e.squareTo(t),this.reduce(t)}function CE(e,t,r){e.multiplyTo(t,r),this.reduce(r)}Ga.prototype.convert=xE,Ga.prototype.revert=yE,Ga.prototype.reduce=bE,Ga.prototype.mulTo=CE,Ga.prototype.sqrTo=EE;function SE(e,t){var r=e.bitLength(),a,n=ca(1),s;if(r<=0)return n;r<18?a=1:r<48?a=3:r<144?a=4:r<768?a=5:a=6,r<8?s=new wa(t):t.isEven()?s=new Ga(t):s=new Aa(t);var i=new Array,o=3,c=a-1,l=(1<<a)-1;if(i[1]=s.convert(this),a>1){var u=me();for(s.sqrTo(i[1],u);o<=l;)i[o]=me(),s.mulTo(u,i[o-2],i[o]),o+=2}var p=e.t-1,f,x=!0,m=me(),y;for(r=nl(e.data[p])-1;p>=0;){for(r>=c?f=e.data[p]>>r-c&l:(f=(e.data[p]&(1<<r+1)-1)<<c-r,p>0&&(f|=e.data[p-1]>>this.DB+r-c)),o=a;(f&1)==0;)f>>=1,--o;if((r-=o)<0&&(r+=this.DB,--p),x)i[f].copyTo(n),x=!1;else{for(;o>1;)s.sqrTo(n,m),s.sqrTo(m,n),o-=2;o>0?s.sqrTo(n,m):(y=n,n=m,m=y),s.mulTo(m,i[f],n)}for(;p>=0&&(e.data[p]&1<<r)==0;)s.sqrTo(n,m),y=n,n=m,m=y,--r<0&&(r=this.DB-1,--p)}return s.revert(n)}function TE(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var a=t;t=r,r=a}var n=t.getLowestSetBit(),s=r.getLowestSetBit();if(s<0)return t;for(n<s&&(s=n),s>0&&(t.rShiftTo(s,t),r.rShiftTo(s,r));t.signum()>0;)(n=t.getLowestSetBit())>0&&t.rShiftTo(n,t),(n=r.getLowestSetBit())>0&&r.rShiftTo(n,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return s>0&&r.lShiftTo(s,r),r}function wE(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(t==0)r=this.data[0]%e;else for(var a=this.t-1;a>=0;--a)r=(t*r+this.data[a])%e;return r}function AE(e){var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return N.ZERO;for(var r=e.clone(),a=this.clone(),n=ca(1),s=ca(0),i=ca(0),o=ca(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),t?((!n.isEven()||!s.isEven())&&(n.addTo(this,n),s.subTo(e,s)),n.rShiftTo(1,n)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);for(;a.isEven();)a.rShiftTo(1,a),t?((!i.isEven()||!o.isEven())&&(i.addTo(this,i),o.subTo(e,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);r.compareTo(a)>=0?(r.subTo(a,r),t&&n.subTo(i,n),s.subTo(o,s)):(a.subTo(r,a),t&&i.subTo(n,i),o.subTo(s,o))}if(a.compareTo(N.ONE)!=0)return N.ZERO;if(o.compareTo(e)>=0)return o.subtract(e);if(o.signum()<0)o.addTo(e,o);else return o;return o.signum()<0?o.add(e):o}var Mt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],IE=(1<<26)/Mt[Mt.length-1];function BE(e){var t,r=this.abs();if(r.t==1&&r.data[0]<=Mt[Mt.length-1]){for(t=0;t<Mt.length;++t)if(r.data[0]==Mt[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<Mt.length;){for(var a=Mt[t],n=t+1;n<Mt.length&&a<IE;)a*=Mt[n++];for(a=r.modInt(a);t<n;)if(a%Mt[t++]==0)return!1}return r.millerRabin(e)}function _E(e){var t=this.subtract(N.ONE),r=t.getLowestSetBit();if(r<=0)return!1;for(var a=t.shiftRight(r),n=RE(),s,i=0;i<e;++i){do s=new N(this.bitLength(),n);while(s.compareTo(N.ONE)<=0||s.compareTo(t)>=0);var o=s.modPow(a,this);if(o.compareTo(N.ONE)!=0&&o.compareTo(t)!=0){for(var c=1;c++<r&&o.compareTo(t)!=0;)if(o=o.modPowInt(2,this),o.compareTo(N.ONE)==0)return!1;if(o.compareTo(t)!=0)return!1}}return!0}function RE(){return{nextBytes:function(e){for(var t=0;t<e.length;++t)e[t]=Math.floor(Math.random()*256)}}}N.prototype.chunkSize=kb,N.prototype.toRadix=Lb,N.prototype.fromRadix=Ub,N.prototype.fromNumber=Db,N.prototype.bitwiseTo=Vb,N.prototype.changeBit=eE,N.prototype.addTo=nE,N.prototype.dMultiply=pE,N.prototype.dAddOffset=dE,N.prototype.multiplyLowerTo=vE,N.prototype.multiplyUpperTo=gE,N.prototype.modInt=wE,N.prototype.millerRabin=_E,N.prototype.clone=Ib,N.prototype.intValue=Bb,N.prototype.byteValue=_b,N.prototype.shortValue=Rb,N.prototype.signum=Nb,N.prototype.toByteArray=Pb,N.prototype.equals=Ob,N.prototype.min=Fb,N.prototype.max=Mb,N.prototype.and=jb,N.prototype.or=Kb,N.prototype.xor=zb,N.prototype.andNot=Hb,N.prototype.not=$b,N.prototype.shiftLeft=Gb,N.prototype.shiftRight=Qb,N.prototype.getLowestSetBit=Xb,N.prototype.bitCount=Jb,N.prototype.testBit=Zb,N.prototype.setBit=tE,N.prototype.clearBit=aE,N.prototype.flipBit=rE,N.prototype.add=iE,N.prototype.subtract=sE,N.prototype.multiply=oE,N.prototype.divide=cE,N.prototype.remainder=lE,N.prototype.divideAndRemainder=uE,N.prototype.modPow=SE,N.prototype.modInverse=AE,N.prototype.pow=hE,N.prototype.gcd=TE,N.prototype.isProbablePrime=BE;var $t=ee,i0=$t.sha1=$t.sha1||{};$t.md.sha1=$t.md.algorithms.sha1=i0,i0.create=function(){s0||kE();var e=null,t=$t.util.createBuffer(),r=new Array(80),a={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8};return a.start=function(){a.messageLength=0,a.fullMessageLength=a.messageLength64=[];for(var n=a.messageLengthSize/4,s=0;s<n;++s)a.fullMessageLength.push(0);return t=$t.util.createBuffer(),e={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878,h4:3285377520},a},a.start(),a.update=function(n,s){s==="utf8"&&(n=$t.util.encodeUtf8(n));var i=n.length;a.messageLength+=i,i=[i/4294967296>>>0,i>>>0];for(var o=a.fullMessageLength.length-1;o>=0;--o)a.fullMessageLength[o]+=i[1],i[1]=i[0]+(a.fullMessageLength[o]/4294967296>>>0),a.fullMessageLength[o]=a.fullMessageLength[o]>>>0,i[0]=i[1]/4294967296>>>0;return t.putBytes(n),o0(e,r,t),(t.read>2048||t.length()===0)&&t.compact(),a},a.digest=function(){var n=$t.util.createBuffer();n.putBytes(t.bytes());var s=a.fullMessageLength[a.fullMessageLength.length-1]+a.messageLengthSize,i=s&a.blockLength-1;n.putBytes(zu.substr(0,a.blockLength-i));for(var o,c,l=a.fullMessageLength[0]*8,u=0;u<a.fullMessageLength.length-1;++u)o=a.fullMessageLength[u+1]*8,c=o/4294967296>>>0,l+=c,n.putInt32(l>>>0),l=o>>>0;n.putInt32(l);var p={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4};o0(p,r,n);var f=$t.util.createBuffer();return f.putInt32(p.h0),f.putInt32(p.h1),f.putInt32(p.h2),f.putInt32(p.h3),f.putInt32(p.h4),f},a};var zu=null,s0=!1;function kE(){zu="\x80",zu+=$t.util.fillString("\0",64),s0=!0}function o0(e,t,r){for(var a,n,s,i,o,c,l,u,p=r.length();p>=64;){for(n=e.h0,s=e.h1,i=e.h2,o=e.h3,c=e.h4,u=0;u<16;++u)a=r.getInt32(),t[u]=a,l=o^s&(i^o),a=(n<<5|n>>>27)+l+c+1518500249+a,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=a;for(;u<20;++u)a=t[u-3]^t[u-8]^t[u-14]^t[u-16],a=a<<1|a>>>31,t[u]=a,l=o^s&(i^o),a=(n<<5|n>>>27)+l+c+1518500249+a,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=a;for(;u<32;++u)a=t[u-3]^t[u-8]^t[u-14]^t[u-16],a=a<<1|a>>>31,t[u]=a,l=s^i^o,a=(n<<5|n>>>27)+l+c+1859775393+a,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=a;for(;u<40;++u)a=t[u-6]^t[u-16]^t[u-28]^t[u-32],a=a<<2|a>>>30,t[u]=a,l=s^i^o,a=(n<<5|n>>>27)+l+c+1859775393+a,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=a;for(;u<60;++u)a=t[u-6]^t[u-16]^t[u-28]^t[u-32],a=a<<2|a>>>30,t[u]=a,l=s&i|o&(s^i),a=(n<<5|n>>>27)+l+c+2400959708+a,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=a;for(;u<80;++u)a=t[u-6]^t[u-16]^t[u-28]^t[u-32],a=a<<2|a>>>30,t[u]=a,l=s^i^o,a=(n<<5|n>>>27)+l+c+3395469782+a,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=a;e.h0=e.h0+n|0,e.h1=e.h1+s|0,e.h2=e.h2+i|0,e.h3=e.h3+o|0,e.h4=e.h4+c|0,p-=64}}var Gt=ee,c0=Gt.pkcs1=Gt.pkcs1||{};c0.encode_rsa_oaep=function(e,t,r){var a,n,s,i;typeof r=="string"?(a=r,n=arguments[3]||void 0,s=arguments[4]||void 0):r&&(a=r.label||void 0,n=r.seed||void 0,s=r.md||void 0,r.mgf1&&r.mgf1.md&&(i=r.mgf1.md)),s?s.start():s=Gt.md.sha1.create(),i||(i=s);var o=Math.ceil(e.n.bitLength()/8),c=o-2*s.digestLength-2;if(t.length>c){var l=new Error("RSAES-OAEP input message length is too long.");throw l.length=t.length,l.maxLength=c,l}a||(a=""),s.update(a,"raw");for(var u=s.digest(),p="",f=c-t.length,x=0;x<f;x++)p+="\0";var m=u.getBytes()+p+""+t;if(!n)n=Gt.random.getBytes(s.digestLength);else if(n.length!==s.digestLength){var l=new Error("Invalid RSAES-OAEP seed. The seed length must match the digest length.");throw l.seedLength=n.length,l.digestLength=s.digestLength,l}var y=il(n,o-s.digestLength-1,i),b=Gt.util.xorBytes(m,y,m.length),S=il(b,s.digestLength,i),B=Gt.util.xorBytes(n,S,n.length);return"\0"+B+b},c0.decode_rsa_oaep=function(e,t,r){var a,n,s;typeof r=="string"?(a=r,n=arguments[3]||void 0):r&&(a=r.label||void 0,n=r.md||void 0,r.mgf1&&r.mgf1.md&&(s=r.mgf1.md));var i=Math.ceil(e.n.bitLength()/8);if(t.length!==i){var b=new Error("RSAES-OAEP encoded message length is invalid.");throw b.length=t.length,b.expectedLength=i,b}if(n===void 0?n=Gt.md.sha1.create():n.start(),s||(s=n),i<2*n.digestLength+2)throw new Error("RSAES-OAEP key is too short for the hash function.");a||(a=""),n.update(a,"raw");for(var o=n.digest().getBytes(),c=t.charAt(0),l=t.substring(1,n.digestLength+1),u=t.substring(1+n.digestLength),p=il(u,n.digestLength,s),f=Gt.util.xorBytes(l,p,l.length),x=il(f,i-n.digestLength-1,s),m=Gt.util.xorBytes(u,x,u.length),y=m.substring(0,n.digestLength),b=c!=="\0",S=0;S<n.digestLength;++S)b|=o.charAt(S)!==y.charAt(S);for(var B=1,_=n.digestLength,D=n.digestLength;D<m.length;D++){var k=m.charCodeAt(D),P=k&1^1,z=B?65534:0;b|=k&z,B=B&P,_+=B}if(b||m.charCodeAt(_)!==1)throw new Error("Invalid RSAES-OAEP padding.");return m.substring(_+1)};function il(e,t,r){r||(r=Gt.md.sha1.create());for(var a="",n=Math.ceil(t/r.digestLength),s=0;s<n;++s){var i=String.fromCharCode(s>>24&255,s>>16&255,s>>8&255,s&255);r.start(),r.update(e+i),a+=r.digest().getBytes()}return a.substring(0,t)}var la=ee;(function(){if(la.prime){la.prime;return}var e=la.prime=la.prime||{},t=la.jsbn.BigInteger,r=[6,4,2,4,2,4,6,2],a=new t(null);a.fromInt(30);var n=function(p,f){return p|f};e.generateProbablePrime=function(p,f,x){typeof f=="function"&&(x=f,f={}),f=f||{};var m=f.algorithm||"PRIMEINC";typeof m=="string"&&(m={name:m}),m.options=m.options||{};var y=f.prng||la.random,b={nextBytes:function(S){for(var B=y.getBytesSync(S.length),_=0;_<S.length;++_)S[_]=B.charCodeAt(_)}};if(m.name==="PRIMEINC")return s(p,b,m.options,x);throw new Error("Invalid prime generation algorithm: "+m.name)};function s(p,f,x,m){return"workers"in x?c(p,f,x,m):i(p,f,x,m)}function i(p,f,x,m){var y=l(p,f),b=0,S=u(y.bitLength());"millerRabinTests"in x&&(S=x.millerRabinTests);var B=10;"maxBlockTime"in x&&(B=x.maxBlockTime),o(y,p,f,b,S,B,m)}function o(p,f,x,m,y,b,S){var B=+new Date;do{if(p.bitLength()>f&&(p=l(f,x)),p.isProbablePrime(y))return S(null,p);p.dAddOffset(r[m++%8],0)}while(b<0||+new Date-B<b);la.util.setImmediate(function(){o(p,f,x,m,y,b,S)})}function c(p,f,x,m){if(typeof Worker>"u")return i(p,f,x,m);var y=l(p,f),b=x.workers,S=x.workLoad||100,B=S*30/8,_=x.workerScript||"forge/prime.worker.js";if(b===-1)return la.util.estimateCores(function(k,P){k&&(P=2),b=P-1,D()});D();function D(){b=Math.max(1,b);for(var k=[],P=0;P<b;++P)k[P]=new Worker(_);for(var P=0;P<b;++P)k[P].addEventListener("message",W);var z=!1;function W(J){if(!z){var te=J.data;if(te.found){for(var ve=0;ve<k.length;++ve)k[ve].terminate();return z=!0,m(null,new t(te.prime,16))}y.bitLength()>p&&(y=l(p,f));var pe=y.toString(16);J.target.postMessage({hex:pe,workLoad:S}),y.dAddOffset(B,0)}}}}function l(p,f){var x=new t(p,f),m=p-1;return x.testBit(m)||x.bitwiseTo(t.ONE.shiftLeft(m),n,x),x.dAddOffset(31-x.mod(a).byteValue(),0),x}function u(p){return p<=100?27:p<=150?18:p<=200?15:p<=250?12:p<=300?9:p<=350?8:p<=400?7:p<=500?6:p<=600?5:p<=800?4:p<=1250?3:2}})();var $=ee;if(typeof he>"u")var he=$.jsbn.BigInteger;var Hu=$.util.isNodejs?tr:null,I=$.asn1,Nt=$.util;$.pki=$.pki||{},$.pki.rsa=$.rsa=$.rsa||{};var Y=$.pki,NE=[6,4,2,4,2,4,6,2],LE={name:"PrivateKeyInfo",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:I.Class.UNIVERSAL,type:I.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:I.Class.UNIVERSAL,type:I.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},UE={name:"RSAPrivateKey",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},DE={name:"RSAPublicKey",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},PE=$.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:I.Class.UNIVERSAL,type:I.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:I.Class.UNIVERSAL,type:I.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},OE={name:"DigestInfo",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm.algorithmIdentifier",tagClass:I.Class.UNIVERSAL,type:I.Type.OID,constructed:!1,capture:"algorithmIdentifier"},{name:"DigestInfo.DigestAlgorithm.parameters",tagClass:I.Class.UNIVERSAL,type:I.Type.NULL,capture:"parameters",optional:!0,constructed:!1}]},{name:"DigestInfo.digest",tagClass:I.Class.UNIVERSAL,type:I.Type.OCTETSTRING,constructed:!1,capture:"digest"}]},FE=function(e){var t;if(e.algorithm in Y.oids)t=Y.oids[e.algorithm];else{var r=new Error("Unknown message digest algorithm.");throw r.algorithm=e.algorithm,r}var a=I.oidToDer(t).getBytes(),n=I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[]),s=I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[]);s.value.push(I.create(I.Class.UNIVERSAL,I.Type.OID,!1,a)),s.value.push(I.create(I.Class.UNIVERSAL,I.Type.NULL,!1,""));var i=I.create(I.Class.UNIVERSAL,I.Type.OCTETSTRING,!1,e.digest().getBytes());return n.value.push(s),n.value.push(i),I.toDer(n).getBytes()},l0=function(e,t,r){if(r)return e.modPow(t.e,t.n);if(!t.p||!t.q)return e.modPow(t.d,t.n);t.dP||(t.dP=t.d.mod(t.p.subtract(he.ONE))),t.dQ||(t.dQ=t.d.mod(t.q.subtract(he.ONE))),t.qInv||(t.qInv=t.q.modInverse(t.p));var a;do a=new he($.util.bytesToHex($.random.getBytes(t.n.bitLength()/8)),16);while(a.compareTo(t.n)>=0||!a.gcd(t.n).equals(he.ONE));e=e.multiply(a.modPow(t.e,t.n)).mod(t.n);for(var n=e.mod(t.p).modPow(t.dP,t.p),s=e.mod(t.q).modPow(t.dQ,t.q);n.compareTo(s)<0;)n=n.add(t.p);var i=n.subtract(s).multiply(t.qInv).mod(t.p).multiply(t.q).add(s);return i=i.multiply(a.modInverse(t.n)).mod(t.n),i};Y.rsa.encrypt=function(e,t,r){var a=r,n,s=Math.ceil(t.n.bitLength()/8);r!==!1&&r!==!0?(a=r===2,n=u0(e,t,r)):(n=$.util.createBuffer(),n.putBytes(e));for(var i=new he(n.toHex(),16),o=l0(i,t,a),c=o.toString(16),l=$.util.createBuffer(),u=s-Math.ceil(c.length/2);u>0;)l.putByte(0),--u;return l.putBytes($.util.hexToBytes(c)),l.getBytes()},Y.rsa.decrypt=function(e,t,r,a){var n=Math.ceil(t.n.bitLength()/8);if(e.length!==n){var s=new Error("Encrypted message length is invalid.");throw s.length=e.length,s.expected=n,s}var i=new he($.util.createBuffer(e).toHex(),16);if(i.compareTo(t.n)>=0)throw new Error("Encrypted message is invalid.");for(var o=l0(i,t,r),c=o.toString(16),l=$.util.createBuffer(),u=n-Math.ceil(c.length/2);u>0;)l.putByte(0),--u;return l.putBytes($.util.hexToBytes(c)),a!==!1?sl(l.getBytes(),t,r):l.getBytes()},Y.rsa.createKeyPairGenerationState=function(e,t,r){typeof e=="string"&&(e=parseInt(e,10)),e=e||2048,r=r||{};var a=r.prng||$.random,n={nextBytes:function(o){for(var c=a.getBytesSync(o.length),l=0;l<o.length;++l)o[l]=c.charCodeAt(l)}},s=r.algorithm||"PRIMEINC",i;if(s==="PRIMEINC")i={algorithm:s,state:0,bits:e,rng:n,eInt:t||65537,e:new he(null),p:null,q:null,qBits:e>>1,pBits:e-(e>>1),pqState:0,num:null,keys:null},i.e.fromInt(i.eInt);else throw new Error("Invalid key generation algorithm: "+s);return i},Y.rsa.stepKeyPairGenerationState=function(e,t){"algorithm"in e||(e.algorithm="PRIMEINC");var r=new he(null);r.fromInt(30);for(var a=0,n=function(p,f){return p|f},s=+new Date,i,o=0;e.keys===null&&(t<=0||o<t);){if(e.state===0){var c=e.p===null?e.pBits:e.qBits,l=c-1;e.pqState===0?(e.num=new he(c,e.rng),e.num.testBit(l)||e.num.bitwiseTo(he.ONE.shiftLeft(l),n,e.num),e.num.dAddOffset(31-e.num.mod(r).byteValue(),0),a=0,++e.pqState):e.pqState===1?e.num.bitLength()>c?e.pqState=0:e.num.isProbablePrime(VE(e.num.bitLength()))?++e.pqState:e.num.dAddOffset(NE[a++%8],0):e.pqState===2?e.pqState=e.num.subtract(he.ONE).gcd(e.e).compareTo(he.ONE)===0?3:0:e.pqState===3&&(e.pqState=0,e.p===null?e.p=e.num:e.q=e.num,e.p!==null&&e.q!==null&&++e.state,e.num=null)}else if(e.state===1)e.p.compareTo(e.q)<0&&(e.num=e.p,e.p=e.q,e.q=e.num),++e.state;else if(e.state===2)e.p1=e.p.subtract(he.ONE),e.q1=e.q.subtract(he.ONE),e.phi=e.p1.multiply(e.q1),++e.state;else if(e.state===3)e.phi.gcd(e.e).compareTo(he.ONE)===0?++e.state:(e.p=null,e.q=null,e.state=0);else if(e.state===4)e.n=e.p.multiply(e.q),e.n.bitLength()===e.bits?++e.state:(e.q=null,e.state=0);else if(e.state===5){var u=e.e.modInverse(e.phi);e.keys={privateKey:Y.rsa.setPrivateKey(e.n,e.e,u,e.p,e.q,u.mod(e.p1),u.mod(e.q1),e.q.modInverse(e.p)),publicKey:Y.rsa.setPublicKey(e.n,e.e)}}i=+new Date,o+=i-s,s=i}return e.keys!==null},Y.rsa.generateKeyPair=function(e,t,r,a){if(arguments.length===1?typeof e=="object"?(r=e,e=void 0):typeof e=="function"&&(a=e,e=void 0):arguments.length===2?typeof e=="number"?typeof t=="function"?(a=t,t=void 0):typeof t!="number"&&(r=t,t=void 0):(r=e,a=t,e=void 0,t=void 0):arguments.length===3&&(typeof t=="number"?typeof r=="function"&&(a=r,r=void 0):(a=r,r=t,t=void 0)),r=r||{},e===void 0&&(e=r.bits||2048),t===void 0&&(t=r.e||65537),!$.options.usePureJavaScript&&!r.prng&&e>=256&&e<=16384&&(t===65537||t===3)){if(a){if(p0("generateKeyPair"))return Hu.generateKeyPair("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},function(o,c,l){if(o)return a(o);a(null,{privateKey:Y.privateKeyFromPem(l),publicKey:Y.publicKeyFromPem(c)})});if(d0("generateKey")&&d0("exportKey"))return Nt.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:m0(t),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(o){return Nt.globalScope.crypto.subtle.exportKey("pkcs8",o.privateKey)}).then(void 0,function(o){a(o)}).then(function(o){if(o){var c=Y.privateKeyFromAsn1(I.fromDer($.util.createBuffer(o)));a(null,{privateKey:c,publicKey:Y.setRsaPublicKey(c.n,c.e)})}});if(f0("generateKey")&&f0("exportKey")){var n=Nt.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:m0(t),hash:{name:"SHA-256"}},!0,["sign","verify"]);n.oncomplete=function(o){var c=o.target.result,l=Nt.globalScope.msCrypto.subtle.exportKey("pkcs8",c.privateKey);l.oncomplete=function(u){var p=u.target.result,f=Y.privateKeyFromAsn1(I.fromDer($.util.createBuffer(p)));a(null,{privateKey:f,publicKey:Y.setRsaPublicKey(f.n,f.e)})},l.onerror=function(u){a(u)}},n.onerror=function(o){a(o)};return}}else if(p0("generateKeyPairSync")){var s=Hu.generateKeyPairSync("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:Y.privateKeyFromPem(s.privateKey),publicKey:Y.publicKeyFromPem(s.publicKey)}}}var i=Y.rsa.createKeyPairGenerationState(e,t,r);if(!a)return Y.rsa.stepKeyPairGenerationState(i,0),i.keys;ME(i,r,a)},Y.setRsaPublicKey=Y.rsa.setPublicKey=function(e,t){var r={n:e,e:t};return r.encrypt=function(a,n,s){if(typeof n=="string"?n=n.toUpperCase():n===void 0&&(n="RSAES-PKCS1-V1_5"),n==="RSAES-PKCS1-V1_5")n={encode:function(o,c,l){return u0(o,c,2).getBytes()}};else if(n==="RSA-OAEP"||n==="RSAES-OAEP")n={encode:function(o,c){return $.pkcs1.encode_rsa_oaep(c,o,s)}};else if(["RAW","NONE","NULL",null].indexOf(n)!==-1)n={encode:function(o){return o}};else if(typeof n=="string")throw new Error('Unsupported encryption scheme: "'+n+'".');var i=n.encode(a,r,!0);return Y.rsa.encrypt(i,r,!0)},r.verify=function(a,n,s,i){typeof s=="string"?s=s.toUpperCase():s===void 0&&(s="RSASSA-PKCS1-V1_5"),i===void 0&&(i={_parseAllDigestBytes:!0}),"_parseAllDigestBytes"in i||(i._parseAllDigestBytes=!0),s==="RSASSA-PKCS1-V1_5"?s={verify:function(c,l){l=sl(l,r,!0);var u=I.fromDer(l,{parseAllBytes:i._parseAllDigestBytes}),p={},f=[];if(!I.validate(u,OE,p,f)){var x=new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.");throw x.errors=f,x}var m=I.derToOid(p.algorithmIdentifier);if(!(m===$.oids.md2||m===$.oids.md5||m===$.oids.sha1||m===$.oids.sha224||m===$.oids.sha256||m===$.oids.sha384||m===$.oids.sha512||m===$.oids["sha512-224"]||m===$.oids["sha512-256"])){var x=new Error("Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.");throw x.oid=m,x}if((m===$.oids.md2||m===$.oids.md5)&&!("parameters"in p))throw new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifier NULL parameters.");return c===p.digest}}:(s==="NONE"||s==="NULL"||s===null)&&(s={verify:function(c,l){return l=sl(l,r,!0),c===l}});var o=Y.rsa.decrypt(n,r,!0,!1);return s.verify(a,o,r.n.bitLength())},r},Y.setRsaPrivateKey=Y.rsa.setPrivateKey=function(e,t,r,a,n,s,i,o){var c={n:e,e:t,d:r,p:a,q:n,dP:s,dQ:i,qInv:o};return c.decrypt=function(l,u,p){typeof u=="string"?u=u.toUpperCase():u===void 0&&(u="RSAES-PKCS1-V1_5");var f=Y.rsa.decrypt(l,c,!1,!1);if(u==="RSAES-PKCS1-V1_5")u={decode:sl};else if(u==="RSA-OAEP"||u==="RSAES-OAEP")u={decode:function(x,m){return $.pkcs1.decode_rsa_oaep(m,x,p)}};else if(["RAW","NONE","NULL",null].indexOf(u)!==-1)u={decode:function(x){return x}};else throw new Error('Unsupported encryption scheme: "'+u+'".');return u.decode(f,c,!1)},c.sign=function(l,u){var p=!1;typeof u=="string"&&(u=u.toUpperCase()),u===void 0||u==="RSASSA-PKCS1-V1_5"?(u={encode:FE},p=1):(u==="NONE"||u==="NULL"||u===null)&&(u={encode:function(){return l}},p=1);var f=u.encode(l,c.n.bitLength());return Y.rsa.encrypt(f,c,p)},c},Y.wrapRsaPrivateKey=function(e){return I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,I.integerToDer(0).getBytes()),I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.OID,!1,I.oidToDer(Y.oids.rsaEncryption).getBytes()),I.create(I.Class.UNIVERSAL,I.Type.NULL,!1,"")]),I.create(I.Class.UNIVERSAL,I.Type.OCTETSTRING,!1,I.toDer(e).getBytes())])},Y.privateKeyFromAsn1=function(e){var t={},r=[];if(I.validate(e,LE,t,r)&&(e=I.fromDer($.util.createBuffer(t.privateKey))),t={},r=[],!I.validate(e,UE,t,r)){var a=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw a.errors=r,a}var n,s,i,o,c,l,u,p;return n=$.util.createBuffer(t.privateKeyModulus).toHex(),s=$.util.createBuffer(t.privateKeyPublicExponent).toHex(),i=$.util.createBuffer(t.privateKeyPrivateExponent).toHex(),o=$.util.createBuffer(t.privateKeyPrime1).toHex(),c=$.util.createBuffer(t.privateKeyPrime2).toHex(),l=$.util.createBuffer(t.privateKeyExponent1).toHex(),u=$.util.createBuffer(t.privateKeyExponent2).toHex(),p=$.util.createBuffer(t.privateKeyCoefficient).toHex(),Y.setRsaPrivateKey(new he(n,16),new he(s,16),new he(i,16),new he(o,16),new he(c,16),new he(l,16),new he(u,16),new he(p,16))},Y.privateKeyToAsn1=Y.privateKeyToRSAPrivateKey=function(e){return I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,I.integerToDer(0).getBytes()),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.n)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.e)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.d)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.p)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.q)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.dP)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.dQ)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.qInv))])},Y.publicKeyFromAsn1=function(e){var t={},r=[];if(I.validate(e,PE,t,r)){var a=I.derToOid(t.publicKeyOid);if(a!==Y.oids.rsaEncryption){var n=new Error("Cannot read public key. Unknown OID.");throw n.oid=a,n}e=t.rsaPublicKey}if(r=[],!I.validate(e,DE,t,r)){var n=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.");throw n.errors=r,n}var s=$.util.createBuffer(t.publicKeyModulus).toHex(),i=$.util.createBuffer(t.publicKeyExponent).toHex();return Y.setRsaPublicKey(new he(s,16),new he(i,16))},Y.publicKeyToAsn1=Y.publicKeyToSubjectPublicKeyInfo=function(e){return I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.OID,!1,I.oidToDer(Y.oids.rsaEncryption).getBytes()),I.create(I.Class.UNIVERSAL,I.Type.NULL,!1,"")]),I.create(I.Class.UNIVERSAL,I.Type.BITSTRING,!1,[Y.publicKeyToRSAPublicKey(e)])])},Y.publicKeyToRSAPublicKey=function(e){return I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.n)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.e))])};function u0(e,t,r){var a=$.util.createBuffer(),n=Math.ceil(t.n.bitLength()/8);if(e.length>n-11){var s=new Error("Message is too long for PKCS#1 v1.5 padding.");throw s.length=e.length,s.max=n-11,s}a.putByte(0),a.putByte(r);var i=n-3-e.length,o;if(r===0||r===1){o=r===0?0:255;for(var c=0;c<i;++c)a.putByte(o)}else for(;i>0;){for(var l=0,u=$.random.getBytes(i),c=0;c<i;++c)o=u.charCodeAt(c),o===0?++l:a.putByte(o);i=l}return a.putByte(0),a.putBytes(e),a}function sl(e,t,r,a){var n=Math.ceil(t.n.bitLength()/8),s=$.util.createBuffer(e),i=s.getByte(),o=s.getByte();if(i!==0||r&&o!==0&&o!==1||!r&&o!=2||r&&o===0&&typeof a>"u")throw new Error("Encryption block is invalid.");var c=0;if(o===0){c=n-3-a;for(var l=0;l<c;++l)if(s.getByte()!==0)throw new Error("Encryption block is invalid.")}else if(o===1)for(c=0;s.length()>1;){if(s.getByte()!==255){--s.read;break}++c}else if(o===2)for(c=0;s.length()>1;){if(s.getByte()===0){--s.read;break}++c}var u=s.getByte();if(u!==0||c!==n-3-s.length())throw new Error("Encryption block is invalid.");return s.getBytes()}function ME(e,t,r){typeof t=="function"&&(r=t,t={}),t=t||{};var a={algorithm:{name:t.algorithm||"PRIMEINC",options:{workers:t.workers||2,workLoad:t.workLoad||100,workerScript:t.workerScript}}};"prng"in t&&(a.prng=t.prng),n();function n(){s(e.pBits,function(o,c){if(o)return r(o);if(e.p=c,e.q!==null)return i(o,e.q);s(e.qBits,i)})}function s(o,c){$.prime.generateProbablePrime(o,a,c)}function i(o,c){if(o)return r(o);if(e.q=c,e.p.compareTo(e.q)<0){var l=e.p;e.p=e.q,e.q=l}if(e.p.subtract(he.ONE).gcd(e.e).compareTo(he.ONE)!==0){e.p=null,n();return}if(e.q.subtract(he.ONE).gcd(e.e).compareTo(he.ONE)!==0){e.q=null,s(e.qBits,i);return}if(e.p1=e.p.subtract(he.ONE),e.q1=e.q.subtract(he.ONE),e.phi=e.p1.multiply(e.q1),e.phi.gcd(e.e).compareTo(he.ONE)!==0){e.p=e.q=null,n();return}if(e.n=e.p.multiply(e.q),e.n.bitLength()!==e.bits){e.q=null,s(e.qBits,i);return}var u=e.e.modInverse(e.phi);e.keys={privateKey:Y.rsa.setPrivateKey(e.n,e.e,u,e.p,e.q,u.mod(e.p1),u.mod(e.q1),e.q.modInverse(e.p)),publicKey:Y.rsa.setPublicKey(e.n,e.e)},r(null,e.keys)}}function Qt(e){var t=e.toString(16);t[0]>="8"&&(t="00"+t);var r=$.util.hexToBytes(t);return r.length>1&&(r.charCodeAt(0)===0&&(r.charCodeAt(1)&128)===0||r.charCodeAt(0)===255&&(r.charCodeAt(1)&128)===128)?r.substr(1):r}function VE(e){return e<=100?27:e<=150?18:e<=200?15:e<=250?12:e<=300?9:e<=350?8:e<=400?7:e<=500?6:e<=600?5:e<=800?4:e<=1250?3:2}function p0(e){return $.util.isNodejs&&typeof Hu[e]=="function"}function d0(e){return typeof Nt.globalScope<"u"&&typeof Nt.globalScope.crypto=="object"&&typeof Nt.globalScope.crypto.subtle=="object"&&typeof Nt.globalScope.crypto.subtle[e]=="function"}function f0(e){return typeof Nt.globalScope<"u"&&typeof Nt.globalScope.msCrypto=="object"&&typeof Nt.globalScope.msCrypto.subtle=="object"&&typeof Nt.globalScope.msCrypto.subtle[e]=="function"}function m0(e){for(var t=$.util.hexToBytes(e.toString(16)),r=new Uint8Array(t.length),a=0;a<t.length;++a)r[a]=t.charCodeAt(a);return r}var K=ee;if(typeof qE>"u")var qE=K.jsbn.BigInteger;var R=K.asn1,Z=K.pki=K.pki||{};Z.pbe=K.pbe=K.pbe||{};var Ia=Z.oids,jE={name:"EncryptedPrivateKeyInfo",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:R.Class.UNIVERSAL,type:R.Type.OID,constructed:!1,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:R.Class.UNIVERSAL,type:R.Type.OCTETSTRING,constructed:!1,capture:"encryptedData"}]},KE={name:"PBES2Algorithms",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:R.Class.UNIVERSAL,type:R.Type.OID,constructed:!1,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.params.salt",tagClass:R.Class.UNIVERSAL,type:R.Type.OCTETSTRING,constructed:!1,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:R.Class.UNIVERSAL,type:R.Type.INTEGER,constructed:!1,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:R.Class.UNIVERSAL,type:R.Type.INTEGER,constructed:!1,optional:!0,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,optional:!0,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:R.Class.UNIVERSAL,type:R.Type.OID,constructed:!1,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:R.Class.UNIVERSAL,type:R.Type.OID,constructed:!1,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:R.Class.UNIVERSAL,type:R.Type.OCTETSTRING,constructed:!1,capture:"encIv"}]}]},zE={name:"pkcs-12PbeParams",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"pkcs-12PbeParams.salt",tagClass:R.Class.UNIVERSAL,type:R.Type.OCTETSTRING,constructed:!1,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:R.Class.UNIVERSAL,type:R.Type.INTEGER,constructed:!1,capture:"iterations"}]};Z.encryptPrivateKeyInfo=function(e,t,r){r=r||{},r.saltSize=r.saltSize||8,r.count=r.count||2048,r.algorithm=r.algorithm||"aes128",r.prfAlgorithm=r.prfAlgorithm||"sha1";var a=K.random.getBytesSync(r.saltSize),n=r.count,s=R.integerToDer(n),i,o,c;if(r.algorithm.indexOf("aes")===0||r.algorithm==="des"){var l,u,p;switch(r.algorithm){case"aes128":i=16,l=16,u=Ia["aes128-CBC"],p=K.aes.createEncryptionCipher;break;case"aes192":i=24,l=16,u=Ia["aes192-CBC"],p=K.aes.createEncryptionCipher;break;case"aes256":i=32,l=16,u=Ia["aes256-CBC"],p=K.aes.createEncryptionCipher;break;case"des":i=8,l=8,u=Ia.desCBC,p=K.des.createEncryptionCipher;break;default:var f=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw f.algorithm=r.algorithm,f}var x="hmacWith"+r.prfAlgorithm.toUpperCase(),m=g0(x),y=K.pkcs5.pbkdf2(t,a,n,i,m),b=K.random.getBytesSync(l),S=p(y);S.start(b),S.update(R.toDer(e)),S.finish(),c=S.output.getBytes();var B=HE(a,s,i,x);o=R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(Ia.pkcs5PBES2).getBytes()),R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(Ia.pkcs5PBKDF2).getBytes()),B]),R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(u).getBytes()),R.create(R.Class.UNIVERSAL,R.Type.OCTETSTRING,!1,b)])])])}else if(r.algorithm==="3des"){i=24;var _=new K.util.ByteBuffer(a),y=Z.pbe.generatePkcs12Key(t,_,1,n,i),b=Z.pbe.generatePkcs12Key(t,_,2,n,i),S=K.des.createEncryptionCipher(y);S.start(b),S.update(R.toDer(e)),S.finish(),c=S.output.getBytes(),o=R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(Ia["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OCTETSTRING,!1,a),R.create(R.Class.UNIVERSAL,R.Type.INTEGER,!1,s.getBytes())])])}else{var f=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw f.algorithm=r.algorithm,f}var D=R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[o,R.create(R.Class.UNIVERSAL,R.Type.OCTETSTRING,!1,c)]);return D},Z.decryptPrivateKeyInfo=function(e,t){var r=null,a={},n=[];if(!R.validate(e,jE,a,n)){var s=new Error("Cannot read encrypted private key. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=n,s}var i=R.derToOid(a.encryptionOid),o=Z.pbe.getCipher(i,a.encryptionParams,t),c=K.util.createBuffer(a.encryptedData);return o.update(c),o.finish()&&(r=R.fromDer(o.output)),r},Z.encryptedPrivateKeyToPem=function(e,t){var r={type:"ENCRYPTED PRIVATE KEY",body:R.toDer(e).getBytes()};return K.pem.encode(r,{maxline:t})},Z.encryptedPrivateKeyFromPem=function(e){var t=K.pem.decode(e)[0];if(t.type!=="ENCRYPTED PRIVATE KEY"){var r=new Error('Could not convert encrypted private key from PEM; PEM header type is "ENCRYPTED PRIVATE KEY".');throw r.headerType=t.type,r}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert encrypted private key from PEM; PEM is encrypted.");return R.fromDer(t.body)},Z.encryptRsaPrivateKey=function(e,t,r){if(r=r||{},!r.legacy){var a=Z.wrapRsaPrivateKey(Z.privateKeyToAsn1(e));return a=Z.encryptPrivateKeyInfo(a,t,r),Z.encryptedPrivateKeyToPem(a)}var n,s,i,o;switch(r.algorithm){case"aes128":n="AES-128-CBC",i=16,s=K.random.getBytesSync(16),o=K.aes.createEncryptionCipher;break;case"aes192":n="AES-192-CBC",i=24,s=K.random.getBytesSync(16),o=K.aes.createEncryptionCipher;break;case"aes256":n="AES-256-CBC",i=32,s=K.random.getBytesSync(16),o=K.aes.createEncryptionCipher;break;case"3des":n="DES-EDE3-CBC",i=24,s=K.random.getBytesSync(8),o=K.des.createEncryptionCipher;break;case"des":n="DES-CBC",i=8,s=K.random.getBytesSync(8),o=K.des.createEncryptionCipher;break;default:var c=new Error('Could not encrypt RSA private key; unsupported encryption algorithm "'+r.algorithm+'".');throw c.algorithm=r.algorithm,c}var l=K.pbe.opensslDeriveBytes(t,s.substr(0,8),i),u=o(l);u.start(s),u.update(R.toDer(Z.privateKeyToAsn1(e))),u.finish();var p={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:n,parameters:K.util.bytesToHex(s).toUpperCase()},body:u.output.getBytes()};return K.pem.encode(p)},Z.decryptRsaPrivateKey=function(e,t){var r=null,a=K.pem.decode(e)[0];if(a.type!=="ENCRYPTED PRIVATE KEY"&&a.type!=="PRIVATE KEY"&&a.type!=="RSA PRIVATE KEY"){var n=new Error('Could not convert private key from PEM; PEM header type is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".');throw n.headerType=n,n}if(a.procType&&a.procType.type==="ENCRYPTED"){var s,i;switch(a.dekInfo.algorithm){case"DES-CBC":s=8,i=K.des.createDecryptionCipher;break;case"DES-EDE3-CBC":s=24,i=K.des.createDecryptionCipher;break;case"AES-128-CBC":s=16,i=K.aes.createDecryptionCipher;break;case"AES-192-CBC":s=24,i=K.aes.createDecryptionCipher;break;case"AES-256-CBC":s=32,i=K.aes.createDecryptionCipher;break;case"RC2-40-CBC":s=5,i=function(p){return K.rc2.createDecryptionCipher(p,40)};break;case"RC2-64-CBC":s=8,i=function(p){return K.rc2.createDecryptionCipher(p,64)};break;case"RC2-128-CBC":s=16,i=function(p){return K.rc2.createDecryptionCipher(p,128)};break;default:var n=new Error('Could not decrypt private key; unsupported encryption algorithm "'+a.dekInfo.algorithm+'".');throw n.algorithm=a.dekInfo.algorithm,n}var o=K.util.hexToBytes(a.dekInfo.parameters),c=K.pbe.opensslDeriveBytes(t,o.substr(0,8),s),l=i(c);if(l.start(o),l.update(K.util.createBuffer(a.body)),l.finish())r=l.output.getBytes();else return r}else r=a.body;return a.type==="ENCRYPTED PRIVATE KEY"?r=Z.decryptPrivateKeyInfo(R.fromDer(r),t):r=R.fromDer(r),r!==null&&(r=Z.privateKeyFromAsn1(r)),r},Z.pbe.generatePkcs12Key=function(e,t,r,a,n,s){var i,o;if(typeof s>"u"||s===null){if(!("sha1"in K.md))throw new Error('"sha1" hash algorithm unavailable.');s=K.md.sha1.create()}var c=s.digestLength,l=s.blockLength,u=new K.util.ByteBuffer,p=new K.util.ByteBuffer;if(e!=null){for(o=0;o<e.length;o++)p.putInt16(e.charCodeAt(o));p.putInt16(0)}var f=p.length(),x=t.length(),m=new K.util.ByteBuffer;m.fillWithByte(r,l);var y=l*Math.ceil(x/l),b=new K.util.ByteBuffer;for(o=0;o<y;o++)b.putByte(t.at(o%x));var S=l*Math.ceil(f/l),B=new K.util.ByteBuffer;for(o=0;o<S;o++)B.putByte(p.at(o%f));var _=b;_.putBuffer(B);for(var D=Math.ceil(n/c),k=1;k<=D;k++){var P=new K.util.ByteBuffer;P.putBytes(m.bytes()),P.putBytes(_.bytes());for(var z=0;z<a;z++)s.start(),s.update(P.getBytes()),P=s.digest();var W=new K.util.ByteBuffer;for(o=0;o<l;o++)W.putByte(P.at(o%c));var J=Math.ceil(x/l)+Math.ceil(f/l),te=new K.util.ByteBuffer;for(i=0;i<J;i++){var ve=new K.util.ByteBuffer(_.getBytes(l)),pe=511;for(o=W.length()-1;o>=0;o--)pe=pe>>8,pe+=W.at(o)+ve.at(o),ve.setAt(o,pe&255);te.putBuffer(ve)}_=te,u.putBuffer(P)}return u.truncate(u.length()-n),u},Z.pbe.getCipher=function(e,t,r){switch(e){case Z.oids.pkcs5PBES2:return Z.pbe.getCipherForPBES2(e,t,r);case Z.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case Z.oids["pbewithSHAAnd40BitRC2-CBC"]:return Z.pbe.getCipherForPKCS12PBE(e,t,r);default:var a=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw a.oid=e,a.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],a}},Z.pbe.getCipherForPBES2=function(e,t,r){var a={},n=[];if(!R.validate(t,KE,a,n)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=n,s}if(e=R.derToOid(a.kdfOid),e!==Z.oids.pkcs5PBKDF2){var s=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.");throw s.oid=e,s.supportedOids=["pkcs5PBKDF2"],s}if(e=R.derToOid(a.encOid),e!==Z.oids["aes128-CBC"]&&e!==Z.oids["aes192-CBC"]&&e!==Z.oids["aes256-CBC"]&&e!==Z.oids["des-EDE3-CBC"]&&e!==Z.oids.desCBC){var s=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.");throw s.oid=e,s.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],s}var i=a.kdfSalt,o=K.util.createBuffer(a.kdfIterationCount);o=o.getInt(o.length()<<3);var c,l;switch(Z.oids[e]){case"aes128-CBC":c=16,l=K.aes.createDecryptionCipher;break;case"aes192-CBC":c=24,l=K.aes.createDecryptionCipher;break;case"aes256-CBC":c=32,l=K.aes.createDecryptionCipher;break;case"des-EDE3-CBC":c=24,l=K.des.createDecryptionCipher;break;case"desCBC":c=8,l=K.des.createDecryptionCipher;break}var u=v0(a.prfOid),p=K.pkcs5.pbkdf2(r,i,o,c,u),f=a.encIv,x=l(p);return x.start(f),x},Z.pbe.getCipherForPKCS12PBE=function(e,t,r){var a={},n=[];if(!R.validate(t,zE,a,n)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=n,s}var i=K.util.createBuffer(a.salt),o=K.util.createBuffer(a.iterations);o=o.getInt(o.length()<<3);var c,l,u;switch(e){case Z.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:c=24,l=8,u=K.des.startDecrypting;break;case Z.oids["pbewithSHAAnd40BitRC2-CBC"]:c=5,l=8,u=function(y,b){var S=K.rc2.createDecryptionCipher(y,40);return S.start(b,null),S};break;default:var s=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.");throw s.oid=e,s}var p=v0(a.prfOid),f=Z.pbe.generatePkcs12Key(r,i,1,o,c,p);p.start();var x=Z.pbe.generatePkcs12Key(r,i,2,o,l,p);return u(f,x)},Z.pbe.opensslDeriveBytes=function(e,t,r,a){if(typeof a>"u"||a===null){if(!("md5"in K.md))throw new Error('"md5" hash algorithm unavailable.');a=K.md.md5.create()}t===null&&(t="");for(var n=[h0(a,e+t)],s=16,i=1;s<r;++i,s+=16)n.push(h0(a,n[i-1]+e+t));return n.join("").substr(0,r)};function h0(e,t){return e.start().update(t).digest().getBytes()}function v0(e){var t;if(!e)t="hmacWithSHA1";else if(t=Z.oids[R.derToOid(e)],!t){var r=new Error("Unsupported PRF OID.");throw r.oid=e,r.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],r}return g0(t)}function g0(e){var t=K.md;switch(e){case"hmacWithSHA224":t=K.md.sha512;case"hmacWithSHA1":case"hmacWithSHA256":case"hmacWithSHA384":case"hmacWithSHA512":e=e.substr(8).toLowerCase();break;default:var r=new Error("Unsupported PRF algorithm.");throw r.algorithm=e,r.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],r}if(!t||!(e in t))throw new Error("Unknown hash algorithm: "+e);return t[e].create()}function HE(e,t,r,a){var n=R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OCTETSTRING,!1,e),R.create(R.Class.UNIVERSAL,R.Type.INTEGER,!1,t.getBytes())]);return a!=="hmacWithSHA1"&&n.value.push(R.create(R.Class.UNIVERSAL,R.Type.INTEGER,!1,K.util.hexToBytes(r.toString(16))),R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(Z.oids[a]).getBytes()),R.create(R.Class.UNIVERSAL,R.Type.NULL,!1,"")])),n}var Qa=ee,q=Qa.asn1,Wa=Qa.pkcs7asn1=Qa.pkcs7asn1||{};Qa.pkcs7=Qa.pkcs7||{},Qa.pkcs7.asn1=Wa;var x0={name:"ContentInfo",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.ContentType",tagClass:q.Class.UNIVERSAL,type:q.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:q.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,captureAsn1:"content"}]};Wa.contentInfoValidator=x0;var y0={name:"EncryptedContentInfo",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentType",tagClass:q.Class.UNIVERSAL,type:q.Type.OID,constructed:!1,capture:"contentType"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentEncryptionAlgorithm.algorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm.parameter",tagClass:q.Class.UNIVERSAL,captureAsn1:"encParameter"}]},{name:"EncryptedContentInfo.encryptedContent",tagClass:q.Class.CONTEXT_SPECIFIC,type:0,capture:"encryptedContent",captureAsn1:"encryptedContentAsn1"}]};Wa.envelopedDataValidator={name:"EnvelopedData",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"EnvelopedData.Version",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1,capture:"version"},{name:"EnvelopedData.RecipientInfos",tagClass:q.Class.UNIVERSAL,type:q.Type.SET,constructed:!0,captureAsn1:"recipientInfos"}].concat(y0)},Wa.encryptedDataValidator={name:"EncryptedData",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedData.Version",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1,capture:"version"}].concat(y0)};var $E={name:"SignerInfo",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.version",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1},{name:"SignerInfo.issuerAndSerialNumber",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.issuerAndSerialNumber.issuer",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"SignerInfo.issuerAndSerialNumber.serialNumber",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"SignerInfo.digestAlgorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.digestAlgorithm.algorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.OID,constructed:!1,capture:"digestAlgorithm"},{name:"SignerInfo.digestAlgorithm.parameter",tagClass:q.Class.UNIVERSAL,constructed:!1,captureAsn1:"digestParameter",optional:!0}]},{name:"SignerInfo.authenticatedAttributes",tagClass:q.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"authenticatedAttributes"},{name:"SignerInfo.digestEncryptionAlgorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,capture:"signatureAlgorithm"},{name:"SignerInfo.encryptedDigest",tagClass:q.Class.UNIVERSAL,type:q.Type.OCTETSTRING,constructed:!1,capture:"signature"},{name:"SignerInfo.unauthenticatedAttributes",tagClass:q.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,capture:"unauthenticatedAttributes"}]};Wa.signedDataValidator={name:"SignedData",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"SignedData.Version",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1,capture:"version"},{name:"SignedData.DigestAlgorithms",tagClass:q.Class.UNIVERSAL,type:q.Type.SET,constructed:!0,captureAsn1:"digestAlgorithms"},x0,{name:"SignedData.Certificates",tagClass:q.Class.CONTEXT_SPECIFIC,type:0,optional:!0,captureAsn1:"certificates"},{name:"SignedData.CertificateRevocationLists",tagClass:q.Class.CONTEXT_SPECIFIC,type:1,optional:!0,captureAsn1:"crls"},{name:"SignedData.SignerInfos",tagClass:q.Class.UNIVERSAL,type:q.Type.SET,capture:"signerInfos",optional:!0,value:[$E]}]},Wa.recipientInfoValidator={name:"RecipientInfo",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.version",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1,capture:"version"},{name:"RecipientInfo.issuerAndSerial",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.issuerAndSerial.issuer",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"RecipientInfo.issuerAndSerial.serialNumber",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"RecipientInfo.keyEncryptionAlgorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.keyEncryptionAlgorithm.algorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"RecipientInfo.keyEncryptionAlgorithm.parameter",tagClass:q.Class.UNIVERSAL,constructed:!1,captureAsn1:"encParameter",optional:!0}]},{name:"RecipientInfo.encryptedKey",tagClass:q.Class.UNIVERSAL,type:q.Type.OCTETSTRING,constructed:!1,capture:"encKey"}]};var Ba=ee;Ba.mgf=Ba.mgf||{};var GE=Ba.mgf.mgf1=Ba.mgf1=Ba.mgf1||{};GE.create=function(e){var t={generate:function(r,a){for(var n=new Ba.util.ByteBuffer,s=Math.ceil(a/e.digestLength),i=0;i<s;i++){var o=new Ba.util.ByteBuffer;o.putInt32(i),e.start(),e.update(r+o.getBytes()),n.putBuffer(e.digest())}return n.truncate(n.length()-a),n.getBytes()}};return t};var ol=ee;ol.mgf=ol.mgf||{},ol.mgf.mgf1=ol.mgf1;var _a=ee,QE=_a.pss=_a.pss||{};QE.create=function(e){arguments.length===3&&(e={md:arguments[0],mgf:arguments[1],saltLength:arguments[2]});var t=e.md,r=e.mgf,a=t.digestLength,n=e.salt||null;typeof n=="string"&&(n=_a.util.createBuffer(n));var s;if("saltLength"in e)s=e.saltLength;else if(n!==null)s=n.length();else throw new Error("Salt length not specified or specific salt not given.");if(n!==null&&n.length()!==s)throw new Error("Given salt length does not match length of given salt.");var i=e.prng||_a.random,o={};return o.encode=function(c,l){var u,p=l-1,f=Math.ceil(p/8),x=c.digest().getBytes();if(f<a+s+2)throw new Error("Message is too long to encrypt.");var m;n===null?m=i.getBytesSync(s):m=n.bytes();var y=new _a.util.ByteBuffer;y.fillWithByte(0,8),y.putBytes(x),y.putBytes(m),t.start(),t.update(y.getBytes());var b=t.digest().getBytes(),S=new _a.util.ByteBuffer;S.fillWithByte(0,f-s-a-2),S.putByte(1),S.putBytes(m);var B=S.getBytes(),_=f-a-1,D=r.generate(b,_),k="";for(u=0;u<_;u++)k+=String.fromCharCode(B.charCodeAt(u)^D.charCodeAt(u));var P=65280>>8*f-p&255;return k=String.fromCharCode(k.charCodeAt(0)&~P)+k.substr(1),k+b+"\xBC"},o.verify=function(c,l,u){var p,f=u-1,x=Math.ceil(f/8);if(l=l.substr(-x),x<a+s+2)throw new Error("Inconsistent parameters to PSS signature verification.");if(l.charCodeAt(x-1)!==188)throw new Error("Encoded message does not end in 0xBC.");var m=x-a-1,y=l.substr(0,m),b=l.substr(m,a),S=65280>>8*x-f&255;if((y.charCodeAt(0)&S)!==0)throw new Error("Bits beyond keysize not zero as expected.");var B=r.generate(b,m),_="";for(p=0;p<m;p++)_+=String.fromCharCode(y.charCodeAt(p)^B.charCodeAt(p));_=String.fromCharCode(_.charCodeAt(0)&~S)+_.substr(1);var D=x-a-s-2;for(p=0;p<D;p++)if(_.charCodeAt(p)!==0)throw new Error("Leftmost octets not zero as expected");if(_.charCodeAt(D)!==1)throw new Error("Inconsistent PSS signature, 0x01 marker not found");var k=_.substr(-s),P=new _a.util.ByteBuffer;P.fillWithByte(0,8),P.putBytes(c),P.putBytes(k),t.start(),t.update(P.getBytes());var z=t.digest().getBytes();return b===z},o};var G=ee,h=G.asn1,F=G.pki=G.pki||{},fe=F.oids,Ue={};Ue.CN=fe.commonName,Ue.commonName="CN",Ue.C=fe.countryName,Ue.countryName="C",Ue.L=fe.localityName,Ue.localityName="L",Ue.ST=fe.stateOrProvinceName,Ue.stateOrProvinceName="ST",Ue.O=fe.organizationName,Ue.organizationName="O",Ue.OU=fe.organizationalUnitName,Ue.organizationalUnitName="OU",Ue.E=fe.emailAddress,Ue.emailAddress="E";var b0=G.pki.rsa.publicKeyValidator,WE={name:"Certificate",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"tbsCertificate",value:[{name:"Certificate.TBSCertificate.version",tagClass:h.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.version.integer",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"certVersion"}]},{name:"Certificate.TBSCertificate.serialNumber",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"certSerialNumber"},{name:"Certificate.TBSCertificate.signature",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.signature.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"certinfoSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:h.Class.UNIVERSAL,optional:!0,captureAsn1:"certinfoSignatureParams"}]},{name:"Certificate.TBSCertificate.issuer",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"certIssuer"},{name:"Certificate.TBSCertificate.validity",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.validity.notBefore (utc)",tagClass:h.Class.UNIVERSAL,type:h.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity1UTCTime"},{name:"Certificate.TBSCertificate.validity.notBefore (generalized)",tagClass:h.Class.UNIVERSAL,type:h.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity2GeneralizedTime"},{name:"Certificate.TBSCertificate.validity.notAfter (utc)",tagClass:h.Class.UNIVERSAL,type:h.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity3UTCTime"},{name:"Certificate.TBSCertificate.validity.notAfter (generalized)",tagClass:h.Class.UNIVERSAL,type:h.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity4GeneralizedTime"}]},{name:"Certificate.TBSCertificate.subject",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"certSubject"},b0,{name:"Certificate.TBSCertificate.issuerUniqueID",tagClass:h.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.issuerUniqueID.id",tagClass:h.Class.UNIVERSAL,type:h.Type.BITSTRING,constructed:!1,captureBitStringValue:"certIssuerUniqueId"}]},{name:"Certificate.TBSCertificate.subjectUniqueID",tagClass:h.Class.CONTEXT_SPECIFIC,type:2,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.subjectUniqueID.id",tagClass:h.Class.UNIVERSAL,type:h.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSubjectUniqueId"}]},{name:"Certificate.TBSCertificate.extensions",tagClass:h.Class.CONTEXT_SPECIFIC,type:3,constructed:!0,captureAsn1:"certExtensions",optional:!0}]},{name:"Certificate.signatureAlgorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.signatureAlgorithm.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"certSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:h.Class.UNIVERSAL,optional:!0,captureAsn1:"certSignatureParams"}]},{name:"Certificate.signatureValue",tagClass:h.Class.UNIVERSAL,type:h.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSignature"}]},XE={name:"rsapss",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.hashAlgorithm",tagClass:h.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier",tagClass:h.Class.UNIVERSAL,type:h.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"hashOid"}]}]},{name:"rsapss.maskGenAlgorithm",tagClass:h.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier",tagClass:h.Class.UNIVERSAL,type:h.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"maskGenOid"},{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"maskGenHashOid"}]}]}]},{name:"rsapss.saltLength",tagClass:h.Class.CONTEXT_SPECIFIC,type:2,optional:!0,value:[{name:"rsapss.saltLength.saltLength",tagClass:h.Class.UNIVERSAL,type:h.Class.INTEGER,constructed:!1,capture:"saltLength"}]},{name:"rsapss.trailerField",tagClass:h.Class.CONTEXT_SPECIFIC,type:3,optional:!0,value:[{name:"rsapss.trailer.trailer",tagClass:h.Class.UNIVERSAL,type:h.Class.INTEGER,constructed:!1,capture:"trailer"}]}]},YE={name:"CertificationRequestInfo",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfo",value:[{name:"CertificationRequestInfo.integer",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"certificationRequestInfoVersion"},{name:"CertificationRequestInfo.subject",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfoSubject"},b0,{name:"CertificationRequestInfo.attributes",tagClass:h.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"certificationRequestInfoAttributes",value:[{name:"CertificationRequestInfo.attributes",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequestInfo.attributes.type",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1},{name:"CertificationRequestInfo.attributes.value",tagClass:h.Class.UNIVERSAL,type:h.Type.SET,constructed:!0}]}]}]},JE={name:"CertificationRequest",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"csr",value:[YE,{name:"CertificationRequest.signatureAlgorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequest.signatureAlgorithm.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"csrSignatureOid"},{name:"CertificationRequest.signatureAlgorithm.parameters",tagClass:h.Class.UNIVERSAL,optional:!0,captureAsn1:"csrSignatureParams"}]},{name:"CertificationRequest.signature",tagClass:h.Class.UNIVERSAL,type:h.Type.BITSTRING,constructed:!1,captureBitStringValue:"csrSignature"}]};F.RDNAttributesAsArray=function(e,t){for(var r=[],a,n,s,i=0;i<e.value.length;++i){a=e.value[i];for(var o=0;o<a.value.length;++o)s={},n=a.value[o],s.type=h.derToOid(n.value[0].value),s.value=n.value[1].value,s.valueTagClass=n.value[1].type,s.type in fe&&(s.name=fe[s.type],s.name in Ue&&(s.shortName=Ue[s.name])),t&&(t.update(s.type),t.update(s.value)),r.push(s)}return r},F.CRIAttributesAsArray=function(e){for(var t=[],r=0;r<e.length;++r)for(var a=e[r],n=h.derToOid(a.value[0].value),s=a.value[1].value,i=0;i<s.length;++i){var o={};if(o.type=n,o.value=s[i].value,o.valueTagClass=s[i].type,o.type in fe&&(o.name=fe[o.type],o.name in Ue&&(o.shortName=Ue[o.name])),o.type===fe.extensionRequest){o.extensions=[];for(var c=0;c<o.value.length;++c)o.extensions.push(F.certificateExtensionFromAsn1(o.value[c]))}t.push(o)}return t};function ua(e,t){typeof t=="string"&&(t={shortName:t});for(var r=null,a,n=0;r===null&&n<e.attributes.length;++n)a=e.attributes[n],(t.type&&t.type===a.type||t.name&&t.name===a.name||t.shortName&&t.shortName===a.shortName)&&(r=a);return r}var cl=function(e,t,r){var a={};if(e!==fe["RSASSA-PSS"])return a;r&&(a={hash:{algorithmOid:fe.sha1},mgf:{algorithmOid:fe.mgf1,hash:{algorithmOid:fe.sha1}},saltLength:20});var n={},s=[];if(!h.validate(t,XE,n,s)){var i=new Error("Cannot read RSASSA-PSS parameter block.");throw i.errors=s,i}return n.hashOid!==void 0&&(a.hash=a.hash||{},a.hash.algorithmOid=h.derToOid(n.hashOid)),n.maskGenOid!==void 0&&(a.mgf=a.mgf||{},a.mgf.algorithmOid=h.derToOid(n.maskGenOid),a.mgf.hash=a.mgf.hash||{},a.mgf.hash.algorithmOid=h.derToOid(n.maskGenHashOid)),n.saltLength!==void 0&&(a.saltLength=n.saltLength.charCodeAt(0)),a},ll=function(e){switch(fe[e.signatureOid]){case"sha1WithRSAEncryption":case"sha1WithRSASignature":return G.md.sha1.create();case"md5WithRSAEncryption":return G.md.md5.create();case"sha256WithRSAEncryption":return G.md.sha256.create();case"sha384WithRSAEncryption":return G.md.sha384.create();case"sha512WithRSAEncryption":return G.md.sha512.create();case"RSASSA-PSS":return G.md.sha256.create();default:var t=new Error("Could not compute "+e.type+" digest. Unknown signature OID.");throw t.signatureOid=e.signatureOid,t}},E0=function(e){var t=e.certificate,r;switch(t.signatureOid){case fe.sha1WithRSAEncryption:case fe.sha1WithRSASignature:break;case fe["RSASSA-PSS"]:var a,n;if(a=fe[t.signatureParameters.mgf.hash.algorithmOid],a===void 0||G.md[a]===void 0){var s=new Error("Unsupported MGF hash function.");throw s.oid=t.signatureParameters.mgf.hash.algorithmOid,s.name=a,s}if(n=fe[t.signatureParameters.mgf.algorithmOid],n===void 0||G.mgf[n]===void 0){var s=new Error("Unsupported MGF function.");throw s.oid=t.signatureParameters.mgf.algorithmOid,s.name=n,s}if(n=G.mgf[n].create(G.md[a].create()),a=fe[t.signatureParameters.hash.algorithmOid],a===void 0||G.md[a]===void 0){var s=new Error("Unsupported RSASSA-PSS hash function.");throw s.oid=t.signatureParameters.hash.algorithmOid,s.name=a,s}r=G.pss.create(G.md[a].create(),n,t.signatureParameters.saltLength);break}return t.publicKey.verify(e.md.digest().getBytes(),e.signature,r)};F.certificateFromPem=function(e,t,r){var a=G.pem.decode(e)[0];if(a.type!=="CERTIFICATE"&&a.type!=="X509 CERTIFICATE"&&a.type!=="TRUSTED CERTIFICATE"){var n=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw n.headerType=a.type,n}if(a.procType&&a.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var s=h.fromDer(a.body,r);return F.certificateFromAsn1(s,t)},F.certificateToPem=function(e,t){var r={type:"CERTIFICATE",body:h.toDer(F.certificateToAsn1(e)).getBytes()};return G.pem.encode(r,{maxline:t})},F.publicKeyFromPem=function(e){var t=G.pem.decode(e)[0];if(t.type!=="PUBLIC KEY"&&t.type!=="RSA PUBLIC KEY"){var r=new Error('Could not convert public key from PEM; PEM header type is not "PUBLIC KEY" or "RSA PUBLIC KEY".');throw r.headerType=t.type,r}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert public key from PEM; PEM is encrypted.");var a=h.fromDer(t.body);return F.publicKeyFromAsn1(a)},F.publicKeyToPem=function(e,t){var r={type:"PUBLIC KEY",body:h.toDer(F.publicKeyToAsn1(e)).getBytes()};return G.pem.encode(r,{maxline:t})},F.publicKeyToRSAPublicKeyPem=function(e,t){var r={type:"RSA PUBLIC KEY",body:h.toDer(F.publicKeyToRSAPublicKey(e)).getBytes()};return G.pem.encode(r,{maxline:t})},F.getPublicKeyFingerprint=function(e,t){t=t||{};var r=t.md||G.md.sha1.create(),a=t.type||"RSAPublicKey",n;switch(a){case"RSAPublicKey":n=h.toDer(F.publicKeyToRSAPublicKey(e)).getBytes();break;case"SubjectPublicKeyInfo":n=h.toDer(F.publicKeyToAsn1(e)).getBytes();break;default:throw new Error('Unknown fingerprint type "'+t.type+'".')}r.start(),r.update(n);var s=r.digest();if(t.encoding==="hex"){var i=s.toHex();return t.delimiter?i.match(/.{2}/g).join(t.delimiter):i}else{if(t.encoding==="binary")return s.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".')}return s},F.certificationRequestFromPem=function(e,t,r){var a=G.pem.decode(e)[0];if(a.type!=="CERTIFICATE REQUEST"){var n=new Error('Could not convert certification request from PEM; PEM header type is not "CERTIFICATE REQUEST".');throw n.headerType=a.type,n}if(a.procType&&a.procType.type==="ENCRYPTED")throw new Error("Could not convert certification request from PEM; PEM is encrypted.");var s=h.fromDer(a.body,r);return F.certificationRequestFromAsn1(s,t)},F.certificationRequestToPem=function(e,t){var r={type:"CERTIFICATE REQUEST",body:h.toDer(F.certificationRequestToAsn1(e)).getBytes()};return G.pem.encode(r,{maxline:t})},F.createCertificate=function(){var e={};return e.version=2,e.serialNumber="00",e.signatureOid=null,e.signature=null,e.siginfo={},e.siginfo.algorithmOid=null,e.validity={},e.validity.notBefore=new Date,e.validity.notAfter=new Date,e.issuer={},e.issuer.getField=function(t){return ua(e.issuer,t)},e.issuer.addField=function(t){Lt([t]),e.issuer.attributes.push(t)},e.issuer.attributes=[],e.issuer.hash=null,e.subject={},e.subject.getField=function(t){return ua(e.subject,t)},e.subject.addField=function(t){Lt([t]),e.subject.attributes.push(t)},e.subject.attributes=[],e.subject.hash=null,e.extensions=[],e.publicKey=null,e.md=null,e.setSubject=function(t,r){Lt(t),e.subject.attributes=t,delete e.subject.uniqueId,r&&(e.subject.uniqueId=r),e.subject.hash=null},e.setIssuer=function(t,r){Lt(t),e.issuer.attributes=t,delete e.issuer.uniqueId,r&&(e.issuer.uniqueId=r),e.issuer.hash=null},e.setExtensions=function(t){for(var r=0;r<t.length;++r)C0(t[r],{cert:e});e.extensions=t},e.getExtension=function(t){typeof t=="string"&&(t={name:t});for(var r=null,a,n=0;r===null&&n<e.extensions.length;++n)a=e.extensions[n],(t.id&&a.id===t.id||t.name&&a.name===t.name)&&(r=a);return r},e.sign=function(t,r){e.md=r||G.md.sha1.create();var a=fe[e.md.algorithm+"WithRSAEncryption"];if(!a){var n=new Error("Could not compute certificate digest. Unknown message digest algorithm OID.");throw n.algorithm=e.md.algorithm,n}e.signatureOid=e.siginfo.algorithmOid=a,e.tbsCertificate=F.getTBSCertificate(e);var s=h.toDer(e.tbsCertificate);e.md.update(s.getBytes()),e.signature=t.sign(e.md)},e.verify=function(t){var r=!1;if(!e.issued(t)){var a=t.issuer,n=e.subject,s=new Error("The parent certificate did not issue the given child certificate; the child certificate's issuer does not match the parent's subject.");throw s.expectedIssuer=n.attributes,s.actualIssuer=a.attributes,s}var i=t.md;if(i===null){i=ll({signatureOid:t.signatureOid,type:"certificate"});var o=t.tbsCertificate||F.getTBSCertificate(t),c=h.toDer(o);i.update(c.getBytes())}return i!==null&&(r=E0({certificate:e,md:i,signature:t.signature})),r},e.isIssuer=function(t){var r=!1,a=e.issuer,n=t.subject;if(a.hash&&n.hash)r=a.hash===n.hash;else if(a.attributes.length===n.attributes.length){r=!0;for(var s,i,o=0;r&&o<a.attributes.length;++o)s=a.attributes[o],i=n.attributes[o],(s.type!==i.type||s.value!==i.value)&&(r=!1)}return r},e.issued=function(t){return t.isIssuer(e)},e.generateSubjectKeyIdentifier=function(){return F.getPublicKeyFingerprint(e.publicKey,{type:"RSAPublicKey"})},e.verifySubjectKeyIdentifier=function(){for(var t=fe.subjectKeyIdentifier,r=0;r<e.extensions.length;++r){var a=e.extensions[r];if(a.id===t){var n=e.generateSubjectKeyIdentifier().getBytes();return G.util.hexToBytes(a.subjectKeyIdentifier)===n}}return!1},e},F.certificateFromAsn1=function(e,t){var r={},a=[];if(!h.validate(e,WE,r,a)){var n=new Error("Cannot read X.509 certificate. ASN.1 object is not an X509v3 Certificate.");throw n.errors=a,n}var s=h.derToOid(r.publicKeyOid);if(s!==F.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var i=F.createCertificate();i.version=r.certVersion?r.certVersion.charCodeAt(0):0;var o=G.util.createBuffer(r.certSerialNumber);i.serialNumber=o.toHex(),i.signatureOid=G.asn1.derToOid(r.certSignatureOid),i.signatureParameters=cl(i.signatureOid,r.certSignatureParams,!0),i.siginfo.algorithmOid=G.asn1.derToOid(r.certinfoSignatureOid),i.siginfo.parameters=cl(i.siginfo.algorithmOid,r.certinfoSignatureParams,!1),i.signature=r.certSignature;var c=[];if(r.certValidity1UTCTime!==void 0&&c.push(h.utcTimeToDate(r.certValidity1UTCTime)),r.certValidity2GeneralizedTime!==void 0&&c.push(h.generalizedTimeToDate(r.certValidity2GeneralizedTime)),r.certValidity3UTCTime!==void 0&&c.push(h.utcTimeToDate(r.certValidity3UTCTime)),r.certValidity4GeneralizedTime!==void 0&&c.push(h.generalizedTimeToDate(r.certValidity4GeneralizedTime)),c.length>2)throw new Error("Cannot read notBefore/notAfter validity times; more than two times were provided in the certificate.");if(c.length<2)throw new Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime.");if(i.validity.notBefore=c[0],i.validity.notAfter=c[1],i.tbsCertificate=r.tbsCertificate,t){i.md=ll({signatureOid:i.signatureOid,type:"certificate"});var l=h.toDer(i.tbsCertificate);i.md.update(l.getBytes())}var u=G.md.sha1.create(),p=h.toDer(r.certIssuer);u.update(p.getBytes()),i.issuer.getField=function(m){return ua(i.issuer,m)},i.issuer.addField=function(m){Lt([m]),i.issuer.attributes.push(m)},i.issuer.attributes=F.RDNAttributesAsArray(r.certIssuer),r.certIssuerUniqueId&&(i.issuer.uniqueId=r.certIssuerUniqueId),i.issuer.hash=u.digest().toHex();var f=G.md.sha1.create(),x=h.toDer(r.certSubject);return f.update(x.getBytes()),i.subject.getField=function(m){return ua(i.subject,m)},i.subject.addField=function(m){Lt([m]),i.subject.attributes.push(m)},i.subject.attributes=F.RDNAttributesAsArray(r.certSubject),r.certSubjectUniqueId&&(i.subject.uniqueId=r.certSubjectUniqueId),i.subject.hash=f.digest().toHex(),r.certExtensions?i.extensions=F.certificateExtensionsFromAsn1(r.certExtensions):i.extensions=[],i.publicKey=F.publicKeyFromAsn1(r.subjectPublicKeyInfo),i},F.certificateExtensionsFromAsn1=function(e){for(var t=[],r=0;r<e.value.length;++r)for(var a=e.value[r],n=0;n<a.value.length;++n)t.push(F.certificateExtensionFromAsn1(a.value[n]));return t},F.certificateExtensionFromAsn1=function(e){var t={};if(t.id=h.derToOid(e.value[0].value),t.critical=!1,e.value[1].type===h.Type.BOOLEAN?(t.critical=e.value[1].value.charCodeAt(0)!==0,t.value=e.value[2].value):t.value=e.value[1].value,t.id in fe){if(t.name=fe[t.id],t.name==="keyUsage"){var r=h.fromDer(t.value),a=0,n=0;r.value.length>1&&(a=r.value.charCodeAt(1),n=r.value.length>2?r.value.charCodeAt(2):0),t.digitalSignature=(a&128)===128,t.nonRepudiation=(a&64)===64,t.keyEncipherment=(a&32)===32,t.dataEncipherment=(a&16)===16,t.keyAgreement=(a&8)===8,t.keyCertSign=(a&4)===4,t.cRLSign=(a&2)===2,t.encipherOnly=(a&1)===1,t.decipherOnly=(n&128)===128}else if(t.name==="basicConstraints"){var r=h.fromDer(t.value);r.value.length>0&&r.value[0].type===h.Type.BOOLEAN?t.cA=r.value[0].value.charCodeAt(0)!==0:t.cA=!1;var s=null;r.value.length>0&&r.value[0].type===h.Type.INTEGER?s=r.value[0].value:r.value.length>1&&(s=r.value[1].value),s!==null&&(t.pathLenConstraint=h.derToInteger(s))}else if(t.name==="extKeyUsage")for(var r=h.fromDer(t.value),i=0;i<r.value.length;++i){var o=h.derToOid(r.value[i].value);o in fe?t[fe[o]]=!0:t[o]=!0}else if(t.name==="nsCertType"){var r=h.fromDer(t.value),a=0;r.value.length>1&&(a=r.value.charCodeAt(1)),t.client=(a&128)===128,t.server=(a&64)===64,t.email=(a&32)===32,t.objsign=(a&16)===16,t.reserved=(a&8)===8,t.sslCA=(a&4)===4,t.emailCA=(a&2)===2,t.objCA=(a&1)===1}else if(t.name==="subjectAltName"||t.name==="issuerAltName"){t.altNames=[];for(var c,r=h.fromDer(t.value),l=0;l<r.value.length;++l){c=r.value[l];var u={type:c.type,value:c.value};switch(t.altNames.push(u),c.type){case 1:case 2:case 6:break;case 7:u.ip=G.util.bytesToIP(c.value);break;case 8:u.oid=h.derToOid(c.value);break}}}else if(t.name==="subjectKeyIdentifier"){var r=h.fromDer(t.value);t.subjectKeyIdentifier=G.util.bytesToHex(r.value)}}return t},F.certificationRequestFromAsn1=function(e,t){var r={},a=[];if(!h.validate(e,JE,r,a)){var n=new Error("Cannot read PKCS#10 certificate request. ASN.1 object is not a PKCS#10 CertificationRequest.");throw n.errors=a,n}var s=h.derToOid(r.publicKeyOid);if(s!==F.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var i=F.createCertificationRequest();if(i.version=r.csrVersion?r.csrVersion.charCodeAt(0):0,i.signatureOid=G.asn1.derToOid(r.csrSignatureOid),i.signatureParameters=cl(i.signatureOid,r.csrSignatureParams,!0),i.siginfo.algorithmOid=G.asn1.derToOid(r.csrSignatureOid),i.siginfo.parameters=cl(i.siginfo.algorithmOid,r.csrSignatureParams,!1),i.signature=r.csrSignature,i.certificationRequestInfo=r.certificationRequestInfo,t){i.md=ll({signatureOid:i.signatureOid,type:"certification request"});var o=h.toDer(i.certificationRequestInfo);i.md.update(o.getBytes())}var c=G.md.sha1.create();return i.subject.getField=function(l){return ua(i.subject,l)},i.subject.addField=function(l){Lt([l]),i.subject.attributes.push(l)},i.subject.attributes=F.RDNAttributesAsArray(r.certificationRequestInfoSubject,c),i.subject.hash=c.digest().toHex(),i.publicKey=F.publicKeyFromAsn1(r.subjectPublicKeyInfo),i.getAttribute=function(l){return ua(i,l)},i.addAttribute=function(l){Lt([l]),i.attributes.push(l)},i.attributes=F.CRIAttributesAsArray(r.certificationRequestInfoAttributes||[]),i},F.createCertificationRequest=function(){var e={};return e.version=0,e.signatureOid=null,e.signature=null,e.siginfo={},e.siginfo.algorithmOid=null,e.subject={},e.subject.getField=function(t){return ua(e.subject,t)},e.subject.addField=function(t){Lt([t]),e.subject.attributes.push(t)},e.subject.attributes=[],e.subject.hash=null,e.publicKey=null,e.attributes=[],e.getAttribute=function(t){return ua(e,t)},e.addAttribute=function(t){Lt([t]),e.attributes.push(t)},e.md=null,e.setSubject=function(t){Lt(t),e.subject.attributes=t,e.subject.hash=null},e.setAttributes=function(t){Lt(t),e.attributes=t},e.sign=function(t,r){e.md=r||G.md.sha1.create();var a=fe[e.md.algorithm+"WithRSAEncryption"];if(!a){var n=new Error("Could not compute certification request digest. Unknown message digest algorithm OID.");throw n.algorithm=e.md.algorithm,n}e.signatureOid=e.siginfo.algorithmOid=a,e.certificationRequestInfo=F.getCertificationRequestInfo(e);var s=h.toDer(e.certificationRequestInfo);e.md.update(s.getBytes()),e.signature=t.sign(e.md)},e.verify=function(){var t=!1,r=e.md;if(r===null){r=ll({signatureOid:e.signatureOid,type:"certification request"});var a=e.certificationRequestInfo||F.getCertificationRequestInfo(e),n=h.toDer(a);r.update(n.getBytes())}return r!==null&&(t=E0({certificate:e,md:r,signature:e.signature})),t},e};function Xa(e){for(var t=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]),r,a,n=e.attributes,s=0;s<n.length;++s){r=n[s];var i=r.value,o=h.Type.PRINTABLESTRING;"valueTagClass"in r&&(o=r.valueTagClass,o===h.Type.UTF8&&(i=G.util.encodeUtf8(i))),a=h.create(h.Class.UNIVERSAL,h.Type.SET,!0,[h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(r.type).getBytes()),h.create(h.Class.UNIVERSAL,o,!1,i)])]),t.value.push(a)}return t}function Lt(e){for(var t,r=0;r<e.length;++r){if(t=e[r],typeof t.name>"u"&&(t.type&&t.type in F.oids?t.name=F.oids[t.type]:t.shortName&&t.shortName in Ue&&(t.name=F.oids[Ue[t.shortName]])),typeof t.type>"u")if(t.name&&t.name in F.oids)t.type=F.oids[t.name];else{var a=new Error("Attribute type not specified.");throw a.attribute=t,a}if(typeof t.shortName>"u"&&t.name&&t.name in Ue&&(t.shortName=Ue[t.name]),t.type===fe.extensionRequest&&(t.valueConstructed=!0,t.valueTagClass=h.Type.SEQUENCE,!t.value&&t.extensions)){t.value=[];for(var n=0;n<t.extensions.length;++n)t.value.push(F.certificateExtensionToAsn1(C0(t.extensions[n])))}if(typeof t.value>"u"){var a=new Error("Attribute value not specified.");throw a.attribute=t,a}}}function C0(e,t){if(t=t||{},typeof e.name>"u"&&e.id&&e.id in F.oids&&(e.name=F.oids[e.id]),typeof e.id>"u")if(e.name&&e.name in F.oids)e.id=F.oids[e.name];else{var r=new Error("Extension ID not specified.");throw r.extension=e,r}if(typeof e.value<"u")return e;if(e.name==="keyUsage"){var a=0,n=0,s=0;e.digitalSignature&&(n|=128,a=7),e.nonRepudiation&&(n|=64,a=6),e.keyEncipherment&&(n|=32,a=5),e.dataEncipherment&&(n|=16,a=4),e.keyAgreement&&(n|=8,a=3),e.keyCertSign&&(n|=4,a=2),e.cRLSign&&(n|=2,a=1),e.encipherOnly&&(n|=1,a=0),e.decipherOnly&&(s|=128,a=7);var i=String.fromCharCode(a);s!==0?i+=String.fromCharCode(n)+String.fromCharCode(s):n!==0&&(i+=String.fromCharCode(n)),e.value=h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,i)}else if(e.name==="basicConstraints")e.value=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]),e.cA&&e.value.value.push(h.create(h.Class.UNIVERSAL,h.Type.BOOLEAN,!1,"\xFF")),"pathLenConstraint"in e&&e.value.value.push(h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,h.integerToDer(e.pathLenConstraint).getBytes()));else if(e.name==="extKeyUsage"){e.value=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);var o=e.value.value;for(var c in e)e[c]===!0&&(c in fe?o.push(h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(fe[c]).getBytes())):c.indexOf(".")!==-1&&o.push(h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(c).getBytes())))}else if(e.name==="nsCertType"){var a=0,n=0;e.client&&(n|=128,a=7),e.server&&(n|=64,a=6),e.email&&(n|=32,a=5),e.objsign&&(n|=16,a=4),e.reserved&&(n|=8,a=3),e.sslCA&&(n|=4,a=2),e.emailCA&&(n|=2,a=1),e.objCA&&(n|=1,a=0);var i=String.fromCharCode(a);n!==0&&(i+=String.fromCharCode(n)),e.value=h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,i)}else if(e.name==="subjectAltName"||e.name==="issuerAltName"){e.value=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);for(var l,u=0;u<e.altNames.length;++u){l=e.altNames[u];var i=l.value;if(l.type===7&&l.ip){if(i=G.util.bytesFromIP(l.ip),i===null){var r=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw r.extension=e,r}}else l.type===8&&(l.oid?i=h.oidToDer(h.oidToDer(l.oid)):i=h.oidToDer(i));e.value.value.push(h.create(h.Class.CONTEXT_SPECIFIC,l.type,!1,i))}}else if(e.name==="nsComment"&&t.cert){if(!/^[\x00-\x7F]*$/.test(e.comment)||e.comment.length<1||e.comment.length>128)throw new Error('Invalid "nsComment" content.');e.value=h.create(h.Class.UNIVERSAL,h.Type.IA5STRING,!1,e.comment)}else if(e.name==="subjectKeyIdentifier"&&t.cert){var p=t.cert.generateSubjectKeyIdentifier();e.subjectKeyIdentifier=p.toHex(),e.value=h.create(h.Class.UNIVERSAL,h.Type.OCTETSTRING,!1,p.getBytes())}else if(e.name==="authorityKeyIdentifier"&&t.cert){e.value=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);var o=e.value.value;if(e.keyIdentifier){var f=e.keyIdentifier===!0?t.cert.generateSubjectKeyIdentifier().getBytes():e.keyIdentifier;o.push(h.create(h.Class.CONTEXT_SPECIFIC,0,!1,f))}if(e.authorityCertIssuer){var x=[h.create(h.Class.CONTEXT_SPECIFIC,4,!0,[Xa(e.authorityCertIssuer===!0?t.cert.issuer:e.authorityCertIssuer)])];o.push(h.create(h.Class.CONTEXT_SPECIFIC,1,!0,x))}if(e.serialNumber){var m=G.util.hexToBytes(e.serialNumber===!0?t.cert.serialNumber:e.serialNumber);o.push(h.create(h.Class.CONTEXT_SPECIFIC,2,!1,m))}}else if(e.name==="cRLDistributionPoints"){e.value=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);for(var o=e.value.value,y=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]),b=h.create(h.Class.CONTEXT_SPECIFIC,0,!0,[]),l,u=0;u<e.altNames.length;++u){l=e.altNames[u];var i=l.value;if(l.type===7&&l.ip){if(i=G.util.bytesFromIP(l.ip),i===null){var r=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw r.extension=e,r}}else l.type===8&&(l.oid?i=h.oidToDer(h.oidToDer(l.oid)):i=h.oidToDer(i));b.value.push(h.create(h.Class.CONTEXT_SPECIFIC,l.type,!1,i))}y.value.push(h.create(h.Class.CONTEXT_SPECIFIC,0,!0,[b])),o.push(y)}if(typeof e.value>"u"){var r=new Error("Extension value not specified.");throw r.extension=e,r}return e}function $u(e,t){switch(e){case fe["RSASSA-PSS"]:var r=[];return t.hash.algorithmOid!==void 0&&r.push(h.create(h.Class.CONTEXT_SPECIFIC,0,!0,[h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(t.hash.algorithmOid).getBytes()),h.create(h.Class.UNIVERSAL,h.Type.NULL,!1,"")])])),t.mgf.algorithmOid!==void 0&&r.push(h.create(h.Class.CONTEXT_SPECIFIC,1,!0,[h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(t.mgf.algorithmOid).getBytes()),h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(t.mgf.hash.algorithmOid).getBytes()),h.create(h.Class.UNIVERSAL,h.Type.NULL,!1,"")])])])),t.saltLength!==void 0&&r.push(h.create(h.Class.CONTEXT_SPECIFIC,2,!0,[h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,h.integerToDer(t.saltLength).getBytes())])),h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,r);default:return h.create(h.Class.UNIVERSAL,h.Type.NULL,!1,"")}}function ZE(e){var t=h.create(h.Class.CONTEXT_SPECIFIC,0,!0,[]);if(e.attributes.length===0)return t;for(var r=e.attributes,a=0;a<r.length;++a){var n=r[a],s=n.value,i=h.Type.UTF8;"valueTagClass"in n&&(i=n.valueTagClass),i===h.Type.UTF8&&(s=G.util.encodeUtf8(s));var o=!1;"valueConstructed"in n&&(o=n.valueConstructed);var c=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(n.type).getBytes()),h.create(h.Class.UNIVERSAL,h.Type.SET,!0,[h.create(h.Class.UNIVERSAL,i,o,s)])]);t.value.push(c)}return t}var eC=new Date("1950-01-01T00:00:00Z"),tC=new Date("2050-01-01T00:00:00Z");function S0(e){return e>=eC&&e<tC?h.create(h.Class.UNIVERSAL,h.Type.UTCTIME,!1,h.dateToUtcTime(e)):h.create(h.Class.UNIVERSAL,h.Type.GENERALIZEDTIME,!1,h.dateToGeneralizedTime(e))}F.getTBSCertificate=function(e){var t=S0(e.validity.notBefore),r=S0(e.validity.notAfter),a=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.CONTEXT_SPECIFIC,0,!0,[h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,h.integerToDer(e.version).getBytes())]),h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,G.util.hexToBytes(e.serialNumber)),h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(e.siginfo.algorithmOid).getBytes()),$u(e.siginfo.algorithmOid,e.siginfo.parameters)]),Xa(e.issuer),h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[t,r]),Xa(e.subject),F.publicKeyToAsn1(e.publicKey)]);return e.issuer.uniqueId&&a.value.push(h.create(h.Class.CONTEXT_SPECIFIC,1,!0,[h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,"\0"+e.issuer.uniqueId)])),e.subject.uniqueId&&a.value.push(h.create(h.Class.CONTEXT_SPECIFIC,2,!0,[h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,"\0"+e.subject.uniqueId)])),e.extensions.length>0&&a.value.push(F.certificateExtensionsToAsn1(e.extensions)),a},F.getCertificationRequestInfo=function(e){var t=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,h.integerToDer(e.version).getBytes()),Xa(e.subject),F.publicKeyToAsn1(e.publicKey),ZE(e)]);return t},F.distinguishedNameToAsn1=function(e){return Xa(e)},F.certificateToAsn1=function(e){var t=e.tbsCertificate||F.getTBSCertificate(e);return h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[t,h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(e.signatureOid).getBytes()),$u(e.signatureOid,e.signatureParameters)]),h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,"\0"+e.signature)])},F.certificateExtensionsToAsn1=function(e){var t=h.create(h.Class.CONTEXT_SPECIFIC,3,!0,[]),r=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);t.value.push(r);for(var a=0;a<e.length;++a)r.value.push(F.certificateExtensionToAsn1(e[a]));return t},F.certificateExtensionToAsn1=function(e){var t=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);t.value.push(h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(e.id).getBytes())),e.critical&&t.value.push(h.create(h.Class.UNIVERSAL,h.Type.BOOLEAN,!1,"\xFF"));var r=e.value;return typeof e.value!="string"&&(r=h.toDer(r).getBytes()),t.value.push(h.create(h.Class.UNIVERSAL,h.Type.OCTETSTRING,!1,r)),t},F.certificationRequestToAsn1=function(e){var t=e.certificationRequestInfo||F.getCertificationRequestInfo(e);return h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[t,h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(e.signatureOid).getBytes()),$u(e.signatureOid,e.signatureParameters)]),h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,"\0"+e.signature)])},F.createCaStore=function(e){var t={certs:{}};t.getIssuer=function(i){var o=r(i.issuer);return o},t.addCertificate=function(i){if(typeof i=="string"&&(i=G.pki.certificateFromPem(i)),a(i.subject),!t.hasCertificate(i))if(i.subject.hash in t.certs){var o=t.certs[i.subject.hash];G.util.isArray(o)||(o=[o]),o.push(i),t.certs[i.subject.hash]=o}else t.certs[i.subject.hash]=i},t.hasCertificate=function(i){typeof i=="string"&&(i=G.pki.certificateFromPem(i));var o=r(i.subject);if(!o)return!1;G.util.isArray(o)||(o=[o]);for(var c=h.toDer(F.certificateToAsn1(i)).getBytes(),l=0;l<o.length;++l){var u=h.toDer(F.certificateToAsn1(o[l])).getBytes();if(c===u)return!0}return!1},t.listAllCertificates=function(){var i=[];for(var o in t.certs)if(t.certs.hasOwnProperty(o)){var c=t.certs[o];if(!G.util.isArray(c))i.push(c);else for(var l=0;l<c.length;++l)i.push(c[l])}return i},t.removeCertificate=function(i){var o;if(typeof i=="string"&&(i=G.pki.certificateFromPem(i)),a(i.subject),!t.hasCertificate(i))return null;var c=r(i.subject);if(!G.util.isArray(c))return o=t.certs[i.subject.hash],delete t.certs[i.subject.hash],o;for(var l=h.toDer(F.certificateToAsn1(i)).getBytes(),u=0;u<c.length;++u){var p=h.toDer(F.certificateToAsn1(c[u])).getBytes();l===p&&(o=c[u],c.splice(u,1))}return c.length===0&&delete t.certs[i.subject.hash],o};function r(i){return a(i),t.certs[i.hash]||null}function a(i){if(!i.hash){var o=G.md.sha1.create();i.attributes=F.RDNAttributesAsArray(Xa(i),o),i.hash=o.digest().toHex()}}if(e)for(var n=0;n<e.length;++n){var s=e[n];t.addCertificate(s)}return t},F.certificateError={bad_certificate:"forge.pki.BadCertificate",unsupported_certificate:"forge.pki.UnsupportedCertificate",certificate_revoked:"forge.pki.CertificateRevoked",certificate_expired:"forge.pki.CertificateExpired",certificate_unknown:"forge.pki.CertificateUnknown",unknown_ca:"forge.pki.UnknownCertificateAuthority"},F.verifyCertificateChain=function(e,t,r){typeof r=="function"&&(r={verify:r}),r=r||{},t=t.slice(0);var a=t.slice(0),n=r.validityCheckDate;typeof n>"u"&&(n=new Date);var s=!0,i=null,o=0;do{var c=t.shift(),l=null,u=!1;if(n&&(n<c.validity.notBefore||n>c.validity.notAfter)&&(i={message:"Certificate is not valid yet or has expired.",error:F.certificateError.certificate_expired,notBefore:c.validity.notBefore,notAfter:c.validity.notAfter,now:n}),i===null){if(l=t[0]||e.getIssuer(c),l===null&&c.isIssuer(c)&&(u=!0,l=c),l){var p=l;G.util.isArray(p)||(p=[p]);for(var f=!1;!f&&p.length>0;){l=p.shift();try{f=l.verify(c)}catch{}}f||(i={message:"Certificate signature is invalid.",error:F.certificateError.bad_certificate})}i===null&&(!l||u)&&!e.hasCertificate(c)&&(i={message:"Certificate is not trusted.",error:F.certificateError.unknown_ca})}if(i===null&&l&&!c.isIssuer(l)&&(i={message:"Certificate issuer is invalid.",error:F.certificateError.bad_certificate}),i===null)for(var x={keyUsage:!0,basicConstraints:!0},m=0;i===null&&m<c.extensions.length;++m){var y=c.extensions[m];y.critical&&!(y.name in x)&&(i={message:"Certificate has an unsupported critical extension.",error:F.certificateError.unsupported_certificate})}if(i===null&&(!s||t.length===0&&(!l||u))){var b=c.getExtension("basicConstraints"),S=c.getExtension("keyUsage");if(S!==null&&(!S.keyCertSign||b===null)&&(i={message:"Certificate keyUsage or basicConstraints conflict or indicate that the certificate is not a CA. If the certificate is the only one in the chain or isn't the first then the certificate must be a valid CA.",error:F.certificateError.bad_certificate}),i===null&&b!==null&&!b.cA&&(i={message:"Certificate basicConstraints indicates the certificate is not a CA.",error:F.certificateError.bad_certificate}),i===null&&S!==null&&"pathLenConstraint"in b){var B=o-1;B>b.pathLenConstraint&&(i={message:"Certificate basicConstraints pathLenConstraint violated.",error:F.certificateError.bad_certificate})}}var _=i===null?!0:i.error,D=r.verify?r.verify(_,o,a):_;if(D===!0)i=null;else throw _===!0&&(i={message:"The application rejected the certificate.",error:F.certificateError.bad_certificate}),(D||D===0)&&(typeof D=="object"&&!G.util.isArray(D)?(D.message&&(i.message=D.message),D.error&&(i.error=D.error)):typeof D=="string"&&(i.error=D)),i;s=!1,++o}while(t.length>0);return!0};var Ae=ee,C=Ae.asn1,ne=Ae.pki,hc=Ae.pkcs12=Ae.pkcs12||{},T0={name:"ContentInfo",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:C.Class.UNIVERSAL,type:C.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:C.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},aC={name:"PFX",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:C.Class.UNIVERSAL,type:C.Type.INTEGER,constructed:!1,capture:"version"},T0,{name:"PFX.macData",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:C.Class.UNIVERSAL,type:C.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:C.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:C.Class.UNIVERSAL,type:C.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:C.Class.UNIVERSAL,type:C.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:C.Class.UNIVERSAL,type:C.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},rC={name:"SafeBag",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:C.Class.UNIVERSAL,type:C.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:C.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:C.Class.UNIVERSAL,type:C.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},nC={name:"Attribute",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:C.Class.UNIVERSAL,type:C.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:C.Class.UNIVERSAL,type:C.Type.SET,constructed:!0,capture:"values"}]},iC={name:"CertBag",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:C.Class.UNIVERSAL,type:C.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:C.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:C.Class.UNIVERSAL,type:C.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function vc(e,t,r,a){for(var n=[],s=0;s<e.length;s++)for(var i=0;i<e[s].safeBags.length;i++){var o=e[s].safeBags[i];if(!(a!==void 0&&o.type!==a)){if(t===null){n.push(o);continue}o.attributes[t]!==void 0&&o.attributes[t].indexOf(r)>=0&&n.push(o)}}return n}hc.pkcs12FromAsn1=function(e,t,r){typeof t=="string"?(r=t,t=!0):t===void 0&&(t=!0);var a={},n=[];if(!C.validate(e,aC,a,n)){var s=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.");throw s.errors=s,s}var i={version:a.version.charCodeAt(0),safeContents:[],getBags:function(b){var S={},B;return"localKeyId"in b?B=b.localKeyId:"localKeyIdHex"in b&&(B=Ae.util.hexToBytes(b.localKeyIdHex)),B===void 0&&!("friendlyName"in b)&&"bagType"in b&&(S[b.bagType]=vc(i.safeContents,null,null,b.bagType)),B!==void 0&&(S.localKeyId=vc(i.safeContents,"localKeyId",B,b.bagType)),"friendlyName"in b&&(S.friendlyName=vc(i.safeContents,"friendlyName",b.friendlyName,b.bagType)),S},getBagsByFriendlyName:function(b,S){return vc(i.safeContents,"friendlyName",b,S)},getBagsByLocalKeyId:function(b,S){return vc(i.safeContents,"localKeyId",b,S)}};if(a.version.charCodeAt(0)!==3){var s=new Error("PKCS#12 PFX of version other than 3 not supported.");throw s.version=a.version.charCodeAt(0),s}if(C.derToOid(a.contentType)!==ne.oids.data){var s=new Error("Only PKCS#12 PFX in password integrity mode supported.");throw s.oid=C.derToOid(a.contentType),s}var o=a.content.value[0];if(o.tagClass!==C.Class.UNIVERSAL||o.type!==C.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(o=Gu(o),a.mac){var c=null,l=0,u=C.derToOid(a.macAlgorithm);switch(u){case ne.oids.sha1:c=Ae.md.sha1.create(),l=20;break;case ne.oids.sha256:c=Ae.md.sha256.create(),l=32;break;case ne.oids.sha384:c=Ae.md.sha384.create(),l=48;break;case ne.oids.sha512:c=Ae.md.sha512.create(),l=64;break;case ne.oids.md5:c=Ae.md.md5.create(),l=16;break}if(c===null)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+u);var p=new Ae.util.ByteBuffer(a.macSalt),f="macIterations"in a?parseInt(Ae.util.bytesToHex(a.macIterations),16):1,x=hc.generateKey(r,p,3,f,l,c),m=Ae.hmac.create();m.start(c,x),m.update(o.value);var y=m.getMac();if(y.getBytes()!==a.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}else if(Array.isArray(e.value)&&e.value.length>2)throw new Error("Invalid PKCS#12. macData field present but MAC was not validated.");return sC(i,o.value,t,r),i};function Gu(e){if(e.composed||e.constructed){for(var t=Ae.util.createBuffer(),r=0;r<e.value.length;++r)t.putBytes(e.value[r].value);e.composed=e.constructed=!1,e.value=t.getBytes()}return e}function sC(e,t,r,a){if(t=C.fromDer(t,r),t.tagClass!==C.Class.UNIVERSAL||t.type!==C.Type.SEQUENCE||t.constructed!==!0)throw new Error("PKCS#12 AuthenticatedSafe expected to be a SEQUENCE OF ContentInfo");for(var n=0;n<t.value.length;n++){var s=t.value[n],i={},o=[];if(!C.validate(s,T0,i,o)){var c=new Error("Cannot read ContentInfo.");throw c.errors=o,c}var l={encrypted:!1},u=null,p=i.content.value[0];switch(C.derToOid(i.contentType)){case ne.oids.data:if(p.tagClass!==C.Class.UNIVERSAL||p.type!==C.Type.OCTETSTRING)throw new Error("PKCS#12 SafeContents Data is not an OCTET STRING.");u=Gu(p).value;break;case ne.oids.encryptedData:u=oC(p,a),l.encrypted=!0;break;default:var c=new Error("Unsupported PKCS#12 contentType.");throw c.contentType=C.derToOid(i.contentType),c}l.safeBags=cC(u,r,a),e.safeContents.push(l)}}function oC(e,t){var r={},a=[];if(!C.validate(e,Ae.pkcs7.asn1.encryptedDataValidator,r,a)){var n=new Error("Cannot read EncryptedContentInfo.");throw n.errors=a,n}var s=C.derToOid(r.contentType);if(s!==ne.oids.data){var n=new Error("PKCS#12 EncryptedContentInfo ContentType is not Data.");throw n.oid=s,n}s=C.derToOid(r.encAlgorithm);var i=ne.pbe.getCipher(s,r.encParameter,t),o=Gu(r.encryptedContentAsn1),c=Ae.util.createBuffer(o.value);if(i.update(c),!i.finish())throw new Error("Failed to decrypt PKCS#12 SafeContents.");return i.output.getBytes()}function cC(e,t,r){if(!t&&e.length===0)return[];if(e=C.fromDer(e,t),e.tagClass!==C.Class.UNIVERSAL||e.type!==C.Type.SEQUENCE||e.constructed!==!0)throw new Error("PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.");for(var a=[],n=0;n<e.value.length;n++){var s=e.value[n],i={},o=[];if(!C.validate(s,rC,i,o)){var c=new Error("Cannot read SafeBag.");throw c.errors=o,c}var l={type:C.derToOid(i.bagId),attributes:lC(i.bagAttributes)};a.push(l);var u,p,f=i.bagValue.value[0];switch(l.type){case ne.oids.pkcs8ShroudedKeyBag:if(f=ne.decryptPrivateKeyInfo(f,r),f===null)throw new Error("Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?");case ne.oids.keyBag:try{l.key=ne.privateKeyFromAsn1(f)}catch{l.key=null,l.asn1=f}continue;case ne.oids.certBag:u=iC,p=function(){if(C.derToOid(i.certId)!==ne.oids.x509Certificate){var m=new Error("Unsupported certificate type, only X.509 supported.");throw m.oid=C.derToOid(i.certId),m}var y=C.fromDer(i.cert,t);try{l.cert=ne.certificateFromAsn1(y,!0)}catch{l.cert=null,l.asn1=y}};break;default:var c=new Error("Unsupported PKCS#12 SafeBag type.");throw c.oid=l.type,c}if(u!==void 0&&!C.validate(f,u,i,o)){var c=new Error("Cannot read PKCS#12 "+u.name);throw c.errors=o,c}p()}return a}function lC(e){var t={};if(e!==void 0)for(var r=0;r<e.length;++r){var a={},n=[];if(!C.validate(e[r],nC,a,n)){var s=new Error("Cannot read PKCS#12 BagAttribute.");throw s.errors=n,s}var i=C.derToOid(a.oid);if(ne.oids[i]!==void 0){t[ne.oids[i]]=[];for(var o=0;o<a.values.length;++o)t[ne.oids[i]].push(a.values[o].value)}}return t}hc.toPkcs12Asn1=function(e,t,r,a){a=a||{},a.saltSize=a.saltSize||8,a.count=a.count||2048,a.algorithm=a.algorithm||a.encAlgorithm||"aes128","useMac"in a||(a.useMac=!0),"localKeyId"in a||(a.localKeyId=null),"generateLocalKeyId"in a||(a.generateLocalKeyId=!0);var n=a.localKeyId,s;if(n!==null)n=Ae.util.hexToBytes(n);else if(a.generateLocalKeyId)if(t){var i=Ae.util.isArray(t)?t[0]:t;typeof i=="string"&&(i=ne.certificateFromPem(i));var o=Ae.md.sha1.create();o.update(C.toDer(ne.certificateToAsn1(i)).getBytes()),n=o.digest().getBytes()}else n=Ae.random.getBytes(20);var c=[];n!==null&&c.push(C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(ne.oids.localKeyId).getBytes()),C.create(C.Class.UNIVERSAL,C.Type.SET,!0,[C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,n)])])),"friendlyName"in a&&c.push(C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(ne.oids.friendlyName).getBytes()),C.create(C.Class.UNIVERSAL,C.Type.SET,!0,[C.create(C.Class.UNIVERSAL,C.Type.BMPSTRING,!1,a.friendlyName)])])),c.length>0&&(s=C.create(C.Class.UNIVERSAL,C.Type.SET,!0,c));var l=[],u=[];t!==null&&(Ae.util.isArray(t)?u=t:u=[t]);for(var p=[],f=0;f<u.length;++f){t=u[f],typeof t=="string"&&(t=ne.certificateFromPem(t));var x=f===0?s:void 0,m=ne.certificateToAsn1(t),y=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(ne.oids.certBag).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(ne.oids.x509Certificate).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,C.toDer(m).getBytes())])])]),x]);p.push(y)}if(p.length>0){var b=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,p),S=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(ne.oids.data).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,C.toDer(b).getBytes())])]);l.push(S)}var B=null;if(e!==null){var _=ne.wrapRsaPrivateKey(ne.privateKeyToAsn1(e));r===null?B=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(ne.oids.keyBag).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[_]),s]):B=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(ne.oids.pkcs8ShroudedKeyBag).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[ne.encryptPrivateKeyInfo(_,r,a)]),s]);var D=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[B]),k=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(ne.oids.data).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,C.toDer(D).getBytes())])]);l.push(k)}var P=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,l),z;if(a.useMac){var o=Ae.md.sha1.create(),W=new Ae.util.ByteBuffer(Ae.random.getBytes(a.saltSize)),J=a.count,e=hc.generateKey(r,W,3,J,20),te=Ae.hmac.create();te.start(o,e),te.update(C.toDer(P).getBytes());var ve=te.getMac();z=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(ne.oids.sha1).getBytes()),C.create(C.Class.UNIVERSAL,C.Type.NULL,!1,"")]),C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,ve.getBytes())]),C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,W.getBytes()),C.create(C.Class.UNIVERSAL,C.Type.INTEGER,!1,C.integerToDer(J).getBytes())])}return C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.INTEGER,!1,C.integerToDer(3).getBytes()),C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(ne.oids.data).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,C.toDer(P).getBytes())])]),z])},hc.generateKey=Ae.pbe.generatePkcs12Key;var pa=ee,Qu=pa.asn1,Ya=pa.pki=pa.pki||{};Ya.pemToDer=function(e){var t=pa.pem.decode(e)[0];if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert PEM to DER; PEM is encrypted.");return pa.util.createBuffer(t.body)},Ya.privateKeyFromPem=function(e){var t=pa.pem.decode(e)[0];if(t.type!=="PRIVATE KEY"&&t.type!=="RSA PRIVATE KEY"){var r=new Error('Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');throw r.headerType=t.type,r}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert private key from PEM; PEM is encrypted.");var a=Qu.fromDer(t.body);return Ya.privateKeyFromAsn1(a)},Ya.privateKeyToPem=function(e,t){var r={type:"RSA PRIVATE KEY",body:Qu.toDer(Ya.privateKeyToAsn1(e)).getBytes()};return pa.pem.encode(r,{maxline:t})},Ya.privateKeyInfoToPem=function(e,t){var r={type:"PRIVATE KEY",body:Qu.toDer(e).getBytes()};return pa.pem.encode(r,{maxline:t})};var L=ee,ul=function(e,t,r,a){var n=L.util.createBuffer(),s=e.length>>1,i=s+(e.length&1),o=e.substr(0,i),c=e.substr(s,i),l=L.util.createBuffer(),u=L.hmac.create();r=t+r;var p=Math.ceil(a/16),f=Math.ceil(a/20);u.start("MD5",o);var x=L.util.createBuffer();l.putBytes(r);for(var m=0;m<p;++m)u.start(null,null),u.update(l.getBytes()),l.putBuffer(u.digest()),u.start(null,null),u.update(l.bytes()+r),x.putBuffer(u.digest());u.start("SHA1",c);var y=L.util.createBuffer();l.clear(),l.putBytes(r);for(var m=0;m<f;++m)u.start(null,null),u.update(l.getBytes()),l.putBuffer(u.digest()),u.start(null,null),u.update(l.bytes()+r),y.putBuffer(u.digest());return n.putBytes(L.util.xorBytes(x.getBytes(),y.getBytes(),a)),n},uC=function(e,t,r){var a=L.hmac.create();a.start("SHA1",e);var n=L.util.createBuffer();return n.putInt32(t[0]),n.putInt32(t[1]),n.putByte(r.type),n.putByte(r.version.major),n.putByte(r.version.minor),n.putInt16(r.length),n.putBytes(r.fragment.bytes()),a.update(n.getBytes()),a.digest().getBytes()},pC=function(e,t,r){var a=!1;try{var n=e.deflate(t.fragment.getBytes());t.fragment=L.util.createBuffer(n),t.length=n.length,a=!0}catch{}return a},dC=function(e,t,r){var a=!1;try{var n=e.inflate(t.fragment.getBytes());t.fragment=L.util.createBuffer(n),t.length=n.length,a=!0}catch{}return a},It=function(e,t){var r=0;switch(t){case 1:r=e.getByte();break;case 2:r=e.getInt16();break;case 3:r=e.getInt24();break;case 4:r=e.getInt32();break}return L.util.createBuffer(e.getBytes(r))},Ut=function(e,t,r){e.putInt(r.length(),t<<3),e.putBuffer(r)},g={};g.Versions={TLS_1_0:{major:3,minor:1},TLS_1_1:{major:3,minor:2},TLS_1_2:{major:3,minor:3}},g.SupportedVersions=[g.Versions.TLS_1_1,g.Versions.TLS_1_0],g.Version=g.SupportedVersions[0],g.MaxFragment=15360,g.ConnectionEnd={server:0,client:1},g.PRFAlgorithm={tls_prf_sha256:0},g.BulkCipherAlgorithm={none:null,rc4:0,des3:1,aes:2},g.CipherType={stream:0,block:1,aead:2},g.MACAlgorithm={none:null,hmac_md5:0,hmac_sha1:1,hmac_sha256:2,hmac_sha384:3,hmac_sha512:4},g.CompressionMethod={none:0,deflate:1},g.ContentType={change_cipher_spec:20,alert:21,handshake:22,application_data:23,heartbeat:24},g.HandshakeType={hello_request:0,client_hello:1,server_hello:2,certificate:11,server_key_exchange:12,certificate_request:13,server_hello_done:14,certificate_verify:15,client_key_exchange:16,finished:20},g.Alert={},g.Alert.Level={warning:1,fatal:2},g.Alert.Description={close_notify:0,unexpected_message:10,bad_record_mac:20,decryption_failed:21,record_overflow:22,decompression_failure:30,handshake_failure:40,bad_certificate:42,unsupported_certificate:43,certificate_revoked:44,certificate_expired:45,certificate_unknown:46,illegal_parameter:47,unknown_ca:48,access_denied:49,decode_error:50,decrypt_error:51,export_restriction:60,protocol_version:70,insufficient_security:71,internal_error:80,user_canceled:90,no_renegotiation:100},g.HeartbeatMessageType={heartbeat_request:1,heartbeat_response:2},g.CipherSuites={},g.getCipherSuite=function(e){var t=null;for(var r in g.CipherSuites){var a=g.CipherSuites[r];if(a.id[0]===e.charCodeAt(0)&&a.id[1]===e.charCodeAt(1)){t=a;break}}return t},g.handleUnexpected=function(e,t){var r=!e.open&&e.entity===g.ConnectionEnd.client;r||e.error(e,{message:"Unexpected message. Received TLS record out of order.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unexpected_message}})},g.handleHelloRequest=function(e,t,r){!e.handshaking&&e.handshakes>0&&(g.queue(e,g.createAlert(e,{level:g.Alert.Level.warning,description:g.Alert.Description.no_renegotiation})),g.flush(e)),e.process()},g.parseHelloMessage=function(e,t,r){var a=null,n=e.entity===g.ConnectionEnd.client;if(r<38)e.error(e,{message:n?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});else{var s=t.fragment,i=s.length();if(a={version:{major:s.getByte(),minor:s.getByte()},random:L.util.createBuffer(s.getBytes(32)),session_id:It(s,1),extensions:[]},n?(a.cipher_suite=s.getBytes(2),a.compression_method=s.getByte()):(a.cipher_suites=It(s,2),a.compression_methods=It(s,1)),i=r-(i-s.length()),i>0){for(var o=It(s,2);o.length()>0;)a.extensions.push({type:[o.getByte(),o.getByte()],data:It(o,2)});if(!n)for(var c=0;c<a.extensions.length;++c){var l=a.extensions[c];if(l.type[0]===0&&l.type[1]===0)for(var u=It(l.data,2);u.length()>0;){var p=u.getByte();if(p!==0)break;e.session.extensions.server_name.serverNameList.push(It(u,2).getBytes())}}}if(e.session.version&&(a.version.major!==e.session.version.major||a.version.minor!==e.session.version.minor))return e.error(e,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.protocol_version}});if(n)e.session.cipherSuite=g.getCipherSuite(a.cipher_suite);else for(var f=L.util.createBuffer(a.cipher_suites.bytes());f.length()>0&&(e.session.cipherSuite=g.getCipherSuite(f.getBytes(2)),e.session.cipherSuite===null););if(e.session.cipherSuite===null)return e.error(e,{message:"No cipher suites in common.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.handshake_failure},cipherSuite:L.util.bytesToHex(a.cipher_suite)});n?e.session.compressionMethod=a.compression_method:e.session.compressionMethod=g.CompressionMethod.none}return a},g.createSecurityParameters=function(e,t){var r=e.entity===g.ConnectionEnd.client,a=t.random.bytes(),n=r?e.session.sp.client_random:a,s=r?a:g.createRandom().getBytes();e.session.sp={entity:e.entity,prf_algorithm:g.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:e.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:n,server_random:s}},g.handleServerHello=function(e,t,r){var a=g.parseHelloMessage(e,t,r);if(!e.fail){if(a.version.minor<=e.version.minor)e.version.minor=a.version.minor;else return e.error(e,{message:"Incompatible TLS version.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.protocol_version}});e.session.version=e.version;var n=a.session_id.bytes();n.length>0&&n===e.session.id?(e.expect=A0,e.session.resuming=!0,e.session.sp.server_random=a.random.bytes()):(e.expect=mC,e.session.resuming=!1,g.createSecurityParameters(e,a)),e.session.id=n,e.process()}},g.handleClientHello=function(e,t,r){var a=g.parseHelloMessage(e,t,r);if(!e.fail){var n=a.session_id.bytes(),s=null;if(e.sessionCache&&(s=e.sessionCache.getSession(n),s===null?n="":(s.version.major!==a.version.major||s.version.minor>a.version.minor)&&(s=null,n="")),n.length===0&&(n=L.random.getBytes(32)),e.session.id=n,e.session.clientHelloVersion=a.version,e.session.sp={},s)e.version=e.session.version=s.version,e.session.sp=s.sp;else{for(var i,o=1;o<g.SupportedVersions.length&&(i=g.SupportedVersions[o],!(i.minor<=a.version.minor));++o);e.version={major:i.major,minor:i.minor},e.session.version=e.version}s!==null?(e.expect=Xu,e.session.resuming=!0,e.session.sp.client_random=a.random.bytes()):(e.expect=e.verifyClient!==!1?EC:Wu,e.session.resuming=!1,g.createSecurityParameters(e,a)),e.open=!0,g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createServerHello(e)})),e.session.resuming?(g.queue(e,g.createRecord(e,{type:g.ContentType.change_cipher_spec,data:g.createChangeCipherSpec()})),e.state.pending=g.createConnectionState(e),e.state.current.write=e.state.pending.write,g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createFinished(e)}))):(g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createCertificate(e)})),e.fail||(g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createServerKeyExchange(e)})),e.verifyClient!==!1&&g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createCertificateRequest(e)})),g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createServerHelloDone(e)})))),g.flush(e),e.process()}},g.handleCertificate=function(e,t,r){if(r<3)return e.error(e,{message:"Invalid Certificate message. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});var a=t.fragment,n={certificate_list:It(a,3)},s,i,o=[];try{for(;n.certificate_list.length()>0;)s=It(n.certificate_list,3),i=L.asn1.fromDer(s),s=L.pki.certificateFromAsn1(i,!0),o.push(s)}catch(l){return e.error(e,{message:"Could not parse certificate list.",cause:l,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.bad_certificate}})}var c=e.entity===g.ConnectionEnd.client;(c||e.verifyClient===!0)&&o.length===0?e.error(e,{message:c?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}}):o.length===0?e.expect=c?w0:Wu:(c?e.session.serverCertificate=o[0]:e.session.clientCertificate=o[0],g.verifyCertificateChain(e,o)&&(e.expect=c?w0:Wu)),e.process()},g.handleServerKeyExchange=function(e,t,r){if(r>0)return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unsupported_certificate}});e.expect=hC,e.process()},g.handleClientKeyExchange=function(e,t,r){if(r<48)return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unsupported_certificate}});var a=t.fragment,n={enc_pre_master_secret:It(a,2).getBytes()},s=null;if(e.getPrivateKey)try{s=e.getPrivateKey(e,e.session.serverCertificate),s=L.pki.privateKeyFromPem(s)}catch(c){e.error(e,{message:"Could not get private key.",cause:c,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}})}if(s===null)return e.error(e,{message:"No private key set.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}});try{var i=e.session.sp;i.pre_master_secret=s.decrypt(n.enc_pre_master_secret);var o=e.session.clientHelloVersion;if(o.major!==i.pre_master_secret.charCodeAt(0)||o.minor!==i.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch{i.pre_master_secret=L.random.getBytes(48)}e.expect=Xu,e.session.clientCertificate!==null&&(e.expect=CC),e.process()},g.handleCertificateRequest=function(e,t,r){if(r<3)return e.error(e,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});var a=t.fragment,n={certificate_types:It(a,1),certificate_authorities:It(a,2)};e.session.certificateRequest=n,e.expect=vC,e.process()},g.handleCertificateVerify=function(e,t,r){if(r<2)return e.error(e,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});var a=t.fragment;a.read-=4;var n=a.bytes();a.read+=4;var s={signature:It(a,2).getBytes()},i=L.util.createBuffer();i.putBuffer(e.session.md5.digest()),i.putBuffer(e.session.sha1.digest()),i=i.getBytes();try{var o=e.session.clientCertificate;if(!o.publicKey.verify(i,s.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");e.session.md5.update(n),e.session.sha1.update(n)}catch{return e.error(e,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.handshake_failure}})}e.expect=Xu,e.process()},g.handleServerHelloDone=function(e,t,r){if(r>0)return e.error(e,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.record_overflow}});if(e.serverCertificate===null){var a={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.insufficient_security}},n=0,s=e.verify(e,a.alert.description,n,[]);if(s!==!0)return(s||s===0)&&(typeof s=="object"&&!L.util.isArray(s)?(s.message&&(a.message=s.message),s.alert&&(a.alert.description=s.alert)):typeof s=="number"&&(a.alert.description=s)),e.error(e,a)}e.session.certificateRequest!==null&&(t=g.createRecord(e,{type:g.ContentType.handshake,data:g.createCertificate(e)}),g.queue(e,t)),t=g.createRecord(e,{type:g.ContentType.handshake,data:g.createClientKeyExchange(e)}),g.queue(e,t),e.expect=yC;var i=function(o,c){o.session.certificateRequest!==null&&o.session.clientCertificate!==null&&g.queue(o,g.createRecord(o,{type:g.ContentType.handshake,data:g.createCertificateVerify(o,c)})),g.queue(o,g.createRecord(o,{type:g.ContentType.change_cipher_spec,data:g.createChangeCipherSpec()})),o.state.pending=g.createConnectionState(o),o.state.current.write=o.state.pending.write,g.queue(o,g.createRecord(o,{type:g.ContentType.handshake,data:g.createFinished(o)})),o.expect=A0,g.flush(o),o.process()};if(e.session.certificateRequest===null||e.session.clientCertificate===null)return i(e,null);g.getClientSignature(e,i)},g.handleChangeCipherSpec=function(e,t){if(t.fragment.getByte()!==1)return e.error(e,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});var r=e.entity===g.ConnectionEnd.client;(e.session.resuming&&r||!e.session.resuming&&!r)&&(e.state.pending=g.createConnectionState(e)),e.state.current.read=e.state.pending.read,(!e.session.resuming&&r||e.session.resuming&&!r)&&(e.state.pending=null),e.expect=r?gC:SC,e.process()},g.handleFinished=function(e,t,r){var a=t.fragment;a.read-=4;var n=a.bytes();a.read+=4;var s=t.fragment.getBytes();a=L.util.createBuffer(),a.putBuffer(e.session.md5.digest()),a.putBuffer(e.session.sha1.digest());var i=e.entity===g.ConnectionEnd.client,o=i?"server finished":"client finished",c=e.session.sp,l=12,u=ul;if(a=u(c.master_secret,o,a.getBytes(),l),a.getBytes()!==s)return e.error(e,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.decrypt_error}});e.session.md5.update(n),e.session.sha1.update(n),(e.session.resuming&&i||!e.session.resuming&&!i)&&(g.queue(e,g.createRecord(e,{type:g.ContentType.change_cipher_spec,data:g.createChangeCipherSpec()})),e.state.current.write=e.state.pending.write,e.state.pending=null,g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createFinished(e)}))),e.expect=i?xC:TC,e.handshaking=!1,++e.handshakes,e.peerCertificate=i?e.session.serverCertificate:e.session.clientCertificate,g.flush(e),e.isConnected=!0,e.connected(e),e.process()},g.handleAlert=function(e,t){var r=t.fragment,a={level:r.getByte(),description:r.getByte()},n;switch(a.description){case g.Alert.Description.close_notify:n="Connection closed.";break;case g.Alert.Description.unexpected_message:n="Unexpected message.";break;case g.Alert.Description.bad_record_mac:n="Bad record MAC.";break;case g.Alert.Description.decryption_failed:n="Decryption failed.";break;case g.Alert.Description.record_overflow:n="Record overflow.";break;case g.Alert.Description.decompression_failure:n="Decompression failed.";break;case g.Alert.Description.handshake_failure:n="Handshake failure.";break;case g.Alert.Description.bad_certificate:n="Bad certificate.";break;case g.Alert.Description.unsupported_certificate:n="Unsupported certificate.";break;case g.Alert.Description.certificate_revoked:n="Certificate revoked.";break;case g.Alert.Description.certificate_expired:n="Certificate expired.";break;case g.Alert.Description.certificate_unknown:n="Certificate unknown.";break;case g.Alert.Description.illegal_parameter:n="Illegal parameter.";break;case g.Alert.Description.unknown_ca:n="Unknown certificate authority.";break;case g.Alert.Description.access_denied:n="Access denied.";break;case g.Alert.Description.decode_error:n="Decode error.";break;case g.Alert.Description.decrypt_error:n="Decrypt error.";break;case g.Alert.Description.export_restriction:n="Export restriction.";break;case g.Alert.Description.protocol_version:n="Unsupported protocol version.";break;case g.Alert.Description.insufficient_security:n="Insufficient security.";break;case g.Alert.Description.internal_error:n="Internal error.";break;case g.Alert.Description.user_canceled:n="User canceled.";break;case g.Alert.Description.no_renegotiation:n="Renegotiation not supported.";break;default:n="Unknown error.";break}if(a.description===g.Alert.Description.close_notify)return e.close();e.error(e,{message:n,send:!1,origin:e.entity===g.ConnectionEnd.client?"server":"client",alert:a}),e.process()},g.handleHandshake=function(e,t){var r=t.fragment,a=r.getByte(),n=r.getInt24();if(n>r.length())return e.fragmented=t,t.fragment=L.util.createBuffer(),r.read-=4,e.process();e.fragmented=null,r.read-=4;var s=r.bytes(n+4);r.read+=4,a in dl[e.entity][e.expect]?(e.entity===g.ConnectionEnd.server&&!e.open&&!e.fail&&(e.handshaking=!0,e.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:L.md.md5.create(),sha1:L.md.sha1.create()}),a!==g.HandshakeType.hello_request&&a!==g.HandshakeType.certificate_verify&&a!==g.HandshakeType.finished&&(e.session.md5.update(s),e.session.sha1.update(s)),dl[e.entity][e.expect][a](e,t,n)):g.handleUnexpected(e,t)},g.handleApplicationData=function(e,t){e.data.putBuffer(t.fragment),e.dataReady(e),e.process()},g.handleHeartbeat=function(e,t){var r=t.fragment,a=r.getByte(),n=r.getInt16(),s=r.getBytes(n);if(a===g.HeartbeatMessageType.heartbeat_request){if(e.handshaking||n>s.length)return e.process();g.queue(e,g.createRecord(e,{type:g.ContentType.heartbeat,data:g.createHeartbeat(g.HeartbeatMessageType.heartbeat_response,s)})),g.flush(e)}else if(a===g.HeartbeatMessageType.heartbeat_response){if(s!==e.expectedHeartbeatPayload)return e.process();e.heartbeatReceived&&e.heartbeatReceived(e,L.util.createBuffer(s))}e.process()};var fC=0,mC=1,w0=2,hC=3,vC=4,A0=5,gC=6,xC=7,yC=8,bC=0,EC=1,Wu=2,CC=3,Xu=4,SC=5,TC=6,v=g.handleUnexpected,I0=g.handleChangeCipherSpec,He=g.handleAlert,pt=g.handleHandshake,B0=g.handleApplicationData,$e=g.handleHeartbeat,Yu=[];Yu[g.ConnectionEnd.client]=[[v,He,pt,v,$e],[v,He,pt,v,$e],[v,He,pt,v,$e],[v,He,pt,v,$e],[v,He,pt,v,$e],[I0,He,v,v,$e],[v,He,pt,v,$e],[v,He,pt,B0,$e],[v,He,pt,v,$e]],Yu[g.ConnectionEnd.server]=[[v,He,pt,v,$e],[v,He,pt,v,$e],[v,He,pt,v,$e],[v,He,pt,v,$e],[I0,He,v,v,$e],[v,He,pt,v,$e],[v,He,pt,B0,$e],[v,He,pt,v,$e]];var da=g.handleHelloRequest,wC=g.handleServerHello,_0=g.handleCertificate,R0=g.handleServerKeyExchange,Ju=g.handleCertificateRequest,pl=g.handleServerHelloDone,k0=g.handleFinished,dl=[];dl[g.ConnectionEnd.client]=[[v,v,wC,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[da,v,v,v,v,v,v,v,v,v,v,_0,R0,Ju,pl,v,v,v,v,v,v],[da,v,v,v,v,v,v,v,v,v,v,v,R0,Ju,pl,v,v,v,v,v,v],[da,v,v,v,v,v,v,v,v,v,v,v,v,Ju,pl,v,v,v,v,v,v],[da,v,v,v,v,v,v,v,v,v,v,v,v,v,pl,v,v,v,v,v,v],[da,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[da,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,k0],[da,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[da,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v]];var AC=g.handleClientHello,IC=g.handleClientKeyExchange,BC=g.handleCertificateVerify;dl[g.ConnectionEnd.server]=[[v,AC,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,_0,v,v,v,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,IC,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,BC,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,k0],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v]],g.generateKeys=function(e,t){var r=ul,a=t.client_random+t.server_random;e.session.resuming||(t.master_secret=r(t.pre_master_secret,"master secret",a,48).bytes(),t.pre_master_secret=null),a=t.server_random+t.client_random;var n=2*t.mac_key_length+2*t.enc_key_length,s=e.version.major===g.Versions.TLS_1_0.major&&e.version.minor===g.Versions.TLS_1_0.minor;s&&(n+=2*t.fixed_iv_length);var i=r(t.master_secret,"key expansion",a,n),o={client_write_MAC_key:i.getBytes(t.mac_key_length),server_write_MAC_key:i.getBytes(t.mac_key_length),client_write_key:i.getBytes(t.enc_key_length),server_write_key:i.getBytes(t.enc_key_length)};return s&&(o.client_write_IV=i.getBytes(t.fixed_iv_length),o.server_write_IV=i.getBytes(t.fixed_iv_length)),o},g.createConnectionState=function(e){var t=e.entity===g.ConnectionEnd.client,r=function(){var s={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(i){return!0},compressionState:null,compressFunction:function(i){return!0},updateSequenceNumber:function(){s.sequenceNumber[1]===4294967295?(s.sequenceNumber[1]=0,++s.sequenceNumber[0]):++s.sequenceNumber[1]}};return s},a={read:r(),write:r()};if(a.read.update=function(s,i){return a.read.cipherFunction(i,a.read)?a.read.compressFunction(s,i,a.read)||s.error(s,{message:"Could not decompress record.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.decompression_failure}}):s.error(s,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.bad_record_mac}}),!s.fail},a.write.update=function(s,i){return a.write.compressFunction(s,i,a.write)?a.write.cipherFunction(i,a.write)||s.error(s,{message:"Could not encrypt record.",send:!1,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}}):s.error(s,{message:"Could not compress record.",send:!1,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}}),!s.fail},e.session){var n=e.session.sp;switch(e.session.cipherSuite.initSecurityParameters(n),n.keys=g.generateKeys(e,n),a.read.macKey=t?n.keys.server_write_MAC_key:n.keys.client_write_MAC_key,a.write.macKey=t?n.keys.client_write_MAC_key:n.keys.server_write_MAC_key,e.session.cipherSuite.initConnectionState(a,e,n),n.compression_algorithm){case g.CompressionMethod.none:break;case g.CompressionMethod.deflate:a.read.compressFunction=dC,a.write.compressFunction=pC;break;default:throw new Error("Unsupported compression algorithm.")}}return a},g.createRandom=function(){var e=new Date,t=+e+e.getTimezoneOffset()*6e4,r=L.util.createBuffer();return r.putInt32(t),r.putBytes(L.random.getBytes(28)),r},g.createRecord=function(e,t){if(!t.data)return null;var r={type:t.type,version:{major:e.version.major,minor:e.version.minor},length:t.data.length(),fragment:t.data};return r},g.createAlert=function(e,t){var r=L.util.createBuffer();return r.putByte(t.level),r.putByte(t.description),g.createRecord(e,{type:g.ContentType.alert,data:r})},g.createClientHello=function(e){e.session.clientHelloVersion={major:e.version.major,minor:e.version.minor};for(var t=L.util.createBuffer(),r=0;r<e.cipherSuites.length;++r){var a=e.cipherSuites[r];t.putByte(a.id[0]),t.putByte(a.id[1])}var n=t.length(),s=L.util.createBuffer();s.putByte(g.CompressionMethod.none);var i=s.length(),o=L.util.createBuffer();if(e.virtualHost){var c=L.util.createBuffer();c.putByte(0),c.putByte(0);var l=L.util.createBuffer();l.putByte(0),Ut(l,2,L.util.createBuffer(e.virtualHost));var u=L.util.createBuffer();Ut(u,2,l),Ut(c,2,u),o.putBuffer(c)}var p=o.length();p>0&&(p+=2);var f=e.session.id,x=f.length+1+2+4+28+2+n+1+i+p,m=L.util.createBuffer();return m.putByte(g.HandshakeType.client_hello),m.putInt24(x),m.putByte(e.version.major),m.putByte(e.version.minor),m.putBytes(e.session.sp.client_random),Ut(m,1,L.util.createBuffer(f)),Ut(m,2,t),Ut(m,1,s),p>0&&Ut(m,2,o),m},g.createServerHello=function(e){var t=e.session.id,r=t.length+1+2+4+28+2+1,a=L.util.createBuffer();return a.putByte(g.HandshakeType.server_hello),a.putInt24(r),a.putByte(e.version.major),a.putByte(e.version.minor),a.putBytes(e.session.sp.server_random),Ut(a,1,L.util.createBuffer(t)),a.putByte(e.session.cipherSuite.id[0]),a.putByte(e.session.cipherSuite.id[1]),a.putByte(e.session.compressionMethod),a},g.createCertificate=function(e){var t=e.entity===g.ConnectionEnd.client,r=null;if(e.getCertificate){var a;t?a=e.session.certificateRequest:a=e.session.extensions.server_name.serverNameList,r=e.getCertificate(e,a)}var n=L.util.createBuffer();if(r!==null)try{L.util.isArray(r)||(r=[r]);for(var s=null,i=0;i<r.length;++i){var o=L.pem.decode(r[i])[0];if(o.type!=="CERTIFICATE"&&o.type!=="X509 CERTIFICATE"&&o.type!=="TRUSTED CERTIFICATE"){var c=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw c.headerType=o.type,c}if(o.procType&&o.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var l=L.util.createBuffer(o.body);s===null&&(s=L.asn1.fromDer(l.bytes(),!1));var u=L.util.createBuffer();Ut(u,3,l),n.putBuffer(u)}r=L.pki.certificateFromAsn1(s),t?e.session.clientCertificate=r:e.session.serverCertificate=r}catch(x){return e.error(e,{message:"Could not send certificate list.",cause:x,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.bad_certificate}})}var p=3+n.length(),f=L.util.createBuffer();return f.putByte(g.HandshakeType.certificate),f.putInt24(p),Ut(f,3,n),f},g.createClientKeyExchange=function(e){var t=L.util.createBuffer();t.putByte(e.session.clientHelloVersion.major),t.putByte(e.session.clientHelloVersion.minor),t.putBytes(L.random.getBytes(46));var r=e.session.sp;r.pre_master_secret=t.getBytes();var a=e.session.serverCertificate.publicKey;t=a.encrypt(r.pre_master_secret);var n=t.length+2,s=L.util.createBuffer();return s.putByte(g.HandshakeType.client_key_exchange),s.putInt24(n),s.putInt16(t.length),s.putBytes(t),s},g.createServerKeyExchange=function(e){var t=L.util.createBuffer();return t},g.getClientSignature=function(e,t){var r=L.util.createBuffer();r.putBuffer(e.session.md5.digest()),r.putBuffer(e.session.sha1.digest()),r=r.getBytes(),e.getSignature=e.getSignature||function(a,n,s){var i=null;if(a.getPrivateKey)try{i=a.getPrivateKey(a,a.session.clientCertificate),i=L.pki.privateKeyFromPem(i)}catch(o){a.error(a,{message:"Could not get private key.",cause:o,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}})}i===null?a.error(a,{message:"No private key set.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}}):n=i.sign(n,null),s(a,n)},e.getSignature(e,r,t)},g.createCertificateVerify=function(e,t){var r=t.length+2,a=L.util.createBuffer();return a.putByte(g.HandshakeType.certificate_verify),a.putInt24(r),a.putInt16(t.length),a.putBytes(t),a},g.createCertificateRequest=function(e){var t=L.util.createBuffer();t.putByte(1);var r=L.util.createBuffer();for(var a in e.caStore.certs){var n=e.caStore.certs[a],s=L.pki.distinguishedNameToAsn1(n.subject),i=L.asn1.toDer(s);r.putInt16(i.length()),r.putBuffer(i)}var o=1+t.length()+2+r.length(),c=L.util.createBuffer();return c.putByte(g.HandshakeType.certificate_request),c.putInt24(o),Ut(c,1,t),Ut(c,2,r),c},g.createServerHelloDone=function(e){var t=L.util.createBuffer();return t.putByte(g.HandshakeType.server_hello_done),t.putInt24(0),t},g.createChangeCipherSpec=function(){var e=L.util.createBuffer();return e.putByte(1),e},g.createFinished=function(e){var t=L.util.createBuffer();t.putBuffer(e.session.md5.digest()),t.putBuffer(e.session.sha1.digest());var r=e.entity===g.ConnectionEnd.client,a=e.session.sp,n=12,s=ul,i=r?"client finished":"server finished";t=s(a.master_secret,i,t.getBytes(),n);var o=L.util.createBuffer();return o.putByte(g.HandshakeType.finished),o.putInt24(t.length()),o.putBuffer(t),o},g.createHeartbeat=function(e,t,r){typeof r>"u"&&(r=t.length);var a=L.util.createBuffer();a.putByte(e),a.putInt16(r),a.putBytes(t);var n=a.length(),s=Math.max(16,n-r-3);return a.putBytes(L.random.getBytes(s)),a},g.queue=function(e,t){if(t&&!(t.fragment.length()===0&&(t.type===g.ContentType.handshake||t.type===g.ContentType.alert||t.type===g.ContentType.change_cipher_spec))){if(t.type===g.ContentType.handshake){var r=t.fragment.bytes();e.session.md5.update(r),e.session.sha1.update(r),r=null}var a;if(t.fragment.length()<=g.MaxFragment)a=[t];else{a=[];for(var n=t.fragment.bytes();n.length>g.MaxFragment;)a.push(g.createRecord(e,{type:t.type,data:L.util.createBuffer(n.slice(0,g.MaxFragment))})),n=n.slice(g.MaxFragment);n.length>0&&a.push(g.createRecord(e,{type:t.type,data:L.util.createBuffer(n)}))}for(var s=0;s<a.length&&!e.fail;++s){var i=a[s],o=e.state.current.write;o.update(e,i)&&e.records.push(i)}}},g.flush=function(e){for(var t=0;t<e.records.length;++t){var r=e.records[t];e.tlsData.putByte(r.type),e.tlsData.putByte(r.version.major),e.tlsData.putByte(r.version.minor),e.tlsData.putInt16(r.fragment.length()),e.tlsData.putBuffer(e.records[t].fragment)}return e.records=[],e.tlsDataReady(e)};var Zu=function(e){switch(e){case!0:return!0;case L.pki.certificateError.bad_certificate:return g.Alert.Description.bad_certificate;case L.pki.certificateError.unsupported_certificate:return g.Alert.Description.unsupported_certificate;case L.pki.certificateError.certificate_revoked:return g.Alert.Description.certificate_revoked;case L.pki.certificateError.certificate_expired:return g.Alert.Description.certificate_expired;case L.pki.certificateError.certificate_unknown:return g.Alert.Description.certificate_unknown;case L.pki.certificateError.unknown_ca:return g.Alert.Description.unknown_ca;default:return g.Alert.Description.bad_certificate}},_C=function(e){switch(e){case!0:return!0;case g.Alert.Description.bad_certificate:return L.pki.certificateError.bad_certificate;case g.Alert.Description.unsupported_certificate:return L.pki.certificateError.unsupported_certificate;case g.Alert.Description.certificate_revoked:return L.pki.certificateError.certificate_revoked;case g.Alert.Description.certificate_expired:return L.pki.certificateError.certificate_expired;case g.Alert.Description.certificate_unknown:return L.pki.certificateError.certificate_unknown;case g.Alert.Description.unknown_ca:return L.pki.certificateError.unknown_ca;default:return L.pki.certificateError.bad_certificate}};g.verifyCertificateChain=function(e,t){try{var r={};for(var a in e.verifyOptions)r[a]=e.verifyOptions[a];r.verify=function(s,i,o){var c=Zu(s),l=e.verify(e,s,i,o);if(l!==!0){if(typeof l=="object"&&!L.util.isArray(l)){var u=new Error("The application rejected the certificate.");throw u.send=!0,u.alert={level:g.Alert.Level.fatal,description:g.Alert.Description.bad_certificate},l.message&&(u.message=l.message),l.alert&&(u.alert.description=l.alert),u}l!==s&&(l=_C(l))}return l},L.pki.verifyCertificateChain(e.caStore,t,r)}catch(s){var n=s;(typeof n!="object"||L.util.isArray(n))&&(n={send:!0,alert:{level:g.Alert.Level.fatal,description:Zu(s)}}),"send"in n||(n.send=!0),"alert"in n||(n.alert={level:g.Alert.Level.fatal,description:Zu(n.error)}),e.error(e,n)}return!e.fail},g.createSessionCache=function(e,t){var r=null;if(e&&e.getSession&&e.setSession&&e.order)r=e;else{r={},r.cache=e||{},r.capacity=Math.max(t||100,1),r.order=[];for(var a in e)r.order.length<=t?r.order.push(a):delete e[a];r.getSession=function(n){var s=null,i=null;if(n?i=L.util.bytesToHex(n):r.order.length>0&&(i=r.order[0]),i!==null&&i in r.cache){s=r.cache[i],delete r.cache[i];for(var o in r.order)if(r.order[o]===i){r.order.splice(o,1);break}}return s},r.setSession=function(n,s){if(r.order.length===r.capacity){var i=r.order.shift();delete r.cache[i]}var i=L.util.bytesToHex(n);r.order.push(i),r.cache[i]=s}}return r},g.createConnection=function(e){var t=null;e.caStore?L.util.isArray(e.caStore)?t=L.pki.createCaStore(e.caStore):t=e.caStore:t=L.pki.createCaStore();var r=e.cipherSuites||null;if(r===null){r=[];for(var a in g.CipherSuites)r.push(g.CipherSuites[a])}var n=e.server?g.ConnectionEnd.server:g.ConnectionEnd.client,s=e.sessionCache?g.createSessionCache(e.sessionCache):null,i={version:{major:g.Version.major,minor:g.Version.minor},entity:n,sessionId:e.sessionId,caStore:t,sessionCache:s,cipherSuites:r,connected:e.connected,virtualHost:e.virtualHost||null,verifyClient:e.verifyClient||!1,verify:e.verify||function(u,p,f,x){return p},verifyOptions:e.verifyOptions||{},getCertificate:e.getCertificate||null,getPrivateKey:e.getPrivateKey||null,getSignature:e.getSignature||null,input:L.util.createBuffer(),tlsData:L.util.createBuffer(),data:L.util.createBuffer(),tlsDataReady:e.tlsDataReady,dataReady:e.dataReady,heartbeatReceived:e.heartbeatReceived,closed:e.closed,error:function(u,p){p.origin=p.origin||(u.entity===g.ConnectionEnd.client?"client":"server"),p.send&&(g.queue(u,g.createAlert(u,p.alert)),g.flush(u));var f=p.fatal!==!1;f&&(u.fail=!0),e.error(u,p),f&&u.close(!1)},deflate:e.deflate||null,inflate:e.inflate||null};i.reset=function(u){i.version={major:g.Version.major,minor:g.Version.minor},i.record=null,i.session=null,i.peerCertificate=null,i.state={pending:null,current:null},i.expect=i.entity===g.ConnectionEnd.client?fC:bC,i.fragmented=null,i.records=[],i.open=!1,i.handshakes=0,i.handshaking=!1,i.isConnected=!1,i.fail=!(u||typeof u>"u"),i.input.clear(),i.tlsData.clear(),i.data.clear(),i.state.current=g.createConnectionState(i)},i.reset();var o=function(u,p){var f=p.type-g.ContentType.change_cipher_spec,x=Yu[u.entity][u.expect];f in x?x[f](u,p):g.handleUnexpected(u,p)},c=function(u){var p=0,f=u.input,x=f.length();if(x<5)p=5-x;else{u.record={type:f.getByte(),version:{major:f.getByte(),minor:f.getByte()},length:f.getInt16(),fragment:L.util.createBuffer(),ready:!1};var m=u.record.version.major===u.version.major;m&&u.session&&u.session.version&&(m=u.record.version.minor===u.version.minor),m||u.error(u,{message:"Incompatible TLS version.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.protocol_version}})}return p},l=function(u){var p=0,f=u.input,x=f.length();if(x<u.record.length)p=u.record.length-x;else{u.record.fragment.putBytes(f.getBytes(u.record.length)),f.compact();var m=u.state.current.read;m.update(u,u.record)&&(u.fragmented!==null&&(u.fragmented.type===u.record.type?(u.fragmented.fragment.putBuffer(u.record.fragment),u.record=u.fragmented):u.error(u,{message:"Invalid fragmented record.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unexpected_message}})),u.record.ready=!0)}return p};return i.handshake=function(u){if(i.entity!==g.ConnectionEnd.client)i.error(i,{message:"Cannot initiate handshake as a server.",fatal:!1});else if(i.handshaking)i.error(i,{message:"Handshake already in progress.",fatal:!1});else{i.fail&&!i.open&&i.handshakes===0&&(i.fail=!1),i.handshaking=!0,u=u||"";var p=null;u.length>0&&(i.sessionCache&&(p=i.sessionCache.getSession(u)),p===null&&(u="")),u.length===0&&i.sessionCache&&(p=i.sessionCache.getSession(),p!==null&&(u=p.id)),i.session={id:u,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:L.md.md5.create(),sha1:L.md.sha1.create()},p&&(i.version=p.version,i.session.sp=p.sp),i.session.sp.client_random=g.createRandom().getBytes(),i.open=!0,g.queue(i,g.createRecord(i,{type:g.ContentType.handshake,data:g.createClientHello(i)})),g.flush(i)}},i.process=function(u){var p=0;return u&&i.input.putBytes(u),i.fail||(i.record!==null&&i.record.ready&&i.record.fragment.isEmpty()&&(i.record=null),i.record===null&&(p=c(i)),!i.fail&&i.record!==null&&!i.record.ready&&(p=l(i)),!i.fail&&i.record!==null&&i.record.ready&&o(i,i.record)),p},i.prepare=function(u){return g.queue(i,g.createRecord(i,{type:g.ContentType.application_data,data:L.util.createBuffer(u)})),g.flush(i)},i.prepareHeartbeatRequest=function(u,p){return u instanceof L.util.ByteBuffer&&(u=u.bytes()),typeof p>"u"&&(p=u.length),i.expectedHeartbeatPayload=u,g.queue(i,g.createRecord(i,{type:g.ContentType.heartbeat,data:g.createHeartbeat(g.HeartbeatMessageType.heartbeat_request,u,p)})),g.flush(i)},i.close=function(u){if(!i.fail&&i.sessionCache&&i.session){var p={id:i.session.id,version:i.session.version,sp:i.session.sp};p.sp.keys=null,i.sessionCache.setSession(p.id,p)}i.open&&(i.open=!1,i.input.clear(),(i.isConnected||i.handshaking)&&(i.isConnected=i.handshaking=!1,g.queue(i,g.createAlert(i,{level:g.Alert.Level.warning,description:g.Alert.Description.close_notify})),g.flush(i)),i.closed(i)),i.reset(u)},i},L.tls=L.tls||{};for(var ep in g)typeof g[ep]!="function"&&(L.tls[ep]=g[ep]);L.tls.prf_tls1=ul,L.tls.hmac_sha1=uC,L.tls.createSessionCache=g.createSessionCache,L.tls.createConnection=g.createConnection;var fa=ee,Dt=fa.tls;Dt.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=Dt.BulkCipherAlgorithm.aes,e.cipher_type=Dt.CipherType.block,e.enc_key_length=16,e.block_length=16,e.fixed_iv_length=16,e.record_iv_length=16,e.mac_algorithm=Dt.MACAlgorithm.hmac_sha1,e.mac_length=20,e.mac_key_length=20},initConnectionState:N0},Dt.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=Dt.BulkCipherAlgorithm.aes,e.cipher_type=Dt.CipherType.block,e.enc_key_length=32,e.block_length=16,e.fixed_iv_length=16,e.record_iv_length=16,e.mac_algorithm=Dt.MACAlgorithm.hmac_sha1,e.mac_length=20,e.mac_key_length=20},initConnectionState:N0};function N0(e,t,r){var a=t.entity===fa.tls.ConnectionEnd.client;e.read.cipherState={init:!1,cipher:fa.cipher.createDecipher("AES-CBC",a?r.keys.server_write_key:r.keys.client_write_key),iv:a?r.keys.server_write_IV:r.keys.client_write_IV},e.write.cipherState={init:!1,cipher:fa.cipher.createCipher("AES-CBC",a?r.keys.client_write_key:r.keys.server_write_key),iv:a?r.keys.client_write_IV:r.keys.server_write_IV},e.read.cipherFunction=LC,e.write.cipherFunction=RC,e.read.macLength=e.write.macLength=r.mac_length,e.read.macFunction=e.write.macFunction=Dt.hmac_sha1}function RC(e,t){var r=!1,a=t.macFunction(t.macKey,t.sequenceNumber,e);e.fragment.putBytes(a),t.updateSequenceNumber();var n;e.version.minor===Dt.Versions.TLS_1_0.minor?n=t.cipherState.init?null:t.cipherState.iv:n=fa.random.getBytesSync(16),t.cipherState.init=!0;var s=t.cipherState.cipher;return s.start({iv:n}),e.version.minor>=Dt.Versions.TLS_1_1.minor&&s.output.putBytes(n),s.update(e.fragment),s.finish(kC)&&(e.fragment=s.output,e.length=e.fragment.length(),r=!0),r}function kC(e,t,r){if(!r){var a=e-t.length()%e;t.fillWithByte(a-1,a)}return!0}function NC(e,t,r){var a=!0;if(r){for(var n=t.length(),s=t.last(),i=n-1-s;i<n-1;++i)a=a&&t.at(i)==s;a&&t.truncate(s+1)}return a}function LC(e,t){var r=!1,a;e.version.minor===Dt.Versions.TLS_1_0.minor?a=t.cipherState.init?null:t.cipherState.iv:a=e.fragment.getBytes(16),t.cipherState.init=!0;var n=t.cipherState.cipher;n.start({iv:a}),n.update(e.fragment),r=n.finish(NC);var s=t.macLength,i=fa.random.getBytesSync(s),o=n.output.length();o>=s?(e.fragment=n.output.getBytes(o-s),i=n.output.getBytes(s)):e.fragment=n.output.getBytes(),e.fragment=fa.util.createBuffer(e.fragment),e.length=e.fragment.length();var c=t.macFunction(t.macKey,t.sequenceNumber,e);return t.updateSequenceNumber(),r=UC(t.macKey,i,c)&&r,r}function UC(e,t,r){var a=fa.hmac.create();return a.start("SHA1",e),a.update(t),t=a.digest().getBytes(),a.start(null,null),a.update(r),r=a.digest().getBytes(),t===r}var Be=ee,gc=Be.sha512=Be.sha512||{};Be.md.sha512=Be.md.algorithms.sha512=gc;var L0=Be.sha384=Be.sha512.sha384=Be.sha512.sha384||{};L0.create=function(){return gc.create("SHA-384")},Be.md.sha384=Be.md.algorithms.sha384=L0,Be.sha512.sha256=Be.sha512.sha256||{create:function(){return gc.create("SHA-512/256")}},Be.md["sha512/256"]=Be.md.algorithms["sha512/256"]=Be.sha512.sha256,Be.sha512.sha224=Be.sha512.sha224||{create:function(){return gc.create("SHA-512/224")}},Be.md["sha512/224"]=Be.md.algorithms["sha512/224"]=Be.sha512.sha224,gc.create=function(e){if(U0||DC(),typeof e>"u"&&(e="SHA-512"),!(e in Ra))throw new Error("Invalid SHA-512 algorithm: "+e);for(var t=Ra[e],r=null,a=Be.util.createBuffer(),n=new Array(80),s=0;s<80;++s)n[s]=new Array(2);var i=64;switch(e){case"SHA-384":i=48;break;case"SHA-512/256":i=32;break;case"SHA-512/224":i=28;break}var o={algorithm:e.replace("-","").toLowerCase(),blockLength:128,digestLength:i,messageLength:0,fullMessageLength:null,messageLengthSize:16};return o.start=function(){o.messageLength=0,o.fullMessageLength=o.messageLength128=[];for(var c=o.messageLengthSize/4,l=0;l<c;++l)o.fullMessageLength.push(0);a=Be.util.createBuffer(),r=new Array(t.length);for(var l=0;l<t.length;++l)r[l]=t[l].slice(0);return o},o.start(),o.update=function(c,l){l==="utf8"&&(c=Be.util.encodeUtf8(c));var u=c.length;o.messageLength+=u,u=[u/4294967296>>>0,u>>>0];for(var p=o.fullMessageLength.length-1;p>=0;--p)o.fullMessageLength[p]+=u[1],u[1]=u[0]+(o.fullMessageLength[p]/4294967296>>>0),o.fullMessageLength[p]=o.fullMessageLength[p]>>>0,u[0]=u[1]/4294967296>>>0;return a.putBytes(c),D0(r,n,a),(a.read>2048||a.length()===0)&&a.compact(),o},o.digest=function(){var c=Be.util.createBuffer();c.putBytes(a.bytes());var l=o.fullMessageLength[o.fullMessageLength.length-1]+o.messageLengthSize,u=l&o.blockLength-1;c.putBytes(tp.substr(0,o.blockLength-u));for(var p,f,x=o.fullMessageLength[0]*8,m=0;m<o.fullMessageLength.length-1;++m)p=o.fullMessageLength[m+1]*8,f=p/4294967296>>>0,x+=f,c.putInt32(x>>>0),x=p>>>0;c.putInt32(x);for(var y=new Array(r.length),m=0;m<r.length;++m)y[m]=r[m].slice(0);D0(y,n,c);var b=Be.util.createBuffer(),S;e==="SHA-512"?S=y.length:e==="SHA-384"?S=y.length-2:S=y.length-4;for(var m=0;m<S;++m)b.putInt32(y[m][0]),(m!==S-1||e!=="SHA-512/224")&&b.putInt32(y[m][1]);return b},o};var tp=null,U0=!1,ap=null,Ra=null;function DC(){tp="\x80",tp+=Be.util.fillString("\0",128),ap=[[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]],Ra={},Ra["SHA-512"]=[[1779033703,4089235720],[3144134277,2227873595],[1013904242,4271175723],[2773480762,1595750129],[1359893119,2917565137],[2600822924,725511199],[528734635,4215389547],[1541459225,327033209]],Ra["SHA-384"]=[[3418070365,3238371032],[1654270250,914150663],[2438529370,812702999],[355462360,4144912697],[1731405415,4290775857],[2394180231,1750603025],[3675008525,1694076839],[1203062813,3204075428]],Ra["SHA-512/256"]=[[573645204,4230739756],[2673172387,3360449730],[596883563,1867755857],[2520282905,1497426621],[2519219938,2827943907],[3193839141,1401305490],[721525244,746961066],[246885852,2177182882]],Ra["SHA-512/224"]=[[2352822216,424955298],[1944164710,2312950998],[502970286,855612546],[1738396948,1479516111],[258812777,2077511080],[2011393907,79989058],[1067287976,1780299464],[286451373,2446758561]],U0=!0}function D0(e,t,r){for(var a,n,s,i,o,c,l,u,p,f,x,m,y,b,S,B,_,D,k,P,z,W,J,te,ve,pe,ke,oe,ce,le,U,H,Se,be,X,ue=r.length();ue>=128;){for(ce=0;ce<16;++ce)t[ce][0]=r.getInt32()>>>0,t[ce][1]=r.getInt32()>>>0;for(;ce<80;++ce)H=t[ce-2],le=H[0],U=H[1],a=((le>>>19|U<<13)^(U>>>29|le<<3)^le>>>6)>>>0,n=((le<<13|U>>>19)^(U<<3|le>>>29)^(le<<26|U>>>6))>>>0,be=t[ce-15],le=be[0],U=be[1],s=((le>>>1|U<<31)^(le>>>8|U<<24)^le>>>7)>>>0,i=((le<<31|U>>>1)^(le<<24|U>>>8)^(le<<25|U>>>7))>>>0,Se=t[ce-7],X=t[ce-16],U=n+Se[1]+i+X[1],t[ce][0]=a+Se[0]+s+X[0]+(U/4294967296>>>0)>>>0,t[ce][1]=U>>>0;for(y=e[0][0],b=e[0][1],S=e[1][0],B=e[1][1],_=e[2][0],D=e[2][1],k=e[3][0],P=e[3][1],z=e[4][0],W=e[4][1],J=e[5][0],te=e[5][1],ve=e[6][0],pe=e[6][1],ke=e[7][0],oe=e[7][1],ce=0;ce<80;++ce)l=((z>>>14|W<<18)^(z>>>18|W<<14)^(W>>>9|z<<23))>>>0,u=((z<<18|W>>>14)^(z<<14|W>>>18)^(W<<23|z>>>9))>>>0,p=(ve^z&(J^ve))>>>0,f=(pe^W&(te^pe))>>>0,o=((y>>>28|b<<4)^(b>>>2|y<<30)^(b>>>7|y<<25))>>>0,c=((y<<4|b>>>28)^(b<<30|y>>>2)^(b<<25|y>>>7))>>>0,x=(y&S|_&(y^S))>>>0,m=(b&B|D&(b^B))>>>0,U=oe+u+f+ap[ce][1]+t[ce][1],a=ke+l+p+ap[ce][0]+t[ce][0]+(U/4294967296>>>0)>>>0,n=U>>>0,U=c+m,s=o+x+(U/4294967296>>>0)>>>0,i=U>>>0,ke=ve,oe=pe,ve=J,pe=te,J=z,te=W,U=P+n,z=k+a+(U/4294967296>>>0)>>>0,W=U>>>0,k=_,P=D,_=S,D=B,S=y,B=b,U=n+i,y=a+s+(U/4294967296>>>0)>>>0,b=U>>>0;U=e[0][1]+b,e[0][0]=e[0][0]+y+(U/4294967296>>>0)>>>0,e[0][1]=U>>>0,U=e[1][1]+B,e[1][0]=e[1][0]+S+(U/4294967296>>>0)>>>0,e[1][1]=U>>>0,U=e[2][1]+D,e[2][0]=e[2][0]+_+(U/4294967296>>>0)>>>0,e[2][1]=U>>>0,U=e[3][1]+P,e[3][0]=e[3][0]+k+(U/4294967296>>>0)>>>0,e[3][1]=U>>>0,U=e[4][1]+W,e[4][0]=e[4][0]+z+(U/4294967296>>>0)>>>0,e[4][1]=U>>>0,U=e[5][1]+te,e[5][0]=e[5][0]+J+(U/4294967296>>>0)>>>0,e[5][1]=U>>>0,U=e[6][1]+pe,e[6][0]=e[6][0]+ve+(U/4294967296>>>0)>>>0,e[6][1]=U>>>0,U=e[7][1]+oe,e[7][0]=e[7][0]+ke+(U/4294967296>>>0)>>>0,e[7][1]=U>>>0,ue-=128}}var rp={},PC=ee,Ke=PC.asn1;rp.privateKeyValidator={name:"PrivateKeyInfo",tagClass:Ke.Class.UNIVERSAL,type:Ke.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:Ke.Class.UNIVERSAL,type:Ke.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:Ke.Class.UNIVERSAL,type:Ke.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Ke.Class.UNIVERSAL,type:Ke.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:Ke.Class.UNIVERSAL,type:Ke.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},rp.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:Ke.Class.UNIVERSAL,type:Ke.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:Ke.Class.UNIVERSAL,type:Ke.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Ke.Class.UNIVERSAL,type:Ke.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{tagClass:Ke.Class.UNIVERSAL,type:Ke.Type.BITSTRING,constructed:!1,composed:!0,captureBitStringValue:"ed25519PublicKey"}]};var Ge=ee,P0=rp,OC=P0.publicKeyValidator,FC=P0.privateKeyValidator;if(typeof MC>"u")var MC=Ge.jsbn.BigInteger;var np=Ge.util.ByteBuffer,wt=typeof Buffer>"u"?Uint8Array:Buffer;Ge.pki=Ge.pki||{},Ge.pki.ed25519=Ge.ed25519=Ge.ed25519||{};var ie=Ge.ed25519;ie.constants={},ie.constants.PUBLIC_KEY_BYTE_LENGTH=32,ie.constants.PRIVATE_KEY_BYTE_LENGTH=64,ie.constants.SEED_BYTE_LENGTH=32,ie.constants.SIGN_BYTE_LENGTH=64,ie.constants.HASH_BYTE_LENGTH=64,ie.generateKeyPair=function(e){e=e||{};var t=e.seed;if(t===void 0)t=Ge.random.getBytesSync(ie.constants.SEED_BYTE_LENGTH);else if(typeof t=="string"){if(t.length!==ie.constants.SEED_BYTE_LENGTH)throw new TypeError('"seed" must be '+ie.constants.SEED_BYTE_LENGTH+" bytes in length.")}else if(!(t instanceof Uint8Array))throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.');t=ea({message:t,encoding:"binary"});for(var r=new wt(ie.constants.PUBLIC_KEY_BYTE_LENGTH),a=new wt(ie.constants.PRIVATE_KEY_BYTE_LENGTH),n=0;n<32;++n)a[n]=t[n];return KC(r,a),{publicKey:r,privateKey:a}},ie.privateKeyFromAsn1=function(e){var t={},r=[],a=Ge.asn1.validate(e,FC,t,r);if(!a){var n=new Error("Invalid Key.");throw n.errors=r,n}var s=Ge.asn1.derToOid(t.privateKeyOid),i=Ge.oids.EdDSA25519;if(s!==i)throw new Error('Invalid OID "'+s+'"; OID must be "'+i+'".');var o=t.privateKey,c=ea({message:Ge.asn1.fromDer(o).value,encoding:"binary"});return{privateKeyBytes:c}},ie.publicKeyFromAsn1=function(e){var t={},r=[],a=Ge.asn1.validate(e,OC,t,r);if(!a){var n=new Error("Invalid Key.");throw n.errors=r,n}var s=Ge.asn1.derToOid(t.publicKeyOid),i=Ge.oids.EdDSA25519;if(s!==i)throw new Error('Invalid OID "'+s+'"; OID must be "'+i+'".');var o=t.ed25519PublicKey;if(o.length!==ie.constants.PUBLIC_KEY_BYTE_LENGTH)throw new Error("Key length is invalid.");return ea({message:o,encoding:"binary"})},ie.publicKeyFromPrivateKey=function(e){e=e||{};var t=ea({message:e.privateKey,encoding:"binary"});if(t.length!==ie.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+ie.constants.PRIVATE_KEY_BYTE_LENGTH);for(var r=new wt(ie.constants.PUBLIC_KEY_BYTE_LENGTH),a=0;a<r.length;++a)r[a]=t[32+a];return r},ie.sign=function(e){e=e||{};var t=ea(e),r=ea({message:e.privateKey,encoding:"binary"});if(r.length===ie.constants.SEED_BYTE_LENGTH){var a=ie.generateKeyPair({seed:r});r=a.privateKey}else if(r.length!==ie.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+ie.constants.SEED_BYTE_LENGTH+" or "+ie.constants.PRIVATE_KEY_BYTE_LENGTH);var n=new wt(ie.constants.SIGN_BYTE_LENGTH+t.length);zC(n,t,t.length,r);for(var s=new wt(ie.constants.SIGN_BYTE_LENGTH),i=0;i<s.length;++i)s[i]=n[i];return s},ie.verify=function(e){e=e||{};var t=ea(e);if(e.signature===void 0)throw new TypeError('"options.signature" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a binary string.');var r=ea({message:e.signature,encoding:"binary"});if(r.length!==ie.constants.SIGN_BYTE_LENGTH)throw new TypeError('"options.signature" must have a byte length of '+ie.constants.SIGN_BYTE_LENGTH);var a=ea({message:e.publicKey,encoding:"binary"});if(a.length!==ie.constants.PUBLIC_KEY_BYTE_LENGTH)throw new TypeError('"options.publicKey" must have a byte length of '+ie.constants.PUBLIC_KEY_BYTE_LENGTH);var n=new wt(ie.constants.SIGN_BYTE_LENGTH+t.length),s=new wt(ie.constants.SIGN_BYTE_LENGTH+t.length),i;for(i=0;i<ie.constants.SIGN_BYTE_LENGTH;++i)n[i]=r[i];for(i=0;i<t.length;++i)n[i+ie.constants.SIGN_BYTE_LENGTH]=t[i];return HC(s,n,n.length,a)>=0};function ea(e){var t=e.message;if(t instanceof Uint8Array||t instanceof wt)return t;var r=e.encoding;if(t===void 0)if(e.md)t=e.md.digest().getBytes(),r="binary";else throw new TypeError('"options.message" or "options.md" not specified.');if(typeof t=="string"&&!r)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if(typeof t=="string"){if(typeof Buffer<"u")return Buffer.from(t,r);t=new np(t,r)}else if(!(t instanceof np))throw new TypeError('"options.message" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a string with "options.encoding" specifying its encoding.');for(var a=new wt(t.length()),n=0;n<a.length;++n)a[n]=t.at(n);return a}var ip=Q(),fl=Q([1]),VC=Q([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),qC=Q([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),O0=Q([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),F0=Q([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),sp=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]),jC=Q([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function xc(e,t){var r=Ge.md.sha512.create(),a=new np(e);r.update(a.getBytes(t),"binary");var n=r.digest().getBytes();if(typeof Buffer<"u")return Buffer.from(n,"binary");for(var s=new wt(ie.constants.HASH_BYTE_LENGTH),i=0;i<64;++i)s[i]=n.charCodeAt(i);return s}function KC(e,t){var r=[Q(),Q(),Q(),Q()],a,n=xc(t,32);for(n[0]&=248,n[31]&=127,n[31]|=64,up(r,n),lp(e,r),a=0;a<32;++a)t[a+32]=e[a];return 0}function zC(e,t,r,a){var n,s,i=new Float64Array(64),o=[Q(),Q(),Q(),Q()],c=xc(a,32);c[0]&=248,c[31]&=127,c[31]|=64;var l=r+64;for(n=0;n<r;++n)e[64+n]=t[n];for(n=0;n<32;++n)e[32+n]=c[32+n];var u=xc(e.subarray(32),r+32);for(op(u),up(o,u),lp(e,o),n=32;n<64;++n)e[n]=a[n];var p=xc(e,r+64);for(op(p),n=32;n<64;++n)i[n]=0;for(n=0;n<32;++n)i[n]=u[n];for(n=0;n<32;++n)for(s=0;s<32;s++)i[n+s]+=p[n]*c[s];return M0(e.subarray(32),i),l}function HC(e,t,r,a){var n,s,i=new wt(32),o=[Q(),Q(),Q(),Q()],c=[Q(),Q(),Q(),Q()];if(s=-1,r<64||$C(c,a))return-1;for(n=0;n<r;++n)e[n]=t[n];for(n=0;n<32;++n)e[n+32]=a[n];var l=xc(e,r);if(op(l),z0(o,c,l),up(c,t.subarray(32)),cp(o,c),lp(i,o),r-=64,j0(t,0,i,0)){for(n=0;n<r;++n)e[n]=0;return-1}for(n=0;n<r;++n)e[n]=t[n+64];return s=r,s}function M0(e,t){var r,a,n,s;for(a=63;a>=32;--a){for(r=0,n=a-32,s=a-12;n<s;++n)t[n]+=r-16*t[a]*sp[n-(a-32)],r=t[n]+128>>8,t[n]-=r*256;t[n]+=r,t[a]=0}for(r=0,n=0;n<32;++n)t[n]+=r-(t[31]>>4)*sp[n],r=t[n]>>8,t[n]&=255;for(n=0;n<32;++n)t[n]-=r*sp[n];for(a=0;a<32;++a)t[a+1]+=t[a]>>8,e[a]=t[a]&255}function op(e){for(var t=new Float64Array(64),r=0;r<64;++r)t[r]=e[r],e[r]=0;M0(e,t)}function cp(e,t){var r=Q(),a=Q(),n=Q(),s=Q(),i=Q(),o=Q(),c=Q(),l=Q(),u=Q();Za(r,e[1],e[0]),Za(u,t[1],t[0]),Te(r,r,u),Ja(a,e[0],e[1]),Ja(u,t[0],t[1]),Te(a,a,u),Te(n,e[3],t[3]),Te(n,n,qC),Te(s,e[2],t[2]),Ja(s,s,s),Za(i,a,r),Za(o,s,n),Ja(c,s,n),Ja(l,a,r),Te(e[0],i,o),Te(e[1],l,c),Te(e[2],c,o),Te(e[3],i,l)}function V0(e,t,r){for(var a=0;a<4;++a)H0(e[a],t[a],r)}function lp(e,t){var r=Q(),a=Q(),n=Q();XC(n,t[2]),Te(r,t[0],n),Te(a,t[1],n),ml(e,a),e[31]^=K0(r)<<7}function ml(e,t){var r,a,n,s=Q(),i=Q();for(r=0;r<16;++r)i[r]=t[r];for(pp(i),pp(i),pp(i),a=0;a<2;++a){for(s[0]=i[0]-65517,r=1;r<15;++r)s[r]=i[r]-65535-(s[r-1]>>16&1),s[r-1]&=65535;s[15]=i[15]-32767-(s[14]>>16&1),n=s[15]>>16&1,s[14]&=65535,H0(i,s,1-n)}for(r=0;r<16;r++)e[2*r]=i[r]&255,e[2*r+1]=i[r]>>8}function $C(e,t){var r=Q(),a=Q(),n=Q(),s=Q(),i=Q(),o=Q(),c=Q();return ma(e[2],fl),GC(e[1],t),ka(n,e[1]),Te(s,n,VC),Za(n,n,e[2]),Ja(s,e[2],s),ka(i,s),ka(o,i),Te(c,o,i),Te(r,c,n),Te(r,r,s),QC(r,r),Te(r,r,n),Te(r,r,s),Te(r,r,s),Te(e[0],r,s),ka(a,e[0]),Te(a,a,s),q0(a,n)&&Te(e[0],e[0],jC),ka(a,e[0]),Te(a,a,s),q0(a,n)?-1:(K0(e[0])===t[31]>>7&&Za(e[0],ip,e[0]),Te(e[3],e[0],e[1]),0)}function GC(e,t){var r;for(r=0;r<16;++r)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function QC(e,t){var r=Q(),a;for(a=0;a<16;++a)r[a]=t[a];for(a=250;a>=0;--a)ka(r,r),a!==1&&Te(r,r,t);for(a=0;a<16;++a)e[a]=r[a]}function q0(e,t){var r=new wt(32),a=new wt(32);return ml(r,e),ml(a,t),j0(r,0,a,0)}function j0(e,t,r,a){return WC(e,t,r,a,32)}function WC(e,t,r,a,n){var s,i=0;for(s=0;s<n;++s)i|=e[t+s]^r[a+s];return(1&i-1>>>8)-1}function K0(e){var t=new wt(32);return ml(t,e),t[0]&1}function z0(e,t,r){var a,n;for(ma(e[0],ip),ma(e[1],fl),ma(e[2],fl),ma(e[3],ip),n=255;n>=0;--n)a=r[n/8|0]>>(n&7)&1,V0(e,t,a),cp(t,e),cp(e,e),V0(e,t,a)}function up(e,t){var r=[Q(),Q(),Q(),Q()];ma(r[0],O0),ma(r[1],F0),ma(r[2],fl),Te(r[3],O0,F0),z0(e,r,t)}function ma(e,t){var r;for(r=0;r<16;r++)e[r]=t[r]|0}function XC(e,t){var r=Q(),a;for(a=0;a<16;++a)r[a]=t[a];for(a=253;a>=0;--a)ka(r,r),a!==2&&a!==4&&Te(r,r,t);for(a=0;a<16;++a)e[a]=r[a]}function pp(e){var t,r,a=1;for(t=0;t<16;++t)r=e[t]+a+65535,a=Math.floor(r/65536),e[t]=r-a*65536;e[0]+=a-1+37*(a-1)}function H0(e,t,r){for(var a,n=~(r-1),s=0;s<16;++s)a=n&(e[s]^t[s]),e[s]^=a,t[s]^=a}function Q(e){var t,r=new Float64Array(16);if(e)for(t=0;t<e.length;++t)r[t]=e[t];return r}function Ja(e,t,r){for(var a=0;a<16;++a)e[a]=t[a]+r[a]}function Za(e,t,r){for(var a=0;a<16;++a)e[a]=t[a]-r[a]}function ka(e,t){Te(e,t,t)}function Te(e,t,r){var a,n,s=0,i=0,o=0,c=0,l=0,u=0,p=0,f=0,x=0,m=0,y=0,b=0,S=0,B=0,_=0,D=0,k=0,P=0,z=0,W=0,J=0,te=0,ve=0,pe=0,ke=0,oe=0,ce=0,le=0,U=0,H=0,Se=0,be=r[0],X=r[1],ue=r[2],_e=r[3],ge=r[4],xe=r[5],Fe=r[6],De=r[7],ye=r[8],Qe=r[9],We=r[10],Xe=r[11],Ye=r[12],Je=r[13],Ze=r[14],et=r[15];a=t[0],s+=a*be,i+=a*X,o+=a*ue,c+=a*_e,l+=a*ge,u+=a*xe,p+=a*Fe,f+=a*De,x+=a*ye,m+=a*Qe,y+=a*We,b+=a*Xe,S+=a*Ye,B+=a*Je,_+=a*Ze,D+=a*et,a=t[1],i+=a*be,o+=a*X,c+=a*ue,l+=a*_e,u+=a*ge,p+=a*xe,f+=a*Fe,x+=a*De,m+=a*ye,y+=a*Qe,b+=a*We,S+=a*Xe,B+=a*Ye,_+=a*Je,D+=a*Ze,k+=a*et,a=t[2],o+=a*be,c+=a*X,l+=a*ue,u+=a*_e,p+=a*ge,f+=a*xe,x+=a*Fe,m+=a*De,y+=a*ye,b+=a*Qe,S+=a*We,B+=a*Xe,_+=a*Ye,D+=a*Je,k+=a*Ze,P+=a*et,a=t[3],c+=a*be,l+=a*X,u+=a*ue,p+=a*_e,f+=a*ge,x+=a*xe,m+=a*Fe,y+=a*De,b+=a*ye,S+=a*Qe,B+=a*We,_+=a*Xe,D+=a*Ye,k+=a*Je,P+=a*Ze,z+=a*et,a=t[4],l+=a*be,u+=a*X,p+=a*ue,f+=a*_e,x+=a*ge,m+=a*xe,y+=a*Fe,b+=a*De,S+=a*ye,B+=a*Qe,_+=a*We,D+=a*Xe,k+=a*Ye,P+=a*Je,z+=a*Ze,W+=a*et,a=t[5],u+=a*be,p+=a*X,f+=a*ue,x+=a*_e,m+=a*ge,y+=a*xe,b+=a*Fe,S+=a*De,B+=a*ye,_+=a*Qe,D+=a*We,k+=a*Xe,P+=a*Ye,z+=a*Je,W+=a*Ze,J+=a*et,a=t[6],p+=a*be,f+=a*X,x+=a*ue,m+=a*_e,y+=a*ge,b+=a*xe,S+=a*Fe,B+=a*De,_+=a*ye,D+=a*Qe,k+=a*We,P+=a*Xe,z+=a*Ye,W+=a*Je,J+=a*Ze,te+=a*et,a=t[7],f+=a*be,x+=a*X,m+=a*ue,y+=a*_e,b+=a*ge,S+=a*xe,B+=a*Fe,_+=a*De,D+=a*ye,k+=a*Qe,P+=a*We,z+=a*Xe,W+=a*Ye,J+=a*Je,te+=a*Ze,ve+=a*et,a=t[8],x+=a*be,m+=a*X,y+=a*ue,b+=a*_e,S+=a*ge,B+=a*xe,_+=a*Fe,D+=a*De,k+=a*ye,P+=a*Qe,z+=a*We,W+=a*Xe,J+=a*Ye,te+=a*Je,ve+=a*Ze,pe+=a*et,a=t[9],m+=a*be,y+=a*X,b+=a*ue,S+=a*_e,B+=a*ge,_+=a*xe,D+=a*Fe,k+=a*De,P+=a*ye,z+=a*Qe,W+=a*We,J+=a*Xe,te+=a*Ye,ve+=a*Je,pe+=a*Ze,ke+=a*et,a=t[10],y+=a*be,b+=a*X,S+=a*ue,B+=a*_e,_+=a*ge,D+=a*xe,k+=a*Fe,P+=a*De,z+=a*ye,W+=a*Qe,J+=a*We,te+=a*Xe,ve+=a*Ye,pe+=a*Je,ke+=a*Ze,oe+=a*et,a=t[11],b+=a*be,S+=a*X,B+=a*ue,_+=a*_e,D+=a*ge,k+=a*xe,P+=a*Fe,z+=a*De,W+=a*ye,J+=a*Qe,te+=a*We,ve+=a*Xe,pe+=a*Ye,ke+=a*Je,oe+=a*Ze,ce+=a*et,a=t[12],S+=a*be,B+=a*X,_+=a*ue,D+=a*_e,k+=a*ge,P+=a*xe,z+=a*Fe,W+=a*De,J+=a*ye,te+=a*Qe,ve+=a*We,pe+=a*Xe,ke+=a*Ye,oe+=a*Je,ce+=a*Ze,le+=a*et,a=t[13],B+=a*be,_+=a*X,D+=a*ue,k+=a*_e,P+=a*ge,z+=a*xe,W+=a*Fe,J+=a*De,te+=a*ye,ve+=a*Qe,pe+=a*We,ke+=a*Xe,oe+=a*Ye,ce+=a*Je,le+=a*Ze,U+=a*et,a=t[14],_+=a*be,D+=a*X,k+=a*ue,P+=a*_e,z+=a*ge,W+=a*xe,J+=a*Fe,te+=a*De,ve+=a*ye,pe+=a*Qe,ke+=a*We,oe+=a*Xe,ce+=a*Ye,le+=a*Je,U+=a*Ze,H+=a*et,a=t[15],D+=a*be,k+=a*X,P+=a*ue,z+=a*_e,W+=a*ge,J+=a*xe,te+=a*Fe,ve+=a*De,pe+=a*ye,ke+=a*Qe,oe+=a*We,ce+=a*Xe,le+=a*Ye,U+=a*Je,H+=a*Ze,Se+=a*et,s+=38*k,i+=38*P,o+=38*z,c+=38*W,l+=38*J,u+=38*te,p+=38*ve,f+=38*pe,x+=38*ke,m+=38*oe,y+=38*ce,b+=38*le,S+=38*U,B+=38*H,_+=38*Se,n=1,a=s+n+65535,n=Math.floor(a/65536),s=a-n*65536,a=i+n+65535,n=Math.floor(a/65536),i=a-n*65536,a=o+n+65535,n=Math.floor(a/65536),o=a-n*65536,a=c+n+65535,n=Math.floor(a/65536),c=a-n*65536,a=l+n+65535,n=Math.floor(a/65536),l=a-n*65536,a=u+n+65535,n=Math.floor(a/65536),u=a-n*65536,a=p+n+65535,n=Math.floor(a/65536),p=a-n*65536,a=f+n+65535,n=Math.floor(a/65536),f=a-n*65536,a=x+n+65535,n=Math.floor(a/65536),x=a-n*65536,a=m+n+65535,n=Math.floor(a/65536),m=a-n*65536,a=y+n+65535,n=Math.floor(a/65536),y=a-n*65536,a=b+n+65535,n=Math.floor(a/65536),b=a-n*65536,a=S+n+65535,n=Math.floor(a/65536),S=a-n*65536,a=B+n+65535,n=Math.floor(a/65536),B=a-n*65536,a=_+n+65535,n=Math.floor(a/65536),_=a-n*65536,a=D+n+65535,n=Math.floor(a/65536),D=a-n*65536,s+=n-1+37*(n-1),n=1,a=s+n+65535,n=Math.floor(a/65536),s=a-n*65536,a=i+n+65535,n=Math.floor(a/65536),i=a-n*65536,a=o+n+65535,n=Math.floor(a/65536),o=a-n*65536,a=c+n+65535,n=Math.floor(a/65536),c=a-n*65536,a=l+n+65535,n=Math.floor(a/65536),l=a-n*65536,a=u+n+65535,n=Math.floor(a/65536),u=a-n*65536,a=p+n+65535,n=Math.floor(a/65536),p=a-n*65536,a=f+n+65535,n=Math.floor(a/65536),f=a-n*65536,a=x+n+65535,n=Math.floor(a/65536),x=a-n*65536,a=m+n+65535,n=Math.floor(a/65536),m=a-n*65536,a=y+n+65535,n=Math.floor(a/65536),y=a-n*65536,a=b+n+65535,n=Math.floor(a/65536),b=a-n*65536,a=S+n+65535,n=Math.floor(a/65536),S=a-n*65536,a=B+n+65535,n=Math.floor(a/65536),B=a-n*65536,a=_+n+65535,n=Math.floor(a/65536),_=a-n*65536,a=D+n+65535,n=Math.floor(a/65536),D=a-n*65536,s+=n-1+37*(n-1),e[0]=s,e[1]=i,e[2]=o,e[3]=c,e[4]=l,e[5]=u,e[6]=p,e[7]=f,e[8]=x,e[9]=m,e[10]=y,e[11]=b,e[12]=S,e[13]=B,e[14]=_,e[15]=D}var Bt=ee;Bt.kem=Bt.kem||{};var $0=Bt.jsbn.BigInteger;Bt.kem.rsa={},Bt.kem.rsa.create=function(e,t){t=t||{};var r=t.prng||Bt.random,a={};return a.encrypt=function(n,s){var i=Math.ceil(n.n.bitLength()/8),o;do o=new $0(Bt.util.bytesToHex(r.getBytesSync(i)),16).mod(n.n);while(o.compareTo($0.ONE)<=0);o=Bt.util.hexToBytes(o.toString(16));var c=i-o.length;c>0&&(o=Bt.util.fillString("\0",c)+o);var l=n.encrypt(o,"NONE"),u=e.generate(o,s);return{encapsulation:l,key:u}},a.decrypt=function(n,s,i){var o=n.decrypt(s,"NONE");return e.generate(o,i)},a},Bt.kem.kdf1=function(e,t){G0(this,e,0,t||e.digestLength)},Bt.kem.kdf2=function(e,t){G0(this,e,1,t||e.digestLength)};function G0(e,t,r,a){e.generate=function(n,s){for(var i=new Bt.util.ByteBuffer,o=Math.ceil(s/a)+r,c=new Bt.util.ByteBuffer,l=r;l<o;++l){c.putInt32(l),t.start(),t.update(n+c.getBytes());var u=t.digest();i.putBytes(u.getBytes(a))}return i.truncate(i.length()-s),i.getBytes()}}var se=ee;se.log=se.log||{},se.log.levels=["none","error","warning","info","debug","verbose","max"];var hl={},dp=[],yc=null;se.log.LEVEL_LOCKED=2,se.log.NO_LEVEL_CHECK=4,se.log.INTERPOLATE=8;for(var ha=0;ha<se.log.levels.length;++ha){var Q0=se.log.levels[ha];hl[Q0]={index:ha,name:Q0.toUpperCase()}}se.log.logMessage=function(e){for(var t=hl[e.level].index,r=0;r<dp.length;++r){var a=dp[r];if(a.flags&se.log.NO_LEVEL_CHECK)a.f(e);else{var n=hl[a.level].index;t<=n&&a.f(a,e)}}},se.log.prepareStandard=function(e){"standard"in e||(e.standard=hl[e.level].name+" ["+e.category+"] "+e.message)},se.log.prepareFull=function(e){if(!("full"in e)){var t=[e.message];t=t.concat([]),e.full=se.util.format.apply(this,t)}},se.log.prepareStandardFull=function(e){"standardFull"in e||(se.log.prepareStandard(e),e.standardFull=e.standard)};for(var W0=["error","warning","info","debug","verbose"],ha=0;ha<W0.length;++ha)(function(t){se.log[t]=function(r,a){var n=Array.prototype.slice.call(arguments).slice(2),s={timestamp:new Date,level:t,category:r,message:a,arguments:n};se.log.logMessage(s)}})(W0[ha]);if(se.log.makeLogger=function(e){var t={flags:0,f:e};return se.log.setLevel(t,"none"),t},se.log.setLevel=function(e,t){var r=!1;if(e&&!(e.flags&se.log.LEVEL_LOCKED))for(var a=0;a<se.log.levels.length;++a){var n=se.log.levels[a];if(t==n){e.level=t,r=!0;break}}return r},se.log.lock=function(e,t){typeof t>"u"||t?e.flags|=se.log.LEVEL_LOCKED:e.flags&=~se.log.LEVEL_LOCKED},se.log.addLogger=function(e){dp.push(e)},typeof console<"u"&&"log"in console){var bc;if(console.error&&console.warn&&console.info&&console.debug){var YC={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},vp=function(e,t){se.log.prepareStandard(t);var r=YC[t.level],a=[t.standard];a=a.concat(t.arguments.slice()),r.apply(console,a)};bc=se.log.makeLogger(vp)}else{var vp=function(t,r){se.log.prepareStandardFull(r),console.log(r.standardFull)};bc=se.log.makeLogger(vp)}se.log.setLevel(bc,"debug"),se.log.addLogger(bc),yc=bc}else console={log:function(){}};if(yc!==null&&typeof window<"u"&&window.location){var vl=new URL(window.location.href).searchParams;if(vl.has("console.level")&&se.log.setLevel(yc,vl.get("console.level").slice(-1)[0]),vl.has("console.lock")){var JC=vl.get("console.lock").slice(-1)[0];JC=="true"&&se.log.lock(yc)}}se.log.consoleLogger=yc;var M=ee,T=M.asn1,dt=M.pkcs7=M.pkcs7||{};dt.messageFromPem=function(e){var t=M.pem.decode(e)[0];if(t.type!=="PKCS7"){var r=new Error('Could not convert PKCS#7 message from PEM; PEM header type is not "PKCS#7".');throw r.headerType=t.type,r}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.");var a=T.fromDer(t.body);return dt.messageFromAsn1(a)},dt.messageToPem=function(e,t){var r={type:"PKCS7",body:T.toDer(e.toAsn1()).getBytes()};return M.pem.encode(r,{maxline:t})},dt.messageFromAsn1=function(e){var t={},r=[];if(!T.validate(e,dt.asn1.contentInfoValidator,t,r)){var a=new Error("Cannot read PKCS#7 message. ASN.1 object is not an PKCS#7 ContentInfo.");throw a.errors=r,a}var n=T.derToOid(t.contentType),s;switch(n){case M.pki.oids.envelopedData:s=dt.createEnvelopedData();break;case M.pki.oids.encryptedData:s=dt.createEncryptedData();break;case M.pki.oids.signedData:s=dt.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+n+" is not (yet) supported.")}return s.fromAsn1(t.content.value[0]),s},dt.createSignedData=function(){var e=null;return e={type:M.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:function(a){if(mp(e,a,dt.asn1.signedDataValidator),e.certificates=[],e.crls=[],e.digestAlgorithmIdentifiers=[],e.contentInfo=null,e.signerInfos=[],e.rawCapture.certificates)for(var n=e.rawCapture.certificates.value,s=0;s<n.length;++s)e.certificates.push(M.pki.certificateFromAsn1(n[s]))},toAsn1:function(){e.contentInfo||e.sign();for(var a=[],n=0;n<e.certificates.length;++n)a.push(M.pki.certificateToAsn1(e.certificates[n]));var s=[],i=T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(e.version).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SET,!0,e.digestAlgorithmIdentifiers),e.contentInfo])]);return a.length>0&&i.value[0].value.push(T.create(T.Class.CONTEXT_SPECIFIC,0,!0,a)),s.length>0&&i.value[0].value.push(T.create(T.Class.CONTEXT_SPECIFIC,1,!0,s)),i.value[0].value.push(T.create(T.Class.UNIVERSAL,T.Type.SET,!0,e.signerInfos)),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.type).getBytes()),i])},addSigner:function(a){var n=a.issuer,s=a.serialNumber;if(a.certificate){var i=a.certificate;typeof i=="string"&&(i=M.pki.certificateFromPem(i)),n=i.issuer.attributes,s=i.serialNumber}var o=a.key;if(!o)throw new Error("Could not add PKCS#7 signer; no private key specified.");typeof o=="string"&&(o=M.pki.privateKeyFromPem(o));var c=a.digestAlgorithm||M.pki.oids.sha1;switch(c){case M.pki.oids.sha1:case M.pki.oids.sha256:case M.pki.oids.sha384:case M.pki.oids.sha512:case M.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+c)}var l=a.authenticatedAttributes||[];if(l.length>0){for(var u=!1,p=!1,f=0;f<l.length;++f){var x=l[f];if(!u&&x.type===M.pki.oids.contentType){if(u=!0,p)break;continue}if(!p&&x.type===M.pki.oids.messageDigest){if(p=!0,u)break;continue}}if(!u||!p)throw new Error("Invalid signer.authenticatedAttributes. If signer.authenticatedAttributes is specified, then it must contain at least two attributes, PKCS #9 content-type and PKCS #9 message-digest.")}e.signers.push({key:o,version:1,issuer:n,serialNumber:s,digestAlgorithm:c,signatureAlgorithm:M.pki.oids.rsaEncryption,signature:null,authenticatedAttributes:l,unauthenticatedAttributes:[]})},sign:function(a){if(a=a||{},(typeof e.content!="object"||e.contentInfo===null)&&(e.contentInfo=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(M.pki.oids.data).getBytes())]),"content"in e)){var n;e.content instanceof M.util.ByteBuffer?n=e.content.bytes():typeof e.content=="string"&&(n=M.util.encodeUtf8(e.content)),a.detached?e.detachedContent=T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,n):e.contentInfo.value.push(T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,n)]))}if(e.signers.length!==0){var s=t();r(s)}},verify:function(){throw new Error("PKCS#7 signature verification not yet implemented.")},addCertificate:function(a){typeof a=="string"&&(a=M.pki.certificateFromPem(a)),e.certificates.push(a)},addCertificateRevokationList:function(a){throw new Error("PKCS#7 CRL support not yet implemented.")}},e;function t(){for(var a={},n=0;n<e.signers.length;++n){var s=e.signers[n],i=s.digestAlgorithm;i in a||(a[i]=M.md[M.pki.oids[i]].create()),s.authenticatedAttributes.length===0?s.md=a[i]:s.md=M.md[M.pki.oids[i]].create()}e.digestAlgorithmIdentifiers=[];for(var i in a)e.digestAlgorithmIdentifiers.push(T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(i).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")]));return a}function r(a){var n;if(e.detachedContent?n=e.detachedContent:(n=e.contentInfo.value[1],n=n.value[0]),!n)throw new Error("Could not sign PKCS#7 message; there is no content to sign.");var s=T.derToOid(e.contentInfo.value[0].value),i=T.toDer(n);i.getByte(),T.getBerValueLength(i),i=i.getBytes();for(var o in a)a[o].start().update(i);for(var c=new Date,l=0;l<e.signers.length;++l){var u=e.signers[l];if(u.authenticatedAttributes.length===0){if(s!==M.pki.oids.data)throw new Error("Invalid signer; authenticatedAttributes must be present when the ContentInfo content type is not PKCS#7 Data.")}else{u.authenticatedAttributesAsn1=T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[]);for(var p=T.create(T.Class.UNIVERSAL,T.Type.SET,!0,[]),f=0;f<u.authenticatedAttributes.length;++f){var x=u.authenticatedAttributes[f];x.type===M.pki.oids.messageDigest?x.value=a[u.digestAlgorithm].digest():x.type===M.pki.oids.signingTime&&(x.value||(x.value=c)),p.value.push(fp(x)),u.authenticatedAttributesAsn1.value.push(fp(x))}i=T.toDer(p).getBytes(),u.md.start().update(i)}u.signature=u.key.sign(u.md,"RSASSA-PKCS1-V1_5")}e.signerInfos=n2(e.signers)}},dt.createEncryptedData=function(){var e=null;return e={type:M.pki.oids.encryptedData,version:0,encryptedContent:{algorithm:M.pki.oids["aes256-CBC"]},fromAsn1:function(t){mp(e,t,dt.asn1.encryptedDataValidator)},decrypt:function(t){t!==void 0&&(e.encryptedContent.key=t),X0(e)}},e},dt.createEnvelopedData=function(){var e=null;return e={type:M.pki.oids.envelopedData,version:0,recipients:[],encryptedContent:{algorithm:M.pki.oids["aes256-CBC"]},fromAsn1:function(t){var r=mp(e,t,dt.asn1.envelopedDataValidator);e.recipients=t2(r.recipientInfos.value)},toAsn1:function(){return T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.type).getBytes()),T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(e.version).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SET,!0,a2(e.recipients)),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,i2(e.encryptedContent))])])])},findRecipient:function(t){for(var r=t.issuer.attributes,a=0;a<e.recipients.length;++a){var n=e.recipients[a],s=n.issuer;if(n.serialNumber===t.serialNumber&&s.length===r.length){for(var i=!0,o=0;o<r.length;++o)if(s[o].type!==r[o].type||s[o].value!==r[o].value){i=!1;break}if(i)return n}}return null},decrypt:function(t,r){if(e.encryptedContent.key===void 0&&t!==void 0&&r!==void 0)switch(t.encryptedContent.algorithm){case M.pki.oids.rsaEncryption:case M.pki.oids.desCBC:var a=r.decrypt(t.encryptedContent.content);e.encryptedContent.key=M.util.createBuffer(a);break;default:throw new Error("Unsupported asymmetric cipher, OID "+t.encryptedContent.algorithm)}X0(e)},addRecipient:function(t){e.recipients.push({version:0,issuer:t.issuer.attributes,serialNumber:t.serialNumber,encryptedContent:{algorithm:M.pki.oids.rsaEncryption,key:t.publicKey}})},encrypt:function(t,r){if(e.encryptedContent.content===void 0){r=r||e.encryptedContent.algorithm,t=t||e.encryptedContent.key;var a,n,s;switch(r){case M.pki.oids["aes128-CBC"]:a=16,n=16,s=M.aes.createEncryptionCipher;break;case M.pki.oids["aes192-CBC"]:a=24,n=16,s=M.aes.createEncryptionCipher;break;case M.pki.oids["aes256-CBC"]:a=32,n=16,s=M.aes.createEncryptionCipher;break;case M.pki.oids["des-EDE3-CBC"]:a=24,n=8,s=M.des.createEncryptionCipher;break;default:throw new Error("Unsupported symmetric cipher, OID "+r)}if(t===void 0)t=M.util.createBuffer(M.random.getBytes(a));else if(t.length()!=a)throw new Error("Symmetric key has wrong length; got "+t.length()+" bytes, expected "+a+".");e.encryptedContent.algorithm=r,e.encryptedContent.key=t,e.encryptedContent.parameter=M.util.createBuffer(M.random.getBytes(n));var i=s(t);if(i.start(e.encryptedContent.parameter.copy()),i.update(e.content),!i.finish())throw new Error("Symmetric encryption failed.");e.encryptedContent.content=i.output}for(var o=0;o<e.recipients.length;++o){var c=e.recipients[o];if(c.encryptedContent.content===void 0)switch(c.encryptedContent.algorithm){case M.pki.oids.rsaEncryption:c.encryptedContent.content=c.encryptedContent.key.encrypt(e.encryptedContent.key.data);break;default:throw new Error("Unsupported asymmetric cipher, OID "+c.encryptedContent.algorithm)}}}},e};function ZC(e){var t={},r=[];if(!T.validate(e,dt.asn1.recipientInfoValidator,t,r)){var a=new Error("Cannot read PKCS#7 RecipientInfo. ASN.1 object is not an PKCS#7 RecipientInfo.");throw a.errors=r,a}return{version:t.version.charCodeAt(0),issuer:M.pki.RDNAttributesAsArray(t.issuer),serialNumber:M.util.createBuffer(t.serial).toHex(),encryptedContent:{algorithm:T.derToOid(t.encAlgorithm),parameter:t.encParameter?t.encParameter.value:void 0,content:t.encKey}}}function e2(e){return T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(e.version).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[M.pki.distinguishedNameToAsn1({attributes:e.issuer}),T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,M.util.hexToBytes(e.serialNumber))]),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.encryptedContent.algorithm).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")]),T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,e.encryptedContent.content)])}function t2(e){for(var t=[],r=0;r<e.length;++r)t.push(ZC(e[r]));return t}function a2(e){for(var t=[],r=0;r<e.length;++r)t.push(e2(e[r]));return t}function r2(e){var t=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(e.version).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[M.pki.distinguishedNameToAsn1({attributes:e.issuer}),T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,M.util.hexToBytes(e.serialNumber))]),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.digestAlgorithm).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")])]);if(e.authenticatedAttributesAsn1&&t.value.push(e.authenticatedAttributesAsn1),t.value.push(T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.signatureAlgorithm).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")])),t.value.push(T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,e.signature)),e.unauthenticatedAttributes.length>0){for(var r=T.create(T.Class.CONTEXT_SPECIFIC,1,!0,[]),a=0;a<e.unauthenticatedAttributes.length;++a){var n=e.unauthenticatedAttributes[a];r.values.push(fp(n))}t.value.push(r)}return t}function n2(e){for(var t=[],r=0;r<e.length;++r)t.push(r2(e[r]));return t}function fp(e){var t;if(e.type===M.pki.oids.contentType)t=T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.value).getBytes());else if(e.type===M.pki.oids.messageDigest)t=T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,e.value.bytes());else if(e.type===M.pki.oids.signingTime){var r=new Date("1950-01-01T00:00:00Z"),a=new Date("2050-01-01T00:00:00Z"),n=e.value;if(typeof n=="string"){var s=Date.parse(n);isNaN(s)?n.length===13?n=T.utcTimeToDate(n):n=T.generalizedTimeToDate(n):n=new Date(s)}n>=r&&n<a?t=T.create(T.Class.UNIVERSAL,T.Type.UTCTIME,!1,T.dateToUtcTime(n)):t=T.create(T.Class.UNIVERSAL,T.Type.GENERALIZEDTIME,!1,T.dateToGeneralizedTime(n))}return T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.type).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SET,!0,[t])])}function i2(e){return[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(M.pki.oids.data).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.algorithm).getBytes()),e.parameter?T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,e.parameter.getBytes()):void 0]),T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,e.content.getBytes())])]}function mp(e,t,r){var a={},n=[];if(!T.validate(t,r,a,n)){var s=new Error("Cannot read PKCS#7 message. ASN.1 object is not a supported PKCS#7 message.");throw s.errors=s,s}var i=T.derToOid(a.contentType);if(i!==M.pki.oids.data)throw new Error("Unsupported PKCS#7 message. Only wrapped ContentType Data supported.");if(a.encryptedContent){var o="";if(M.util.isArray(a.encryptedContent))for(var c=0;c<a.encryptedContent.length;++c){if(a.encryptedContent[c].type!==T.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting encrypted content constructed of only OCTET STRING objects.");o+=a.encryptedContent[c].value}else o=a.encryptedContent;e.encryptedContent={algorithm:T.derToOid(a.encAlgorithm),parameter:M.util.createBuffer(a.encParameter.value),content:M.util.createBuffer(o)}}if(a.content){var o="";if(M.util.isArray(a.content))for(var c=0;c<a.content.length;++c){if(a.content[c].type!==T.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting content constructed of only OCTET STRING objects.");o+=a.content[c].value}else o=a.content;e.content=M.util.createBuffer(o)}return e.version=a.version.charCodeAt(0),e.rawCapture=a,a}function X0(e){if(e.encryptedContent.key===void 0)throw new Error("Symmetric key not available.");if(e.content===void 0){var t;switch(e.encryptedContent.algorithm){case M.pki.oids["aes128-CBC"]:case M.pki.oids["aes192-CBC"]:case M.pki.oids["aes256-CBC"]:t=M.aes.createDecryptionCipher(e.encryptedContent.key);break;case M.pki.oids.desCBC:case M.pki.oids["des-EDE3-CBC"]:t=M.des.createDecryptionCipher(e.encryptedContent.key);break;default:throw new Error("Unsupported symmetric cipher, OID "+e.encryptedContent.algorithm)}if(t.start(e.encryptedContent.parameter),t.update(e.encryptedContent.content),!t.finish())throw new Error("Symmetric decryption failed.");e.content=t.output}}var Oe=ee,gl=Oe.ssh=Oe.ssh||{};gl.privateKeyToPutty=function(e,t,r){r=r||"",t=t||"";var a="ssh-rsa",n=t===""?"none":"aes256-cbc",s="PuTTY-User-Key-File-2: "+a+`\r
|
|
38
|
+
`+o+t.substr(i+1),s=n-i-1,i=-1,++n}else(t[n]===" "||t[n]===" "||t[n]===",")&&(i=n);return t}function H1(e){return e.replace(/^\s+/,"")}var Re=te;Re.des=Re.des||{},Re.des.startEncrypting=function(e,t,r,a){var n=tl({key:e,output:r,decrypt:!1,mode:a||(t===null?"ECB":"CBC")});return n.start(t),n},Re.des.createEncryptionCipher=function(e,t){return tl({key:e,output:null,decrypt:!1,mode:t})},Re.des.startDecrypting=function(e,t,r,a){var n=tl({key:e,output:r,decrypt:!0,mode:a||(t===null?"ECB":"CBC")});return n.start(t),n},Re.des.createDecryptionCipher=function(e,t){return tl({key:e,output:null,decrypt:!0,mode:t})},Re.des.Algorithm=function(e,t){var r=this;r.name=e,r.mode=new t({blockSize:8,cipher:{encrypt:function(a,n){return Qf(r._keys,a,n,!1)},decrypt:function(a,n){return Qf(r._keys,a,n,!0)}}}),r._init=!1},Re.des.Algorithm.prototype.initialize=function(e){if(!this._init){var t=Re.util.createBuffer(e.key);if(this.name.indexOf("3DES")===0&&t.length()!==24)throw new Error("Invalid Triple-DES key size: "+t.length()*8);this._keys=eb(t),this._init=!0}},Kt("DES-ECB",Re.cipher.modes.ecb),Kt("DES-CBC",Re.cipher.modes.cbc),Kt("DES-CFB",Re.cipher.modes.cfb),Kt("DES-OFB",Re.cipher.modes.ofb),Kt("DES-CTR",Re.cipher.modes.ctr),Kt("3DES-ECB",Re.cipher.modes.ecb),Kt("3DES-CBC",Re.cipher.modes.cbc),Kt("3DES-CFB",Re.cipher.modes.cfb),Kt("3DES-OFB",Re.cipher.modes.ofb),Kt("3DES-CTR",Re.cipher.modes.ctr);function Kt(e,t){var r=function(){return new Re.des.Algorithm(e,t)};Re.cipher.registerAlgorithm(e,r)}var $1=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],G1=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],Q1=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],W1=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],Y1=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],X1=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],J1=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],Z1=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function eb(e){for(var t=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],r=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],a=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],n=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],s=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],i=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],o=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],c=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],l=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],u=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],p=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],f=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],x=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],m=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],y=e.length()>8?3:1,b=[],S=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],B=0,_,P=0;P<y;P++){var U=e.getInt32(),k=e.getInt32();_=(U>>>4^k)&252645135,k^=_,U^=_<<4,_=(k>>>-16^U)&65535,U^=_,k^=_<<-16,_=(U>>>2^k)&858993459,k^=_,U^=_<<2,_=(k>>>-16^U)&65535,U^=_,k^=_<<-16,_=(U>>>1^k)&1431655765,k^=_,U^=_<<1,_=(k>>>8^U)&16711935,U^=_,k^=_<<8,_=(U>>>1^k)&1431655765,k^=_,U^=_<<1,_=U<<8|k>>>20&240,U=k<<24|k<<8&16711680|k>>>8&65280|k>>>24&240,k=_;for(var H=0;H<S.length;++H){S[H]?(U=U<<2|U>>>26,k=k<<2|k>>>26):(U=U<<1|U>>>27,k=k<<1|k>>>27),U&=-15,k&=-15;var G=t[U>>>28]|r[U>>>24&15]|a[U>>>20&15]|n[U>>>16&15]|s[U>>>12&15]|i[U>>>8&15]|o[U>>>4&15],Z=c[k>>>28]|l[k>>>24&15]|u[k>>>20&15]|p[k>>>16&15]|f[k>>>12&15]|x[k>>>8&15]|m[k>>>4&15];_=(Z>>>16^G)&65535,b[B++]=G^_,b[B++]=Z^_<<16}}return b}function Qf(e,t,r,a){var n=e.length===32?3:9,s;n===3?s=a?[30,-2,-2]:[0,32,2]:s=a?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var i,o=t[0],c=t[1];i=(o>>>4^c)&252645135,c^=i,o^=i<<4,i=(o>>>16^c)&65535,c^=i,o^=i<<16,i=(c>>>2^o)&858993459,o^=i,c^=i<<2,i=(c>>>8^o)&16711935,o^=i,c^=i<<8,i=(o>>>1^c)&1431655765,c^=i,o^=i<<1,o=o<<1|o>>>31,c=c<<1|c>>>31;for(var l=0;l<n;l+=3){for(var u=s[l+1],p=s[l+2],f=s[l];f!=u;f+=p){var x=c^e[f],m=(c>>>4|c<<28)^e[f+1];i=o,o=c,c=i^(G1[x>>>24&63]|W1[x>>>16&63]|X1[x>>>8&63]|Z1[x&63]|$1[m>>>24&63]|Q1[m>>>16&63]|Y1[m>>>8&63]|J1[m&63])}i=o,o=c,c=i}o=o>>>1|o<<31,c=c>>>1|c<<31,i=(o>>>1^c)&1431655765,c^=i,o^=i<<1,i=(c>>>8^o)&16711935,o^=i,c^=i<<8,i=(c>>>2^o)&858993459,o^=i,c^=i<<2,i=(o>>>16^c)&65535,c^=i,o^=i<<16,i=(o>>>4^c)&252645135,c^=i,o^=i<<4,r[0]=o,r[1]=c}function tl(e){e=e||{};var t=(e.mode||"CBC").toUpperCase(),r="DES-"+t,a;e.decrypt?a=Re.cipher.createDecipher(r,e.key):a=Re.cipher.createCipher(r,e.key);var n=a.start;return a.start=function(s,i){var o=null;i instanceof Re.util.ByteBuffer&&(o=i,i={}),i=i||{},i.output=o,i.iv=s,n.call(a,i)},a}var lt=te,tb=lt.pkcs5=lt.pkcs5||{},Jt;lt.util.isNodejs&&!lt.options.usePureJavaScript&&(Jt=er),lt.pbkdf2=tb.pbkdf2=function(e,t,r,a,n,s){if(typeof n=="function"&&(s=n,n=null),lt.util.isNodejs&&!lt.options.usePureJavaScript&&Jt.pbkdf2&&(n===null||typeof n!="object")&&(Jt.pbkdf2Sync.length>4||!n||n==="sha1"))return typeof n!="string"&&(n="sha1"),e=Buffer.from(e,"binary"),t=Buffer.from(t,"binary"),s?Jt.pbkdf2Sync.length===4?Jt.pbkdf2(e,t,r,a,function(_,P){if(_)return s(_);s(null,P.toString("binary"))}):Jt.pbkdf2(e,t,r,a,n,function(_,P){if(_)return s(_);s(null,P.toString("binary"))}):Jt.pbkdf2Sync.length===4?Jt.pbkdf2Sync(e,t,r,a).toString("binary"):Jt.pbkdf2Sync(e,t,r,a,n).toString("binary");if((typeof n>"u"||n===null)&&(n="sha1"),typeof n=="string"){if(!(n in lt.md.algorithms))throw new Error("Unknown hash algorithm: "+n);n=lt.md[n].create()}var i=n.digestLength;if(a>4294967295*i){var o=new Error("Derived key is too long.");if(s)return s(o);throw o}var c=Math.ceil(a/i),l=a-(c-1)*i,u=lt.hmac.create();u.start(n,e);var p="",f,x,m;if(!s){for(var y=1;y<=c;++y){u.start(null,null),u.update(t),u.update(lt.util.int32ToBytes(y)),f=m=u.digest().getBytes();for(var b=2;b<=r;++b)u.start(null,null),u.update(m),x=u.digest().getBytes(),f=lt.util.xorBytes(f,x,i),m=x;p+=y<c?f:f.substr(0,l)}return p}var y=1,b;function S(){if(y>c)return s(null,p);u.start(null,null),u.update(t),u.update(lt.util.int32ToBytes(y)),f=m=u.digest().getBytes(),b=2,B()}function B(){if(b<=r)return u.start(null,null),u.update(m),x=u.digest().getBytes(),f=lt.util.xorBytes(f,x,i),m=x,++b,lt.util.setImmediate(B);p+=y<c?f:f.substr(0,l),++y,S()}S()};var zt=te,Wf=zt.sha256=zt.sha256||{};zt.md.sha256=zt.md.algorithms.sha256=Wf,Wf.create=function(){Yf||ab();var e=null,t=zt.util.createBuffer(),r=new Array(64),a={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8};return a.start=function(){a.messageLength=0,a.fullMessageLength=a.messageLength64=[];for(var n=a.messageLengthSize/4,s=0;s<n;++s)a.fullMessageLength.push(0);return t=zt.util.createBuffer(),e={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},a},a.start(),a.update=function(n,s){s==="utf8"&&(n=zt.util.encodeUtf8(n));var i=n.length;a.messageLength+=i,i=[i/4294967296>>>0,i>>>0];for(var o=a.fullMessageLength.length-1;o>=0;--o)a.fullMessageLength[o]+=i[1],i[1]=i[0]+(a.fullMessageLength[o]/4294967296>>>0),a.fullMessageLength[o]=a.fullMessageLength[o]>>>0,i[0]=i[1]/4294967296>>>0;return t.putBytes(n),Jf(e,r,t),(t.read>2048||t.length()===0)&&t.compact(),a},a.digest=function(){var n=zt.util.createBuffer();n.putBytes(t.bytes());var s=a.fullMessageLength[a.fullMessageLength.length-1]+a.messageLengthSize,i=s&a.blockLength-1;n.putBytes(qu.substr(0,a.blockLength-i));for(var o,c,l=a.fullMessageLength[0]*8,u=0;u<a.fullMessageLength.length-1;++u)o=a.fullMessageLength[u+1]*8,c=o/4294967296>>>0,l+=c,n.putInt32(l>>>0),l=o>>>0;n.putInt32(l);var p={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4,h5:e.h5,h6:e.h6,h7:e.h7};Jf(p,r,n);var f=zt.util.createBuffer();return f.putInt32(p.h0),f.putInt32(p.h1),f.putInt32(p.h2),f.putInt32(p.h3),f.putInt32(p.h4),f.putInt32(p.h5),f.putInt32(p.h6),f.putInt32(p.h7),f},a};var qu=null,Yf=!1,Xf=null;function ab(){qu="\x80",qu+=zt.util.fillString("\0",64),Xf=[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],Yf=!0}function Jf(e,t,r){for(var a,n,s,i,o,c,l,u,p,f,x,m,y,b,S,B=r.length();B>=64;){for(l=0;l<16;++l)t[l]=r.getInt32();for(;l<64;++l)a=t[l-2],a=(a>>>17|a<<15)^(a>>>19|a<<13)^a>>>10,n=t[l-15],n=(n>>>7|n<<25)^(n>>>18|n<<14)^n>>>3,t[l]=a+t[l-7]+n+t[l-16]|0;for(u=e.h0,p=e.h1,f=e.h2,x=e.h3,m=e.h4,y=e.h5,b=e.h6,S=e.h7,l=0;l<64;++l)i=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7),o=b^m&(y^b),s=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),c=u&p|f&(u^p),a=S+i+o+Xf[l]+t[l],n=s+c,S=b,b=y,y=m,m=x+a>>>0,x=f,f=p,p=u,u=a+n>>>0;e.h0=e.h0+u|0,e.h1=e.h1+p|0,e.h2=e.h2+f|0,e.h3=e.h3+x|0,e.h4=e.h4+m|0,e.h5=e.h5+y|0,e.h6=e.h6+b|0,e.h7=e.h7+S|0,B-=64}}var Ht=te,al=null;Ht.util.isNodejs&&!Ht.options.usePureJavaScript&&!process.versions["node-webkit"]&&(al=er);var rb=Ht.prng=Ht.prng||{};rb.create=function(e){for(var t={plugin:e,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},r=e.md,a=new Array(32),n=0;n<32;++n)a[n]=r.create();t.pools=a,t.pool=0,t.generate=function(l,u){if(!u)return t.generateSync(l);var p=t.plugin.cipher,f=t.plugin.increment,x=t.plugin.formatKey,m=t.plugin.formatSeed,y=Ht.util.createBuffer();t.key=null,b();function b(S){if(S)return u(S);if(y.length()>=l)return u(null,y.getBytes(l));if(t.generated>1048575&&(t.key=null),t.key===null)return Ht.util.nextTick(function(){s(b)});var B=p(t.key,t.seed);t.generated+=B.length,y.putBytes(B),t.key=x(p(t.key,f(t.seed))),t.seed=m(p(t.key,t.seed)),Ht.util.setImmediate(b)}},t.generateSync=function(l){var u=t.plugin.cipher,p=t.plugin.increment,f=t.plugin.formatKey,x=t.plugin.formatSeed;t.key=null;for(var m=Ht.util.createBuffer();m.length()<l;){t.generated>1048575&&(t.key=null),t.key===null&&i();var y=u(t.key,t.seed);t.generated+=y.length,m.putBytes(y),t.key=f(u(t.key,p(t.seed))),t.seed=x(u(t.key,t.seed))}return m.getBytes(l)};function s(l){if(t.pools[0].messageLength>=32)return o(),l();var u=32-t.pools[0].messageLength<<5;t.seedFile(u,function(p,f){if(p)return l(p);t.collect(f),o(),l()})}function i(){if(t.pools[0].messageLength>=32)return o();var l=32-t.pools[0].messageLength<<5;t.collect(t.seedFileSync(l)),o()}function o(){t.reseeds=t.reseeds===4294967295?0:t.reseeds+1;var l=t.plugin.md.create();l.update(t.keyBytes);for(var u=1,p=0;p<32;++p)t.reseeds%u===0&&(l.update(t.pools[p].digest().getBytes()),t.pools[p].start()),u=u<<1;t.keyBytes=l.digest().getBytes(),l.start(),l.update(t.keyBytes);var f=l.digest().getBytes();t.key=t.plugin.formatKey(t.keyBytes),t.seed=t.plugin.formatSeed(f),t.generated=0}function c(l){var u=null,p=Ht.util.globalScope,f=p.crypto||p.msCrypto;f&&f.getRandomValues&&(u=function(U){return f.getRandomValues(U)});var x=Ht.util.createBuffer();if(u)for(;x.length()<l;){var m=Math.max(1,Math.min(l-x.length(),65536)/4),y=new Uint32Array(Math.floor(m));try{u(y);for(var b=0;b<y.length;++b)x.putInt32(y[b])}catch(U){if(!(typeof QuotaExceededError<"u"&&U instanceof QuotaExceededError))throw U}}if(x.length()<l)for(var S,B,_,P=Math.floor(Math.random()*65536);x.length()<l;){B=16807*(P&65535),S=16807*(P>>16),B+=(S&32767)<<16,B+=S>>15,B=(B&2147483647)+(B>>31),P=B&4294967295;for(var b=0;b<3;++b)_=P>>>(b<<3),_^=Math.floor(Math.random()*256),x.putByte(_&255)}return x.getBytes(l)}return al?(t.seedFile=function(l,u){al.randomBytes(l,function(p,f){if(p)return u(p);u(null,f.toString())})},t.seedFileSync=function(l){return al.randomBytes(l).toString()}):(t.seedFile=function(l,u){try{u(null,c(l))}catch(p){u(p)}},t.seedFileSync=c),t.collect=function(l){for(var u=l.length,p=0;p<u;++p)t.pools[t.pool].update(l.substr(p,1)),t.pool=t.pool===31?0:t.pool+1},t.collectInt=function(l,u){for(var p="",f=0;f<u;f+=8)p+=String.fromCharCode(l>>f&255);t.collect(p)},t.registerWorker=function(l){if(l===self)t.seedFile=function(p,f){function x(m){var y=m.data;y.forge&&y.forge.prng&&(self.removeEventListener("message",x),f(y.forge.prng.err,y.forge.prng.bytes))}self.addEventListener("message",x),self.postMessage({forge:{prng:{needed:p}}})};else{var u=function(p){var f=p.data;f.forge&&f.forge.prng&&t.seedFile(f.forge.prng.needed,function(x,m){l.postMessage({forge:{prng:{err:x,bytes:m}}})})};l.addEventListener("message",u)}},t};var Ke=te;(function(){if(Ke.random&&Ke.random.getBytes){Ke.random;return}(function(e){var t={},r=new Array(4),a=Ke.util.createBuffer();t.formatKey=function(p){var f=Ke.util.createBuffer(p);return p=new Array(4),p[0]=f.getInt32(),p[1]=f.getInt32(),p[2]=f.getInt32(),p[3]=f.getInt32(),Ke.aes._expandKey(p,!1)},t.formatSeed=function(p){var f=Ke.util.createBuffer(p);return p=new Array(4),p[0]=f.getInt32(),p[1]=f.getInt32(),p[2]=f.getInt32(),p[3]=f.getInt32(),p},t.cipher=function(p,f){return Ke.aes._updateBlock(p,f,r,!1),a.putInt32(r[0]),a.putInt32(r[1]),a.putInt32(r[2]),a.putInt32(r[3]),a.getBytes()},t.increment=function(p){return++p[3],p},t.md=Ke.md.sha256;function n(){var p=Ke.prng.create(t);return p.getBytes=function(f,x){return p.generate(f,x)},p.getBytesSync=function(f){return p.generate(f)},p}var s=n(),i=null,o=Ke.util.globalScope,c=o.crypto||o.msCrypto;if(c&&c.getRandomValues&&(i=function(p){return c.getRandomValues(p)}),Ke.options.usePureJavaScript||!Ke.util.isNodejs&&!i){if(s.collectInt(+new Date,32),typeof navigator<"u"){var l="";for(var u in navigator)try{typeof navigator[u]=="string"&&(l+=navigator[u])}catch{}s.collect(l),l=null}e&&(e().mousemove(function(p){s.collectInt(p.clientX,16),s.collectInt(p.clientY,16)}),e().keypress(function(p){s.collectInt(p.charCode,8)}))}if(!Ke.random)Ke.random=s;else for(var u in s)Ke.random[u]=s[u];Ke.random.createInstance=n,Ke.random})(typeof jQuery<"u"?jQuery:null)})();var Tt=te,ju=[217,120,249,196,25,221,181,237,40,233,253,121,74,160,216,157,198,126,55,131,43,118,83,142,98,76,100,136,68,139,251,162,23,154,89,245,135,179,79,19,97,69,109,141,9,129,125,50,189,143,64,235,134,183,123,11,240,149,33,34,92,107,78,130,84,214,101,147,206,96,178,28,115,86,192,20,167,140,241,220,18,117,202,31,59,190,228,209,66,61,212,48,163,60,182,38,111,191,14,218,70,105,7,87,39,242,29,155,188,148,67,3,248,17,199,246,144,239,62,231,6,195,213,47,200,102,30,215,8,232,234,222,128,82,238,247,132,170,114,172,53,77,106,42,150,26,210,113,90,21,73,116,75,159,208,94,4,24,164,236,194,224,65,110,15,81,203,204,36,145,175,80,161,244,112,57,153,124,58,133,35,184,180,122,252,2,54,91,37,85,151,49,45,93,250,152,227,138,146,174,5,223,41,16,103,108,186,201,211,0,230,207,225,158,168,44,99,22,1,63,88,226,137,169,13,56,52,27,171,51,255,176,187,72,12,95,185,177,205,46,197,243,219,71,229,165,156,119,10,166,32,104,254,127,193,173],Zf=[1,2,3,5],nb=function(e,t){return e<<t&65535|(e&65535)>>16-t},ib=function(e,t){return(e&65535)>>t|e<<16-t&65535};Tt.rc2=Tt.rc2||{},Tt.rc2.expandKey=function(e,t){typeof e=="string"&&(e=Tt.util.createBuffer(e)),t=t||128;var r=e,a=e.length(),n=t,s=Math.ceil(n/8),i=255>>(n&7),o;for(o=a;o<128;o++)r.putByte(ju[r.at(o-1)+r.at(o-a)&255]);for(r.setAt(128-s,ju[r.at(128-s)&i]),o=127-s;o>=0;o--)r.setAt(o,ju[r.at(o+1)^r.at(o+s)]);return r};var e0=function(e,t,r){var a=!1,n=null,s=null,i=null,o,c,l,u,p=[];for(e=Tt.rc2.expandKey(e,t),l=0;l<64;l++)p.push(e.getInt16Le());r?(o=function(m){for(l=0;l<4;l++)m[l]+=p[u]+(m[(l+3)%4]&m[(l+2)%4])+(~m[(l+3)%4]&m[(l+1)%4]),m[l]=nb(m[l],Zf[l]),u++},c=function(m){for(l=0;l<4;l++)m[l]+=p[m[(l+3)%4]&63]}):(o=function(m){for(l=3;l>=0;l--)m[l]=ib(m[l],Zf[l]),m[l]-=p[u]+(m[(l+3)%4]&m[(l+2)%4])+(~m[(l+3)%4]&m[(l+1)%4]),u--},c=function(m){for(l=3;l>=0;l--)m[l]-=p[m[(l+3)%4]&63]});var f=function(m){var y=[];for(l=0;l<4;l++){var b=n.getInt16Le();i!==null&&(r?b^=i.getInt16Le():i.putInt16Le(b)),y.push(b&65535)}u=r?0:63;for(var S=0;S<m.length;S++)for(var B=0;B<m[S][0];B++)m[S][1](y);for(l=0;l<4;l++)i!==null&&(r?i.putInt16Le(y[l]):y[l]^=i.getInt16Le()),s.putInt16Le(y[l])},x=null;return x={start:function(m,y){m&&typeof m=="string"&&(m=Tt.util.createBuffer(m)),a=!1,n=Tt.util.createBuffer(),s=y||new Tt.util.createBuffer,i=m,x.output=s},update:function(m){for(a||n.putBuffer(m);n.length()>=8;)f([[5,o],[1,c],[6,o],[1,c],[5,o]])},finish:function(m){var y=!0;if(r)if(m)y=m(8,n,!r);else{var b=n.length()===8?8:8-n.length();n.fillWithByte(b,b)}if(y&&(a=!0,x.update()),!r&&(y=n.length()===0,y))if(m)y=m(8,s,!r);else{var S=s.length(),B=s.at(S-1);B>S?y=!1:s.truncate(B)}return y}},x};Tt.rc2.startEncrypting=function(e,t,r){var a=Tt.rc2.createEncryptionCipher(e,128);return a.start(t,r),a},Tt.rc2.createEncryptionCipher=function(e,t){return e0(e,t,!0)},Tt.rc2.startDecrypting=function(e,t,r){var a=Tt.rc2.createDecryptionCipher(e,128);return a.start(t,r),a},Tt.rc2.createDecryptionCipher=function(e,t){return e0(e,t,!1)};var Ku=te;Ku.jsbn=Ku.jsbn||{};var Zt;function N(e,t,r){this.data=[],e!=null&&(typeof e=="number"?this.fromNumber(e,t,r):t==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,t))}Ku.jsbn.BigInteger=N;function fe(){return new N(null)}function sb(e,t,r,a,n,s){for(;--s>=0;){var i=t*this.data[e++]+r.data[a]+n;n=Math.floor(i/67108864),r.data[a++]=i&67108863}return n}function ob(e,t,r,a,n,s){for(var i=t&32767,o=t>>15;--s>=0;){var c=this.data[e]&32767,l=this.data[e++]>>15,u=o*c+l*i;c=i*c+((u&32767)<<15)+r.data[a]+(n&1073741823),n=(c>>>30)+(u>>>15)+o*l+(n>>>30),r.data[a++]=c&1073741823}return n}function t0(e,t,r,a,n,s){for(var i=t&16383,o=t>>14;--s>=0;){var c=this.data[e]&16383,l=this.data[e++]>>14,u=o*c+l*i;c=i*c+((u&16383)<<14)+r.data[a]+n,n=(c>>28)+(u>>14)+o*l,r.data[a++]=c&268435455}return n}typeof navigator>"u"?(N.prototype.am=t0,Zt=28):navigator.appName=="Microsoft Internet Explorer"?(N.prototype.am=ob,Zt=30):navigator.appName!="Netscape"?(N.prototype.am=sb,Zt=26):(N.prototype.am=t0,Zt=28),N.prototype.DB=Zt,N.prototype.DM=(1<<Zt)-1,N.prototype.DV=1<<Zt;var zu=52;N.prototype.FV=Math.pow(2,zu),N.prototype.F1=zu-Zt,N.prototype.F2=2*Zt-zu;var cb="0123456789abcdefghijklmnopqrstuvwxyz",rl=new Array,Ha,Nt;for(Ha=48,Nt=0;Nt<=9;++Nt)rl[Ha++]=Nt;for(Ha=97,Nt=10;Nt<36;++Nt)rl[Ha++]=Nt;for(Ha=65,Nt=10;Nt<36;++Nt)rl[Ha++]=Nt;function a0(e){return cb.charAt(e)}function r0(e,t){var r=rl[e.charCodeAt(t)];return r??-1}function lb(e){for(var t=this.t-1;t>=0;--t)e.data[t]=this.data[t];e.t=this.t,e.s=this.s}function ub(e){this.t=1,this.s=e<0?-1:0,e>0?this.data[0]=e:e<-1?this.data[0]=e+this.DV:this.t=0}function oa(e){var t=fe();return t.fromInt(e),t}function pb(e,t){var r;if(t==16)r=4;else if(t==8)r=3;else if(t==256)r=8;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else{this.fromRadix(e,t);return}this.t=0,this.s=0;for(var a=e.length,n=!1,s=0;--a>=0;){var i=r==8?e[a]&255:r0(e,a);if(i<0){e.charAt(a)=="-"&&(n=!0);continue}n=!1,s==0?this.data[this.t++]=i:s+r>this.DB?(this.data[this.t-1]|=(i&(1<<this.DB-s)-1)<<s,this.data[this.t++]=i>>this.DB-s):this.data[this.t-1]|=i<<s,s+=r,s>=this.DB&&(s-=this.DB)}r==8&&(e[0]&128)!=0&&(this.s=-1,s>0&&(this.data[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),n&&N.ZERO.subTo(this,this)}function db(){for(var e=this.s&this.DM;this.t>0&&this.data[this.t-1]==e;)--this.t}function fb(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else return this.toRadix(e);var r=(1<<t)-1,a,n=!1,s="",i=this.t,o=this.DB-i*this.DB%t;if(i-- >0)for(o<this.DB&&(a=this.data[i]>>o)>0&&(n=!0,s=a0(a));i>=0;)o<t?(a=(this.data[i]&(1<<o)-1)<<t-o,a|=this.data[--i]>>(o+=this.DB-t)):(a=this.data[i]>>(o-=t)&r,o<=0&&(o+=this.DB,--i)),a>0&&(n=!0),n&&(s+=a0(a));return n?s:"0"}function mb(){var e=fe();return N.ZERO.subTo(this,e),e}function hb(){return this.s<0?this.negate():this}function vb(e){var t=this.s-e.s;if(t!=0)return t;var r=this.t;if(t=r-e.t,t!=0)return this.s<0?-t:t;for(;--r>=0;)if((t=this.data[r]-e.data[r])!=0)return t;return 0}function nl(e){var t=1,r;return(r=e>>>16)!=0&&(e=r,t+=16),(r=e>>8)!=0&&(e=r,t+=8),(r=e>>4)!=0&&(e=r,t+=4),(r=e>>2)!=0&&(e=r,t+=2),(r=e>>1)!=0&&(e=r,t+=1),t}function gb(){return this.t<=0?0:this.DB*(this.t-1)+nl(this.data[this.t-1]^this.s&this.DM)}function xb(e,t){var r;for(r=this.t-1;r>=0;--r)t.data[r+e]=this.data[r];for(r=e-1;r>=0;--r)t.data[r]=0;t.t=this.t+e,t.s=this.s}function yb(e,t){for(var r=e;r<this.t;++r)t.data[r-e]=this.data[r];t.t=Math.max(this.t-e,0),t.s=this.s}function bb(e,t){var r=e%this.DB,a=this.DB-r,n=(1<<a)-1,s=Math.floor(e/this.DB),i=this.s<<r&this.DM,o;for(o=this.t-1;o>=0;--o)t.data[o+s+1]=this.data[o]>>a|i,i=(this.data[o]&n)<<r;for(o=s-1;o>=0;--o)t.data[o]=0;t.data[s]=i,t.t=this.t+s+1,t.s=this.s,t.clamp()}function Eb(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t){t.t=0;return}var a=e%this.DB,n=this.DB-a,s=(1<<a)-1;t.data[0]=this.data[r]>>a;for(var i=r+1;i<this.t;++i)t.data[i-r-1]|=(this.data[i]&s)<<n,t.data[i-r]=this.data[i]>>a;a>0&&(t.data[this.t-r-1]|=(this.s&s)<<n),t.t=this.t-r,t.clamp()}function Cb(e,t){for(var r=0,a=0,n=Math.min(e.t,this.t);r<n;)a+=this.data[r]-e.data[r],t.data[r++]=a&this.DM,a>>=this.DB;if(e.t<this.t){for(a-=e.s;r<this.t;)a+=this.data[r],t.data[r++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;r<e.t;)a-=e.data[r],t.data[r++]=a&this.DM,a>>=this.DB;a-=e.s}t.s=a<0?-1:0,a<-1?t.data[r++]=this.DV+a:a>0&&(t.data[r++]=a),t.t=r,t.clamp()}function Sb(e,t){var r=this.abs(),a=e.abs(),n=r.t;for(t.t=n+a.t;--n>=0;)t.data[n]=0;for(n=0;n<a.t;++n)t.data[n+r.t]=r.am(0,a.data[n],t,n,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&N.ZERO.subTo(t,t)}function Tb(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e.data[r]=0;for(r=0;r<t.t-1;++r){var a=t.am(r,t.data[r],e,2*r,0,1);(e.data[r+t.t]+=t.am(r+1,2*t.data[r],e,2*r+1,a,t.t-r-1))>=t.DV&&(e.data[r+t.t]-=t.DV,e.data[r+t.t+1]=1)}e.t>0&&(e.data[e.t-1]+=t.am(r,t.data[r],e,2*r,0,1)),e.s=0,e.clamp()}function wb(e,t,r){var a=e.abs();if(!(a.t<=0)){var n=this.abs();if(n.t<a.t){t?.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=fe());var s=fe(),i=this.s,o=e.s,c=this.DB-nl(a.data[a.t-1]);c>0?(a.lShiftTo(c,s),n.lShiftTo(c,r)):(a.copyTo(s),n.copyTo(r));var l=s.t,u=s.data[l-1];if(u!=0){var p=u*(1<<this.F1)+(l>1?s.data[l-2]>>this.F2:0),f=this.FV/p,x=(1<<this.F1)/p,m=1<<this.F2,y=r.t,b=y-l,S=t??fe();for(s.dlShiftTo(b,S),r.compareTo(S)>=0&&(r.data[r.t++]=1,r.subTo(S,r)),N.ONE.dlShiftTo(l,S),S.subTo(s,s);s.t<l;)s.data[s.t++]=0;for(;--b>=0;){var B=r.data[--y]==u?this.DM:Math.floor(r.data[y]*f+(r.data[y-1]+m)*x);if((r.data[y]+=s.am(0,B,r,b,0,l))<B)for(s.dlShiftTo(b,S),r.subTo(S,r);r.data[y]<--B;)r.subTo(S,r)}t!=null&&(r.drShiftTo(l,t),i!=o&&N.ZERO.subTo(t,t)),r.t=l,r.clamp(),c>0&&r.rShiftTo(c,r),i<0&&N.ZERO.subTo(r,r)}}}function Ab(e){var t=fe();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(N.ZERO)>0&&e.subTo(t,t),t}function Aa(e){this.m=e}function Ib(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e}function Bb(e){return e}function _b(e){e.divRemTo(this.m,null,e)}function Rb(e,t,r){e.multiplyTo(t,r),this.reduce(r)}function kb(e,t){e.squareTo(t),this.reduce(t)}Aa.prototype.convert=Ib,Aa.prototype.revert=Bb,Aa.prototype.reduce=_b,Aa.prototype.mulTo=Rb,Aa.prototype.sqrTo=kb;function Nb(){if(this.t<1)return 0;var e=this.data[0];if((e&1)==0)return 0;var t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function Ia(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function Lb(e){var t=fe();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(N.ZERO)>0&&this.m.subTo(t,t),t}function Ub(e){var t=fe();return e.copyTo(t),this.reduce(t),t}function Db(e){for(;e.t<=this.mt2;)e.data[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=e.data[t]&32767,a=r*this.mpl+((r*this.mph+(e.data[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(r=t+this.m.t,e.data[r]+=this.m.am(0,a,e,t,0,this.m.t);e.data[r]>=e.DV;)e.data[r]-=e.DV,e.data[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function Pb(e,t){e.squareTo(t),this.reduce(t)}function Ob(e,t,r){e.multiplyTo(t,r),this.reduce(r)}Ia.prototype.convert=Lb,Ia.prototype.revert=Ub,Ia.prototype.reduce=Db,Ia.prototype.mulTo=Ob,Ia.prototype.sqrTo=Pb;function Fb(){return(this.t>0?this.data[0]&1:this.s)==0}function Mb(e,t){if(e>4294967295||e<1)return N.ONE;var r=fe(),a=fe(),n=t.convert(this),s=nl(e)-1;for(n.copyTo(r);--s>=0;)if(t.sqrTo(r,a),(e&1<<s)>0)t.mulTo(a,n,r);else{var i=r;r=a,a=i}return t.revert(r)}function Vb(e,t){var r;return e<256||t.isEven()?r=new Aa(t):r=new Ia(t),this.exp(e,r)}N.prototype.copyTo=lb,N.prototype.fromInt=ub,N.prototype.fromString=pb,N.prototype.clamp=db,N.prototype.dlShiftTo=xb,N.prototype.drShiftTo=yb,N.prototype.lShiftTo=bb,N.prototype.rShiftTo=Eb,N.prototype.subTo=Cb,N.prototype.multiplyTo=Sb,N.prototype.squareTo=Tb,N.prototype.divRemTo=wb,N.prototype.invDigit=Nb,N.prototype.isEven=Fb,N.prototype.exp=Mb,N.prototype.toString=fb,N.prototype.negate=mb,N.prototype.abs=hb,N.prototype.compareTo=vb,N.prototype.bitLength=gb,N.prototype.mod=Ab,N.prototype.modPowInt=Vb,N.ZERO=oa(0),N.ONE=oa(1);function qb(){var e=fe();return this.copyTo(e),e}function jb(){if(this.s<0){if(this.t==1)return this.data[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this.data[0];if(this.t==0)return 0}return(this.data[1]&(1<<32-this.DB)-1)<<this.DB|this.data[0]}function Kb(){return this.t==0?this.s:this.data[0]<<24>>24}function zb(){return this.t==0?this.s:this.data[0]<<16>>16}function Hb(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function $b(){return this.s<0?-1:this.t<=0||this.t==1&&this.data[0]<=0?0:1}function Gb(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),a=oa(r),n=fe(),s=fe(),i="";for(this.divRemTo(a,n,s);n.signum()>0;)i=(r+s.intValue()).toString(e).substr(1)+i,n.divRemTo(a,n,s);return s.intValue().toString(e)+i}function Qb(e,t){this.fromInt(0),t==null&&(t=10);for(var r=this.chunkSize(t),a=Math.pow(t,r),n=!1,s=0,i=0,o=0;o<e.length;++o){var c=r0(e,o);if(c<0){e.charAt(o)=="-"&&this.signum()==0&&(n=!0);continue}i=t*i+c,++s>=r&&(this.dMultiply(a),this.dAddOffset(i,0),s=0,i=0)}s>0&&(this.dMultiply(Math.pow(t,s)),this.dAddOffset(i,0)),n&&N.ZERO.subTo(this,this)}function Wb(e,t,r){if(typeof t=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(N.ONE.shiftLeft(e-1),Hu,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(N.ONE.shiftLeft(e-1),this);else{var a=new Array,n=e&7;a.length=(e>>3)+1,t.nextBytes(a),n>0?a[0]&=(1<<n)-1:a[0]=0,this.fromString(a,256)}}function Yb(){var e=this.t,t=new Array;t[0]=this.s;var r=this.DB-e*this.DB%8,a,n=0;if(e-- >0)for(r<this.DB&&(a=this.data[e]>>r)!=(this.s&this.DM)>>r&&(t[n++]=a|this.s<<this.DB-r);e>=0;)r<8?(a=(this.data[e]&(1<<r)-1)<<8-r,a|=this.data[--e]>>(r+=this.DB-8)):(a=this.data[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),(a&128)!=0&&(a|=-256),n==0&&(this.s&128)!=(a&128)&&++n,(n>0||a!=this.s)&&(t[n++]=a);return t}function Xb(e){return this.compareTo(e)==0}function Jb(e){return this.compareTo(e)<0?this:e}function Zb(e){return this.compareTo(e)>0?this:e}function eE(e,t,r){var a,n,s=Math.min(e.t,this.t);for(a=0;a<s;++a)r.data[a]=t(this.data[a],e.data[a]);if(e.t<this.t){for(n=e.s&this.DM,a=s;a<this.t;++a)r.data[a]=t(this.data[a],n);r.t=this.t}else{for(n=this.s&this.DM,a=s;a<e.t;++a)r.data[a]=t(n,e.data[a]);r.t=e.t}r.s=t(this.s,e.s),r.clamp()}function tE(e,t){return e&t}function aE(e){var t=fe();return this.bitwiseTo(e,tE,t),t}function Hu(e,t){return e|t}function rE(e){var t=fe();return this.bitwiseTo(e,Hu,t),t}function n0(e,t){return e^t}function nE(e){var t=fe();return this.bitwiseTo(e,n0,t),t}function i0(e,t){return e&~t}function iE(e){var t=fe();return this.bitwiseTo(e,i0,t),t}function sE(){for(var e=fe(),t=0;t<this.t;++t)e.data[t]=this.DM&~this.data[t];return e.t=this.t,e.s=~this.s,e}function oE(e){var t=fe();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t}function cE(e){var t=fe();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t}function lE(e){if(e==0)return-1;var t=0;return(e&65535)==0&&(e>>=16,t+=16),(e&255)==0&&(e>>=8,t+=8),(e&15)==0&&(e>>=4,t+=4),(e&3)==0&&(e>>=2,t+=2),(e&1)==0&&++t,t}function uE(){for(var e=0;e<this.t;++e)if(this.data[e]!=0)return e*this.DB+lE(this.data[e]);return this.s<0?this.t*this.DB:-1}function pE(e){for(var t=0;e!=0;)e&=e-1,++t;return t}function dE(){for(var e=0,t=this.s&this.DM,r=0;r<this.t;++r)e+=pE(this.data[r]^t);return e}function fE(e){var t=Math.floor(e/this.DB);return t>=this.t?this.s!=0:(this.data[t]&1<<e%this.DB)!=0}function mE(e,t){var r=N.ONE.shiftLeft(e);return this.bitwiseTo(r,t,r),r}function hE(e){return this.changeBit(e,Hu)}function vE(e){return this.changeBit(e,i0)}function gE(e){return this.changeBit(e,n0)}function xE(e,t){for(var r=0,a=0,n=Math.min(e.t,this.t);r<n;)a+=this.data[r]+e.data[r],t.data[r++]=a&this.DM,a>>=this.DB;if(e.t<this.t){for(a+=e.s;r<this.t;)a+=this.data[r],t.data[r++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;r<e.t;)a+=e.data[r],t.data[r++]=a&this.DM,a>>=this.DB;a+=e.s}t.s=a<0?-1:0,a>0?t.data[r++]=a:a<-1&&(t.data[r++]=this.DV+a),t.t=r,t.clamp()}function yE(e){var t=fe();return this.addTo(e,t),t}function bE(e){var t=fe();return this.subTo(e,t),t}function EE(e){var t=fe();return this.multiplyTo(e,t),t}function CE(){var e=fe();return this.squareTo(e),e}function SE(e){var t=fe();return this.divRemTo(e,t,null),t}function TE(e){var t=fe();return this.divRemTo(e,null,t),t}function wE(e){var t=fe(),r=fe();return this.divRemTo(e,t,r),new Array(t,r)}function AE(e){this.data[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()}function IE(e,t){if(e!=0){for(;this.t<=t;)this.data[this.t++]=0;for(this.data[t]+=e;this.data[t]>=this.DV;)this.data[t]-=this.DV,++t>=this.t&&(this.data[this.t++]=0),++this.data[t]}}function fc(){}function s0(e){return e}function BE(e,t,r){e.multiplyTo(t,r)}function _E(e,t){e.squareTo(t)}fc.prototype.convert=s0,fc.prototype.revert=s0,fc.prototype.mulTo=BE,fc.prototype.sqrTo=_E;function RE(e){return this.exp(e,new fc)}function kE(e,t,r){var a=Math.min(this.t+e.t,t);for(r.s=0,r.t=a;a>0;)r.data[--a]=0;var n;for(n=r.t-this.t;a<n;++a)r.data[a+this.t]=this.am(0,e.data[a],r,a,0,this.t);for(n=Math.min(e.t,t);a<n;++a)this.am(0,e.data[a],r,a,0,t-a);r.clamp()}function NE(e,t,r){--t;var a=r.t=this.t+e.t-t;for(r.s=0;--a>=0;)r.data[a]=0;for(a=Math.max(t-this.t,0);a<e.t;++a)r.data[this.t+a-t]=this.am(t-a,e.data[a],r,0,0,this.t+a-t);r.clamp(),r.drShiftTo(1,r)}function $a(e){this.r2=fe(),this.q3=fe(),N.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}function LE(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=fe();return e.copyTo(t),this.reduce(t),t}function UE(e){return e}function DE(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)}function PE(e,t){e.squareTo(t),this.reduce(t)}function OE(e,t,r){e.multiplyTo(t,r),this.reduce(r)}$a.prototype.convert=LE,$a.prototype.revert=UE,$a.prototype.reduce=DE,$a.prototype.mulTo=OE,$a.prototype.sqrTo=PE;function FE(e,t){var r=e.bitLength(),a,n=oa(1),s;if(r<=0)return n;r<18?a=1:r<48?a=3:r<144?a=4:r<768?a=5:a=6,r<8?s=new Aa(t):t.isEven()?s=new $a(t):s=new Ia(t);var i=new Array,o=3,c=a-1,l=(1<<a)-1;if(i[1]=s.convert(this),a>1){var u=fe();for(s.sqrTo(i[1],u);o<=l;)i[o]=fe(),s.mulTo(u,i[o-2],i[o]),o+=2}var p=e.t-1,f,x=!0,m=fe(),y;for(r=nl(e.data[p])-1;p>=0;){for(r>=c?f=e.data[p]>>r-c&l:(f=(e.data[p]&(1<<r+1)-1)<<c-r,p>0&&(f|=e.data[p-1]>>this.DB+r-c)),o=a;(f&1)==0;)f>>=1,--o;if((r-=o)<0&&(r+=this.DB,--p),x)i[f].copyTo(n),x=!1;else{for(;o>1;)s.sqrTo(n,m),s.sqrTo(m,n),o-=2;o>0?s.sqrTo(n,m):(y=n,n=m,m=y),s.mulTo(m,i[f],n)}for(;p>=0&&(e.data[p]&1<<r)==0;)s.sqrTo(n,m),y=n,n=m,m=y,--r<0&&(r=this.DB-1,--p)}return s.revert(n)}function ME(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var a=t;t=r,r=a}var n=t.getLowestSetBit(),s=r.getLowestSetBit();if(s<0)return t;for(n<s&&(s=n),s>0&&(t.rShiftTo(s,t),r.rShiftTo(s,r));t.signum()>0;)(n=t.getLowestSetBit())>0&&t.rShiftTo(n,t),(n=r.getLowestSetBit())>0&&r.rShiftTo(n,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return s>0&&r.lShiftTo(s,r),r}function VE(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(t==0)r=this.data[0]%e;else for(var a=this.t-1;a>=0;--a)r=(t*r+this.data[a])%e;return r}function qE(e){if(this.signum()==0)return N.ZERO;var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return N.ZERO;for(var r=e.clone(),a=this.clone(),n=oa(1),s=oa(0),i=oa(0),o=oa(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),t?((!n.isEven()||!s.isEven())&&(n.addTo(this,n),s.subTo(e,s)),n.rShiftTo(1,n)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);for(;a.isEven();)a.rShiftTo(1,a),t?((!i.isEven()||!o.isEven())&&(i.addTo(this,i),o.subTo(e,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);r.compareTo(a)>=0?(r.subTo(a,r),t&&n.subTo(i,n),s.subTo(o,s)):(a.subTo(r,a),t&&i.subTo(n,i),o.subTo(s,o))}if(a.compareTo(N.ONE)!=0)return N.ZERO;if(o.compareTo(e)>=0)return o.subtract(e);if(o.signum()<0)o.addTo(e,o);else return o;return o.signum()<0?o.add(e):o}var Vt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],jE=(1<<26)/Vt[Vt.length-1];function KE(e){var t,r=this.abs();if(r.t==1&&r.data[0]<=Vt[Vt.length-1]){for(t=0;t<Vt.length;++t)if(r.data[0]==Vt[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<Vt.length;){for(var a=Vt[t],n=t+1;n<Vt.length&&a<jE;)a*=Vt[n++];for(a=r.modInt(a);t<n;)if(a%Vt[t++]==0)return!1}return r.millerRabin(e)}function zE(e){var t=this.subtract(N.ONE),r=t.getLowestSetBit();if(r<=0)return!1;for(var a=t.shiftRight(r),n=HE(),s,i=0;i<e;++i){do s=new N(this.bitLength(),n);while(s.compareTo(N.ONE)<=0||s.compareTo(t)>=0);var o=s.modPow(a,this);if(o.compareTo(N.ONE)!=0&&o.compareTo(t)!=0){for(var c=1;c++<r&&o.compareTo(t)!=0;)if(o=o.modPowInt(2,this),o.compareTo(N.ONE)==0)return!1;if(o.compareTo(t)!=0)return!1}}return!0}function HE(){return{nextBytes:function(e){for(var t=0;t<e.length;++t)e[t]=Math.floor(Math.random()*256)}}}N.prototype.chunkSize=Hb,N.prototype.toRadix=Gb,N.prototype.fromRadix=Qb,N.prototype.fromNumber=Wb,N.prototype.bitwiseTo=eE,N.prototype.changeBit=mE,N.prototype.addTo=xE,N.prototype.dMultiply=AE,N.prototype.dAddOffset=IE,N.prototype.multiplyLowerTo=kE,N.prototype.multiplyUpperTo=NE,N.prototype.modInt=VE,N.prototype.millerRabin=zE,N.prototype.clone=qb,N.prototype.intValue=jb,N.prototype.byteValue=Kb,N.prototype.shortValue=zb,N.prototype.signum=$b,N.prototype.toByteArray=Yb,N.prototype.equals=Xb,N.prototype.min=Jb,N.prototype.max=Zb,N.prototype.and=aE,N.prototype.or=rE,N.prototype.xor=nE,N.prototype.andNot=iE,N.prototype.not=sE,N.prototype.shiftLeft=oE,N.prototype.shiftRight=cE,N.prototype.getLowestSetBit=uE,N.prototype.bitCount=dE,N.prototype.testBit=fE,N.prototype.setBit=hE,N.prototype.clearBit=vE,N.prototype.flipBit=gE,N.prototype.add=yE,N.prototype.subtract=bE,N.prototype.multiply=EE,N.prototype.divide=SE,N.prototype.remainder=TE,N.prototype.divideAndRemainder=wE,N.prototype.modPow=FE,N.prototype.modInverse=qE,N.prototype.pow=RE,N.prototype.gcd=ME,N.prototype.isProbablePrime=KE,N.prototype.square=CE;var $t=te,o0=$t.sha1=$t.sha1||{};$t.md.sha1=$t.md.algorithms.sha1=o0,o0.create=function(){c0||$E();var e=null,t=$t.util.createBuffer(),r=new Array(80),a={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8};return a.start=function(){a.messageLength=0,a.fullMessageLength=a.messageLength64=[];for(var n=a.messageLengthSize/4,s=0;s<n;++s)a.fullMessageLength.push(0);return t=$t.util.createBuffer(),e={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878,h4:3285377520},a},a.start(),a.update=function(n,s){s==="utf8"&&(n=$t.util.encodeUtf8(n));var i=n.length;a.messageLength+=i,i=[i/4294967296>>>0,i>>>0];for(var o=a.fullMessageLength.length-1;o>=0;--o)a.fullMessageLength[o]+=i[1],i[1]=i[0]+(a.fullMessageLength[o]/4294967296>>>0),a.fullMessageLength[o]=a.fullMessageLength[o]>>>0,i[0]=i[1]/4294967296>>>0;return t.putBytes(n),l0(e,r,t),(t.read>2048||t.length()===0)&&t.compact(),a},a.digest=function(){var n=$t.util.createBuffer();n.putBytes(t.bytes());var s=a.fullMessageLength[a.fullMessageLength.length-1]+a.messageLengthSize,i=s&a.blockLength-1;n.putBytes($u.substr(0,a.blockLength-i));for(var o,c,l=a.fullMessageLength[0]*8,u=0;u<a.fullMessageLength.length-1;++u)o=a.fullMessageLength[u+1]*8,c=o/4294967296>>>0,l+=c,n.putInt32(l>>>0),l=o>>>0;n.putInt32(l);var p={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4};l0(p,r,n);var f=$t.util.createBuffer();return f.putInt32(p.h0),f.putInt32(p.h1),f.putInt32(p.h2),f.putInt32(p.h3),f.putInt32(p.h4),f},a};var $u=null,c0=!1;function $E(){$u="\x80",$u+=$t.util.fillString("\0",64),c0=!0}function l0(e,t,r){for(var a,n,s,i,o,c,l,u,p=r.length();p>=64;){for(n=e.h0,s=e.h1,i=e.h2,o=e.h3,c=e.h4,u=0;u<16;++u)a=r.getInt32(),t[u]=a,l=o^s&(i^o),a=(n<<5|n>>>27)+l+c+1518500249+a,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=a;for(;u<20;++u)a=t[u-3]^t[u-8]^t[u-14]^t[u-16],a=a<<1|a>>>31,t[u]=a,l=o^s&(i^o),a=(n<<5|n>>>27)+l+c+1518500249+a,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=a;for(;u<32;++u)a=t[u-3]^t[u-8]^t[u-14]^t[u-16],a=a<<1|a>>>31,t[u]=a,l=s^i^o,a=(n<<5|n>>>27)+l+c+1859775393+a,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=a;for(;u<40;++u)a=t[u-6]^t[u-16]^t[u-28]^t[u-32],a=a<<2|a>>>30,t[u]=a,l=s^i^o,a=(n<<5|n>>>27)+l+c+1859775393+a,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=a;for(;u<60;++u)a=t[u-6]^t[u-16]^t[u-28]^t[u-32],a=a<<2|a>>>30,t[u]=a,l=s&i|o&(s^i),a=(n<<5|n>>>27)+l+c+2400959708+a,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=a;for(;u<80;++u)a=t[u-6]^t[u-16]^t[u-28]^t[u-32],a=a<<2|a>>>30,t[u]=a,l=s^i^o,a=(n<<5|n>>>27)+l+c+3395469782+a,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=a;e.h0=e.h0+n|0,e.h1=e.h1+s|0,e.h2=e.h2+i|0,e.h3=e.h3+o|0,e.h4=e.h4+c|0,p-=64}}var Gt=te,u0=Gt.pkcs1=Gt.pkcs1||{};u0.encode_rsa_oaep=function(e,t,r){var a,n,s,i;typeof r=="string"?(a=r,n=arguments[3]||void 0,s=arguments[4]||void 0):r&&(a=r.label||void 0,n=r.seed||void 0,s=r.md||void 0,r.mgf1&&r.mgf1.md&&(i=r.mgf1.md)),s?s.start():s=Gt.md.sha1.create(),i||(i=s);var o=Math.ceil(e.n.bitLength()/8),c=o-2*s.digestLength-2;if(t.length>c){var l=new Error("RSAES-OAEP input message length is too long.");throw l.length=t.length,l.maxLength=c,l}a||(a=""),s.update(a,"raw");for(var u=s.digest(),p="",f=c-t.length,x=0;x<f;x++)p+="\0";var m=u.getBytes()+p+""+t;if(!n)n=Gt.random.getBytes(s.digestLength);else if(n.length!==s.digestLength){var l=new Error("Invalid RSAES-OAEP seed. The seed length must match the digest length.");throw l.seedLength=n.length,l.digestLength=s.digestLength,l}var y=il(n,o-s.digestLength-1,i),b=Gt.util.xorBytes(m,y,m.length),S=il(b,s.digestLength,i),B=Gt.util.xorBytes(n,S,n.length);return"\0"+B+b},u0.decode_rsa_oaep=function(e,t,r){var a,n,s;typeof r=="string"?(a=r,n=arguments[3]||void 0):r&&(a=r.label||void 0,n=r.md||void 0,r.mgf1&&r.mgf1.md&&(s=r.mgf1.md));var i=Math.ceil(e.n.bitLength()/8);if(t.length!==i){var b=new Error("RSAES-OAEP encoded message length is invalid.");throw b.length=t.length,b.expectedLength=i,b}if(n===void 0?n=Gt.md.sha1.create():n.start(),s||(s=n),i<2*n.digestLength+2)throw new Error("RSAES-OAEP key is too short for the hash function.");a||(a=""),n.update(a,"raw");for(var o=n.digest().getBytes(),c=t.charAt(0),l=t.substring(1,n.digestLength+1),u=t.substring(1+n.digestLength),p=il(u,n.digestLength,s),f=Gt.util.xorBytes(l,p,l.length),x=il(f,i-n.digestLength-1,s),m=Gt.util.xorBytes(u,x,u.length),y=m.substring(0,n.digestLength),b=c!=="\0",S=0;S<n.digestLength;++S)b|=o.charAt(S)!==y.charAt(S);for(var B=1,_=n.digestLength,P=n.digestLength;P<m.length;P++){var U=m.charCodeAt(P),k=U&1^1,H=B?65534:0;b|=U&H,B=B&k,_+=B}if(b||m.charCodeAt(_)!==1)throw new Error("Invalid RSAES-OAEP padding.");return m.substring(_+1)};function il(e,t,r){r||(r=Gt.md.sha1.create());for(var a="",n=Math.ceil(t/r.digestLength),s=0;s<n;++s){var i=String.fromCharCode(s>>24&255,s>>16&255,s>>8&255,s&255);r.start(),r.update(e+i),a+=r.digest().getBytes()}return a.substring(0,t)}var ca=te;(function(){if(ca.prime){ca.prime;return}var e=ca.prime=ca.prime||{},t=ca.jsbn.BigInteger,r=[6,4,2,4,2,4,6,2],a=new t(null);a.fromInt(30);var n=function(p,f){return p|f};e.generateProbablePrime=function(p,f,x){typeof f=="function"&&(x=f,f={}),f=f||{};var m=f.algorithm||"PRIMEINC";typeof m=="string"&&(m={name:m}),m.options=m.options||{};var y=f.prng||ca.random,b={nextBytes:function(S){for(var B=y.getBytesSync(S.length),_=0;_<S.length;++_)S[_]=B.charCodeAt(_)}};if(m.name==="PRIMEINC")return s(p,b,m.options,x);throw new Error("Invalid prime generation algorithm: "+m.name)};function s(p,f,x,m){return"workers"in x?c(p,f,x,m):i(p,f,x,m)}function i(p,f,x,m){var y=l(p,f),b=0,S=u(y.bitLength());"millerRabinTests"in x&&(S=x.millerRabinTests);var B=10;"maxBlockTime"in x&&(B=x.maxBlockTime),o(y,p,f,b,S,B,m)}function o(p,f,x,m,y,b,S){var B=+new Date;do{if(p.bitLength()>f&&(p=l(f,x)),p.isProbablePrime(y))return S(null,p);p.dAddOffset(r[m++%8],0)}while(b<0||+new Date-B<b);ca.util.setImmediate(function(){o(p,f,x,m,y,b,S)})}function c(p,f,x,m){if(typeof Worker>"u")return i(p,f,x,m);var y=l(p,f),b=x.workers,S=x.workLoad||100,B=S*30/8,_=x.workerScript||"forge/prime.worker.js";if(b===-1)return ca.util.estimateCores(function(U,k){U&&(k=2),b=k-1,P()});P();function P(){b=Math.max(1,b);for(var U=[],k=0;k<b;++k)U[k]=new Worker(_);for(var k=0;k<b;++k)U[k].addEventListener("message",G);var H=!1;function G(Z){if(!H){var ce=Z.data;if(ce.found){for(var pe=0;pe<U.length;++pe)U[pe].terminate();return H=!0,m(null,new t(ce.prime,16))}y.bitLength()>p&&(y=l(p,f));var he=y.toString(16);Z.target.postMessage({hex:he,workLoad:S}),y.dAddOffset(B,0)}}}}function l(p,f){var x=new t(p,f),m=p-1;return x.testBit(m)||x.bitwiseTo(t.ONE.shiftLeft(m),n,x),x.dAddOffset(31-x.mod(a).byteValue(),0),x}function u(p){return p<=100?27:p<=150?18:p<=200?15:p<=250?12:p<=300?9:p<=350?8:p<=400?7:p<=500?6:p<=600?5:p<=800?4:p<=1250?3:2}})();var Q=te;if(typeof ve>"u")var ve=Q.jsbn.BigInteger;var Gu=Q.util.isNodejs?er:null,I=Q.asn1,Lt=Q.util;Q.pki=Q.pki||{},Q.pki.rsa=Q.rsa=Q.rsa||{};var J=Q.pki,GE=[6,4,2,4,2,4,6,2],QE={name:"PrivateKeyInfo",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:I.Class.UNIVERSAL,type:I.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:I.Class.UNIVERSAL,type:I.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},WE={name:"RSAPrivateKey",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},YE={name:"RSAPublicKey",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},XE=Q.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:I.Class.UNIVERSAL,type:I.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:I.Class.UNIVERSAL,type:I.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},JE={name:"DigestInfo",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm.algorithmIdentifier",tagClass:I.Class.UNIVERSAL,type:I.Type.OID,constructed:!1,capture:"algorithmIdentifier"},{name:"DigestInfo.DigestAlgorithm.parameters",tagClass:I.Class.UNIVERSAL,type:I.Type.NULL,capture:"parameters",optional:!0,constructed:!1}]},{name:"DigestInfo.digest",tagClass:I.Class.UNIVERSAL,type:I.Type.OCTETSTRING,constructed:!1,capture:"digest"}]},ZE=function(e){var t;if(e.algorithm in J.oids)t=J.oids[e.algorithm];else{var r=new Error("Unknown message digest algorithm.");throw r.algorithm=e.algorithm,r}var a=I.oidToDer(t).getBytes(),n=I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[]),s=I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[]);s.value.push(I.create(I.Class.UNIVERSAL,I.Type.OID,!1,a)),s.value.push(I.create(I.Class.UNIVERSAL,I.Type.NULL,!1,""));var i=I.create(I.Class.UNIVERSAL,I.Type.OCTETSTRING,!1,e.digest().getBytes());return n.value.push(s),n.value.push(i),I.toDer(n).getBytes()},p0=function(e,t,r){if(r)return e.modPow(t.e,t.n);if(!t.p||!t.q)return e.modPow(t.d,t.n);t.dP||(t.dP=t.d.mod(t.p.subtract(ve.ONE))),t.dQ||(t.dQ=t.d.mod(t.q.subtract(ve.ONE))),t.qInv||(t.qInv=t.q.modInverse(t.p));var a;do a=new ve(Q.util.bytesToHex(Q.random.getBytes(t.n.bitLength()/8)),16);while(a.compareTo(t.n)>=0||!a.gcd(t.n).equals(ve.ONE));e=e.multiply(a.modPow(t.e,t.n)).mod(t.n);for(var n=e.mod(t.p).modPow(t.dP,t.p),s=e.mod(t.q).modPow(t.dQ,t.q);n.compareTo(s)<0;)n=n.add(t.p);var i=n.subtract(s).multiply(t.qInv).mod(t.p).multiply(t.q).add(s);return i=i.multiply(a.modInverse(t.n)).mod(t.n),i};J.rsa.encrypt=function(e,t,r){var a=r,n,s=Math.ceil(t.n.bitLength()/8);r!==!1&&r!==!0?(a=r===2,n=d0(e,t,r)):(n=Q.util.createBuffer(),n.putBytes(e));for(var i=new ve(n.toHex(),16),o=p0(i,t,a),c=o.toString(16),l=Q.util.createBuffer(),u=s-Math.ceil(c.length/2);u>0;)l.putByte(0),--u;return l.putBytes(Q.util.hexToBytes(c)),l.getBytes()},J.rsa.decrypt=function(e,t,r,a){var n=Math.ceil(t.n.bitLength()/8);if(e.length!==n){var s=new Error("Encrypted message length is invalid.");throw s.length=e.length,s.expected=n,s}var i=new ve(Q.util.createBuffer(e).toHex(),16);if(i.compareTo(t.n)>=0)throw new Error("Encrypted message is invalid.");for(var o=p0(i,t,r),c=o.toString(16),l=Q.util.createBuffer(),u=n-Math.ceil(c.length/2);u>0;)l.putByte(0),--u;return l.putBytes(Q.util.hexToBytes(c)),a!==!1?sl(l.getBytes(),t,r):l.getBytes()},J.rsa.createKeyPairGenerationState=function(e,t,r){typeof e=="string"&&(e=parseInt(e,10)),e=e||2048,r=r||{};var a=r.prng||Q.random,n={nextBytes:function(o){for(var c=a.getBytesSync(o.length),l=0;l<o.length;++l)o[l]=c.charCodeAt(l)}},s=r.algorithm||"PRIMEINC",i;if(s==="PRIMEINC")i={algorithm:s,state:0,bits:e,rng:n,eInt:t||65537,e:new ve(null),p:null,q:null,qBits:e>>1,pBits:e-(e>>1),pqState:0,num:null,keys:null},i.e.fromInt(i.eInt);else throw new Error("Invalid key generation algorithm: "+s);return i},J.rsa.stepKeyPairGenerationState=function(e,t){"algorithm"in e||(e.algorithm="PRIMEINC");var r=new ve(null);r.fromInt(30);for(var a=0,n=function(p,f){return p|f},s=+new Date,i,o=0;e.keys===null&&(t<=0||o<t);){if(e.state===0){var c=e.p===null?e.pBits:e.qBits,l=c-1;e.pqState===0?(e.num=new ve(c,e.rng),e.num.testBit(l)||e.num.bitwiseTo(ve.ONE.shiftLeft(l),n,e.num),e.num.dAddOffset(31-e.num.mod(r).byteValue(),0),a=0,++e.pqState):e.pqState===1?e.num.bitLength()>c?e.pqState=0:e.num.isProbablePrime(tC(e.num.bitLength()))?++e.pqState:e.num.dAddOffset(GE[a++%8],0):e.pqState===2?e.pqState=e.num.subtract(ve.ONE).gcd(e.e).compareTo(ve.ONE)===0?3:0:e.pqState===3&&(e.pqState=0,e.p===null?e.p=e.num:e.q=e.num,e.p!==null&&e.q!==null&&++e.state,e.num=null)}else if(e.state===1)e.p.compareTo(e.q)<0&&(e.num=e.p,e.p=e.q,e.q=e.num),++e.state;else if(e.state===2)e.p1=e.p.subtract(ve.ONE),e.q1=e.q.subtract(ve.ONE),e.phi=e.p1.multiply(e.q1),++e.state;else if(e.state===3)e.phi.gcd(e.e).compareTo(ve.ONE)===0?++e.state:(e.p=null,e.q=null,e.state=0);else if(e.state===4)e.n=e.p.multiply(e.q),e.n.bitLength()===e.bits?++e.state:(e.q=null,e.state=0);else if(e.state===5){var u=e.e.modInverse(e.phi);e.keys={privateKey:J.rsa.setPrivateKey(e.n,e.e,u,e.p,e.q,u.mod(e.p1),u.mod(e.q1),e.q.modInverse(e.p)),publicKey:J.rsa.setPublicKey(e.n,e.e)}}i=+new Date,o+=i-s,s=i}return e.keys!==null},J.rsa.generateKeyPair=function(e,t,r,a){if(arguments.length===1?typeof e=="object"?(r=e,e=void 0):typeof e=="function"&&(a=e,e=void 0):arguments.length===2?typeof e=="number"?typeof t=="function"?(a=t,t=void 0):typeof t!="number"&&(r=t,t=void 0):(r=e,a=t,e=void 0,t=void 0):arguments.length===3&&(typeof t=="number"?typeof r=="function"&&(a=r,r=void 0):(a=r,r=t,t=void 0)),r=r||{},e===void 0&&(e=r.bits||2048),t===void 0&&(t=r.e||65537),!Q.options.usePureJavaScript&&!r.prng&&e>=256&&e<=16384&&(t===65537||t===3)){if(a){if(f0("generateKeyPair"))return Gu.generateKeyPair("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},function(o,c,l){if(o)return a(o);a(null,{privateKey:J.privateKeyFromPem(l),publicKey:J.publicKeyFromPem(c)})});if(m0("generateKey")&&m0("exportKey"))return Lt.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:v0(t),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(o){return Lt.globalScope.crypto.subtle.exportKey("pkcs8",o.privateKey)}).then(void 0,function(o){a(o)}).then(function(o){if(o){var c=J.privateKeyFromAsn1(I.fromDer(Q.util.createBuffer(o)));a(null,{privateKey:c,publicKey:J.setRsaPublicKey(c.n,c.e)})}});if(h0("generateKey")&&h0("exportKey")){var n=Lt.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:v0(t),hash:{name:"SHA-256"}},!0,["sign","verify"]);n.oncomplete=function(o){var c=o.target.result,l=Lt.globalScope.msCrypto.subtle.exportKey("pkcs8",c.privateKey);l.oncomplete=function(u){var p=u.target.result,f=J.privateKeyFromAsn1(I.fromDer(Q.util.createBuffer(p)));a(null,{privateKey:f,publicKey:J.setRsaPublicKey(f.n,f.e)})},l.onerror=function(u){a(u)}},n.onerror=function(o){a(o)};return}}else if(f0("generateKeyPairSync")){var s=Gu.generateKeyPairSync("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:J.privateKeyFromPem(s.privateKey),publicKey:J.publicKeyFromPem(s.publicKey)}}}var i=J.rsa.createKeyPairGenerationState(e,t,r);if(!a)return J.rsa.stepKeyPairGenerationState(i,0),i.keys;eC(i,r,a)},J.setRsaPublicKey=J.rsa.setPublicKey=function(e,t){var r={n:e,e:t};return r.encrypt=function(a,n,s){if(typeof n=="string"?n=n.toUpperCase():n===void 0&&(n="RSAES-PKCS1-V1_5"),n==="RSAES-PKCS1-V1_5")n={encode:function(o,c,l){return d0(o,c,2).getBytes()}};else if(n==="RSA-OAEP"||n==="RSAES-OAEP")n={encode:function(o,c){return Q.pkcs1.encode_rsa_oaep(c,o,s)}};else if(["RAW","NONE","NULL",null].indexOf(n)!==-1)n={encode:function(o){return o}};else if(typeof n=="string")throw new Error('Unsupported encryption scheme: "'+n+'".');var i=n.encode(a,r,!0);return J.rsa.encrypt(i,r,!0)},r.verify=function(a,n,s,i){typeof s=="string"?s=s.toUpperCase():s===void 0&&(s="RSASSA-PKCS1-V1_5"),i===void 0&&(i={_parseAllDigestBytes:!0,_skipPaddingChecks:!1}),"_parseAllDigestBytes"in i||(i._parseAllDigestBytes=!0),"_skipPaddingChecks"in i||(i._skipPaddingChecks=!1),s==="RSASSA-PKCS1-V1_5"?s={verify:function(c,l){l=sl(l,r,!0,void 0,i);var u=I.fromDer(l,{parseAllBytes:i._parseAllDigestBytes}),p={},f=[];if(!I.validate(u,JE,p,f)||u.value.length!==2){var x=new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.");throw x.errors=f,x}var m=I.derToOid(p.algorithmIdentifier);if(!(m===Q.oids.md2||m===Q.oids.md5||m===Q.oids.sha1||m===Q.oids.sha224||m===Q.oids.sha256||m===Q.oids.sha384||m===Q.oids.sha512||m===Q.oids["sha512-224"]||m===Q.oids["sha512-256"])){var x=new Error("Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.");throw x.oid=m,x}if((m===Q.oids.md2||m===Q.oids.md5)&&!("parameters"in p))throw new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifier NULL parameters.");return c===p.digest}}:(s==="NONE"||s==="NULL"||s===null)&&(s={verify:function(c,l){return l=sl(l,r,!0,void 0,i),c===l}});var o=J.rsa.decrypt(n,r,!0,!1);return s.verify(a,o,r.n.bitLength())},r},J.setRsaPrivateKey=J.rsa.setPrivateKey=function(e,t,r,a,n,s,i,o){var c={n:e,e:t,d:r,p:a,q:n,dP:s,dQ:i,qInv:o};return c.decrypt=function(l,u,p){typeof u=="string"?u=u.toUpperCase():u===void 0&&(u="RSAES-PKCS1-V1_5");var f=J.rsa.decrypt(l,c,!1,!1);if(u==="RSAES-PKCS1-V1_5")u={decode:sl};else if(u==="RSA-OAEP"||u==="RSAES-OAEP")u={decode:function(x,m){return Q.pkcs1.decode_rsa_oaep(m,x,p)}};else if(["RAW","NONE","NULL",null].indexOf(u)!==-1)u={decode:function(x){return x}};else throw new Error('Unsupported encryption scheme: "'+u+'".');return u.decode(f,c,!1)},c.sign=function(l,u){var p=!1;typeof u=="string"&&(u=u.toUpperCase()),u===void 0||u==="RSASSA-PKCS1-V1_5"?(u={encode:ZE},p=1):(u==="NONE"||u==="NULL"||u===null)&&(u={encode:function(){return l}},p=1);var f=u.encode(l,c.n.bitLength());return J.rsa.encrypt(f,c,p)},c},J.wrapRsaPrivateKey=function(e){return I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,I.integerToDer(0).getBytes()),I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.OID,!1,I.oidToDer(J.oids.rsaEncryption).getBytes()),I.create(I.Class.UNIVERSAL,I.Type.NULL,!1,"")]),I.create(I.Class.UNIVERSAL,I.Type.OCTETSTRING,!1,I.toDer(e).getBytes())])},J.privateKeyFromAsn1=function(e){var t={},r=[];if(I.validate(e,QE,t,r)&&(e=I.fromDer(Q.util.createBuffer(t.privateKey))),t={},r=[],!I.validate(e,WE,t,r)){var a=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw a.errors=r,a}var n,s,i,o,c,l,u,p;return n=Q.util.createBuffer(t.privateKeyModulus).toHex(),s=Q.util.createBuffer(t.privateKeyPublicExponent).toHex(),i=Q.util.createBuffer(t.privateKeyPrivateExponent).toHex(),o=Q.util.createBuffer(t.privateKeyPrime1).toHex(),c=Q.util.createBuffer(t.privateKeyPrime2).toHex(),l=Q.util.createBuffer(t.privateKeyExponent1).toHex(),u=Q.util.createBuffer(t.privateKeyExponent2).toHex(),p=Q.util.createBuffer(t.privateKeyCoefficient).toHex(),J.setRsaPrivateKey(new ve(n,16),new ve(s,16),new ve(i,16),new ve(o,16),new ve(c,16),new ve(l,16),new ve(u,16),new ve(p,16))},J.privateKeyToAsn1=J.privateKeyToRSAPrivateKey=function(e){return I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,I.integerToDer(0).getBytes()),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.n)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.e)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.d)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.p)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.q)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.dP)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.dQ)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.qInv))])},J.publicKeyFromAsn1=function(e){var t={},r=[];if(I.validate(e,XE,t,r)){var a=I.derToOid(t.publicKeyOid);if(a!==J.oids.rsaEncryption){var n=new Error("Cannot read public key. Unknown OID.");throw n.oid=a,n}e=t.rsaPublicKey}if(r=[],!I.validate(e,YE,t,r)){var n=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.");throw n.errors=r,n}var s=Q.util.createBuffer(t.publicKeyModulus).toHex(),i=Q.util.createBuffer(t.publicKeyExponent).toHex();return J.setRsaPublicKey(new ve(s,16),new ve(i,16))},J.publicKeyToAsn1=J.publicKeyToSubjectPublicKeyInfo=function(e){return I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.OID,!1,I.oidToDer(J.oids.rsaEncryption).getBytes()),I.create(I.Class.UNIVERSAL,I.Type.NULL,!1,"")]),I.create(I.Class.UNIVERSAL,I.Type.BITSTRING,!1,[J.publicKeyToRSAPublicKey(e)])])},J.publicKeyToRSAPublicKey=function(e){return I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.n)),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,Qt(e.e))])};function d0(e,t,r){var a=Q.util.createBuffer(),n=Math.ceil(t.n.bitLength()/8);if(e.length>n-11){var s=new Error("Message is too long for PKCS#1 v1.5 padding.");throw s.length=e.length,s.max=n-11,s}a.putByte(0),a.putByte(r);var i=n-3-e.length,o;if(r===0||r===1){o=r===0?0:255;for(var c=0;c<i;++c)a.putByte(o)}else for(;i>0;){for(var l=0,u=Q.random.getBytes(i),c=0;c<i;++c)o=u.charCodeAt(c),o===0?++l:a.putByte(o);i=l}return a.putByte(0),a.putBytes(e),a}function sl(e,t,r,a,n){var s=Math.ceil(t.n.bitLength()/8),i=Q.util.createBuffer(e),o=i.getByte(),c=i.getByte();if(o!==0||r&&c!==0&&c!==1||!r&&c!==2||r&&c===0&&typeof a>"u")throw new Error("Encryption block is invalid.");var l=0;if(c===0){l=s-3-a;for(var u=0;u<l;++u)if(i.getByte()!==0)throw new Error("Encryption block is invalid.")}else if(c===1){for(l=0;i.length()>1;){if(i.getByte()!==255){--i.read;break}++l}if(l<8&&!(n&&n._skipPaddingChecks))throw new Error("Encryption block is invalid.")}else if(c===2){for(l=0;i.length()>1;){if(i.getByte()===0){--i.read;break}++l}if(l<8&&!(n&&n._skipPaddingChecks))throw new Error("Encryption block is invalid.")}var p=i.getByte();if(p!==0||l!==s-3-i.length())throw new Error("Encryption block is invalid.");return i.getBytes()}function eC(e,t,r){typeof t=="function"&&(r=t,t={}),t=t||{};var a={algorithm:{name:t.algorithm||"PRIMEINC",options:{workers:t.workers||2,workLoad:t.workLoad||100,workerScript:t.workerScript}}};"prng"in t&&(a.prng=t.prng),n();function n(){s(e.pBits,function(o,c){if(o)return r(o);if(e.p=c,e.q!==null)return i(o,e.q);s(e.qBits,i)})}function s(o,c){Q.prime.generateProbablePrime(o,a,c)}function i(o,c){if(o)return r(o);if(e.q=c,e.p.compareTo(e.q)<0){var l=e.p;e.p=e.q,e.q=l}if(e.p.subtract(ve.ONE).gcd(e.e).compareTo(ve.ONE)!==0){e.p=null,n();return}if(e.q.subtract(ve.ONE).gcd(e.e).compareTo(ve.ONE)!==0){e.q=null,s(e.qBits,i);return}if(e.p1=e.p.subtract(ve.ONE),e.q1=e.q.subtract(ve.ONE),e.phi=e.p1.multiply(e.q1),e.phi.gcd(e.e).compareTo(ve.ONE)!==0){e.p=e.q=null,n();return}if(e.n=e.p.multiply(e.q),e.n.bitLength()!==e.bits){e.q=null,s(e.qBits,i);return}var u=e.e.modInverse(e.phi);e.keys={privateKey:J.rsa.setPrivateKey(e.n,e.e,u,e.p,e.q,u.mod(e.p1),u.mod(e.q1),e.q.modInverse(e.p)),publicKey:J.rsa.setPublicKey(e.n,e.e)},r(null,e.keys)}}function Qt(e){var t=e.toString(16);t[0]>="8"&&(t="00"+t);var r=Q.util.hexToBytes(t);return r.length>1&&(r.charCodeAt(0)===0&&(r.charCodeAt(1)&128)===0||r.charCodeAt(0)===255&&(r.charCodeAt(1)&128)===128)?r.substr(1):r}function tC(e){return e<=100?27:e<=150?18:e<=200?15:e<=250?12:e<=300?9:e<=350?8:e<=400?7:e<=500?6:e<=600?5:e<=800?4:e<=1250?3:2}function f0(e){return Q.util.isNodejs&&typeof Gu[e]=="function"}function m0(e){return typeof Lt.globalScope<"u"&&typeof Lt.globalScope.crypto=="object"&&typeof Lt.globalScope.crypto.subtle=="object"&&typeof Lt.globalScope.crypto.subtle[e]=="function"}function h0(e){return typeof Lt.globalScope<"u"&&typeof Lt.globalScope.msCrypto=="object"&&typeof Lt.globalScope.msCrypto.subtle=="object"&&typeof Lt.globalScope.msCrypto.subtle[e]=="function"}function v0(e){for(var t=Q.util.hexToBytes(e.toString(16)),r=new Uint8Array(t.length),a=0;a<t.length;++a)r[a]=t.charCodeAt(a);return r}var z=te;if(typeof aC>"u")var aC=z.jsbn.BigInteger;var R=z.asn1,ee=z.pki=z.pki||{};ee.pbe=z.pbe=z.pbe||{};var Ba=ee.oids,rC={name:"EncryptedPrivateKeyInfo",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:R.Class.UNIVERSAL,type:R.Type.OID,constructed:!1,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:R.Class.UNIVERSAL,type:R.Type.OCTETSTRING,constructed:!1,capture:"encryptedData"}]},nC={name:"PBES2Algorithms",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:R.Class.UNIVERSAL,type:R.Type.OID,constructed:!1,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.params.salt",tagClass:R.Class.UNIVERSAL,type:R.Type.OCTETSTRING,constructed:!1,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:R.Class.UNIVERSAL,type:R.Type.INTEGER,constructed:!1,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:R.Class.UNIVERSAL,type:R.Type.INTEGER,constructed:!1,optional:!0,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,optional:!0,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:R.Class.UNIVERSAL,type:R.Type.OID,constructed:!1,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:R.Class.UNIVERSAL,type:R.Type.OID,constructed:!1,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:R.Class.UNIVERSAL,type:R.Type.OCTETSTRING,constructed:!1,capture:"encIv"}]}]},iC={name:"pkcs-12PbeParams",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"pkcs-12PbeParams.salt",tagClass:R.Class.UNIVERSAL,type:R.Type.OCTETSTRING,constructed:!1,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:R.Class.UNIVERSAL,type:R.Type.INTEGER,constructed:!1,capture:"iterations"}]};ee.encryptPrivateKeyInfo=function(e,t,r){r=r||{},r.saltSize=r.saltSize||8,r.count=r.count||2048,r.algorithm=r.algorithm||"aes128",r.prfAlgorithm=r.prfAlgorithm||"sha1";var a=z.random.getBytesSync(r.saltSize),n=r.count,s=R.integerToDer(n),i,o,c;if(r.algorithm.indexOf("aes")===0||r.algorithm==="des"){var l,u,p;switch(r.algorithm){case"aes128":i=16,l=16,u=Ba["aes128-CBC"],p=z.aes.createEncryptionCipher;break;case"aes192":i=24,l=16,u=Ba["aes192-CBC"],p=z.aes.createEncryptionCipher;break;case"aes256":i=32,l=16,u=Ba["aes256-CBC"],p=z.aes.createEncryptionCipher;break;case"des":i=8,l=8,u=Ba.desCBC,p=z.des.createEncryptionCipher;break;default:var f=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw f.algorithm=r.algorithm,f}var x="hmacWith"+r.prfAlgorithm.toUpperCase(),m=y0(x),y=z.pkcs5.pbkdf2(t,a,n,i,m),b=z.random.getBytesSync(l),S=p(y);S.start(b),S.update(R.toDer(e)),S.finish(),c=S.output.getBytes();var B=sC(a,s,i,x);o=R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(Ba.pkcs5PBES2).getBytes()),R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(Ba.pkcs5PBKDF2).getBytes()),B]),R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(u).getBytes()),R.create(R.Class.UNIVERSAL,R.Type.OCTETSTRING,!1,b)])])])}else if(r.algorithm==="3des"){i=24;var _=new z.util.ByteBuffer(a),y=ee.pbe.generatePkcs12Key(t,_,1,n,i),b=ee.pbe.generatePkcs12Key(t,_,2,n,i),S=z.des.createEncryptionCipher(y);S.start(b),S.update(R.toDer(e)),S.finish(),c=S.output.getBytes(),o=R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(Ba["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OCTETSTRING,!1,a),R.create(R.Class.UNIVERSAL,R.Type.INTEGER,!1,s.getBytes())])])}else{var f=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw f.algorithm=r.algorithm,f}var P=R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[o,R.create(R.Class.UNIVERSAL,R.Type.OCTETSTRING,!1,c)]);return P},ee.decryptPrivateKeyInfo=function(e,t){var r=null,a={},n=[];if(!R.validate(e,rC,a,n)){var s=new Error("Cannot read encrypted private key. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=n,s}var i=R.derToOid(a.encryptionOid),o=ee.pbe.getCipher(i,a.encryptionParams,t),c=z.util.createBuffer(a.encryptedData);return o.update(c),o.finish()&&(r=R.fromDer(o.output)),r},ee.encryptedPrivateKeyToPem=function(e,t){var r={type:"ENCRYPTED PRIVATE KEY",body:R.toDer(e).getBytes()};return z.pem.encode(r,{maxline:t})},ee.encryptedPrivateKeyFromPem=function(e){var t=z.pem.decode(e)[0];if(t.type!=="ENCRYPTED PRIVATE KEY"){var r=new Error('Could not convert encrypted private key from PEM; PEM header type is "ENCRYPTED PRIVATE KEY".');throw r.headerType=t.type,r}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert encrypted private key from PEM; PEM is encrypted.");return R.fromDer(t.body)},ee.encryptRsaPrivateKey=function(e,t,r){if(r=r||{},!r.legacy){var a=ee.wrapRsaPrivateKey(ee.privateKeyToAsn1(e));return a=ee.encryptPrivateKeyInfo(a,t,r),ee.encryptedPrivateKeyToPem(a)}var n,s,i,o;switch(r.algorithm){case"aes128":n="AES-128-CBC",i=16,s=z.random.getBytesSync(16),o=z.aes.createEncryptionCipher;break;case"aes192":n="AES-192-CBC",i=24,s=z.random.getBytesSync(16),o=z.aes.createEncryptionCipher;break;case"aes256":n="AES-256-CBC",i=32,s=z.random.getBytesSync(16),o=z.aes.createEncryptionCipher;break;case"3des":n="DES-EDE3-CBC",i=24,s=z.random.getBytesSync(8),o=z.des.createEncryptionCipher;break;case"des":n="DES-CBC",i=8,s=z.random.getBytesSync(8),o=z.des.createEncryptionCipher;break;default:var c=new Error('Could not encrypt RSA private key; unsupported encryption algorithm "'+r.algorithm+'".');throw c.algorithm=r.algorithm,c}var l=z.pbe.opensslDeriveBytes(t,s.substr(0,8),i),u=o(l);u.start(s),u.update(R.toDer(ee.privateKeyToAsn1(e))),u.finish();var p={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:n,parameters:z.util.bytesToHex(s).toUpperCase()},body:u.output.getBytes()};return z.pem.encode(p)},ee.decryptRsaPrivateKey=function(e,t){var r=null,a=z.pem.decode(e)[0];if(a.type!=="ENCRYPTED PRIVATE KEY"&&a.type!=="PRIVATE KEY"&&a.type!=="RSA PRIVATE KEY"){var n=new Error('Could not convert private key from PEM; PEM header type is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".');throw n.headerType=n,n}if(a.procType&&a.procType.type==="ENCRYPTED"){var s,i;switch(a.dekInfo.algorithm){case"DES-CBC":s=8,i=z.des.createDecryptionCipher;break;case"DES-EDE3-CBC":s=24,i=z.des.createDecryptionCipher;break;case"AES-128-CBC":s=16,i=z.aes.createDecryptionCipher;break;case"AES-192-CBC":s=24,i=z.aes.createDecryptionCipher;break;case"AES-256-CBC":s=32,i=z.aes.createDecryptionCipher;break;case"RC2-40-CBC":s=5,i=function(p){return z.rc2.createDecryptionCipher(p,40)};break;case"RC2-64-CBC":s=8,i=function(p){return z.rc2.createDecryptionCipher(p,64)};break;case"RC2-128-CBC":s=16,i=function(p){return z.rc2.createDecryptionCipher(p,128)};break;default:var n=new Error('Could not decrypt private key; unsupported encryption algorithm "'+a.dekInfo.algorithm+'".');throw n.algorithm=a.dekInfo.algorithm,n}var o=z.util.hexToBytes(a.dekInfo.parameters),c=z.pbe.opensslDeriveBytes(t,o.substr(0,8),s),l=i(c);if(l.start(o),l.update(z.util.createBuffer(a.body)),l.finish())r=l.output.getBytes();else return r}else r=a.body;return a.type==="ENCRYPTED PRIVATE KEY"?r=ee.decryptPrivateKeyInfo(R.fromDer(r),t):r=R.fromDer(r),r!==null&&(r=ee.privateKeyFromAsn1(r)),r},ee.pbe.generatePkcs12Key=function(e,t,r,a,n,s){var i,o;if(typeof s>"u"||s===null){if(!("sha1"in z.md))throw new Error('"sha1" hash algorithm unavailable.');s=z.md.sha1.create()}var c=s.digestLength,l=s.blockLength,u=new z.util.ByteBuffer,p=new z.util.ByteBuffer;if(e!=null){for(o=0;o<e.length;o++)p.putInt16(e.charCodeAt(o));p.putInt16(0)}var f=p.length(),x=t.length(),m=new z.util.ByteBuffer;m.fillWithByte(r,l);var y=l*Math.ceil(x/l),b=new z.util.ByteBuffer;for(o=0;o<y;o++)b.putByte(t.at(o%x));var S=l*Math.ceil(f/l),B=new z.util.ByteBuffer;for(o=0;o<S;o++)B.putByte(p.at(o%f));var _=b;_.putBuffer(B);for(var P=Math.ceil(n/c),U=1;U<=P;U++){var k=new z.util.ByteBuffer;k.putBytes(m.bytes()),k.putBytes(_.bytes());for(var H=0;H<a;H++)s.start(),s.update(k.getBytes()),k=s.digest();var G=new z.util.ByteBuffer;for(o=0;o<l;o++)G.putByte(k.at(o%c));var Z=Math.ceil(x/l)+Math.ceil(f/l),ce=new z.util.ByteBuffer;for(i=0;i<Z;i++){var pe=new z.util.ByteBuffer(_.getBytes(l)),he=511;for(o=G.length()-1;o>=0;o--)he=he>>8,he+=G.at(o)+pe.at(o),pe.setAt(o,he&255);ce.putBuffer(pe)}_=ce,u.putBuffer(k)}return u.truncate(u.length()-n),u},ee.pbe.getCipher=function(e,t,r){switch(e){case ee.oids.pkcs5PBES2:return ee.pbe.getCipherForPBES2(e,t,r);case ee.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case ee.oids["pbewithSHAAnd40BitRC2-CBC"]:return ee.pbe.getCipherForPKCS12PBE(e,t,r);default:var a=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw a.oid=e,a.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],a}},ee.pbe.getCipherForPBES2=function(e,t,r){var a={},n=[];if(!R.validate(t,nC,a,n)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=n,s}if(e=R.derToOid(a.kdfOid),e!==ee.oids.pkcs5PBKDF2){var s=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.");throw s.oid=e,s.supportedOids=["pkcs5PBKDF2"],s}if(e=R.derToOid(a.encOid),e!==ee.oids["aes128-CBC"]&&e!==ee.oids["aes192-CBC"]&&e!==ee.oids["aes256-CBC"]&&e!==ee.oids["des-EDE3-CBC"]&&e!==ee.oids.desCBC){var s=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.");throw s.oid=e,s.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],s}var i=a.kdfSalt,o=z.util.createBuffer(a.kdfIterationCount);o=o.getInt(o.length()<<3);var c,l;switch(ee.oids[e]){case"aes128-CBC":c=16,l=z.aes.createDecryptionCipher;break;case"aes192-CBC":c=24,l=z.aes.createDecryptionCipher;break;case"aes256-CBC":c=32,l=z.aes.createDecryptionCipher;break;case"des-EDE3-CBC":c=24,l=z.des.createDecryptionCipher;break;case"desCBC":c=8,l=z.des.createDecryptionCipher;break}var u=x0(a.prfOid),p=z.pkcs5.pbkdf2(r,i,o,c,u),f=a.encIv,x=l(p);return x.start(f),x},ee.pbe.getCipherForPKCS12PBE=function(e,t,r){var a={},n=[];if(!R.validate(t,iC,a,n)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=n,s}var i=z.util.createBuffer(a.salt),o=z.util.createBuffer(a.iterations);o=o.getInt(o.length()<<3);var c,l,u;switch(e){case ee.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:c=24,l=8,u=z.des.startDecrypting;break;case ee.oids["pbewithSHAAnd40BitRC2-CBC"]:c=5,l=8,u=function(y,b){var S=z.rc2.createDecryptionCipher(y,40);return S.start(b,null),S};break;default:var s=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.");throw s.oid=e,s}var p=x0(a.prfOid),f=ee.pbe.generatePkcs12Key(r,i,1,o,c,p);p.start();var x=ee.pbe.generatePkcs12Key(r,i,2,o,l,p);return u(f,x)},ee.pbe.opensslDeriveBytes=function(e,t,r,a){if(typeof a>"u"||a===null){if(!("md5"in z.md))throw new Error('"md5" hash algorithm unavailable.');a=z.md.md5.create()}t===null&&(t="");for(var n=[g0(a,e+t)],s=16,i=1;s<r;++i,s+=16)n.push(g0(a,n[i-1]+e+t));return n.join("").substr(0,r)};function g0(e,t){return e.start().update(t).digest().getBytes()}function x0(e){var t;if(!e)t="hmacWithSHA1";else if(t=ee.oids[R.derToOid(e)],!t){var r=new Error("Unsupported PRF OID.");throw r.oid=e,r.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],r}return y0(t)}function y0(e){var t=z.md;switch(e){case"hmacWithSHA224":t=z.md.sha512;case"hmacWithSHA1":case"hmacWithSHA256":case"hmacWithSHA384":case"hmacWithSHA512":e=e.substr(8).toLowerCase();break;default:var r=new Error("Unsupported PRF algorithm.");throw r.algorithm=e,r.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],r}if(!t||!(e in t))throw new Error("Unknown hash algorithm: "+e);return t[e].create()}function sC(e,t,r,a){var n=R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OCTETSTRING,!1,e),R.create(R.Class.UNIVERSAL,R.Type.INTEGER,!1,t.getBytes())]);return a!=="hmacWithSHA1"&&n.value.push(R.create(R.Class.UNIVERSAL,R.Type.INTEGER,!1,z.util.hexToBytes(r.toString(16))),R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(ee.oids[a]).getBytes()),R.create(R.Class.UNIVERSAL,R.Type.NULL,!1,"")])),n}var Ga=te,K=Ga.asn1,Qa=Ga.pkcs7asn1=Ga.pkcs7asn1||{};Ga.pkcs7=Ga.pkcs7||{},Ga.pkcs7.asn1=Qa;var b0={name:"ContentInfo",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.ContentType",tagClass:K.Class.UNIVERSAL,type:K.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:K.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,captureAsn1:"content"}]};Qa.contentInfoValidator=b0;var E0={name:"EncryptedContentInfo",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentType",tagClass:K.Class.UNIVERSAL,type:K.Type.OID,constructed:!1,capture:"contentType"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentEncryptionAlgorithm.algorithm",tagClass:K.Class.UNIVERSAL,type:K.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm.parameter",tagClass:K.Class.UNIVERSAL,captureAsn1:"encParameter"}]},{name:"EncryptedContentInfo.encryptedContent",tagClass:K.Class.CONTEXT_SPECIFIC,type:0,capture:"encryptedContent",captureAsn1:"encryptedContentAsn1"}]};Qa.envelopedDataValidator={name:"EnvelopedData",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"EnvelopedData.Version",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"version"},{name:"EnvelopedData.RecipientInfos",tagClass:K.Class.UNIVERSAL,type:K.Type.SET,constructed:!0,captureAsn1:"recipientInfos"}].concat(E0)},Qa.encryptedDataValidator={name:"EncryptedData",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedData.Version",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"version"}].concat(E0)};var oC={name:"SignerInfo",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.version",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1},{name:"SignerInfo.issuerAndSerialNumber",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.issuerAndSerialNumber.issuer",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"SignerInfo.issuerAndSerialNumber.serialNumber",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"SignerInfo.digestAlgorithm",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.digestAlgorithm.algorithm",tagClass:K.Class.UNIVERSAL,type:K.Type.OID,constructed:!1,capture:"digestAlgorithm"},{name:"SignerInfo.digestAlgorithm.parameter",tagClass:K.Class.UNIVERSAL,constructed:!1,captureAsn1:"digestParameter",optional:!0}]},{name:"SignerInfo.authenticatedAttributes",tagClass:K.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"authenticatedAttributes"},{name:"SignerInfo.digestEncryptionAlgorithm",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,capture:"signatureAlgorithm"},{name:"SignerInfo.encryptedDigest",tagClass:K.Class.UNIVERSAL,type:K.Type.OCTETSTRING,constructed:!1,capture:"signature"},{name:"SignerInfo.unauthenticatedAttributes",tagClass:K.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,capture:"unauthenticatedAttributes"}]};Qa.signedDataValidator={name:"SignedData",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"SignedData.Version",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"version"},{name:"SignedData.DigestAlgorithms",tagClass:K.Class.UNIVERSAL,type:K.Type.SET,constructed:!0,captureAsn1:"digestAlgorithms"},b0,{name:"SignedData.Certificates",tagClass:K.Class.CONTEXT_SPECIFIC,type:0,optional:!0,captureAsn1:"certificates"},{name:"SignedData.CertificateRevocationLists",tagClass:K.Class.CONTEXT_SPECIFIC,type:1,optional:!0,captureAsn1:"crls"},{name:"SignedData.SignerInfos",tagClass:K.Class.UNIVERSAL,type:K.Type.SET,capture:"signerInfos",optional:!0,value:[oC]}]},Qa.recipientInfoValidator={name:"RecipientInfo",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.version",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"version"},{name:"RecipientInfo.issuerAndSerial",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.issuerAndSerial.issuer",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"RecipientInfo.issuerAndSerial.serialNumber",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"RecipientInfo.keyEncryptionAlgorithm",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.keyEncryptionAlgorithm.algorithm",tagClass:K.Class.UNIVERSAL,type:K.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"RecipientInfo.keyEncryptionAlgorithm.parameter",tagClass:K.Class.UNIVERSAL,constructed:!1,captureAsn1:"encParameter",optional:!0}]},{name:"RecipientInfo.encryptedKey",tagClass:K.Class.UNIVERSAL,type:K.Type.OCTETSTRING,constructed:!1,capture:"encKey"}]};var _a=te;_a.mgf=_a.mgf||{};var cC=_a.mgf.mgf1=_a.mgf1=_a.mgf1||{};cC.create=function(e){var t={generate:function(r,a){for(var n=new _a.util.ByteBuffer,s=Math.ceil(a/e.digestLength),i=0;i<s;i++){var o=new _a.util.ByteBuffer;o.putInt32(i),e.start(),e.update(r+o.getBytes()),n.putBuffer(e.digest())}return n.truncate(n.length()-a),n.getBytes()}};return t};var ol=te;ol.mgf=ol.mgf||{},ol.mgf.mgf1=ol.mgf1;var Ra=te,lC=Ra.pss=Ra.pss||{};lC.create=function(e){arguments.length===3&&(e={md:arguments[0],mgf:arguments[1],saltLength:arguments[2]});var t=e.md,r=e.mgf,a=t.digestLength,n=e.salt||null;typeof n=="string"&&(n=Ra.util.createBuffer(n));var s;if("saltLength"in e)s=e.saltLength;else if(n!==null)s=n.length();else throw new Error("Salt length not specified or specific salt not given.");if(n!==null&&n.length()!==s)throw new Error("Given salt length does not match length of given salt.");var i=e.prng||Ra.random,o={};return o.encode=function(c,l){var u,p=l-1,f=Math.ceil(p/8),x=c.digest().getBytes();if(f<a+s+2)throw new Error("Message is too long to encrypt.");var m;n===null?m=i.getBytesSync(s):m=n.bytes();var y=new Ra.util.ByteBuffer;y.fillWithByte(0,8),y.putBytes(x),y.putBytes(m),t.start(),t.update(y.getBytes());var b=t.digest().getBytes(),S=new Ra.util.ByteBuffer;S.fillWithByte(0,f-s-a-2),S.putByte(1),S.putBytes(m);var B=S.getBytes(),_=f-a-1,P=r.generate(b,_),U="";for(u=0;u<_;u++)U+=String.fromCharCode(B.charCodeAt(u)^P.charCodeAt(u));var k=65280>>8*f-p&255;return U=String.fromCharCode(U.charCodeAt(0)&~k)+U.substr(1),U+b+"\xBC"},o.verify=function(c,l,u){var p,f=u-1,x=Math.ceil(f/8);if(l=l.substr(-x),x<a+s+2)throw new Error("Inconsistent parameters to PSS signature verification.");if(l.charCodeAt(x-1)!==188)throw new Error("Encoded message does not end in 0xBC.");var m=x-a-1,y=l.substr(0,m),b=l.substr(m,a),S=65280>>8*x-f&255;if((y.charCodeAt(0)&S)!==0)throw new Error("Bits beyond keysize not zero as expected.");var B=r.generate(b,m),_="";for(p=0;p<m;p++)_+=String.fromCharCode(y.charCodeAt(p)^B.charCodeAt(p));_=String.fromCharCode(_.charCodeAt(0)&~S)+_.substr(1);var P=x-a-s-2;for(p=0;p<P;p++)if(_.charCodeAt(p)!==0)throw new Error("Leftmost octets not zero as expected");if(_.charCodeAt(P)!==1)throw new Error("Inconsistent PSS signature, 0x01 marker not found");var U=_.substr(-s),k=new Ra.util.ByteBuffer;k.fillWithByte(0,8),k.putBytes(c),k.putBytes(U),t.start(),t.update(k.getBytes());var H=t.digest().getBytes();return b===H},o};var W=te,h=W.asn1,O=W.pki=W.pki||{},me=O.oids,De={};De.CN=me.commonName,De.commonName="CN",De.C=me.countryName,De.countryName="C",De.L=me.localityName,De.localityName="L",De.ST=me.stateOrProvinceName,De.stateOrProvinceName="ST",De.O=me.organizationName,De.organizationName="O",De.OU=me.organizationalUnitName,De.organizationalUnitName="OU",De.E=me.emailAddress,De.emailAddress="E";var C0=W.pki.rsa.publicKeyValidator,uC={name:"Certificate",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"tbsCertificate",value:[{name:"Certificate.TBSCertificate.version",tagClass:h.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.version.integer",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"certVersion"}]},{name:"Certificate.TBSCertificate.serialNumber",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"certSerialNumber"},{name:"Certificate.TBSCertificate.signature",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.signature.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"certinfoSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:h.Class.UNIVERSAL,optional:!0,captureAsn1:"certinfoSignatureParams"}]},{name:"Certificate.TBSCertificate.issuer",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"certIssuer"},{name:"Certificate.TBSCertificate.validity",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.validity.notBefore (utc)",tagClass:h.Class.UNIVERSAL,type:h.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity1UTCTime"},{name:"Certificate.TBSCertificate.validity.notBefore (generalized)",tagClass:h.Class.UNIVERSAL,type:h.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity2GeneralizedTime"},{name:"Certificate.TBSCertificate.validity.notAfter (utc)",tagClass:h.Class.UNIVERSAL,type:h.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity3UTCTime"},{name:"Certificate.TBSCertificate.validity.notAfter (generalized)",tagClass:h.Class.UNIVERSAL,type:h.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity4GeneralizedTime"}]},{name:"Certificate.TBSCertificate.subject",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"certSubject"},C0,{name:"Certificate.TBSCertificate.issuerUniqueID",tagClass:h.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.issuerUniqueID.id",tagClass:h.Class.UNIVERSAL,type:h.Type.BITSTRING,constructed:!1,captureBitStringValue:"certIssuerUniqueId"}]},{name:"Certificate.TBSCertificate.subjectUniqueID",tagClass:h.Class.CONTEXT_SPECIFIC,type:2,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.subjectUniqueID.id",tagClass:h.Class.UNIVERSAL,type:h.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSubjectUniqueId"}]},{name:"Certificate.TBSCertificate.extensions",tagClass:h.Class.CONTEXT_SPECIFIC,type:3,constructed:!0,captureAsn1:"certExtensions",optional:!0}]},{name:"Certificate.signatureAlgorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.signatureAlgorithm.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"certSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:h.Class.UNIVERSAL,optional:!0,captureAsn1:"certSignatureParams"}]},{name:"Certificate.signatureValue",tagClass:h.Class.UNIVERSAL,type:h.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSignature"}]},pC={name:"rsapss",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.hashAlgorithm",tagClass:h.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier",tagClass:h.Class.UNIVERSAL,type:h.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"hashOid"}]}]},{name:"rsapss.maskGenAlgorithm",tagClass:h.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier",tagClass:h.Class.UNIVERSAL,type:h.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"maskGenOid"},{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"maskGenHashOid"}]}]}]},{name:"rsapss.saltLength",tagClass:h.Class.CONTEXT_SPECIFIC,type:2,optional:!0,value:[{name:"rsapss.saltLength.saltLength",tagClass:h.Class.UNIVERSAL,type:h.Class.INTEGER,constructed:!1,capture:"saltLength"}]},{name:"rsapss.trailerField",tagClass:h.Class.CONTEXT_SPECIFIC,type:3,optional:!0,value:[{name:"rsapss.trailer.trailer",tagClass:h.Class.UNIVERSAL,type:h.Class.INTEGER,constructed:!1,capture:"trailer"}]}]},dC={name:"CertificationRequestInfo",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfo",value:[{name:"CertificationRequestInfo.integer",tagClass:h.Class.UNIVERSAL,type:h.Type.INTEGER,constructed:!1,capture:"certificationRequestInfoVersion"},{name:"CertificationRequestInfo.subject",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfoSubject"},C0,{name:"CertificationRequestInfo.attributes",tagClass:h.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"certificationRequestInfoAttributes",value:[{name:"CertificationRequestInfo.attributes",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequestInfo.attributes.type",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1},{name:"CertificationRequestInfo.attributes.value",tagClass:h.Class.UNIVERSAL,type:h.Type.SET,constructed:!0}]}]}]},fC={name:"CertificationRequest",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,captureAsn1:"csr",value:[dC,{name:"CertificationRequest.signatureAlgorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequest.signatureAlgorithm.algorithm",tagClass:h.Class.UNIVERSAL,type:h.Type.OID,constructed:!1,capture:"csrSignatureOid"},{name:"CertificationRequest.signatureAlgorithm.parameters",tagClass:h.Class.UNIVERSAL,optional:!0,captureAsn1:"csrSignatureParams"}]},{name:"CertificationRequest.signature",tagClass:h.Class.UNIVERSAL,type:h.Type.BITSTRING,constructed:!1,captureBitStringValue:"csrSignature"}]};O.RDNAttributesAsArray=function(e,t){for(var r=[],a,n,s,i=0;i<e.value.length;++i){a=e.value[i];for(var o=0;o<a.value.length;++o)s={},n=a.value[o],s.type=h.derToOid(n.value[0].value),s.value=n.value[1].value,s.valueTagClass=n.value[1].type,s.type in me&&(s.name=me[s.type],s.name in De&&(s.shortName=De[s.name])),t&&(t.update(s.type),t.update(s.value)),r.push(s)}return r},O.CRIAttributesAsArray=function(e){for(var t=[],r=0;r<e.length;++r)for(var a=e[r],n=h.derToOid(a.value[0].value),s=a.value[1].value,i=0;i<s.length;++i){var o={};if(o.type=n,o.value=s[i].value,o.valueTagClass=s[i].type,o.type in me&&(o.name=me[o.type],o.name in De&&(o.shortName=De[o.name])),o.type===me.extensionRequest){o.extensions=[];for(var c=0;c<o.value.length;++c)o.extensions.push(O.certificateExtensionFromAsn1(o.value[c]))}t.push(o)}return t};function la(e,t){typeof t=="string"&&(t={shortName:t});for(var r=null,a,n=0;r===null&&n<e.attributes.length;++n)a=e.attributes[n],(t.type&&t.type===a.type||t.name&&t.name===a.name||t.shortName&&t.shortName===a.shortName)&&(r=a);return r}var cl=function(e,t,r){var a={};if(e!==me["RSASSA-PSS"])return a;r&&(a={hash:{algorithmOid:me.sha1},mgf:{algorithmOid:me.mgf1,hash:{algorithmOid:me.sha1}},saltLength:20});var n={},s=[];if(!h.validate(t,pC,n,s)){var i=new Error("Cannot read RSASSA-PSS parameter block.");throw i.errors=s,i}return n.hashOid!==void 0&&(a.hash=a.hash||{},a.hash.algorithmOid=h.derToOid(n.hashOid)),n.maskGenOid!==void 0&&(a.mgf=a.mgf||{},a.mgf.algorithmOid=h.derToOid(n.maskGenOid),a.mgf.hash=a.mgf.hash||{},a.mgf.hash.algorithmOid=h.derToOid(n.maskGenHashOid)),n.saltLength!==void 0&&(a.saltLength=n.saltLength.charCodeAt(0)),a},ll=function(e){switch(me[e.signatureOid]){case"sha1WithRSAEncryption":case"sha1WithRSASignature":return W.md.sha1.create();case"md5WithRSAEncryption":return W.md.md5.create();case"sha256WithRSAEncryption":return W.md.sha256.create();case"sha384WithRSAEncryption":return W.md.sha384.create();case"sha512WithRSAEncryption":return W.md.sha512.create();case"RSASSA-PSS":return W.md.sha256.create();default:var t=new Error("Could not compute "+e.type+" digest. Unknown signature OID.");throw t.signatureOid=e.signatureOid,t}},S0=function(e){var t=e.certificate,r;switch(t.signatureOid){case me.sha1WithRSAEncryption:case me.sha1WithRSASignature:break;case me["RSASSA-PSS"]:var a,n;if(a=me[t.signatureParameters.mgf.hash.algorithmOid],a===void 0||W.md[a]===void 0){var s=new Error("Unsupported MGF hash function.");throw s.oid=t.signatureParameters.mgf.hash.algorithmOid,s.name=a,s}if(n=me[t.signatureParameters.mgf.algorithmOid],n===void 0||W.mgf[n]===void 0){var s=new Error("Unsupported MGF function.");throw s.oid=t.signatureParameters.mgf.algorithmOid,s.name=n,s}if(n=W.mgf[n].create(W.md[a].create()),a=me[t.signatureParameters.hash.algorithmOid],a===void 0||W.md[a]===void 0){var s=new Error("Unsupported RSASSA-PSS hash function.");throw s.oid=t.signatureParameters.hash.algorithmOid,s.name=a,s}r=W.pss.create(W.md[a].create(),n,t.signatureParameters.saltLength);break}return t.publicKey.verify(e.md.digest().getBytes(),e.signature,r)};O.certificateFromPem=function(e,t,r){var a=W.pem.decode(e)[0];if(a.type!=="CERTIFICATE"&&a.type!=="X509 CERTIFICATE"&&a.type!=="TRUSTED CERTIFICATE"){var n=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw n.headerType=a.type,n}if(a.procType&&a.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var s=h.fromDer(a.body,r);return O.certificateFromAsn1(s,t)},O.certificateToPem=function(e,t){var r={type:"CERTIFICATE",body:h.toDer(O.certificateToAsn1(e)).getBytes()};return W.pem.encode(r,{maxline:t})},O.publicKeyFromPem=function(e){var t=W.pem.decode(e)[0];if(t.type!=="PUBLIC KEY"&&t.type!=="RSA PUBLIC KEY"){var r=new Error('Could not convert public key from PEM; PEM header type is not "PUBLIC KEY" or "RSA PUBLIC KEY".');throw r.headerType=t.type,r}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert public key from PEM; PEM is encrypted.");var a=h.fromDer(t.body);return O.publicKeyFromAsn1(a)},O.publicKeyToPem=function(e,t){var r={type:"PUBLIC KEY",body:h.toDer(O.publicKeyToAsn1(e)).getBytes()};return W.pem.encode(r,{maxline:t})},O.publicKeyToRSAPublicKeyPem=function(e,t){var r={type:"RSA PUBLIC KEY",body:h.toDer(O.publicKeyToRSAPublicKey(e)).getBytes()};return W.pem.encode(r,{maxline:t})},O.getPublicKeyFingerprint=function(e,t){t=t||{};var r=t.md||W.md.sha1.create(),a=t.type||"RSAPublicKey",n;switch(a){case"RSAPublicKey":n=h.toDer(O.publicKeyToRSAPublicKey(e)).getBytes();break;case"SubjectPublicKeyInfo":n=h.toDer(O.publicKeyToAsn1(e)).getBytes();break;default:throw new Error('Unknown fingerprint type "'+t.type+'".')}r.start(),r.update(n);var s=r.digest();if(t.encoding==="hex"){var i=s.toHex();return t.delimiter?i.match(/.{2}/g).join(t.delimiter):i}else{if(t.encoding==="binary")return s.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".')}return s},O.certificationRequestFromPem=function(e,t,r){var a=W.pem.decode(e)[0];if(a.type!=="CERTIFICATE REQUEST"){var n=new Error('Could not convert certification request from PEM; PEM header type is not "CERTIFICATE REQUEST".');throw n.headerType=a.type,n}if(a.procType&&a.procType.type==="ENCRYPTED")throw new Error("Could not convert certification request from PEM; PEM is encrypted.");var s=h.fromDer(a.body,r);return O.certificationRequestFromAsn1(s,t)},O.certificationRequestToPem=function(e,t){var r={type:"CERTIFICATE REQUEST",body:h.toDer(O.certificationRequestToAsn1(e)).getBytes()};return W.pem.encode(r,{maxline:t})},O.createCertificate=function(){var e={};return e.version=2,e.serialNumber="00",e.signatureOid=null,e.signature=null,e.siginfo={},e.siginfo.algorithmOid=null,e.validity={},e.validity.notBefore=new Date,e.validity.notAfter=new Date,e.issuer={},e.issuer.getField=function(t){return la(e.issuer,t)},e.issuer.addField=function(t){Ut([t]),e.issuer.attributes.push(t)},e.issuer.attributes=[],e.issuer.hash=null,e.subject={},e.subject.getField=function(t){return la(e.subject,t)},e.subject.addField=function(t){Ut([t]),e.subject.attributes.push(t)},e.subject.attributes=[],e.subject.hash=null,e.extensions=[],e.publicKey=null,e.md=null,e.setSubject=function(t,r){Ut(t),e.subject.attributes=t,delete e.subject.uniqueId,r&&(e.subject.uniqueId=r),e.subject.hash=null},e.setIssuer=function(t,r){Ut(t),e.issuer.attributes=t,delete e.issuer.uniqueId,r&&(e.issuer.uniqueId=r),e.issuer.hash=null},e.setExtensions=function(t){for(var r=0;r<t.length;++r)T0(t[r],{cert:e});e.extensions=t},e.getExtension=function(t){typeof t=="string"&&(t={name:t});for(var r=null,a,n=0;r===null&&n<e.extensions.length;++n)a=e.extensions[n],(t.id&&a.id===t.id||t.name&&a.name===t.name)&&(r=a);return r},e.sign=function(t,r){e.md=r||W.md.sha1.create();var a=me[e.md.algorithm+"WithRSAEncryption"];if(!a){var n=new Error("Could not compute certificate digest. Unknown message digest algorithm OID.");throw n.algorithm=e.md.algorithm,n}e.signatureOid=e.siginfo.algorithmOid=a,e.tbsCertificate=O.getTBSCertificate(e);var s=h.toDer(e.tbsCertificate);e.md.update(s.getBytes()),e.signature=t.sign(e.md)},e.verify=function(t){var r=!1;if(!e.issued(t)){var a=t.issuer,n=e.subject,s=new Error("The parent certificate did not issue the given child certificate; the child certificate's issuer does not match the parent's subject.");throw s.expectedIssuer=n.attributes,s.actualIssuer=a.attributes,s}var i=t.md;if(i===null){i=ll({signatureOid:t.signatureOid,type:"certificate"});var o=t.tbsCertificate||O.getTBSCertificate(t),c=h.toDer(o);i.update(c.getBytes())}return i!==null&&(r=S0({certificate:e,md:i,signature:t.signature})),r},e.isIssuer=function(t){var r=!1,a=e.issuer,n=t.subject;if(a.hash&&n.hash)r=a.hash===n.hash;else if(a.attributes.length===n.attributes.length){r=!0;for(var s,i,o=0;r&&o<a.attributes.length;++o)s=a.attributes[o],i=n.attributes[o],(s.type!==i.type||s.value!==i.value)&&(r=!1)}return r},e.issued=function(t){return t.isIssuer(e)},e.generateSubjectKeyIdentifier=function(){return O.getPublicKeyFingerprint(e.publicKey,{type:"RSAPublicKey"})},e.verifySubjectKeyIdentifier=function(){for(var t=me.subjectKeyIdentifier,r=0;r<e.extensions.length;++r){var a=e.extensions[r];if(a.id===t){var n=e.generateSubjectKeyIdentifier().getBytes();return W.util.hexToBytes(a.subjectKeyIdentifier)===n}}return!1},e},O.certificateFromAsn1=function(e,t){var r={},a=[];if(!h.validate(e,uC,r,a)){var n=new Error("Cannot read X.509 certificate. ASN.1 object is not an X509v3 Certificate.");throw n.errors=a,n}var s=h.derToOid(r.publicKeyOid);if(s!==O.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var i=O.createCertificate();i.version=r.certVersion?r.certVersion.charCodeAt(0):0;var o=W.util.createBuffer(r.certSerialNumber);i.serialNumber=o.toHex(),i.signatureOid=W.asn1.derToOid(r.certSignatureOid),i.signatureParameters=cl(i.signatureOid,r.certSignatureParams,!0),i.siginfo.algorithmOid=W.asn1.derToOid(r.certinfoSignatureOid),i.siginfo.parameters=cl(i.siginfo.algorithmOid,r.certinfoSignatureParams,!1),i.signature=r.certSignature;var c=[];if(r.certValidity1UTCTime!==void 0&&c.push(h.utcTimeToDate(r.certValidity1UTCTime)),r.certValidity2GeneralizedTime!==void 0&&c.push(h.generalizedTimeToDate(r.certValidity2GeneralizedTime)),r.certValidity3UTCTime!==void 0&&c.push(h.utcTimeToDate(r.certValidity3UTCTime)),r.certValidity4GeneralizedTime!==void 0&&c.push(h.generalizedTimeToDate(r.certValidity4GeneralizedTime)),c.length>2)throw new Error("Cannot read notBefore/notAfter validity times; more than two times were provided in the certificate.");if(c.length<2)throw new Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime.");if(i.validity.notBefore=c[0],i.validity.notAfter=c[1],i.tbsCertificate=r.tbsCertificate,t){i.md=ll({signatureOid:i.signatureOid,type:"certificate"});var l=h.toDer(i.tbsCertificate);i.md.update(l.getBytes())}var u=W.md.sha1.create(),p=h.toDer(r.certIssuer);u.update(p.getBytes()),i.issuer.getField=function(m){return la(i.issuer,m)},i.issuer.addField=function(m){Ut([m]),i.issuer.attributes.push(m)},i.issuer.attributes=O.RDNAttributesAsArray(r.certIssuer),r.certIssuerUniqueId&&(i.issuer.uniqueId=r.certIssuerUniqueId),i.issuer.hash=u.digest().toHex();var f=W.md.sha1.create(),x=h.toDer(r.certSubject);return f.update(x.getBytes()),i.subject.getField=function(m){return la(i.subject,m)},i.subject.addField=function(m){Ut([m]),i.subject.attributes.push(m)},i.subject.attributes=O.RDNAttributesAsArray(r.certSubject),r.certSubjectUniqueId&&(i.subject.uniqueId=r.certSubjectUniqueId),i.subject.hash=f.digest().toHex(),r.certExtensions?i.extensions=O.certificateExtensionsFromAsn1(r.certExtensions):i.extensions=[],i.publicKey=O.publicKeyFromAsn1(r.subjectPublicKeyInfo),i},O.certificateExtensionsFromAsn1=function(e){for(var t=[],r=0;r<e.value.length;++r)for(var a=e.value[r],n=0;n<a.value.length;++n)t.push(O.certificateExtensionFromAsn1(a.value[n]));return t},O.certificateExtensionFromAsn1=function(e){var t={};if(t.id=h.derToOid(e.value[0].value),t.critical=!1,e.value[1].type===h.Type.BOOLEAN?(t.critical=e.value[1].value.charCodeAt(0)!==0,t.value=e.value[2].value):t.value=e.value[1].value,t.id in me){if(t.name=me[t.id],t.name==="keyUsage"){var r=h.fromDer(t.value),a=0,n=0;r.value.length>1&&(a=r.value.charCodeAt(1),n=r.value.length>2?r.value.charCodeAt(2):0),t.digitalSignature=(a&128)===128,t.nonRepudiation=(a&64)===64,t.keyEncipherment=(a&32)===32,t.dataEncipherment=(a&16)===16,t.keyAgreement=(a&8)===8,t.keyCertSign=(a&4)===4,t.cRLSign=(a&2)===2,t.encipherOnly=(a&1)===1,t.decipherOnly=(n&128)===128}else if(t.name==="basicConstraints"){var r=h.fromDer(t.value);r.value.length>0&&r.value[0].type===h.Type.BOOLEAN?t.cA=r.value[0].value.charCodeAt(0)!==0:t.cA=!1;var s=null;r.value.length>0&&r.value[0].type===h.Type.INTEGER?s=r.value[0].value:r.value.length>1&&(s=r.value[1].value),s!==null&&(t.pathLenConstraint=h.derToInteger(s))}else if(t.name==="extKeyUsage")for(var r=h.fromDer(t.value),i=0;i<r.value.length;++i){var o=h.derToOid(r.value[i].value);o in me?t[me[o]]=!0:t[o]=!0}else if(t.name==="nsCertType"){var r=h.fromDer(t.value),a=0;r.value.length>1&&(a=r.value.charCodeAt(1)),t.client=(a&128)===128,t.server=(a&64)===64,t.email=(a&32)===32,t.objsign=(a&16)===16,t.reserved=(a&8)===8,t.sslCA=(a&4)===4,t.emailCA=(a&2)===2,t.objCA=(a&1)===1}else if(t.name==="subjectAltName"||t.name==="issuerAltName"){t.altNames=[];for(var c,r=h.fromDer(t.value),l=0;l<r.value.length;++l){c=r.value[l];var u={type:c.type,value:c.value};switch(t.altNames.push(u),c.type){case 1:case 2:case 6:break;case 7:u.ip=W.util.bytesToIP(c.value);break;case 8:u.oid=h.derToOid(c.value);break}}}else if(t.name==="subjectKeyIdentifier"){var r=h.fromDer(t.value);t.subjectKeyIdentifier=W.util.bytesToHex(r.value)}}return t},O.certificationRequestFromAsn1=function(e,t){var r={},a=[];if(!h.validate(e,fC,r,a)){var n=new Error("Cannot read PKCS#10 certificate request. ASN.1 object is not a PKCS#10 CertificationRequest.");throw n.errors=a,n}var s=h.derToOid(r.publicKeyOid);if(s!==O.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var i=O.createCertificationRequest();if(i.version=r.csrVersion?r.csrVersion.charCodeAt(0):0,i.signatureOid=W.asn1.derToOid(r.csrSignatureOid),i.signatureParameters=cl(i.signatureOid,r.csrSignatureParams,!0),i.siginfo.algorithmOid=W.asn1.derToOid(r.csrSignatureOid),i.siginfo.parameters=cl(i.siginfo.algorithmOid,r.csrSignatureParams,!1),i.signature=r.csrSignature,i.certificationRequestInfo=r.certificationRequestInfo,t){i.md=ll({signatureOid:i.signatureOid,type:"certification request"});var o=h.toDer(i.certificationRequestInfo);i.md.update(o.getBytes())}var c=W.md.sha1.create();return i.subject.getField=function(l){return la(i.subject,l)},i.subject.addField=function(l){Ut([l]),i.subject.attributes.push(l)},i.subject.attributes=O.RDNAttributesAsArray(r.certificationRequestInfoSubject,c),i.subject.hash=c.digest().toHex(),i.publicKey=O.publicKeyFromAsn1(r.subjectPublicKeyInfo),i.getAttribute=function(l){return la(i,l)},i.addAttribute=function(l){Ut([l]),i.attributes.push(l)},i.attributes=O.CRIAttributesAsArray(r.certificationRequestInfoAttributes||[]),i},O.createCertificationRequest=function(){var e={};return e.version=0,e.signatureOid=null,e.signature=null,e.siginfo={},e.siginfo.algorithmOid=null,e.subject={},e.subject.getField=function(t){return la(e.subject,t)},e.subject.addField=function(t){Ut([t]),e.subject.attributes.push(t)},e.subject.attributes=[],e.subject.hash=null,e.publicKey=null,e.attributes=[],e.getAttribute=function(t){return la(e,t)},e.addAttribute=function(t){Ut([t]),e.attributes.push(t)},e.md=null,e.setSubject=function(t){Ut(t),e.subject.attributes=t,e.subject.hash=null},e.setAttributes=function(t){Ut(t),e.attributes=t},e.sign=function(t,r){e.md=r||W.md.sha1.create();var a=me[e.md.algorithm+"WithRSAEncryption"];if(!a){var n=new Error("Could not compute certification request digest. Unknown message digest algorithm OID.");throw n.algorithm=e.md.algorithm,n}e.signatureOid=e.siginfo.algorithmOid=a,e.certificationRequestInfo=O.getCertificationRequestInfo(e);var s=h.toDer(e.certificationRequestInfo);e.md.update(s.getBytes()),e.signature=t.sign(e.md)},e.verify=function(){var t=!1,r=e.md;if(r===null){r=ll({signatureOid:e.signatureOid,type:"certification request"});var a=e.certificationRequestInfo||O.getCertificationRequestInfo(e),n=h.toDer(a);r.update(n.getBytes())}return r!==null&&(t=S0({certificate:e,md:r,signature:e.signature})),t},e};function Wa(e){for(var t=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]),r,a,n=e.attributes,s=0;s<n.length;++s){r=n[s];var i=r.value,o=h.Type.PRINTABLESTRING;"valueTagClass"in r&&(o=r.valueTagClass,o===h.Type.UTF8&&(i=W.util.encodeUtf8(i))),a=h.create(h.Class.UNIVERSAL,h.Type.SET,!0,[h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(r.type).getBytes()),h.create(h.Class.UNIVERSAL,o,!1,i)])]),t.value.push(a)}return t}function Ut(e){for(var t,r=0;r<e.length;++r){if(t=e[r],typeof t.name>"u"&&(t.type&&t.type in O.oids?t.name=O.oids[t.type]:t.shortName&&t.shortName in De&&(t.name=O.oids[De[t.shortName]])),typeof t.type>"u")if(t.name&&t.name in O.oids)t.type=O.oids[t.name];else{var a=new Error("Attribute type not specified.");throw a.attribute=t,a}if(typeof t.shortName>"u"&&t.name&&t.name in De&&(t.shortName=De[t.name]),t.type===me.extensionRequest&&(t.valueConstructed=!0,t.valueTagClass=h.Type.SEQUENCE,!t.value&&t.extensions)){t.value=[];for(var n=0;n<t.extensions.length;++n)t.value.push(O.certificateExtensionToAsn1(T0(t.extensions[n])))}if(typeof t.value>"u"){var a=new Error("Attribute value not specified.");throw a.attribute=t,a}}}function T0(e,t){if(t=t||{},typeof e.name>"u"&&e.id&&e.id in O.oids&&(e.name=O.oids[e.id]),typeof e.id>"u")if(e.name&&e.name in O.oids)e.id=O.oids[e.name];else{var r=new Error("Extension ID not specified.");throw r.extension=e,r}if(typeof e.value<"u")return e;if(e.name==="keyUsage"){var a=0,n=0,s=0;e.digitalSignature&&(n|=128,a=7),e.nonRepudiation&&(n|=64,a=6),e.keyEncipherment&&(n|=32,a=5),e.dataEncipherment&&(n|=16,a=4),e.keyAgreement&&(n|=8,a=3),e.keyCertSign&&(n|=4,a=2),e.cRLSign&&(n|=2,a=1),e.encipherOnly&&(n|=1,a=0),e.decipherOnly&&(s|=128,a=7);var i=String.fromCharCode(a);s!==0?i+=String.fromCharCode(n)+String.fromCharCode(s):n!==0&&(i+=String.fromCharCode(n)),e.value=h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,i)}else if(e.name==="basicConstraints")e.value=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]),e.cA&&e.value.value.push(h.create(h.Class.UNIVERSAL,h.Type.BOOLEAN,!1,"\xFF")),"pathLenConstraint"in e&&e.value.value.push(h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,h.integerToDer(e.pathLenConstraint).getBytes()));else if(e.name==="extKeyUsage"){e.value=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);var o=e.value.value;for(var c in e)e[c]===!0&&(c in me?o.push(h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(me[c]).getBytes())):c.indexOf(".")!==-1&&o.push(h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(c).getBytes())))}else if(e.name==="nsCertType"){var a=0,n=0;e.client&&(n|=128,a=7),e.server&&(n|=64,a=6),e.email&&(n|=32,a=5),e.objsign&&(n|=16,a=4),e.reserved&&(n|=8,a=3),e.sslCA&&(n|=4,a=2),e.emailCA&&(n|=2,a=1),e.objCA&&(n|=1,a=0);var i=String.fromCharCode(a);n!==0&&(i+=String.fromCharCode(n)),e.value=h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,i)}else if(e.name==="subjectAltName"||e.name==="issuerAltName"){e.value=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);for(var l,u=0;u<e.altNames.length;++u){l=e.altNames[u];var i=l.value;if(l.type===7&&l.ip){if(i=W.util.bytesFromIP(l.ip),i===null){var r=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw r.extension=e,r}}else l.type===8&&(l.oid?i=h.oidToDer(h.oidToDer(l.oid)):i=h.oidToDer(i));e.value.value.push(h.create(h.Class.CONTEXT_SPECIFIC,l.type,!1,i))}}else if(e.name==="nsComment"&&t.cert){if(!/^[\x00-\x7F]*$/.test(e.comment)||e.comment.length<1||e.comment.length>128)throw new Error('Invalid "nsComment" content.');e.value=h.create(h.Class.UNIVERSAL,h.Type.IA5STRING,!1,e.comment)}else if(e.name==="subjectKeyIdentifier"&&t.cert){var p=t.cert.generateSubjectKeyIdentifier();e.subjectKeyIdentifier=p.toHex(),e.value=h.create(h.Class.UNIVERSAL,h.Type.OCTETSTRING,!1,p.getBytes())}else if(e.name==="authorityKeyIdentifier"&&t.cert){e.value=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);var o=e.value.value;if(e.keyIdentifier){var f=e.keyIdentifier===!0?t.cert.generateSubjectKeyIdentifier().getBytes():e.keyIdentifier;o.push(h.create(h.Class.CONTEXT_SPECIFIC,0,!1,f))}if(e.authorityCertIssuer){var x=[h.create(h.Class.CONTEXT_SPECIFIC,4,!0,[Wa(e.authorityCertIssuer===!0?t.cert.issuer:e.authorityCertIssuer)])];o.push(h.create(h.Class.CONTEXT_SPECIFIC,1,!0,x))}if(e.serialNumber){var m=W.util.hexToBytes(e.serialNumber===!0?t.cert.serialNumber:e.serialNumber);o.push(h.create(h.Class.CONTEXT_SPECIFIC,2,!1,m))}}else if(e.name==="cRLDistributionPoints"){e.value=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);for(var o=e.value.value,y=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]),b=h.create(h.Class.CONTEXT_SPECIFIC,0,!0,[]),l,u=0;u<e.altNames.length;++u){l=e.altNames[u];var i=l.value;if(l.type===7&&l.ip){if(i=W.util.bytesFromIP(l.ip),i===null){var r=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw r.extension=e,r}}else l.type===8&&(l.oid?i=h.oidToDer(h.oidToDer(l.oid)):i=h.oidToDer(i));b.value.push(h.create(h.Class.CONTEXT_SPECIFIC,l.type,!1,i))}y.value.push(h.create(h.Class.CONTEXT_SPECIFIC,0,!0,[b])),o.push(y)}if(typeof e.value>"u"){var r=new Error("Extension value not specified.");throw r.extension=e,r}return e}function Qu(e,t){switch(e){case me["RSASSA-PSS"]:var r=[];return t.hash.algorithmOid!==void 0&&r.push(h.create(h.Class.CONTEXT_SPECIFIC,0,!0,[h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(t.hash.algorithmOid).getBytes()),h.create(h.Class.UNIVERSAL,h.Type.NULL,!1,"")])])),t.mgf.algorithmOid!==void 0&&r.push(h.create(h.Class.CONTEXT_SPECIFIC,1,!0,[h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(t.mgf.algorithmOid).getBytes()),h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(t.mgf.hash.algorithmOid).getBytes()),h.create(h.Class.UNIVERSAL,h.Type.NULL,!1,"")])])])),t.saltLength!==void 0&&r.push(h.create(h.Class.CONTEXT_SPECIFIC,2,!0,[h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,h.integerToDer(t.saltLength).getBytes())])),h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,r);default:return h.create(h.Class.UNIVERSAL,h.Type.NULL,!1,"")}}function mC(e){var t=h.create(h.Class.CONTEXT_SPECIFIC,0,!0,[]);if(e.attributes.length===0)return t;for(var r=e.attributes,a=0;a<r.length;++a){var n=r[a],s=n.value,i=h.Type.UTF8;"valueTagClass"in n&&(i=n.valueTagClass),i===h.Type.UTF8&&(s=W.util.encodeUtf8(s));var o=!1;"valueConstructed"in n&&(o=n.valueConstructed);var c=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(n.type).getBytes()),h.create(h.Class.UNIVERSAL,h.Type.SET,!0,[h.create(h.Class.UNIVERSAL,i,o,s)])]);t.value.push(c)}return t}var hC=new Date("1950-01-01T00:00:00Z"),vC=new Date("2050-01-01T00:00:00Z");function w0(e){return e>=hC&&e<vC?h.create(h.Class.UNIVERSAL,h.Type.UTCTIME,!1,h.dateToUtcTime(e)):h.create(h.Class.UNIVERSAL,h.Type.GENERALIZEDTIME,!1,h.dateToGeneralizedTime(e))}O.getTBSCertificate=function(e){var t=w0(e.validity.notBefore),r=w0(e.validity.notAfter),a=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.CONTEXT_SPECIFIC,0,!0,[h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,h.integerToDer(e.version).getBytes())]),h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,W.util.hexToBytes(e.serialNumber)),h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(e.siginfo.algorithmOid).getBytes()),Qu(e.siginfo.algorithmOid,e.siginfo.parameters)]),Wa(e.issuer),h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[t,r]),Wa(e.subject),O.publicKeyToAsn1(e.publicKey)]);return e.issuer.uniqueId&&a.value.push(h.create(h.Class.CONTEXT_SPECIFIC,1,!0,[h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,"\0"+e.issuer.uniqueId)])),e.subject.uniqueId&&a.value.push(h.create(h.Class.CONTEXT_SPECIFIC,2,!0,[h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,"\0"+e.subject.uniqueId)])),e.extensions.length>0&&a.value.push(O.certificateExtensionsToAsn1(e.extensions)),a},O.getCertificationRequestInfo=function(e){var t=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.INTEGER,!1,h.integerToDer(e.version).getBytes()),Wa(e.subject),O.publicKeyToAsn1(e.publicKey),mC(e)]);return t},O.distinguishedNameToAsn1=function(e){return Wa(e)},O.certificateToAsn1=function(e){var t=e.tbsCertificate||O.getTBSCertificate(e);return h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[t,h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(e.signatureOid).getBytes()),Qu(e.signatureOid,e.signatureParameters)]),h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,"\0"+e.signature)])},O.certificateExtensionsToAsn1=function(e){var t=h.create(h.Class.CONTEXT_SPECIFIC,3,!0,[]),r=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);t.value.push(r);for(var a=0;a<e.length;++a)r.value.push(O.certificateExtensionToAsn1(e[a]));return t},O.certificateExtensionToAsn1=function(e){var t=h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[]);t.value.push(h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(e.id).getBytes())),e.critical&&t.value.push(h.create(h.Class.UNIVERSAL,h.Type.BOOLEAN,!1,"\xFF"));var r=e.value;return typeof e.value!="string"&&(r=h.toDer(r).getBytes()),t.value.push(h.create(h.Class.UNIVERSAL,h.Type.OCTETSTRING,!1,r)),t},O.certificationRequestToAsn1=function(e){var t=e.certificationRequestInfo||O.getCertificationRequestInfo(e);return h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[t,h.create(h.Class.UNIVERSAL,h.Type.SEQUENCE,!0,[h.create(h.Class.UNIVERSAL,h.Type.OID,!1,h.oidToDer(e.signatureOid).getBytes()),Qu(e.signatureOid,e.signatureParameters)]),h.create(h.Class.UNIVERSAL,h.Type.BITSTRING,!1,"\0"+e.signature)])},O.createCaStore=function(e){var t={certs:{}};t.getIssuer=function(i){var o=r(i.issuer);return o},t.addCertificate=function(i){if(typeof i=="string"&&(i=W.pki.certificateFromPem(i)),a(i.subject),!t.hasCertificate(i))if(i.subject.hash in t.certs){var o=t.certs[i.subject.hash];W.util.isArray(o)||(o=[o]),o.push(i),t.certs[i.subject.hash]=o}else t.certs[i.subject.hash]=i},t.hasCertificate=function(i){typeof i=="string"&&(i=W.pki.certificateFromPem(i));var o=r(i.subject);if(!o)return!1;W.util.isArray(o)||(o=[o]);for(var c=h.toDer(O.certificateToAsn1(i)).getBytes(),l=0;l<o.length;++l){var u=h.toDer(O.certificateToAsn1(o[l])).getBytes();if(c===u)return!0}return!1},t.listAllCertificates=function(){var i=[];for(var o in t.certs)if(t.certs.hasOwnProperty(o)){var c=t.certs[o];if(!W.util.isArray(c))i.push(c);else for(var l=0;l<c.length;++l)i.push(c[l])}return i},t.removeCertificate=function(i){var o;if(typeof i=="string"&&(i=W.pki.certificateFromPem(i)),a(i.subject),!t.hasCertificate(i))return null;var c=r(i.subject);if(!W.util.isArray(c))return o=t.certs[i.subject.hash],delete t.certs[i.subject.hash],o;for(var l=h.toDer(O.certificateToAsn1(i)).getBytes(),u=0;u<c.length;++u){var p=h.toDer(O.certificateToAsn1(c[u])).getBytes();l===p&&(o=c[u],c.splice(u,1))}return c.length===0&&delete t.certs[i.subject.hash],o};function r(i){return a(i),t.certs[i.hash]||null}function a(i){if(!i.hash){var o=W.md.sha1.create();i.attributes=O.RDNAttributesAsArray(Wa(i),o),i.hash=o.digest().toHex()}}if(e)for(var n=0;n<e.length;++n){var s=e[n];t.addCertificate(s)}return t},O.certificateError={bad_certificate:"forge.pki.BadCertificate",unsupported_certificate:"forge.pki.UnsupportedCertificate",certificate_revoked:"forge.pki.CertificateRevoked",certificate_expired:"forge.pki.CertificateExpired",certificate_unknown:"forge.pki.CertificateUnknown",unknown_ca:"forge.pki.UnknownCertificateAuthority"},O.verifyCertificateChain=function(e,t,r){typeof r=="function"&&(r={verify:r}),r=r||{},t=t.slice(0);var a=t.slice(0),n=r.validityCheckDate;typeof n>"u"&&(n=new Date);var s=!0,i=null,o=0;do{var c=t.shift(),l=null,u=!1;if(n&&(n<c.validity.notBefore||n>c.validity.notAfter)&&(i={message:"Certificate is not valid yet or has expired.",error:O.certificateError.certificate_expired,notBefore:c.validity.notBefore,notAfter:c.validity.notAfter,now:n}),i===null){if(l=t[0]||e.getIssuer(c),l===null&&c.isIssuer(c)&&(u=!0,l=c),l){var p=l;W.util.isArray(p)||(p=[p]);for(var f=!1;!f&&p.length>0;){l=p.shift();try{f=l.verify(c)}catch{}}f||(i={message:"Certificate signature is invalid.",error:O.certificateError.bad_certificate})}i===null&&(!l||u)&&!e.hasCertificate(c)&&(i={message:"Certificate is not trusted.",error:O.certificateError.unknown_ca})}if(i===null&&l&&!c.isIssuer(l)&&(i={message:"Certificate issuer is invalid.",error:O.certificateError.bad_certificate}),i===null)for(var x={keyUsage:!0,basicConstraints:!0},m=0;i===null&&m<c.extensions.length;++m){var y=c.extensions[m];y.critical&&!(y.name in x)&&(i={message:"Certificate has an unsupported critical extension.",error:O.certificateError.unsupported_certificate})}if(i===null&&(!s||t.length===0&&(!l||u))){var b=c.getExtension("basicConstraints"),S=c.getExtension("keyUsage");if(S!==null&&(!S.keyCertSign||b===null)&&(i={message:"Certificate keyUsage or basicConstraints conflict or indicate that the certificate is not a CA. If the certificate is the only one in the chain or isn't the first then the certificate must be a valid CA.",error:O.certificateError.bad_certificate}),i===null&&b===null&&(i={message:"Certificate is missing basicConstraints extension and cannot be used as a CA.",error:O.certificateError.bad_certificate}),i===null&&b!==null&&!b.cA&&(i={message:"Certificate basicConstraints indicates the certificate is not a CA.",error:O.certificateError.bad_certificate}),i===null&&S!==null&&"pathLenConstraint"in b){var B=o-1;B>b.pathLenConstraint&&(i={message:"Certificate basicConstraints pathLenConstraint violated.",error:O.certificateError.bad_certificate})}}var _=i===null?!0:i.error,P=r.verify?r.verify(_,o,a):_;if(P===!0)i=null;else throw _===!0&&(i={message:"The application rejected the certificate.",error:O.certificateError.bad_certificate}),(P||P===0)&&(typeof P=="object"&&!W.util.isArray(P)?(P.message&&(i.message=P.message),P.error&&(i.error=P.error)):typeof P=="string"&&(i.error=P)),i;s=!1,++o}while(t.length>0);return!0};var we=te,C=we.asn1,se=we.pki,mc=we.pkcs12=we.pkcs12||{},A0={name:"ContentInfo",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:C.Class.UNIVERSAL,type:C.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:C.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},gC={name:"PFX",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:C.Class.UNIVERSAL,type:C.Type.INTEGER,constructed:!1,capture:"version"},A0,{name:"PFX.macData",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:C.Class.UNIVERSAL,type:C.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",optional:!0,tagClass:C.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:C.Class.UNIVERSAL,type:C.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:C.Class.UNIVERSAL,type:C.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:C.Class.UNIVERSAL,type:C.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},xC={name:"SafeBag",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:C.Class.UNIVERSAL,type:C.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:C.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:C.Class.UNIVERSAL,type:C.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},yC={name:"Attribute",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:C.Class.UNIVERSAL,type:C.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:C.Class.UNIVERSAL,type:C.Type.SET,constructed:!0,capture:"values"}]},bC={name:"CertBag",tagClass:C.Class.UNIVERSAL,type:C.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:C.Class.UNIVERSAL,type:C.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:C.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:C.Class.UNIVERSAL,type:C.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function hc(e,t,r,a){for(var n=[],s=0;s<e.length;s++)for(var i=0;i<e[s].safeBags.length;i++){var o=e[s].safeBags[i];if(!(a!==void 0&&o.type!==a)){if(t===null){n.push(o);continue}o.attributes[t]!==void 0&&o.attributes[t].indexOf(r)>=0&&n.push(o)}}return n}mc.pkcs12FromAsn1=function(e,t,r){typeof t=="string"?(r=t,t=!0):t===void 0&&(t=!0);var a={},n=[];if(!C.validate(e,gC,a,n)){var s=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.");throw s.errors=s,s}var i={version:a.version.charCodeAt(0),safeContents:[],getBags:function(b){var S={},B;return"localKeyId"in b?B=b.localKeyId:"localKeyIdHex"in b&&(B=we.util.hexToBytes(b.localKeyIdHex)),B===void 0&&!("friendlyName"in b)&&"bagType"in b&&(S[b.bagType]=hc(i.safeContents,null,null,b.bagType)),B!==void 0&&(S.localKeyId=hc(i.safeContents,"localKeyId",B,b.bagType)),"friendlyName"in b&&(S.friendlyName=hc(i.safeContents,"friendlyName",b.friendlyName,b.bagType)),S},getBagsByFriendlyName:function(b,S){return hc(i.safeContents,"friendlyName",b,S)},getBagsByLocalKeyId:function(b,S){return hc(i.safeContents,"localKeyId",b,S)}};if(a.version.charCodeAt(0)!==3){var s=new Error("PKCS#12 PFX of version other than 3 not supported.");throw s.version=a.version.charCodeAt(0),s}if(C.derToOid(a.contentType)!==se.oids.data){var s=new Error("Only PKCS#12 PFX in password integrity mode supported.");throw s.oid=C.derToOid(a.contentType),s}var o=a.content.value[0];if(o.tagClass!==C.Class.UNIVERSAL||o.type!==C.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(o=Wu(o),a.mac){var c=null,l=0,u=C.derToOid(a.macAlgorithm);switch(u){case se.oids.sha1:c=we.md.sha1.create(),l=20;break;case se.oids.sha256:c=we.md.sha256.create(),l=32;break;case se.oids.sha384:c=we.md.sha384.create(),l=48;break;case se.oids.sha512:c=we.md.sha512.create(),l=64;break;case se.oids.md5:c=we.md.md5.create(),l=16;break}if(c===null)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+u);var p=new we.util.ByteBuffer(a.macSalt),f="macIterations"in a?parseInt(we.util.bytesToHex(a.macIterations),16):1,x=mc.generateKey(r,p,3,f,l,c),m=we.hmac.create();m.start(c,x),m.update(o.value);var y=m.getMac();if(y.getBytes()!==a.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}else if(Array.isArray(e.value)&&e.value.length>2)throw new Error("Invalid PKCS#12. macData field present but MAC was not validated.");return EC(i,o.value,t,r),i};function Wu(e){if(e.composed||e.constructed){for(var t=we.util.createBuffer(),r=0;r<e.value.length;++r)t.putBytes(e.value[r].value);e.composed=e.constructed=!1,e.value=t.getBytes()}return e}function EC(e,t,r,a){if(t=C.fromDer(t,r),t.tagClass!==C.Class.UNIVERSAL||t.type!==C.Type.SEQUENCE||t.constructed!==!0)throw new Error("PKCS#12 AuthenticatedSafe expected to be a SEQUENCE OF ContentInfo");for(var n=0;n<t.value.length;n++){var s=t.value[n],i={},o=[];if(!C.validate(s,A0,i,o)){var c=new Error("Cannot read ContentInfo.");throw c.errors=o,c}var l={encrypted:!1},u=null,p=i.content.value[0];switch(C.derToOid(i.contentType)){case se.oids.data:if(p.tagClass!==C.Class.UNIVERSAL||p.type!==C.Type.OCTETSTRING)throw new Error("PKCS#12 SafeContents Data is not an OCTET STRING.");u=Wu(p).value;break;case se.oids.encryptedData:u=CC(p,a),l.encrypted=!0;break;default:var c=new Error("Unsupported PKCS#12 contentType.");throw c.contentType=C.derToOid(i.contentType),c}l.safeBags=SC(u,r,a),e.safeContents.push(l)}}function CC(e,t){var r={},a=[];if(!C.validate(e,we.pkcs7.asn1.encryptedDataValidator,r,a)){var n=new Error("Cannot read EncryptedContentInfo.");throw n.errors=a,n}var s=C.derToOid(r.contentType);if(s!==se.oids.data){var n=new Error("PKCS#12 EncryptedContentInfo ContentType is not Data.");throw n.oid=s,n}s=C.derToOid(r.encAlgorithm);var i=se.pbe.getCipher(s,r.encParameter,t),o=Wu(r.encryptedContentAsn1),c=we.util.createBuffer(o.value);if(i.update(c),!i.finish())throw new Error("Failed to decrypt PKCS#12 SafeContents.");return i.output.getBytes()}function SC(e,t,r){if(!t&&e.length===0)return[];if(e=C.fromDer(e,t),e.tagClass!==C.Class.UNIVERSAL||e.type!==C.Type.SEQUENCE||e.constructed!==!0)throw new Error("PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.");for(var a=[],n=0;n<e.value.length;n++){var s=e.value[n],i={},o=[];if(!C.validate(s,xC,i,o)){var c=new Error("Cannot read SafeBag.");throw c.errors=o,c}var l={type:C.derToOid(i.bagId),attributes:TC(i.bagAttributes)};a.push(l);var u,p,f=i.bagValue.value[0];switch(l.type){case se.oids.pkcs8ShroudedKeyBag:if(f=se.decryptPrivateKeyInfo(f,r),f===null)throw new Error("Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?");case se.oids.keyBag:try{l.key=se.privateKeyFromAsn1(f)}catch{l.key=null,l.asn1=f}continue;case se.oids.certBag:u=bC,p=function(){if(C.derToOid(i.certId)!==se.oids.x509Certificate){var m=new Error("Unsupported certificate type, only X.509 supported.");throw m.oid=C.derToOid(i.certId),m}var y=C.fromDer(i.cert,t);try{l.cert=se.certificateFromAsn1(y,!0)}catch{l.cert=null,l.asn1=y}};break;default:var c=new Error("Unsupported PKCS#12 SafeBag type.");throw c.oid=l.type,c}if(u!==void 0&&!C.validate(f,u,i,o)){var c=new Error("Cannot read PKCS#12 "+u.name);throw c.errors=o,c}p()}return a}function TC(e){var t={};if(e!==void 0)for(var r=0;r<e.length;++r){var a={},n=[];if(!C.validate(e[r],yC,a,n)){var s=new Error("Cannot read PKCS#12 BagAttribute.");throw s.errors=n,s}var i=C.derToOid(a.oid);if(se.oids[i]!==void 0){t[se.oids[i]]=[];for(var o=0;o<a.values.length;++o)t[se.oids[i]].push(a.values[o].value)}}return t}mc.toPkcs12Asn1=function(e,t,r,a){a=a||{},a.saltSize=a.saltSize||8,a.count=a.count||2048,a.algorithm=a.algorithm||a.encAlgorithm||"aes128","useMac"in a||(a.useMac=!0),"localKeyId"in a||(a.localKeyId=null),"generateLocalKeyId"in a||(a.generateLocalKeyId=!0);var n=a.localKeyId,s;if(n!==null)n=we.util.hexToBytes(n);else if(a.generateLocalKeyId)if(t){var i=we.util.isArray(t)?t[0]:t;typeof i=="string"&&(i=se.certificateFromPem(i));var o=we.md.sha1.create();o.update(C.toDer(se.certificateToAsn1(i)).getBytes()),n=o.digest().getBytes()}else n=we.random.getBytes(20);var c=[];n!==null&&c.push(C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(se.oids.localKeyId).getBytes()),C.create(C.Class.UNIVERSAL,C.Type.SET,!0,[C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,n)])])),"friendlyName"in a&&c.push(C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(se.oids.friendlyName).getBytes()),C.create(C.Class.UNIVERSAL,C.Type.SET,!0,[C.create(C.Class.UNIVERSAL,C.Type.BMPSTRING,!1,a.friendlyName)])])),c.length>0&&(s=C.create(C.Class.UNIVERSAL,C.Type.SET,!0,c));var l=[],u=[];t!==null&&(we.util.isArray(t)?u=t:u=[t]);for(var p=[],f=0;f<u.length;++f){t=u[f],typeof t=="string"&&(t=se.certificateFromPem(t));var x=f===0?s:void 0,m=se.certificateToAsn1(t),y=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(se.oids.certBag).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(se.oids.x509Certificate).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,C.toDer(m).getBytes())])])]),x]);p.push(y)}if(p.length>0){var b=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,p),S=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(se.oids.data).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,C.toDer(b).getBytes())])]);l.push(S)}var B=null;if(e!==null){var _=se.wrapRsaPrivateKey(se.privateKeyToAsn1(e));r===null?B=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(se.oids.keyBag).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[_]),s]):B=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(se.oids.pkcs8ShroudedKeyBag).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[se.encryptPrivateKeyInfo(_,r,a)]),s]);var P=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[B]),U=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(se.oids.data).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,C.toDer(P).getBytes())])]);l.push(U)}var k=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,l),H;if(a.useMac){var o=we.md.sha1.create(),G=new we.util.ByteBuffer(we.random.getBytes(a.saltSize)),Z=a.count,e=mc.generateKey(r,G,3,Z,20),ce=we.hmac.create();ce.start(o,e),ce.update(C.toDer(k).getBytes());var pe=ce.getMac();H=C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(se.oids.sha1).getBytes()),C.create(C.Class.UNIVERSAL,C.Type.NULL,!1,"")]),C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,pe.getBytes())]),C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,G.getBytes()),C.create(C.Class.UNIVERSAL,C.Type.INTEGER,!1,C.integerToDer(Z).getBytes())])}return C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.INTEGER,!1,C.integerToDer(3).getBytes()),C.create(C.Class.UNIVERSAL,C.Type.SEQUENCE,!0,[C.create(C.Class.UNIVERSAL,C.Type.OID,!1,C.oidToDer(se.oids.data).getBytes()),C.create(C.Class.CONTEXT_SPECIFIC,0,!0,[C.create(C.Class.UNIVERSAL,C.Type.OCTETSTRING,!1,C.toDer(k).getBytes())])]),H])},mc.generateKey=we.pbe.generatePkcs12Key;var ua=te,Yu=ua.asn1,Ya=ua.pki=ua.pki||{};Ya.pemToDer=function(e){var t=ua.pem.decode(e)[0];if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert PEM to DER; PEM is encrypted.");return ua.util.createBuffer(t.body)},Ya.privateKeyFromPem=function(e){var t=ua.pem.decode(e)[0];if(t.type!=="PRIVATE KEY"&&t.type!=="RSA PRIVATE KEY"){var r=new Error('Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');throw r.headerType=t.type,r}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert private key from PEM; PEM is encrypted.");var a=Yu.fromDer(t.body);return Ya.privateKeyFromAsn1(a)},Ya.privateKeyToPem=function(e,t){var r={type:"RSA PRIVATE KEY",body:Yu.toDer(Ya.privateKeyToAsn1(e)).getBytes()};return ua.pem.encode(r,{maxline:t})},Ya.privateKeyInfoToPem=function(e,t){var r={type:"PRIVATE KEY",body:Yu.toDer(e).getBytes()};return ua.pem.encode(r,{maxline:t})};var L=te,ul=function(e,t,r,a){var n=L.util.createBuffer(),s=e.length>>1,i=s+(e.length&1),o=e.substr(0,i),c=e.substr(s,i),l=L.util.createBuffer(),u=L.hmac.create();r=t+r;var p=Math.ceil(a/16),f=Math.ceil(a/20);u.start("MD5",o);var x=L.util.createBuffer();l.putBytes(r);for(var m=0;m<p;++m)u.start(null,null),u.update(l.getBytes()),l.putBuffer(u.digest()),u.start(null,null),u.update(l.bytes()+r),x.putBuffer(u.digest());u.start("SHA1",c);var y=L.util.createBuffer();l.clear(),l.putBytes(r);for(var m=0;m<f;++m)u.start(null,null),u.update(l.getBytes()),l.putBuffer(u.digest()),u.start(null,null),u.update(l.bytes()+r),y.putBuffer(u.digest());return n.putBytes(L.util.xorBytes(x.getBytes(),y.getBytes(),a)),n},wC=function(e,t,r){var a=L.hmac.create();a.start("SHA1",e);var n=L.util.createBuffer();return n.putInt32(t[0]),n.putInt32(t[1]),n.putByte(r.type),n.putByte(r.version.major),n.putByte(r.version.minor),n.putInt16(r.length),n.putBytes(r.fragment.bytes()),a.update(n.getBytes()),a.digest().getBytes()},AC=function(e,t,r){var a=!1;try{var n=e.deflate(t.fragment.getBytes());t.fragment=L.util.createBuffer(n),t.length=n.length,a=!0}catch{}return a},IC=function(e,t,r){var a=!1;try{var n=e.inflate(t.fragment.getBytes());t.fragment=L.util.createBuffer(n),t.length=n.length,a=!0}catch{}return a},Bt=function(e,t){var r=0;switch(t){case 1:r=e.getByte();break;case 2:r=e.getInt16();break;case 3:r=e.getInt24();break;case 4:r=e.getInt32();break}return L.util.createBuffer(e.getBytes(r))},Dt=function(e,t,r){e.putInt(r.length(),t<<3),e.putBuffer(r)},g={};g.Versions={TLS_1_0:{major:3,minor:1},TLS_1_1:{major:3,minor:2},TLS_1_2:{major:3,minor:3}},g.SupportedVersions=[g.Versions.TLS_1_1,g.Versions.TLS_1_0],g.Version=g.SupportedVersions[0],g.MaxFragment=15360,g.ConnectionEnd={server:0,client:1},g.PRFAlgorithm={tls_prf_sha256:0},g.BulkCipherAlgorithm={none:null,rc4:0,des3:1,aes:2},g.CipherType={stream:0,block:1,aead:2},g.MACAlgorithm={none:null,hmac_md5:0,hmac_sha1:1,hmac_sha256:2,hmac_sha384:3,hmac_sha512:4},g.CompressionMethod={none:0,deflate:1},g.ContentType={change_cipher_spec:20,alert:21,handshake:22,application_data:23,heartbeat:24},g.HandshakeType={hello_request:0,client_hello:1,server_hello:2,certificate:11,server_key_exchange:12,certificate_request:13,server_hello_done:14,certificate_verify:15,client_key_exchange:16,finished:20},g.Alert={},g.Alert.Level={warning:1,fatal:2},g.Alert.Description={close_notify:0,unexpected_message:10,bad_record_mac:20,decryption_failed:21,record_overflow:22,decompression_failure:30,handshake_failure:40,bad_certificate:42,unsupported_certificate:43,certificate_revoked:44,certificate_expired:45,certificate_unknown:46,illegal_parameter:47,unknown_ca:48,access_denied:49,decode_error:50,decrypt_error:51,export_restriction:60,protocol_version:70,insufficient_security:71,internal_error:80,user_canceled:90,no_renegotiation:100},g.HeartbeatMessageType={heartbeat_request:1,heartbeat_response:2},g.CipherSuites={},g.getCipherSuite=function(e){var t=null;for(var r in g.CipherSuites){var a=g.CipherSuites[r];if(a.id[0]===e.charCodeAt(0)&&a.id[1]===e.charCodeAt(1)){t=a;break}}return t},g.handleUnexpected=function(e,t){var r=!e.open&&e.entity===g.ConnectionEnd.client;r||e.error(e,{message:"Unexpected message. Received TLS record out of order.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unexpected_message}})},g.handleHelloRequest=function(e,t,r){!e.handshaking&&e.handshakes>0&&(g.queue(e,g.createAlert(e,{level:g.Alert.Level.warning,description:g.Alert.Description.no_renegotiation})),g.flush(e)),e.process()},g.parseHelloMessage=function(e,t,r){var a=null,n=e.entity===g.ConnectionEnd.client;if(r<38)e.error(e,{message:n?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});else{var s=t.fragment,i=s.length();if(a={version:{major:s.getByte(),minor:s.getByte()},random:L.util.createBuffer(s.getBytes(32)),session_id:Bt(s,1),extensions:[]},n?(a.cipher_suite=s.getBytes(2),a.compression_method=s.getByte()):(a.cipher_suites=Bt(s,2),a.compression_methods=Bt(s,1)),i=r-(i-s.length()),i>0){for(var o=Bt(s,2);o.length()>0;)a.extensions.push({type:[o.getByte(),o.getByte()],data:Bt(o,2)});if(!n)for(var c=0;c<a.extensions.length;++c){var l=a.extensions[c];if(l.type[0]===0&&l.type[1]===0)for(var u=Bt(l.data,2);u.length()>0;){var p=u.getByte();if(p!==0)break;e.session.extensions.server_name.serverNameList.push(Bt(u,2).getBytes())}}}if(e.session.version&&(a.version.major!==e.session.version.major||a.version.minor!==e.session.version.minor))return e.error(e,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.protocol_version}});if(n)e.session.cipherSuite=g.getCipherSuite(a.cipher_suite);else for(var f=L.util.createBuffer(a.cipher_suites.bytes());f.length()>0&&(e.session.cipherSuite=g.getCipherSuite(f.getBytes(2)),e.session.cipherSuite===null););if(e.session.cipherSuite===null)return e.error(e,{message:"No cipher suites in common.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.handshake_failure},cipherSuite:L.util.bytesToHex(a.cipher_suite)});n?e.session.compressionMethod=a.compression_method:e.session.compressionMethod=g.CompressionMethod.none}return a},g.createSecurityParameters=function(e,t){var r=e.entity===g.ConnectionEnd.client,a=t.random.bytes(),n=r?e.session.sp.client_random:a,s=r?a:g.createRandom().getBytes();e.session.sp={entity:e.entity,prf_algorithm:g.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:e.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:n,server_random:s}},g.handleServerHello=function(e,t,r){var a=g.parseHelloMessage(e,t,r);if(!e.fail){if(a.version.minor<=e.version.minor)e.version.minor=a.version.minor;else return e.error(e,{message:"Incompatible TLS version.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.protocol_version}});e.session.version=e.version;var n=a.session_id.bytes();n.length>0&&n===e.session.id?(e.expect=B0,e.session.resuming=!0,e.session.sp.server_random=a.random.bytes()):(e.expect=_C,e.session.resuming=!1,g.createSecurityParameters(e,a)),e.session.id=n,e.process()}},g.handleClientHello=function(e,t,r){var a=g.parseHelloMessage(e,t,r);if(!e.fail){var n=a.session_id.bytes(),s=null;if(e.sessionCache&&(s=e.sessionCache.getSession(n),s===null?n="":(s.version.major!==a.version.major||s.version.minor>a.version.minor)&&(s=null,n="")),n.length===0&&(n=L.random.getBytes(32)),e.session.id=n,e.session.clientHelloVersion=a.version,e.session.sp={},s)e.version=e.session.version=s.version,e.session.sp=s.sp;else{for(var i,o=1;o<g.SupportedVersions.length&&(i=g.SupportedVersions[o],!(i.minor<=a.version.minor));++o);e.version={major:i.major,minor:i.minor},e.session.version=e.version}s!==null?(e.expect=Ju,e.session.resuming=!0,e.session.sp.client_random=a.random.bytes()):(e.expect=e.verifyClient!==!1?PC:Xu,e.session.resuming=!1,g.createSecurityParameters(e,a)),e.open=!0,g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createServerHello(e)})),e.session.resuming?(g.queue(e,g.createRecord(e,{type:g.ContentType.change_cipher_spec,data:g.createChangeCipherSpec()})),e.state.pending=g.createConnectionState(e),e.state.current.write=e.state.pending.write,g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createFinished(e)}))):(g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createCertificate(e)})),e.fail||(g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createServerKeyExchange(e)})),e.verifyClient!==!1&&g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createCertificateRequest(e)})),g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createServerHelloDone(e)})))),g.flush(e),e.process()}},g.handleCertificate=function(e,t,r){if(r<3)return e.error(e,{message:"Invalid Certificate message. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});var a=t.fragment,n={certificate_list:Bt(a,3)},s,i,o=[];try{for(;n.certificate_list.length()>0;)s=Bt(n.certificate_list,3),i=L.asn1.fromDer(s),s=L.pki.certificateFromAsn1(i,!0),o.push(s)}catch(l){return e.error(e,{message:"Could not parse certificate list.",cause:l,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.bad_certificate}})}var c=e.entity===g.ConnectionEnd.client;(c||e.verifyClient===!0)&&o.length===0?e.error(e,{message:c?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}}):o.length===0?e.expect=c?I0:Xu:(c?e.session.serverCertificate=o[0]:e.session.clientCertificate=o[0],g.verifyCertificateChain(e,o)&&(e.expect=c?I0:Xu)),e.process()},g.handleServerKeyExchange=function(e,t,r){if(r>0)return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unsupported_certificate}});e.expect=RC,e.process()},g.handleClientKeyExchange=function(e,t,r){if(r<48)return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unsupported_certificate}});var a=t.fragment,n={enc_pre_master_secret:Bt(a,2).getBytes()},s=null;if(e.getPrivateKey)try{s=e.getPrivateKey(e,e.session.serverCertificate),s=L.pki.privateKeyFromPem(s)}catch(c){e.error(e,{message:"Could not get private key.",cause:c,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}})}if(s===null)return e.error(e,{message:"No private key set.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}});try{var i=e.session.sp;i.pre_master_secret=s.decrypt(n.enc_pre_master_secret);var o=e.session.clientHelloVersion;if(o.major!==i.pre_master_secret.charCodeAt(0)||o.minor!==i.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch{i.pre_master_secret=L.random.getBytes(48)}e.expect=Ju,e.session.clientCertificate!==null&&(e.expect=OC),e.process()},g.handleCertificateRequest=function(e,t,r){if(r<3)return e.error(e,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});var a=t.fragment,n={certificate_types:Bt(a,1),certificate_authorities:Bt(a,2)};e.session.certificateRequest=n,e.expect=kC,e.process()},g.handleCertificateVerify=function(e,t,r){if(r<2)return e.error(e,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});var a=t.fragment;a.read-=4;var n=a.bytes();a.read+=4;var s={signature:Bt(a,2).getBytes()},i=L.util.createBuffer();i.putBuffer(e.session.md5.digest()),i.putBuffer(e.session.sha1.digest()),i=i.getBytes();try{var o=e.session.clientCertificate;if(!o.publicKey.verify(i,s.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");e.session.md5.update(n),e.session.sha1.update(n)}catch{return e.error(e,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.handshake_failure}})}e.expect=Ju,e.process()},g.handleServerHelloDone=function(e,t,r){if(r>0)return e.error(e,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.record_overflow}});if(e.serverCertificate===null){var a={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.insufficient_security}},n=0,s=e.verify(e,a.alert.description,n,[]);if(s!==!0)return(s||s===0)&&(typeof s=="object"&&!L.util.isArray(s)?(s.message&&(a.message=s.message),s.alert&&(a.alert.description=s.alert)):typeof s=="number"&&(a.alert.description=s)),e.error(e,a)}e.session.certificateRequest!==null&&(t=g.createRecord(e,{type:g.ContentType.handshake,data:g.createCertificate(e)}),g.queue(e,t)),t=g.createRecord(e,{type:g.ContentType.handshake,data:g.createClientKeyExchange(e)}),g.queue(e,t),e.expect=UC;var i=function(o,c){o.session.certificateRequest!==null&&o.session.clientCertificate!==null&&g.queue(o,g.createRecord(o,{type:g.ContentType.handshake,data:g.createCertificateVerify(o,c)})),g.queue(o,g.createRecord(o,{type:g.ContentType.change_cipher_spec,data:g.createChangeCipherSpec()})),o.state.pending=g.createConnectionState(o),o.state.current.write=o.state.pending.write,g.queue(o,g.createRecord(o,{type:g.ContentType.handshake,data:g.createFinished(o)})),o.expect=B0,g.flush(o),o.process()};if(e.session.certificateRequest===null||e.session.clientCertificate===null)return i(e,null);g.getClientSignature(e,i)},g.handleChangeCipherSpec=function(e,t){if(t.fragment.getByte()!==1)return e.error(e,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});var r=e.entity===g.ConnectionEnd.client;(e.session.resuming&&r||!e.session.resuming&&!r)&&(e.state.pending=g.createConnectionState(e)),e.state.current.read=e.state.pending.read,(!e.session.resuming&&r||e.session.resuming&&!r)&&(e.state.pending=null),e.expect=r?NC:FC,e.process()},g.handleFinished=function(e,t,r){var a=t.fragment;a.read-=4;var n=a.bytes();a.read+=4;var s=t.fragment.getBytes();a=L.util.createBuffer(),a.putBuffer(e.session.md5.digest()),a.putBuffer(e.session.sha1.digest());var i=e.entity===g.ConnectionEnd.client,o=i?"server finished":"client finished",c=e.session.sp,l=12,u=ul;if(a=u(c.master_secret,o,a.getBytes(),l),a.getBytes()!==s)return e.error(e,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.decrypt_error}});e.session.md5.update(n),e.session.sha1.update(n),(e.session.resuming&&i||!e.session.resuming&&!i)&&(g.queue(e,g.createRecord(e,{type:g.ContentType.change_cipher_spec,data:g.createChangeCipherSpec()})),e.state.current.write=e.state.pending.write,e.state.pending=null,g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createFinished(e)}))),e.expect=i?LC:MC,e.handshaking=!1,++e.handshakes,e.peerCertificate=i?e.session.serverCertificate:e.session.clientCertificate,g.flush(e),e.isConnected=!0,e.connected(e),e.process()},g.handleAlert=function(e,t){var r=t.fragment,a={level:r.getByte(),description:r.getByte()},n;switch(a.description){case g.Alert.Description.close_notify:n="Connection closed.";break;case g.Alert.Description.unexpected_message:n="Unexpected message.";break;case g.Alert.Description.bad_record_mac:n="Bad record MAC.";break;case g.Alert.Description.decryption_failed:n="Decryption failed.";break;case g.Alert.Description.record_overflow:n="Record overflow.";break;case g.Alert.Description.decompression_failure:n="Decompression failed.";break;case g.Alert.Description.handshake_failure:n="Handshake failure.";break;case g.Alert.Description.bad_certificate:n="Bad certificate.";break;case g.Alert.Description.unsupported_certificate:n="Unsupported certificate.";break;case g.Alert.Description.certificate_revoked:n="Certificate revoked.";break;case g.Alert.Description.certificate_expired:n="Certificate expired.";break;case g.Alert.Description.certificate_unknown:n="Certificate unknown.";break;case g.Alert.Description.illegal_parameter:n="Illegal parameter.";break;case g.Alert.Description.unknown_ca:n="Unknown certificate authority.";break;case g.Alert.Description.access_denied:n="Access denied.";break;case g.Alert.Description.decode_error:n="Decode error.";break;case g.Alert.Description.decrypt_error:n="Decrypt error.";break;case g.Alert.Description.export_restriction:n="Export restriction.";break;case g.Alert.Description.protocol_version:n="Unsupported protocol version.";break;case g.Alert.Description.insufficient_security:n="Insufficient security.";break;case g.Alert.Description.internal_error:n="Internal error.";break;case g.Alert.Description.user_canceled:n="User canceled.";break;case g.Alert.Description.no_renegotiation:n="Renegotiation not supported.";break;default:n="Unknown error.";break}if(a.description===g.Alert.Description.close_notify)return e.close();e.error(e,{message:n,send:!1,origin:e.entity===g.ConnectionEnd.client?"server":"client",alert:a}),e.process()},g.handleHandshake=function(e,t){var r=t.fragment,a=r.getByte(),n=r.getInt24();if(n>r.length())return e.fragmented=t,t.fragment=L.util.createBuffer(),r.read-=4,e.process();e.fragmented=null,r.read-=4;var s=r.bytes(n+4);r.read+=4,a in dl[e.entity][e.expect]?(e.entity===g.ConnectionEnd.server&&!e.open&&!e.fail&&(e.handshaking=!0,e.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:L.md.md5.create(),sha1:L.md.sha1.create()}),a!==g.HandshakeType.hello_request&&a!==g.HandshakeType.certificate_verify&&a!==g.HandshakeType.finished&&(e.session.md5.update(s),e.session.sha1.update(s)),dl[e.entity][e.expect][a](e,t,n)):g.handleUnexpected(e,t)},g.handleApplicationData=function(e,t){e.data.putBuffer(t.fragment),e.dataReady(e),e.process()},g.handleHeartbeat=function(e,t){var r=t.fragment,a=r.getByte(),n=r.getInt16(),s=r.getBytes(n);if(a===g.HeartbeatMessageType.heartbeat_request){if(e.handshaking||n>s.length)return e.process();g.queue(e,g.createRecord(e,{type:g.ContentType.heartbeat,data:g.createHeartbeat(g.HeartbeatMessageType.heartbeat_response,s)})),g.flush(e)}else if(a===g.HeartbeatMessageType.heartbeat_response){if(s!==e.expectedHeartbeatPayload)return e.process();e.heartbeatReceived&&e.heartbeatReceived(e,L.util.createBuffer(s))}e.process()};var BC=0,_C=1,I0=2,RC=3,kC=4,B0=5,NC=6,LC=7,UC=8,DC=0,PC=1,Xu=2,OC=3,Ju=4,FC=5,MC=6,v=g.handleUnexpected,_0=g.handleChangeCipherSpec,$e=g.handleAlert,ut=g.handleHandshake,R0=g.handleApplicationData,Ge=g.handleHeartbeat,Zu=[];Zu[g.ConnectionEnd.client]=[[v,$e,ut,v,Ge],[v,$e,ut,v,Ge],[v,$e,ut,v,Ge],[v,$e,ut,v,Ge],[v,$e,ut,v,Ge],[_0,$e,v,v,Ge],[v,$e,ut,v,Ge],[v,$e,ut,R0,Ge],[v,$e,ut,v,Ge]],Zu[g.ConnectionEnd.server]=[[v,$e,ut,v,Ge],[v,$e,ut,v,Ge],[v,$e,ut,v,Ge],[v,$e,ut,v,Ge],[_0,$e,v,v,Ge],[v,$e,ut,v,Ge],[v,$e,ut,R0,Ge],[v,$e,ut,v,Ge]];var pa=g.handleHelloRequest,VC=g.handleServerHello,k0=g.handleCertificate,N0=g.handleServerKeyExchange,ep=g.handleCertificateRequest,pl=g.handleServerHelloDone,L0=g.handleFinished,dl=[];dl[g.ConnectionEnd.client]=[[v,v,VC,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[pa,v,v,v,v,v,v,v,v,v,v,k0,N0,ep,pl,v,v,v,v,v,v],[pa,v,v,v,v,v,v,v,v,v,v,v,N0,ep,pl,v,v,v,v,v,v],[pa,v,v,v,v,v,v,v,v,v,v,v,v,ep,pl,v,v,v,v,v,v],[pa,v,v,v,v,v,v,v,v,v,v,v,v,v,pl,v,v,v,v,v,v],[pa,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[pa,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,L0],[pa,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[pa,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v]];var qC=g.handleClientHello,jC=g.handleClientKeyExchange,KC=g.handleCertificateVerify;dl[g.ConnectionEnd.server]=[[v,qC,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,k0,v,v,v,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,jC,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,KC,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,L0],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v]],g.generateKeys=function(e,t){var r=ul,a=t.client_random+t.server_random;e.session.resuming||(t.master_secret=r(t.pre_master_secret,"master secret",a,48).bytes(),t.pre_master_secret=null),a=t.server_random+t.client_random;var n=2*t.mac_key_length+2*t.enc_key_length,s=e.version.major===g.Versions.TLS_1_0.major&&e.version.minor===g.Versions.TLS_1_0.minor;s&&(n+=2*t.fixed_iv_length);var i=r(t.master_secret,"key expansion",a,n),o={client_write_MAC_key:i.getBytes(t.mac_key_length),server_write_MAC_key:i.getBytes(t.mac_key_length),client_write_key:i.getBytes(t.enc_key_length),server_write_key:i.getBytes(t.enc_key_length)};return s&&(o.client_write_IV=i.getBytes(t.fixed_iv_length),o.server_write_IV=i.getBytes(t.fixed_iv_length)),o},g.createConnectionState=function(e){var t=e.entity===g.ConnectionEnd.client,r=function(){var s={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(i){return!0},compressionState:null,compressFunction:function(i){return!0},updateSequenceNumber:function(){s.sequenceNumber[1]===4294967295?(s.sequenceNumber[1]=0,++s.sequenceNumber[0]):++s.sequenceNumber[1]}};return s},a={read:r(),write:r()};if(a.read.update=function(s,i){return a.read.cipherFunction(i,a.read)?a.read.compressFunction(s,i,a.read)||s.error(s,{message:"Could not decompress record.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.decompression_failure}}):s.error(s,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.bad_record_mac}}),!s.fail},a.write.update=function(s,i){return a.write.compressFunction(s,i,a.write)?a.write.cipherFunction(i,a.write)||s.error(s,{message:"Could not encrypt record.",send:!1,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}}):s.error(s,{message:"Could not compress record.",send:!1,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}}),!s.fail},e.session){var n=e.session.sp;switch(e.session.cipherSuite.initSecurityParameters(n),n.keys=g.generateKeys(e,n),a.read.macKey=t?n.keys.server_write_MAC_key:n.keys.client_write_MAC_key,a.write.macKey=t?n.keys.client_write_MAC_key:n.keys.server_write_MAC_key,e.session.cipherSuite.initConnectionState(a,e,n),n.compression_algorithm){case g.CompressionMethod.none:break;case g.CompressionMethod.deflate:a.read.compressFunction=IC,a.write.compressFunction=AC;break;default:throw new Error("Unsupported compression algorithm.")}}return a},g.createRandom=function(){var e=new Date,t=+e+e.getTimezoneOffset()*6e4,r=L.util.createBuffer();return r.putInt32(t),r.putBytes(L.random.getBytes(28)),r},g.createRecord=function(e,t){if(!t.data)return null;var r={type:t.type,version:{major:e.version.major,minor:e.version.minor},length:t.data.length(),fragment:t.data};return r},g.createAlert=function(e,t){var r=L.util.createBuffer();return r.putByte(t.level),r.putByte(t.description),g.createRecord(e,{type:g.ContentType.alert,data:r})},g.createClientHello=function(e){e.session.clientHelloVersion={major:e.version.major,minor:e.version.minor};for(var t=L.util.createBuffer(),r=0;r<e.cipherSuites.length;++r){var a=e.cipherSuites[r];t.putByte(a.id[0]),t.putByte(a.id[1])}var n=t.length(),s=L.util.createBuffer();s.putByte(g.CompressionMethod.none);var i=s.length(),o=L.util.createBuffer();if(e.virtualHost){var c=L.util.createBuffer();c.putByte(0),c.putByte(0);var l=L.util.createBuffer();l.putByte(0),Dt(l,2,L.util.createBuffer(e.virtualHost));var u=L.util.createBuffer();Dt(u,2,l),Dt(c,2,u),o.putBuffer(c)}var p=o.length();p>0&&(p+=2);var f=e.session.id,x=f.length+1+2+4+28+2+n+1+i+p,m=L.util.createBuffer();return m.putByte(g.HandshakeType.client_hello),m.putInt24(x),m.putByte(e.version.major),m.putByte(e.version.minor),m.putBytes(e.session.sp.client_random),Dt(m,1,L.util.createBuffer(f)),Dt(m,2,t),Dt(m,1,s),p>0&&Dt(m,2,o),m},g.createServerHello=function(e){var t=e.session.id,r=t.length+1+2+4+28+2+1,a=L.util.createBuffer();return a.putByte(g.HandshakeType.server_hello),a.putInt24(r),a.putByte(e.version.major),a.putByte(e.version.minor),a.putBytes(e.session.sp.server_random),Dt(a,1,L.util.createBuffer(t)),a.putByte(e.session.cipherSuite.id[0]),a.putByte(e.session.cipherSuite.id[1]),a.putByte(e.session.compressionMethod),a},g.createCertificate=function(e){var t=e.entity===g.ConnectionEnd.client,r=null;if(e.getCertificate){var a;t?a=e.session.certificateRequest:a=e.session.extensions.server_name.serverNameList,r=e.getCertificate(e,a)}var n=L.util.createBuffer();if(r!==null)try{L.util.isArray(r)||(r=[r]);for(var s=null,i=0;i<r.length;++i){var o=L.pem.decode(r[i])[0];if(o.type!=="CERTIFICATE"&&o.type!=="X509 CERTIFICATE"&&o.type!=="TRUSTED CERTIFICATE"){var c=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw c.headerType=o.type,c}if(o.procType&&o.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var l=L.util.createBuffer(o.body);s===null&&(s=L.asn1.fromDer(l.bytes(),!1));var u=L.util.createBuffer();Dt(u,3,l),n.putBuffer(u)}r=L.pki.certificateFromAsn1(s),t?e.session.clientCertificate=r:e.session.serverCertificate=r}catch(x){return e.error(e,{message:"Could not send certificate list.",cause:x,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.bad_certificate}})}var p=3+n.length(),f=L.util.createBuffer();return f.putByte(g.HandshakeType.certificate),f.putInt24(p),Dt(f,3,n),f},g.createClientKeyExchange=function(e){var t=L.util.createBuffer();t.putByte(e.session.clientHelloVersion.major),t.putByte(e.session.clientHelloVersion.minor),t.putBytes(L.random.getBytes(46));var r=e.session.sp;r.pre_master_secret=t.getBytes();var a=e.session.serverCertificate.publicKey;t=a.encrypt(r.pre_master_secret);var n=t.length+2,s=L.util.createBuffer();return s.putByte(g.HandshakeType.client_key_exchange),s.putInt24(n),s.putInt16(t.length),s.putBytes(t),s},g.createServerKeyExchange=function(e){var t=L.util.createBuffer();return t},g.getClientSignature=function(e,t){var r=L.util.createBuffer();r.putBuffer(e.session.md5.digest()),r.putBuffer(e.session.sha1.digest()),r=r.getBytes(),e.getSignature=e.getSignature||function(a,n,s){var i=null;if(a.getPrivateKey)try{i=a.getPrivateKey(a,a.session.clientCertificate),i=L.pki.privateKeyFromPem(i)}catch(o){a.error(a,{message:"Could not get private key.",cause:o,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}})}i===null?a.error(a,{message:"No private key set.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}}):n=i.sign(n,null),s(a,n)},e.getSignature(e,r,t)},g.createCertificateVerify=function(e,t){var r=t.length+2,a=L.util.createBuffer();return a.putByte(g.HandshakeType.certificate_verify),a.putInt24(r),a.putInt16(t.length),a.putBytes(t),a},g.createCertificateRequest=function(e){var t=L.util.createBuffer();t.putByte(1);var r=L.util.createBuffer();for(var a in e.caStore.certs){var n=e.caStore.certs[a],s=L.pki.distinguishedNameToAsn1(n.subject),i=L.asn1.toDer(s);r.putInt16(i.length()),r.putBuffer(i)}var o=1+t.length()+2+r.length(),c=L.util.createBuffer();return c.putByte(g.HandshakeType.certificate_request),c.putInt24(o),Dt(c,1,t),Dt(c,2,r),c},g.createServerHelloDone=function(e){var t=L.util.createBuffer();return t.putByte(g.HandshakeType.server_hello_done),t.putInt24(0),t},g.createChangeCipherSpec=function(){var e=L.util.createBuffer();return e.putByte(1),e},g.createFinished=function(e){var t=L.util.createBuffer();t.putBuffer(e.session.md5.digest()),t.putBuffer(e.session.sha1.digest());var r=e.entity===g.ConnectionEnd.client,a=e.session.sp,n=12,s=ul,i=r?"client finished":"server finished";t=s(a.master_secret,i,t.getBytes(),n);var o=L.util.createBuffer();return o.putByte(g.HandshakeType.finished),o.putInt24(t.length()),o.putBuffer(t),o},g.createHeartbeat=function(e,t,r){typeof r>"u"&&(r=t.length);var a=L.util.createBuffer();a.putByte(e),a.putInt16(r),a.putBytes(t);var n=a.length(),s=Math.max(16,n-r-3);return a.putBytes(L.random.getBytes(s)),a},g.queue=function(e,t){if(t&&!(t.fragment.length()===0&&(t.type===g.ContentType.handshake||t.type===g.ContentType.alert||t.type===g.ContentType.change_cipher_spec))){if(t.type===g.ContentType.handshake){var r=t.fragment.bytes();e.session.md5.update(r),e.session.sha1.update(r),r=null}var a;if(t.fragment.length()<=g.MaxFragment)a=[t];else{a=[];for(var n=t.fragment.bytes();n.length>g.MaxFragment;)a.push(g.createRecord(e,{type:t.type,data:L.util.createBuffer(n.slice(0,g.MaxFragment))})),n=n.slice(g.MaxFragment);n.length>0&&a.push(g.createRecord(e,{type:t.type,data:L.util.createBuffer(n)}))}for(var s=0;s<a.length&&!e.fail;++s){var i=a[s],o=e.state.current.write;o.update(e,i)&&e.records.push(i)}}},g.flush=function(e){for(var t=0;t<e.records.length;++t){var r=e.records[t];e.tlsData.putByte(r.type),e.tlsData.putByte(r.version.major),e.tlsData.putByte(r.version.minor),e.tlsData.putInt16(r.fragment.length()),e.tlsData.putBuffer(e.records[t].fragment)}return e.records=[],e.tlsDataReady(e)};var tp=function(e){switch(e){case!0:return!0;case L.pki.certificateError.bad_certificate:return g.Alert.Description.bad_certificate;case L.pki.certificateError.unsupported_certificate:return g.Alert.Description.unsupported_certificate;case L.pki.certificateError.certificate_revoked:return g.Alert.Description.certificate_revoked;case L.pki.certificateError.certificate_expired:return g.Alert.Description.certificate_expired;case L.pki.certificateError.certificate_unknown:return g.Alert.Description.certificate_unknown;case L.pki.certificateError.unknown_ca:return g.Alert.Description.unknown_ca;default:return g.Alert.Description.bad_certificate}},zC=function(e){switch(e){case!0:return!0;case g.Alert.Description.bad_certificate:return L.pki.certificateError.bad_certificate;case g.Alert.Description.unsupported_certificate:return L.pki.certificateError.unsupported_certificate;case g.Alert.Description.certificate_revoked:return L.pki.certificateError.certificate_revoked;case g.Alert.Description.certificate_expired:return L.pki.certificateError.certificate_expired;case g.Alert.Description.certificate_unknown:return L.pki.certificateError.certificate_unknown;case g.Alert.Description.unknown_ca:return L.pki.certificateError.unknown_ca;default:return L.pki.certificateError.bad_certificate}};g.verifyCertificateChain=function(e,t){try{var r={};for(var a in e.verifyOptions)r[a]=e.verifyOptions[a];r.verify=function(s,i,o){var c=tp(s),l=e.verify(e,s,i,o);if(l!==!0){if(typeof l=="object"&&!L.util.isArray(l)){var u=new Error("The application rejected the certificate.");throw u.send=!0,u.alert={level:g.Alert.Level.fatal,description:g.Alert.Description.bad_certificate},l.message&&(u.message=l.message),l.alert&&(u.alert.description=l.alert),u}l!==s&&(l=zC(l))}return l},L.pki.verifyCertificateChain(e.caStore,t,r)}catch(s){var n=s;(typeof n!="object"||L.util.isArray(n))&&(n={send:!0,alert:{level:g.Alert.Level.fatal,description:tp(s)}}),"send"in n||(n.send=!0),"alert"in n||(n.alert={level:g.Alert.Level.fatal,description:tp(n.error)}),e.error(e,n)}return!e.fail},g.createSessionCache=function(e,t){var r=null;if(e&&e.getSession&&e.setSession&&e.order)r=e;else{r={},r.cache=e||{},r.capacity=Math.max(t||100,1),r.order=[];for(var a in e)r.order.length<=t?r.order.push(a):delete e[a];r.getSession=function(n){var s=null,i=null;if(n?i=L.util.bytesToHex(n):r.order.length>0&&(i=r.order[0]),i!==null&&i in r.cache){s=r.cache[i],delete r.cache[i];for(var o in r.order)if(r.order[o]===i){r.order.splice(o,1);break}}return s},r.setSession=function(n,s){if(r.order.length===r.capacity){var i=r.order.shift();delete r.cache[i]}var i=L.util.bytesToHex(n);r.order.push(i),r.cache[i]=s}}return r},g.createConnection=function(e){var t=null;e.caStore?L.util.isArray(e.caStore)?t=L.pki.createCaStore(e.caStore):t=e.caStore:t=L.pki.createCaStore();var r=e.cipherSuites||null;if(r===null){r=[];for(var a in g.CipherSuites)r.push(g.CipherSuites[a])}var n=e.server?g.ConnectionEnd.server:g.ConnectionEnd.client,s=e.sessionCache?g.createSessionCache(e.sessionCache):null,i={version:{major:g.Version.major,minor:g.Version.minor},entity:n,sessionId:e.sessionId,caStore:t,sessionCache:s,cipherSuites:r,connected:e.connected,virtualHost:e.virtualHost||null,verifyClient:e.verifyClient||!1,verify:e.verify||function(u,p,f,x){return p},verifyOptions:e.verifyOptions||{},getCertificate:e.getCertificate||null,getPrivateKey:e.getPrivateKey||null,getSignature:e.getSignature||null,input:L.util.createBuffer(),tlsData:L.util.createBuffer(),data:L.util.createBuffer(),tlsDataReady:e.tlsDataReady,dataReady:e.dataReady,heartbeatReceived:e.heartbeatReceived,closed:e.closed,error:function(u,p){p.origin=p.origin||(u.entity===g.ConnectionEnd.client?"client":"server"),p.send&&(g.queue(u,g.createAlert(u,p.alert)),g.flush(u));var f=p.fatal!==!1;f&&(u.fail=!0),e.error(u,p),f&&u.close(!1)},deflate:e.deflate||null,inflate:e.inflate||null};i.reset=function(u){i.version={major:g.Version.major,minor:g.Version.minor},i.record=null,i.session=null,i.peerCertificate=null,i.state={pending:null,current:null},i.expect=i.entity===g.ConnectionEnd.client?BC:DC,i.fragmented=null,i.records=[],i.open=!1,i.handshakes=0,i.handshaking=!1,i.isConnected=!1,i.fail=!(u||typeof u>"u"),i.input.clear(),i.tlsData.clear(),i.data.clear(),i.state.current=g.createConnectionState(i)},i.reset();var o=function(u,p){var f=p.type-g.ContentType.change_cipher_spec,x=Zu[u.entity][u.expect];f in x?x[f](u,p):g.handleUnexpected(u,p)},c=function(u){var p=0,f=u.input,x=f.length();if(x<5)p=5-x;else{u.record={type:f.getByte(),version:{major:f.getByte(),minor:f.getByte()},length:f.getInt16(),fragment:L.util.createBuffer(),ready:!1};var m=u.record.version.major===u.version.major;m&&u.session&&u.session.version&&(m=u.record.version.minor===u.version.minor),m||u.error(u,{message:"Incompatible TLS version.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.protocol_version}})}return p},l=function(u){var p=0,f=u.input,x=f.length();if(x<u.record.length)p=u.record.length-x;else{u.record.fragment.putBytes(f.getBytes(u.record.length)),f.compact();var m=u.state.current.read;m.update(u,u.record)&&(u.fragmented!==null&&(u.fragmented.type===u.record.type?(u.fragmented.fragment.putBuffer(u.record.fragment),u.record=u.fragmented):u.error(u,{message:"Invalid fragmented record.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unexpected_message}})),u.record.ready=!0)}return p};return i.handshake=function(u){if(i.entity!==g.ConnectionEnd.client)i.error(i,{message:"Cannot initiate handshake as a server.",fatal:!1});else if(i.handshaking)i.error(i,{message:"Handshake already in progress.",fatal:!1});else{i.fail&&!i.open&&i.handshakes===0&&(i.fail=!1),i.handshaking=!0,u=u||"";var p=null;u.length>0&&(i.sessionCache&&(p=i.sessionCache.getSession(u)),p===null&&(u="")),u.length===0&&i.sessionCache&&(p=i.sessionCache.getSession(),p!==null&&(u=p.id)),i.session={id:u,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:L.md.md5.create(),sha1:L.md.sha1.create()},p&&(i.version=p.version,i.session.sp=p.sp),i.session.sp.client_random=g.createRandom().getBytes(),i.open=!0,g.queue(i,g.createRecord(i,{type:g.ContentType.handshake,data:g.createClientHello(i)})),g.flush(i)}},i.process=function(u){var p=0;return u&&i.input.putBytes(u),i.fail||(i.record!==null&&i.record.ready&&i.record.fragment.isEmpty()&&(i.record=null),i.record===null&&(p=c(i)),!i.fail&&i.record!==null&&!i.record.ready&&(p=l(i)),!i.fail&&i.record!==null&&i.record.ready&&o(i,i.record)),p},i.prepare=function(u){return g.queue(i,g.createRecord(i,{type:g.ContentType.application_data,data:L.util.createBuffer(u)})),g.flush(i)},i.prepareHeartbeatRequest=function(u,p){return u instanceof L.util.ByteBuffer&&(u=u.bytes()),typeof p>"u"&&(p=u.length),i.expectedHeartbeatPayload=u,g.queue(i,g.createRecord(i,{type:g.ContentType.heartbeat,data:g.createHeartbeat(g.HeartbeatMessageType.heartbeat_request,u,p)})),g.flush(i)},i.close=function(u){if(!i.fail&&i.sessionCache&&i.session){var p={id:i.session.id,version:i.session.version,sp:i.session.sp};p.sp.keys=null,i.sessionCache.setSession(p.id,p)}i.open&&(i.open=!1,i.input.clear(),(i.isConnected||i.handshaking)&&(i.isConnected=i.handshaking=!1,g.queue(i,g.createAlert(i,{level:g.Alert.Level.warning,description:g.Alert.Description.close_notify})),g.flush(i)),i.closed(i)),i.reset(u)},i},L.tls=L.tls||{};for(var ap in g)typeof g[ap]!="function"&&(L.tls[ap]=g[ap]);L.tls.prf_tls1=ul,L.tls.hmac_sha1=wC,L.tls.createSessionCache=g.createSessionCache,L.tls.createConnection=g.createConnection;var da=te,Pt=da.tls;Pt.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=Pt.BulkCipherAlgorithm.aes,e.cipher_type=Pt.CipherType.block,e.enc_key_length=16,e.block_length=16,e.fixed_iv_length=16,e.record_iv_length=16,e.mac_algorithm=Pt.MACAlgorithm.hmac_sha1,e.mac_length=20,e.mac_key_length=20},initConnectionState:U0},Pt.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=Pt.BulkCipherAlgorithm.aes,e.cipher_type=Pt.CipherType.block,e.enc_key_length=32,e.block_length=16,e.fixed_iv_length=16,e.record_iv_length=16,e.mac_algorithm=Pt.MACAlgorithm.hmac_sha1,e.mac_length=20,e.mac_key_length=20},initConnectionState:U0};function U0(e,t,r){var a=t.entity===da.tls.ConnectionEnd.client;e.read.cipherState={init:!1,cipher:da.cipher.createDecipher("AES-CBC",a?r.keys.server_write_key:r.keys.client_write_key),iv:a?r.keys.server_write_IV:r.keys.client_write_IV},e.write.cipherState={init:!1,cipher:da.cipher.createCipher("AES-CBC",a?r.keys.client_write_key:r.keys.server_write_key),iv:a?r.keys.client_write_IV:r.keys.server_write_IV},e.read.cipherFunction=QC,e.write.cipherFunction=HC,e.read.macLength=e.write.macLength=r.mac_length,e.read.macFunction=e.write.macFunction=Pt.hmac_sha1}function HC(e,t){var r=!1,a=t.macFunction(t.macKey,t.sequenceNumber,e);e.fragment.putBytes(a),t.updateSequenceNumber();var n;e.version.minor===Pt.Versions.TLS_1_0.minor?n=t.cipherState.init?null:t.cipherState.iv:n=da.random.getBytesSync(16),t.cipherState.init=!0;var s=t.cipherState.cipher;return s.start({iv:n}),e.version.minor>=Pt.Versions.TLS_1_1.minor&&s.output.putBytes(n),s.update(e.fragment),s.finish($C)&&(e.fragment=s.output,e.length=e.fragment.length(),r=!0),r}function $C(e,t,r){if(!r){var a=e-t.length()%e;t.fillWithByte(a-1,a)}return!0}function GC(e,t,r){var a=!0;if(r){for(var n=t.length(),s=t.last(),i=n-1-s;i<n-1;++i)a=a&&t.at(i)==s;a&&t.truncate(s+1)}return a}function QC(e,t){var r=!1,a;e.version.minor===Pt.Versions.TLS_1_0.minor?a=t.cipherState.init?null:t.cipherState.iv:a=e.fragment.getBytes(16),t.cipherState.init=!0;var n=t.cipherState.cipher;n.start({iv:a}),n.update(e.fragment),r=n.finish(GC);var s=t.macLength,i=da.random.getBytesSync(s),o=n.output.length();o>=s?(e.fragment=n.output.getBytes(o-s),i=n.output.getBytes(s)):e.fragment=n.output.getBytes(),e.fragment=da.util.createBuffer(e.fragment),e.length=e.fragment.length();var c=t.macFunction(t.macKey,t.sequenceNumber,e);return t.updateSequenceNumber(),r=WC(t.macKey,i,c)&&r,r}function WC(e,t,r){var a=da.hmac.create();return a.start("SHA1",e),a.update(t),t=a.digest().getBytes(),a.start(null,null),a.update(r),r=a.digest().getBytes(),t===r}var Be=te,vc=Be.sha512=Be.sha512||{};Be.md.sha512=Be.md.algorithms.sha512=vc;var D0=Be.sha384=Be.sha512.sha384=Be.sha512.sha384||{};D0.create=function(){return vc.create("SHA-384")},Be.md.sha384=Be.md.algorithms.sha384=D0,Be.sha512.sha256=Be.sha512.sha256||{create:function(){return vc.create("SHA-512/256")}},Be.md["sha512/256"]=Be.md.algorithms["sha512/256"]=Be.sha512.sha256,Be.sha512.sha224=Be.sha512.sha224||{create:function(){return vc.create("SHA-512/224")}},Be.md["sha512/224"]=Be.md.algorithms["sha512/224"]=Be.sha512.sha224,vc.create=function(e){if(P0||YC(),typeof e>"u"&&(e="SHA-512"),!(e in ka))throw new Error("Invalid SHA-512 algorithm: "+e);for(var t=ka[e],r=null,a=Be.util.createBuffer(),n=new Array(80),s=0;s<80;++s)n[s]=new Array(2);var i=64;switch(e){case"SHA-384":i=48;break;case"SHA-512/256":i=32;break;case"SHA-512/224":i=28;break}var o={algorithm:e.replace("-","").toLowerCase(),blockLength:128,digestLength:i,messageLength:0,fullMessageLength:null,messageLengthSize:16};return o.start=function(){o.messageLength=0,o.fullMessageLength=o.messageLength128=[];for(var c=o.messageLengthSize/4,l=0;l<c;++l)o.fullMessageLength.push(0);a=Be.util.createBuffer(),r=new Array(t.length);for(var l=0;l<t.length;++l)r[l]=t[l].slice(0);return o},o.start(),o.update=function(c,l){l==="utf8"&&(c=Be.util.encodeUtf8(c));var u=c.length;o.messageLength+=u,u=[u/4294967296>>>0,u>>>0];for(var p=o.fullMessageLength.length-1;p>=0;--p)o.fullMessageLength[p]+=u[1],u[1]=u[0]+(o.fullMessageLength[p]/4294967296>>>0),o.fullMessageLength[p]=o.fullMessageLength[p]>>>0,u[0]=u[1]/4294967296>>>0;return a.putBytes(c),O0(r,n,a),(a.read>2048||a.length()===0)&&a.compact(),o},o.digest=function(){var c=Be.util.createBuffer();c.putBytes(a.bytes());var l=o.fullMessageLength[o.fullMessageLength.length-1]+o.messageLengthSize,u=l&o.blockLength-1;c.putBytes(rp.substr(0,o.blockLength-u));for(var p,f,x=o.fullMessageLength[0]*8,m=0;m<o.fullMessageLength.length-1;++m)p=o.fullMessageLength[m+1]*8,f=p/4294967296>>>0,x+=f,c.putInt32(x>>>0),x=p>>>0;c.putInt32(x);for(var y=new Array(r.length),m=0;m<r.length;++m)y[m]=r[m].slice(0);O0(y,n,c);var b=Be.util.createBuffer(),S;e==="SHA-512"?S=y.length:e==="SHA-384"?S=y.length-2:S=y.length-4;for(var m=0;m<S;++m)b.putInt32(y[m][0]),(m!==S-1||e!=="SHA-512/224")&&b.putInt32(y[m][1]);return b},o};var rp=null,P0=!1,np=null,ka=null;function YC(){rp="\x80",rp+=Be.util.fillString("\0",128),np=[[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]],ka={},ka["SHA-512"]=[[1779033703,4089235720],[3144134277,2227873595],[1013904242,4271175723],[2773480762,1595750129],[1359893119,2917565137],[2600822924,725511199],[528734635,4215389547],[1541459225,327033209]],ka["SHA-384"]=[[3418070365,3238371032],[1654270250,914150663],[2438529370,812702999],[355462360,4144912697],[1731405415,4290775857],[2394180231,1750603025],[3675008525,1694076839],[1203062813,3204075428]],ka["SHA-512/256"]=[[573645204,4230739756],[2673172387,3360449730],[596883563,1867755857],[2520282905,1497426621],[2519219938,2827943907],[3193839141,1401305490],[721525244,746961066],[246885852,2177182882]],ka["SHA-512/224"]=[[2352822216,424955298],[1944164710,2312950998],[502970286,855612546],[1738396948,1479516111],[258812777,2077511080],[2011393907,79989058],[1067287976,1780299464],[286451373,2446758561]],P0=!0}function O0(e,t,r){for(var a,n,s,i,o,c,l,u,p,f,x,m,y,b,S,B,_,P,U,k,H,G,Z,ce,pe,he,_e,ke,le,ae,j,Ne,At,$,M,X=r.length();X>=128;){for(le=0;le<16;++le)t[le][0]=r.getInt32()>>>0,t[le][1]=r.getInt32()>>>0;for(;le<80;++le)Ne=t[le-2],ae=Ne[0],j=Ne[1],a=((ae>>>19|j<<13)^(j>>>29|ae<<3)^ae>>>6)>>>0,n=((ae<<13|j>>>19)^(j<<3|ae>>>29)^(ae<<26|j>>>6))>>>0,$=t[le-15],ae=$[0],j=$[1],s=((ae>>>1|j<<31)^(ae>>>8|j<<24)^ae>>>7)>>>0,i=((ae<<31|j>>>1)^(ae<<24|j>>>8)^(ae<<25|j>>>7))>>>0,At=t[le-7],M=t[le-16],j=n+At[1]+i+M[1],t[le][0]=a+At[0]+s+M[0]+(j/4294967296>>>0)>>>0,t[le][1]=j>>>0;for(y=e[0][0],b=e[0][1],S=e[1][0],B=e[1][1],_=e[2][0],P=e[2][1],U=e[3][0],k=e[3][1],H=e[4][0],G=e[4][1],Z=e[5][0],ce=e[5][1],pe=e[6][0],he=e[6][1],_e=e[7][0],ke=e[7][1],le=0;le<80;++le)l=((H>>>14|G<<18)^(H>>>18|G<<14)^(G>>>9|H<<23))>>>0,u=((H<<18|G>>>14)^(H<<14|G>>>18)^(G<<23|H>>>9))>>>0,p=(pe^H&(Z^pe))>>>0,f=(he^G&(ce^he))>>>0,o=((y>>>28|b<<4)^(b>>>2|y<<30)^(b>>>7|y<<25))>>>0,c=((y<<4|b>>>28)^(b<<30|y>>>2)^(b<<25|y>>>7))>>>0,x=(y&S|_&(y^S))>>>0,m=(b&B|P&(b^B))>>>0,j=ke+u+f+np[le][1]+t[le][1],a=_e+l+p+np[le][0]+t[le][0]+(j/4294967296>>>0)>>>0,n=j>>>0,j=c+m,s=o+x+(j/4294967296>>>0)>>>0,i=j>>>0,_e=pe,ke=he,pe=Z,he=ce,Z=H,ce=G,j=k+n,H=U+a+(j/4294967296>>>0)>>>0,G=j>>>0,U=_,k=P,_=S,P=B,S=y,B=b,j=n+i,y=a+s+(j/4294967296>>>0)>>>0,b=j>>>0;j=e[0][1]+b,e[0][0]=e[0][0]+y+(j/4294967296>>>0)>>>0,e[0][1]=j>>>0,j=e[1][1]+B,e[1][0]=e[1][0]+S+(j/4294967296>>>0)>>>0,e[1][1]=j>>>0,j=e[2][1]+P,e[2][0]=e[2][0]+_+(j/4294967296>>>0)>>>0,e[2][1]=j>>>0,j=e[3][1]+k,e[3][0]=e[3][0]+U+(j/4294967296>>>0)>>>0,e[3][1]=j>>>0,j=e[4][1]+G,e[4][0]=e[4][0]+H+(j/4294967296>>>0)>>>0,e[4][1]=j>>>0,j=e[5][1]+ce,e[5][0]=e[5][0]+Z+(j/4294967296>>>0)>>>0,e[5][1]=j>>>0,j=e[6][1]+he,e[6][0]=e[6][0]+pe+(j/4294967296>>>0)>>>0,e[6][1]=j>>>0,j=e[7][1]+ke,e[7][0]=e[7][0]+_e+(j/4294967296>>>0)>>>0,e[7][1]=j>>>0,X-=128}}var ip={},XC=te,ze=XC.asn1;ip.privateKeyValidator={name:"PrivateKeyInfo",tagClass:ze.Class.UNIVERSAL,type:ze.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:ze.Class.UNIVERSAL,type:ze.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:ze.Class.UNIVERSAL,type:ze.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:ze.Class.UNIVERSAL,type:ze.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:ze.Class.UNIVERSAL,type:ze.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},ip.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:ze.Class.UNIVERSAL,type:ze.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:ze.Class.UNIVERSAL,type:ze.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:ze.Class.UNIVERSAL,type:ze.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{tagClass:ze.Class.UNIVERSAL,type:ze.Type.BITSTRING,constructed:!1,composed:!0,captureBitStringValue:"ed25519PublicKey"}]};var Qe=te,F0=ip,JC=F0.publicKeyValidator,ZC=F0.privateKeyValidator;if(typeof e2>"u")var e2=Qe.jsbn.BigInteger;var sp=Qe.util.ByteBuffer,wt=typeof Buffer>"u"?Uint8Array:Buffer;Qe.pki=Qe.pki||{},Qe.pki.ed25519=Qe.ed25519=Qe.ed25519||{};var oe=Qe.ed25519;oe.constants={},oe.constants.PUBLIC_KEY_BYTE_LENGTH=32,oe.constants.PRIVATE_KEY_BYTE_LENGTH=64,oe.constants.SEED_BYTE_LENGTH=32,oe.constants.SIGN_BYTE_LENGTH=64,oe.constants.HASH_BYTE_LENGTH=64,oe.generateKeyPair=function(e){e=e||{};var t=e.seed;if(t===void 0)t=Qe.random.getBytesSync(oe.constants.SEED_BYTE_LENGTH);else if(typeof t=="string"){if(t.length!==oe.constants.SEED_BYTE_LENGTH)throw new TypeError('"seed" must be '+oe.constants.SEED_BYTE_LENGTH+" bytes in length.")}else if(!(t instanceof Uint8Array))throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.');t=ea({message:t,encoding:"binary"});for(var r=new wt(oe.constants.PUBLIC_KEY_BYTE_LENGTH),a=new wt(oe.constants.PRIVATE_KEY_BYTE_LENGTH),n=0;n<32;++n)a[n]=t[n];return n2(r,a),{publicKey:r,privateKey:a}},oe.privateKeyFromAsn1=function(e){var t={},r=[],a=Qe.asn1.validate(e,ZC,t,r);if(!a){var n=new Error("Invalid Key.");throw n.errors=r,n}var s=Qe.asn1.derToOid(t.privateKeyOid),i=Qe.oids.EdDSA25519;if(s!==i)throw new Error('Invalid OID "'+s+'"; OID must be "'+i+'".');var o=t.privateKey,c=ea({message:Qe.asn1.fromDer(o).value,encoding:"binary"});return{privateKeyBytes:c}},oe.publicKeyFromAsn1=function(e){var t={},r=[],a=Qe.asn1.validate(e,JC,t,r);if(!a){var n=new Error("Invalid Key.");throw n.errors=r,n}var s=Qe.asn1.derToOid(t.publicKeyOid),i=Qe.oids.EdDSA25519;if(s!==i)throw new Error('Invalid OID "'+s+'"; OID must be "'+i+'".');var o=t.ed25519PublicKey;if(o.length!==oe.constants.PUBLIC_KEY_BYTE_LENGTH)throw new Error("Key length is invalid.");return ea({message:o,encoding:"binary"})},oe.publicKeyFromPrivateKey=function(e){e=e||{};var t=ea({message:e.privateKey,encoding:"binary"});if(t.length!==oe.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+oe.constants.PRIVATE_KEY_BYTE_LENGTH);for(var r=new wt(oe.constants.PUBLIC_KEY_BYTE_LENGTH),a=0;a<r.length;++a)r[a]=t[32+a];return r},oe.sign=function(e){e=e||{};var t=ea(e),r=ea({message:e.privateKey,encoding:"binary"});if(r.length===oe.constants.SEED_BYTE_LENGTH){var a=oe.generateKeyPair({seed:r});r=a.privateKey}else if(r.length!==oe.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+oe.constants.SEED_BYTE_LENGTH+" or "+oe.constants.PRIVATE_KEY_BYTE_LENGTH);var n=new wt(oe.constants.SIGN_BYTE_LENGTH+t.length);i2(n,t,t.length,r);for(var s=new wt(oe.constants.SIGN_BYTE_LENGTH),i=0;i<s.length;++i)s[i]=n[i];return s},oe.verify=function(e){e=e||{};var t=ea(e);if(e.signature===void 0)throw new TypeError('"options.signature" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a binary string.');var r=ea({message:e.signature,encoding:"binary"});if(r.length!==oe.constants.SIGN_BYTE_LENGTH)throw new TypeError('"options.signature" must have a byte length of '+oe.constants.SIGN_BYTE_LENGTH);var a=ea({message:e.publicKey,encoding:"binary"});if(a.length!==oe.constants.PUBLIC_KEY_BYTE_LENGTH)throw new TypeError('"options.publicKey" must have a byte length of '+oe.constants.PUBLIC_KEY_BYTE_LENGTH);var n=new wt(oe.constants.SIGN_BYTE_LENGTH+t.length),s=new wt(oe.constants.SIGN_BYTE_LENGTH+t.length),i;for(i=0;i<oe.constants.SIGN_BYTE_LENGTH;++i)n[i]=r[i];for(i=0;i<t.length;++i)n[i+oe.constants.SIGN_BYTE_LENGTH]=t[i];return s2(s,n,n.length,a)>=0};function ea(e){var t=e.message;if(t instanceof Uint8Array||t instanceof wt)return t;var r=e.encoding;if(t===void 0)if(e.md)t=e.md.digest().getBytes(),r="binary";else throw new TypeError('"options.message" or "options.md" not specified.');if(typeof t=="string"&&!r)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if(typeof t=="string"){if(typeof Buffer<"u")return Buffer.from(t,r);t=new sp(t,r)}else if(!(t instanceof sp))throw new TypeError('"options.message" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a string with "options.encoding" specifying its encoding.');for(var a=new wt(t.length()),n=0;n<a.length;++n)a[n]=t.at(n);return a}var op=Y(),fl=Y([1]),t2=Y([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),a2=Y([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),M0=Y([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),V0=Y([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),gc=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]),r2=Y([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function xc(e,t){var r=Qe.md.sha512.create(),a=new sp(e);r.update(a.getBytes(t),"binary");var n=r.digest().getBytes();if(typeof Buffer<"u")return Buffer.from(n,"binary");for(var s=new wt(oe.constants.HASH_BYTE_LENGTH),i=0;i<64;++i)s[i]=n.charCodeAt(i);return s}function n2(e,t){var r=[Y(),Y(),Y(),Y()],a,n=xc(t,32);for(n[0]&=248,n[31]&=127,n[31]|=64,pp(r,n),up(e,r),a=0;a<32;++a)t[a+32]=e[a];return 0}function i2(e,t,r,a){var n,s,i=new Float64Array(64),o=[Y(),Y(),Y(),Y()],c=xc(a,32);c[0]&=248,c[31]&=127,c[31]|=64;var l=r+64;for(n=0;n<r;++n)e[64+n]=t[n];for(n=0;n<32;++n)e[32+n]=c[32+n];var u=xc(e.subarray(32),r+32);for(cp(u),pp(o,u),up(e,o),n=32;n<64;++n)e[n]=a[n];var p=xc(e,r+64);for(cp(p),n=32;n<64;++n)i[n]=0;for(n=0;n<32;++n)i[n]=u[n];for(n=0;n<32;++n)for(s=0;s<32;s++)i[n+s]+=p[n]*c[s];return q0(e.subarray(32),i),l}function s2(e,t,r,a){var n,s,i=new wt(32),o=[Y(),Y(),Y(),Y()],c=[Y(),Y(),Y(),Y()];if(s=-1,r<64||c2(c,a)||!o2(t,32))return-1;for(n=0;n<r;++n)e[n]=t[n];for(n=0;n<32;++n)e[n+32]=a[n];var l=xc(e,r);if(cp(l),$0(o,c,l),pp(c,t.subarray(32)),lp(o,c),up(i,o),r-=64,z0(t,0,i,0)){for(n=0;n<r;++n)e[n]=0;return-1}for(n=0;n<r;++n)e[n]=t[n+64];return s=r,s}function o2(e,t){var r;for(r=31;r>=0;--r){if(e[t+r]<gc[r])return!0;if(e[t+r]>gc[r])return!1}return!1}function q0(e,t){var r,a,n,s;for(a=63;a>=32;--a){for(r=0,n=a-32,s=a-12;n<s;++n)t[n]+=r-16*t[a]*gc[n-(a-32)],r=t[n]+128>>8,t[n]-=r*256;t[n]+=r,t[a]=0}for(r=0,n=0;n<32;++n)t[n]+=r-(t[31]>>4)*gc[n],r=t[n]>>8,t[n]&=255;for(n=0;n<32;++n)t[n]-=r*gc[n];for(a=0;a<32;++a)t[a+1]+=t[a]>>8,e[a]=t[a]&255}function cp(e){for(var t=new Float64Array(64),r=0;r<64;++r)t[r]=e[r],e[r]=0;q0(e,t)}function lp(e,t){var r=Y(),a=Y(),n=Y(),s=Y(),i=Y(),o=Y(),c=Y(),l=Y(),u=Y();Ja(r,e[1],e[0]),Ja(u,t[1],t[0]),Se(r,r,u),Xa(a,e[0],e[1]),Xa(u,t[0],t[1]),Se(a,a,u),Se(n,e[3],t[3]),Se(n,n,a2),Se(s,e[2],t[2]),Xa(s,s,s),Ja(i,a,r),Ja(o,s,n),Xa(c,s,n),Xa(l,a,r),Se(e[0],i,o),Se(e[1],l,c),Se(e[2],c,o),Se(e[3],i,l)}function j0(e,t,r){for(var a=0;a<4;++a)G0(e[a],t[a],r)}function up(e,t){var r=Y(),a=Y(),n=Y();d2(n,t[2]),Se(r,t[0],n),Se(a,t[1],n),ml(e,a),e[31]^=H0(r)<<7}function ml(e,t){var r,a,n,s=Y(),i=Y();for(r=0;r<16;++r)i[r]=t[r];for(dp(i),dp(i),dp(i),a=0;a<2;++a){for(s[0]=i[0]-65517,r=1;r<15;++r)s[r]=i[r]-65535-(s[r-1]>>16&1),s[r-1]&=65535;s[15]=i[15]-32767-(s[14]>>16&1),n=s[15]>>16&1,s[14]&=65535,G0(i,s,1-n)}for(r=0;r<16;r++)e[2*r]=i[r]&255,e[2*r+1]=i[r]>>8}function c2(e,t){var r=Y(),a=Y(),n=Y(),s=Y(),i=Y(),o=Y(),c=Y();return fa(e[2],fl),l2(e[1],t),Na(n,e[1]),Se(s,n,t2),Ja(n,n,e[2]),Xa(s,e[2],s),Na(i,s),Na(o,i),Se(c,o,i),Se(r,c,n),Se(r,r,s),u2(r,r),Se(r,r,n),Se(r,r,s),Se(r,r,s),Se(e[0],r,s),Na(a,e[0]),Se(a,a,s),K0(a,n)&&Se(e[0],e[0],r2),Na(a,e[0]),Se(a,a,s),K0(a,n)?-1:(H0(e[0])===t[31]>>7&&Ja(e[0],op,e[0]),Se(e[3],e[0],e[1]),0)}function l2(e,t){var r;for(r=0;r<16;++r)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function u2(e,t){var r=Y(),a;for(a=0;a<16;++a)r[a]=t[a];for(a=250;a>=0;--a)Na(r,r),a!==1&&Se(r,r,t);for(a=0;a<16;++a)e[a]=r[a]}function K0(e,t){var r=new wt(32),a=new wt(32);return ml(r,e),ml(a,t),z0(r,0,a,0)}function z0(e,t,r,a){return p2(e,t,r,a,32)}function p2(e,t,r,a,n){var s,i=0;for(s=0;s<n;++s)i|=e[t+s]^r[a+s];return(1&i-1>>>8)-1}function H0(e){var t=new wt(32);return ml(t,e),t[0]&1}function $0(e,t,r){var a,n;for(fa(e[0],op),fa(e[1],fl),fa(e[2],fl),fa(e[3],op),n=255;n>=0;--n)a=r[n/8|0]>>(n&7)&1,j0(e,t,a),lp(t,e),lp(e,e),j0(e,t,a)}function pp(e,t){var r=[Y(),Y(),Y(),Y()];fa(r[0],M0),fa(r[1],V0),fa(r[2],fl),Se(r[3],M0,V0),$0(e,r,t)}function fa(e,t){var r;for(r=0;r<16;r++)e[r]=t[r]|0}function d2(e,t){var r=Y(),a;for(a=0;a<16;++a)r[a]=t[a];for(a=253;a>=0;--a)Na(r,r),a!==2&&a!==4&&Se(r,r,t);for(a=0;a<16;++a)e[a]=r[a]}function dp(e){var t,r,a=1;for(t=0;t<16;++t)r=e[t]+a+65535,a=Math.floor(r/65536),e[t]=r-a*65536;e[0]+=a-1+37*(a-1)}function G0(e,t,r){for(var a,n=~(r-1),s=0;s<16;++s)a=n&(e[s]^t[s]),e[s]^=a,t[s]^=a}function Y(e){var t,r=new Float64Array(16);if(e)for(t=0;t<e.length;++t)r[t]=e[t];return r}function Xa(e,t,r){for(var a=0;a<16;++a)e[a]=t[a]+r[a]}function Ja(e,t,r){for(var a=0;a<16;++a)e[a]=t[a]-r[a]}function Na(e,t){Se(e,t,t)}function Se(e,t,r){var a,n,s=0,i=0,o=0,c=0,l=0,u=0,p=0,f=0,x=0,m=0,y=0,b=0,S=0,B=0,_=0,P=0,U=0,k=0,H=0,G=0,Z=0,ce=0,pe=0,he=0,_e=0,ke=0,le=0,ae=0,j=0,Ne=0,At=0,$=r[0],M=r[1],X=r[2],ye=r[3],re=r[4],Ce=r[5],Ae=r[6],xe=r[7],Pe=r[8],Oe=r[9],ge=r[10],We=r[11],Ye=r[12],Xe=r[13],Je=r[14],Ze=r[15];a=t[0],s+=a*$,i+=a*M,o+=a*X,c+=a*ye,l+=a*re,u+=a*Ce,p+=a*Ae,f+=a*xe,x+=a*Pe,m+=a*Oe,y+=a*ge,b+=a*We,S+=a*Ye,B+=a*Xe,_+=a*Je,P+=a*Ze,a=t[1],i+=a*$,o+=a*M,c+=a*X,l+=a*ye,u+=a*re,p+=a*Ce,f+=a*Ae,x+=a*xe,m+=a*Pe,y+=a*Oe,b+=a*ge,S+=a*We,B+=a*Ye,_+=a*Xe,P+=a*Je,U+=a*Ze,a=t[2],o+=a*$,c+=a*M,l+=a*X,u+=a*ye,p+=a*re,f+=a*Ce,x+=a*Ae,m+=a*xe,y+=a*Pe,b+=a*Oe,S+=a*ge,B+=a*We,_+=a*Ye,P+=a*Xe,U+=a*Je,k+=a*Ze,a=t[3],c+=a*$,l+=a*M,u+=a*X,p+=a*ye,f+=a*re,x+=a*Ce,m+=a*Ae,y+=a*xe,b+=a*Pe,S+=a*Oe,B+=a*ge,_+=a*We,P+=a*Ye,U+=a*Xe,k+=a*Je,H+=a*Ze,a=t[4],l+=a*$,u+=a*M,p+=a*X,f+=a*ye,x+=a*re,m+=a*Ce,y+=a*Ae,b+=a*xe,S+=a*Pe,B+=a*Oe,_+=a*ge,P+=a*We,U+=a*Ye,k+=a*Xe,H+=a*Je,G+=a*Ze,a=t[5],u+=a*$,p+=a*M,f+=a*X,x+=a*ye,m+=a*re,y+=a*Ce,b+=a*Ae,S+=a*xe,B+=a*Pe,_+=a*Oe,P+=a*ge,U+=a*We,k+=a*Ye,H+=a*Xe,G+=a*Je,Z+=a*Ze,a=t[6],p+=a*$,f+=a*M,x+=a*X,m+=a*ye,y+=a*re,b+=a*Ce,S+=a*Ae,B+=a*xe,_+=a*Pe,P+=a*Oe,U+=a*ge,k+=a*We,H+=a*Ye,G+=a*Xe,Z+=a*Je,ce+=a*Ze,a=t[7],f+=a*$,x+=a*M,m+=a*X,y+=a*ye,b+=a*re,S+=a*Ce,B+=a*Ae,_+=a*xe,P+=a*Pe,U+=a*Oe,k+=a*ge,H+=a*We,G+=a*Ye,Z+=a*Xe,ce+=a*Je,pe+=a*Ze,a=t[8],x+=a*$,m+=a*M,y+=a*X,b+=a*ye,S+=a*re,B+=a*Ce,_+=a*Ae,P+=a*xe,U+=a*Pe,k+=a*Oe,H+=a*ge,G+=a*We,Z+=a*Ye,ce+=a*Xe,pe+=a*Je,he+=a*Ze,a=t[9],m+=a*$,y+=a*M,b+=a*X,S+=a*ye,B+=a*re,_+=a*Ce,P+=a*Ae,U+=a*xe,k+=a*Pe,H+=a*Oe,G+=a*ge,Z+=a*We,ce+=a*Ye,pe+=a*Xe,he+=a*Je,_e+=a*Ze,a=t[10],y+=a*$,b+=a*M,S+=a*X,B+=a*ye,_+=a*re,P+=a*Ce,U+=a*Ae,k+=a*xe,H+=a*Pe,G+=a*Oe,Z+=a*ge,ce+=a*We,pe+=a*Ye,he+=a*Xe,_e+=a*Je,ke+=a*Ze,a=t[11],b+=a*$,S+=a*M,B+=a*X,_+=a*ye,P+=a*re,U+=a*Ce,k+=a*Ae,H+=a*xe,G+=a*Pe,Z+=a*Oe,ce+=a*ge,pe+=a*We,he+=a*Ye,_e+=a*Xe,ke+=a*Je,le+=a*Ze,a=t[12],S+=a*$,B+=a*M,_+=a*X,P+=a*ye,U+=a*re,k+=a*Ce,H+=a*Ae,G+=a*xe,Z+=a*Pe,ce+=a*Oe,pe+=a*ge,he+=a*We,_e+=a*Ye,ke+=a*Xe,le+=a*Je,ae+=a*Ze,a=t[13],B+=a*$,_+=a*M,P+=a*X,U+=a*ye,k+=a*re,H+=a*Ce,G+=a*Ae,Z+=a*xe,ce+=a*Pe,pe+=a*Oe,he+=a*ge,_e+=a*We,ke+=a*Ye,le+=a*Xe,ae+=a*Je,j+=a*Ze,a=t[14],_+=a*$,P+=a*M,U+=a*X,k+=a*ye,H+=a*re,G+=a*Ce,Z+=a*Ae,ce+=a*xe,pe+=a*Pe,he+=a*Oe,_e+=a*ge,ke+=a*We,le+=a*Ye,ae+=a*Xe,j+=a*Je,Ne+=a*Ze,a=t[15],P+=a*$,U+=a*M,k+=a*X,H+=a*ye,G+=a*re,Z+=a*Ce,ce+=a*Ae,pe+=a*xe,he+=a*Pe,_e+=a*Oe,ke+=a*ge,le+=a*We,ae+=a*Ye,j+=a*Xe,Ne+=a*Je,At+=a*Ze,s+=38*U,i+=38*k,o+=38*H,c+=38*G,l+=38*Z,u+=38*ce,p+=38*pe,f+=38*he,x+=38*_e,m+=38*ke,y+=38*le,b+=38*ae,S+=38*j,B+=38*Ne,_+=38*At,n=1,a=s+n+65535,n=Math.floor(a/65536),s=a-n*65536,a=i+n+65535,n=Math.floor(a/65536),i=a-n*65536,a=o+n+65535,n=Math.floor(a/65536),o=a-n*65536,a=c+n+65535,n=Math.floor(a/65536),c=a-n*65536,a=l+n+65535,n=Math.floor(a/65536),l=a-n*65536,a=u+n+65535,n=Math.floor(a/65536),u=a-n*65536,a=p+n+65535,n=Math.floor(a/65536),p=a-n*65536,a=f+n+65535,n=Math.floor(a/65536),f=a-n*65536,a=x+n+65535,n=Math.floor(a/65536),x=a-n*65536,a=m+n+65535,n=Math.floor(a/65536),m=a-n*65536,a=y+n+65535,n=Math.floor(a/65536),y=a-n*65536,a=b+n+65535,n=Math.floor(a/65536),b=a-n*65536,a=S+n+65535,n=Math.floor(a/65536),S=a-n*65536,a=B+n+65535,n=Math.floor(a/65536),B=a-n*65536,a=_+n+65535,n=Math.floor(a/65536),_=a-n*65536,a=P+n+65535,n=Math.floor(a/65536),P=a-n*65536,s+=n-1+37*(n-1),n=1,a=s+n+65535,n=Math.floor(a/65536),s=a-n*65536,a=i+n+65535,n=Math.floor(a/65536),i=a-n*65536,a=o+n+65535,n=Math.floor(a/65536),o=a-n*65536,a=c+n+65535,n=Math.floor(a/65536),c=a-n*65536,a=l+n+65535,n=Math.floor(a/65536),l=a-n*65536,a=u+n+65535,n=Math.floor(a/65536),u=a-n*65536,a=p+n+65535,n=Math.floor(a/65536),p=a-n*65536,a=f+n+65535,n=Math.floor(a/65536),f=a-n*65536,a=x+n+65535,n=Math.floor(a/65536),x=a-n*65536,a=m+n+65535,n=Math.floor(a/65536),m=a-n*65536,a=y+n+65535,n=Math.floor(a/65536),y=a-n*65536,a=b+n+65535,n=Math.floor(a/65536),b=a-n*65536,a=S+n+65535,n=Math.floor(a/65536),S=a-n*65536,a=B+n+65535,n=Math.floor(a/65536),B=a-n*65536,a=_+n+65535,n=Math.floor(a/65536),_=a-n*65536,a=P+n+65535,n=Math.floor(a/65536),P=a-n*65536,s+=n-1+37*(n-1),e[0]=s,e[1]=i,e[2]=o,e[3]=c,e[4]=l,e[5]=u,e[6]=p,e[7]=f,e[8]=x,e[9]=m,e[10]=y,e[11]=b,e[12]=S,e[13]=B,e[14]=_,e[15]=P}var _t=te;_t.kem=_t.kem||{};var Q0=_t.jsbn.BigInteger;_t.kem.rsa={},_t.kem.rsa.create=function(e,t){t=t||{};var r=t.prng||_t.random,a={};return a.encrypt=function(n,s){var i=Math.ceil(n.n.bitLength()/8),o;do o=new Q0(_t.util.bytesToHex(r.getBytesSync(i)),16).mod(n.n);while(o.compareTo(Q0.ONE)<=0);o=_t.util.hexToBytes(o.toString(16));var c=i-o.length;c>0&&(o=_t.util.fillString("\0",c)+o);var l=n.encrypt(o,"NONE"),u=e.generate(o,s);return{encapsulation:l,key:u}},a.decrypt=function(n,s,i){var o=n.decrypt(s,"NONE");return e.generate(o,i)},a},_t.kem.kdf1=function(e,t){W0(this,e,0,t||e.digestLength)},_t.kem.kdf2=function(e,t){W0(this,e,1,t||e.digestLength)};function W0(e,t,r,a){e.generate=function(n,s){for(var i=new _t.util.ByteBuffer,o=Math.ceil(s/a)+r,c=new _t.util.ByteBuffer,l=r;l<o;++l){c.putInt32(l),t.start(),t.update(n+c.getBytes());var u=t.digest();i.putBytes(u.getBytes(a))}return i.truncate(i.length()-s),i.getBytes()}}var ue=te;ue.log=ue.log||{},ue.log.levels=["none","error","warning","info","debug","verbose","max"];var hl={},fp=[],yc=null;ue.log.LEVEL_LOCKED=2,ue.log.NO_LEVEL_CHECK=4,ue.log.INTERPOLATE=8;for(var ma=0;ma<ue.log.levels.length;++ma){var Y0=ue.log.levels[ma];hl[Y0]={index:ma,name:Y0.toUpperCase()}}ue.log.logMessage=function(e){for(var t=hl[e.level].index,r=0;r<fp.length;++r){var a=fp[r];if(a.flags&ue.log.NO_LEVEL_CHECK)a.f(e);else{var n=hl[a.level].index;t<=n&&a.f(a,e)}}},ue.log.prepareStandard=function(e){"standard"in e||(e.standard=hl[e.level].name+" ["+e.category+"] "+e.message)},ue.log.prepareFull=function(e){if(!("full"in e)){var t=[e.message];t=t.concat([]),e.full=ue.util.format.apply(this,t)}},ue.log.prepareStandardFull=function(e){"standardFull"in e||(ue.log.prepareStandard(e),e.standardFull=e.standard)};for(var X0=["error","warning","info","debug","verbose"],ma=0;ma<X0.length;++ma)(function(t){ue.log[t]=function(r,a){var n=Array.prototype.slice.call(arguments).slice(2),s={timestamp:new Date,level:t,category:r,message:a,arguments:n};ue.log.logMessage(s)}})(X0[ma]);if(ue.log.makeLogger=function(e){var t={flags:0,f:e};return ue.log.setLevel(t,"none"),t},ue.log.setLevel=function(e,t){var r=!1;if(e&&!(e.flags&ue.log.LEVEL_LOCKED))for(var a=0;a<ue.log.levels.length;++a){var n=ue.log.levels[a];if(t==n){e.level=t,r=!0;break}}return r},ue.log.lock=function(e,t){typeof t>"u"||t?e.flags|=ue.log.LEVEL_LOCKED:e.flags&=~ue.log.LEVEL_LOCKED},ue.log.addLogger=function(e){fp.push(e)},typeof console<"u"&&"log"in console){var bc;if(console.error&&console.warn&&console.info&&console.debug){var f2={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},gp=function(e,t){ue.log.prepareStandard(t);var r=f2[t.level],a=[t.standard];a=a.concat(t.arguments.slice()),r.apply(console,a)};bc=ue.log.makeLogger(gp)}else{var gp=function(t,r){ue.log.prepareStandardFull(r),console.log(r.standardFull)};bc=ue.log.makeLogger(gp)}ue.log.setLevel(bc,"debug"),ue.log.addLogger(bc),yc=bc}else console={log:function(){}};if(yc!==null&&typeof window<"u"&&window.location){var vl=new URL(window.location.href).searchParams;if(vl.has("console.level")&&ue.log.setLevel(yc,vl.get("console.level").slice(-1)[0]),vl.has("console.lock")){var m2=vl.get("console.lock").slice(-1)[0];m2=="true"&&ue.log.lock(yc)}}ue.log.consoleLogger=yc;var V=te,T=V.asn1,pt=V.pkcs7=V.pkcs7||{};pt.messageFromPem=function(e){var t=V.pem.decode(e)[0];if(t.type!=="PKCS7"){var r=new Error('Could not convert PKCS#7 message from PEM; PEM header type is not "PKCS#7".');throw r.headerType=t.type,r}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.");var a=T.fromDer(t.body);return pt.messageFromAsn1(a)},pt.messageToPem=function(e,t){var r={type:"PKCS7",body:T.toDer(e.toAsn1()).getBytes()};return V.pem.encode(r,{maxline:t})},pt.messageFromAsn1=function(e){var t={},r=[];if(!T.validate(e,pt.asn1.contentInfoValidator,t,r)){var a=new Error("Cannot read PKCS#7 message. ASN.1 object is not an PKCS#7 ContentInfo.");throw a.errors=r,a}var n=T.derToOid(t.contentType),s;switch(n){case V.pki.oids.envelopedData:s=pt.createEnvelopedData();break;case V.pki.oids.encryptedData:s=pt.createEncryptedData();break;case V.pki.oids.signedData:s=pt.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+n+" is not (yet) supported.")}return s.fromAsn1(t.content.value[0]),s},pt.createSignedData=function(){var e=null;return e={type:V.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:function(a){if(hp(e,a,pt.asn1.signedDataValidator),e.certificates=[],e.crls=[],e.digestAlgorithmIdentifiers=[],e.contentInfo=null,e.signerInfos=[],e.rawCapture.certificates)for(var n=e.rawCapture.certificates.value,s=0;s<n.length;++s)e.certificates.push(V.pki.certificateFromAsn1(n[s]))},toAsn1:function(){e.contentInfo||e.sign();for(var a=[],n=0;n<e.certificates.length;++n)a.push(V.pki.certificateToAsn1(e.certificates[n]));var s=[],i=T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(e.version).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SET,!0,e.digestAlgorithmIdentifiers),e.contentInfo])]);return a.length>0&&i.value[0].value.push(T.create(T.Class.CONTEXT_SPECIFIC,0,!0,a)),s.length>0&&i.value[0].value.push(T.create(T.Class.CONTEXT_SPECIFIC,1,!0,s)),i.value[0].value.push(T.create(T.Class.UNIVERSAL,T.Type.SET,!0,e.signerInfos)),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.type).getBytes()),i])},addSigner:function(a){var n=a.issuer,s=a.serialNumber;if(a.certificate){var i=a.certificate;typeof i=="string"&&(i=V.pki.certificateFromPem(i)),n=i.issuer.attributes,s=i.serialNumber}var o=a.key;if(!o)throw new Error("Could not add PKCS#7 signer; no private key specified.");typeof o=="string"&&(o=V.pki.privateKeyFromPem(o));var c=a.digestAlgorithm||V.pki.oids.sha1;switch(c){case V.pki.oids.sha1:case V.pki.oids.sha256:case V.pki.oids.sha384:case V.pki.oids.sha512:case V.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+c)}var l=a.authenticatedAttributes||[];if(l.length>0){for(var u=!1,p=!1,f=0;f<l.length;++f){var x=l[f];if(!u&&x.type===V.pki.oids.contentType){if(u=!0,p)break;continue}if(!p&&x.type===V.pki.oids.messageDigest){if(p=!0,u)break;continue}}if(!u||!p)throw new Error("Invalid signer.authenticatedAttributes. If signer.authenticatedAttributes is specified, then it must contain at least two attributes, PKCS #9 content-type and PKCS #9 message-digest.")}e.signers.push({key:o,version:1,issuer:n,serialNumber:s,digestAlgorithm:c,signatureAlgorithm:V.pki.oids.rsaEncryption,signature:null,authenticatedAttributes:l,unauthenticatedAttributes:[]})},sign:function(a){if(a=a||{},(typeof e.content!="object"||e.contentInfo===null)&&(e.contentInfo=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(V.pki.oids.data).getBytes())]),"content"in e)){var n;e.content instanceof V.util.ByteBuffer?n=e.content.bytes():typeof e.content=="string"&&(n=V.util.encodeUtf8(e.content)),a.detached?e.detachedContent=T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,n):e.contentInfo.value.push(T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,n)]))}if(e.signers.length!==0){var s=t();r(s)}},verify:function(){throw new Error("PKCS#7 signature verification not yet implemented.")},addCertificate:function(a){typeof a=="string"&&(a=V.pki.certificateFromPem(a)),e.certificates.push(a)},addCertificateRevokationList:function(a){throw new Error("PKCS#7 CRL support not yet implemented.")}},e;function t(){for(var a={},n=0;n<e.signers.length;++n){var s=e.signers[n],i=s.digestAlgorithm;i in a||(a[i]=V.md[V.pki.oids[i]].create()),s.authenticatedAttributes.length===0?s.md=a[i]:s.md=V.md[V.pki.oids[i]].create()}e.digestAlgorithmIdentifiers=[];for(var i in a)e.digestAlgorithmIdentifiers.push(T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(i).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")]));return a}function r(a){var n;if(e.detachedContent?n=e.detachedContent:(n=e.contentInfo.value[1],n=n.value[0]),!n)throw new Error("Could not sign PKCS#7 message; there is no content to sign.");var s=T.derToOid(e.contentInfo.value[0].value),i=T.toDer(n);i.getByte(),T.getBerValueLength(i),i=i.getBytes();for(var o in a)a[o].start().update(i);for(var c=new Date,l=0;l<e.signers.length;++l){var u=e.signers[l];if(u.authenticatedAttributes.length===0){if(s!==V.pki.oids.data)throw new Error("Invalid signer; authenticatedAttributes must be present when the ContentInfo content type is not PKCS#7 Data.")}else{u.authenticatedAttributesAsn1=T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[]);for(var p=T.create(T.Class.UNIVERSAL,T.Type.SET,!0,[]),f=0;f<u.authenticatedAttributes.length;++f){var x=u.authenticatedAttributes[f];x.type===V.pki.oids.messageDigest?x.value=a[u.digestAlgorithm].digest():x.type===V.pki.oids.signingTime&&(x.value||(x.value=c)),p.value.push(mp(x)),u.authenticatedAttributesAsn1.value.push(mp(x))}i=T.toDer(p).getBytes(),u.md.start().update(i)}u.signature=u.key.sign(u.md,"RSASSA-PKCS1-V1_5")}e.signerInfos=b2(e.signers)}},pt.createEncryptedData=function(){var e=null;return e={type:V.pki.oids.encryptedData,version:0,encryptedContent:{algorithm:V.pki.oids["aes256-CBC"]},fromAsn1:function(t){hp(e,t,pt.asn1.encryptedDataValidator)},decrypt:function(t){t!==void 0&&(e.encryptedContent.key=t),J0(e)}},e},pt.createEnvelopedData=function(){var e=null;return e={type:V.pki.oids.envelopedData,version:0,recipients:[],encryptedContent:{algorithm:V.pki.oids["aes256-CBC"]},fromAsn1:function(t){var r=hp(e,t,pt.asn1.envelopedDataValidator);e.recipients=g2(r.recipientInfos.value)},toAsn1:function(){return T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.type).getBytes()),T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(e.version).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SET,!0,x2(e.recipients)),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,E2(e.encryptedContent))])])])},findRecipient:function(t){for(var r=t.issuer.attributes,a=0;a<e.recipients.length;++a){var n=e.recipients[a],s=n.issuer;if(n.serialNumber===t.serialNumber&&s.length===r.length){for(var i=!0,o=0;o<r.length;++o)if(s[o].type!==r[o].type||s[o].value!==r[o].value){i=!1;break}if(i)return n}}return null},decrypt:function(t,r){if(e.encryptedContent.key===void 0&&t!==void 0&&r!==void 0)switch(t.encryptedContent.algorithm){case V.pki.oids.rsaEncryption:case V.pki.oids.desCBC:var a=r.decrypt(t.encryptedContent.content);e.encryptedContent.key=V.util.createBuffer(a);break;default:throw new Error("Unsupported asymmetric cipher, OID "+t.encryptedContent.algorithm)}J0(e)},addRecipient:function(t){e.recipients.push({version:0,issuer:t.issuer.attributes,serialNumber:t.serialNumber,encryptedContent:{algorithm:V.pki.oids.rsaEncryption,key:t.publicKey}})},encrypt:function(t,r){if(e.encryptedContent.content===void 0){r=r||e.encryptedContent.algorithm,t=t||e.encryptedContent.key;var a,n,s;switch(r){case V.pki.oids["aes128-CBC"]:a=16,n=16,s=V.aes.createEncryptionCipher;break;case V.pki.oids["aes192-CBC"]:a=24,n=16,s=V.aes.createEncryptionCipher;break;case V.pki.oids["aes256-CBC"]:a=32,n=16,s=V.aes.createEncryptionCipher;break;case V.pki.oids["des-EDE3-CBC"]:a=24,n=8,s=V.des.createEncryptionCipher;break;default:throw new Error("Unsupported symmetric cipher, OID "+r)}if(t===void 0)t=V.util.createBuffer(V.random.getBytes(a));else if(t.length()!=a)throw new Error("Symmetric key has wrong length; got "+t.length()+" bytes, expected "+a+".");e.encryptedContent.algorithm=r,e.encryptedContent.key=t,e.encryptedContent.parameter=V.util.createBuffer(V.random.getBytes(n));var i=s(t);if(i.start(e.encryptedContent.parameter.copy()),i.update(e.content),!i.finish())throw new Error("Symmetric encryption failed.");e.encryptedContent.content=i.output}for(var o=0;o<e.recipients.length;++o){var c=e.recipients[o];if(c.encryptedContent.content===void 0)switch(c.encryptedContent.algorithm){case V.pki.oids.rsaEncryption:c.encryptedContent.content=c.encryptedContent.key.encrypt(e.encryptedContent.key.data);break;default:throw new Error("Unsupported asymmetric cipher, OID "+c.encryptedContent.algorithm)}}}},e};function h2(e){var t={},r=[];if(!T.validate(e,pt.asn1.recipientInfoValidator,t,r)){var a=new Error("Cannot read PKCS#7 RecipientInfo. ASN.1 object is not an PKCS#7 RecipientInfo.");throw a.errors=r,a}return{version:t.version.charCodeAt(0),issuer:V.pki.RDNAttributesAsArray(t.issuer),serialNumber:V.util.createBuffer(t.serial).toHex(),encryptedContent:{algorithm:T.derToOid(t.encAlgorithm),parameter:t.encParameter?t.encParameter.value:void 0,content:t.encKey}}}function v2(e){return T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(e.version).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[V.pki.distinguishedNameToAsn1({attributes:e.issuer}),T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,V.util.hexToBytes(e.serialNumber))]),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.encryptedContent.algorithm).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")]),T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,e.encryptedContent.content)])}function g2(e){for(var t=[],r=0;r<e.length;++r)t.push(h2(e[r]));return t}function x2(e){for(var t=[],r=0;r<e.length;++r)t.push(v2(e[r]));return t}function y2(e){var t=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(e.version).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[V.pki.distinguishedNameToAsn1({attributes:e.issuer}),T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,V.util.hexToBytes(e.serialNumber))]),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.digestAlgorithm).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")])]);if(e.authenticatedAttributesAsn1&&t.value.push(e.authenticatedAttributesAsn1),t.value.push(T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.signatureAlgorithm).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")])),t.value.push(T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,e.signature)),e.unauthenticatedAttributes.length>0){for(var r=T.create(T.Class.CONTEXT_SPECIFIC,1,!0,[]),a=0;a<e.unauthenticatedAttributes.length;++a){var n=e.unauthenticatedAttributes[a];r.values.push(mp(n))}t.value.push(r)}return t}function b2(e){for(var t=[],r=0;r<e.length;++r)t.push(y2(e[r]));return t}function mp(e){var t;if(e.type===V.pki.oids.contentType)t=T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.value).getBytes());else if(e.type===V.pki.oids.messageDigest)t=T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,e.value.bytes());else if(e.type===V.pki.oids.signingTime){var r=new Date("1950-01-01T00:00:00Z"),a=new Date("2050-01-01T00:00:00Z"),n=e.value;if(typeof n=="string"){var s=Date.parse(n);isNaN(s)?n.length===13?n=T.utcTimeToDate(n):n=T.generalizedTimeToDate(n):n=new Date(s)}n>=r&&n<a?t=T.create(T.Class.UNIVERSAL,T.Type.UTCTIME,!1,T.dateToUtcTime(n)):t=T.create(T.Class.UNIVERSAL,T.Type.GENERALIZEDTIME,!1,T.dateToGeneralizedTime(n))}return T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.type).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SET,!0,[t])])}function E2(e){return[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(V.pki.oids.data).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(e.algorithm).getBytes()),e.parameter?T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,e.parameter.getBytes()):void 0]),T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,e.content.getBytes())])]}function hp(e,t,r){var a={},n=[];if(!T.validate(t,r,a,n)){var s=new Error("Cannot read PKCS#7 message. ASN.1 object is not a supported PKCS#7 message.");throw s.errors=s,s}var i=T.derToOid(a.contentType);if(i!==V.pki.oids.data)throw new Error("Unsupported PKCS#7 message. Only wrapped ContentType Data supported.");if(a.encryptedContent){var o="";if(V.util.isArray(a.encryptedContent))for(var c=0;c<a.encryptedContent.length;++c){if(a.encryptedContent[c].type!==T.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting encrypted content constructed of only OCTET STRING objects.");o+=a.encryptedContent[c].value}else o=a.encryptedContent;e.encryptedContent={algorithm:T.derToOid(a.encAlgorithm),parameter:V.util.createBuffer(a.encParameter.value),content:V.util.createBuffer(o)}}if(a.content){var o="";if(V.util.isArray(a.content))for(var c=0;c<a.content.length;++c){if(a.content[c].type!==T.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting content constructed of only OCTET STRING objects.");o+=a.content[c].value}else o=a.content;e.content=V.util.createBuffer(o)}return e.version=a.version.charCodeAt(0),e.rawCapture=a,a}function J0(e){if(e.encryptedContent.key===void 0)throw new Error("Symmetric key not available.");if(e.content===void 0){var t;switch(e.encryptedContent.algorithm){case V.pki.oids["aes128-CBC"]:case V.pki.oids["aes192-CBC"]:case V.pki.oids["aes256-CBC"]:t=V.aes.createDecryptionCipher(e.encryptedContent.key);break;case V.pki.oids.desCBC:case V.pki.oids["des-EDE3-CBC"]:t=V.des.createDecryptionCipher(e.encryptedContent.key);break;default:throw new Error("Unsupported symmetric cipher, OID "+e.encryptedContent.algorithm)}if(t.start(e.encryptedContent.parameter),t.update(e.encryptedContent.content),!t.finish())throw new Error("Symmetric decryption failed.");e.content=t.output}}var Me=te,gl=Me.ssh=Me.ssh||{};gl.privateKeyToPutty=function(e,t,r){r=r||"",t=t||"";var a="ssh-rsa",n=t===""?"none":"aes256-cbc",s="PuTTY-User-Key-File-2: "+a+`\r
|
|
36
39
|
`;s+="Encryption: "+n+`\r
|
|
37
40
|
`,s+="Comment: "+r+`\r
|
|
38
|
-
`;var i=
|
|
39
|
-
`,s+=o;var l=
|
|
41
|
+
`;var i=Me.util.createBuffer();Za(i,a),Wt(i,e.e),Wt(i,e.n);var o=Me.util.encode64(i.bytes(),64),c=Math.floor(o.length/66)+1;s+="Public-Lines: "+c+`\r
|
|
42
|
+
`,s+=o;var l=Me.util.createBuffer();Wt(l,e.d),Wt(l,e.p),Wt(l,e.q),Wt(l,e.qInv);var u;if(!t)u=Me.util.encode64(l.bytes(),64);else{var p=l.length()+16-1;p-=p%16;var f=xl(l.bytes());f.truncate(f.length()-p+l.length()),l.putBuffer(f);var x=Me.util.createBuffer();x.putBuffer(xl("\0\0\0\0",t)),x.putBuffer(xl("\0\0\0",t));var m=Me.aes.createEncryptionCipher(x.truncate(8),"CBC");m.start(Me.util.createBuffer().fillWithByte(0,16)),m.update(l.copy()),m.finish();var y=m.output;y.truncate(16),u=Me.util.encode64(y.bytes(),64)}c=Math.floor(u.length/66)+1,s+=`\r
|
|
40
43
|
Private-Lines: `+c+`\r
|
|
41
|
-
`,s+=u;var b=xl("putty-private-key-file-mac-key",t),S=
|
|
44
|
+
`,s+=u;var b=xl("putty-private-key-file-mac-key",t),S=Me.util.createBuffer();Za(S,a),Za(S,n),Za(S,r),S.putInt32(i.length()),S.putBuffer(i),S.putInt32(l.length()),S.putBuffer(l);var B=Me.hmac.create();return B.start("sha1",b),B.update(S.bytes()),s+=`\r
|
|
42
45
|
Private-MAC: `+B.digest().toHex()+`\r
|
|
43
|
-
`,s},gl.publicKeyToOpenSSH=function(e,t){var r="ssh-rsa";t=t||"";var a=Oe.util.createBuffer();return er(a,r),Wt(a,e.e),Wt(a,e.n),r+" "+Oe.util.encode64(a.bytes())+" "+t},gl.privateKeyToOpenSSH=function(e,t){return t?Oe.pki.encryptRsaPrivateKey(e,t,{legacy:!0,algorithm:"aes128"}):Oe.pki.privateKeyToPem(e)},gl.getPublicKeyFingerprint=function(e,t){t=t||{};var r=t.md||Oe.md.md5.create(),a="ssh-rsa",n=Oe.util.createBuffer();er(n,a),Wt(n,e.e),Wt(n,e.n),r.start(),r.update(n.getBytes());var s=r.digest();if(t.encoding==="hex"){var i=s.toHex();return t.delimiter?i.match(/.{2}/g).join(t.delimiter):i}else{if(t.encoding==="binary")return s.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".')}return s};function Wt(e,t){var r=t.toString(16);r[0]>="8"&&(r="00"+r);var a=Oe.util.hexToBytes(r);e.putInt32(a.length),e.putBytes(a)}function er(e,t){e.putInt32(t.length),e.putString(t)}function xl(){for(var e=Oe.md.sha1.create(),t=arguments.length,r=0;r<t;++r)e.update(arguments[r]);return e.digest()}var Ec=ee;const s2=e=>{const t=Ec.util.hexToBytes(e.entitySecret),r=Ec.pki.publicKeyFromPem(e.publicKey).encrypt(t,"RSA-OAEP",{md:Ec.md.sha256.create(),mgf1:{md:Ec.md.sha256.create()}});return Ec.util.encode64(r)},Y0=e=>async()=>{let t=e.storage?await e.storage.get("publicKey"):void 0;if(t===void 0){const r=await h1(e)();if(!r.data?.publicKey)throw new Error("Could not fetch public key");t=r.data.publicKey,e.storage&&await e.storage.set("publicKey",t)}return s2({entitySecret:e.entitySecret,publicKey:t})},yl=()=>rm();var J0="10.1.0";const o2=e=>async({idempotencyKey:t,fee:r,xRequestId:a,...n})=>{try{return St(await e.client.DeployImport.deployContract({entitySecretCiphertext:await Y0(e)(),idempotencyKey:t??yl(),...r.config,...n},a))}catch(s){throw at(s)?tt(s):s}},c2=e=>async({xRequestId:t,...r})=>{try{return St(await e.client.DeployImport.estimateContractDeploy(r,t))}catch(a){throw at(a)?tt(a):a}},l2=e=>async({id:t,xRequestId:r})=>{try{return St(await e.client.ViewUpdate.getContract(t,r))}catch(a){throw at(a)?tt(a):a}},u2=e=>async({idempotencyKey:t,xRequestId:r,...a})=>{try{return St(await e.client.DeployImport.importContract({idempotencyKey:t??yl(),...a},r))}catch(n){throw at(n)?tt(n):n}},p2=e=>async t=>{try{return St(await e.client.ViewUpdate.listContracts(t?.blockchain,t?.contractInputType,t?.deployerAddress,t?.name,t?.status,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(r){throw at(r)?tt(r):r}},d2=e=>async({xRequestId:t,...r})=>{try{return St(await e.client.Interact.queryContract(r,t))}catch(a){throw at(a)?tt(a):a}},f2=e=>async({id:t,xRequestId:r,...a})=>{try{return St(await e.client.ViewUpdate.updateContract(t,a,r))}catch(n){throw at(n)?tt(n):n}},m2=e=>async({idempotencyKey:t,xRequestId:r,...a})=>{try{return St(await e.client.EventMonitors.createEventMonitor(r,{idempotencyKey:t??yl(),...a}))}catch(n){throw at(n)?tt(n):n}},h2=e=>async({xRequestId:t,...r})=>{try{return await e.client.EventMonitors.deleteEventMonitor(r.id,t)}catch(a){throw at(a)?tt(a):a}},v2=e=>async t=>{try{return St(await e.client.EventMonitors.getEventMonitors(t?.contractAddress,t?.blockchain,t?.eventSignature,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(r){throw at(r)?tt(r):r}},g2=e=>async t=>{try{return St(await e.client.EventMonitors.listEventLogs(t?.contractAddress,t?.blockchain,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(r){throw at(r)?tt(r):r}},x2=e=>async({id:t,xRequestId:r,...a})=>{try{return St(await e.client.EventMonitors.updateEventMonitor(t,r,a))}catch(n){throw at(n)?tt(n):n}},y2=e=>async({id:t,idempotencyKey:r,fee:a,xRequestId:n,...s})=>{try{return St(await e.client.Templates.deployContractTemplate(t,{entitySecretCiphertext:await Y0(e)(),idempotencyKey:r??yl(),...a.config,...s},n))}catch(i){throw at(i)?tt(i):i}},b2=e=>async({id:t,xRequestId:r,...a})=>{try{return St(await e.client.Templates.estimateContractTemplateDeploy(t,a,r))}catch(n){throw at(n)?tt(n):n}};var E2=Object.defineProperty,C2=(e,t,r)=>t in e?E2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S2=(e,t,r)=>C2(e,typeof t!="symbol"?t+"":t,r);const hp="https://api.circle.com";class Z0{constructor(t){S2(this,"params");const{apiKey:r,baseUrl:a,entitySecret:n,storage:s,userAgent:i,headers:o}=t;this.params={client:new hy(a??hp,{apiKey:r,version:J0,userAgent:i},o),configurationsClient:new $x(a??hp,{apiKey:r,version:J0,userAgent:i},o),entitySecret:n,storage:s??new y1}}deployContract(t){return o2(this.params)(t)}estimateContractDeploymentFee(t){return c2(this.params)(t)}importContract(t){return u2(this.params)(t)}getContract(t){return l2(this.params)(t)}listContracts(t){return p2(this.params)(t)}updateContract(t){return f2(this.params)(t)}queryContract(t){return d2(this.params)(t)}deployContractTemplate(t){return y2(this.params)(t)}estimateContractTemplateDeploymentFee(t){return b2(this.params)(t)}createEventMonitor(t){return m2(this.params)(t)}listEventMonitors(t){return v2(this.params)(t)}updateEventMonitor(t){return x2(this.params)(t)}deleteEventMonitor(t){return h2(this.params)(t)}listEventLogs(t){return g2(this.params)(t)}}function T2(e){return new Z0(e)}export{wr as BadGatewayError,xr as BadRequestError,dy as Blockchain,Z0 as CircleSmartContractPlatformClient,Rr as ConnectionAbortedError,Br as ConnectionRefusedError,Ur as ConnectionResetError,_r as ConnectionTimeoutError,kr as DNSNotFoundError,Nr as DNSTimeoutError,Tu as Error110700,wu as Error110701,Au as Error110702,Iu as Error110703,Pr as Error155101,Or as Error155102,Fr as Error155103,Mr as Error155104,Vr as Error155105,qr as Error155106,jr as Error155107,Kr as Error155108,zr as Error155109,Hr as Error155110,$r as Error155111,Gr as Error155112,Qr as Error155113,Wr as Error155114,Xr as Error155115,Yr as Error155116,Jr as Error155117,Zr as Error155118,en as Error155119,tn as Error155120,an as Error155121,rn as Error155122,nn as Error155123,sn as Error155124,on as Error155130,cn as Error155131,ln as Error155132,un as Error155133,pn as Error155134,dn as Error155135,fn as Error155136,mn as Error155137,hn as Error155138,vn as Error155139,gn as Error155140,xn as Error155141,yn as Error155142,bn as Error155143,En as Error155144,Cn as Error155145,Sn as Error155146,Tn as Error155150,wn as Error155151,An as Error155152,In as Error155154,Bn as Error155155,_n as Error155156,Rn as Error155157,kn as Error155158,Nn as Error155159,Ln as Error155160,Un as Error155201,Dn as Error155202,Pn as Error155203,On as Error155204,Fn as Error155205,Mn as Error155206,Vn as Error155207,qn as Error155208,jn as Error155209,Kn as Error155210,zn as Error155211,Hn as Error155215,$n as Error155218,Gn as Error155219,Qn as Error155220,Wn as Error155221,Xn as Error155222,Yn as Error155223,Jn as Error155224,Zn as Error155225,ei as Error155226,ti as Error155227,ai as Error155228,ri as Error155229,ni as Error155230,ii as Error155231,si as Error155232,oi as Error155233,ci as Error155234,li as Error155235,ui as Error155236,pi as Error155237,di as Error155238,fi as Error155239,mi as Error155240,hi as Error155241,vi as Error155242,gi as Error155243,xi as Error155244,yi as Error155245,bi as Error155247,Ei as Error155254,Ci as Error155257,Si as Error155258,Ti as Error155262,wi as Error155264,Ai as Error155501,Ii as Error155502,Bi as Error155503,_i as Error155504,Ri as Error155505,ki as Error155506,Ni as Error155507,Li as Error155508,Ui as Error155509,Di as Error155510,Pi as Error155511,Oi as Error155512,Fi as Error155514,Mi as Error155515,Vi as Error155516,qi as Error155517,ji as Error155601,Ki as Error155701,zi as Error155702,Hi as Error155703,$i as Error155704,Gi as Error155705,Qi as Error155706,Wi as Error155707,Xi as Error155708,Yi as Error155709,Ji as Error155710,Zi as Error155711,es as Error155712,ts as Error155713,as as Error155714,rs as Error155715,ns as Error155716,is as Error155717,ss as Error155718,os as Error155719,cs as Error155720,ls as Error155721,us as Error155801,ps as Error155802,ds as Error155803,fs as Error155804,ms as Error155805,hs as Error155806,vs as Error155807,gs as Error155808,xs as Error156001,ys as Error156002,bs as Error156003,Es as Error156004,Cs as Error156005,Ss as Error156006,Ts as Error156007,ws as Error156008,As as Error156009,Is as Error156010,Bs as Error156011,_s as Error156012,Rs as Error156013,ks as Error156014,Ns as Error156015,Ls as Error156016,Us as Error156017,Ds as Error156018,Ps as Error156019,Os as Error156020,Fs as Error156021,Ms as Error156023,Vs as Error156024,qs as Error156025,js as Error156026,Ks as Error156027,zs as Error156030,Hs as Error156031,$s as Error156032,Gs as Error175001,Qs as Error175002,Ws as Error175003,Xs as Error175004,Ys as Error175005,Js as Error175006,Zs as Error175007,eo as Error175008,to as Error175009,ao as Error175010,ro as Error175011,no as Error175012,io as Error175013,so as Error175201,oo as Error175202,co as Error175203,lo as Error175204,uo as Error175205,po as Error175301,fo as Error175302,mo as Error175303,ho as Error175401,vo as Error175402,go as Error175403,xo as Error175404,yo as Error175405,bo as Error175406,Eo as Error175407,Co as Error175408,So as Error175409,To as Error175410,wo as Error177001,Ao as Error177002,Io as Error177003,Bo as Error177004,_o as Error177005,Ro as Error177006,ko as Error177007,No as Error177008,Lo as Error177009,Uo as Error177010,Do as Error177011,Po as Error177012,Oo as Error177013,Fo as Error177014,Mo as Error177015,Vo as Error177016,qo as Error177017,jo as Error177018,Ko as Error177019,zo as Error177020,Ho as Error177021,$o as Error177022,Go as Error177023,Qo as Error177024,Wo as Error177025,Xo as Error177026,Yo as Error177301,Jo as Error177302,Zo as Error177303,ec as Error177304,tc as Error177305,ac as Error177601,rc as Error177602,nc as Error177603,ic as Error177604,sc as Error177605,oc as Error177606,cc as Error177607,lc as Error177901,br as ForbiddenError,Ir as GatewayTimeoutError,Dr as HostUnreachableError,gr as HttpError,Rt as HttpRequestError,E as HttpResponseError,Sr as InternalServerError,Lr as NetworkUnreachableError,Er as NotFoundError,Tr as NotImplementedError,Cr as RatelimitError,Ar as ServiceUnavailableError,yr as UnauthorizedError,hp as defaultBaseUrl,tt as fromAxiosError,T2 as initiateSmartContractPlatformClient};
|
|
46
|
+
`,s},gl.publicKeyToOpenSSH=function(e,t){var r="ssh-rsa";t=t||"";var a=Me.util.createBuffer();return Za(a,r),Wt(a,e.e),Wt(a,e.n),r+" "+Me.util.encode64(a.bytes())+" "+t},gl.privateKeyToOpenSSH=function(e,t){return t?Me.pki.encryptRsaPrivateKey(e,t,{legacy:!0,algorithm:"aes128"}):Me.pki.privateKeyToPem(e)},gl.getPublicKeyFingerprint=function(e,t){t=t||{};var r=t.md||Me.md.md5.create(),a="ssh-rsa",n=Me.util.createBuffer();Za(n,a),Wt(n,e.e),Wt(n,e.n),r.start(),r.update(n.getBytes());var s=r.digest();if(t.encoding==="hex"){var i=s.toHex();return t.delimiter?i.match(/.{2}/g).join(t.delimiter):i}else{if(t.encoding==="binary")return s.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".')}return s};function Wt(e,t){var r=t.toString(16);r[0]>="8"&&(r="00"+r);var a=Me.util.hexToBytes(r);e.putInt32(a.length),e.putBytes(a)}function Za(e,t){e.putInt32(t.length),e.putString(t)}function xl(){for(var e=Me.md.sha1.create(),t=arguments.length,r=0;r<t;++r)e.update(arguments[r]);return e.digest()}var Ec=te;const C2=e=>{const t=Ec.util.hexToBytes(e.entitySecret),r=Ec.pki.publicKeyFromPem(e.publicKey).encrypt(t,"RSA-OAEP",{md:Ec.md.sha256.create(),mgf1:{md:Ec.md.sha256.create()}});return Ec.util.encode64(r)},Z0=e=>async()=>{let t=e.storage?await e.storage.get("publicKey"):void 0;if(t===void 0){const r=await _1(e)();if(!r.data?.publicKey)throw new Error("Could not fetch public key");t=r.data.publicKey,e.storage&&await e.storage.set("publicKey",t)}return C2({entitySecret:e.entitySecret,publicKey:t})},yl=()=>sm();var em="10.3.0";const S2=e=>async({idempotencyKey:t,fee:r,xRequestId:a,...n})=>{try{return St(await e.client.DeployImport.deployContract({entitySecretCiphertext:await Z0(e)(),idempotencyKey:t??yl(),...r.config,...n},a))}catch(s){throw tt(s)?et(s):s}},T2=e=>async({xRequestId:t,...r})=>{try{return St(await e.client.DeployImport.estimateContractDeploy(r,t))}catch(a){throw tt(a)?et(a):a}},w2=e=>async({id:t,xRequestId:r})=>{try{return St(await e.client.ViewUpdate.getContract(t,r))}catch(a){throw tt(a)?et(a):a}},A2=e=>async({idempotencyKey:t,xRequestId:r,...a})=>{try{return St(await e.client.DeployImport.importContract({idempotencyKey:t??yl(),...a},r))}catch(n){throw tt(n)?et(n):n}},I2=e=>async t=>{try{return St(await e.client.ViewUpdate.listContracts(t?.blockchain,t?.contractInputType,t?.deployerAddress,t?.name,t?.status,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(r){throw tt(r)?et(r):r}},B2=e=>async({xRequestId:t,...r})=>{try{return St(await e.client.Interact.queryContract(r,t))}catch(a){throw tt(a)?et(a):a}},_2=e=>async({id:t,xRequestId:r,...a})=>{try{return St(await e.client.ViewUpdate.updateContract(t,a,r))}catch(n){throw tt(n)?et(n):n}},R2=e=>async({idempotencyKey:t,xRequestId:r,...a})=>{try{return St(await e.client.EventMonitors.createEventMonitor(r,{idempotencyKey:t??yl(),...a}))}catch(n){throw tt(n)?et(n):n}},k2=e=>async({xRequestId:t,...r})=>{try{return await e.client.EventMonitors.deleteEventMonitor(r.id,t)}catch(a){throw tt(a)?et(a):a}},N2=e=>async t=>{try{return St(await e.client.EventMonitors.getEventMonitors(t?.contractAddress,t?.blockchain,t?.eventSignature,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(r){throw tt(r)?et(r):r}},L2=e=>async t=>{try{return St(await e.client.EventMonitors.listEventLogs(t?.contractAddress,t?.blockchain,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize,t?.xRequestId))}catch(r){throw tt(r)?et(r):r}},U2=e=>async({id:t,xRequestId:r,...a})=>{try{return St(await e.client.EventMonitors.updateEventMonitor(t,r,a))}catch(n){throw tt(n)?et(n):n}},D2=e=>async({id:t,idempotencyKey:r,fee:a,xRequestId:n,...s})=>{try{return St(await e.client.Templates.deployContractTemplate(t,{entitySecretCiphertext:await Z0(e)(),idempotencyKey:r??yl(),...a.config,...s},n))}catch(i){throw tt(i)?et(i):i}},P2=e=>async({id:t,xRequestId:r,...a})=>{try{return St(await e.client.Templates.estimateContractTemplateDeploy(t,a,r))}catch(n){throw tt(n)?et(n):n}};var O2=Object.defineProperty,F2=(e,t,r)=>t in e?O2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M2=(e,t,r)=>F2(e,typeof t!="symbol"?t+"":t,r);const vp="https://api.circle.com";class tm{constructor(t){M2(this,"params");const{apiKey:r,baseUrl:a,entitySecret:n,storage:s,userAgent:i,headers:o}=t;this.params={client:new _y(a??vp,{apiKey:r,version:em,userAgent:i},o),configurationsClient:new sy(a??vp,{apiKey:r,version:em,userAgent:i},o),entitySecret:n,storage:s??new L1}}deployContract(t){return S2(this.params)(t)}estimateContractDeploymentFee(t){return T2(this.params)(t)}importContract(t){return A2(this.params)(t)}getContract(t){return w2(this.params)(t)}listContracts(t){return I2(this.params)(t)}updateContract(t){return _2(this.params)(t)}queryContract(t){return B2(this.params)(t)}deployContractTemplate(t){return D2(this.params)(t)}estimateContractTemplateDeploymentFee(t){return P2(this.params)(t)}createEventMonitor(t){return R2(this.params)(t)}listEventMonitors(t){return N2(this.params)(t)}updateEventMonitor(t){return U2(this.params)(t)}deleteEventMonitor(t){return k2(this.params)(t)}listEventLogs(t){return L2(this.params)(t)}}function V2(e){return new tm(e)}export{Tr as BadGatewayError,gr as BadRequestError,Ay as Blockchain,tm as CircleSmartContractPlatformClient,_r as ConnectionAbortedError,Ir as ConnectionRefusedError,Lr as ConnectionResetError,Br as ConnectionTimeoutError,Rr as DNSNotFoundError,kr as DNSTimeoutError,Au as Error110700,Iu as Error110701,Bu as Error110702,_u as Error110703,Dr as Error155101,Pr as Error155102,Or as Error155103,Fr as Error155104,Mr as Error155105,Vr as Error155106,qr as Error155107,jr as Error155108,Kr as Error155109,zr as Error155110,Hr as Error155111,$r as Error155112,Gr as Error155113,Qr as Error155114,Wr as Error155115,Yr as Error155116,Xr as Error155117,Jr as Error155118,Zr as Error155119,en as Error155120,tn as Error155121,an as Error155122,rn as Error155123,nn as Error155124,sn as Error155130,on as Error155131,cn as Error155132,ln as Error155133,un as Error155134,pn as Error155135,dn as Error155136,fn as Error155137,mn as Error155138,hn as Error155139,vn as Error155140,gn as Error155141,xn as Error155142,yn as Error155143,bn as Error155144,En as Error155145,Cn as Error155146,Sn as Error155150,Tn as Error155151,wn as Error155152,An as Error155154,In as Error155155,Bn as Error155156,_n as Error155157,Rn as Error155158,kn as Error155159,Nn as Error155160,Ln as Error155201,Un as Error155202,Dn as Error155203,Pn as Error155204,On as Error155205,Fn as Error155206,Mn as Error155207,Vn as Error155208,qn as Error155209,jn as Error155210,Kn as Error155211,zn as Error155215,Hn as Error155218,$n as Error155219,Gn as Error155220,Qn as Error155221,Wn as Error155222,Yn as Error155223,Xn as Error155224,Jn as Error155225,Zn as Error155226,ei as Error155227,ti as Error155228,ai as Error155229,ri as Error155230,ni as Error155231,ii as Error155232,si as Error155233,oi as Error155234,ci as Error155235,li as Error155236,ui as Error155237,pi as Error155238,di as Error155239,fi as Error155240,mi as Error155241,hi as Error155242,vi as Error155243,gi as Error155244,xi as Error155245,yi as Error155247,bi as Error155254,Ei as Error155257,Ci as Error155258,Si as Error155262,Ti as Error155264,wi as Error155501,Ai as Error155502,Ii as Error155503,Bi as Error155504,_i as Error155505,Ri as Error155506,ki as Error155507,Ni as Error155508,Li as Error155509,Ui as Error155510,Di as Error155511,Pi as Error155512,Oi as Error155514,Fi as Error155515,Mi as Error155516,Vi as Error155517,qi as Error155601,ji as Error155701,Ki as Error155702,zi as Error155703,Hi as Error155704,$i as Error155705,Gi as Error155706,Qi as Error155707,Wi as Error155708,Yi as Error155709,Xi as Error155710,Ji as Error155711,Zi as Error155712,es as Error155713,ts as Error155714,as as Error155715,rs as Error155716,ns as Error155717,is as Error155718,ss as Error155719,os as Error155720,cs as Error155721,ls as Error155801,us as Error155802,ps as Error155803,ds as Error155804,fs as Error155805,ms as Error155806,hs as Error155807,vs as Error155808,gs as Error156001,xs as Error156002,ys as Error156003,bs as Error156004,Es as Error156005,Cs as Error156006,Ss as Error156007,Ts as Error156008,ws as Error156009,As as Error156010,Is as Error156011,Bs as Error156012,_s as Error156013,Rs as Error156014,ks as Error156015,Ns as Error156016,Ls as Error156017,Us as Error156018,Ds as Error156019,Ps as Error156020,Os as Error156021,Fs as Error156023,Ms as Error156024,Vs as Error156025,qs as Error156026,js as Error156027,Ks as Error156030,zs as Error156031,Hs as Error156032,$s as Error175001,Gs as Error175002,Qs as Error175003,Ws as Error175004,Ys as Error175005,Xs as Error175006,Js as Error175007,Zs as Error175008,eo as Error175009,to as Error175010,ao as Error175011,ro as Error175012,no as Error175013,io as Error175201,so as Error175202,oo as Error175203,co as Error175204,lo as Error175205,uo as Error175301,po as Error175302,fo as Error175303,mo as Error175401,ho as Error175402,vo as Error175403,go as Error175404,xo as Error175405,yo as Error175406,bo as Error175407,Eo as Error175408,Co as Error175409,So as Error175410,To as Error177001,wo as Error177002,Ao as Error177003,Io as Error177004,Bo as Error177005,_o as Error177006,Ro as Error177007,ko as Error177008,No as Error177009,Lo as Error177010,Uo as Error177011,Do as Error177012,Po as Error177013,Oo as Error177014,Fo as Error177015,Mo as Error177016,Vo as Error177017,qo as Error177018,jo as Error177019,Ko as Error177020,zo as Error177021,Ho as Error177022,$o as Error177023,Go as Error177024,Qo as Error177025,Wo as Error177026,Yo as Error177301,Xo as Error177302,Jo as Error177303,Zo as Error177304,ec as Error177305,tc as Error177601,ac as Error177602,rc as Error177603,nc as Error177604,ic as Error177605,sc as Error177606,oc as Error177607,cc as Error177901,yr as ForbiddenError,Ar as GatewayTimeoutError,Ur as HostUnreachableError,vr as HttpError,kt as HttpRequestError,E as HttpResponseError,Cr as InternalServerError,Nr as NetworkUnreachableError,br as NotFoundError,Sr as NotImplementedError,Er as RatelimitError,wr as ServiceUnavailableError,xr as UnauthorizedError,vp as defaultBaseUrl,et as fromAxiosError,V2 as initiateSmartContractPlatformClient};
|